| Summary: | window.history.replaceState('', '', '') has no effect in Safari on macOS | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | harnoor1994 |
| Component: | History | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW --- | ||
| Severity: | Major | CC: | ahmad.saleem792, mike, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 16 | ||
| Hardware: | All | ||
| OS: | All | ||
Can you share test case to reproduce the issue? Plus whether it is reproducible on latest Safari Technology Preview 181? Yes it is reproducible on Safari Technology Preview 181. I am working on test cases. Thanks! Ideally what would be the most help is a WPT test that would be runnable under the WPT test harness. You can find the existing such tests at https://github.com/web-platform-tests/wpt/tree/master/html/browsers/history/the-history-interface — for example, https://github.com/web-platform-tests/wpt/blob/master/html/browsers/history/the-history-interface/history_replacestate.html And you can run those tests directly in any browser by going, for example, to http://wpt.live/html/browsers/history/the-history-interface/history_replacestate.html So you might be able to just add a `window.history.replaceState('', '', '')` test (with an assert_equals or some other kind of assert_*) directly to a copy of the existing https://github.com/web-platform-tests/wpt/blob/master/html/browsers/history/the-history-interface/history_replacestate.html source |
window.history.replaceState('', '', '') behave differently on Safari on MacOS. It is supposed to update the address bar to the default URL (before the hash parameter). But it has no effect on Safari on MacOS.