diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-09-22 13:37:52 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-09-22 13:37:52 +0200 |
commit | bb81b207635402c9b8bc6355c50f891bd3ef3453 (patch) | |
tree | d91e867c22081d9647943f47e772b4cf4dde74ff /application/palemoon/components/preferences | |
parent | 3c04affe204870cef155a50efff39460e274390c (diff) | |
download | UXP-bb81b207635402c9b8bc6355c50f891bd3ef3453.tar UXP-bb81b207635402c9b8bc6355c50f891bd3ef3453.tar.gz UXP-bb81b207635402c9b8bc6355c50f891bd3ef3453.tar.lz UXP-bb81b207635402c9b8bc6355c50f891bd3ef3453.tar.xz UXP-bb81b207635402c9b8bc6355c50f891bd3ef3453.zip |
Use SSM's createCodebasePrincipalFromOrigin() instead of the nonexistent BrowserUtils.principalFromOrigin()
This resolves #734.
Diffstat (limited to 'application/palemoon/components/preferences')
-rw-r--r-- | application/palemoon/components/preferences/advanced.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/application/palemoon/components/preferences/advanced.js b/application/palemoon/components/preferences/advanced.js index 0803496fe..aab58b386 100644 --- a/application/palemoon/components/preferences/advanced.js +++ b/application/palemoon/components/preferences/advanced.js @@ -455,7 +455,7 @@ var gAdvancedPane = { var list = document.getElementById("offlineAppsList"); var item = list.selectedItem; var origin = item.getAttribute("origin"); - var principal = BrowserUtils.principalFromOrigin(origin); + var principal = Services.scriptSecurityManager.createCodebasePrincipalFromOrigin(origin); var prompts = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] .getService(Components.interfaces.nsIPromptService); @@ -474,7 +474,7 @@ var gAdvancedPane = { // get the permission var pm = Components.classes["@mozilla.org/permissionmanager;1"] .getService(Components.interfaces.nsIPermissionManager); - var perm = pm.getPermissionObject(principal, "offline-app"); + var perm = pm.getPermissionObject(principal, "offline-app", true); if (perm) { // clear offline cache entries try { |