Closed Bug 1243295 Opened 9 years ago Closed 9 years ago

TypeError: searchbar.inputChanged is not a function from UITour.jsm running browser_UITour3.js

Categories

(Firefox :: Tours, defect)

43 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 47
Tracking Status
firefox47 --- fixed

People

(Reporter: MattN, Assigned: florian)

References

Details

(Keywords: regression, Whiteboard: [fxsearch])

Attachments

(1 file)

A coding exception was thrown in a Promise resolution callback. See https://developer.mozilla.org/Mozilla/JavaScript_code_modules/Promise.jsm/Promise Full message: TypeError: searchbar.inputChanged is not a function Full stack: this.UITour.onPageEvent/<@resource:///modules/UITour.jsm:664:11 Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:933:23 this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:812:7 Promise*this.PromiseWalker.scheduleWalkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:743:11 this.PromiseWalker.schedulePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:775:7 Promise.prototype.then@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:450:5 this.UITour.getTarget@resource:///modules/UITour.jsm:959:5 this.UITour.onPageEvent@resource:///modules/UITour.jsm:660:29 Florian, do you know the story behind this? It seems like the implementation of setSearchTerm is stale. Can we fix it or remove it?
Flags: needinfo?(florian)
(In reply to Matthew N. [:MattN] from comment #0) > Florian, do you know the story behind this? It seems like the implementation > of setSearchTerm is stale. Can we fix it or remove it? I don't know if/how setSearchTerm is/was used, unfortunately. But the JS error you report looks like my mistake: http://hg.mozilla.org/mozilla-central/diff/43d39d5f35b2/browser/components/search/content/search.xml#l1.264
Blocks: 1119250
Flags: needinfo?(florian)
Keywords: regression
Attached patch FixSplinter Review
Attachment #8712631 - Flags: review?(MattN+bmo)
Assignee: nobody → florian
Status: NEW → ASSIGNED
Attachment #8712631 - Flags: review?(MattN+bmo) → review+
I also removed the catch with Cu.reportError so the test would have failed when this bug got instroduced.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 47
Version: unspecified → 43 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: