Closed Bug 1644366 Opened 4 years ago Closed 4 years ago

TextArea in a container does not scroll to the selection

Categories

(Core :: DOM: Selection, defect, P2)

77 Branch
defect

Tracking

()

RESOLVED FIXED
mozilla79
Tracking Status
firefox-esr68 --- unaffected
firefox-esr78 --- wontfix
firefox77 --- wontfix
firefox78 --- wontfix
firefox79 --- fixed

People

(Reporter: elena.guenther, Assigned: emilio)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Steps to reproduce:

The issue occurs with the Update to FireFox 77.0.1 (64-Bit)

Steps to reproduce the problem:

Use the url to codepen to verify it: https://codepen.io/eguenther/pen/oVGrzW

First Case:
TextArea is in a container.

  1. Click on the button scroll to selection (Scrolling to selection does not work!) in the linked codepen.

Second Case:
TextArea is stand alone.

  1. Click on the button scroll to selection (Scrolling to selection work!)

Actual results:

Actual Results:

The first Case:
The Text is selected but there is no scrolling to the selection.

The second Case:
The Text is selected und the textarea scrolls to the selection.

Expected results:

Expected Results:

Scrolling to the selection should work in both cases.

It works as expected in Chrome, Safari, Edge Chromium

Notes: I found a bug fix for: https://bugzilla.mozilla.org/show_bug.cgi?id=1634153
This Bug was fixed a month ago. May be it is a reason for this issue?

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → DOM: Selection
Product: Firefox → Core
Assignee: nobody → emilio
Status: UNCONFIRMED → NEW
Ever confirmed: true
Regressed by: 1634153
Has Regression Range: --- → yes

Notes: I found a bug fix for: https://bugzilla.mozilla.org/show_bug.cgi?id=1634153

Yeah, confirmed that via mozregression. Thanks for filing.

Flags: needinfo?(emilio)

Set release status flags based on info from the regressing bug 1634153

Flags: needinfo?(emilio)
Severity: -- → S3
Priority: -- → P2
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1884e1c2ccf4 Restore behavior of selection into view to keep scrolling ancestors on focus. r=smaug
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/24064 for changes under testing/web-platform/tests
Upstream web-platform-tests status checks passed, PR will merge once commit reaches central.

Backed out for scrolling failures.

backout: https://hg.mozilla.org/integration/autoland/rev/0df8de966ed2e4b88e81d560322891399873576b

push: https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=1884e1c2ccf4ee8a19f800ae738785b481f751de&test_paths=layout%2Fforms%2Ftest%2Ftest_bug564115.html&selectedTaskRun=X1jai3coTByoBDNflKor3g-0

failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=305671462&repo=autoland&lineNumber=14424

[task 2020-06-09T18:01:17.256Z] 18:01:17 INFO - TEST-START | layout/forms/test/test_bug564115.html
[task 2020-06-09T18:01:17.318Z] 18:01:17 INFO - GECKO(1663) | [Parent 1663, Main Thread] WARNING: NS_ENSURE_TRUE(rootFrame) failed: file /builds/worker/checkouts/gecko/dom/base/nsGlobalWindowOuter.cpp, line 4275
[task 2020-06-09T18:01:17.963Z] 18:01:17 INFO - TEST-INFO | started process screencapture
[task 2020-06-09T18:01:18.131Z] 18:01:18 INFO - TEST-INFO | screencapture: exit 0
[task 2020-06-09T18:01:18.131Z] 18:01:18 INFO - Buffered messages logged at 18:01:17
[task 2020-06-09T18:01:18.131Z] 18:01:18 INFO - must wait for load
[task 2020-06-09T18:01:18.132Z] 18:01:18 INFO - must wait for focus
[task 2020-06-09T18:01:18.132Z] 18:01:18 INFO - Buffered messages finished
[task 2020-06-09T18:01:18.132Z] 18:01:18 INFO - TEST-UNEXPECTED-FAIL | layout/forms/test/test_bug564115.html | Page should be scrolled correctly - got 12, expected 5000
[task 2020-06-09T18:01:18.132Z] 18:01:18 INFO - SimpleTest.is@SimpleTest/SimpleTest.js:383:14
[task 2020-06-09T18:01:18.132Z] 18:01:18 INFO - @layout/forms/test/test_bug564115.html:33:11
[task 2020-06-09T18:01:18.132Z] 18:01:18 INFO - setTimeout handlerSimpleTest_setTimeoutShim@SimpleTest/SimpleTest.js:788:41
[task 2020-06-09T18:01:18.132Z] 18:01:18 INFO - @layout/forms/test/test_bug564115.html:32:17
[task 2020-06-09T18:01:18.132Z] 18:01:18 INFO - setTimeout handler
SimpleTest_setTimeoutShim@SimpleTest/SimpleTest.js:788:41
[task 2020-06-09T18:01:18.132Z] 18:01:18 INFO - @layout/forms/test/test_bug564115.html:28:15
[task 2020-06-09T18:01:18.132Z] 18:01:18 INFO - focusedOrLoaded/<@SimpleTest/SimpleTest.js:918:23
[task 2020-06-09T18:01:18.132Z] 18:01:18 INFO - must wait for focus
[task 2020-06-09T18:01:18.133Z] 18:01:18 INFO - must wait for focus
[task 2020-06-09T18:01:18.133Z] 18:01:18 INFO - Not taking screenshot here: see the one that was previously logged
[task 2020-06-09T18:01:18.133Z] 18:01:18 INFO - TEST-UNEXPECTED-FAIL | layout/forms/test/test_bug564115.html | The page's scroll offset should not have been changed - got 12, expected 5000

Flags: needinfo?(emilio)
Upstream PR was closed without merging
Attachment #9155269 - Attachment description: Bug 1644366 - Restore behavior of selection into view to keep scrolling ancestors on focus. r=masayuki,smaug → Bug 1644366 - Restore behavior of selection into view to keep scrolling ancestors on focus. r=smaug
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/90d8f871d49d Restore behavior of selection into view to keep scrolling ancestors on focus. r=smaug
Upstream web-platform-tests status checks passed, PR will merge once commit reaches central.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla79
Upstream PR merged by moz-wptsync-bot
Duplicate of this bug: 1468921
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: