Bug 223439
| Summary: | location.assign("#foo") in the hashchange event listener of iframes went wrong | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Toru Nagashima <public> |
| Component: | Frames | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | ahmad.saleem792, annevk, beidson, cdumez, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 14 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Toru Nagashima
Repro: https://github.com/mysticatea/webkit-test
I have checked it on Webkit 14.1 on Windows 10 (by playwright) and on Safari 13.1.2 on macOS 10.13.6.
In the repro, two pages exist:
- index.html
- iframe.html
`location.assign("#bar")` in index.html is expected to change the URL to `index.html#bar`.
However, in Webkit, it changed the URL to `iframe.html#bar`.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/75832299>
Ahmad Saleem
I am unable to reproduce using - https://mysticatea.github.io/webkit-test/index.html
It shoes `index.html#bar` and matches Chrome Canary 122.
Ahmad Saleem
(In reply to Ahmad Saleem from comment #2)
> I am unable to reproduce using -
> https://mysticatea.github.io/webkit-test/index.html
>
> It shoes `index.html#bar` and matches Chrome Canary 122.
Using Safari 17.2.1