[Webkit-unassigned] [Bug 223439] New: location.assign("#foo") in the hashchange event listener of iframes went wrong

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 18 05:01:27 PDT 2021


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

            Bug ID: 223439
           Summary: location.assign("#foo") in the hashchange event
                    listener of iframes went wrong
           Product: WebKit
           Version: Safari 14
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Frames
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: public at mysticatea.dev

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

-- 
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/20210318/1ab74ce8/attachment.htm>


More information about the webkit-unassigned mailing list