rem: var dataObject = parent.hPrefWindow.wsm.dataManager.pageData[window.location.href]; 
add: var dataObject = parent.hPrefWindow.wsm.dataManager.pageData["chrome: 
context: function onPopupPrefsOK(){  var permissionmanager = Components.classes["@mozilla.org/permissionmanager;1"].getService();  permissionmanager = permissionmanager.QueryInterface(Components.interfaces.nsIPermissionManager);  var dataObject = parent.hPrefWindow.wsm.dataManager.pageData[window.location.href];  if ('deletedPermissions' in dataObject) {    for (var p = 0; p < dataObject.deletedPermissions.length; ++p) {      permissionmanager.remove(dataObject.deletedPermissions[p].host, dataObject.deletedPermissions[p].type);    }  }    if ('permissions' in dataObject) {    var uri = Components.classes["@mozilla.org/network/standard-url;1"]                        .createInstance(Components.interfaces.nsIURI);        for (p = 0; p < dataObject.permissions.length; ++p) {      uri.spec = dataObject.permissions[p].host;      if (permissionmanager.testPermission(uri, "popup") != dataObject.permissions[p].perm)        permissionmanager.add(uri, "popup", nsIPermissionManager.ALLOW_ACTION);    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/ad2c14ebc1a2f69a8a616ad31a14f4b7f36e9fde/pref-features.js/clean/browser/components/prefwindow/content/pref-features.js