mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1173523 - Part 8: Update ForgetAboutSite.jsm to use new API for nsIPermission, r=ehsan
This commit is contained in:
parent
d8ae37b10a
commit
5ba5ba3555
@ -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"].
|
||||||
|
Loading…
Reference in New Issue
Block a user