summaryrefslogtreecommitdiffstats
path: root/application/palemoon
diff options
context:
space:
mode:
authorNew Tobin Paradigm <email@mattatobin.com>2018-04-11 02:31:08 -0400
committerGitHub <noreply@github.com>2018-04-11 02:31:08 -0400
commitd05099428fabb85c3a8e3f480b131e58f1eeeb78 (patch)
treeb77d446d6211778b050bec9a8229e7455d60976c /application/palemoon
parentdf84e6a4f58877de6b31fdbbc2b1bc0c63afe5b6 (diff)
parent39f12daed671f6bb6a12427cad9c5b29f1d20ec2 (diff)
downloadUXP-d05099428fabb85c3a8e3f480b131e58f1eeeb78.tar
UXP-d05099428fabb85c3a8e3f480b131e58f1eeeb78.tar.gz
UXP-d05099428fabb85c3a8e3f480b131e58f1eeeb78.tar.lz
UXP-d05099428fabb85c3a8e3f480b131e58f1eeeb78.tar.xz
UXP-d05099428fabb85c3a8e3f480b131e58f1eeeb78.zip
Merge pull request #118 from janekptacijarabaci/pm_sanitize_offlineApps_1
[PALEMOON] Fix Sanitize - Offline Apps (e.g. "Offline" - "Clear Recent History" - "Offline Website Data"): Quota Manager => Quota Manager Service
Diffstat (limited to 'application/palemoon')
-rw-r--r--application/palemoon/modules/QuotaManager.jsm14
1 files changed, 10 insertions, 4 deletions
diff --git a/application/palemoon/modules/QuotaManager.jsm b/application/palemoon/modules/QuotaManager.jsm
index e03161a69..48cfe88b3 100644
--- a/application/palemoon/modules/QuotaManager.jsm
+++ b/application/palemoon/modules/QuotaManager.jsm
@@ -6,8 +6,9 @@ this.EXPORTED_SYMBOLS = ["QuotaManagerHelper"];
Components.utils.import('resource://gre/modules/Services.jsm');
-const Cc = Components.classes;
const Ci = Components.interfaces;
+const Cc = Components.classes;
+const Cu = Components.utils;
this.QuotaManagerHelper = {
clear: function(isShutDown) {
@@ -34,12 +35,17 @@ this.QuotaManagerHelper = {
}
}
}
- var qm = Cc["@mozilla.org/dom/quota/manager;1"].getService(Ci.nsIQuotaManager);
+ var qm = Cc["@mozilla.org/dom/quota-manager-service;1"]
+ .getService(Ci.nsIQuotaManagerService);
for (var dom in doms) {
var uri = Services.io.newURI(dom, null, null);
- qm.clearStoragesForURI(uri);
+ let principal = Services.scriptSecurityManager
+ .createCodebasePrincipal(uri, {});
+ qm.clearStoragesForPrincipal(principal);
}
}
- } catch(er) {}
+ } catch(er) {
+ Cu.reportError(er);
+ }
}
};