diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-11 07:28:32 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-11 07:28:32 +0200 |
commit | 39f12daed671f6bb6a12427cad9c5b29f1d20ec2 (patch) | |
tree | c4f59ebb4a14e997aad1c17497e2404f57ff0721 /application | |
parent | e341862cac8414b6a5e921a877301c6246d2d6c0 (diff) | |
download | UXP-39f12daed671f6bb6a12427cad9c5b29f1d20ec2.tar UXP-39f12daed671f6bb6a12427cad9c5b29f1d20ec2.tar.gz UXP-39f12daed671f6bb6a12427cad9c5b29f1d20ec2.tar.lz UXP-39f12daed671f6bb6a12427cad9c5b29f1d20ec2.tar.xz UXP-39f12daed671f6bb6a12427cad9c5b29f1d20ec2.zip |
[PALEMOON] Fix Sanitize (e.g. "Offline" - "Clear Recent History" - "Offline Website Data"): Quota Manager => Quota Manager Service
Issue #57
Diffstat (limited to 'application')
-rw-r--r-- | application/palemoon/modules/QuotaManager.jsm | 14 |
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); + } } }; |