add:  if( isWin && this.onImage ) { var wallpaperItem = document.getElementById("context-setWallpaper");  if( !("complete" in this.target) || this.target.complete ) { wallpaperItem.removeAttribute("disabled"); } else { wallpaperItem.setAttribute("disabled", "true"); } } 
context:     initViewItems : function () {        // View source is always OK, unless in directory listing.        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.        this.showItem( "context-setWallpaper", this.onImage && navigator.appVersion.indexOf("Windows") != -1);                this.showItem( "context-sep-image", this.onImage );        // 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 ) );        var menuitem = document.getElementById("context-viewbgimage");        if (this.hasBGImage)          menuitem.removeAttribute("disabled");        else          menuitem.setAttribute("disabled", "true");    },
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/6ade1182185f531a37dce58fb92d2f5069897a73/nsContextMenu.js/buggy/xpfe/communicator/resources/content/nsContextMenu.js