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 ) {