<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Add support for creating invalid URLs directly"
   href="https://bugs.webkit.org/show_bug.cgi?id=156364">156364</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Add support for creating invalid URLs directly
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>WebCore Misc.
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jiewen_tan&#64;apple.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>In IPC, a URL is encoded as a string and will be decoded by passing the string to WebCore::URL::URL(ParsedURLStringTag, const String&amp; 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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>