Bug 1875466 - Remove browser.opaqueResponseBlocking.syntheticBrowsingContext pref. r=emilio
Depends on D199115 Differential Revision: https://phabricator.services.mozilla.com/D199116
This commit is contained in:
@@ -3646,14 +3646,6 @@ nsCSSFrameConstructor::FindInputData(const Element& aElement,
|
||||
ArrayLength(sInputData));
|
||||
}
|
||||
|
||||
static nsIFrame* NS_NewSubDocumentOrImageFrame(mozilla::PresShell* aPresShell,
|
||||
mozilla::ComputedStyle* aStyle) {
|
||||
return StaticPrefs::
|
||||
browser_opaqueResponseBlocking_syntheticBrowsingContext_AtStartup()
|
||||
? NS_NewSubDocumentFrame(aPresShell, aStyle)
|
||||
: NS_NewImageFrame(aPresShell, aStyle);
|
||||
}
|
||||
|
||||
/* static */
|
||||
const nsCSSFrameConstructor::FrameConstructionData*
|
||||
nsCSSFrameConstructor::FindObjectData(const Element& aElement,
|
||||
@@ -3684,7 +3676,7 @@ nsCSSFrameConstructor::FindObjectData(const Element& aElement,
|
||||
SIMPLE_INT_CREATE(nsIObjectLoadingContent::TYPE_FALLBACK,
|
||||
ToCreationFunc(NS_NewBlockFrame)),
|
||||
SIMPLE_INT_CREATE(nsIObjectLoadingContent::TYPE_IMAGE,
|
||||
NS_NewSubDocumentOrImageFrame),
|
||||
NS_NewSubDocumentFrame),
|
||||
SIMPLE_INT_CREATE(nsIObjectLoadingContent::TYPE_DOCUMENT,
|
||||
NS_NewSubDocumentFrame),
|
||||
// Fake plugin handlers load as documents
|
||||
|
||||
Reference in New Issue
Block a user