Backed out 2 changesets (bug 1572798) for multiple failures. CLOSED TREE

Backed out changeset cfdebb863454 (bug 1572798)
Backed out changeset f2d3a6800638 (bug 1572798)
This commit is contained in:
Dorel Luca
2021-01-20 00:15:48 +02:00
parent 6821b45837
commit cc8fec8923
6 changed files with 9 additions and 46 deletions

View File

@@ -344,19 +344,8 @@ already_AddRefed<BrowsingContext> BrowsingContext::CreateDetached(
}
nsContentUtils::GenerateUUIDInPlace(fields.mHistoryID);
fields.mExplicitActive = [&] {
if (parentBC) {
// Non-root browsing-contexts inherit their status from its parent.
return ExplicitActiveStatus::None;
}
if (aType == Type::Content) {
// Content gets managed by the chrome front-end / embedder element and
// starts as inactive.
return ExplicitActiveStatus::Inactive;
}
// Chrome starts as active.
return ExplicitActiveStatus::Active;
}();
fields.mExplicitActive =
parentBC ? ExplicitActiveStatus::None : ExplicitActiveStatus::Active;
fields.mFullZoom = parentBC ? parentBC->FullZoom() : 1.0f;
fields.mTextZoom = parentBC ? parentBC->TextZoom() : 1.0f;
@@ -587,14 +576,6 @@ bool BrowsingContext::IsActive() const {
return false;
}
void BrowsingContext::SetInitiallyActive() {
MOZ_DIAGNOSTIC_ASSERT(!EverAttached());
MOZ_DIAGNOSTIC_ASSERT(IsContent());
MOZ_DIAGNOSTIC_ASSERT(IsTop());
mFields.SetWithoutSyncing<IDX_ExplicitActive>(ExplicitActiveStatus::Active);
}
bool BrowsingContext::GetIsActiveBrowserWindow() {
if (!XRE_IsParentProcess()) {
return Top()->GetIsActiveBrowserWindowInternal();
@@ -652,7 +633,8 @@ void BrowsingContext::SetEmbedderElement(Element* aEmbedder) {
if (XRE_IsParentProcess() && IsTopContent()) {
nsAutoString messageManagerGroup;
if (aEmbedder->IsXULElement()) {
aEmbedder->GetAttr(nsGkAtoms::messagemanagergroup, messageManagerGroup);
aEmbedder->GetAttr(kNameSpaceID_None, nsGkAtoms::messagemanagergroup,
messageManagerGroup);
}
txn.SetMessageManagerGroup(messageManagerGroup);