WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
16139
REGRESSION: Number sign displayed inconsistently in URLs
https://bugs.webkit.org/show_bug.cgi?id=16139
Summary
REGRESSION: Number sign displayed inconsistently in URLs
Alexey Proskuryakov
Reported
2007-11-25 23:06:14 PST
"data:text/html,★☆" is displayed as "data:text/html,★&%239734;". * STEPS TO REPRODUCE 1. Paste "data:text/html,★☆" into Safari address bar (no quotes). 2. Press Enter. * RESULTS The URL changes to "data:text/html,★&%239734;". It shouldn't change; or at least, the '#' character should be encoded in both cases. * REGRESSION This works fine in Safari 2 with
r12006
WebKit, fails in Safari 2 with 10.4.11 WebKit. Also fails in Safari 3.
Attachments
Add attachment
proposed patch, testcase, etc.
David Kilzer (:ddkilzer)
Comment 1
2007-11-28 21:51:42 PST
<
rdar://problem/5619303
>
Darin Adler
Comment 2
2007-12-02 22:32:50 PST
Is there an important symptom of this? This seems pretty minor to me.
Alexey Proskuryakov
Comment 3
2007-12-02 22:46:30 PST
None that I know of. I looked into this briefly, and couldn't determine whether this was a WebKit of CF (or even Safari) bug. Or even if it's a bug or improved behavior :-/
Darin Adler
Comment 4
2007-12-03 09:43:39 PST
For what it's worth, the difference between the first number sign and subsequent ones is that the first is the one that separates the URL from the fragment identifier. The subsequent number signs are within the fragment identifier. The issue is definitely in WebCore's KURL::parse function, not in Safari or CF. The escaping is triggered by this entry in the characterClassTable: /* 35 # */ PathSegmentEndChar | BadChar I suspect that the change in behavior for data URLs is due to
http://trac.webkit.org/projects/webkit/changeset/24777
>. That change caused us to treat "#" characters as the start of a fragment even in non-hierarchical URLs.
Ahmad Saleem
Comment 5
2024-04-19 08:49:55 PDT
@Alexey - I am unable to reproduce this bug in Safari 17.5 Beta and copy pasting 'data:text/html,★☆' in URL bar and hitting Enter still keeps same URL. I think this might have been resolved over the period of time and we can mark this as 'RESOLVED CONFIGURATION CHANGED'.
Alexey Proskuryakov
Comment 6
2024-04-24 10:49:16 PDT
I'm not just seeing "data:" in Safari, despite the setting to show the full URL.
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