mirror of https://github.com/gorhill/uBlock.git
really fix #2776
This commit is contained in:
parent
974194ab8d
commit
9701a519a2
|
@ -704,9 +704,6 @@ vAPI.tabs.onPopupUpdated = (function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
return function(targetTabId, openerTabId) {
|
return function(targetTabId, openerTabId) {
|
||||||
// https://github.com/gorhill/uBlock/issues/2776
|
|
||||||
logData = undefined;
|
|
||||||
|
|
||||||
// Opener details.
|
// Opener details.
|
||||||
var tabContext = µb.tabContextManager.lookup(openerTabId);
|
var tabContext = µb.tabContextManager.lookup(openerTabId);
|
||||||
if ( tabContext === null ) { return; }
|
if ( tabContext === null ) { return; }
|
||||||
|
@ -752,16 +749,18 @@ vAPI.tabs.onPopupUpdated = (function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Log only for when there was a hit against an actual filter (allow or block).
|
// Log only for when there was a hit against an actual filter (allow or block).
|
||||||
|
// https://github.com/gorhill/uBlock/issues/2776
|
||||||
if ( µb.logger.isEnabled() ) {
|
if ( µb.logger.isEnabled() ) {
|
||||||
µb.logger.writeOne(
|
µb.logger.writeOne(
|
||||||
popupType === 'popup' ? openerTabId : targetTabId,
|
popupType === 'popup' ? openerTabId : targetTabId,
|
||||||
'net',
|
'net',
|
||||||
logData,
|
result !== 0 ? logData : undefined,
|
||||||
popupType,
|
popupType,
|
||||||
popupType === 'popup' ? targetURL : openerURL,
|
popupType === 'popup' ? targetURL : openerURL,
|
||||||
µb.URI.hostnameFromURI(context.rootURL),
|
µb.URI.hostnameFromURI(context.rootURL),
|
||||||
µb.URI.hostnameFromURI(context.rootURL)
|
µb.URI.hostnameFromURI(context.rootURL)
|
||||||
);
|
);
|
||||||
|
logData = undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Not blocked
|
// Not blocked
|
||||||
|
|
Loading…
Reference in New Issue