зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1524992 - Don't trigger crash in about:crash* when opened from external apps r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D20891 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
4440844f6a
Коммит
f13f6cf657
|
@ -147,6 +147,12 @@ nsAboutRedirector::NewChannel(nsIURI* aURI, nsILoadInfo* aLoadInfo,
|
|||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
if (path.EqualsASCII("crashparent") || path.EqualsASCII("crashcontent")) {
|
||||
bool isExternal;
|
||||
aLoadInfo->GetLoadTriggeredFromExternal(&isExternal);
|
||||
if (isExternal) {
|
||||
return NS_ERROR_NOT_AVAILABLE;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIChannel> channel = new CrashChannel(aURI);
|
||||
channel->SetLoadInfo(aLoadInfo);
|
||||
channel.forget(aResult);
|
||||
|
|
Загрузка…
Ссылка в новой задаче