Closed
Bug 1216979
Opened 9 years ago
Closed 9 years ago
Replicate browser.xul keyshortcut to reload devtools in WebIDE
Categories
(DevTools Graveyard :: WebIDE, defect)
DevTools Graveyard
WebIDE
Tracking
(firefox45 fixed)
RESOLVED
FIXED
Firefox 45
Tracking | Status | |
---|---|---|
firefox45 | --- | fixed |
People
(Reporter: ochameau, Assigned: ochameau)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
6.16 KB,
patch
|
jryans
:
review+
|
Details | Diff | Splinter Review |
Similarly to bug 1188413, we should add a key shortcut to reload WebIDE (and devtools resources) from local checkout.
Today, we have to either reboot firefox or close/reopen WebIDE(with all modules not being reloaded) or go to firefox window and ALT+CTRL+R and close/reopen WebIDE.
This is too much, instead we could replicate the same key binding in WebIDE and have it to just reload the modules and WebIDE document.
Assignee | ||
Comment 1•9 years ago
|
||
This patch replicated the same binding.
I had to tweak Loader.jsm's reload as
this method can also be called from toolboxes within WebIDE.
So I had to ensure that we don't try to reload a toolbox in background
if we hit the binding from WebIDE's toolbox.
The additional binding in WebIDE allows to reload WebIDE without a toolbox.
Also, it looks like toolboxes don't reload correctly (not always but seems quite frequent).
Not in WebIDE, but in firefox, connected to a e10s tab,
CTRL+ALT+R often ends up with a blank toolbox.
Adding a 1s timeout fix it. I wish I could come up with a better fix,
but I don't want to dive into yet another toolbox mess.
Assignee | ||
Comment 2•9 years ago
|
||
Comment on attachment 8676854 [details] [diff] [review]
patch v1
Review of attachment 8676854 [details] [diff] [review]:
-----------------------------------------------------------------
As for bug 1217559, this patch fixes the hot reload feature.
We have to wait before trying to reopen a new toolbox.
And it makes the magic key binding to work in WebIDE.
I'm not a big fan of the setTimeout, but listening to all possible destructions events sounds like a big hassle that may easily fail.
Attachment #8676854 -
Flags: review?(jryans)
Assignee | ||
Comment 3•9 years ago
|
||
Comment on attachment 8676854 [details] [diff] [review]
patch v1
Review of attachment 8676854 [details] [diff] [review]:
-----------------------------------------------------------------
Great, it seems to work well with this patch and bug 1217559 applied.
We can always improve past setTimeout in the future.
Attachment #8676854 -
Flags: review?(jryans) → review+
Assignee | ||
Comment 5•9 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/a7d2cef87d4652403c159515a622f15e59b740d8
Bug 1216979 - Add ACCEL+ALT+R key binding to reload WebIDE. r=jryans
Comment 6•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox45:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 45
Comment 7•9 years ago
|
||
bugherder uplift |
status-b2g-v2.5:
--- → fixed
Comment 8•9 years ago
|
||
removing the b2g 2.5 flag since this commit has been reverted due to an incorrect merge, sorry for the confusion
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
•