[Webkit-unassigned] [Bug 156364] Add support for creating invalid URLs directly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 8 11:43:59 PDT 2016


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

--- Comment #4 from Andy Estes <aestes at apple.com> ---
(In reply to comment #3)
> (In reply to comment #2)
> > I am confused by this proposal. I am not sure it is wrong, but I don’t
> > understand what we propose to change.
> 
> Currently, the wire format for a URL is just a string. However, if the URL
> is invalid, the string is garbage. I believe the proposal is to modify the
> wire format to be something corresponding to an Optional<String>.

To be more precise, we currently convert URLs to strings for serialization, then use ParsedURLStringTag to reconstruct the URL on the other side. For invalid URLs, this is wrong. For now, we give invalid URLs the string 'about:blank', but this means that "invalid URL" error pages will show that string in the address field. We want to show the actual invalid URL that failed instead, which is what this bug is about.

Jiewen and I were thinking that we could add a new URL constructor that accepts a string but doesn't attempt to pause it as a valid URL. Or maybe we should not add this to URL and just use Strings.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160408/35fb5614/attachment.html>


More information about the webkit-unassigned mailing list