Closed
Bug 1137238
Opened 10 years ago
Closed 10 years ago
Toolbox is destroyed when switching between apps
Categories
(DevTools Graveyard :: WebIDE, defect)
DevTools Graveyard
WebIDE
Tracking
(firefox39 fixed)
RESOLVED
FIXED
Firefox 39
Tracking | Status | |
---|---|---|
firefox39 | --- | fixed |
People
(Reporter: ochameau, Assigned: ochameau)
References
Details
Attachments
(1 file)
2.22 KB,
patch
|
jryans
:
review+
|
Details | Diff | Splinter Review |
This is due to the toolbox-close even handling form webide.js:
http://mxr.mozilla.org/mozilla-central/source/browser/devtools/webide/content/webide.js#919
We end up closing the toolbox no matter which toolbox dispatched this toolbox-close event. We are racing this code when opening new toolboxes. Sometimes, we are receiving this event for the previously destroyed toolbox, *after* the new toolbox is being created. So that we end up breaking the creation of the new one.
STR are to connect to clock app, open a toolbox and then switch to main process.
It will automatically start opening the main process toolbox and fail doing it with no particular exception.
This issue may be highlighted by bug 1059308, I haven't tried to reproduce it on nightly. But the code itself looks wrong. We shouldn't _always_ close the _current_ toolbox when receiving toolbox-close. Also note that the DOM message event was useful in app manager case, it isn't in webide as we don't have nested iframes. We could just emit an event on toolbox-host of pass a listener in toolbox options.
Assignee | ||
Comment 1•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Attachment #8569937 -
Flags: review?(jryans)
Comment on attachment 8569937 [details] [diff] [review]
patch v1
Review of attachment 8569937 [details] [diff] [review]:
-----------------------------------------------------------------
Seems reasonable.
Attachment #8569937 -
Flags: review?(jryans) → review+
Assignee | ||
Comment 3•10 years ago
|
||
This patch may only apply on top of bug 1059308 (which is also checkin-needed).
Keywords: checkin-needed
Comment 4•10 years ago
|
||
Comment 5•10 years ago
|
||
sorry had to back this out in https://treeherder.mozilla.org/#/jobs?repo=fx-team&revision=bc64e4250685 seems one of this changes caused :
https://treeherder.mozilla.org/logviewer.html#?job_id=2141984&repo=fx-team
Flags: needinfo?(poirot.alex)
Assignee | ||
Comment 6•10 years ago
|
||
Was failing because of regression introduced in dependency bug 1059308.
Green try:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=cca5bb48656a
Comment 7•10 years ago
|
||
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Comment 8•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 39
Updated•6 years ago
|
Product: Firefox → DevTools
Updated•5 years ago
|
Product: DevTools → DevTools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•