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) {
|
||||
// https://github.com/gorhill/uBlock/issues/2776
|
||||
logData = undefined;
|
||||
|
||||
// Opener details.
|
||||
var tabContext = µb.tabContextManager.lookup(openerTabId);
|
||||
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).
|
||||
// https://github.com/gorhill/uBlock/issues/2776
|
||||
if ( µb.logger.isEnabled() ) {
|
||||
µb.logger.writeOne(
|
||||
popupType === 'popup' ? openerTabId : targetTabId,
|
||||
'net',
|
||||
logData,
|
||||
result !== 0 ? logData : undefined,
|
||||
popupType,
|
||||
popupType === 'popup' ? targetURL : openerURL,
|
||||
µb.URI.hostnameFromURI(context.rootURL),
|
||||
µb.URI.hostnameFromURI(context.rootURL)
|
||||
);
|
||||
logData = undefined;
|
||||
}
|
||||
|
||||
// Not blocked
|
||||
|
|
Loading…
Reference in New Issue