<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[206165] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/206165">206165</a></dd>
<dt>Author</dt> <dd>achristensen@apple.com</dd>
<dt>Date</dt> <dd>2016-09-20 13:01:08 -0700 (Tue, 20 Sep 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Non-special URLs should have an opaque origin
https://bugs.webkit.org/show_bug.cgi?id=162254

Reviewed by Sam Weinig.

LayoutTests/imported/w3c:

* web-platform-tests/url/a-element-expected.txt:
* web-platform-tests/url/a-element-xhtml-expected.txt:
* web-platform-tests/url/url-constructor-expected.txt:

Source/WebCore:

Covered by newly passing web platform tests.

* page/SecurityOrigin.cpp:
(WebCore::shouldTreatAsUniqueOrigin):
According to https://url.spec.whatwg.org/#origin all URLs with non-special protocols
should have a unique SecurityOrigin whose serialization is &quot;null&quot;.

LayoutTests:

* http/tests/security/postMessage/invalid-origin-throws-exception-expected.txt:
* http/tests/security/postMessage/invalid-origin-throws-exception.html:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritypostMessageinvalidoriginthrowsexceptionexpectedtxt">trunk/LayoutTests/http/tests/security/postMessage/invalid-origin-throws-exception-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritypostMessageinvalidoriginthrowsexceptionhtml">trunk/LayoutTests/http/tests/security/postMessage/invalid-origin-throws-exception.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cChangeLog">trunk/LayoutTests/imported/w3c/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsurlaelementexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/url/a-element-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsurlaelementxhtmlexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/url/a-element-xhtml-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsurlurlconstructorexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/url/url-constructor-expected.txt</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorepageSecurityOrigincpp">trunk/Source/WebCore/page/SecurityOrigin.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (206164 => 206165)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2016-09-20 19:31:30 UTC (rev 206164)
+++ trunk/LayoutTests/ChangeLog        2016-09-20 20:01:08 UTC (rev 206165)
</span><span class="lines">@@ -1,3 +1,13 @@
</span><ins>+2016-09-20  Alex Christensen  &lt;achristensen@webkit.org&gt;
+
+        Non-special URLs should have an opaque origin
+        https://bugs.webkit.org/show_bug.cgi?id=162254
+
+        Reviewed by Sam Weinig.
+
+        * http/tests/security/postMessage/invalid-origin-throws-exception-expected.txt:
+        * http/tests/security/postMessage/invalid-origin-throws-exception.html:
+
</ins><span class="cx"> 2016-09-20  Javier Fernandez  &lt;jfernandez@igalia.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [css-grid] The 'grid' shorthand has a new syntax.
</span></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritypostMessageinvalidoriginthrowsexceptionexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/security/postMessage/invalid-origin-throws-exception-expected.txt (206164 => 206165)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/postMessage/invalid-origin-throws-exception-expected.txt        2016-09-20 19:31:30 UTC (rev 206164)
+++ trunk/LayoutTests/http/tests/security/postMessage/invalid-origin-throws-exception-expected.txt        2016-09-20 20:01:08 UTC (rev 206165)
</span><span class="lines">@@ -1,5 +1,3 @@
</span><del>-CONSOLE MESSAGE: Unable to post message to asdf://. Recipient has origin http://localhost:8000.
-
</del><span class="cx"> window.location.href = http://127.0.0.1:8000/security/postMessage/invalid-origin-throws-exception.html
</span><span class="cx"> waiting...
</span><span class="cx"> Encountered exception SyntaxError (DOM Exception 12): The string did not match the expected pattern. while posting message to ''.
</span><span class="lines">@@ -6,7 +4,7 @@
</span><span class="cx"> Encountered exception SyntaxError (DOM Exception 12): The string did not match the expected pattern. while posting message to 'asdf'.
</span><span class="cx"> Encountered exception SyntaxError (DOM Exception 12): The string did not match the expected pattern. while posting message to '/tmp/foo'.
</span><span class="cx"> Encountered exception SyntaxError (DOM Exception 12): The string did not match the expected pattern. while posting message to '//localhost'.
</span><del>-Posted message to 'asdf:' without any exceptions.
</del><ins>+Encountered exception SyntaxError (DOM Exception 12): The string did not match the expected pattern. while posting message to 'asdf:'.
</ins><span class="cx"> Encountered exception SyntaxError (DOM Exception 12): The string did not match the expected pattern. while posting message to 'http:'.
</span><span class="cx"> Received message: data=&quot;Received message: data=&quot;done&quot; origin=&quot;http://127.0.0.1:8000&quot;&quot; origin=&quot;http://localhost:8000&quot;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritypostMessageinvalidoriginthrowsexceptionhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/security/postMessage/invalid-origin-throws-exception.html (206164 => 206165)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/postMessage/invalid-origin-throws-exception.html        2016-09-20 19:31:30 UTC (rev 206164)
+++ trunk/LayoutTests/http/tests/security/postMessage/invalid-origin-throws-exception.html        2016-09-20 20:01:08 UTC (rev 206165)
</span><span class="lines">@@ -29,7 +29,7 @@
</span><span class="cx">     tryPostMessage(&quot;/tmp/foo&quot;);
</span><span class="cx">     tryPostMessage(&quot;//localhost&quot;);
</span><span class="cx"> 
</span><del>-    // URLs without an origin should fail without generating any errors.
</del><ins>+    // URLs without an origin should fail with a syntax error.
</ins><span class="cx">     tryPostMessage(&quot;asdf:&quot;);
</span><span class="cx">     tryPostMessage(&quot;http:&quot;);
</span><span class="cx">     
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/ChangeLog (206164 => 206165)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/ChangeLog        2016-09-20 19:31:30 UTC (rev 206164)
+++ trunk/LayoutTests/imported/w3c/ChangeLog        2016-09-20 20:01:08 UTC (rev 206165)
</span><span class="lines">@@ -1,3 +1,14 @@
</span><ins>+2016-09-20  Alex Christensen  &lt;achristensen@webkit.org&gt;
+
+        Non-special URLs should have an opaque origin
+        https://bugs.webkit.org/show_bug.cgi?id=162254
+
+        Reviewed by Sam Weinig.
+
+        * web-platform-tests/url/a-element-expected.txt:
+        * web-platform-tests/url/a-element-xhtml-expected.txt:
+        * web-platform-tests/url/url-constructor-expected.txt:
+
</ins><span class="cx"> 2016-09-20  Jer Noble  &lt;jer.noble@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [media-source] Support MediaSource.setLiveSeekableRanges()
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsurlaelementexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/url/a-element-expected.txt (206164 => 206165)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/url/a-element-expected.txt        2016-09-20 19:31:30 UTC (rev 206164)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/url/a-element-expected.txt        2016-09-20 20:01:08 UTC (rev 206165)
</span><span class="lines">@@ -7,7 +7,7 @@
</span><span class="cx"> PASS Parsing: &lt;           :foo.com   
</span><span class="cx"> &gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt; foo.com  &gt; against &lt;http://example.org/foo/bar&gt; 
</span><del>-FAIL Parsing: &lt;a:         foo.com&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;a://&quot;
</del><ins>+PASS Parsing: &lt;a:         foo.com&gt; against &lt;http://example.org/foo/bar&gt; 
</ins><span class="cx"> PASS Parsing: &lt;http://f:21/ b ? d # e &gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;http://f:/c&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> FAIL Parsing: &lt;http://f:0/c&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;http://f:0&quot; but got &quot;http://f&quot;
</span><span class="lines">@@ -48,12 +48,12 @@
</span><span class="cx"> PASS Parsing: &lt;http://foo.com/\@&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;http:\\foo.com\&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;http:\\a\b:c\d@foo.com\&gt; against &lt;http://example.org/foo/bar&gt; 
</span><del>-FAIL Parsing: &lt;foo:/&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;foo://&quot;
-FAIL Parsing: &lt;foo:/bar.com/&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;foo://&quot;
-FAIL Parsing: &lt;foo://///////&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;foo://&quot;
-FAIL Parsing: &lt;foo://///////bar.com/&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;foo://&quot;
-FAIL Parsing: &lt;foo:////://///&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;foo://&quot;
-FAIL Parsing: &lt;c:/foo&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;c://&quot;
</del><ins>+PASS Parsing: &lt;foo:/&gt; against &lt;http://example.org/foo/bar&gt; 
+PASS Parsing: &lt;foo:/bar.com/&gt; against &lt;http://example.org/foo/bar&gt; 
+FAIL Parsing: &lt;foo://///////&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: pathname expected &quot;///////&quot; but got &quot;/////////&quot;
+FAIL Parsing: &lt;foo://///////bar.com/&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: pathname expected &quot;///////bar.com/&quot; but got &quot;/////////bar.com/&quot;
+FAIL Parsing: &lt;foo:////://///&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: pathname expected &quot;//://///&quot; but got &quot;////://///&quot;
+PASS Parsing: &lt;c:/foo&gt; against &lt;http://example.org/foo/bar&gt; 
</ins><span class="cx"> PASS Parsing: &lt;//foo/bar&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;http://foo/path;a??e#f#g&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;http://foo/abcd?efgh?ijkl&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="lines">@@ -69,26 +69,26 @@
</span><span class="cx"> FAIL Parsing: &lt;http:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: href expected &quot;http://example.org/example.com/&quot; but got &quot;http://example.com/&quot;
</span><span class="cx"> PASS Parsing: &lt;ftp:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;https:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><del>-FAIL Parsing: &lt;madeupscheme:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;madeupscheme://&quot;
</del><ins>+PASS Parsing: &lt;madeupscheme:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</ins><span class="cx"> PASS Parsing: &lt;file:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><del>-FAIL Parsing: &lt;ftps:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;ftps://&quot;
</del><ins>+PASS Parsing: &lt;ftps:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</ins><span class="cx"> PASS Parsing: &lt;gopher:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;ws:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;wss:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;data:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;javascript:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><del>-FAIL Parsing: &lt;mailto:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;mailto://&quot;
</del><ins>+PASS Parsing: &lt;mailto:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</ins><span class="cx"> PASS Parsing: &lt;http:example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;ftp:example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;https:example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><del>-FAIL Parsing: &lt;madeupscheme:example.com/&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;madeupscheme://&quot;
-FAIL Parsing: &lt;ftps:example.com/&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;ftps://&quot;
</del><ins>+PASS Parsing: &lt;madeupscheme:example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
+PASS Parsing: &lt;ftps:example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</ins><span class="cx"> PASS Parsing: &lt;gopher:example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;ws:example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;wss:example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;data:example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;javascript:example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><del>-FAIL Parsing: &lt;mailto:example.com/&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;mailto://&quot;
</del><ins>+PASS Parsing: &lt;mailto:example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</ins><span class="cx"> PASS Parsing: &lt;/a/b/c&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;/a/ /c&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;/a%2fc&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="lines">@@ -95,7 +95,7 @@
</span><span class="cx"> PASS Parsing: &lt;/a/%2f/c&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> FAIL Parsing: &lt;#β&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: href expected &quot;http://example.org/foo/bar#β&quot; but got &quot;http://example.org/foo/bar#%CE%B2&quot;
</span><span class="cx"> PASS Parsing: &lt;data:text/html,test#test&gt; against &lt;http://example.org/foo/bar&gt; 
</span><del>-FAIL Parsing: &lt;tel:1234567890&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;tel://&quot;
</del><ins>+PASS Parsing: &lt;tel:1234567890&gt; against &lt;http://example.org/foo/bar&gt; 
</ins><span class="cx"> FAIL Parsing: &lt;file:c:\foo\bar.html&gt; against &lt;file:///tmp/mock/path&gt; assert_equals: href expected &quot;file:///c:/foo/bar.html&quot; but got &quot;file:///tmp/mock/c:/foo/bar.html&quot;
</span><span class="cx"> FAIL Parsing: &lt;  File:c|////foo\bar.html&gt; against &lt;file:///tmp/mock/path&gt; assert_equals: href expected &quot;file:///c:////foo/bar.html&quot; but got &quot;file:///tmp/mock/c|////foo/bar.html&quot;
</span><span class="cx"> FAIL Parsing: &lt;C|/foo/bar&gt; against &lt;file:///tmp/mock/path&gt; assert_equals: href expected &quot;file:///C:/foo/bar&quot; but got &quot;file:///tmp/mock/C|/foo/bar&quot;
</span><span class="lines">@@ -164,7 +164,7 @@
</span><span class="cx"> PASS Parsing: &lt;http:\\www.google.com\foo&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;http://foo:80/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;http://foo:81/&gt; against &lt;about:blank&gt; 
</span><del>-FAIL Parsing: &lt;httpa://foo:80/&gt; against &lt;about:blank&gt; assert_equals: origin expected &quot;null&quot; but got &quot;httpa://foo:80&quot;
</del><ins>+PASS Parsing: &lt;httpa://foo:80/&gt; against &lt;about:blank&gt; 
</ins><span class="cx"> PASS Parsing: &lt;http://foo:-80/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;https://foo:443/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;https://foo:80/&gt; against &lt;about:blank&gt; 
</span><span class="lines">@@ -183,26 +183,26 @@
</span><span class="cx"> PASS Parsing: &lt;http:/example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;ftp:/example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;https:/example.com/&gt; against &lt;about:blank&gt; 
</span><del>-FAIL Parsing: &lt;madeupscheme:/example.com/&gt; against &lt;about:blank&gt; assert_equals: origin expected &quot;null&quot; but got &quot;madeupscheme://&quot;
</del><ins>+PASS Parsing: &lt;madeupscheme:/example.com/&gt; against &lt;about:blank&gt; 
</ins><span class="cx"> PASS Parsing: &lt;file:/example.com/&gt; against &lt;about:blank&gt; 
</span><del>-FAIL Parsing: &lt;ftps:/example.com/&gt; against &lt;about:blank&gt; assert_equals: origin expected &quot;null&quot; but got &quot;ftps://&quot;
</del><ins>+PASS Parsing: &lt;ftps:/example.com/&gt; against &lt;about:blank&gt; 
</ins><span class="cx"> PASS Parsing: &lt;gopher:/example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;ws:/example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;wss:/example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;data:/example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;javascript:/example.com/&gt; against &lt;about:blank&gt; 
</span><del>-FAIL Parsing: &lt;mailto:/example.com/&gt; against &lt;about:blank&gt; assert_equals: origin expected &quot;null&quot; but got &quot;mailto://&quot;
</del><ins>+PASS Parsing: &lt;mailto:/example.com/&gt; against &lt;about:blank&gt; 
</ins><span class="cx"> PASS Parsing: &lt;http:example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;ftp:example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;https:example.com/&gt; against &lt;about:blank&gt; 
</span><del>-FAIL Parsing: &lt;madeupscheme:example.com/&gt; against &lt;about:blank&gt; assert_equals: origin expected &quot;null&quot; but got &quot;madeupscheme://&quot;
-FAIL Parsing: &lt;ftps:example.com/&gt; against &lt;about:blank&gt; assert_equals: origin expected &quot;null&quot; but got &quot;ftps://&quot;
</del><ins>+PASS Parsing: &lt;madeupscheme:example.com/&gt; against &lt;about:blank&gt; 
+PASS Parsing: &lt;ftps:example.com/&gt; against &lt;about:blank&gt; 
</ins><span class="cx"> PASS Parsing: &lt;gopher:example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;ws:example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;wss:example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;data:example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;javascript:example.com/&gt; against &lt;about:blank&gt; 
</span><del>-FAIL Parsing: &lt;mailto:example.com/&gt; against &lt;about:blank&gt; assert_equals: origin expected &quot;null&quot; but got &quot;mailto://&quot;
</del><ins>+PASS Parsing: &lt;mailto:example.com/&gt; against &lt;about:blank&gt; 
</ins><span class="cx"> PASS Parsing: &lt;http:@www.example.com&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;http:/@www.example.com&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;http://@www.example.com&gt; against &lt;about:blank&gt; 
</span><span class="lines">@@ -273,11 +273,11 @@
</span><span class="cx"> FAIL Parsing: &lt;http://0Xc0.0250.01&gt; against &lt;http://other.com/&gt; assert_equals: href expected &quot;http://192.168.0.1/&quot; but got &quot;http://0xc0.0250.01/&quot;
</span><span class="cx"> PASS Parsing: &lt;http://[google.com]&gt; against &lt;http://other.com/&gt; 
</span><span class="cx"> FAIL Parsing: &lt;http://foo:💩@example.com/bar&gt; against &lt;http://other.com/&gt; assert_equals: href expected &quot;http://foo:%F0%9F%92%A9@example.com/bar&quot; but got &quot;http://foo:💩@example.com/bar&quot;
</span><del>-FAIL Parsing: &lt;#&gt; against &lt;test:test&gt; assert_equals: origin expected &quot;null&quot; but got &quot;test://&quot;
-FAIL Parsing: &lt;#x&gt; against &lt;mailto:x@x.com&gt; assert_equals: origin expected &quot;null&quot; but got &quot;mailto://&quot;
</del><ins>+PASS Parsing: &lt;#&gt; against &lt;test:test&gt; 
+PASS Parsing: &lt;#x&gt; against &lt;mailto:x@x.com&gt; 
</ins><span class="cx"> PASS Parsing: &lt;#x&gt; against &lt;data:,&gt; 
</span><span class="cx"> PASS Parsing: &lt;#x&gt; against &lt;about:blank&gt; 
</span><del>-FAIL Parsing: &lt;#&gt; against &lt;test:test?test&gt; assert_equals: origin expected &quot;null&quot; but got &quot;test://&quot;
</del><ins>+PASS Parsing: &lt;#&gt; against &lt;test:test?test&gt; 
</ins><span class="cx"> FAIL Parsing: &lt;https://@test@test@example:800/&gt; against &lt;http://doesnotmatter/&gt; assert_equals: href expected &quot;https://%40test%40test@example:800/&quot; but got &quot;https://@test@test@example:800/&quot;
</span><span class="cx"> FAIL Parsing: &lt;https://@@@example&gt; against &lt;http://doesnotmatter/&gt; assert_equals: href expected &quot;https://%40%40@example/&quot; but got &quot;https://@@@example&quot;
</span><span class="cx"> FAIL Parsing: &lt;http://`{}:`{}@h/`{}?`{}&gt; against &lt;http://doesnotmatter/&gt; assert_equals: href expected &quot;http://%60%7B%7D:%60%7B%7D@h/%60%7B%7D?`{}&quot; but got &quot;http://`{}:`{}@h/`{}?`{}&quot;
</span><span class="lines">@@ -286,36 +286,36 @@
</span><span class="cx"> PASS Parsing: &lt;/some/path&gt; against &lt;http://user:pass@example.org:21/smth&gt; 
</span><span class="cx"> PASS Parsing: &lt;i&gt; against &lt;sc:sd&gt; 
</span><span class="cx"> PASS Parsing: &lt;i&gt; against &lt;sc:sd/sd&gt; 
</span><del>-FAIL Parsing: &lt;i&gt; against &lt;sc:/pa/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
-FAIL Parsing: &lt;i&gt; against &lt;sc://ho/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://ho&quot;
-FAIL Parsing: &lt;i&gt; against &lt;sc:///pa/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
</del><ins>+PASS Parsing: &lt;i&gt; against &lt;sc:/pa/pa&gt; 
+PASS Parsing: &lt;i&gt; against &lt;sc://ho/pa&gt; 
+FAIL Parsing: &lt;i&gt; against &lt;sc:///pa/pa&gt; assert_equals: pathname expected &quot;/pa/i&quot; but got &quot;///pa/i&quot;
</ins><span class="cx"> PASS Parsing: &lt;../i&gt; against &lt;sc:sd&gt; 
</span><span class="cx"> PASS Parsing: &lt;../i&gt; against &lt;sc:sd/sd&gt; 
</span><del>-FAIL Parsing: &lt;../i&gt; against &lt;sc:/pa/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
-FAIL Parsing: &lt;../i&gt; against &lt;sc://ho/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://ho&quot;
-FAIL Parsing: &lt;../i&gt; against &lt;sc:///pa/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
</del><ins>+PASS Parsing: &lt;../i&gt; against &lt;sc:/pa/pa&gt; 
+PASS Parsing: &lt;../i&gt; against &lt;sc://ho/pa&gt; 
+FAIL Parsing: &lt;../i&gt; against &lt;sc:///pa/pa&gt; assert_equals: pathname expected &quot;/i&quot; but got &quot;///i&quot;
</ins><span class="cx"> PASS Parsing: &lt;/i&gt; against &lt;sc:sd&gt; 
</span><span class="cx"> PASS Parsing: &lt;/i&gt; against &lt;sc:sd/sd&gt; 
</span><del>-FAIL Parsing: &lt;/i&gt; against &lt;sc:/pa/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
-FAIL Parsing: &lt;/i&gt; against &lt;sc://ho/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://ho&quot;
</del><ins>+PASS Parsing: &lt;/i&gt; against &lt;sc:/pa/pa&gt; 
+PASS Parsing: &lt;/i&gt; against &lt;sc://ho/pa&gt; 
</ins><span class="cx"> FAIL Parsing: &lt;/i&gt; against &lt;sc:///pa/pa&gt; assert_equals: href expected &quot;sc:///i&quot; but got &quot;sc:/i&quot;
</span><span class="cx"> PASS Parsing: &lt;?i&gt; against &lt;sc:sd&gt; 
</span><span class="cx"> PASS Parsing: &lt;?i&gt; against &lt;sc:sd/sd&gt; 
</span><del>-FAIL Parsing: &lt;?i&gt; against &lt;sc:/pa/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
-FAIL Parsing: &lt;?i&gt; against &lt;sc://ho/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://ho&quot;
-FAIL Parsing: &lt;?i&gt; against &lt;sc:///pa/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
-FAIL Parsing: &lt;#i&gt; against &lt;sc:sd&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
-FAIL Parsing: &lt;#i&gt; against &lt;sc:sd/sd&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
-FAIL Parsing: &lt;#i&gt; against &lt;sc:/pa/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
-FAIL Parsing: &lt;#i&gt; against &lt;sc://ho/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://ho&quot;
-FAIL Parsing: &lt;#i&gt; against &lt;sc:///pa/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
</del><ins>+PASS Parsing: &lt;?i&gt; against &lt;sc:/pa/pa&gt; 
+PASS Parsing: &lt;?i&gt; against &lt;sc://ho/pa&gt; 
+FAIL Parsing: &lt;?i&gt; against &lt;sc:///pa/pa&gt; assert_equals: pathname expected &quot;/pa/pa&quot; but got &quot;///pa/pa&quot;
+PASS Parsing: &lt;#i&gt; against &lt;sc:sd&gt; 
+PASS Parsing: &lt;#i&gt; against &lt;sc:sd/sd&gt; 
+PASS Parsing: &lt;#i&gt; against &lt;sc:/pa/pa&gt; 
+PASS Parsing: &lt;#i&gt; against &lt;sc://ho/pa&gt; 
+FAIL Parsing: &lt;#i&gt; against &lt;sc:///pa/pa&gt; assert_equals: pathname expected &quot;/pa/pa&quot; but got &quot;///pa/pa&quot;
</ins><span class="cx"> PASS Parsing: &lt;about:/../&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;data:/../&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;javascript:/../&gt; against &lt;about:blank&gt; 
</span><del>-FAIL Parsing: &lt;mailto:/../&gt; against &lt;about:blank&gt; assert_equals: origin expected &quot;null&quot; but got &quot;mailto://&quot;
-FAIL Parsing: &lt;sc://ñ.test/&gt; against &lt;about:blank&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://xn--ida.test&quot;
</del><ins>+PASS Parsing: &lt;mailto:/../&gt; against &lt;about:blank&gt; 
+PASS Parsing: &lt;sc://ñ.test/&gt; against &lt;about:blank&gt; 
</ins><span class="cx"> FAIL Parsing: &lt;sc:\../&gt; against &lt;about:blank&gt; assert_equals: href expected &quot;sc:\\../&quot; but got &quot;sc:/&quot;
</span><del>-FAIL Parsing: &lt;sc::a@example.net&gt; against &lt;about:blank&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
</del><ins>+PASS Parsing: &lt;sc::a@example.net&gt; against &lt;about:blank&gt; 
</ins><span class="cx"> PASS Parsing: &lt;http://127.0.0.1:10100/relative_import.html&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;http://facebook.com/?foo=%7B%22abc%22&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;https://localhost:3000/jqueryui@1.2.3&gt; against &lt;about:blank&gt; 
</span><span class="lines">@@ -336,5 +336,5 @@
</span><span class="cx"> PASS Parsing: &lt;??a=b&amp;c=d&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;http:&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> FAIL Parsing: &lt;http:&gt; against &lt;https://example.org/foo/bar&gt; assert_unreached: Expected URL to fail parsing Reached unreachable code
</span><del>-FAIL Parsing: &lt;sc:&gt; against &lt;https://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
</del><ins>+PASS Parsing: &lt;sc:&gt; against &lt;https://example.org/foo/bar&gt; 
</ins><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsurlaelementxhtmlexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/url/a-element-xhtml-expected.txt (206164 => 206165)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/url/a-element-xhtml-expected.txt        2016-09-20 19:31:30 UTC (rev 206164)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/url/a-element-xhtml-expected.txt        2016-09-20 20:01:08 UTC (rev 206165)
</span><span class="lines">@@ -7,7 +7,7 @@
</span><span class="cx"> PASS Parsing: &lt;           :foo.com   
</span><span class="cx"> &gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt; foo.com  &gt; against &lt;http://example.org/foo/bar&gt; 
</span><del>-FAIL Parsing: &lt;a:         foo.com&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;a://&quot;
</del><ins>+PASS Parsing: &lt;a:         foo.com&gt; against &lt;http://example.org/foo/bar&gt; 
</ins><span class="cx"> PASS Parsing: &lt;http://f:21/ b ? d # e &gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;http://f:/c&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> FAIL Parsing: &lt;http://f:0/c&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;http://f:0&quot; but got &quot;http://f&quot;
</span><span class="lines">@@ -48,12 +48,12 @@
</span><span class="cx"> PASS Parsing: &lt;http://foo.com/\@&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;http:\\foo.com\&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;http:\\a\b:c\d@foo.com\&gt; against &lt;http://example.org/foo/bar&gt; 
</span><del>-FAIL Parsing: &lt;foo:/&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;foo://&quot;
-FAIL Parsing: &lt;foo:/bar.com/&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;foo://&quot;
-FAIL Parsing: &lt;foo://///////&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;foo://&quot;
-FAIL Parsing: &lt;foo://///////bar.com/&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;foo://&quot;
-FAIL Parsing: &lt;foo:////://///&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;foo://&quot;
-FAIL Parsing: &lt;c:/foo&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;c://&quot;
</del><ins>+PASS Parsing: &lt;foo:/&gt; against &lt;http://example.org/foo/bar&gt; 
+PASS Parsing: &lt;foo:/bar.com/&gt; against &lt;http://example.org/foo/bar&gt; 
+FAIL Parsing: &lt;foo://///////&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: pathname expected &quot;///////&quot; but got &quot;/////////&quot;
+FAIL Parsing: &lt;foo://///////bar.com/&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: pathname expected &quot;///////bar.com/&quot; but got &quot;/////////bar.com/&quot;
+FAIL Parsing: &lt;foo:////://///&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: pathname expected &quot;//://///&quot; but got &quot;////://///&quot;
+PASS Parsing: &lt;c:/foo&gt; against &lt;http://example.org/foo/bar&gt; 
</ins><span class="cx"> PASS Parsing: &lt;//foo/bar&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;http://foo/path;a??e#f#g&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;http://foo/abcd?efgh?ijkl&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="lines">@@ -69,26 +69,26 @@
</span><span class="cx"> FAIL Parsing: &lt;http:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: href expected &quot;http://example.org/example.com/&quot; but got &quot;http://example.com/&quot;
</span><span class="cx"> PASS Parsing: &lt;ftp:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;https:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><del>-FAIL Parsing: &lt;madeupscheme:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;madeupscheme://&quot;
</del><ins>+PASS Parsing: &lt;madeupscheme:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</ins><span class="cx"> PASS Parsing: &lt;file:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><del>-FAIL Parsing: &lt;ftps:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;ftps://&quot;
</del><ins>+PASS Parsing: &lt;ftps:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</ins><span class="cx"> PASS Parsing: &lt;gopher:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;ws:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;wss:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;data:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;javascript:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><del>-FAIL Parsing: &lt;mailto:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;mailto://&quot;
</del><ins>+PASS Parsing: &lt;mailto:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</ins><span class="cx"> PASS Parsing: &lt;http:example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;ftp:example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;https:example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><del>-FAIL Parsing: &lt;madeupscheme:example.com/&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;madeupscheme://&quot;
-FAIL Parsing: &lt;ftps:example.com/&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;ftps://&quot;
</del><ins>+PASS Parsing: &lt;madeupscheme:example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
+PASS Parsing: &lt;ftps:example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</ins><span class="cx"> PASS Parsing: &lt;gopher:example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;ws:example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;wss:example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;data:example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;javascript:example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><del>-FAIL Parsing: &lt;mailto:example.com/&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;mailto://&quot;
</del><ins>+PASS Parsing: &lt;mailto:example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</ins><span class="cx"> PASS Parsing: &lt;/a/b/c&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;/a/ /c&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;/a%2fc&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="lines">@@ -95,7 +95,7 @@
</span><span class="cx"> PASS Parsing: &lt;/a/%2f/c&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> FAIL Parsing: &lt;#β&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: href expected &quot;http://example.org/foo/bar#β&quot; but got &quot;http://example.org/foo/bar#%CE%B2&quot;
</span><span class="cx"> PASS Parsing: &lt;data:text/html,test#test&gt; against &lt;http://example.org/foo/bar&gt; 
</span><del>-FAIL Parsing: &lt;tel:1234567890&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;tel://&quot;
</del><ins>+PASS Parsing: &lt;tel:1234567890&gt; against &lt;http://example.org/foo/bar&gt; 
</ins><span class="cx"> FAIL Parsing: &lt;file:c:\foo\bar.html&gt; against &lt;file:///tmp/mock/path&gt; assert_equals: href expected &quot;file:///c:/foo/bar.html&quot; but got &quot;file:///tmp/mock/c:/foo/bar.html&quot;
</span><span class="cx"> FAIL Parsing: &lt;  File:c|////foo\bar.html&gt; against &lt;file:///tmp/mock/path&gt; assert_equals: href expected &quot;file:///c:////foo/bar.html&quot; but got &quot;file:///tmp/mock/c|////foo/bar.html&quot;
</span><span class="cx"> FAIL Parsing: &lt;C|/foo/bar&gt; against &lt;file:///tmp/mock/path&gt; assert_equals: href expected &quot;file:///C:/foo/bar&quot; but got &quot;file:///tmp/mock/C|/foo/bar&quot;
</span><span class="lines">@@ -164,7 +164,7 @@
</span><span class="cx"> PASS Parsing: &lt;http:\\www.google.com\foo&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;http://foo:80/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;http://foo:81/&gt; against &lt;about:blank&gt; 
</span><del>-FAIL Parsing: &lt;httpa://foo:80/&gt; against &lt;about:blank&gt; assert_equals: origin expected &quot;null&quot; but got &quot;httpa://foo:80&quot;
</del><ins>+PASS Parsing: &lt;httpa://foo:80/&gt; against &lt;about:blank&gt; 
</ins><span class="cx"> PASS Parsing: &lt;http://foo:-80/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;https://foo:443/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;https://foo:80/&gt; against &lt;about:blank&gt; 
</span><span class="lines">@@ -183,26 +183,26 @@
</span><span class="cx"> PASS Parsing: &lt;http:/example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;ftp:/example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;https:/example.com/&gt; against &lt;about:blank&gt; 
</span><del>-FAIL Parsing: &lt;madeupscheme:/example.com/&gt; against &lt;about:blank&gt; assert_equals: origin expected &quot;null&quot; but got &quot;madeupscheme://&quot;
</del><ins>+PASS Parsing: &lt;madeupscheme:/example.com/&gt; against &lt;about:blank&gt; 
</ins><span class="cx"> PASS Parsing: &lt;file:/example.com/&gt; against &lt;about:blank&gt; 
</span><del>-FAIL Parsing: &lt;ftps:/example.com/&gt; against &lt;about:blank&gt; assert_equals: origin expected &quot;null&quot; but got &quot;ftps://&quot;
</del><ins>+PASS Parsing: &lt;ftps:/example.com/&gt; against &lt;about:blank&gt; 
</ins><span class="cx"> PASS Parsing: &lt;gopher:/example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;ws:/example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;wss:/example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;data:/example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;javascript:/example.com/&gt; against &lt;about:blank&gt; 
</span><del>-FAIL Parsing: &lt;mailto:/example.com/&gt; against &lt;about:blank&gt; assert_equals: origin expected &quot;null&quot; but got &quot;mailto://&quot;
</del><ins>+PASS Parsing: &lt;mailto:/example.com/&gt; against &lt;about:blank&gt; 
</ins><span class="cx"> PASS Parsing: &lt;http:example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;ftp:example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;https:example.com/&gt; against &lt;about:blank&gt; 
</span><del>-FAIL Parsing: &lt;madeupscheme:example.com/&gt; against &lt;about:blank&gt; assert_equals: origin expected &quot;null&quot; but got &quot;madeupscheme://&quot;
-FAIL Parsing: &lt;ftps:example.com/&gt; against &lt;about:blank&gt; assert_equals: origin expected &quot;null&quot; but got &quot;ftps://&quot;
</del><ins>+PASS Parsing: &lt;madeupscheme:example.com/&gt; against &lt;about:blank&gt; 
+PASS Parsing: &lt;ftps:example.com/&gt; against &lt;about:blank&gt; 
</ins><span class="cx"> PASS Parsing: &lt;gopher:example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;ws:example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;wss:example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;data:example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;javascript:example.com/&gt; against &lt;about:blank&gt; 
</span><del>-FAIL Parsing: &lt;mailto:example.com/&gt; against &lt;about:blank&gt; assert_equals: origin expected &quot;null&quot; but got &quot;mailto://&quot;
</del><ins>+PASS Parsing: &lt;mailto:example.com/&gt; against &lt;about:blank&gt; 
</ins><span class="cx"> PASS Parsing: &lt;http:@www.example.com&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;http:/@www.example.com&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;http://@www.example.com&gt; against &lt;about:blank&gt; 
</span><span class="lines">@@ -273,11 +273,11 @@
</span><span class="cx"> FAIL Parsing: &lt;http://0Xc0.0250.01&gt; against &lt;http://other.com/&gt; assert_equals: href expected &quot;http://192.168.0.1/&quot; but got &quot;http://0xc0.0250.01/&quot;
</span><span class="cx"> PASS Parsing: &lt;http://[google.com]&gt; against &lt;http://other.com/&gt; 
</span><span class="cx"> FAIL Parsing: &lt;http://foo:💩@example.com/bar&gt; against &lt;http://other.com/&gt; assert_equals: href expected &quot;http://foo:%F0%9F%92%A9@example.com/bar&quot; but got &quot;http://foo:💩@example.com/bar&quot;
</span><del>-FAIL Parsing: &lt;#&gt; against &lt;test:test&gt; assert_equals: origin expected &quot;null&quot; but got &quot;test://&quot;
-FAIL Parsing: &lt;#x&gt; against &lt;mailto:x@x.com&gt; assert_equals: origin expected &quot;null&quot; but got &quot;mailto://&quot;
</del><ins>+PASS Parsing: &lt;#&gt; against &lt;test:test&gt; 
+PASS Parsing: &lt;#x&gt; against &lt;mailto:x@x.com&gt; 
</ins><span class="cx"> PASS Parsing: &lt;#x&gt; against &lt;data:,&gt; 
</span><span class="cx"> PASS Parsing: &lt;#x&gt; against &lt;about:blank&gt; 
</span><del>-FAIL Parsing: &lt;#&gt; against &lt;test:test?test&gt; assert_equals: origin expected &quot;null&quot; but got &quot;test://&quot;
</del><ins>+PASS Parsing: &lt;#&gt; against &lt;test:test?test&gt; 
</ins><span class="cx"> FAIL Parsing: &lt;https://@test@test@example:800/&gt; against &lt;http://doesnotmatter/&gt; assert_equals: href expected &quot;https://%40test%40test@example:800/&quot; but got &quot;https://@test@test@example:800/&quot;
</span><span class="cx"> FAIL Parsing: &lt;https://@@@example&gt; against &lt;http://doesnotmatter/&gt; assert_equals: href expected &quot;https://%40%40@example/&quot; but got &quot;https://@@@example&quot;
</span><span class="cx"> FAIL Parsing: &lt;http://`{}:`{}@h/`{}?`{}&gt; against &lt;http://doesnotmatter/&gt; assert_equals: href expected &quot;http://%60%7B%7D:%60%7B%7D@h/%60%7B%7D?`{}&quot; but got &quot;http://`{}:`{}@h/`{}?`{}&quot;
</span><span class="lines">@@ -286,36 +286,36 @@
</span><span class="cx"> PASS Parsing: &lt;/some/path&gt; against &lt;http://user:pass@example.org:21/smth&gt; 
</span><span class="cx"> PASS Parsing: &lt;i&gt; against &lt;sc:sd&gt; 
</span><span class="cx"> PASS Parsing: &lt;i&gt; against &lt;sc:sd/sd&gt; 
</span><del>-FAIL Parsing: &lt;i&gt; against &lt;sc:/pa/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
-FAIL Parsing: &lt;i&gt; against &lt;sc://ho/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://ho&quot;
-FAIL Parsing: &lt;i&gt; against &lt;sc:///pa/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
</del><ins>+PASS Parsing: &lt;i&gt; against &lt;sc:/pa/pa&gt; 
+PASS Parsing: &lt;i&gt; against &lt;sc://ho/pa&gt; 
+FAIL Parsing: &lt;i&gt; against &lt;sc:///pa/pa&gt; assert_equals: pathname expected &quot;/pa/i&quot; but got &quot;///pa/i&quot;
</ins><span class="cx"> PASS Parsing: &lt;../i&gt; against &lt;sc:sd&gt; 
</span><span class="cx"> PASS Parsing: &lt;../i&gt; against &lt;sc:sd/sd&gt; 
</span><del>-FAIL Parsing: &lt;../i&gt; against &lt;sc:/pa/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
-FAIL Parsing: &lt;../i&gt; against &lt;sc://ho/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://ho&quot;
-FAIL Parsing: &lt;../i&gt; against &lt;sc:///pa/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
</del><ins>+PASS Parsing: &lt;../i&gt; against &lt;sc:/pa/pa&gt; 
+PASS Parsing: &lt;../i&gt; against &lt;sc://ho/pa&gt; 
+FAIL Parsing: &lt;../i&gt; against &lt;sc:///pa/pa&gt; assert_equals: pathname expected &quot;/i&quot; but got &quot;///i&quot;
</ins><span class="cx"> PASS Parsing: &lt;/i&gt; against &lt;sc:sd&gt; 
</span><span class="cx"> PASS Parsing: &lt;/i&gt; against &lt;sc:sd/sd&gt; 
</span><del>-FAIL Parsing: &lt;/i&gt; against &lt;sc:/pa/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
-FAIL Parsing: &lt;/i&gt; against &lt;sc://ho/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://ho&quot;
</del><ins>+PASS Parsing: &lt;/i&gt; against &lt;sc:/pa/pa&gt; 
+PASS Parsing: &lt;/i&gt; against &lt;sc://ho/pa&gt; 
</ins><span class="cx"> FAIL Parsing: &lt;/i&gt; against &lt;sc:///pa/pa&gt; assert_equals: href expected &quot;sc:///i&quot; but got &quot;sc:/i&quot;
</span><span class="cx"> PASS Parsing: &lt;?i&gt; against &lt;sc:sd&gt; 
</span><span class="cx"> PASS Parsing: &lt;?i&gt; against &lt;sc:sd/sd&gt; 
</span><del>-FAIL Parsing: &lt;?i&gt; against &lt;sc:/pa/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
-FAIL Parsing: &lt;?i&gt; against &lt;sc://ho/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://ho&quot;
-FAIL Parsing: &lt;?i&gt; against &lt;sc:///pa/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
-FAIL Parsing: &lt;#i&gt; against &lt;sc:sd&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
-FAIL Parsing: &lt;#i&gt; against &lt;sc:sd/sd&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
-FAIL Parsing: &lt;#i&gt; against &lt;sc:/pa/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
-FAIL Parsing: &lt;#i&gt; against &lt;sc://ho/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://ho&quot;
-FAIL Parsing: &lt;#i&gt; against &lt;sc:///pa/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
</del><ins>+PASS Parsing: &lt;?i&gt; against &lt;sc:/pa/pa&gt; 
+PASS Parsing: &lt;?i&gt; against &lt;sc://ho/pa&gt; 
+FAIL Parsing: &lt;?i&gt; against &lt;sc:///pa/pa&gt; assert_equals: pathname expected &quot;/pa/pa&quot; but got &quot;///pa/pa&quot;
+PASS Parsing: &lt;#i&gt; against &lt;sc:sd&gt; 
+PASS Parsing: &lt;#i&gt; against &lt;sc:sd/sd&gt; 
+PASS Parsing: &lt;#i&gt; against &lt;sc:/pa/pa&gt; 
+PASS Parsing: &lt;#i&gt; against &lt;sc://ho/pa&gt; 
+FAIL Parsing: &lt;#i&gt; against &lt;sc:///pa/pa&gt; assert_equals: pathname expected &quot;/pa/pa&quot; but got &quot;///pa/pa&quot;
</ins><span class="cx"> PASS Parsing: &lt;about:/../&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;data:/../&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;javascript:/../&gt; against &lt;about:blank&gt; 
</span><del>-FAIL Parsing: &lt;mailto:/../&gt; against &lt;about:blank&gt; assert_equals: origin expected &quot;null&quot; but got &quot;mailto://&quot;
-FAIL Parsing: &lt;sc://ñ.test/&gt; against &lt;about:blank&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://xn--ida.test&quot;
</del><ins>+PASS Parsing: &lt;mailto:/../&gt; against &lt;about:blank&gt; 
+PASS Parsing: &lt;sc://ñ.test/&gt; against &lt;about:blank&gt; 
</ins><span class="cx"> FAIL Parsing: &lt;sc:\../&gt; against &lt;about:blank&gt; assert_equals: href expected &quot;sc:\\../&quot; but got &quot;sc:/&quot;
</span><del>-FAIL Parsing: &lt;sc::a@example.net&gt; against &lt;about:blank&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
</del><ins>+PASS Parsing: &lt;sc::a@example.net&gt; against &lt;about:blank&gt; 
</ins><span class="cx"> PASS Parsing: &lt;http://127.0.0.1:10100/relative_import.html&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;http://facebook.com/?foo=%7B%22abc%22&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;https://localhost:3000/jqueryui@1.2.3&gt; against &lt;about:blank&gt; 
</span><span class="lines">@@ -336,5 +336,5 @@
</span><span class="cx"> PASS Parsing: &lt;??a=b&amp;c=d&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;http:&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> FAIL Parsing: &lt;http:&gt; against &lt;https://example.org/foo/bar&gt; assert_unreached: Expected URL to fail parsing Reached unreachable code
</span><del>-FAIL Parsing: &lt;sc:&gt; against &lt;https://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
</del><ins>+PASS Parsing: &lt;sc:&gt; against &lt;https://example.org/foo/bar&gt; 
</ins><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsurlurlconstructorexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/url/url-constructor-expected.txt (206164 => 206165)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/url/url-constructor-expected.txt        2016-09-20 19:31:30 UTC (rev 206164)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/url/url-constructor-expected.txt        2016-09-20 20:01:08 UTC (rev 206165)
</span><span class="lines">@@ -11,7 +11,7 @@
</span><span class="cx"> PASS Parsing: &lt;           :foo.com   
</span><span class="cx"> &gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt; foo.com  &gt; against &lt;http://example.org/foo/bar&gt; 
</span><del>-FAIL Parsing: &lt;a:         foo.com&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;a://&quot;
</del><ins>+PASS Parsing: &lt;a:         foo.com&gt; against &lt;http://example.org/foo/bar&gt; 
</ins><span class="cx"> PASS Parsing: &lt;http://f:21/ b ? d # e &gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;http://f:/c&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> FAIL Parsing: &lt;http://f:0/c&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;http://f:0&quot; but got &quot;http://f&quot;
</span><span class="lines">@@ -53,12 +53,12 @@
</span><span class="cx"> PASS Parsing: &lt;http://foo.com/\@&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;http:\\foo.com\&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;http:\\a\b:c\d@foo.com\&gt; against &lt;http://example.org/foo/bar&gt; 
</span><del>-FAIL Parsing: &lt;foo:/&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;foo://&quot;
-FAIL Parsing: &lt;foo:/bar.com/&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;foo://&quot;
-FAIL Parsing: &lt;foo://///////&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;foo://&quot;
-FAIL Parsing: &lt;foo://///////bar.com/&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;foo://&quot;
-FAIL Parsing: &lt;foo:////://///&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;foo://&quot;
-FAIL Parsing: &lt;c:/foo&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;c://&quot;
</del><ins>+PASS Parsing: &lt;foo:/&gt; against &lt;http://example.org/foo/bar&gt; 
+PASS Parsing: &lt;foo:/bar.com/&gt; against &lt;http://example.org/foo/bar&gt; 
+FAIL Parsing: &lt;foo://///////&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: pathname expected &quot;///////&quot; but got &quot;/////////&quot;
+FAIL Parsing: &lt;foo://///////bar.com/&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: pathname expected &quot;///////bar.com/&quot; but got &quot;/////////bar.com/&quot;
+FAIL Parsing: &lt;foo:////://///&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: pathname expected &quot;//://///&quot; but got &quot;////://///&quot;
+PASS Parsing: &lt;c:/foo&gt; against &lt;http://example.org/foo/bar&gt; 
</ins><span class="cx"> PASS Parsing: &lt;//foo/bar&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;http://foo/path;a??e#f#g&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;http://foo/abcd?efgh?ijkl&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="lines">@@ -74,26 +74,26 @@
</span><span class="cx"> FAIL Parsing: &lt;http:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: href expected &quot;http://example.org/example.com/&quot; but got &quot;http://example.com/&quot;
</span><span class="cx"> PASS Parsing: &lt;ftp:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;https:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><del>-FAIL Parsing: &lt;madeupscheme:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;madeupscheme://&quot;
</del><ins>+PASS Parsing: &lt;madeupscheme:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</ins><span class="cx"> PASS Parsing: &lt;file:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><del>-FAIL Parsing: &lt;ftps:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;ftps://&quot;
</del><ins>+PASS Parsing: &lt;ftps:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</ins><span class="cx"> PASS Parsing: &lt;gopher:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;ws:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;wss:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;data:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;javascript:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><del>-FAIL Parsing: &lt;mailto:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;mailto://&quot;
</del><ins>+PASS Parsing: &lt;mailto:/example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</ins><span class="cx"> PASS Parsing: &lt;http:example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;ftp:example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;https:example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><del>-FAIL Parsing: &lt;madeupscheme:example.com/&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;madeupscheme://&quot;
-FAIL Parsing: &lt;ftps:example.com/&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;ftps://&quot;
</del><ins>+PASS Parsing: &lt;madeupscheme:example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
+PASS Parsing: &lt;ftps:example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</ins><span class="cx"> PASS Parsing: &lt;gopher:example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;ws:example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;wss:example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;data:example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;javascript:example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</span><del>-FAIL Parsing: &lt;mailto:example.com/&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;mailto://&quot;
</del><ins>+PASS Parsing: &lt;mailto:example.com/&gt; against &lt;http://example.org/foo/bar&gt; 
</ins><span class="cx"> PASS Parsing: &lt;/a/b/c&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;/a/ /c&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> PASS Parsing: &lt;/a%2fc&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="lines">@@ -100,7 +100,7 @@
</span><span class="cx"> PASS Parsing: &lt;/a/%2f/c&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> FAIL Parsing: &lt;#β&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: href expected &quot;http://example.org/foo/bar#β&quot; but got &quot;http://example.org/foo/bar#%CE%B2&quot;
</span><span class="cx"> PASS Parsing: &lt;data:text/html,test#test&gt; against &lt;http://example.org/foo/bar&gt; 
</span><del>-FAIL Parsing: &lt;tel:1234567890&gt; against &lt;http://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;tel://&quot;
</del><ins>+PASS Parsing: &lt;tel:1234567890&gt; against &lt;http://example.org/foo/bar&gt; 
</ins><span class="cx"> FAIL Parsing: &lt;file:c:\foo\bar.html&gt; against &lt;file:///tmp/mock/path&gt; assert_equals: href expected &quot;file:///c:/foo/bar.html&quot; but got &quot;file:///tmp/mock/c:/foo/bar.html&quot;
</span><span class="cx"> FAIL Parsing: &lt;  File:c|////foo\bar.html&gt; against &lt;file:///tmp/mock/path&gt; assert_equals: href expected &quot;file:///c:////foo/bar.html&quot; but got &quot;file:///tmp/mock/c|////foo/bar.html&quot;
</span><span class="cx"> FAIL Parsing: &lt;C|/foo/bar&gt; against &lt;file:///tmp/mock/path&gt; assert_equals: href expected &quot;file:///C:/foo/bar&quot; but got &quot;file:///tmp/mock/C|/foo/bar&quot;
</span><span class="lines">@@ -169,7 +169,7 @@
</span><span class="cx"> PASS Parsing: &lt;http:\\www.google.com\foo&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;http://foo:80/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;http://foo:81/&gt; against &lt;about:blank&gt; 
</span><del>-FAIL Parsing: &lt;httpa://foo:80/&gt; against &lt;about:blank&gt; assert_equals: origin expected &quot;null&quot; but got &quot;httpa://foo:80&quot;
</del><ins>+PASS Parsing: &lt;httpa://foo:80/&gt; against &lt;about:blank&gt; 
</ins><span class="cx"> PASS Parsing: &lt;http://foo:-80/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;https://foo:443/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;https://foo:80/&gt; against &lt;about:blank&gt; 
</span><span class="lines">@@ -188,26 +188,26 @@
</span><span class="cx"> PASS Parsing: &lt;http:/example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;ftp:/example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;https:/example.com/&gt; against &lt;about:blank&gt; 
</span><del>-FAIL Parsing: &lt;madeupscheme:/example.com/&gt; against &lt;about:blank&gt; assert_equals: origin expected &quot;null&quot; but got &quot;madeupscheme://&quot;
</del><ins>+PASS Parsing: &lt;madeupscheme:/example.com/&gt; against &lt;about:blank&gt; 
</ins><span class="cx"> PASS Parsing: &lt;file:/example.com/&gt; against &lt;about:blank&gt; 
</span><del>-FAIL Parsing: &lt;ftps:/example.com/&gt; against &lt;about:blank&gt; assert_equals: origin expected &quot;null&quot; but got &quot;ftps://&quot;
</del><ins>+PASS Parsing: &lt;ftps:/example.com/&gt; against &lt;about:blank&gt; 
</ins><span class="cx"> PASS Parsing: &lt;gopher:/example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;ws:/example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;wss:/example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;data:/example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;javascript:/example.com/&gt; against &lt;about:blank&gt; 
</span><del>-FAIL Parsing: &lt;mailto:/example.com/&gt; against &lt;about:blank&gt; assert_equals: origin expected &quot;null&quot; but got &quot;mailto://&quot;
</del><ins>+PASS Parsing: &lt;mailto:/example.com/&gt; against &lt;about:blank&gt; 
</ins><span class="cx"> PASS Parsing: &lt;http:example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;ftp:example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;https:example.com/&gt; against &lt;about:blank&gt; 
</span><del>-FAIL Parsing: &lt;madeupscheme:example.com/&gt; against &lt;about:blank&gt; assert_equals: origin expected &quot;null&quot; but got &quot;madeupscheme://&quot;
-FAIL Parsing: &lt;ftps:example.com/&gt; against &lt;about:blank&gt; assert_equals: origin expected &quot;null&quot; but got &quot;ftps://&quot;
</del><ins>+PASS Parsing: &lt;madeupscheme:example.com/&gt; against &lt;about:blank&gt; 
+PASS Parsing: &lt;ftps:example.com/&gt; against &lt;about:blank&gt; 
</ins><span class="cx"> PASS Parsing: &lt;gopher:example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;ws:example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;wss:example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;data:example.com/&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;javascript:example.com/&gt; against &lt;about:blank&gt; 
</span><del>-FAIL Parsing: &lt;mailto:example.com/&gt; against &lt;about:blank&gt; assert_equals: origin expected &quot;null&quot; but got &quot;mailto://&quot;
</del><ins>+PASS Parsing: &lt;mailto:example.com/&gt; against &lt;about:blank&gt; 
</ins><span class="cx"> PASS Parsing: &lt;http:@www.example.com&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;http:/@www.example.com&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;http://@www.example.com&gt; against &lt;about:blank&gt; 
</span><span class="lines">@@ -290,11 +290,11 @@
</span><span class="cx"> FAIL Parsing: &lt;http://0Xc0.0250.01&gt; against &lt;http://other.com/&gt; assert_equals: href expected &quot;http://192.168.0.1/&quot; but got &quot;http://0xc0.0250.01/&quot;
</span><span class="cx"> PASS Parsing: &lt;http://[google.com]&gt; against &lt;http://other.com/&gt; 
</span><span class="cx"> FAIL Parsing: &lt;http://foo:💩@example.com/bar&gt; against &lt;http://other.com/&gt; Type error
</span><del>-FAIL Parsing: &lt;#&gt; against &lt;test:test&gt; assert_equals: origin expected &quot;null&quot; but got &quot;test://&quot;
-FAIL Parsing: &lt;#x&gt; against &lt;mailto:x@x.com&gt; assert_equals: origin expected &quot;null&quot; but got &quot;mailto://&quot;
</del><ins>+PASS Parsing: &lt;#&gt; against &lt;test:test&gt; 
+PASS Parsing: &lt;#x&gt; against &lt;mailto:x@x.com&gt; 
</ins><span class="cx"> PASS Parsing: &lt;#x&gt; against &lt;data:,&gt; 
</span><span class="cx"> PASS Parsing: &lt;#x&gt; against &lt;about:blank&gt; 
</span><del>-FAIL Parsing: &lt;#&gt; against &lt;test:test?test&gt; assert_equals: origin expected &quot;null&quot; but got &quot;test://&quot;
</del><ins>+PASS Parsing: &lt;#&gt; against &lt;test:test?test&gt; 
</ins><span class="cx"> FAIL Parsing: &lt;https://@test@test@example:800/&gt; against &lt;http://doesnotmatter/&gt; Type error
</span><span class="cx"> FAIL Parsing: &lt;https://@@@example&gt; against &lt;http://doesnotmatter/&gt; Type error
</span><span class="cx"> FAIL Parsing: &lt;http://`{}:`{}@h/`{}?`{}&gt; against &lt;http://doesnotmatter/&gt; Type error
</span><span class="lines">@@ -303,36 +303,36 @@
</span><span class="cx"> PASS Parsing: &lt;/some/path&gt; against &lt;http://user:pass@example.org:21/smth&gt; 
</span><span class="cx"> PASS Parsing: &lt;i&gt; against &lt;sc:sd&gt; 
</span><span class="cx"> PASS Parsing: &lt;i&gt; against &lt;sc:sd/sd&gt; 
</span><del>-FAIL Parsing: &lt;i&gt; against &lt;sc:/pa/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
-FAIL Parsing: &lt;i&gt; against &lt;sc://ho/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://ho&quot;
-FAIL Parsing: &lt;i&gt; against &lt;sc:///pa/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
</del><ins>+PASS Parsing: &lt;i&gt; against &lt;sc:/pa/pa&gt; 
+PASS Parsing: &lt;i&gt; against &lt;sc://ho/pa&gt; 
+FAIL Parsing: &lt;i&gt; against &lt;sc:///pa/pa&gt; assert_equals: pathname expected &quot;/pa/i&quot; but got &quot;///pa/i&quot;
</ins><span class="cx"> PASS Parsing: &lt;../i&gt; against &lt;sc:sd&gt; 
</span><span class="cx"> PASS Parsing: &lt;../i&gt; against &lt;sc:sd/sd&gt; 
</span><del>-FAIL Parsing: &lt;../i&gt; against &lt;sc:/pa/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
-FAIL Parsing: &lt;../i&gt; against &lt;sc://ho/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://ho&quot;
-FAIL Parsing: &lt;../i&gt; against &lt;sc:///pa/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
</del><ins>+PASS Parsing: &lt;../i&gt; against &lt;sc:/pa/pa&gt; 
+PASS Parsing: &lt;../i&gt; against &lt;sc://ho/pa&gt; 
+FAIL Parsing: &lt;../i&gt; against &lt;sc:///pa/pa&gt; assert_equals: pathname expected &quot;/i&quot; but got &quot;///i&quot;
</ins><span class="cx"> PASS Parsing: &lt;/i&gt; against &lt;sc:sd&gt; 
</span><span class="cx"> PASS Parsing: &lt;/i&gt; against &lt;sc:sd/sd&gt; 
</span><del>-FAIL Parsing: &lt;/i&gt; against &lt;sc:/pa/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
-FAIL Parsing: &lt;/i&gt; against &lt;sc://ho/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://ho&quot;
</del><ins>+PASS Parsing: &lt;/i&gt; against &lt;sc:/pa/pa&gt; 
+PASS Parsing: &lt;/i&gt; against &lt;sc://ho/pa&gt; 
</ins><span class="cx"> FAIL Parsing: &lt;/i&gt; against &lt;sc:///pa/pa&gt; assert_equals: href expected &quot;sc:///i&quot; but got &quot;sc:/i&quot;
</span><span class="cx"> PASS Parsing: &lt;?i&gt; against &lt;sc:sd&gt; 
</span><span class="cx"> PASS Parsing: &lt;?i&gt; against &lt;sc:sd/sd&gt; 
</span><del>-FAIL Parsing: &lt;?i&gt; against &lt;sc:/pa/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
-FAIL Parsing: &lt;?i&gt; against &lt;sc://ho/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://ho&quot;
-FAIL Parsing: &lt;?i&gt; against &lt;sc:///pa/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
-FAIL Parsing: &lt;#i&gt; against &lt;sc:sd&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
-FAIL Parsing: &lt;#i&gt; against &lt;sc:sd/sd&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
-FAIL Parsing: &lt;#i&gt; against &lt;sc:/pa/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
-FAIL Parsing: &lt;#i&gt; against &lt;sc://ho/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://ho&quot;
-FAIL Parsing: &lt;#i&gt; against &lt;sc:///pa/pa&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
</del><ins>+PASS Parsing: &lt;?i&gt; against &lt;sc:/pa/pa&gt; 
+PASS Parsing: &lt;?i&gt; against &lt;sc://ho/pa&gt; 
+FAIL Parsing: &lt;?i&gt; against &lt;sc:///pa/pa&gt; assert_equals: pathname expected &quot;/pa/pa&quot; but got &quot;///pa/pa&quot;
+PASS Parsing: &lt;#i&gt; against &lt;sc:sd&gt; 
+PASS Parsing: &lt;#i&gt; against &lt;sc:sd/sd&gt; 
+PASS Parsing: &lt;#i&gt; against &lt;sc:/pa/pa&gt; 
+PASS Parsing: &lt;#i&gt; against &lt;sc://ho/pa&gt; 
+FAIL Parsing: &lt;#i&gt; against &lt;sc:///pa/pa&gt; assert_equals: pathname expected &quot;/pa/pa&quot; but got &quot;///pa/pa&quot;
</ins><span class="cx"> PASS Parsing: &lt;about:/../&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;data:/../&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;javascript:/../&gt; against &lt;about:blank&gt; 
</span><del>-FAIL Parsing: &lt;mailto:/../&gt; against &lt;about:blank&gt; assert_equals: origin expected &quot;null&quot; but got &quot;mailto://&quot;
-FAIL Parsing: &lt;sc://ñ.test/&gt; against &lt;about:blank&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://xn--ida.test&quot;
</del><ins>+PASS Parsing: &lt;mailto:/../&gt; against &lt;about:blank&gt; 
+PASS Parsing: &lt;sc://ñ.test/&gt; against &lt;about:blank&gt; 
</ins><span class="cx"> FAIL Parsing: &lt;sc:\../&gt; against &lt;about:blank&gt; assert_equals: href expected &quot;sc:\\../&quot; but got &quot;sc:/&quot;
</span><del>-FAIL Parsing: &lt;sc::a@example.net&gt; against &lt;about:blank&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
</del><ins>+PASS Parsing: &lt;sc::a@example.net&gt; against &lt;about:blank&gt; 
</ins><span class="cx"> PASS Parsing: &lt;http://127.0.0.1:10100/relative_import.html&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;http://facebook.com/?foo=%7B%22abc%22&gt; against &lt;about:blank&gt; 
</span><span class="cx"> PASS Parsing: &lt;https://localhost:3000/jqueryui@1.2.3&gt; against &lt;about:blank&gt; 
</span><span class="lines">@@ -354,5 +354,5 @@
</span><span class="cx"> PASS Parsing: &lt;http:&gt; against &lt;http://example.org/foo/bar&gt; 
</span><span class="cx"> FAIL Parsing: &lt;http:&gt; against &lt;https://example.org/foo/bar&gt; assert_throws: function &quot;function () {
</span><span class="cx">           bURL(expected.input, expected.bas...&quot; did not throw
</span><del>-FAIL Parsing: &lt;sc:&gt; against &lt;https://example.org/foo/bar&gt; assert_equals: origin expected &quot;null&quot; but got &quot;sc://&quot;
</del><ins>+PASS Parsing: &lt;sc:&gt; against &lt;https://example.org/foo/bar&gt; 
</ins><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (206164 => 206165)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-09-20 19:31:30 UTC (rev 206164)
+++ trunk/Source/WebCore/ChangeLog        2016-09-20 20:01:08 UTC (rev 206165)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2016-09-20  Alex Christensen  &lt;achristensen@webkit.org&gt;
+
+        Non-special URLs should have an opaque origin
+        https://bugs.webkit.org/show_bug.cgi?id=162254
+
+        Reviewed by Sam Weinig.
+
+        Covered by newly passing web platform tests.
+
+        * page/SecurityOrigin.cpp:
+        (WebCore::shouldTreatAsUniqueOrigin):
+        According to https://url.spec.whatwg.org/#origin all URLs with non-special protocols
+        should have a unique SecurityOrigin whose serialization is &quot;null&quot;.
+
</ins><span class="cx"> 2016-09-20  Christopher Reid  &lt;Christopher.Reid@am.sony.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [WinCairo]  Not building since 206044
</span></span></pre></div>
<a id="trunkSourceWebCorepageSecurityOrigincpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/SecurityOrigin.cpp (206164 => 206165)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/SecurityOrigin.cpp        2016-09-20 19:31:30 UTC (rev 206164)
+++ trunk/Source/WebCore/page/SecurityOrigin.cpp        2016-09-20 20:01:08 UTC (rev 206165)
</span><span class="lines">@@ -58,7 +58,6 @@
</span><span class="cx">     // FIXME: Blob URLs don't have inner URLs. Their form is &quot;blob:&lt;inner-origin&gt;/&lt;UUID&gt;&quot;, so treating the part after &quot;blob:&quot; as a URL is incorrect.
</span><span class="cx">     if (url.protocolIsBlob())
</span><span class="cx">         return true;
</span><del>-    UNUSED_PARAM(url);
</del><span class="cx">     return false;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -99,7 +98,12 @@
</span><span class="cx">         return true;
</span><span class="cx"> 
</span><span class="cx">     // This is the common case.
</span><del>-    return false;
</del><ins>+    return !innerURL.protocolIsInHTTPFamily()
+        &amp;&amp; !innerURL.protocolIs(&quot;file&quot;)
+        &amp;&amp; !innerURL.protocolIs(&quot;ftp&quot;)
+        &amp;&amp; !innerURL.protocolIs(&quot;gopher&quot;)
+        &amp;&amp; !innerURL.protocolIs(&quot;ws&quot;)
+        &amp;&amp; !innerURL.protocolIs(&quot;wss&quot;);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> SecurityOrigin::SecurityOrigin(const URL&amp; url)
</span></span></pre>
</div>
</div>

</body>
</html>