[Webkit-unassigned] [Bug 85881] New: history not correct when performing multiple operations of altering location.hash and then location.replace

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 8 06:47:46 PDT 2012


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

           Summary: history not correct when performing multiple
                    operations of altering location.hash and then
                    location.replace
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh Intel
        OS/Version: Mac OS X 10.7
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: History
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: joehud at gmail.com


Created an attachment (id=140706)
 --> (https://bugs.webkit.org/attachment.cgi?id=140706&action=review)
unit test to demonstrate issue

When performing the following steps, the history is not correctly represented

location.hash = 'start';

location.hash = 'toBeReplaced';
location.replace('...#hash1');

location.hash = 'toBeReplaced';
location.replace('...#hash2');

history.back();

In this case, I would expect, after the back execution, the hash to be 'hash1' but it ends up to be 'start';

Please see attached unit test.

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