Closed Bug 1750174 Opened 2 years ago Closed 2 years ago

Auto-refreshing pages reposition themselves to the top upon refresh

Categories

(Core :: DOM: Navigation, defect)

Firefox 96
Desktop
All
defect

Tracking

()

RESOLVED FIXED
98 Branch
Tracking Status
firefox-esr91 --- unaffected
firefox96 --- wontfix
firefox97 --- wontfix
firefox98 --- fixed

People

(Reporter: raj, Assigned: peterv)

References

(Blocks 2 open bugs)

Details

(Keywords: regression)

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:96.0) Gecko/20100101 Firefox/96.0

Steps to reproduce:

Upgraded to newest version of Firefox.

Actual results:

Pages that auto-refresh themselves using <META REFRESH> tag in page <HEAD> section re-position themselves back to the top of the page when auto-refresh occurs. This did not happen in releases earlier than 94 (the bug seems to have been introduced together with bug 1742865, already fixed) and this does not happen when I refresh the page manually by clicking the "Refresh" button: if the page was positioned somewhere in the middle before refresh, it stays there.

Expected results:

Old behavior should be restored: if the page was positioned somewhere in the middle before refresh, it stays there.

Component: Untriaged → DOM: Navigation
Product: Firefox → Core

I can reproduce the issue in Nightly98.0a1 Windows10.

Blocks: fission
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
OS: Unspecified → All
Hardware: Unspecified → Desktop
Severity: -- → S2
Assignee: nobody → peterv
Status: NEW → ASSIGNED
Attachment #9261413 - Attachment description: WIP: Bug 1750174 - Auto-refreshing pages reposition themselves to the top upon refresh. r?smaug! → Bug 1750174 - Auto-refreshing pages reposition themselves to the top upon refresh. r?smaug!
Pushed by pvanderbeken@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1e505766ba35
Auto-refreshing pages reposition themselves to the top upon refresh. r=smaug

Backed out for causing mochitest failures on test_bug1742865.html

  • Backout link
  • Push with failures
  • Failure Log
  • Failure line: TEST-UNEXPECTED-FAIL | docshell/test/mochitest/test_bug1742865.html | Scroll position should be maintained for meta refresh - got 499.79998779296875, expected 500
Flags: needinfo?(peterv)
Pushed by pvanderbeken@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7a05c061385f
Auto-refreshing pages reposition themselves to the top upon refresh. r=smaug
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 98 Branch
Flags: needinfo?(peterv)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: