From 0f629c9df8a0f4646d236ebef19aa82d6243a139 Mon Sep 17 00:00:00 2001 From: gorhill Date: Sun, 15 Feb 2015 08:12:56 -0500 Subject: [PATCH] this fixes #795 --- platform/firefox/frameModule.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/firefox/frameModule.js b/platform/firefox/frameModule.js index 53d04f8..dd07c69 100644 --- a/platform/firefox/frameModule.js +++ b/platform/firefox/frameModule.js @@ -149,7 +149,9 @@ const contentObserver = { return this.ACCEPT; } - let isTopLevel = context === context.top; + // https://github.com/gorhill/uBlock/issues/795 + // Only the top main frame can be an orphan + let isTopLevel = context === context.top && type === this.MAIN_FRAME; let parentFrameId; if ( isTopLevel ) {