Closed Bug 595228 Opened 14 years ago Closed 14 years ago

assert in search code; calling unbind without a function

Categories

(Firefox Graveyard :: Panorama, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 4.0b7

People

(Reporter: iangilman, Assigned: raymondlee)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file, 1 obsolete file)

trace: tabview assert: Must provide a function
iQClass_unbind("keydown",null)@chrome://browser/content/tabview.js:709
switchToBeforeMode()@chrome://browser/content/tabview.js:7449
()@chrome://browser/content/tabview.js:7404
SearchEventHandlerClass()@chrome://browser/content/tabview.js:7377
@chrome://browser/content/tabview.js:7576

  // ----------
  // Function: switchToBeforeMode
  // Make sure the event handlers are appropriate for
  // the before-search mode. 
  switchToBeforeMode: function switchToBeforeMode() {
    var self = this;
    iQ(document).unbind("keydown", this.currentHandler);
    this.currentHandler = function(event) self.beforeSearchKeyHandler(event);
    iQ(document).keydown(self.currentHandler);
  },

Need to check currentHandler before unbinding.
Attached patch v1 (obsolete) — Splinter Review
Assignee: nobody → raymond
Attachment #474453 - Flags: feedback?(ian)
Comment on attachment 474453 [details] [diff] [review]
v1

Looks great. Thanks for taking care of this.
Attachment #474453 - Flags: review?(dietrich)
Attachment #474453 - Flags: feedback?(ian)
Attachment #474453 - Flags: feedback+
Attachment #474453 - Flags: review?(dietrich)
Attachment #474453 - Flags: review+
Attachment #474453 - Flags: approval2.0+
Attachment #474453 - Attachment is obsolete: true
Keywords: checkin-needed
http://hg.mozilla.org/mozilla-central/rev/b836c7151fc6
Status: NEW → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 4.0b6
Whiteboard: [qa-]
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: