Bug 165597 - When using contains Korean chraracter then crash `location.hash` value.
Summary: When using contains Korean chraracter then crash `location.hash` value.
Status: RESOLVED DUPLICATE of bug 162660
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: Safari 10
Hardware: All All
: P2 Major
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-08 01:59 PST by Jung Yong Woo
Modified: 2016-12-14 11:11 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jung Yong Woo 2016-12-08 01:59:34 PST
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 -> for developer -> Show error console
5. below javascript code input to console
location.hash = "한글 테스트" // input Korean character to location.hash;
console.log(location.hash); // you will show "#\" in console, but must be `한글 테스트` or `%ED%95%9C%EA%B8%80%20%ED%85%8C%EC%8A%A4%ED%8A%B8`.


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

Actual Results:
"#\"

Version:
OS X
Comment 1 Jung Yong Woo 2016-12-08 06:24:59 PST
I think it relate to https://bugs.webkit.org/show_bug.cgi?id=15182
Comment 2 Alex Christensen 2016-12-12 10:03:18 PST
I can reproduces this for the old URL::parse, but with the new URLParser this problem is fixed.  It logs "%ED%95%9C%EA%B8%80% %ED%85%8C%EC%8A%A4%ED%8A%B8" 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/
Comment 3 Jung Yong Woo 2016-12-14 04:57:56 PST
Thanks for your reply :)
It works well in Safari Technology Preview.
Comment 4 Alex Christensen 2016-12-14 11:11:07 PST

*** This bug has been marked as a duplicate of bug 162660 ***