mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-13 07:24:47 +00:00
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:
parent
9f0142082b
commit
e2531b25c0
@ -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 ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user