Closed Bug 228536 Opened 21 years ago Closed 21 years ago

Warning ``reference to undefined property this.onStandaloneImage'' [xs] in file ``chrome://communicator/content/nsContextMenu.js'', line 141, character 0.

Categories

(SeaMonkey :: UI Design, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: timeless, Assigned: neil)

Details

Attachments

(1 file, 1 obsolete file)

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031208 Warning ``reference to undefined property this.onStandaloneImage'' [xs] in file ``chrome://communicator/content/nsContextMenu.js'', line 141, character 0. Stopped for error handler. #0: function anonymous() in <chrome://communicator/content/nsContextMenu.js> line 141 139: // Set As Wallpaper depends on whether an image was clicked on, and only works on Windows. 140: var isWin = navigator.appVersion.indexOf("Windows") != -1; 141: this.showItem( "context-setWallpaper", isWin && (this.onImage || this.onStandaloneImage)); 142: 143: this.showItem( "context-sep-image", this.onImage || this.onStandaloneImage);
Attached patch add it to the constructor (obsolete) — Splinter Review
Attachment #137452 - Flags: superreview?(bz-vacation)
Attachment #137452 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 137452 [details] [diff] [review] add it to the constructor sr=bzbarsky
Attachment #137452 - Flags: superreview?(bz-vacation) → superreview+
Attached patch Bail out earlierSplinter Review
Don't bother constructing the context menu if we're not going to show it.
Attachment #137668 - Flags: review?(timeless)
Attachment #137668 - Flags: superreview?(bz-vacation)
Attachment #137668 - Flags: review?(timeless)
Attachment #137668 - Flags: review+
Attachment #137452 - Attachment is obsolete: true
Attachment #137452 - Flags: review?(neil.parkwaycc.co.uk)
Assignee: timeless → neil.parkwaycc.co.uk
Comment on attachment 137668 [details] [diff] [review] Bail out earlier sr=bzbarsky; I'd say we want both of these patches...
Attachment #137668 - Flags: superreview?(bz-vacation) → superreview+
Fix checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Product: Core → Mozilla Application Suite
Component: XP Apps: GUI Features → UI Design
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: