Bug 1579897 - Make webIsolated= processes work in about:support. r=mconley,fluent-reviewers,flod

Remove the URLs so they can have a translated string in about:support.

Differential Revision: https://phabricator.services.mozilla.com/D45373

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andrew McCreight 2019-09-11 06:50:45 +00:00
Родитель 92fadc9fcd
Коммит a777ff11b6
4 изменённых файлов: 18 добавлений и 0 удалений

Просмотреть файл

@ -1372,6 +1372,7 @@ class ContentParent final : public PContentParent,
NS_DEFINE_STATIC_IID_ACCESSOR(ContentParent, NS_CONTENTPARENT_IID)
// This is the C++ version of remoteTypePrefix in E10SUtils.jsm.
const nsDependentSubstring RemoteTypePrefix(
const nsAString& aContentProcessType);
} // namespace dom

Просмотреть файл

@ -21,6 +21,10 @@ process-type-file = Local File
# permission to allocate large amounts of memory
process-type-weblargeallocation = Large Allocation
# process used to isolate a webpage from other web pages
# to improve security
process-type-webisolated = Isolated Web Content
# process used to communicate with the GPU for
# graphics acceleration
process-type-gpu = GPU

Просмотреть файл

@ -801,6 +801,14 @@ var E10SUtils = {
return [tabPid, ...pids];
},
/**
* The suffix after a `=` in a remoteType is dynamic, and used to control the
* process pool to use. The C++ version of this method is mozilla::dom::RemoteTypePrefix().
*/
remoteTypePrefix(aRemoteType) {
return aRemoteType.split("=")[0];
},
/**
* If Fission is enabled, the remote type for a standard content process will
* start with webIsolated=.

Просмотреть файл

@ -11,6 +11,9 @@ const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
const { AppConstants } = ChromeUtils.import(
"resource://gre/modules/AppConstants.jsm"
);
const { E10SUtils } = ChromeUtils.import(
"resource://gre/modules/E10SUtils.jsm"
);
const { XPCOMUtils } = ChromeUtils.import(
"resource://gre/modules/XPCOMUtils.jsm"
);
@ -359,6 +362,8 @@ var dataProviders = {
continue;
}
remoteType = E10SUtils.remoteTypePrefix(remoteType);
if (remoteTypes[remoteType]) {
remoteTypes[remoteType]++;
} else {