Index: lib/popupBlocker.js |
diff --git a/lib/popupBlocker.js b/lib/popupBlocker.js |
index 55cb4e594da873c5a5bb24e62dea09989d3f63d8..e57ad1636e5e7655a60efb80409ab598aefe1738 100644 |
--- a/lib/popupBlocker.js |
+++ b/lib/popupBlocker.js |
@@ -74,6 +74,10 @@ function checkPotentialPopup(tabId, popup) |
function onPopupURLChanged(details) |
{ |
+ // We only care about redirections within the top-level frame. |
+ if (details.frameId != 0) |
+ return; |
+ |
let popup = loadingPopups[details.tabId]; |
if (popup) |
{ |