[Webkit-unassigned] [Bug 18372] New: data: urls are escaped

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 8 18:31:28 PDT 2008


http://bugs.webkit.org/show_bug.cgi?id=18372

           Summary: data: urls are escaped
           Product: WebKit
           Version: 525.x (Safari 3.1)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: minatoar at gmail.com


data:urls are canonicalized in webcore by url-escaping their contents.

neither Firefox nor Opera do this (which makes this a compatibility issue)

i would argue that webcore should not url-escape either.

it is also probably better on performance and memory consumption (especially
for large data:urls) not to do this escaping business, since really the intent
is to use it as data anyway.

Here is a small example to repro the problem:

<html>
 <a href="data:text/html,<p>test</p>" onclick="alert(this.href); return
false">Click Me</a>
</html>

This opens an alert, which outputs differently in each browser:

[Safari]  data:text/html,%3Cp%3Etest%3C/p%3E
[Firefox]  data:text/html,<p>test</p>
[Opera]  data:text/html,<p>test</p>
[IE8*] data:text/html,<p>test</p>

*even so, IE8 doesn't actually support data:urls


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list