Bug 1304140 - Part 1: Implement support for the Large-Allocation header behind the dom.largeAllocationHeader.enabled pref, r=smaug

MozReview-Commit-ID: 5KBIu6Fc3Ea
This commit is contained in:
Michael Layzell
2016-10-21 16:56:51 -04:00
parent 622b691603
commit cb46a4fd67
22 changed files with 375 additions and 38 deletions

View File

@@ -174,10 +174,17 @@ nsFrameLoader::nsFrameLoader(Element* aOwner, nsPIDOMWindowOuter* aOpener, bool
, mClampScrollPosition(true)
, mObservingOwnerContent(false)
, mVisible(true)
, mFreshProcess(false)
{
mRemoteFrame = ShouldUseRemoteProcess();
MOZ_ASSERT(!mRemoteFrame || !aOpener,
"Cannot pass aOpener for a remote frame!");
// Check if we are supposed to load into a fresh process
mFreshProcess = mOwnerContent->AttrValueIs(kNameSpaceID_None,
nsGkAtoms::freshProcess,
nsGkAtoms::_true,
eCaseMatters);
}
nsFrameLoader::~nsFrameLoader()
@@ -2727,7 +2734,8 @@ nsFrameLoader::TryRemoteBrowser()
NS_ENSURE_SUCCESS(rv, false);
nsCOMPtr<Element> ownerElement = mOwnerContent;
mRemoteBrowser = ContentParent::CreateBrowserOrApp(context, ownerElement, openerContentParent);
mRemoteBrowser = ContentParent::CreateBrowserOrApp(context, ownerElement,
openerContentParent, mFreshProcess);
if (!mRemoteBrowser) {
return false;
}