зеркало из https://github.com/mozilla/gecko-dev.git
Bug 783573 - Remove permissions whitelist from navigator.mozApps [r=gwagner]
This commit is contained in:
Родитель
a62e29e4f5
Коммит
1691fd189d
|
@ -111,15 +111,6 @@ let DOMApplicationRegistry = {
|
|||
}).bind(this));
|
||||
}
|
||||
}).bind(this));
|
||||
|
||||
try {
|
||||
let hosts = Services.prefs.getCharPref("dom.mozApps.whitelist");
|
||||
hosts.split(",").forEach(function(aHost) {
|
||||
Services.perms.add(Services.io.newURI(aHost, null, null),
|
||||
"webapps-manage",
|
||||
Ci.nsIPermissionManager.ALLOW_ACTION);
|
||||
});
|
||||
} catch(e) { }
|
||||
},
|
||||
|
||||
#ifdef MOZ_SYS_MSG
|
||||
|
|
|
@ -17,7 +17,8 @@ Components.classes["@mozilla.org/permissionmanager;1"]
|
|||
"webapps-manage",
|
||||
Components.interfaces.nsIPermissionManager.ALLOW_ACTION);
|
||||
|
||||
SpecialPowers.setCharPref("dom.mozApps.whitelist", "http://mochi.test:8888");
|
||||
SpecialPowers.addPermission("webapps-manage", true, "http://mochi.test:8888");
|
||||
|
||||
SpecialPowers.setBoolPref('dom.mozBrowserFramesEnabled', true);
|
||||
SpecialPowers.setBoolPref('browser.mozApps.installer.dry_run', true);
|
||||
SpecialPowers.setBoolPref("dom.mozBrowserFramesWhitelist", "http://www.example.com");
|
||||
|
|
Загрузка…
Ссылка в новой задаче