rem:  var isWin = navigator.appVersion.indexOf("Windows") != -1; this.showItem( "context-setWallpaper", isWin && this.onImage ); 
add:  var haveSetWallpaper = false; #ifdef HAVE_SHELL_SERVICE  var shell = getShellService(); if (shell) haveSetWallpaper = true; #endif this.showItem( "context-setWallpaper", haveSetWallpaper && this.onImage ); 
context:     initViewItems : function () {        // View source is always OK, unless in directory listing.        this.showItem( "context-viewpartialsource-selection", this.isTextSelected );        this.showItem( "context-viewpartialsource-mathml", this.onMathML && !this.isTextSelected );        this.showItem( "context-viewsource", !( this.inDirList || this.onImage || this.isTextSelected || this.onLink || this.onTextInput ) );        this.showItem( "context-viewinfo", !( this.inDirList || this.onImage || this.isTextSelected || this.onLink || this.onTextInput ) );        this.showItem( "context-sep-properties", !( this.inDirList || this.isTextSelected || this.onTextInput ) );        // Set As Wallpaper depends on whether an image was clicked on, and only works on Windows.        var isWin = navigator.appVersion.indexOf("Windows") != -1;        this.showItem( "context-setWallpaper", isWin && this.onImage );        if( isWin && this.onImage )            // Disable the Set As Wallpaper menu item if we're still trying to load the image          this.setItemAttr( "context-setWallpaper", "disabled", (("complete" in this.target) && !this.target.complete) ? "true" : null );        // View Image depends on whether an image was clicked on.        this.showItem( "context-viewimage", this.onImage );        // View background image depends on whether there is one.        this.showItem( "context-viewbgimage", !( this.inDirList || this.onImage || this.isTextSelected || this.onLink || this.onTextInput ) );        this.showItem( "context-sep-viewbgimage", !( this.inDirList || this.onImage || this.isTextSelected || this.onLink || this.onTextInput ) );        this.setItemAttr( "context-viewbgimage", "disabled", this.hasBGImage ? null : "true");    },
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/56b2b34f2b6ab28fc4a8ba91baf3be478a9cc983/browser.js/buggy/browser/base/content/browser.js