Open Bug 1916338 Opened 9 months ago Updated 9 months ago

Scrolling happens in wrong tab when opening tab in background

Categories

(Core :: DOM: Navigation, defect, P3)

Firefox 132
ARM
macOS
defect

Tracking

()

Tracking Status
firefox132 --- affected

People

(Reporter: simonf, Unassigned)

Details

STR:

  1. Go to https://github.com/WICG/Realms-Initialization-Control?tab=readme-ov-file#Same-Origin-Realm
  2. Scroll to the top
  3. Command+Click (I am on MacOS) on the first "same origin realms" link

Effect: Instead of a background tab opening at the bottom of the page, the background tab opens at the top and the current tab scrolls to the bottom again.

Note: This seems to only happen if the link that is currently open is pointing to the same anchor which is being opened. If you're on https://github.com/WICG/Realms-Initialization-Control?tab=readme-ov-file#Considerations it works fine.

Also: In general scrolling around on that page then focusing the address bar and pressing enter does nothing while it should scroll back to the anchor.

Confirmed, except for me the new tab scrolls to the correct position. But the current tab certainly shouldn't scroll...

S3 because cmd-clicking a link pointing to the same URL (including fragment) as the current page seems rare and the impact is annoyance but doesn't break anything.

Severity: -- → S3
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.