Closed
Bug 943681
Opened 11 years ago
Closed 10 years ago
Convert to Promise.jsm in the webconsole
Categories
(DevTools :: Console, defect, P2)
DevTools
Console
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 29
People
(Reporter: bbenvie, Assigned: bbenvie)
References
Details
Attachments
(1 file, 6 obsolete files)
9.37 KB,
patch
|
bbenvie
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•11 years ago
|
||
Converts everything devtools/webconsole to use Promise.jsm. https://tbpl.mozilla.org/?tree=Try&rev=86f6daf585c0
Assignee: nobody → bbenvie
Status: NEW → ASSIGNED
Assignee | ||
Updated•11 years ago
|
Priority: -- → P2
Assignee | ||
Comment 2•11 years ago
|
||
Change the lazy getters to lazy importers.
Attachment #8338944 -
Attachment is obsolete: true
Assignee | ||
Comment 3•11 years ago
|
||
Woops, I forgot that you can't use lazyImporter here (because of the "Promise" -> "promise" rename). This should work. https://tbpl.mozilla.org/?tree=Try&rev=10bd75c2f9d5
Attachment #8338948 -
Attachment is obsolete: true
Comment 4•11 years ago
|
||
The lazyImporter() can take a fourth argument which solves the problem you had with it. See XPCU_defineLazyModuleGetter() in js/xpconnect/loader/XPCOMUtils.jsm. (you can leave it as-is with the lazyGetter, just mentioning that nicety of XPCOMUtils)
Assignee | ||
Comment 5•11 years ago
|
||
I'm fairly sure this is ready to land (and not stirring up some crazy intermittents). I'll get this landed ASAP (with Mihai's feedback).
Comment 6•11 years ago
|
||
Is this patch waiting on me for landing? I hope not. Feel free to land it - I don't expect rebase issues with my patches for bug 843004.
Assignee | ||
Comment 7•11 years ago
|
||
I think that bc failure might be permaorange because of this patch. https://tbpl.mozilla.org/?tree=Try&rev=0862711cee75
Assignee | ||
Comment 8•11 years ago
|
||
Trying again. https://tbpl.mozilla.org/?tree=Try&rev=18346611b6f6
Assignee | ||
Comment 9•11 years ago
|
||
I think this will fix it. https://tbpl.mozilla.org/?tree=Try&rev=3ff4324b4872
Attachment #8339394 -
Attachment is obsolete: true
Attachment #8346841 -
Flags: review?(mihai.sucan)
Comment 10•11 years ago
|
||
Comment on attachment 8346841 [details] [diff] [review] promise-webconsole.patch Looks good. Thanks!
Attachment #8346841 -
Flags: review?(mihai.sucan) → review+
Assignee | ||
Comment 11•11 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/86a9b2253199
Whiteboard: [fixed-in-fx-team]
Comment 12•11 years ago
|
||
Sorry, I backed this out: https://hg.mozilla.org/integration/fx-team/rev/6639771d3626 because of timeouts in browser_toolbox_raise.js: https://tbpl.mozilla.org/php/getParsedLog.php?id=31950694&tree=Fx-Team (This was previously an intermittent failure, but it became perma-orange on OS X after this patch.)
Updated•11 years ago
|
Whiteboard: [fixed-in-fx-team]
Comment 13•10 years ago
|
||
Sorry for bothering. Brandon, any progress with this patch? Can I help with anything?
Flags: needinfo?(bbenvie)
Assignee | ||
Comment 14•10 years ago
|
||
Thanks Mihai. I don't think there's a problem with the webconsole at all actually. The test (framework/test/browser_toolbox_raise.js) has an intermittent which this patch turns permanently orange on OS X. The test has some fiddly bits relating to window focus which seems to be sensitive to the timing changes. Do you have any idea on how to fix the test to not be sensitive to window focus/timing interaction? I think fixing this bug just hinges on that, and not any more changes to the webconsole or anything else.
Flags: needinfo?(bbenvie)
Comment 15•10 years ago
|
||
Brandon, maybe try to remove executeSoon() when it is not needed. There are two calls to the function, see if they can be replaced with event listeners (tabselected). TBPL shows that these failures happen only with Mac OSX. Can you reproduce? According to tbpl, the timeouts occur after the test finished (!). See: https://tbpl.mozilla.org/php/getParsedLog.php?id=31948868&tree=Fx-Team#error0 12:18:15 INFO - ###!!! [Child][DispatchAsyncMessage] Error: Route error: message sent to unknown actor ID This error seems to suggest that cleanup() and finish() are called before the toolbox finishes executing its own code. Try to get out of the execution loop with the infamous executeSoon(cleanup). Also, after you call toolbox.destroy(), maybe executeSoon(finish) would help. I hope this helps. (I pinged about this patch simply because exceptions continue to not show in our devtools. Promise.jsm is very useful for development. Thank you!)
Assignee | ||
Comment 16•10 years ago
|
||
This patch is also now disabling the test browser_devtools_raise.js. That test is blocking a couple of bugs and already has intermittent issues, so it needs to be fixed (bug 962258). With the test disabled this patch should be good to go.
Attachment #8346841 -
Attachment is obsolete: true
Assignee | ||
Comment 17•10 years ago
|
||
Attachment #8363236 -
Attachment is obsolete: true
Assignee | ||
Comment 18•10 years ago
|
||
Comment on attachment 8363237 [details] [diff] [review] promise-webconsole.patch Verbal r+ from dcamp on disabling the test.
Attachment #8363237 -
Flags: review+
Assignee | ||
Comment 19•10 years ago
|
||
Disabling test was moved to its own bug and landed. Seems something changed to introduced another intermittent and I've added an attempt to fix it.
Attachment #8363237 -
Attachment is obsolete: true
Assignee | ||
Comment 20•10 years ago
|
||
Comment on attachment 8363800 [details] [diff] [review] promise-webconsole.patch It's looking good. Mihai, could you just take another look at the change I made to browser_console_dead_objects.js?
Attachment #8363800 -
Flags: feedback?(mihai.sucan)
Assignee | ||
Comment 21•10 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=35a7f7f96319
Assignee | ||
Updated•10 years ago
|
Attachment #8363800 -
Flags: feedback?(mihai.sucan) → review+
Assignee | ||
Comment 22•10 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/f63078a8ce74
Whiteboard: [fixed-in-fx-team]
Backed out in https://hg.mozilla.org/integration/fx-team/rev/535f0a313b28 for introducing some webconsole test timeouts on at least Windows Debug builds: https://tbpl.mozilla.org/php/getParsedLog.php?id=33492261&tree=Fx-Team https://tbpl.mozilla.org/php/getParsedLog.php?id=33490982&tree=Fx-Team
Whiteboard: [fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/f63078a8ce74
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 29
Comment 25•10 years ago
|
||
(This is not fixed. It's backed-out.)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 26•10 years ago
|
||
(In reply to Wes Kocher (:KWierso) from comment #24) > https://hg.mozilla.org/mozilla-central/rev/f63078a8ce74 note that this happened because a merge cset with this fix included landed on central and so this got set fixed. Merged now a cset with the backout, so this also backed out from m-c and all the other branches (tl;dr msucan is right this is not fixed :)
Assignee | ||
Comment 27•10 years ago
|
||
Bug 963869 is about browser_console_dead_objects.js. It came up shortly after this landed and is one of the two failures that caused the backout. The intermittent persisted after this patch was backed out which makes me think it wasn't related to this patch. The test was recently disabled due to too many failures.
Comment 28•10 years ago
|
||
Brandon, given the test is disabled, can you please push this patch to try server, then to fx-team if it's fine? I'll check what's the issue with that test...
Comment 29•10 years ago
|
||
I wanted to pick up this patch to get it landed. However, I see the patch *is* landed. Also, hg blame points to the changeset 165092:3cf6fcb75118 ("Merge mozilla-central to mozilla-inbound"). When did this land?
Flags: needinfo?(bbenvie)
Assignee | ||
Comment 30•10 years ago
|
||
It was originally landed January 24. I thought it was backed out shortly after but apparently not? I haven't attempted to re-land it.
Flags: needinfo?(bbenvie)
Comment 31•10 years ago
|
||
(In reply to Brandon Benvie [:benvie] from comment #30) > It was originally landed January 24. I thought it was backed out shortly > after but apparently not? I haven't attempted to re-land it. This is weird. Carsten confirmed in comment #26 this patch was backedout, however, I now see it's not. Please confirm and we can mark the bug as fixed. I am glad the patch is in. :)
Assignee | ||
Comment 32•10 years ago
|
||
I can confirm that the changes are indeed actually there (e.g. Promise.jsm is imported at the top of webconsole.js). I guess since it's been in for a month and we've handled any fallout from it, we might as well keep it in.
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•