<?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>165597</bug_id>
          
          <creation_ts>2016-12-08 01:59:34 -0800</creation_ts>
          <short_desc>When using contains Korean chraracter then crash `location.hash` value.</short_desc>
          <delta_ts>2016-12-14 11:11:07 -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>Platform</component>
          <version>Safari 10</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>162660</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jung Yong Woo">stegano</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1257673</commentid>
    <comment_count>0</comment_count>
    <who name="Jung Yong Woo">stegano</who>
    <bug_when>2016-12-08 01:59:34 -0800</bug_when>
    <thetext>Summary:
When using contains Korean chraracter then crash `location.hash` value.

Steps to Reproduce:
1. install Safari
2. launch Safari
3. move to https://apple.com(or another site)
4. Top menu -&gt; for developer -&gt; Show error console
5. below javascript code input to console
location.hash = &quot;한글 테스트&quot; // input Korean character to location.hash;
console.log(location.hash); // you will show &quot;#\&quot; in console, but must be `한글 테스트` or `%ED%95%9C%EA%B8%80%20%ED%85%8C%EC%8A%A4%ED%8A%B8`.


Expected Results:
&quot;#한글 테스트&quot; or &quot;#%ED%95%9C%EA%B8%80%20%ED%85%8C%EC%8A%A4%ED%8A%B8&quot;

Actual Results:
&quot;#\&quot;

Version:
OS X</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1257689</commentid>
    <comment_count>1</comment_count>
    <who name="Jung Yong Woo">stegano</who>
    <bug_when>2016-12-08 06:24:59 -0800</bug_when>
    <thetext>I think it relate to https://bugs.webkit.org/show_bug.cgi?id=15182</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1259093</commentid>
    <comment_count>2</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2016-12-12 10:03:18 -0800</bug_when>
    <thetext>I can reproduces this for the old URL::parse, but with the new URLParser this problem is fixed.  It logs &quot;%ED%95%9C%EA%B8%80% %ED%85%8C%EC%8A%A4%ED%8A%B8&quot; and does not percent encode the space which matches Chrome and a recent change to the URL spec in https://github.com/whatwg/url/pull/169
Could you verify the fix in Safari Tech Preview? https://developer.apple.com/safari/technology-preview/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1259702</commentid>
    <comment_count>3</comment_count>
    <who name="Jung Yong Woo">stegano</who>
    <bug_when>2016-12-14 04:57:56 -0800</bug_when>
    <thetext>Thanks for your reply :)
It works well in Safari Technology Preview.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1259818</commentid>
    <comment_count>4</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2016-12-14 11:11:07 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 162660 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>