[Webkit-unassigned] [Bug 263635] window.history.replaceState('', '', '') has no effect in Safari on macOS

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 3 08:07:26 PDT 2024


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

harnoor1994 at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |harnoor1994 at gmail.com

--- Comment #5 from harnoor1994 at gmail.com ---
Created attachment 472419

  --> https://bugs.webkit.org/attachment.cgi?id=472419&action=review

index.html to illustrate the bug repro

I am attaching an index.html to illustrate a behavior related to how Safari on macOS handles URL changes when using the replaceState function. It is no repro on Chrome.
Repo Link of same index.html: https://github.com/HarnoorSinghKhurana/safari-test/tree/main

Live Test Link : https://exquisite-fudge-6ed920.netlify.app/

Expected Behavior:
1. Clicking "Go to Deep Link" should update the URL with the fragment (#/deeplink?test-id=6f5d61af).
2. Clicking "Back to Default Route" should clear the fragment and restore the URL to its base path.

In Safari on macOS, the clearDeepLink function donot clear the fragment from the URL, leaving it unchanged.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240903/1310802d/attachment-0001.htm>


More information about the webkit-unassigned mailing list