Open Bug 1328938 Opened 7 years ago Updated 2 years ago

Text selection in console interfere with keyboard scrolling

Categories

(DevTools :: Console, defect, P4)

defect

Tracking

(firefox53 affected)

Tracking Status
firefox53 --- affected

People

(Reporter: jryans, Unassigned)

References

Details

+++ This bug was initially created as a clone of Bug #1327771 +++

>>>   My Info:   Win7_64, Nightly 52, 32bit, ID 20161028030204 (2016-10-28)
Text selection in console and inspector extends to outside of scrollable part.
And that, in turn causes these issues:
- (1) Up/Down/PageUp/PageDown/Home/End buttons don't work
- (2) filter buttons / tabs in inspector become selected
- (3) Ctrl+Shift+Home/End doesn't scroll srollable area to the beginning/end
This can be resolved by using iframes. Proof of concept:
data:text/html,asdf<iframe src="http://example.org"></iframe>zxcv


==== Console ====
STR_1:
1. Open url [1]
2. Open console, select message "99" with mouse
3. Press Ctrl+A to select all text in console
4. Press Up/Down keys, or PageUp/PageDown, or Home/End to scroll console messages via keyboard

AR:  No visible action
ER:  Messages in console should scroll up/down

> [1] data:text/html,<body><script>var S="";for(i=2000;i<2100;i++)S+="<style>body{max-height:"+i+"px}</style>";document.documentElement.innerHTML=S;for(i=0;i++<99;)console.log(i)</script>


STR_2:
1. Open url [1]
2. Open console, scroll console messages to the beginning
3. Move mouse to the end of console message "2", hold left mouse button, 
   move mouse to content area above devtools toolbox, release left mouse button
4. Click on "Toggle filter bar" button in console above console messages to open filter bar

AR:  Filter buttons are all selected (blue text selection, not "enabled" blue background of buttons)
ER:  Text selection shouldn't extend to filter buttons


STR_3:
1. Open url [1]
2. Open console, scroll console messages to the center
3. Select message "50" with mouse
4. Press Ctrl+Shift+Home or Ctrl+Shift+End

AR:  Scroll position in console messages doesn't change
ER:  Console messages should be scrolled to the beginning/end
These 2 bugs (bug 1328938, bug 1328939) were originally filed by arni2033 as bug 1327771.
It doesn't look like they will live well separately (w/o general decision on how to fix such things),
and it doesn't seem that there was a good reason to resolve original report as Invalid.
After all, reporter of that bug was concerned about usability, not about stealing bugs.

The correct way to track a meta bug is to keep it open until all blocking bugs are resolved.
Priority: -- → P3
Product: Firefox → DevTools
Priority: P3 → P4
Summary: Selection in console sidebars extends outside of scrollable part, so keyboard scrolling doesn't work → Text selection in console interfere with keyboard scrolling
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.