Backed out 5 changesets (bug 1646899) for mochitest failures on DocumentLoadListener.cpp . CLOSED TREE
Backed out changeset f41ac122a801 (bug 1646899) Backed out changeset 86a5e0827050 (bug 1646899) Backed out changeset d2fd0f955e24 (bug 1646899) Backed out changeset 7a7194146fe1 (bug 1646899) Backed out changeset 4731d76dae88 (bug 1646899)
This commit is contained in:
@@ -8691,8 +8691,7 @@ nsresult nsDocShell::InternalLoad(nsDocShellLoadState* aLoadState) {
|
||||
// Similar check will be performed by the ParentProcessDocumentChannel if in
|
||||
// use.
|
||||
if (XRE_IsE10sParentProcess() &&
|
||||
!DocumentChannel::CanUseDocumentChannel(aLoadState->URI(),
|
||||
aLoadState->LoadFlags()) &&
|
||||
!DocumentChannel::CanUseDocumentChannel(aLoadState) &&
|
||||
!CanLoadInParentProcess(aLoadState->URI())) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
@@ -9253,26 +9252,9 @@ nsIPrincipal* nsDocShell::GetInheritedPrincipal(
|
||||
if (nsCOMPtr<nsITimedChannel> timedChannel = do_QueryInterface(channel)) {
|
||||
timedChannel->SetTimingEnabled(true);
|
||||
|
||||
nsString initiatorType;
|
||||
switch (aLoadInfo->InternalContentPolicyType()) {
|
||||
case nsIContentPolicy::TYPE_INTERNAL_EMBED:
|
||||
initiatorType = u"embed"_ns;
|
||||
break;
|
||||
case nsIContentPolicy::TYPE_INTERNAL_OBJECT:
|
||||
initiatorType = u"object"_ns;
|
||||
break;
|
||||
default: {
|
||||
const auto& embedderElementType =
|
||||
aBrowsingContext->GetEmbedderElementType();
|
||||
if (embedderElementType) {
|
||||
initiatorType = *embedderElementType;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!initiatorType.IsEmpty()) {
|
||||
timedChannel->SetInitiatorType(initiatorType);
|
||||
auto& embedderElementType = aBrowsingContext->GetEmbedderElementType();
|
||||
if (embedderElementType) {
|
||||
timedChannel->SetInitiatorType(*embedderElementType);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9589,11 +9571,10 @@ nsresult nsDocShell::DoURILoad(nsDocShellLoadState* aLoadState,
|
||||
mBrowsingContext, Some(uriModified), Some(isXFOError));
|
||||
|
||||
nsCOMPtr<nsIChannel> channel;
|
||||
if (DocumentChannel::CanUseDocumentChannel(aLoadState->URI(),
|
||||
aLoadState->LoadFlags())) {
|
||||
channel = DocumentChannel::CreateForDocument(aLoadState, loadInfo,
|
||||
loadFlags, this, cacheKey,
|
||||
uriModified, isXFOError);
|
||||
if (DocumentChannel::CanUseDocumentChannel(aLoadState)) {
|
||||
channel = DocumentChannel::CreateDocumentChannel(aLoadState, loadInfo,
|
||||
loadFlags, this, cacheKey,
|
||||
uriModified, isXFOError);
|
||||
MOZ_ASSERT(channel);
|
||||
|
||||
// Disable keyword fixup when using DocumentChannel, since
|
||||
|
||||
Reference in New Issue
Block a user