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
This commit is contained in:
Nika Layzell 2018-08-07 16:02:01 +00:00
Родитель b6ad54fb42
Коммит 66a657e508
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -2562,6 +2562,10 @@ nsFrameLoader::TryRemoteBrowser()
{ {
NS_ASSERTION(!mRemoteBrowser, "TryRemoteBrowser called with a remote browser already?"); 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 //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 // 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 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=26365#c0