Closed
Bug 1013722
Opened 11 years ago
Closed 11 years ago
ContentSearch.jsm: TypeError: msg.target.messageManager is undefined
Categories
(Firefox :: General, defect)
Firefox
General
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)
975 bytes,
patch
|
Felipe
:
review+
|
Details | Diff | Splinter Review |
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)
Assignee | ||
Comment 1•11 years ago
|
||
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
Updated•11 years ago
|
Whiteboard: p=2 s=it-32c-31a-30b.2 [qa?] → p=2 s=it-32c-31a-30b.2 [qa-]
Assignee | ||
Comment 4•11 years ago
|
||
Bug 1014080 is an interesting manifestation of the same problem.
Updated•11 years ago
|
Attachment #8425995 -
Flags: review?(felipc) → review+
Assignee | ||
Comment 5•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 32
Updated•11 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•