Bug 120693 (mysite1920)
| Summary: | scrollTop/scrollLeft, window.scroll(x, y) method doesn't work on refreshing the page | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | ashish <solutionportal121> |
| Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
| Status: | UNCONFIRMED | ||
| Severity: | Normal | ||
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
ashish
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.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |