Bug 1173523 - Part 8: Update ForgetAboutSite.jsm to use new API for nsIPermission, r=ehsan

This commit is contained in:
Michael Layzell 2015-06-02 13:15:45 -04:00 committed by Ehsan Akhgari
parent d8ae37b10a
commit 5ba5ba3555

View File

@ -140,9 +140,14 @@ this.ForgetAboutSite = {
enumerator = pm.enumerator; enumerator = pm.enumerator;
while (enumerator.hasMoreElements()) { while (enumerator.hasMoreElements()) {
let perm = enumerator.getNext().QueryInterface(Ci.nsIPermission); let perm = enumerator.getNext().QueryInterface(Ci.nsIPermission);
if (hasRootDomain(perm.host, aDomain)) try {
if (hasRootDomain(perm.principal.URI.host, aDomain)) {
pm.removePermission(perm); pm.removePermission(perm);
} }
} catch (e) {
/* Ignore entry */
}
}
// Offline Storages // Offline Storages
let qm = Cc["@mozilla.org/dom/quota/manager;1"]. let qm = Cc["@mozilla.org/dom/quota/manager;1"].