WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
15182
window.location.hash contains URL-encoded hash value
https://bugs.webkit.org/show_bug.cgi?id=15182
Summary
window.location.hash contains URL-encoded hash value
Tim Buckingham
Reported
2007-09-11 12:54:11 PDT
Stumbled upon a bug when working in #webkit with bdash. When reading window.location.hash in Javascript characters are not URL decoded as they are in other browsers. For example, trying to split #this|two|three when it is #this%7Ctwo%7Cthree fails in WebKit, but works fine in other browsers.
Attachments
Add attachment
proposed patch, testcase, etc.
Mark Rowe (bdash)
Comment 1
2007-09-11 12:57:42 PDT
To reproduce: 1. Visit
http://www.google.com.au/#%7C
2. Enter javascript:alert(location.hash) in the address bar. Safari displays '#%7C'. Camino displays '#|'.
Mark Rowe (bdash)
Comment 2
2007-09-11 12:58:16 PDT
<
rdar://problem/5474669
>
Jan Erik Hanssen
Comment 3
2010-12-27 12:37:08 PST
The Mozilla people seems to think that their behavior (urldecoding window.location.hash) is a bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=483304
. Also, Opera does not urldecode this.
Gavin Barraclough
Comment 4
2012-09-11 18:42:37 PDT
Based on Jan Erik Hanssen's comment, plus teh fact we match Opera & Chrome, looks like our behaviour is correct.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug