This commit is contained in:
gorhill 2015-03-09 10:19:00 -04:00
parent 1525a828c1
commit cfadf76345
1 changed files with 3 additions and 4 deletions

View File

@ -86,7 +86,7 @@ vAPI.tabs.onClosed = function(tabId) {
// https://github.com/gorhill/uBlock/issues/297
vAPI.tabs.onPopup = function(details) {
//console.debug('vAPI.tabs.onPopup: url="%s"', details.url);
//console.debug('vAPI.tabs.onPopup: details = %o', details);
var pageStore = µb.pageStoreFromTabId(details.openerTabId);
var openerURL = details.openerURL || '';
@ -121,12 +121,11 @@ vAPI.tabs.onPopup = function(details) {
// https://github.com/gorhill/uBlock/issues/91
if ( pageStore ) {
var context = {
pageStore.logRequest({
requestURL: targetURL,
requestHostname: µb.URI.hostnameFromURI(targetURL),
requestType: 'popup'
};
pageStore.logRequest(context, result);
}, result);
}
// Not blocked