bugzilla.mozilla.org will be intermittently unavailable on Saturday, March 24th, from 16:00 until 20:00 UTC.

Scroll bars sticks to the top and left positions when you go back to the page with JavaScript which resets the initial scroll positions



Tech Evangelism Graveyard
English US
7 years ago
3 years ago


(Reporter: santoshpc, Unassigned)






7 years ago
User-Agent:       Mozilla/5.0 (Windows NT 6.1; rv:2.0b12) Gecko/20100101 Firefox/4.0b12
Build Identifier: Mozilla/5.0 (Windows NT 6.1; rv:2.0b12) Gecko/20100101 Firefox/4.0b12

I narrowed down the choice of laptops by ticking i5 under processors and clicked on the choose link then I changed my mind and clicked back.

I wasn't able to scroll down/right, i.e. the scroll bars kept returning to the top and left positions; when I wanted to alter my choice (of laptops) and clicked back to come back to this page in order to do so.

I think that it is related to the JavaScript in the webpage which resets the initial scroll position to top & left.

Reproducible: Always

Steps to Reproduce:
1. Go to the URL provided and close the box titled "The easy way to choose your laptop" and scroll down.
2. Tick any option (I ticked i5 under processors) on the left side panel
3. Click on the "Choose" link for any of the laptops and then on the new page click on back.
4. Again, close the box titled "The easy way to choose your laptop" and scroll down/right.
Actual Results:  
The scroll bar keeps going back to the top & left positions even when dragged using a mouse or when scrolling using the arrow keys.

Expected Results:  
Should scroll normally and when you scroll down/right it should remain at the correct positions rather than getting reset/going back to the initial top and left positions.

I have tried reproducing this using Google Chrome V10.0.648.119 beta and it works correctly in Chrome.

Build platform
Build tools
Compiler 	Version 	Compiler flags
d;D:\mozilla-build\msys\mozilla-build\python25\python2.5.exe -O e;D:\mozilla-build\msys\builds\moz2_slave\rel-cen-w32-bld\build\build\cl.py cl 	14.00.50727.762 	-TC -nologo -W3 -Gy -Fdgenerated.pdb -DNDEBUG -DTRIMMED -Zi -Zi -UDEBUG -DNDEBUG -GL -wd4624 -wd4952 -O1
d;D:\mozilla-build\msys\mozilla-build\python25\python2.5.exe -O e;D:\mozilla-build\msys\builds\moz2_slave\rel-cen-w32-bld\build\build\cl.py cl 	14.00.50727.762 	-GR- -TP -nologo -Zc:wchar_t- -W3 -Gy -Fdgenerated.pdb -wd4800 -DNDEBUG -DTRIMMED -Zi -Zi -UDEBUG -DNDEBUG -GL -wd4624 -wd4952 -O1
Configure arguments

--enable-application=browser --enable-update-channel=beta --enable-update-packaging --enable-jemalloc --enable-tests --enable-official-branding

Comment 1

7 years ago
Reproducible on:
Mozilla/5.0 (Windows NT 6.1; rv:2.0b13pre) Gecko/20110302 Firefox/4.0b13pre

Comment 2

7 years ago
Confirmed on Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b13pre) Gecko/20110302 Firefox/4.0b13pre ID:20110302030357

However, UA spoofing helps,
It works if I set  "general.useragent.override" to  "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.14 (KHTML, like Gecko) Chrome/10.0.607.0 Safari/534.14".

So It seems to be the site issue, and Tech Evangelism.

Comment 3

7 years ago
Oh ok, if UA spoofing helped then I think you are right and it should be a site specific issue.

Unless anyone has anything else to add, within the next 72hrs I'll mark this bug as resolved. I hope that is fine with everyone...
Assignee: nobody → english-us
Component: General → English US
Product: Firefox → Tech Evangelism
QA Contact: general → english-us

Comment 4

7 years ago
It works perfectly now, I've tested it with the RC2.
Last Resolved: 7 years ago
Resolution: --- → FIXED
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.