diff options
Diffstat (limited to 'src/bg/deferWebTraffic.js')
-rw-r--r-- | src/bg/deferWebTraffic.js | 2 |
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); |