Bug 120693 (mysite1920) - scrollTop/scrollLeft, window.scroll(x, y) method doesn't work on refreshing the page
Summary: scrollTop/scrollLeft, window.scroll(x, y) method doesn't work on refreshing t...
Status: UNCONFIRMED
Alias: mysite1920
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows 7
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-04 12:45 PDT by ashish
Modified: 2013-09-04 12:45 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ashish 2013-09-04 12:45:41 PDT
In chrome 29+, the Element.scrollTop/scrollLeft and window.scroll(x, y) method doesn't give live view (on refreshing the page) when I write them in text editor and invoke from there. Whereas, in console window, it works (except on document.documentElement).

Here are some test cases: 

// In text editor

window.scroll(0, 200);  // Doesn't work
document.documentElement.scrollTop;   // 0
document.body.scrollTop;       // 0
document.body.scrollTop = 500;  // 

// In console window
document.body.scrollTop = 200;   // Works
 // and all other works too...

It doesn't work when I refresh the page. However when I completely load the page by pressing enter on the url bar, then it works.