<!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 "null".
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 <achristensen@webkit.org>
+
+ 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 <jfernandez@igalia.com>
</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="Received message: data="done" origin="http://127.0.0.1:8000"" origin="http://localhost:8000"
</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("/tmp/foo");
</span><span class="cx"> tryPostMessage("//localhost");
</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("asdf:");
</span><span class="cx"> tryPostMessage("http:");
</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 <achristensen@webkit.org>
+
+ 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 <jer.noble@apple.com>
</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: <         :foo.com
</span><span class="cx"> > against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: < foo.com > against <http://example.org/foo/bar>
</span><del>-FAIL Parsing: <a:         foo.com> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "a://"
</del><ins>+PASS Parsing: <a:         foo.com> against <http://example.org/foo/bar>
</ins><span class="cx"> PASS Parsing: <http://f:21/ b ? d # e > against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <http://f:/c> against <http://example.org/foo/bar>
</span><span class="cx"> FAIL Parsing: <http://f:0/c> against <http://example.org/foo/bar> assert_equals: origin expected "http://f:0" but got "http://f"
</span><span class="lines">@@ -48,12 +48,12 @@
</span><span class="cx"> PASS Parsing: <http://foo.com/\@> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <http:\\foo.com\> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <http:\\a\b:c\d@foo.com\> against <http://example.org/foo/bar>
</span><del>-FAIL Parsing: <foo:/> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "foo://"
-FAIL Parsing: <foo:/bar.com/> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "foo://"
-FAIL Parsing: <foo://///////> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "foo://"
-FAIL Parsing: <foo://///////bar.com/> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "foo://"
-FAIL Parsing: <foo:////://///> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "foo://"
-FAIL Parsing: <c:/foo> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "c://"
</del><ins>+PASS Parsing: <foo:/> against <http://example.org/foo/bar>
+PASS Parsing: <foo:/bar.com/> against <http://example.org/foo/bar>
+FAIL Parsing: <foo://///////> against <http://example.org/foo/bar> assert_equals: pathname expected "///////" but got "/////////"
+FAIL Parsing: <foo://///////bar.com/> against <http://example.org/foo/bar> assert_equals: pathname expected "///////bar.com/" but got "/////////bar.com/"
+FAIL Parsing: <foo:////://///> against <http://example.org/foo/bar> assert_equals: pathname expected "//://///" but got "////://///"
+PASS Parsing: <c:/foo> against <http://example.org/foo/bar>
</ins><span class="cx"> PASS Parsing: <//foo/bar> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <http://foo/path;a??e#f#g> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <http://foo/abcd?efgh?ijkl> against <http://example.org/foo/bar>
</span><span class="lines">@@ -69,26 +69,26 @@
</span><span class="cx"> FAIL Parsing: <http:/example.com/> against <http://example.org/foo/bar> assert_equals: href expected "http://example.org/example.com/" but got "http://example.com/"
</span><span class="cx"> PASS Parsing: <ftp:/example.com/> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <https:/example.com/> against <http://example.org/foo/bar>
</span><del>-FAIL Parsing: <madeupscheme:/example.com/> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "madeupscheme://"
</del><ins>+PASS Parsing: <madeupscheme:/example.com/> against <http://example.org/foo/bar>
</ins><span class="cx"> PASS Parsing: <file:/example.com/> against <http://example.org/foo/bar>
</span><del>-FAIL Parsing: <ftps:/example.com/> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "ftps://"
</del><ins>+PASS Parsing: <ftps:/example.com/> against <http://example.org/foo/bar>
</ins><span class="cx"> PASS Parsing: <gopher:/example.com/> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <ws:/example.com/> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <wss:/example.com/> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <data:/example.com/> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <javascript:/example.com/> against <http://example.org/foo/bar>
</span><del>-FAIL Parsing: <mailto:/example.com/> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "mailto://"
</del><ins>+PASS Parsing: <mailto:/example.com/> against <http://example.org/foo/bar>
</ins><span class="cx"> PASS Parsing: <http:example.com/> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <ftp:example.com/> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <https:example.com/> against <http://example.org/foo/bar>
</span><del>-FAIL Parsing: <madeupscheme:example.com/> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "madeupscheme://"
-FAIL Parsing: <ftps:example.com/> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "ftps://"
</del><ins>+PASS Parsing: <madeupscheme:example.com/> against <http://example.org/foo/bar>
+PASS Parsing: <ftps:example.com/> against <http://example.org/foo/bar>
</ins><span class="cx"> PASS Parsing: <gopher:example.com/> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <ws:example.com/> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <wss:example.com/> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <data:example.com/> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <javascript:example.com/> against <http://example.org/foo/bar>
</span><del>-FAIL Parsing: <mailto:example.com/> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "mailto://"
</del><ins>+PASS Parsing: <mailto:example.com/> against <http://example.org/foo/bar>
</ins><span class="cx"> PASS Parsing: </a/b/c> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: </a/ /c> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: </a%2fc> against <http://example.org/foo/bar>
</span><span class="lines">@@ -95,7 +95,7 @@
</span><span class="cx"> PASS Parsing: </a/%2f/c> against <http://example.org/foo/bar>
</span><span class="cx"> FAIL Parsing: <#β> against <http://example.org/foo/bar> assert_equals: href expected "http://example.org/foo/bar#β" but got "http://example.org/foo/bar#%CE%B2"
</span><span class="cx"> PASS Parsing: <data:text/html,test#test> against <http://example.org/foo/bar>
</span><del>-FAIL Parsing: <tel:1234567890> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "tel://"
</del><ins>+PASS Parsing: <tel:1234567890> against <http://example.org/foo/bar>
</ins><span class="cx"> FAIL Parsing: <file:c:\foo\bar.html> against <file:///tmp/mock/path> assert_equals: href expected "file:///c:/foo/bar.html" but got "file:///tmp/mock/c:/foo/bar.html"
</span><span class="cx"> FAIL Parsing: < File:c|////foo\bar.html> against <file:///tmp/mock/path> assert_equals: href expected "file:///c:////foo/bar.html" but got "file:///tmp/mock/c|////foo/bar.html"
</span><span class="cx"> FAIL Parsing: <C|/foo/bar> against <file:///tmp/mock/path> assert_equals: href expected "file:///C:/foo/bar" but got "file:///tmp/mock/C|/foo/bar"
</span><span class="lines">@@ -164,7 +164,7 @@
</span><span class="cx"> PASS Parsing: <http:\\www.google.com\foo> against <about:blank>
</span><span class="cx"> PASS Parsing: <http://foo:80/> against <about:blank>
</span><span class="cx"> PASS Parsing: <http://foo:81/> against <about:blank>
</span><del>-FAIL Parsing: <httpa://foo:80/> against <about:blank> assert_equals: origin expected "null" but got "httpa://foo:80"
</del><ins>+PASS Parsing: <httpa://foo:80/> against <about:blank>
</ins><span class="cx"> PASS Parsing: <http://foo:-80/> against <about:blank>
</span><span class="cx"> PASS Parsing: <https://foo:443/> against <about:blank>
</span><span class="cx"> PASS Parsing: <https://foo:80/> against <about:blank>
</span><span class="lines">@@ -183,26 +183,26 @@
</span><span class="cx"> PASS Parsing: <http:/example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <ftp:/example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <https:/example.com/> against <about:blank>
</span><del>-FAIL Parsing: <madeupscheme:/example.com/> against <about:blank> assert_equals: origin expected "null" but got "madeupscheme://"
</del><ins>+PASS Parsing: <madeupscheme:/example.com/> against <about:blank>
</ins><span class="cx"> PASS Parsing: <file:/example.com/> against <about:blank>
</span><del>-FAIL Parsing: <ftps:/example.com/> against <about:blank> assert_equals: origin expected "null" but got "ftps://"
</del><ins>+PASS Parsing: <ftps:/example.com/> against <about:blank>
</ins><span class="cx"> PASS Parsing: <gopher:/example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <ws:/example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <wss:/example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <data:/example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <javascript:/example.com/> against <about:blank>
</span><del>-FAIL Parsing: <mailto:/example.com/> against <about:blank> assert_equals: origin expected "null" but got "mailto://"
</del><ins>+PASS Parsing: <mailto:/example.com/> against <about:blank>
</ins><span class="cx"> PASS Parsing: <http:example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <ftp:example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <https:example.com/> against <about:blank>
</span><del>-FAIL Parsing: <madeupscheme:example.com/> against <about:blank> assert_equals: origin expected "null" but got "madeupscheme://"
-FAIL Parsing: <ftps:example.com/> against <about:blank> assert_equals: origin expected "null" but got "ftps://"
</del><ins>+PASS Parsing: <madeupscheme:example.com/> against <about:blank>
+PASS Parsing: <ftps:example.com/> against <about:blank>
</ins><span class="cx"> PASS Parsing: <gopher:example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <ws:example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <wss:example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <data:example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <javascript:example.com/> against <about:blank>
</span><del>-FAIL Parsing: <mailto:example.com/> against <about:blank> assert_equals: origin expected "null" but got "mailto://"
</del><ins>+PASS Parsing: <mailto:example.com/> against <about:blank>
</ins><span class="cx"> PASS Parsing: <http:@www.example.com> against <about:blank>
</span><span class="cx"> PASS Parsing: <http:/@www.example.com> against <about:blank>
</span><span class="cx"> PASS Parsing: <http://@www.example.com> against <about:blank>
</span><span class="lines">@@ -273,11 +273,11 @@
</span><span class="cx"> FAIL Parsing: <http://0Xc0.0250.01> against <http://other.com/> assert_equals: href expected "http://192.168.0.1/" but got "http://0xc0.0250.01/"
</span><span class="cx"> PASS Parsing: <http://[google.com]> against <http://other.com/>
</span><span class="cx"> FAIL Parsing: <http://foo:💩@example.com/bar> against <http://other.com/> assert_equals: href expected "http://foo:%F0%9F%92%A9@example.com/bar" but got "http://foo:💩@example.com/bar"
</span><del>-FAIL Parsing: <#> against <test:test> assert_equals: origin expected "null" but got "test://"
-FAIL Parsing: <#x> against <mailto:x@x.com> assert_equals: origin expected "null" but got "mailto://"
</del><ins>+PASS Parsing: <#> against <test:test>
+PASS Parsing: <#x> against <mailto:x@x.com>
</ins><span class="cx"> PASS Parsing: <#x> against <data:,>
</span><span class="cx"> PASS Parsing: <#x> against <about:blank>
</span><del>-FAIL Parsing: <#> against <test:test?test> assert_equals: origin expected "null" but got "test://"
</del><ins>+PASS Parsing: <#> against <test:test?test>
</ins><span class="cx"> FAIL Parsing: <https://@test@test@example:800/> against <http://doesnotmatter/> assert_equals: href expected "https://%40test%40test@example:800/" but got "https://@test@test@example:800/"
</span><span class="cx"> FAIL Parsing: <https://@@@example> against <http://doesnotmatter/> assert_equals: href expected "https://%40%40@example/" but got "https://@@@example"
</span><span class="cx"> FAIL Parsing: <http://`{}:`{}@h/`{}?`{}> against <http://doesnotmatter/> assert_equals: href expected "http://%60%7B%7D:%60%7B%7D@h/%60%7B%7D?`{}" but got "http://`{}:`{}@h/`{}?`{}"
</span><span class="lines">@@ -286,36 +286,36 @@
</span><span class="cx"> PASS Parsing: </some/path> against <http://user:pass@example.org:21/smth>
</span><span class="cx"> PASS Parsing: <i> against <sc:sd>
</span><span class="cx"> PASS Parsing: <i> against <sc:sd/sd>
</span><del>-FAIL Parsing: <i> against <sc:/pa/pa> assert_equals: origin expected "null" but got "sc://"
-FAIL Parsing: <i> against <sc://ho/pa> assert_equals: origin expected "null" but got "sc://ho"
-FAIL Parsing: <i> against <sc:///pa/pa> assert_equals: origin expected "null" but got "sc://"
</del><ins>+PASS Parsing: <i> against <sc:/pa/pa>
+PASS Parsing: <i> against <sc://ho/pa>
+FAIL Parsing: <i> against <sc:///pa/pa> assert_equals: pathname expected "/pa/i" but got "///pa/i"
</ins><span class="cx"> PASS Parsing: <../i> against <sc:sd>
</span><span class="cx"> PASS Parsing: <../i> against <sc:sd/sd>
</span><del>-FAIL Parsing: <../i> against <sc:/pa/pa> assert_equals: origin expected "null" but got "sc://"
-FAIL Parsing: <../i> against <sc://ho/pa> assert_equals: origin expected "null" but got "sc://ho"
-FAIL Parsing: <../i> against <sc:///pa/pa> assert_equals: origin expected "null" but got "sc://"
</del><ins>+PASS Parsing: <../i> against <sc:/pa/pa>
+PASS Parsing: <../i> against <sc://ho/pa>
+FAIL Parsing: <../i> against <sc:///pa/pa> assert_equals: pathname expected "/i" but got "///i"
</ins><span class="cx"> PASS Parsing: </i> against <sc:sd>
</span><span class="cx"> PASS Parsing: </i> against <sc:sd/sd>
</span><del>-FAIL Parsing: </i> against <sc:/pa/pa> assert_equals: origin expected "null" but got "sc://"
-FAIL Parsing: </i> against <sc://ho/pa> assert_equals: origin expected "null" but got "sc://ho"
</del><ins>+PASS Parsing: </i> against <sc:/pa/pa>
+PASS Parsing: </i> against <sc://ho/pa>
</ins><span class="cx"> FAIL Parsing: </i> against <sc:///pa/pa> assert_equals: href expected "sc:///i" but got "sc:/i"
</span><span class="cx"> PASS Parsing: <?i> against <sc:sd>
</span><span class="cx"> PASS Parsing: <?i> against <sc:sd/sd>
</span><del>-FAIL Parsing: <?i> against <sc:/pa/pa> assert_equals: origin expected "null" but got "sc://"
-FAIL Parsing: <?i> against <sc://ho/pa> assert_equals: origin expected "null" but got "sc://ho"
-FAIL Parsing: <?i> against <sc:///pa/pa> assert_equals: origin expected "null" but got "sc://"
-FAIL Parsing: <#i> against <sc:sd> assert_equals: origin expected "null" but got "sc://"
-FAIL Parsing: <#i> against <sc:sd/sd> assert_equals: origin expected "null" but got "sc://"
-FAIL Parsing: <#i> against <sc:/pa/pa> assert_equals: origin expected "null" but got "sc://"
-FAIL Parsing: <#i> against <sc://ho/pa> assert_equals: origin expected "null" but got "sc://ho"
-FAIL Parsing: <#i> against <sc:///pa/pa> assert_equals: origin expected "null" but got "sc://"
</del><ins>+PASS Parsing: <?i> against <sc:/pa/pa>
+PASS Parsing: <?i> against <sc://ho/pa>
+FAIL Parsing: <?i> against <sc:///pa/pa> assert_equals: pathname expected "/pa/pa" but got "///pa/pa"
+PASS Parsing: <#i> against <sc:sd>
+PASS Parsing: <#i> against <sc:sd/sd>
+PASS Parsing: <#i> against <sc:/pa/pa>
+PASS Parsing: <#i> against <sc://ho/pa>
+FAIL Parsing: <#i> against <sc:///pa/pa> assert_equals: pathname expected "/pa/pa" but got "///pa/pa"
</ins><span class="cx"> PASS Parsing: <about:/../> against <about:blank>
</span><span class="cx"> PASS Parsing: <data:/../> against <about:blank>
</span><span class="cx"> PASS Parsing: <javascript:/../> against <about:blank>
</span><del>-FAIL Parsing: <mailto:/../> against <about:blank> assert_equals: origin expected "null" but got "mailto://"
-FAIL Parsing: <sc://ñ.test/> against <about:blank> assert_equals: origin expected "null" but got "sc://xn--ida.test"
</del><ins>+PASS Parsing: <mailto:/../> against <about:blank>
+PASS Parsing: <sc://ñ.test/> against <about:blank>
</ins><span class="cx"> FAIL Parsing: <sc:\../> against <about:blank> assert_equals: href expected "sc:\\../" but got "sc:/"
</span><del>-FAIL Parsing: <sc::a@example.net> against <about:blank> assert_equals: origin expected "null" but got "sc://"
</del><ins>+PASS Parsing: <sc::a@example.net> against <about:blank>
</ins><span class="cx"> PASS Parsing: <http://127.0.0.1:10100/relative_import.html> against <about:blank>
</span><span class="cx"> PASS Parsing: <http://facebook.com/?foo=%7B%22abc%22> against <about:blank>
</span><span class="cx"> PASS Parsing: <https://localhost:3000/jqueryui@1.2.3> against <about:blank>
</span><span class="lines">@@ -336,5 +336,5 @@
</span><span class="cx"> PASS Parsing: <??a=b&c=d> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <http:> against <http://example.org/foo/bar>
</span><span class="cx"> FAIL Parsing: <http:> against <https://example.org/foo/bar> assert_unreached: Expected URL to fail parsing Reached unreachable code
</span><del>-FAIL Parsing: <sc:> against <https://example.org/foo/bar> assert_equals: origin expected "null" but got "sc://"
</del><ins>+PASS Parsing: <sc:> against <https://example.org/foo/bar>
</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: <         :foo.com
</span><span class="cx"> > against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: < foo.com > against <http://example.org/foo/bar>
</span><del>-FAIL Parsing: <a:         foo.com> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "a://"
</del><ins>+PASS Parsing: <a:         foo.com> against <http://example.org/foo/bar>
</ins><span class="cx"> PASS Parsing: <http://f:21/ b ? d # e > against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <http://f:/c> against <http://example.org/foo/bar>
</span><span class="cx"> FAIL Parsing: <http://f:0/c> against <http://example.org/foo/bar> assert_equals: origin expected "http://f:0" but got "http://f"
</span><span class="lines">@@ -48,12 +48,12 @@
</span><span class="cx"> PASS Parsing: <http://foo.com/\@> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <http:\\foo.com\> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <http:\\a\b:c\d@foo.com\> against <http://example.org/foo/bar>
</span><del>-FAIL Parsing: <foo:/> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "foo://"
-FAIL Parsing: <foo:/bar.com/> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "foo://"
-FAIL Parsing: <foo://///////> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "foo://"
-FAIL Parsing: <foo://///////bar.com/> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "foo://"
-FAIL Parsing: <foo:////://///> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "foo://"
-FAIL Parsing: <c:/foo> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "c://"
</del><ins>+PASS Parsing: <foo:/> against <http://example.org/foo/bar>
+PASS Parsing: <foo:/bar.com/> against <http://example.org/foo/bar>
+FAIL Parsing: <foo://///////> against <http://example.org/foo/bar> assert_equals: pathname expected "///////" but got "/////////"
+FAIL Parsing: <foo://///////bar.com/> against <http://example.org/foo/bar> assert_equals: pathname expected "///////bar.com/" but got "/////////bar.com/"
+FAIL Parsing: <foo:////://///> against <http://example.org/foo/bar> assert_equals: pathname expected "//://///" but got "////://///"
+PASS Parsing: <c:/foo> against <http://example.org/foo/bar>
</ins><span class="cx"> PASS Parsing: <//foo/bar> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <http://foo/path;a??e#f#g> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <http://foo/abcd?efgh?ijkl> against <http://example.org/foo/bar>
</span><span class="lines">@@ -69,26 +69,26 @@
</span><span class="cx"> FAIL Parsing: <http:/example.com/> against <http://example.org/foo/bar> assert_equals: href expected "http://example.org/example.com/" but got "http://example.com/"
</span><span class="cx"> PASS Parsing: <ftp:/example.com/> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <https:/example.com/> against <http://example.org/foo/bar>
</span><del>-FAIL Parsing: <madeupscheme:/example.com/> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "madeupscheme://"
</del><ins>+PASS Parsing: <madeupscheme:/example.com/> against <http://example.org/foo/bar>
</ins><span class="cx"> PASS Parsing: <file:/example.com/> against <http://example.org/foo/bar>
</span><del>-FAIL Parsing: <ftps:/example.com/> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "ftps://"
</del><ins>+PASS Parsing: <ftps:/example.com/> against <http://example.org/foo/bar>
</ins><span class="cx"> PASS Parsing: <gopher:/example.com/> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <ws:/example.com/> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <wss:/example.com/> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <data:/example.com/> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <javascript:/example.com/> against <http://example.org/foo/bar>
</span><del>-FAIL Parsing: <mailto:/example.com/> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "mailto://"
</del><ins>+PASS Parsing: <mailto:/example.com/> against <http://example.org/foo/bar>
</ins><span class="cx"> PASS Parsing: <http:example.com/> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <ftp:example.com/> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <https:example.com/> against <http://example.org/foo/bar>
</span><del>-FAIL Parsing: <madeupscheme:example.com/> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "madeupscheme://"
-FAIL Parsing: <ftps:example.com/> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "ftps://"
</del><ins>+PASS Parsing: <madeupscheme:example.com/> against <http://example.org/foo/bar>
+PASS Parsing: <ftps:example.com/> against <http://example.org/foo/bar>
</ins><span class="cx"> PASS Parsing: <gopher:example.com/> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <ws:example.com/> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <wss:example.com/> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <data:example.com/> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <javascript:example.com/> against <http://example.org/foo/bar>
</span><del>-FAIL Parsing: <mailto:example.com/> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "mailto://"
</del><ins>+PASS Parsing: <mailto:example.com/> against <http://example.org/foo/bar>
</ins><span class="cx"> PASS Parsing: </a/b/c> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: </a/ /c> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: </a%2fc> against <http://example.org/foo/bar>
</span><span class="lines">@@ -95,7 +95,7 @@
</span><span class="cx"> PASS Parsing: </a/%2f/c> against <http://example.org/foo/bar>
</span><span class="cx"> FAIL Parsing: <#β> against <http://example.org/foo/bar> assert_equals: href expected "http://example.org/foo/bar#β" but got "http://example.org/foo/bar#%CE%B2"
</span><span class="cx"> PASS Parsing: <data:text/html,test#test> against <http://example.org/foo/bar>
</span><del>-FAIL Parsing: <tel:1234567890> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "tel://"
</del><ins>+PASS Parsing: <tel:1234567890> against <http://example.org/foo/bar>
</ins><span class="cx"> FAIL Parsing: <file:c:\foo\bar.html> against <file:///tmp/mock/path> assert_equals: href expected "file:///c:/foo/bar.html" but got "file:///tmp/mock/c:/foo/bar.html"
</span><span class="cx"> FAIL Parsing: < File:c|////foo\bar.html> against <file:///tmp/mock/path> assert_equals: href expected "file:///c:////foo/bar.html" but got "file:///tmp/mock/c|////foo/bar.html"
</span><span class="cx"> FAIL Parsing: <C|/foo/bar> against <file:///tmp/mock/path> assert_equals: href expected "file:///C:/foo/bar" but got "file:///tmp/mock/C|/foo/bar"
</span><span class="lines">@@ -164,7 +164,7 @@
</span><span class="cx"> PASS Parsing: <http:\\www.google.com\foo> against <about:blank>
</span><span class="cx"> PASS Parsing: <http://foo:80/> against <about:blank>
</span><span class="cx"> PASS Parsing: <http://foo:81/> against <about:blank>
</span><del>-FAIL Parsing: <httpa://foo:80/> against <about:blank> assert_equals: origin expected "null" but got "httpa://foo:80"
</del><ins>+PASS Parsing: <httpa://foo:80/> against <about:blank>
</ins><span class="cx"> PASS Parsing: <http://foo:-80/> against <about:blank>
</span><span class="cx"> PASS Parsing: <https://foo:443/> against <about:blank>
</span><span class="cx"> PASS Parsing: <https://foo:80/> against <about:blank>
</span><span class="lines">@@ -183,26 +183,26 @@
</span><span class="cx"> PASS Parsing: <http:/example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <ftp:/example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <https:/example.com/> against <about:blank>
</span><del>-FAIL Parsing: <madeupscheme:/example.com/> against <about:blank> assert_equals: origin expected "null" but got "madeupscheme://"
</del><ins>+PASS Parsing: <madeupscheme:/example.com/> against <about:blank>
</ins><span class="cx"> PASS Parsing: <file:/example.com/> against <about:blank>
</span><del>-FAIL Parsing: <ftps:/example.com/> against <about:blank> assert_equals: origin expected "null" but got "ftps://"
</del><ins>+PASS Parsing: <ftps:/example.com/> against <about:blank>
</ins><span class="cx"> PASS Parsing: <gopher:/example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <ws:/example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <wss:/example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <data:/example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <javascript:/example.com/> against <about:blank>
</span><del>-FAIL Parsing: <mailto:/example.com/> against <about:blank> assert_equals: origin expected "null" but got "mailto://"
</del><ins>+PASS Parsing: <mailto:/example.com/> against <about:blank>
</ins><span class="cx"> PASS Parsing: <http:example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <ftp:example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <https:example.com/> against <about:blank>
</span><del>-FAIL Parsing: <madeupscheme:example.com/> against <about:blank> assert_equals: origin expected "null" but got "madeupscheme://"
-FAIL Parsing: <ftps:example.com/> against <about:blank> assert_equals: origin expected "null" but got "ftps://"
</del><ins>+PASS Parsing: <madeupscheme:example.com/> against <about:blank>
+PASS Parsing: <ftps:example.com/> against <about:blank>
</ins><span class="cx"> PASS Parsing: <gopher:example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <ws:example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <wss:example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <data:example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <javascript:example.com/> against <about:blank>
</span><del>-FAIL Parsing: <mailto:example.com/> against <about:blank> assert_equals: origin expected "null" but got "mailto://"
</del><ins>+PASS Parsing: <mailto:example.com/> against <about:blank>
</ins><span class="cx"> PASS Parsing: <http:@www.example.com> against <about:blank>
</span><span class="cx"> PASS Parsing: <http:/@www.example.com> against <about:blank>
</span><span class="cx"> PASS Parsing: <http://@www.example.com> against <about:blank>
</span><span class="lines">@@ -273,11 +273,11 @@
</span><span class="cx"> FAIL Parsing: <http://0Xc0.0250.01> against <http://other.com/> assert_equals: href expected "http://192.168.0.1/" but got "http://0xc0.0250.01/"
</span><span class="cx"> PASS Parsing: <http://[google.com]> against <http://other.com/>
</span><span class="cx"> FAIL Parsing: <http://foo:💩@example.com/bar> against <http://other.com/> assert_equals: href expected "http://foo:%F0%9F%92%A9@example.com/bar" but got "http://foo:💩@example.com/bar"
</span><del>-FAIL Parsing: <#> against <test:test> assert_equals: origin expected "null" but got "test://"
-FAIL Parsing: <#x> against <mailto:x@x.com> assert_equals: origin expected "null" but got "mailto://"
</del><ins>+PASS Parsing: <#> against <test:test>
+PASS Parsing: <#x> against <mailto:x@x.com>
</ins><span class="cx"> PASS Parsing: <#x> against <data:,>
</span><span class="cx"> PASS Parsing: <#x> against <about:blank>
</span><del>-FAIL Parsing: <#> against <test:test?test> assert_equals: origin expected "null" but got "test://"
</del><ins>+PASS Parsing: <#> against <test:test?test>
</ins><span class="cx"> FAIL Parsing: <https://@test@test@example:800/> against <http://doesnotmatter/> assert_equals: href expected "https://%40test%40test@example:800/" but got "https://@test@test@example:800/"
</span><span class="cx"> FAIL Parsing: <https://@@@example> against <http://doesnotmatter/> assert_equals: href expected "https://%40%40@example/" but got "https://@@@example"
</span><span class="cx"> FAIL Parsing: <http://`{}:`{}@h/`{}?`{}> against <http://doesnotmatter/> assert_equals: href expected "http://%60%7B%7D:%60%7B%7D@h/%60%7B%7D?`{}" but got "http://`{}:`{}@h/`{}?`{}"
</span><span class="lines">@@ -286,36 +286,36 @@
</span><span class="cx"> PASS Parsing: </some/path> against <http://user:pass@example.org:21/smth>
</span><span class="cx"> PASS Parsing: <i> against <sc:sd>
</span><span class="cx"> PASS Parsing: <i> against <sc:sd/sd>
</span><del>-FAIL Parsing: <i> against <sc:/pa/pa> assert_equals: origin expected "null" but got "sc://"
-FAIL Parsing: <i> against <sc://ho/pa> assert_equals: origin expected "null" but got "sc://ho"
-FAIL Parsing: <i> against <sc:///pa/pa> assert_equals: origin expected "null" but got "sc://"
</del><ins>+PASS Parsing: <i> against <sc:/pa/pa>
+PASS Parsing: <i> against <sc://ho/pa>
+FAIL Parsing: <i> against <sc:///pa/pa> assert_equals: pathname expected "/pa/i" but got "///pa/i"
</ins><span class="cx"> PASS Parsing: <../i> against <sc:sd>
</span><span class="cx"> PASS Parsing: <../i> against <sc:sd/sd>
</span><del>-FAIL Parsing: <../i> against <sc:/pa/pa> assert_equals: origin expected "null" but got "sc://"
-FAIL Parsing: <../i> against <sc://ho/pa> assert_equals: origin expected "null" but got "sc://ho"
-FAIL Parsing: <../i> against <sc:///pa/pa> assert_equals: origin expected "null" but got "sc://"
</del><ins>+PASS Parsing: <../i> against <sc:/pa/pa>
+PASS Parsing: <../i> against <sc://ho/pa>
+FAIL Parsing: <../i> against <sc:///pa/pa> assert_equals: pathname expected "/i" but got "///i"
</ins><span class="cx"> PASS Parsing: </i> against <sc:sd>
</span><span class="cx"> PASS Parsing: </i> against <sc:sd/sd>
</span><del>-FAIL Parsing: </i> against <sc:/pa/pa> assert_equals: origin expected "null" but got "sc://"
-FAIL Parsing: </i> against <sc://ho/pa> assert_equals: origin expected "null" but got "sc://ho"
</del><ins>+PASS Parsing: </i> against <sc:/pa/pa>
+PASS Parsing: </i> against <sc://ho/pa>
</ins><span class="cx"> FAIL Parsing: </i> against <sc:///pa/pa> assert_equals: href expected "sc:///i" but got "sc:/i"
</span><span class="cx"> PASS Parsing: <?i> against <sc:sd>
</span><span class="cx"> PASS Parsing: <?i> against <sc:sd/sd>
</span><del>-FAIL Parsing: <?i> against <sc:/pa/pa> assert_equals: origin expected "null" but got "sc://"
-FAIL Parsing: <?i> against <sc://ho/pa> assert_equals: origin expected "null" but got "sc://ho"
-FAIL Parsing: <?i> against <sc:///pa/pa> assert_equals: origin expected "null" but got "sc://"
-FAIL Parsing: <#i> against <sc:sd> assert_equals: origin expected "null" but got "sc://"
-FAIL Parsing: <#i> against <sc:sd/sd> assert_equals: origin expected "null" but got "sc://"
-FAIL Parsing: <#i> against <sc:/pa/pa> assert_equals: origin expected "null" but got "sc://"
-FAIL Parsing: <#i> against <sc://ho/pa> assert_equals: origin expected "null" but got "sc://ho"
-FAIL Parsing: <#i> against <sc:///pa/pa> assert_equals: origin expected "null" but got "sc://"
</del><ins>+PASS Parsing: <?i> against <sc:/pa/pa>
+PASS Parsing: <?i> against <sc://ho/pa>
+FAIL Parsing: <?i> against <sc:///pa/pa> assert_equals: pathname expected "/pa/pa" but got "///pa/pa"
+PASS Parsing: <#i> against <sc:sd>
+PASS Parsing: <#i> against <sc:sd/sd>
+PASS Parsing: <#i> against <sc:/pa/pa>
+PASS Parsing: <#i> against <sc://ho/pa>
+FAIL Parsing: <#i> against <sc:///pa/pa> assert_equals: pathname expected "/pa/pa" but got "///pa/pa"
</ins><span class="cx"> PASS Parsing: <about:/../> against <about:blank>
</span><span class="cx"> PASS Parsing: <data:/../> against <about:blank>
</span><span class="cx"> PASS Parsing: <javascript:/../> against <about:blank>
</span><del>-FAIL Parsing: <mailto:/../> against <about:blank> assert_equals: origin expected "null" but got "mailto://"
-FAIL Parsing: <sc://ñ.test/> against <about:blank> assert_equals: origin expected "null" but got "sc://xn--ida.test"
</del><ins>+PASS Parsing: <mailto:/../> against <about:blank>
+PASS Parsing: <sc://ñ.test/> against <about:blank>
</ins><span class="cx"> FAIL Parsing: <sc:\../> against <about:blank> assert_equals: href expected "sc:\\../" but got "sc:/"
</span><del>-FAIL Parsing: <sc::a@example.net> against <about:blank> assert_equals: origin expected "null" but got "sc://"
</del><ins>+PASS Parsing: <sc::a@example.net> against <about:blank>
</ins><span class="cx"> PASS Parsing: <http://127.0.0.1:10100/relative_import.html> against <about:blank>
</span><span class="cx"> PASS Parsing: <http://facebook.com/?foo=%7B%22abc%22> against <about:blank>
</span><span class="cx"> PASS Parsing: <https://localhost:3000/jqueryui@1.2.3> against <about:blank>
</span><span class="lines">@@ -336,5 +336,5 @@
</span><span class="cx"> PASS Parsing: <??a=b&c=d> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <http:> against <http://example.org/foo/bar>
</span><span class="cx"> FAIL Parsing: <http:> against <https://example.org/foo/bar> assert_unreached: Expected URL to fail parsing Reached unreachable code
</span><del>-FAIL Parsing: <sc:> against <https://example.org/foo/bar> assert_equals: origin expected "null" but got "sc://"
</del><ins>+PASS Parsing: <sc:> against <https://example.org/foo/bar>
</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: <         :foo.com
</span><span class="cx"> > against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: < foo.com > against <http://example.org/foo/bar>
</span><del>-FAIL Parsing: <a:         foo.com> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "a://"
</del><ins>+PASS Parsing: <a:         foo.com> against <http://example.org/foo/bar>
</ins><span class="cx"> PASS Parsing: <http://f:21/ b ? d # e > against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <http://f:/c> against <http://example.org/foo/bar>
</span><span class="cx"> FAIL Parsing: <http://f:0/c> against <http://example.org/foo/bar> assert_equals: origin expected "http://f:0" but got "http://f"
</span><span class="lines">@@ -53,12 +53,12 @@
</span><span class="cx"> PASS Parsing: <http://foo.com/\@> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <http:\\foo.com\> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <http:\\a\b:c\d@foo.com\> against <http://example.org/foo/bar>
</span><del>-FAIL Parsing: <foo:/> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "foo://"
-FAIL Parsing: <foo:/bar.com/> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "foo://"
-FAIL Parsing: <foo://///////> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "foo://"
-FAIL Parsing: <foo://///////bar.com/> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "foo://"
-FAIL Parsing: <foo:////://///> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "foo://"
-FAIL Parsing: <c:/foo> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "c://"
</del><ins>+PASS Parsing: <foo:/> against <http://example.org/foo/bar>
+PASS Parsing: <foo:/bar.com/> against <http://example.org/foo/bar>
+FAIL Parsing: <foo://///////> against <http://example.org/foo/bar> assert_equals: pathname expected "///////" but got "/////////"
+FAIL Parsing: <foo://///////bar.com/> against <http://example.org/foo/bar> assert_equals: pathname expected "///////bar.com/" but got "/////////bar.com/"
+FAIL Parsing: <foo:////://///> against <http://example.org/foo/bar> assert_equals: pathname expected "//://///" but got "////://///"
+PASS Parsing: <c:/foo> against <http://example.org/foo/bar>
</ins><span class="cx"> PASS Parsing: <//foo/bar> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <http://foo/path;a??e#f#g> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <http://foo/abcd?efgh?ijkl> against <http://example.org/foo/bar>
</span><span class="lines">@@ -74,26 +74,26 @@
</span><span class="cx"> FAIL Parsing: <http:/example.com/> against <http://example.org/foo/bar> assert_equals: href expected "http://example.org/example.com/" but got "http://example.com/"
</span><span class="cx"> PASS Parsing: <ftp:/example.com/> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <https:/example.com/> against <http://example.org/foo/bar>
</span><del>-FAIL Parsing: <madeupscheme:/example.com/> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "madeupscheme://"
</del><ins>+PASS Parsing: <madeupscheme:/example.com/> against <http://example.org/foo/bar>
</ins><span class="cx"> PASS Parsing: <file:/example.com/> against <http://example.org/foo/bar>
</span><del>-FAIL Parsing: <ftps:/example.com/> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "ftps://"
</del><ins>+PASS Parsing: <ftps:/example.com/> against <http://example.org/foo/bar>
</ins><span class="cx"> PASS Parsing: <gopher:/example.com/> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <ws:/example.com/> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <wss:/example.com/> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <data:/example.com/> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <javascript:/example.com/> against <http://example.org/foo/bar>
</span><del>-FAIL Parsing: <mailto:/example.com/> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "mailto://"
</del><ins>+PASS Parsing: <mailto:/example.com/> against <http://example.org/foo/bar>
</ins><span class="cx"> PASS Parsing: <http:example.com/> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <ftp:example.com/> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <https:example.com/> against <http://example.org/foo/bar>
</span><del>-FAIL Parsing: <madeupscheme:example.com/> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "madeupscheme://"
-FAIL Parsing: <ftps:example.com/> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "ftps://"
</del><ins>+PASS Parsing: <madeupscheme:example.com/> against <http://example.org/foo/bar>
+PASS Parsing: <ftps:example.com/> against <http://example.org/foo/bar>
</ins><span class="cx"> PASS Parsing: <gopher:example.com/> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <ws:example.com/> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <wss:example.com/> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <data:example.com/> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: <javascript:example.com/> against <http://example.org/foo/bar>
</span><del>-FAIL Parsing: <mailto:example.com/> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "mailto://"
</del><ins>+PASS Parsing: <mailto:example.com/> against <http://example.org/foo/bar>
</ins><span class="cx"> PASS Parsing: </a/b/c> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: </a/ /c> against <http://example.org/foo/bar>
</span><span class="cx"> PASS Parsing: </a%2fc> against <http://example.org/foo/bar>
</span><span class="lines">@@ -100,7 +100,7 @@
</span><span class="cx"> PASS Parsing: </a/%2f/c> against <http://example.org/foo/bar>
</span><span class="cx"> FAIL Parsing: <#β> against <http://example.org/foo/bar> assert_equals: href expected "http://example.org/foo/bar#β" but got "http://example.org/foo/bar#%CE%B2"
</span><span class="cx"> PASS Parsing: <data:text/html,test#test> against <http://example.org/foo/bar>
</span><del>-FAIL Parsing: <tel:1234567890> against <http://example.org/foo/bar> assert_equals: origin expected "null" but got "tel://"
</del><ins>+PASS Parsing: <tel:1234567890> against <http://example.org/foo/bar>
</ins><span class="cx"> FAIL Parsing: <file:c:\foo\bar.html> against <file:///tmp/mock/path> assert_equals: href expected "file:///c:/foo/bar.html" but got "file:///tmp/mock/c:/foo/bar.html"
</span><span class="cx"> FAIL Parsing: < File:c|////foo\bar.html> against <file:///tmp/mock/path> assert_equals: href expected "file:///c:////foo/bar.html" but got "file:///tmp/mock/c|////foo/bar.html"
</span><span class="cx"> FAIL Parsing: <C|/foo/bar> against <file:///tmp/mock/path> assert_equals: href expected "file:///C:/foo/bar" but got "file:///tmp/mock/C|/foo/bar"
</span><span class="lines">@@ -169,7 +169,7 @@
</span><span class="cx"> PASS Parsing: <http:\\www.google.com\foo> against <about:blank>
</span><span class="cx"> PASS Parsing: <http://foo:80/> against <about:blank>
</span><span class="cx"> PASS Parsing: <http://foo:81/> against <about:blank>
</span><del>-FAIL Parsing: <httpa://foo:80/> against <about:blank> assert_equals: origin expected "null" but got "httpa://foo:80"
</del><ins>+PASS Parsing: <httpa://foo:80/> against <about:blank>
</ins><span class="cx"> PASS Parsing: <http://foo:-80/> against <about:blank>
</span><span class="cx"> PASS Parsing: <https://foo:443/> against <about:blank>
</span><span class="cx"> PASS Parsing: <https://foo:80/> against <about:blank>
</span><span class="lines">@@ -188,26 +188,26 @@
</span><span class="cx"> PASS Parsing: <http:/example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <ftp:/example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <https:/example.com/> against <about:blank>
</span><del>-FAIL Parsing: <madeupscheme:/example.com/> against <about:blank> assert_equals: origin expected "null" but got "madeupscheme://"
</del><ins>+PASS Parsing: <madeupscheme:/example.com/> against <about:blank>
</ins><span class="cx"> PASS Parsing: <file:/example.com/> against <about:blank>
</span><del>-FAIL Parsing: <ftps:/example.com/> against <about:blank> assert_equals: origin expected "null" but got "ftps://"
</del><ins>+PASS Parsing: <ftps:/example.com/> against <about:blank>
</ins><span class="cx"> PASS Parsing: <gopher:/example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <ws:/example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <wss:/example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <data:/example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <javascript:/example.com/> against <about:blank>
</span><del>-FAIL Parsing: <mailto:/example.com/> against <about:blank> assert_equals: origin expected "null" but got "mailto://"
</del><ins>+PASS Parsing: <mailto:/example.com/> against <about:blank>
</ins><span class="cx"> PASS Parsing: <http:example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <ftp:example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <https:example.com/> against <about:blank>
</span><del>-FAIL Parsing: <madeupscheme:example.com/> against <about:blank> assert_equals: origin expected "null" but got "madeupscheme://"
-FAIL Parsing: <ftps:example.com/> against <about:blank> assert_equals: origin expected "null" but got "ftps://"
</del><ins>+PASS Parsing: <madeupscheme:example.com/> against <about:blank>
+PASS Parsing: <ftps:example.com/> against <about:blank>
</ins><span class="cx"> PASS Parsing: <gopher:example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <ws:example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <wss:example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <data:example.com/> against <about:blank>
</span><span class="cx"> PASS Parsing: <javascript:example.com/> against <about:blank>
</span><del>-FAIL Parsing: <mailto:example.com/> against <about:blank> assert_equals: origin expected "null" but got "mailto://"
</del><ins>+PASS Parsing: <mailto:example.com/> against <about:blank>
</ins><span class="cx"> PASS Parsing: <http:@www.example.com> against <about:blank>
</span><span class="cx"> PASS Parsing: <http:/@www.example.com> against <about:blank>
</span><span class="cx"> PASS Parsing: <http://@www.example.com> against <about:blank>
</span><span class="lines">@@ -290,11 +290,11 @@
</span><span class="cx"> FAIL Parsing: <http://0Xc0.0250.01> against <http://other.com/> assert_equals: href expected "http://192.168.0.1/" but got "http://0xc0.0250.01/"
</span><span class="cx"> PASS Parsing: <http://[google.com]> against <http://other.com/>
</span><span class="cx"> FAIL Parsing: <http://foo:💩@example.com/bar> against <http://other.com/> Type error
</span><del>-FAIL Parsing: <#> against <test:test> assert_equals: origin expected "null" but got "test://"
-FAIL Parsing: <#x> against <mailto:x@x.com> assert_equals: origin expected "null" but got "mailto://"
</del><ins>+PASS Parsing: <#> against <test:test>
+PASS Parsing: <#x> against <mailto:x@x.com>
</ins><span class="cx"> PASS Parsing: <#x> against <data:,>
</span><span class="cx"> PASS Parsing: <#x> against <about:blank>
</span><del>-FAIL Parsing: <#> against <test:test?test> assert_equals: origin expected "null" but got "test://"
</del><ins>+PASS Parsing: <#> against <test:test?test>
</ins><span class="cx"> FAIL Parsing: <https://@test@test@example:800/> against <http://doesnotmatter/> Type error
</span><span class="cx"> FAIL Parsing: <https://@@@example> against <http://doesnotmatter/> Type error
</span><span class="cx"> FAIL Parsing: <http://`{}:`{}@h/`{}?`{}> against <http://doesnotmatter/> Type error
</span><span class="lines">@@ -303,36 +303,36 @@
</span><span class="cx"> PASS Parsing: </some/path> against <http://user:pass@example.org:21/smth>
</span><span class="cx"> PASS Parsing: <i> against <sc:sd>
</span><span class="cx"> PASS Parsing: <i> against <sc:sd/sd>
</span><del>-FAIL Parsing: <i> against <sc:/pa/pa> assert_equals: origin expected "null" but got "sc://"
-FAIL Parsing: <i> against <sc://ho/pa> assert_equals: origin expected "null" but got "sc://ho"
-FAIL Parsing: <i> against <sc:///pa/pa> assert_equals: origin expected "null" but got "sc://"
</del><ins>+PASS Parsing: <i> against <sc:/pa/pa>
+PASS Parsing: <i> against <sc://ho/pa>
+FAIL Parsing: <i> against <sc:///pa/pa> assert_equals: pathname expected "/pa/i" but got "///pa/i"
</ins><span class="cx"> PASS Parsing: <../i> against <sc:sd>
</span><span class="cx"> PASS Parsing: <../i> against <sc:sd/sd>
</span><del>-FAIL Parsing: <../i> against <sc:/pa/pa> assert_equals: origin expected "null" but got "sc://"
-FAIL Parsing: <../i> against <sc://ho/pa> assert_equals: origin expected "null" but got "sc://ho"
-FAIL Parsing: <../i> against <sc:///pa/pa> assert_equals: origin expected "null" but got "sc://"
</del><ins>+PASS Parsing: <../i> against <sc:/pa/pa>
+PASS Parsing: <../i> against <sc://ho/pa>
+FAIL Parsing: <../i> against <sc:///pa/pa> assert_equals: pathname expected "/i" but got "///i"
</ins><span class="cx"> PASS Parsing: </i> against <sc:sd>
</span><span class="cx"> PASS Parsing: </i> against <sc:sd/sd>
</span><del>-FAIL Parsing: </i> against <sc:/pa/pa> assert_equals: origin expected "null" but got "sc://"
-FAIL Parsing: </i> against <sc://ho/pa> assert_equals: origin expected "null" but got "sc://ho"
</del><ins>+PASS Parsing: </i> against <sc:/pa/pa>
+PASS Parsing: </i> against <sc://ho/pa>
</ins><span class="cx"> FAIL Parsing: </i> against <sc:///pa/pa> assert_equals: href expected "sc:///i" but got "sc:/i"
</span><span class="cx"> PASS Parsing: <?i> against <sc:sd>
</span><span class="cx"> PASS Parsing: <?i> against <sc:sd/sd>
</span><del>-FAIL Parsing: <?i> against <sc:/pa/pa> assert_equals: origin expected "null" but got "sc://"
-FAIL Parsing: <?i> against <sc://ho/pa> assert_equals: origin expected "null" but got "sc://ho"
-FAIL Parsing: <?i> against <sc:///pa/pa> assert_equals: origin expected "null" but got "sc://"
-FAIL Parsing: <#i> against <sc:sd> assert_equals: origin expected "null" but got "sc://"
-FAIL Parsing: <#i> against <sc:sd/sd> assert_equals: origin expected "null" but got "sc://"
-FAIL Parsing: <#i> against <sc:/pa/pa> assert_equals: origin expected "null" but got "sc://"
-FAIL Parsing: <#i> against <sc://ho/pa> assert_equals: origin expected "null" but got "sc://ho"
-FAIL Parsing: <#i> against <sc:///pa/pa> assert_equals: origin expected "null" but got "sc://"
</del><ins>+PASS Parsing: <?i> against <sc:/pa/pa>
+PASS Parsing: <?i> against <sc://ho/pa>
+FAIL Parsing: <?i> against <sc:///pa/pa> assert_equals: pathname expected "/pa/pa" but got "///pa/pa"
+PASS Parsing: <#i> against <sc:sd>
+PASS Parsing: <#i> against <sc:sd/sd>
+PASS Parsing: <#i> against <sc:/pa/pa>
+PASS Parsing: <#i> against <sc://ho/pa>
+FAIL Parsing: <#i> against <sc:///pa/pa> assert_equals: pathname expected "/pa/pa" but got "///pa/pa"
</ins><span class="cx"> PASS Parsing: <about:/../> against <about:blank>
</span><span class="cx"> PASS Parsing: <data:/../> against <about:blank>
</span><span class="cx"> PASS Parsing: <javascript:/../> against <about:blank>
</span><del>-FAIL Parsing: <mailto:/../> against <about:blank> assert_equals: origin expected "null" but got "mailto://"
-FAIL Parsing: <sc://ñ.test/> against <about:blank> assert_equals: origin expected "null" but got "sc://xn--ida.test"
</del><ins>+PASS Parsing: <mailto:/../> against <about:blank>
+PASS Parsing: <sc://ñ.test/> against <about:blank>
</ins><span class="cx"> FAIL Parsing: <sc:\../> against <about:blank> assert_equals: href expected "sc:\\../" but got "sc:/"
</span><del>-FAIL Parsing: <sc::a@example.net> against <about:blank> assert_equals: origin expected "null" but got "sc://"
</del><ins>+PASS Parsing: <sc::a@example.net> against <about:blank>
</ins><span class="cx"> PASS Parsing: <http://127.0.0.1:10100/relative_import.html> against <about:blank>
</span><span class="cx"> PASS Parsing: <http://facebook.com/?foo=%7B%22abc%22> against <about:blank>
</span><span class="cx"> PASS Parsing: <https://localhost:3000/jqueryui@1.2.3> against <about:blank>
</span><span class="lines">@@ -354,5 +354,5 @@
</span><span class="cx"> PASS Parsing: <http:> against <http://example.org/foo/bar>
</span><span class="cx"> FAIL Parsing: <http:> against <https://example.org/foo/bar> assert_throws: function "function () {
</span><span class="cx"> bURL(expected.input, expected.bas..." did not throw
</span><del>-FAIL Parsing: <sc:> against <https://example.org/foo/bar> assert_equals: origin expected "null" but got "sc://"
</del><ins>+PASS Parsing: <sc:> against <https://example.org/foo/bar>
</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 <achristensen@webkit.org>
+
+ 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 "null".
+
</ins><span class="cx"> 2016-09-20 Christopher Reid <Christopher.Reid@am.sony.com>
</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 "blob:<inner-origin>/<UUID>", so treating the part after "blob:" 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()
+ && !innerURL.protocolIs("file")
+ && !innerURL.protocolIs("ftp")
+ && !innerURL.protocolIs("gopher")
+ && !innerURL.protocolIs("ws")
+ && !innerURL.protocolIs("wss");
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> SecurityOrigin::SecurityOrigin(const URL& url)
</span></span></pre>
</div>
</div>
</body>
</html>