[Webkit-unassigned] [Bug 54960] New: window.location become broken in page cache

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 22 08:13:40 PST 2011


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

           Summary: window.location become broken in page cache
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh Intel
        OS/Version: Mac OS X 10.6
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: gojpeg at gmail.com


The object of window.location become broken if one leaves the page and then presses the back button.

The following simple example may be a good illustration:

var loc = window.location
setTimeout(function () { alert(loc == window.location ? 'PASS' : 'FAIL') }, 1000)
window.location.href = 'a-history-back-page.html'

Here we cache the location object in a variable,
set a timer to check the variable after back button is pressed,
navigate to the page which sends us back,
and get the “FAIL” alert.

The a-history-back-page.html has the only JavaScript line:
window.history.back()

-- 
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