nsIPopupManager.getEnumerator is replaced by nsIPermissionManager.getEnumerator

bug 221232, r=dwitte, sr=bryner
This commit is contained in:
mvl%exedo.nl 2006-09-14 06:08:12 +00:00
Родитель 04f4f7791e
Коммит bc6d248284
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -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;
}