1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 09:37:12 +02:00

#114: enabling compliance with ABP semantic, because #135

This commit is contained in:
gorhill 2014-08-05 19:35:32 -04:00
parent be0a3dcf5a
commit 4fce81e904

View File

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