Closed Bug 1013722 Opened 11 years ago Closed 11 years ago

ContentSearch.jsm: TypeError: msg.target.messageManager is undefined

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 32

People

(Reporter: adw, Assigned: adw)

References

Details

(Whiteboard: p=2 s=it-32c-31a-30b.2 [qa-])

Attachments

(1 file)

After bug 1009313 landed, when I run the TART test locally I often but not always see: > A coding exception was thrown in a Promise resolution callback. > > Full message: TypeError: msg.target.messageManager is undefined > See https://developer.mozilla.org/Mozilla/JavaScript_code_modules/Promise.jsm/Promise > Full stack: this.ContentSearch._reply@resource:///modules/ContentSearch.jsm:123:5 > this.ContentSearch.onGetState@resource:///modules/ContentSearch.jsm:74:5 > this.ContentSearch.receiveMessage/<@resource:///modules/ContentSearch.jsm:68:9 > Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:863:11 > this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:742:7 TART rapidly opens and closes tabs, and the problem is that the asynchronicity added by bug 1009313 means that the browser that ContentSearch is responding to can be destroyed before ContentSearch responds to it. So the chain of events looks like this: the browser sends a message ("GetState" in this case), ContentSearch.receiveMessage is called, receiveMessage calls _initService which is async, sometime before _initService finishes the browser is destroyed, _initService finishes, onGetState is called, _reply is called.
Attachment #8425995 - Flags: review?(felipc)
Marco, could we add this to the current iteration? It's a small fix to a problem introduced by another bug in the current iteration that has already landed.
Flags: firefox-backlog+
Whiteboard: p=2
Added to Iteration 32.2
Whiteboard: p=2 → p=2 s=it-32c-31a-30b.2 [qa?]
Whiteboard: p=2 s=it-32c-31a-30b.2 [qa?] → p=2 s=it-32c-31a-30b.2 [qa-]
Bug 1014080 is an interesting manifestation of the same problem.
Attachment #8425995 - Flags: review?(felipc) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 32
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: