Closed Bug 1585888 Opened 5 years ago Closed 5 years ago

selection jumps when being in between pre-wrap lines

Categories

(Core :: DOM: Core & HTML, defect)

70 Branch
Desktop
All
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1545367
Webcompat Priority ?
Tracking Status
firefox-esr68 --- wontfix
firefox67 --- wontfix
firefox68 --- wontfix
firefox69 --- wontfix
firefox70 --- wontfix
firefox71 --- wontfix

People

(Reporter: karlcow, Unassigned)

References

(Regression, )

Details

(Keywords: regression)

Attachments

(2 files)

Attached image outline for pre-wrap lines. (deleted) —

As described by the reporter.

STR:

  1. go to a bug on bugs.chromium.org (e.g. https://bugs.chromium.org/p/chromium/issues/detail?id=997540&q=&colspec=ID%20Pri%20M%20Stars%20ReleaseBlock%20Component%20Status%20Owner%20Summary%20OS%20Modified)
  2. try to select the text of the description with the mouse by slowly dragging down or up

ER:
text gets selected without glitches

AR:
when the cursor is between lines, the selection jumps around wildly.

A Video Of the Bug in Action is here:

https://streamable.com/1zbng

while the bug was reproduced in a VM (for eliminating variables), the same happens on bare metal.

This is happening when the cursor is crossing the in-between area of the two lines.
It's a lot easier to when we draw outlines and magnify the content. See the screenshot.

I could not reproduce this bug on 59, it looks like a regression.

Hi Andrei, could you find someone help to get the regression window? Thanks.

Flags: needinfo?(andrei.vaida)

Regression window:
https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=48a5d87cf9bdb59e39653ab331df04ea2a04267d&tochange=20d536fd0f2a02bd4527044d367cf98bebbb358d

Regressed by: 20d536fd0f2a02bd4527044d367cf98bebbb358d Olli Pettay — Bug 1460069 - enable Shadow DOM in Nightly, r=emilio

Component: Selection → DOM: Core & HTML
Has Regression Range: --- → yes
Has STR: --- → yes
OS: Linux → All
Hardware: Unspecified → Desktop

(In reply to Edgar Chen [:edgar] from comment #2)

Hi Andrei, could you find someone help to get the regression window? Thanks.

Looks like Alice0075 White already took care of this, thank you! Edgar, if there's something else that QA should help with here, please feel free to needinfo me again.

Flags: needinfo?(andrei.vaida)
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
Attached file test.html (deleted) —

Minimum test script for reference.

It seems caused by the GetSelectionClosestFrame() call in https://searchfox.org/mozilla-central/rev/efdf9bb55789ea782ae3a431bda6be74a87b041e/layout/generic/nsFrame.cpp#5431 which returns the first <br>'s frame in the shadow dom when the mouse cursor moves out from shadow dom.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: