Triggering view-source when the console input has focus should open page source not do nothing
Categories
(DevTools :: Console, defect, P3)
Tracking
(firefox100 verified)
| Tracking | Status | |
|---|---|---|
| firefox100 | --- | verified |
People
(Reporter: glob, Assigned: nchevobbe)
Details
Attachments
(1 file)
Steps to reproduce
- Navigate to any web page
- Open dev tools Console and ensure it has focus
- Press "View Source" keyboard shortcut (eg. cmd+U on macOS)
Expected results
- Source for the current web page is opened in a tab
Actual result
- Menu item flashes
- Nothing else 🙁
Comment 1•3 years ago
|
||
The severity field is not set for this bug.
:nchevobbe, could you have a look please?
For more information, please visit auto_nag documentation.
| Assignee | ||
Comment 2•3 years ago
|
||
Note that this is only true when the console input has the focus. If you put the cursor in the "Filter Output" element and hit Cmd + U, it does work.
It seems that Ctrl+U is captured by CodeMirror for it undoSelection command (https://codemirror.net/doc/manual.html#commands), but
we can probably drop that and do the same thing we did than for Cmd/Ctrl+F (devtools/client/webconsole/components/Input/JSTerm.js#500-501 )
| Assignee | ||
Comment 3•3 years ago
|
||
The shortcut is already used to open view-source and we want to let it through.
CodeMirror is using Ctrl+U for its undoSelection command, but it doesn't seem
like an important feature, so we can simply drop it.
Comment 5•3 years ago
|
||
| bugherder | ||
Updated•3 years ago
|
I managed to reproduce this on a 2022-03-01 Nightly build(20220301215224) on macOS 11. Verified as fixed on Firefox Firefox 100.0(20220428192727) and Nightly 101.0a1(20220501190841) on macOS 11, Win10 64-bits and Ubuntu 20.04.
Description
•