diff options
author | gorhill <rhill@raymondhill.net> | 2015-03-02 10:41:51 -0500 |
---|---|---|
committer | gorhill <rhill@raymondhill.net> | 2015-03-02 10:41:51 -0500 |
commit | 1136734e339f52008c5900e06a3dccd84d8b4a19 (patch) | |
tree | fe80c52b47809ae991e40f2cc4955d61d4afd7bb /src/js/traffic.js | |
parent | 8bedabb5ef23db6c0deab54b9ed718b4c8b2d4f3 (diff) | |
download | uBlock-1136734e339f52008c5900e06a3dccd84d8b4a19.zip uBlock-1136734e339f52008c5900e06a3dccd84d8b4a19.tar.gz uBlock-1136734e339f52008c5900e06a3dccd84d8b4a19.tar.bz2 |
this fixes #915
Diffstat (limited to 'src/js/traffic.js')
-rw-r--r-- | src/js/traffic.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/js/traffic.js b/src/js/traffic.js index ed1eb63..a17d8e4 100644 --- a/src/js/traffic.js +++ b/src/js/traffic.js @@ -100,8 +100,13 @@ var onBeforeRequest = function(details) { //console.debug('traffic.js > onBeforeRequest(): ALLOW "%s" (%o) because "%s"', details.url, details, result); // https://github.com/gorhill/uBlock/issues/114 - if ( isFrame && details.frameId > 0 ) { - pageStore.setFrame(details.frameId, requestURL); + frameId = details.frameId; + if ( frameId > 0 ) { + if ( isFrame ) { + pageStore.setFrame(frameId, requestURL); + } else if ( pageStore.getFrame(frameId) === null ) { + pageStore.setFrame(frameId, requestURL); + } } // https://code.google.com/p/chromium/issues/detail?id=387198 |