Closed Bug 1911286 Opened 1 year ago Closed 1 year ago

Site popup resets and doesn't reaply text fragment highlight and navigation

Categories

(Core :: DOM: Navigation, defect)

defect

Tracking

()

RESOLVED INVALID
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- unaffected
firefox128 --- unaffected
firefox129 --- unaffected
firefox130 --- affected

People

(Reporter: aflorinescu, Unassigned)

References

(Blocks 2 open bugs)

Details

Found in

  • 130.0a1 (2024-07-30)

Affected versions

  • 130.0a1 (2024-07-30)

Tested platforms

  • Affected platforms:
  • Ubuntu 22.04
  • Mac 13.*
    *Ubuntu 22.04

Preconditions

  • dom.text_fragments.enabled True

Steps to reproduce

  1. New profile.
  2. Access https://www.hl.co.uk/pensions/insights/how-much-cash-should-i-hold-in-retirement#:~:text=To%20cover%20your%20emergency%20cash,you%20need%20to%20access%20it. (if link stale, suffices to do any text fragment from domain, clear cache and access it)
  3. On the displayed cookie popup, accept.

Expected result

  • Text Fragment directive is reaplied after the cookies popup is handled.

Actual result

  • Scroll for Text Fragment directive is not reaplied after the cookies popup is handled, highlight is kept.

Regression range

  • N/A

I just tested with a local build on Ubuntu. After dismissing the cookie banner the page seems to scroll to the top, but the text highlight is still there. Chrome and Safari show the same behavior.

Can you confirm that the highlight is actually not visible on the page?

Flags: needinfo?(aflorinescu)

(In reply to Jan Jaeschke [:jjaschke] from comment #1)

I just tested with a local build on Ubuntu. After dismissing the cookie banner the page seems to scroll to the top, but the text highlight is still there. Chrome and Safari show the same behavior.

Can you confirm that the highlight is actually not visible on the page?

You are right, my bad, scroll is reset, highlight remains, updating the description.

Flags: needinfo?(aflorinescu)

Thank you for confirming. I think we can close this one then -- this seems to be an issue with the page, not the browser.

If you enter the page with a normal ID instead of a text fragment (e.g. https://www.hl.co.uk/pensions/insights/how-much-cash-should-i-hold-in-retirement#bottom), it shows the same behavior. It scrolls to the bottom, after accepting the cookie banner it scrolls to the top.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.