Text selection is canceled when I try to select/drag text between lines

NEW
Unassigned

Status

()

Core
Selection
2 years ago
2 years ago

People

(Reporter: arni2033, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(firefox48 affected)

Details

(Reporter)

Description

2 years ago
>>>   My Info:   Win7_64, Nightly 48, 32bit, ID 20160324030447
There're 2 scenarios: A and B

STR:
1. Open the following "data:" URL:
 A) data:text/html,<p>first line<br>second line<style>*{line-height:2em; white-space:pre}
 B) data:text/html,<p>first line%0Asecond line<style>*{line-height:2em; white-space:pre}
 C) data:text/html,<p>first line%0Asecon<a>d</a> line<style>*{line-height:2em; white-space:pre}
2. Select text "irst line\nsecond lin" on the page
3. Move mouse to the white area between "s" in string "first" and "c" in string "second"
4. Hold left mouse button ('mousedown')
5. Move mouse to the bottom-right corner of the page
6. Release left mouse button ('mouseup')

AR:
         |            (A),(C)               |              (B)
---------|----------------------------------|-----------------------------------------
 Step 4  |  Nothing                         |  All text selection is canceled
 Step 5  |  Nothing                         |  Text 'st line\nsecond line" is selected
 Step 6  |  All text selection is canceled  |  Nothing

ER:  Either X or Y or Z
 X) Behavior (A),(C) should be the same as (B) - Text 'st line\nsecond line" should be selected
 Y) In all 3 scenarios drag-n-drop of selected text should start
 Z) Another common behavior for (A),(ะก) and (B)

Note:
 I encountered this bug on many sites including
 https://ru.wikipedia.org/wiki/Phoenix_Wright:_Ace_Attorney
(Reporter)

Comment 1

2 years ago
Correction:
"There're 3 scenarios: A,C and B"
You need to log in before you can comment on or make changes to this bug.