Issue metadata
Sign in to add a comment
|
Tab hangs infinitely when pressing page down on a certain position in a contentEditable element
Reported by
martin.m...@liones.nl,
Apr 6 2017
|
||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.14 Safari/537.36 Steps to reproduce the problem: 1. Open attached file 2. Place cursor anywhere in the content editable div 3. Press the home key to place the cursor at the start 4. Press the page down key. What is the expected behavior? Pressing page down moves the caret to the end. What went wrong? The browser tab is now hanging, wait a few seconds for the 'tab unresponsive' message. Did this work before? N/A Does this work in other browsers? N/A Chrome version: 58.0.3029.14 Channel: dev OS Version: Ubuntu 14.04 Flash Version: This has been reproduced on both Linux and Windows. OSX does not suffer from this problem. The <chrome-selection-repro> element is styled oddly to work around a selection displaying issue seen in some browsers. If I make it self-closing, I can not reproduce this issue.
,
Apr 6 2017
I have reproduced. To do so, use the arrow keys to place the cursor on the non-visible <chrome-selection-repro> element just before "Place caret here". The cursor will appear on a line below the other text. Then do the Home and Page Down key presses and you get the hang.
,
Apr 6 2017
Can't repro in M57, but repro in M59 ToT.
,
Apr 7 2017
Tested the issue on windows 7 and ubuntu 14.04 using chrome M59 #59.0.3064.0 and issue is reproduced. Issue is seen from M51 and from M30 issue behavior is different , no crash or unresponsive message is seen .. but on page down key press the cursor is not moved to the end of the caret. The same happens in firefox. Attached screencast for reference. Thanks!
,
Apr 10 2017
I could reproduce...
,
Apr 27 2017
,
Apr 28 2017
Deprioritized to P2 due to low severity.
When passed the position before "💬", NextLinePosition returns chrome-selection-repro@0
When passed chrome-selection-repro@0, NextLinePosition returns the position before "💬"
So the for loop in SelectionModifier::ModifyWithPageGranularity never ends:
for (p = pos; ; p = next) {
next = NextLinePosition(p);
...
}
,
Oct 4 2017
,
Oct 4
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Oct 5
|
|||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||
Comment 1 by ranjitkan@chromium.org
, Apr 6 2017