Closed Bug 1636364 Opened 11 months ago Closed 11 months ago

Scroll position lost navigating from file URI page to http/https URI page

Categories

(Core :: DOM: Navigation, defect)

76 Branch
defect

Tracking

()

RESOLVED FIXED
Tracking Status
firefox-esr68 --- unaffected
firefox76 --- wontfix
firefox77 --- fixed
firefox78 --- fixed

People

(Reporter: jscher2000, Unassigned)

References

(Regression)

Details

(Keywords: regression)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:76.0) Gecko/20100101 Firefox/76.0

Steps to reproduce:

Open a long document from a file: URI, scroll down, and click a link to an http:/https: URI, then use the Back button

Actual results:

Firefox scrolls to the top.

Expected results:

Firefox should retain the scroll position.

Mozregression points to bug 1603006 as the reason for this change (in Firefox 75).

See also: https://support.mozilla.org/questions/1286157

Keywords: regression
Regressed by: 1603006
Has Regression Range: --- → yes
Has STR: --- → yes

Like the other regressions caused by this bug, it'll be the lack of browsing context preservation without preservation of the process. Bug 1550571

Depends on: 1550571

Because this bug's Severity is normal and has not been changed, and this bug's priority is -- (none,) indicating it has has not been previously triaged, the bug's Severity is being updated to -- (default, untriaged.)

Severity: normal → --

Reproduced on Firefox 76.0.1 under Win 10 64-bit.
Not reproducible with Firefox 77 beta 4 and latest Nightly 78.0a1 2020-05-11.
I'm setting the bug to New although the release is the only affected builds, so it stays in our radar when bug 1634779 lands.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Component: Untriaged → DOM: Navigation
Ever confirmed: true
Product: Firefox → Core

Sounds like this was fixed. Bug 1634779 won't make 76.

Status: NEW → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED

(In reply to Petruta Horea [:phorea] from comment #3)

Reproduced on Firefox 76.0.1 under Win 10 64-bit.
Not reproducible with Firefox 77 beta 4 and latest Nightly 78.0a1 2020-05-11.
I'm setting the bug to New although the release is the only affected builds, so it stays in our radar when bug 1634779 lands.

Like the Firefox Support forum user (eastof111) originally reporting the problem documented
here (by jscher2000) in this bug, I too had the same problem starting in 75.0 and continuing
into the current 76.0.1. I tested for the problem using the current 77.0 beta 5 release and found
that in navigating back from the http/https URI page to the file URI page, the file URI page
was indeed restored to the correct scroll position of the original anchor link!! However, the
original anchor link was NOT back in focus and NOT showing the dotted outline box around
the anchor link, as was the behavior in 74.0.1 and prior releases. So, a fix is still needed
in 77.0 to retore this original behavior af showing the original anchor link back in focus.

Flags: needinfo?(petruta.rasa)
Flags: needinfo?(pbone)

(In reply to wdld0628 from comment #5)

(In reply to Petruta Horea [:phorea] from comment #3)
Like the Firefox Support forum user (eastof111) originally reporting the problem documented
here (by jscher2000) in this bug, I too had the same problem starting in 75.0 and continuing
into the current 76.0.1. I tested for the problem using the current 77.0 beta 5 release and found
that in navigating back from the http/https URI page to the file URI page, the file URI page
was indeed restored to the correct scroll position of the original anchor link!! However, the
original anchor link was NOT back in focus and NOT showing the dotted outline box around
the anchor link, as was the behavior in 74.0.1 and prior releases. So, a fix is still needed
in 77.0 to retore this original behavior af showing the original anchor link back in focus.

Could you please try again in Firefox 77 beta 9 or latest Nightly 78.0a1 (the patches for bug 1634779 landed)?

If not, it would be better to open a new bug and provide a test case. Thank you!

Flags: needinfo?(petruta.rasa) → needinfo?(wdld0628)

(In reply to Petruta Horea [:phorea] from comment #6)

(In reply to wdld0628 from comment #5)

(In reply to Petruta Horea [:phorea] from comment #3)
Like the Firefox Support forum user (eastof111) originally reporting the problem documented
here (by jscher2000) in this bug, I too had the same problem starting in 75.0 and continuing
into the current 76.0.1. I tested for the problem using the current 77.0 beta 5 release and found
that in navigating back from the http/https URI page to the file URI page, the file URI page
was indeed restored to the correct scroll position of the original anchor link!! However, the
original anchor link was NOT back in focus and NOT showing the dotted outline box around
the anchor link, as was the behavior in 74.0.1 and prior releases. So, a fix is still needed
in 77.0 to retore this original behavior af showing the original anchor link back in focus.

Could you please try again in Firefox 77 beta 9 or latest Nightly 78.0a1 (the patches for bug 1634779 landed)?

If not, it would be better to open a new bug and provide a test case. Thank you!

Petruta, I tested with 77.0b9 and the patches for bug 1634779 did indeed fix the problem and
now the original anchor link is back in focus when navigating from the http/https URI page
back to the file URI page!! Thanks very much to you and all involved in these fixes!

Flags: needinfo?(wdld0628)

Thank you wdld0628 for testing this.

Depends on: 1634779
No longer depends on: 1550571
Flags: needinfo?(pbone)
You need to log in before you can comment on or make changes to this bug.