From 66a657e50858d9edea47366858c5d23d57d8a456 Mon Sep 17 00:00:00 2001 From: Nika Layzell Date: Tue, 7 Aug 2018 16:02:01 +0000 Subject: [PATCH] Bug 1479588 - Check mOwnerContent when starting new remote browser, r=bzbarsky Differential Revision: https://phabricator.services.mozilla.com/D2524 --HG-- extra : moz-landing-system : lando --- dom/base/nsFrameLoader.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dom/base/nsFrameLoader.cpp b/dom/base/nsFrameLoader.cpp index d6ffe41e0107..fcc15f3fb539 100644 --- a/dom/base/nsFrameLoader.cpp +++ b/dom/base/nsFrameLoader.cpp @@ -2562,6 +2562,10 @@ nsFrameLoader::TryRemoteBrowser() { NS_ASSERTION(!mRemoteBrowser, "TryRemoteBrowser called with a remote browser already?"); + if (!mOwnerContent) { + return false; + } + //XXXsmaug Per spec (2014/08/21) frameloader should not work in case the // element isn't in document, only in shadow dom, but that will change // https://www.w3.org/Bugs/Public/show_bug.cgi?id=26365#c0