bug 258901: View Image should be disabled / not show on context menu when only image is being viewed (checking this back in without the error)

patch by Florian Qu��ze <f.qu@queze.net>, r=mconnor, a=mconner
This commit is contained in:
db48x%yahoo.com 2006-06-28 17:32:48 +00:00
parent 9f0142082b
commit e2531b25c0

View File

@ -4385,7 +4385,7 @@ nsContextMenu.prototype = {
this.setItemAttr( "context-setDesktopBackground", "disabled", this.disableSetDesktopBackground());
// View Image depends on whether an image was clicked on.
this.showItem( "context-viewimage", this.onImage && !this.onStandaloneImage );
this.showItem( "context-viewimage", this.onImage && ( !this.onStandaloneImage || this.inFrame ) );
// View background image depends on whether there is one.
this.showItem( "context-viewbgimage", !( this.inDirList || this.onImage || this.isContentSelected || this.onLink || this.onTextInput ) );