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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 7 14:27:21 PDT 2016


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

            Bug ID: 156364
           Summary: Add support for creating invalid URLs directly
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jiewen_tan at apple.com

In IPC, a URL is encoded as a string and will be decoded by passing the string to WebCore::URL::URL(ParsedURLStringTag, const String& url) to skip some redundant parsing steps. However, if the URL passed to the decoder is actually invalid, it should not be parsed at all. Therefore, WebCore::URL should be enhanced with constructors to create invalid URLs directly and encoder/decoder should be tuned to distinguish between valid and invalid URLs.

Once this is done, we should fix the FIXME at WebCore::URL::init
// FIXME: Instead of assigning the m_string to blankURL(), we should
// figure out a way to preserve the original malformed URL 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/20160407/065ca216/attachment.html>


More information about the webkit-unassigned mailing list