зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1572798 - Explicitly check for top contexts because devtools creates it.
MANUAL PUSH: Last minute orange on a CLOSED TREE
This commit is contained in:
Родитель
7db4ab6160
Коммит
43d39a406f
|
@ -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 <browser> elements are active, unless told otherwise by the
|
||||
|
|
Загрузка…
Ссылка в новой задаче