rem: var uri = gBrowser.selectedBrowser.webNavigation.currentURI; 
context:     toggleImageBlocking : function (aBlock) {      var nsIPermissionManager = Components.interfaces.nsIPermissionManager;      var permissionmanager =        Components.classes["@mozilla.org/permissionmanager;1"]                  .getService(nsIPermissionManager);      var uri = this.target.QueryInterface(Components.interfaces.nsIImageLoadingContent).currentURI;      permissionmanager.add(uri, "image",                            aBlock ? nsIPermissionManager.DENY_ACTION : nsIPermissionManager.ALLOW_ACTION);      var savedmenu = this;      function undoImageBlock() {        savedmenu.toggleImageBlocking(!aBlock);      }      var uri = gBrowser.selectedBrowser.webNavigation.currentURI;      var brandBundle = document.getElementById("bundle_brand");      var app = brandBundle.getString("brandShortName");      var bundle_browser = document.getElementById("bundle_browser");      var message;      if (aBlock)        message = bundle_browser.getFormattedString("imageBlockedWarning",                                                    [app, uri.host]);      else         message = bundle_browser.getFormattedString("imageAllowedWarning",                                                    [app, uri.host]);      var notificationBox = gBrowser.getNotificationBox();      var notification = notificationBox.getNotificationWithValue("images-blocked");      if (notification)        notification.label = message;      else {        var buttons = [{          label: bundle_browser.getString("undo"),          accessKey: bundle_browser.getString("undo.accessKey"),          callback: undoImageBlock         }];         const priority = notificationBox.PRIORITY_WARNING_MEDIUM;         notificationBox.appendNotification(message, "images-blocked",                                            "chrome://browser/skin/Info.png",                                             priority, buttons);      }      // Reload the page to show the effect instantly      BrowserReload();    },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/040f6fde63629fe955f39659b4bf2f2195bc734b/browser.js/buggy/browser/base/content/browser.js