Closed Bug 1853468 Opened 3 years ago Closed 3 years ago

Bounds of items in Wikipedia side nav element are incorrect after scroll

Categories

(Core :: Disability Access APIs, defect)

Desktop
macOS
defect

Tracking

()

VERIFIED FIXED
120 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox-esr115 --- unaffected
firefox117 --- wontfix
firefox118 --- wontfix
firefox119 --- wontfix
firefox120 --- verified
firefox123 --- verified
firefox124 --- verified

People

(Reporter: nlapre, Assigned: morgan)

References

(Blocks 2 open bugs, Regression)

Details

(Keywords: regression)

Attachments

(1 external file)

STR:

  1. Open a Wikipedia page, such as this one.
  2. Check the bounds of a list item in the nav element, such as the one with id toc-References.
  3. Scroll the page down. You might have to scroll it twice (I sometimes can't get it to break with only one scroll.)
  4. Check the bounds of the same element again.

Expected: The bounds should correctly bound the link to a page anchor.
Actual: The bounds are incorrect.

This test case can probably be reduced, I just wanted to log it quickly before I forget. It feels somewhat similar to display list issues I've heard Jamie and Morgan talking about. Triggering a reflow seems to fix the problem, until you scroll again.

I think I'm going to revive my patch to cache coordinates relative to the scroll root instead of the parent. It might be interesting to see if that helps here and other places. That said, it'll possibly introduce just as many problems as it fixes...

This is a display list issue -- confirmed fixed by reverting bug 1837496

Keywords: regression
Regressed by: 1837496

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

Severity: -- → S3

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

Assignee: nobody → mreschenberg
Status: NEW → ASSIGNED

:nlapre I have a hard time reproducing this consistently, but the patch I posted here seems to fix the issue (or at least, makes it harder to reproduce 😅). Could you import this patch and test it locally?

I've also checked this patch against the linkedin "you got a message" email link scenario described here and it seems fixed there too.

Flags: needinfo?(nlapre)

Looks like this patch fixes both the Wikipedia and LinkedIn issue for me, too.

Flags: needinfo?(nlapre)

:morgan we are in the last week of beta for Fx119.
Will this land this week and is it safe for an uplift request?

Flags: needinfo?(mreschenberg)

(In reply to Donal Meehan [:dmeehan] from comment #8)

:morgan we are in the last week of beta for Fx119.
Will this land this week and is it safe for an uplift request?

I don't think so -- I'm still trying to work out if this is our best solution, and its a bit of a risky uplift so I don't think we should do it this late in the cycle anyway :) thanks for checking!

Flags: needinfo?(mreschenberg)
Pushed by smolnar@mozilla.com: https://hg.mozilla.org/mozilla-central/rev/835581ec5d8c NotifyOfPossibleBoundsChange when display list items are added r=Jamie
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
Flags: qe-verify+
Blocks: 1848731
Blocks: 1846186

I would like to verify this fix. Can you explain in more detail what the actual and expected results are or provide a reduced test case? I can't seem to reproduce an issue in the old Nightly. Thank you!

Flags: needinfo?(nlapre)
Blocks: 1861023

:morgan, can you help me with some clearer steps to reproduce and verify this fix? Thank you.

Flags: needinfo?(mreschenberg)

Sure! I've edited Nathan's STR, lemme know if you have questions:

STR:

  1. Launch VoiceOver (in the VoiceOver Utility, make sure navigation > mouse pointer > Ignores VO Cursor)
  2. Open a Wikipedia page
  3. Use the VO cursor to focus a list item in the nav element, such as the one with id=toc-References.
  4. Scroll the page down using the mouse. You might have to scroll it twice (I sometimes can't get it to break with only one scroll.)
  5. Check the bounds of the same element again by moving left and then right with the VO cursor

Expected: The bounds should correctly bound the link to a page anchor.
Actual: The bounds are incorrect.

Flags: needinfo?(mreschenberg)
Flags: needinfo?(nlapre)

I can reproduce this issue in Nightly v119.0a1 (2023-08-28) and I can confirm the fix in Nightly v124.0a1, Release v122.0.1. The testing was performed on MacOS11 with VoiceOver. The VO focus (black rectangle) is now correctly displayed after scrolling the page and moving VO left/right.
Thank you for the clarification!

Status: RESOLVED → VERIFIED
Flags: qe-verify+
OS: Unspecified → macOS
Hardware: Unspecified → Desktop
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: