Cmd+R should refresh when the page is paused
Categories
(DevTools :: Debugger, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: Harald, Unassigned)
References
(Blocks 3 open bugs)
Details
(Keywords: parity-chrome)
What were you doing?
- Pause in any page
- Focus the page
- Refresh via shortcut (Ctrl+R, Cmd-Shift-R, F5, etc)
What happened?
Command ignored. You have to focus devtools or Firefox UI for the shortcut to work.
What should have happened?
Refresh. Works in Chrome.
Raised priority as refresh is a major escape hook for debugging flows and to test updated code.
Reporter | ||
Updated•5 years ago
|
Comment 1•5 years ago
|
||
Comment 2•5 years ago
|
||
This might be some low hanging fruit
Updated•5 years ago
|
Comment 3•5 years ago
|
||
I and Logan did little digging into this and found that it's probably because we pause, we suppress all content event handling, so the keystrokes never gets handled. https://searchfox.org/mozilla-central/source/devtools/server/actors/targets/browsing-context.js#1195
@jimb I don't know where to go from here.
Comment 4•5 years ago
|
||
That's surprising, because ctrl-R is not being handled by the page itself, it's supposed to be handled by the browser. We do need to prevent content event handlers from running, but that shouldn't be affecting browser-wide bindings.
I think we'll need to talk to some platform folks about that. Leaving needinfo?me since I'm on the hook to find the right person to consult.
Comment 5•5 years ago
|
||
Mossop, can you recommend an approach here? I'm just not familiar with event processing at this level at all.
Comment 6•5 years ago
|
||
Can someone clarify what pausing actually does?
Comment 7•5 years ago
|
||
Dropping this needinfo until there is more information.
Comment 8•5 years ago
|
||
Pausing enters a nested event loop and runs suppressEventHandling(true)
and suspendTimeouts()
because it is important that the nested event loop continue executing the devtools server itself without processing any events that may be generated by interaction with the page or the user's own code evaluation.
Unfortunately it seems that disabling this handling for the document also has the side-effect of disabling other browser shortcuts like refresh.
Comment 9•5 years ago
|
||
So I think for this keyboard event we first send it to the content process to see if it gets handled there. If not the main process handles it. So it's probably attempting to fire the event on the content's focused element before processing it in the main process. If suppressEventHandling means the event waits to be fired until the document is unpaused then that will be the problem.
Updated•5 years ago
|
Updated•5 years ago
|
Comment 10•3 years ago
|
||
I can still reproduce this bug, should be fixed, but changing to P3
Description
•