summaryrefslogtreecommitdiff
path: root/src/bg/deferWebTraffic.js
diff options
context:
space:
mode:
authorhackademix2019-02-01 00:28:33 +0100
committerhackademix2019-02-01 00:28:33 +0100
commit781514cfb946fb49bc1e2c52f16f808f26856f41 (patch)
treefb1e23838f73b6330d769d2f7417a7cfc78981c1 /src/bg/deferWebTraffic.js
parentd076a517ba97da60791ded641a7952a784203d59 (diff)
downloadnoscript-781514cfb946fb49bc1e2c52f16f808f26856f41.tar.gz
noscript-781514cfb946fb49bc1e2c52f16f808f26856f41.tar.xz
noscript-781514cfb946fb49bc1e2c52f16f808f26856f41.zip
Graceful degradation for missing WebExtensions APIs on Chromium.
Diffstat (limited to 'src/bg/deferWebTraffic.js')
-rw-r--r--src/bg/deferWebTraffic.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bg/deferWebTraffic.js b/src/bg/deferWebTraffic.js
index a384e29..571073a 100644
--- a/src/bg/deferWebTraffic.js
+++ b/src/bg/deferWebTraffic.js
@@ -31,7 +31,7 @@ function deferWebTraffic(promiseToWaitFor, next) {
if (type === "main_frame") {
seenTabs.add(tabId);
} else if (documentUrl) {
- if (frameId !== 0) {
+ if (frameId !== 0 && request.frameAncestors) {
documentUrl = request.frameAncestors.pop().url;
}
reloadTab(tabId);