This commit is contained in:
gorhill 2017-07-09 06:58:34 -04:00
parent 974194ab8d
commit 9701a519a2
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 3 additions and 4 deletions

View File

@ -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