Closed Bug 1726368 Opened 4 years ago Closed 1 year ago

Site scrolls to footer on initial load in firefox but not in other browsers

Categories

(Web Compatibility :: Site Reports, defect)

Firefox 91
defect

Tracking

(firefox103 affected, firefox111 affected)

RESOLVED WORKSFORME
Tracking Status
firefox103 --- affected
firefox111 --- affected

People

(Reporter: pritamonline, Assigned: denschub)

References

()

Details

(Keywords: webcompat:needs-diagnosis)

Attachments

(3 files)

Attached image WSP-Firefox-Bug.PNG

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

Steps to reproduce:

To reproduce this issue visit www.wsp.com in latest firefox browser; the website page loads and viewport stays in footer. Open same page in any other browser Chrome, Edge, Safari (mac) they stay on top during 1st load. I have attached screenshot of webpage footer area that is shown on page load - problem users are facing in firefox. Also, uploaded the demo video of issue on youtube - https://youtu.be/3dKmzBGu3_0

Actual results:

When www.wsp.com webpage is opened in firefox it scrolls down and stays in footer, user needs to scroll up to see the navigation section of page.

Expected results:

The site page should stay at top, it should not scroll down or stay at footer area during initial page load. There is no script written on page to make the page scroll down, firefox is picking up some thing in page that is causing it to show site footer immediately; but this does not happen with other popular browsers

In the attached video, i have reproduced the issue seen only in firefox browser wherein the webpage scrolls to end of page instead of remaining on top on page load. Firefox is not rendering the page correctly while other browsers don't seem to have this issue. On page load the website should remain on top. Please visit www.wsp.com to check what firefox is picking up while rendering the page and causing it to go to the bottom instead of staying on top.

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Navigation' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

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

If UA is spoofed to version 53.0 (i.e. Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/53.0), the initial scroll position will be correct.

Sounds like the site is doing something specific for Firefox 53+? Moving to webcompat for investigation.

Component: DOM: Navigation → Desktop
Product: Core → Web Compatibility

I've seen similar problems in Firefox when sites have their css <link>s in <body> instead of <head>, which is what this site is doing. But since this works when UA is spoofed to 53, it might not be that.

Blocks: 1404468

The issue still occurs.
https://prnt.sc/XCGftfafONak

Tested with:
Browser / Version: Firefox Nightly 103.0a1 (2022-06-20)
Operating System: Windows 10 Pro

Assignee: nobody → dschubert
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached video wsp.mp4

The page is scrolled to the middle of the page and after 2-3 seconds it scrolls back up.

Tested on:
Operating system: Windows 10
Firefox version: Nightly 111.0a1 (2023-01-17) / Chrome 109.0.5414.75

Note: Not reproducible on Chrome.

This seems to work for me now, so I'll close this issue. If this is still happening, please leave a comment here or file a new bug.

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

Attachment

General

Creator:
Created:
Updated:
Size: