зеркало из https://github.com/mozilla/pjs.git
nsIPopupManager.getEnumerator is replaced by nsIPermissionManager.getEnumerator
bug 221232, r=dwitte, sr=bryner
This commit is contained in:
Родитель
04f4f7791e
Коммит
bc6d248284
|
@ -166,15 +166,15 @@ const gPopupPrefListener =
|
|||
|
||||
var hosts = [];
|
||||
|
||||
var popupManager = Components.classes["@mozilla.org/PopupWindowManager;1"]
|
||||
.getService(Components.interfaces.nsIPopupWindowManager);
|
||||
var permManager = Components.classes["@mozilla.org/permissionmanager;1"]
|
||||
.getService(Components.interfaces.nsIPermissionManager);
|
||||
|
||||
var enumerator = popupManager.getEnumerator();
|
||||
var enumerator = permManager.enumerator;
|
||||
var count=0;
|
||||
while (enumerator.hasMoreElements()) {
|
||||
var permission = enumerator.getNext()
|
||||
.QueryInterface(Components.interfaces.nsIPermission);
|
||||
if (permission.capability == policy)
|
||||
if (permission.type == POPUP_TYPE && permission.capability == policy)
|
||||
hosts[permission.host] = permission.host;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче