<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>223439</bug_id>
          
          <creation_ts>2021-03-18 05:01:27 -0700</creation_ts>
          <short_desc>location.assign(&quot;#foo&quot;) in the hashchange event listener of iframes went wrong</short_desc>
          <delta_ts>2023-12-30 05:22:01 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Frames</component>
          <version>Safari 14</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Toru Nagashima">public</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>annevk</cc>
    
    <cc>beidson</cc>
    
    <cc>cdumez</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1741168</commentid>
    <comment_count>0</comment_count>
    <who name="Toru Nagashima">public</who>
    <bug_when>2021-03-18 05:01:27 -0700</bug_when>
    <thetext>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(&quot;#bar&quot;)` in index.html is expected to change the URL to `index.html#bar`.
However, in Webkit, it changed the URL to `iframe.html#bar`.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1743735</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-03-25 05:02:14 -0700</bug_when>
    <thetext>&lt;rdar://problem/75832299&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2002297</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-12-30 05:21:44 -0800</bug_when>
    <thetext>I am unable to reproduce using - https://mysticatea.github.io/webkit-test/index.html

It shoes `index.html#bar` and matches Chrome Canary 122.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2002298</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-12-30 05:22:01 -0800</bug_when>
    <thetext>(In reply to Ahmad Saleem from comment #2)
&gt; I am unable to reproduce using -
&gt; https://mysticatea.github.io/webkit-test/index.html
&gt; 
&gt; It shoes `index.html#bar` and matches Chrome Canary 122.

Using Safari 17.2.1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>