Closed Bug 2052637 Opened 3 months ago Closed 3 months 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

()

VERIFIED FIXED
154 Branch
Tracking Status
firefox-esr140 --- unaffected
firefox152 --- wontfix
firefox153 --- verified
firefox154 --- verified

People

(Reporter: 6k64x4ma, Assigned: emilio)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file, 2 external 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
Flags: needinfo?(emilio)
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch

The patch landed in nightly and beta is affected.
:emilio, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(emilio)

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: Trivial-ish regression fix.
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: yes
  • Steps to reproduce for manual QE testing: comment 0
  • Risk associated with taking this patch: low
  • Explanation of risk level: Targeted codepath.
  • String changes made/needed?: none
  • Is Android affected?: unknown
Attachment #9605584 - Flags: approval-mozilla-beta?
Flags: qe-verify+

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.

Original Revision: https://phabricator.services.mozilla.com/D310594

Flags: needinfo?(emilio)
QA Whiteboard: [uplift][qa-ver-needed-c154/b153]
Attachment #9605584 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

I was able to reproduce the issue on Win11x64 using FF build 152.0.5.
Verified as fixed on Win11x64 using FF build 154.0a1. Waiting for next beta to verify it.

QA Contact: mchiorean

Verified as fixed on Win11x64 using FF build 153.0b11.

Status: RESOLVED → VERIFIED
QA Whiteboard: [uplift][qa-ver-needed-c154/b153] → [uplift][qa-ver-done-c154/b153]
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: