mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
Bug 1173523 - Part 8: Update ForgetAboutSite.jsm to use new API for nsIPermission, r=ehsan
This commit is contained in:
parent
650570b040
commit
3358737163
@ -140,9 +140,14 @@ this.ForgetAboutSite = {
|
||||
enumerator = pm.enumerator;
|
||||
while (enumerator.hasMoreElements()) {
|
||||
let perm = enumerator.getNext().QueryInterface(Ci.nsIPermission);
|
||||
if (hasRootDomain(perm.host, aDomain))
|
||||
try {
|
||||
if (hasRootDomain(perm.principal.URI.host, aDomain)) {
|
||||
pm.removePermission(perm);
|
||||
}
|
||||
} catch (e) {
|
||||
/* Ignore entry */
|
||||
}
|
||||
}
|
||||
|
||||
// Offline Storages
|
||||
let qm = Cc["@mozilla.org/dom/quota/manager;1"].
|
||||
|
Loading…
Reference in New Issue
Block a user