Closed Bug 823499 Opened 13 years ago Closed 13 years ago

JavaScript error: this.editor is null when opening a popup window

Categories

(SeaMonkey :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
seamonkey2.17

People

(Reporter: mcsmurf, Assigned: mz+bugzilla)

References

Details

Attachments

(1 file, 1 obsolete file)

To reproduce: 1. Open Attachment 632505 [details] 2. Click on "Open an empty window" Results: This error appears in the Error Console: Timestamp: 20.12.2012 15:04:00 Error: TypeError: this.editor is null Source File: chrome://navigator/content/urlbarBindings.xml Line: 104
This checkin added the code that throws the error: http://hg.mozilla.org/comm-central/rev/5cb1917f9106 => Bug 689139
Blocks: 689139
Adding if (!this.editor) return; before that should be enough?
As nobody objected...
Attachment #696077 - Flags: review?(neil)
Comment on attachment 696077 [details] [diff] [review] Just check if this.editor is not set [I wonder whether it's moving the test to the callers that care about it (focus definitely doesn't for instance).] >+ if (!this.editor) >+ return; Nit: needs a blank line after here.
Attachment #696077 - Flags: review?(neil) → review+
Added newline, carrying r+
Attachment #696077 - Attachment is obsolete: true
Attachment #696258 - Flags: review+
Keywords: checkin-needed
Patch does not apply, I'll fix manually: $ hg qpush -v applying bug-823499-v2.patch patching file suite/browser/urlbarBindings.xml bad hunk #1 @@ -96,16 +96,18 @@ (16 16 19 18) patch failed, rejects left in working dir errors during apply, please fix and refresh bug-823499-v2.patch
Assignee: nobody → pppx
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.17
Keywords: checkin-needed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: