From 43d39a406f80bae17999d50b0ae992955dfcccf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Tue, 19 Jan 2021 21:24:32 +0100 Subject: [PATCH] Bug 1572798 - Explicitly check for top contexts because devtools creates it. MANUAL PUSH: Last minute orange on a CLOSED TREE --- dom/base/nsFrameLoader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dom/base/nsFrameLoader.cpp b/dom/base/nsFrameLoader.cpp index 6ba4b2325574..00a0003cd378 100644 --- a/dom/base/nsFrameLoader.cpp +++ b/dom/base/nsFrameLoader.cpp @@ -3816,7 +3816,8 @@ bool nsFrameLoader::EnsureBrowsingContextAttached() { rv = mPendingBrowsingContext->SetRemoteSubframes(useRemoteSubframes); NS_ENSURE_SUCCESS(rv, false); - if (isContent && mOwnerContent->IsXULElement() && + if (isContent && mPendingBrowsingContext->IsTop() && + mOwnerContent->IsXULElement() && !mOwnerContent->AttrValueIs(kNameSpaceID_None, nsGkAtoms::initiallyactive, nsGkAtoms::_false, eIgnoreCase)) { // Content elements are active, unless told otherwise by the