rem: return result; 
add: if (!result) { /* pref is not set so return false */ return false; }  /* determine if image is already being blocked */ var cookieViewer = this.createInstance ("component: var list = cookieViewer.GetPermissionValue(1); var permissionList  = list.split(list[0]); for(var i = 1; i < permissionList.length; i+=2) { permStr = permissionList[i+1]; var type = permStr.substring(0,1); if (type == "-") { /* some host is being blocked, need to find out if it's our image's host */ var host = permStr.substring(1,permStr.length); if (this.imageURL.search(host) != -1) { /* it's our image's host that's being blocked */ return false; } } } /* image is not already being blocked, so "Block Image" can appear on the menu */ return true; 
context:     isBlockingImages: function () {        var pref = this.getService( 'component://netscape/preferences', 'nsIPref' );        var result = false;        try {           result = pref.GetBoolPref( "imageblocker.enabled" );        } catch(e) {        }        return result;    },
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/a61f227e57dbba892fc77c60f6bf5979b628418a/nsContextMenu.js/clean/xpfe/browser/resources/content/nsContextMenu.js