Bug 1508644 - Remove systemPrincipal fallback from Docshell EndPageLoad. r=ckerschb

Differential Revision: https://phabricator.services.mozilla.com/D12426
This commit is contained in:
Jonathan Kingston
2018-11-20 18:06:59 +00:00
parent d4b3f85106
commit 0e60243f01

View File

@@ -7304,9 +7304,8 @@ nsDocShell::EndPageLoad(nsIWebProgress* aProgress,
MaybeNotifyKeywordSearchLoading(keywordProviderName, keywordAsSent);
nsCOMPtr<nsILoadInfo> loadInfo = aChannel->GetLoadInfo();
nsCOMPtr<nsIPrincipal> triggeringPrincipal = loadInfo
? loadInfo->TriggeringPrincipal()
: nsContentUtils::GetSystemPrincipal();
MOZ_ASSERT(loadInfo, "loadInfo is required on all channels");
nsCOMPtr<nsIPrincipal> triggeringPrincipal = loadInfo->TriggeringPrincipal();
return LoadURI(newSpecW, // URI string
LOAD_FLAGS_NONE, // Load flags
nullptr, // Referring URI