Closed Bug 306358 Opened 19 years ago Closed 19 years ago

Dragging and dropping of text in search bar gives js error.

Categories

(Firefox :: Search, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: martijn.martijn, Assigned: Gavin)

References

Details

(Keywords: fixed1.8, regression)

Attachments

(1 file, 2 obsolete files)

I get this error: Error: this.mEnterEvent has no properties Source File: chrome://browser/content/search.xml Line: 307 And the search isn't working anymore. I think this is a regression from bug 235204.
Attached patch patch (obsolete) — Splinter Review
This fixes it for me.
Attachment #194213 - Flags: review?(mconnor)
Blocks: 235204
This patch would make bug 304850 obsolete, by the way.
Comment on attachment 194213 [details] [diff] [review] patch >Index: browser/base/content/search.xml >+ var altKeyPressed = false; >+ if (aEvent) >+ this.mEnterEvent = aEvent; > SearchLoadURL(searchURL, this.mEnterEvent.altKey); altKeyPressed isn't being used, and I think the equivalent of (aEvent || this.mEnterEvent).altKey would work just as well, without needing to set mEnterEvent.
Attachment #194213 - Flags: review?(mconnor) → review-
Attached patch comments addressed (obsolete) — Splinter Review
Assignee: nobody → gavin.sharp
Attachment #194213 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #194253 - Flags: review?(bugs.mano)
Comment on attachment 194253 [details] [diff] [review] comments addressed r=mano.
Attachment #194253 - Flags: review?(bugs.mano) → review+
OS: Windows XP → All
Hardware: PC → All
Version: unspecified → Trunk
Attached patch tweakSplinter Review
After thinking a little bit, I think this may be better, to deal with the case of extension authors (like Paste and Go) who just call onTextEntered without an event param.
Attachment #194253 - Attachment is obsolete: true
Attachment #194333 - Flags: review?(bugs.mano)
Comment on attachment 194333 [details] [diff] [review] tweak makes sense, r=mano.
Attachment #194333 - Flags: review?(bugs.mano) → review+
No longer blocks: 235204
Depends on: 235204
Fixed on trunk. mozilla/browser/base/content/search.xml; new revision: 1.28;
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Blocks: 235204
No longer depends on: 235204
Fixed on the 1.8 branch by bug 235204.
Keywords: fixed1.8
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: