From 1b66ce8b40857a34986afd81f8eea03d1a176e94 Mon Sep 17 00:00:00 2001 From: gorhill Date: Sun, 15 Feb 2015 11:16:48 -0500 Subject: [PATCH] #795: code review as per @Deathamns feedback --- platform/firefox/frameModule.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/firefox/frameModule.js b/platform/firefox/frameModule.js index dd07c69..e0915eb 100644 --- a/platform/firefox/frameModule.js +++ b/platform/firefox/frameModule.js @@ -151,10 +151,10 @@ const contentObserver = { // 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 isTopLevel = context === context.top; let parentFrameId; - if ( isTopLevel ) { + if ( isTopLevel && type === this.MAIN_FRAME ) { parentFrameId = -1; } else if ( context.parent === context.top ) { parentFrameId = 0;