From 4fce81e90441463bf935507df2dafddc8e640c85 Mon Sep 17 00:00:00 2001 From: gorhill Date: Tue, 5 Aug 2014 19:35:32 -0400 Subject: [PATCH] #114: enabling compliance with ABP semantic, because #135 --- js/traffic.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/js/traffic.js b/js/traffic.js index 06951abba..65aeb8f5d 100644 --- a/js/traffic.js +++ b/js/traffic.js @@ -70,13 +70,13 @@ var onBeforeRequest = function(details) { // https://github.com/gorhill/uBlock/issues/114 var requestContext = pageStore; - //var frameStore; - //var frameId = details.frameId; - //if ( frameId > 0 ) { - // if ( frameStore = pageStore.getFrame(frameId) ) { - // requestContext = frameStore; - // } - //} + var frameStore; + var frameId = details.frameId; + if ( frameId > 0 ) { + if ( frameStore = pageStore.getFrame(frameId) ) { + requestContext = frameStore; + } + } var reason = false; if ( pageStore.getNetFilteringSwitch() ) { @@ -90,9 +90,9 @@ var onBeforeRequest = function(details) { //console.debug('µBlock> onBeforeRequest()> ALLOW "%s" (%o)', details.url, details); // https://github.com/gorhill/uBlock/issues/114 - //if ( frameId > 0 && frameStore === undefined ) { - // pageStore.addFrame(frameId, requestURL); - //} + if ( frameId > 0 && frameStore === undefined ) { + pageStore.addFrame(frameId, requestURL); + } return; }