Bug 1630691: Part 2 - Get rid of the "dom.mozBrowserFramesEnabled" pref. r=nika

Differential Revision: https://phabricator.services.mozilla.com/D71227
This commit is contained in:
Kris Maglione
2020-04-29 19:29:11 +00:00
parent d040e38be1
commit 0ea5d93998
4 changed files with 2 additions and 34 deletions

View File

@@ -255,9 +255,8 @@ nsresult nsGenericHTMLFrameElement::AfterSetAttr(
}
}
} else if (aName == nsGkAtoms::mozbrowser) {
mReallyIsBrowser =
!!aValue && StaticPrefs::dom_mozBrowserFramesEnabled() &&
XRE_IsParentProcess() && NodePrincipal()->IsSystemPrincipal();
mReallyIsBrowser = !!aValue && XRE_IsParentProcess() &&
NodePrincipal()->IsSystemPrincipal();
}
}