Open Bug 2052637 Opened 3 days ago Updated 4 hours ago

Pressing Page Up or Page Down keys does nothing when the textarea is not overflowing and the page is scrollable

Categories

(Core :: Layout: Form Controls, defect)

Firefox 151
defect

Tracking

()

ASSIGNED
Tracking Status
firefox-esr140 --- unaffected
firefox-esr153 --- affected
firefox152 --- wontfix
firefox153 --- affected
firefox154 --- affected

People

(Reporter: 6k64x4ma, Assigned: emilio, NeedInfo)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Attached file testcase.html

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:153.0) Gecko/20100101 Firefox/153.0

Steps to reproduce:

Load the attached file and press the Page Down key.

Actual results:

The caret does not move to the last line.
Page Up, Shift + Page Up, and Shift + Page Down also do not work.

Expected results:

The caret should move to the last line.

Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=02376ed8674012d2bd575682466cc9177039adb9&tochange=a77a08b9be8a059936afa68f259adb86823bb75f

Keywords: regression
Regressed by: 2031757

:emilio, since you are the author of the regressor, bug 2031757, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(emilio)
Flags: needinfo?(emilio)

In this test-case, rootFrameToSelect is the inner editor's frame, but
contentToSelect is the textarea, which is an ancestor.

So we go from <textarea> all the way to the root frame finding
scrollable frames which is not the intended behavior. Instead, we check
nsLayoutUtils::IsProperAncestorFrame to make sure that we walk
correctly.

Assignee: nobody → emilio
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

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

Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/61093 for changes under testing/web-platform/tests

Pushed by abutkovits@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/c86fcb7f2272 https://hg.mozilla.org/integration/autoland/rev/843b141a4b58 Revert "Bug 2052637 - Fix nsFrameSelection::GetPageToFrameSelect. r=layout-reviewers,dshin" for causing failures at textarea-pagedown-selection.html.

Upstream PR was closed without merging

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

Attachment

General

Creator:
Created:
Updated:
Size: