[Webkit-unassigned] [Bug 85881] 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
Wed Mar 6 15:09:49 PST 2013


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


M. Dave Auayan <m at octidextro.us> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |m at octidextro.us




--- Comment #1 from M. Dave Auayan <m at octidextro.us>  2013-03-06 15:12:14 PST ---
This is kind of a strange bug, and I'm not sure I understand what's happening.

If you use this:

location.hash = 'start';

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

location.hash = 'toBeReplaced-2'; // <-- different from your unit test instructions
location.replace('...#hash2');

history.back();

... you get back to 'toBeReplaced'. 

I'm kind of expecting it to be 'toBeReplaced-2', but maybe I'm misunderstanding what the location.replace calls are doing. 

All 5 of those actions should introduce a new page in the history, no?

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