зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1317101 - Part 7d: Load moz-extension: URLs remotely based on a pref. r=billm
MozReview-Commit-ID: Kxt9mDMdPQk --HG-- extra : rebase_source : 77ea447ec1c6977c2fa5506311c76ddf38929126 extra : source : 0f8144296a9d8e67a4f307491559a0051f95a9a7
This commit is contained in:
Родитель
73f6cab403
Коммит
4c0fec6cab
|
@ -9,6 +9,10 @@ this.EXPORTED_SYMBOLS = ["E10SUtils"];
|
|||
const {interfaces: Ci, utils: Cu, classes: Cc} = Components;
|
||||
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
|
||||
XPCOMUtils.defineLazyPreferenceGetter(this, "useRemoteWebExtensions",
|
||||
"extensions.webextensions.remote", false);
|
||||
|
||||
function getAboutModule(aURL) {
|
||||
// Needs to match NS_GetAboutModuleName
|
||||
|
@ -119,7 +123,7 @@ this.E10SUtils = {
|
|||
}
|
||||
|
||||
if (aURL.startsWith("moz-extension:")) {
|
||||
return NOT_REMOTE;
|
||||
return useRemoteWebExtensions ? WEB_REMOTE_TYPE : NOT_REMOTE;
|
||||
}
|
||||
|
||||
if (aURL.startsWith("view-source:")) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче