<?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>118611</bug_id>
          
          <creation_ts>2013-07-12 11:35:25 -0700</creation_ts>
          <short_desc>location.href and document.URL incorrect when domain is non-ASCII</short_desc>
          <delta_ts>2022-08-04 10:36:24 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc>http://ит-7.рф/test.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Boris Zbarsky">bzbarsky</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>cdumez</cc>
    
    <cc>rniwa</cc>
    
    <cc>syoichi</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>908020</commentid>
    <comment_count>0</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2013-07-12 11:35:25 -0700</bug_when>
    <thetext>STEPS TO REPRODUCE:

1. Load http://ит-7.рф/test.html
2. Examine window.location.href
3. Examine document.URL

EXPECTED RESULT: Both location.href and document.URL show the Unicode string, not punycode.

ACTUAL RESULT: Punycode is shown.

ADDITIONAL INFO:

Relevant spec at http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html#set-the-document%27s-address 

Relevant comments from spec editor at http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2013-July/040031.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1888135</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-01 12:37:29 -0700</bug_when>
    <thetext>Wayback archive - https://web.archive.org/web/20140805202228/http://ит-7.рф/test.html

*** Firefox Nightly 105 ***

document.URL

http://%D0%B8%D1%82-7.%D1%80%D1%84/test.html

window.location.href (Removed Wayback archive link portion)

http://%D0%B8%D1%82-7.%D1%80%D1%84/test.html

*** Safari 15.6 ***

document.URL

http://%D0%B8%D1%82-7.%D1%80%D1%84/test.html

window.location.href (Removed Wayback archive link portion)

http://%D0%B8%D1%82-7.%D1%80%D1%84/test.html

*** Chrome Canary 105 ***

document.URL

http://%D0%B8%D1%82-7.%D1%80%D1%84/test.html

window.location.href (Removed Wayback archive link portion)

http://%D0%B8%D1%82-7.%D1%80%D1%84/test.html

________

All browsers are showing same but we have specs link in the Comment 0 as well. I just wanted to share updated results, it might be faulty due to being done on wayback archive. Appreciate if someone can look, if it is still a bug and not aligned with web-spec then moving to Radar or getting this fixed would be great. If web-spec changed and all browsers are fine then it can be marked as &quot;RESOLVED INVALID&quot;. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1888142</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-08-01 12:57:33 -0700</bug_when>
    <thetext>This cannot be tested via Wayback Machine, we&apos;ll need to test on a different domain.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1888304</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2022-08-01 21:15:27 -0700</bug_when>
    <thetext>I can reproduce this on https://日本語.jp.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1888874</commentid>
    <comment_count>4</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2022-08-04 08:53:29 -0700</bug_when>
    <thetext>I have just tried with https://日本語.jp/ and window.location.href &amp; document.URL both show punnycode in Safari &amp; Chrome &amp; Firefox.

All browsers are aligned here so I don&apos;t think we should change?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1888902</commentid>
    <comment_count>5</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2022-08-04 10:36:24 -0700</bug_when>
    <thetext>(In reply to Chris Dumez from comment #4)
&gt; I have just tried with https://日本語.jp/ and window.location.href &amp;
&gt; document.URL both show punnycode in Safari &amp; Chrome &amp; Firefox.
&gt; 
&gt; All browsers are aligned here so I don&apos;t think we should change?

Sounds like config changed to me.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>