[Webkit-unassigned] [Bug 120693] New: scrollTop/scrollLeft, window.scroll(x, y) method doesn't work on refreshing the page

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 4 12:46:23 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=120693

           Summary: scrollTop/scrollLeft, window.scroll(x, y) method
                    doesn't work on refreshing the page
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows 7
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: solutionportal121 at gmail.com


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.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list