Skip to content

Commit

Permalink
really fix #2776
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Jul 9, 2017
1 parent 974194a commit 9701a51
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/js/tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9701a51

Please sign in to comment.