[Webkit-unassigned] [Bug 64870] [chromium] FileAPI doesn't work properly with filenames containing '#'

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 28 10:54:39 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=64870





--- Comment #9 from Brett Wilson (Google) <brettw at chromium.org>  2011-07-28 10:54:39 PST ---
setPath is definitely the wrong place for this. What happens when somebody constructs a full URL without going through setPath? You'll get different canonicalization behavior.

I presume your file refs are going through the "path URL" case of googleurl because you're using some random scheme? In this case, how much modification of these URLs do you need?

In the case of blob URLs, we decided not to add support to googleurl for them. In this way, they're like data URLs. Data URLs have a specific format & requirements, but it's not googleurl's (or KURL's) job to interpret it, it's the code that's generating or interpreting the data URL's job to make sure it's well-formed & escaped properly.

If your file stuff is similar, then your component should be generating properly escaped paths and we shouldn't need this. On the other hand, if we're going to be doing a lot of stuff, like doing relative URL resolution and fragment navigation on these URLs, it would be better to teach googleurl about them so the normal loader behavior works as expected.

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



More information about the webkit-unassigned mailing list