зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1668432 - Add Thunderbird URL schemes to lists of known parent-process schemes. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D99174
This commit is contained in:
Родитель
610cbaea58
Коммит
7cd09624c7
|
@ -9504,6 +9504,13 @@ bool nsDocShell::CanLoadInParentProcess(nsIURI* aURI) {
|
|||
uri->SchemeIs("moz-extension"))) {
|
||||
return true;
|
||||
}
|
||||
#ifdef MOZ_THUNDERBIRD
|
||||
if (uri->SchemeIs("imap") || uri->SchemeIs("mailbox") ||
|
||||
uri->SchemeIs("news") || uri->SchemeIs("nntp") ||
|
||||
uri->SchemeIs("snews")) {
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
nsAutoCString scheme;
|
||||
uri->GetScheme(scheme);
|
||||
// Allow ext+foo URIs (extension-registered custom protocols). See
|
||||
|
|
|
@ -511,6 +511,13 @@ var E10SUtils = {
|
|||
|
||||
return NOT_REMOTE;
|
||||
|
||||
case "imap":
|
||||
case "mailbox":
|
||||
case "news":
|
||||
case "nntp":
|
||||
case "snews":
|
||||
return NOT_REMOTE;
|
||||
|
||||
default:
|
||||
// WebExtensions may set up protocol handlers for protocol names
|
||||
// beginning with ext+. These may redirect to http(s) pages or to
|
||||
|
|
Загрузка…
Ссылка в новой задаче