rem: if( !("complete" in this.target) || this.target.complete ) { 
add: if (wallpaperItem) { if( !("complete" in this.target) || this.target.complete ) { 
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 );        this.showItem( "context-sep-image", this.onImage );        if( isWin && this.onImage ) {            var wallpaperItem = document.getElementById("context-setWallpaper");            // Disable the Set As Wallpaper menu item if we're still trying to load the image            if( !("complete" in this.target) || this.target.complete ) {                wallpaperItem.removeAttribute("disabled");            } else {                wallpaperItem.setAttribute("disabled", "true");            }        }        // 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: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/59d4edb26c1ee8dddca5254152d43e6f65699ada/nsContextMenu.js/buggy/suite/common/nsContextMenu.js