Bug 223439

Summary: location.assign("#foo") in the hashchange event listener of iframes went wrong
Product: WebKit Reporter: Toru Nagashima <public>
Component: FramesAssignee: 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
Reported 2021-03-18 05:01:27 PDT
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
Radar WebKit Bug Importer
Comment 1 2021-03-25 05:02:14 PDT
Ahmad Saleem
Comment 2 2023-12-30 05:21:44 PST
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
Comment 3 2023-12-30 05:22:01 PST
(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
Note You need to log in before you can comment on or make changes to this bug.