Bug 16692

Summary: Acid3 expects \u escapes to work in data: urls
Product: WebKit Reporter: Eric Seidel (no email) <eric>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Severity: Normal CC: kevin
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.4   
Description Flags
test case
Don't replace \ with / in data: urls ap: review+

Description Eric Seidel (no email) 2008-01-01 01:26:19 PST
Acid3 expects \u escapes to work in data: urls

We seem to be escaping \'s as /'s before trying \u escapes.

See test case.  This should be an easy fix.

Firefox and opera pass this test, I have not tried WinIE.
Comment 1 Eric Seidel (no email) 2008-01-01 01:26:36 PST
Created attachment 18222 [details]
test case
Comment 2 Eric Seidel (no email) 2008-01-01 02:11:14 PST
I expect this is the problem right here:


    // for compatibility with Win IE, we must treat backslashes as if they were slashes, as long as we're not dealing with the javascript: schema
    DeprecatedString substitutedRelative;
    bool shouldSubstituteBackslashes = relative.contains('\\') && !relative.startsWith("javascript:", false);
    if (shouldSubstituteBackslashes) {
        substitutedRelative = substituteBackslashes(relative);

That check is obviously failing (or not getting hit for this code path).
Comment 3 Eric Seidel (no email) 2008-01-01 02:32:00 PST
Created attachment 18223 [details]
Don't replace \ with / in data: urls

 LayoutTests/ChangeLog                              |   10 ++++++++++
 .../loader/url-data-replace-backslash-expected.txt |    1 +
 .../fast/loader/url-data-replace-backslash.html    |   13 +++++++++++++
 WebCore/ChangeLog                                  |   12 ++++++++++++
 WebCore/platform/KURL.cpp                          |    5 ++---
 5 files changed, 38 insertions(+), 3 deletions(-)
Comment 4 Alexey Proskuryakov 2008-01-01 02:37:26 PST
Comment on attachment 18223 [details]
Don't replace \ with / in data: urls


\ No newline at end of file

Please add one :)
Comment 5 Eric Seidel (no email) 2008-01-01 02:41:28 PST
Comment 6 Alexey Proskuryakov 2008-11-28 12:25:35 PST
*** Bug 11464 has been marked as a duplicate of this bug. ***