[Webkit-unassigned] [Bug 54774] [fileapi] Implement LocalFileSystem.resolveFileSystemURI

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 25 11:59:15 PST 2011


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





--- Comment #17 from Michael Nordman <michaeln at google.com>  2011-02-25 11:59:15 PST ---
(From update of attachment 83740)
View in context: https://bugs.webkit.org/attachment.cgi?id=83740&action=review

>>> Source/WebCore/page/DOMWindow.cpp:765
>>> +    KURL parsedURL(ParsedURLString, uri);
>> 
>> This still seems strange to me.  Everywhere else we call competeURL.  If this is what the spec says, it's probably wrong.  :(

Looks like there are two issues...

1) I think this string is raw user input, if so we definitely shouldn't assume that it's a valid url. The comments on the KURL ctor being used imply that the string is known to be a valid url. I think a better ctor to parse an absolute url (of questionable validity) would be...
   KURL(const KURL& base, const String& relative)
... passing in an empty KURL() as the 'base' parameter.

2) If relative urls are supposed to be valid inputs to this scriptable method, we should be using doc->completeURL(str). I think the envisioned use case was an HTTP loaded page resolving filesystem urls... but good question... what if the page location is filesystem:something?

-- 
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