rem: else if (makeURI(this.target.src).scheme == "javascript") disableDesktopBackground = true; 
context:     initViewItems : function () {        // View source is always OK, unless in directory listing.        this.showItem( "context-viewpartialsource-selection", this.isContentSelected );        this.showItem( "context-viewpartialsource-mathml", this.onMathML && !this.isContentSelected );        this.showItem( "context-viewsource", !( this.inDirList || this.onImage || this.isContentSelected || this.onLink || this.onTextInput ) );        this.showItem( "context-viewinfo", !( this.inDirList || this.onImage || this.isContentSelected || this.onLink || this.onTextInput ) );        this.showItem( "context-sep-properties", !( this.inDirList || this.isContentSelected || this.onTextInput ) );        // Set as Desktop background depends on whether an image was clicked on,        // and only works if we have a shell service.        var haveSetDesktopBackground = false;#ifdef HAVE_SHELL_SERVICE        // Only enable Set as Desktop Background if we can get the shell service.        var shell = getShellService();        if (shell)          haveSetDesktopBackground = true;#endif        this.showItem( "context-setDesktopBackground", haveSetDesktopBackground && this.onImage );        if ( haveSetDesktopBackground && this.onImage ) {            // Disable the Set as Desktop Background menu item if we're still trying            // to load the image or the load failed            const nsIImageLoadingContent = Components.interfaces.nsIImageLoadingContent;            var disableDesktopBackground = false;            if (("complete" in this.target) && !this.target.complete)                disableSetWallpaper = true;            else if (this.target instanceof nsIImageLoadingContent) {                var request = this.target.QueryInterface(nsIImageLoadingContent)                                  .getRequest(nsIImageLoadingContent.CURRENT_REQUEST);                if (!request)                    disableDesktopBackground = true;            }            else if (makeURI(this.target.src).scheme == "javascript")                disableDesktopBackground = true;                           this.setItemAttr( "context-setDesktopBackground", "disabled", disableDesktopBackground);        }        // View Image depends on whether an image was clicked on.        this.showItem( "context-viewimage", this.onImage  && !this.onStandaloneImage );        // View background image depends on whether there is one.        this.showItem( "context-viewbgimage", !( this.inDirList || this.onImage || this.isContentSelected || this.onLink || this.onTextInput ) );        this.showItem( "context-sep-viewbgimage", !( this.inDirList || this.onImage || this.isContentSelected || this.onLink || this.onTextInput ) );        this.setItemAttr( "context-viewbgimage", "disabled", this.hasBGImage ? null : "true");    },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/2c45cb0eccc2944ab3e35d62bbbc32e5df533e23/browser.js/clean/browser/base/content/browser.js