<!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>[205464] 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/205464">205464</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2016-09-05 19:08:52 -0700 (Mon, 05 Sep 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Unreviewed, rolling out <a href="http://trac.webkit.org/projects/webkit/changeset/205450">r205450</a>.
https://bugs.webkit.org/show_bug.cgi?id=161614

Made tests flaky, causing false positives on EWS (Requested by
ap on #webkit).

Reverted changeset:

&quot;CachedResourceLoader is not taking into account fetch options
to use or not cached resources&quot;
https://bugs.webkit.org/show_bug.cgi?id=161389
http://trac.webkit.org/changeset/205450</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestshttptestseventsourceeventsourcecorsbasicexpectedtxt">trunk/LayoutTests/http/tests/eventsource/eventsource-cors-basic-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestseventsourceeventsourcecorswithcredentialsexpectedtxt">trunk/LayoutTests/http/tests/eventsource/eventsource-cors-with-credentials-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsloadingcrossoriginXHRwillLoadRequestexpectedtxt">trunk/LayoutTests/http/tests/loading/cross-origin-XHR-willLoadRequest-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsresourcesdownloadjsonwithdelayphp">trunk/LayoutTests/http/tests/resources/download-json-with-delay.php</a></li>
<li><a href="#trunkLayoutTestshttptestsresourcesredirectphp">trunk/LayoutTests/http/tests/resources/redirect.php</a></li>
<li><a href="#trunkLayoutTestshttptestssecurityimgwithfailedcorscheckfailstoloadexpectedtxt">trunk/LayoutTests/http/tests/security/img-with-failed-cors-check-fails-to-load-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestssecurityresourcesabeallowstarphp">trunk/LayoutTests/http/tests/security/resources/abe-allow-star.php</a></li>
<li><a href="#trunkLayoutTestshttptestssecurityvideopostercrossorigincrashexpectedtxt">trunk/LayoutTests/http/tests/security/video-poster-cross-origin-crash-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestssecurityvideopostercrossorigincrash2expectedtxt">trunk/LayoutTests/http/tests/security/video-poster-cross-origin-crash2-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestaccesscontrolandredirectsasyncsameoriginexpectedtxt">trunk/LayoutTests/http/tests/xmlhttprequest/access-control-and-redirects-async-same-origin-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestaccesscontrolrepeatedfailedpreflightcrashexpectedtxt">trunk/LayoutTests/http/tests/xmlhttprequest/access-control-repeated-failed-preflight-crash-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestcrossoriginnoauthorizationexpectedtxt">trunk/LayoutTests/http/tests/xmlhttprequest/cross-origin-no-authorization-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestcrossoriginnocredentialpromptexpectedtxt">trunk/LayoutTests/http/tests/xmlhttprequest/cross-origin-no-credential-prompt-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestcrosssitedeniedresponseexpectedtxt">trunk/LayoutTests/http/tests/xmlhttprequest/cross-site-denied-response-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestonerroreventexpectedtxt">trunk/LayoutTests/http/tests/xmlhttprequest/onerror-event-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestoriginwhitelistinghttpsexpectedtxt">trunk/LayoutTests/http/tests/xmlhttprequest/origin-whitelisting-https-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestoriginwhitelistingipaddresseswithsubdomainsexpectedtxt">trunk/LayoutTests/http/tests/xmlhttprequest/origin-whitelisting-ip-addresses-with-subdomains-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestpostblobcontenttypeasyncexpectedtxt">trunk/LayoutTests/http/tests/xmlhttprequest/post-blob-content-type-async-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestredirectcrossorigin2expectedtxt">trunk/LayoutTests/http/tests/xmlhttprequest/redirect-cross-origin-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestredirectcrossoriginexpectedtxt">trunk/LayoutTests/http/tests/xmlhttprequest/redirect-cross-origin-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestsimplecrossorigindeniedeventsexpectedtxt">trunk/LayoutTests/http/tests/xmlhttprequest/simple-cross-origin-denied-events-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestsimplecrossoriginprogresseventsexpectedtxt">trunk/LayoutTests/http/tests/xmlhttprequest/simple-cross-origin-progress-events-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestxmlhttprequestunsaferedirectexpectedtxt">trunk/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-unsafe-redirect-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cChangeLog">trunk/LayoutTests/imported/w3c/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsecurityconsiderationsubexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/security-consideration.sub-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsfetchapicorscorsbasicexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsfetchapicorscorsbasicworkerexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsfetchapicorscorsmultipleoriginsexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-multiple-origins-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsfetchapicorscorsmultipleoriginsworkerexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-multiple-origins-worker-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsfetchapicorscorsoriginexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-origin-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsfetchapicorscorsoriginworkerexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-origin-worker-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsfetchapicorscorsoriginjs">trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-origin.js</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsfetchapicorscorsredirectcredentialsexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-redirect-credentials-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsfetchapicorscorsredirectcredentialsworkerexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-redirect-credentials-worker-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwk2importedw3cwebplatformtestsfetchapicorscorsbasicexpectedtxt">trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwk2importedw3cwebplatformtestsfetchapicorscorsbasicworkerexpectedtxt">trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacwk2importedw3cwebplatformtestsfetchapicorscorsbasicexpectedtxt">trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacwk2importedw3cwebplatformtestsfetchapicorscorsbasicworkerexpectedtxt">trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreloaderCrossOriginPreflightCheckercpp">trunk/Source/WebCore/loader/CrossOriginPreflightChecker.cpp</a></li>
<li><a href="#trunkSourceWebCoreloaderDocumentThreadableLoadercpp">trunk/Source/WebCore/loader/DocumentThreadableLoader.cpp</a></li>
<li><a href="#trunkSourceWebCoreloaderImageLoadercpp">trunk/Source/WebCore/loader/ImageLoader.cpp</a></li>
<li><a href="#trunkSourceWebCoreloaderSubresourceLoadercpp">trunk/Source/WebCore/loader/SubresourceLoader.cpp</a></li>
<li><a href="#trunkSourceWebCoreloaderSubresourceLoaderh">trunk/Source/WebCore/loader/SubresourceLoader.h</a></li>
<li><a href="#trunkSourceWebCoreloadercacheCachedImagecpp">trunk/Source/WebCore/loader/cache/CachedImage.cpp</a></li>
<li><a href="#trunkSourceWebCoreloadercacheCachedImageh">trunk/Source/WebCore/loader/cache/CachedImage.h</a></li>
<li><a href="#trunkSourceWebCoreloadercacheCachedResourcecpp">trunk/Source/WebCore/loader/cache/CachedResource.cpp</a></li>
<li><a href="#trunkSourceWebCoreloadercacheCachedResourceh">trunk/Source/WebCore/loader/cache/CachedResource.h</a></li>
<li><a href="#trunkSourceWebCoreloadercacheCachedResourceLoadercpp">trunk/Source/WebCore/loader/cache/CachedResourceLoader.cpp</a></li>
<li><a href="#trunkSourceWebCoreloadercacheCachedResourceLoaderh">trunk/Source/WebCore/loader/cache/CachedResourceLoader.h</a></li>
<li><a href="#trunkSourceWebCoreloadercacheCachedResourceRequesth">trunk/Source/WebCore/loader/cache/CachedResourceRequest.h</a></li>
<li><a href="#trunkSourceWebCorestyleStylePendingResourcescpp">trunk/Source/WebCore/style/StylePendingResources.cpp</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkLayoutTestshttptestsfetchfetchingsameresourcewithdiffferentoptionsexpectedtxt">trunk/LayoutTests/http/tests/fetch/fetching-same-resource-with-diffferent-options-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsfetchfetchingsameresourcewithdiffferentoptionshtml">trunk/LayoutTests/http/tests/fetch/fetching-same-resource-with-diffferent-options.html</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycrossorigincachedresourceexpectedtxt">trunk/LayoutTests/http/tests/security/cross-origin-cached-resource-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycrossorigincachedresourceparallelexpectedtxt">trunk/LayoutTests/http/tests/security/cross-origin-cached-resource-parallel-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycrossorigincachedresourceparallelhtml">trunk/LayoutTests/http/tests/security/cross-origin-cached-resource-parallel.html</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycrossorigincachedresourcehtml">trunk/LayoutTests/http/tests/security/cross-origin-cached-resource.html</a></li>
<li><a href="#trunkLayoutTestshttptestssecurityloadimageafterredirection2expectedtxt">trunk/LayoutTests/http/tests/security/load-image-after-redirection-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestssecurityloadimageafterredirection2html">trunk/LayoutTests/http/tests/security/load-image-after-redirection-2.html</a></li>
<li><a href="#trunkLayoutTestshttptestssecurityresourcesallowiforiginphp">trunk/LayoutTests/http/tests/security/resources/allow-if-origin.php</a></li>
<li><a href="#trunkLayoutTestshttptestssecurityresourcescrossorigincachedresourceiframehtml">trunk/LayoutTests/http/tests/security/resources/cross-origin-cached-resource-iframe.html</a></li>
<li><a href="#trunkLayoutTestshttptestssecurityresourcesrgbalphapng">trunk/LayoutTests/http/tests/security/resources/rgbalpha.png</a></li>
<li><a href="#trunkLayoutTestshttptestssecurityshapeoutsideandcachedresourcesexpectedhtml">trunk/LayoutTests/http/tests/security/shape-outside-and-cached-resources-expected.html</a></li>
<li><a href="#trunkLayoutTestshttptestssecurityshapeoutsideandcachedresourceshtml">trunk/LayoutTests/http/tests/security/shape-outside-and-cached-resources.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwk2importedw3cwebplatformtestsfetchapicorscorsoriginexpectedtxt">trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-origin-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwk2importedw3cwebplatformtestsfetchapicorscorsoriginworkerexpectedtxt">trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-origin-worker-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacwk2importedw3cwebplatformtestsfetchapicorscorsoriginexpectedtxt">trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-origin-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacwk2importedw3cwebplatformtestsfetchapicorscorsoriginworkerexpectedtxt">trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-origin-worker-expected.txt</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/ChangeLog        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,3 +1,18 @@
</span><ins>+2016-09-05  Commit Queue  &lt;commit-queue@webkit.org&gt;
+
+        Unreviewed, rolling out r205450.
+        https://bugs.webkit.org/show_bug.cgi?id=161614
+
+        Made tests flaky, causing false positives on EWS (Requested by
+        ap on #webkit).
+
+        Reverted changeset:
+
+        &quot;CachedResourceLoader is not taking into account fetch options
+        to use or not cached resources&quot;
+        https://bugs.webkit.org/show_bug.cgi?id=161389
+        http://trac.webkit.org/changeset/205450
+
</ins><span class="cx"> 2016-09-05  Youenn Fablet  &lt;youenn@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Clean CSS stylesheets should be accessible from JavaScript
</span></span></pre></div>
<a id="trunkLayoutTestshttptestseventsourceeventsourcecorsbasicexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/eventsource/eventsource-cors-basic-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/eventsource/eventsource-cors-basic-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/eventsource/eventsource-cors-basic-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,6 +1,4 @@
</span><del>-CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
</del><span class="cx"> CONSOLE MESSAGE: EventSource cannot load http://localhost:8000/eventsource/resources/es-cors-basic.php?count=1. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
</span><del>-CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
</del><span class="cx"> CONSOLE MESSAGE: EventSource cannot load http://localhost:8000/eventsource/resources/es-cors-basic.php?count=2. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
</span><span class="cx"> Test that basic EventSource cross-origin requests fail until they are allowed by the Access-Control-Allow-Origin header. Should print a series of PASS messages followed by DONE.
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestshttptestseventsourceeventsourcecorswithcredentialsexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/eventsource/eventsource-cors-with-credentials-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/eventsource/eventsource-cors-with-credentials-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/eventsource/eventsource-cors-with-credentials-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,8 +1,5 @@
</span><del>-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</del><span class="cx"> CONSOLE MESSAGE: EventSource cannot load http://localhost:8000/eventsource/resources/es-cors-credentials.php?count=1. Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><del>-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</del><span class="cx"> CONSOLE MESSAGE: EventSource cannot load http://localhost:8000/eventsource/resources/es-cors-credentials.php?count=2. Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><del>-CONSOLE MESSAGE: Credentials flag is true, but Access-Control-Allow-Credentials is not &quot;true&quot;.
</del><span class="cx"> CONSOLE MESSAGE: EventSource cannot load http://localhost:8000/eventsource/resources/es-cors-credentials.php?count=3. Credentials flag is true, but Access-Control-Allow-Credentials is not &quot;true&quot;.
</span><span class="cx"> Test that EventSource cross-origin requests with credentials fail until the correct CORS headers are sent. Should print a series of PASS messages followed by DONE.
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsfetchfetchingsameresourcewithdiffferentoptionsexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/fetch/fetching-same-resource-with-diffferent-options-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/fetch/fetching-same-resource-with-diffferent-options-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/fetch/fetching-same-resource-with-diffferent-options-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,8 +0,0 @@
</span><del>-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
-
-PASS Ensure cors checks work when loading in parallel the same resource with different modes 
-PASS Ensure cors checks work when loading successively the same resource with different modes 
-
</del></span></pre></div>
<a id="trunkLayoutTestshttptestsfetchfetchingsameresourcewithdiffferentoptionshtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/fetch/fetching-same-resource-with-diffferent-options.html (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/fetch/fetching-same-resource-with-diffferent-options.html        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/fetch/fetching-same-resource-with-diffferent-options.html        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,69 +0,0 @@
</span><del>-&lt;!doctype html&gt;
-&lt;html&gt;
-  &lt;head&gt;
-    &lt;meta charset=&quot;utf-8&quot;&gt;
-    &lt;title&gt;Fetching the same resource with different options&lt;/title&gt;
-    &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
-    &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
-  &lt;/head&gt;
-  &lt;body&gt;
-    &lt;script&gt;
-promise_test(function(t) {
-    var url1 = &quot;http://localhost:8000/resources/download-json-with-delay.php?iteration=2&amp;delay=100&amp;cors=true&amp;allowCache=true&amp;test=1&quot;;
-    var url2 = &quot;http://localhost:8000/resources/download-json-with-delay.php?iteration=2&amp;delay=100&amp;cors=true&amp;allowCache=true&amp;test=2&quot;;
-    return Promise.all([
-            fetch(url1, {&quot;mode&quot;: &quot;no-cors&quot;}).then((response) =&gt; {
-                assert_equals(response.type, &quot;opaque&quot;);
-            }),
-            fetch(url1, {&quot;mode&quot;: &quot;cors&quot;}).then((response) =&gt; {
-                assert_equals(response.type, &quot;cors&quot;);
-                return response.arrayBuffer().then((arrayBuffer) =&gt; {
-                    assert_true(arrayBuffer.byteLength &gt; 0);
-                });
-            }),
-            promise_rejects(t, new TypeError(), fetch(url1, {&quot;mode&quot;: &quot;cors&quot;, &quot;credentials&quot;: &quot;include&quot;})),
-            promise_rejects(t, new TypeError(), fetch(url2, {&quot;mode&quot;: &quot;cors&quot;, &quot;credentials&quot;: &quot;include&quot;})),
-            fetch(url2, {&quot;mode&quot;: &quot;cors&quot;}).then((response) =&gt; {
-                assert_equals(response.type, &quot;cors&quot;);
-                return response.arrayBuffer().then((arrayBuffer) =&gt; {
-                    assert_true(arrayBuffer.byteLength &gt; 0);
-                });
-            }),
-            fetch(url2, {&quot;mode&quot;: &quot;no-cors&quot;}).then((response) =&gt; {
-                assert_equals(response.type, &quot;opaque&quot;);
-            })
-    ]);
-}, 'Ensure cors checks work when loading in parallel the same resource with different modes');
-
-promise_test(function(t) {
-    var url3 = &quot;http://localhost:8000/resources/download-json-with-delay.php?iteration=2&amp;delay=100&amp;cors=true&amp;allowCache=true&amp;test=3&quot;;
-    var url4 = &quot;http://localhost:8000/resources/download-json-with-delay.php?iteration=2&amp;delay=100&amp;cors=true&amp;allowCache=true&amp;test=4&quot;;
-    return fetch(url3, {&quot;mode&quot;: &quot;cors&quot;}).then((response) =&gt; {
-        assert_equals(response.type, &quot;cors&quot;);
-        return response.arrayBuffer().then((arrayBuffer) =&gt; {
-            assert_true(arrayBuffer.byteLength &gt; 0);
-        });
-    }).then(() =&gt; {
-        return fetch(url3, {&quot;mode&quot;: &quot;no-cors&quot;}).then((response) =&gt; {
-            assert_equals(response.type, &quot;opaque&quot;);
-        });
-    }).then(() =&gt; {
-        return promise_rejects(t, new TypeError(), fetch(url3, {&quot;mode&quot;: &quot;cors&quot;, &quot;credentials&quot;: &quot;include&quot;}));
-    }).then(() =&gt; {
-        return promise_rejects(t, new TypeError(), fetch(url4, {&quot;mode&quot;: &quot;cors&quot;, &quot;credentials&quot;: &quot;include&quot;}));
-    }).then(() =&gt; {
-        return fetch(url4, {&quot;mode&quot;: &quot;no-cors&quot;}).then((response) =&gt; {
-            assert_equals(response.type, &quot;opaque&quot;);
-        });
-    }).then(() =&gt; {
-        return fetch(url4, {&quot;mode&quot;: &quot;cors&quot;}).then((response) =&gt; {
-            assert_equals(response.type, &quot;cors&quot;);
-            return response.arrayBuffer().then((arrayBuffer) =&gt; {
-                assert_true(arrayBuffer.byteLength &gt; 0);
-            });
-        });
-    });
-}, 'Ensure cors checks work when loading successively the same resource with different modes');
-    &lt;/script&gt;
-  &lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestsloadingcrossoriginXHRwillLoadRequestexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/loading/cross-origin-XHR-willLoadRequest-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/loading/cross-origin-XHR-willLoadRequest-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/loading/cross-origin-XHR-willLoadRequest-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -3,6 +3,5 @@
</span><span class="cx"> main frame - didFinishDocumentLoadForFrame
</span><span class="cx"> main frame - didHandleOnloadEventsForFrame
</span><span class="cx"> main frame - didFinishLoadForFrame
</span><del>-CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/loading/resources/foo.txt due to access control checks.
</del><ins>+CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/loading/resources/foo.txt. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
</ins><span class="cx"> The console message above should report failure to load foo.txt due to cross-origin access, not a network error.
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsresourcesdownloadjsonwithdelayphp"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/resources/download-json-with-delay.php (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/resources/download-json-with-delay.php        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/resources/download-json-with-delay.php        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,18 +1,9 @@
</span><span class="cx"> &lt;?php
</span><span class="cx"> header(&quot;Expires: Thu, 01 Dec 2003 16:00:00 GMT&quot;);
</span><ins>+header(&quot;Cache-Control: no-cache, no-store, must-revalidate&quot;);
+header(&quot;Pragma: no-cache&quot;);
+header(&quot;Content-Type: application/x-no-buffering-please&quot;);
</ins><span class="cx"> 
</span><del>-if ($_GET['allowCache']) {
-    header(&quot;Content-Type: application/json&quot;);
-} else {
-    header(&quot;Content-Type: application/x-no-buffering-please&quot;);
-    header(&quot;Cache-Control: no-cache, no-store, must-revalidate&quot;);
-    header(&quot;Pragma: no-cache&quot;);
-}
-
-if ($_GET['cors']) {
-    header(&quot;Access-Control-Allow-Origin: *&quot;);
-}
-
</del><span class="cx"> $iteration = $_GET['iteration'];
</span><span class="cx"> $delay = $_GET['delay'];
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsresourcesredirectphp"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/resources/redirect.php (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/resources/redirect.php        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/resources/redirect.php        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,22 +1,16 @@
</span><span class="cx"> &lt;?php
</span><del>-    function addCacheControl($allowCache) {
-        if ($allowCache)
-            header(&quot;Cache-Control: public, max-age=86400&quot;);
-        else {
-            # Workaround for https://bugs.webkit.org/show_bug.cgi?id=77538
-            # Caching redirects results in flakiness in tests that dump loader delegates.
-            header(&quot;Cache-Control: no-store&quot;);
-        }
</del><ins>+    function addCacheControl() {
+        # Workaround for https://bugs.webkit.org/show_bug.cgi?id=77538
+        # Caching redirects results in flakiness in tests that dump loader delegates.
+        header(&quot;Cache-Control: no-store&quot;);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     $url = $_GET['url'];
</span><span class="cx"> 
</span><del>-    $allowCache = isset($_GET['allowCache']);
-
</del><span class="cx">     if (isset($_GET['refresh'])) {
</span><span class="cx">         header(&quot;HTTP/1.1 200&quot;);
</span><span class="cx">         header(&quot;Refresh: &quot; . $_GET['refresh'] . &quot;; url=$url&quot;);
</span><del>-        addCacheControl($allowCache);
</del><ins>+        addCacheControl();
</ins><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -28,5 +22,5 @@
</span><span class="cx">     } else
</span><span class="cx">         header(&quot;HTTP/1.1 &quot; . $_GET['code']);
</span><span class="cx">     header(&quot;Location: $url&quot;);
</span><del>-    addCacheControl($allowCache);
</del><ins>+    addCacheControl();
</ins><span class="cx"> ?&gt;
</span></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycrossorigincachedresourceexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/security/cross-origin-cached-resource-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/cross-origin-cached-resource-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/security/cross-origin-cached-resource-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,19 +0,0 @@
</span><del>-CONSOLE MESSAGE: Origin http://localhost:8080 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Cross-origin image load denied by Cross-Origin Resource Sharing policy.
-CONSOLE MESSAGE: Origin http://localhost:8080 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Cross-origin image load denied by Cross-Origin Resource Sharing policy.
-Tests source origin difference for cached resources.
-
-Trying to load sequentially the same image from various origins.
-All images should load.
-
-Test 1 PASS: Loaded image http://127.0.0.1:8000/security/resources/abe-allow-star.php?allowCache from localhost:8000 (crossOrigin=anonymous)
-Test 2 PASS: Loaded image http://127.0.0.1:8000/security/resources/abe-allow-star.php?allowCache from localhost:8080 (crossOrigin=anonymous)
-Test 3 PASS: Loaded image http://127.0.0.1:8000/security/resources/allow-if-origin.php?allowCache&amp;origin=http%3A%2F%2Flocalhost%3A8000 from localhost:8000 (crossOrigin=anonymous)
-Test 4 PASS: Did not load image http://127.0.0.1:8000/security/resources/allow-if-origin.php?allowCache&amp;origin=http%3A%2F%2Flocalhost%3A8000 from localhost:8080 (crossOrigin=anonymous)
-Test 5 PASS: Loaded image http://127.0.0.1:8080/security/resources/abe-allow-star.php?allowCache from localhost:8000
-Test 6 PASS: Loaded image http://127.0.0.1:8080/security/resources/abe-allow-star.php?allowCache from localhost:8000 (crossOrigin=anonymous)
-Test 7 PASS: Loaded image http://127.0.0.1:8080/security/resources/allow-if-origin.php?allowCache&amp;origin=http%3A%2F%2Flocalhost%3A8000 from localhost:8080
-Test 8 PASS: Did not load image http://127.0.0.1:8080/security/resources/allow-if-origin.php?allowCache&amp;origin=http%3A%2F%2Flocalhost%3A8000 from localhost:8080 (crossOrigin=anonymous)
-     
-     
</del></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycrossorigincachedresourceparallelexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/security/cross-origin-cached-resource-parallel-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/cross-origin-cached-resource-parallel-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/security/cross-origin-cached-resource-parallel-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,19 +0,0 @@
</span><del>-CONSOLE MESSAGE: Origin http://localhost:8080 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Cross-origin image load denied by Cross-Origin Resource Sharing policy.
-CONSOLE MESSAGE: Origin http://localhost:8080 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Cross-origin image load denied by Cross-Origin Resource Sharing policy.
-Tests source origin difference for cached resources.
-
-Trying to load sequentially the same image from various origins.
-All images should load.
-
-Test 1 PASS: Loaded image http://127.0.0.1:8000/security/resources/abe-allow-star.php?allowCache from localhost:8000 (crossOrigin=anonymous)
-Test 2 PASS: Loaded image http://127.0.0.1:8000/security/resources/abe-allow-star.php?allowCache from localhost:8080 (crossOrigin=anonymous)
-Test 3 PASS: Loaded image http://127.0.0.1:8000/security/resources/allow-if-origin.php?allowCache&amp;origin=http%3A%2F%2Flocalhost%3A8000 from localhost:8000 (crossOrigin=anonymous)
-Test 4 PASS: Did not load image http://127.0.0.1:8000/security/resources/allow-if-origin.php?allowCache&amp;origin=http%3A%2F%2Flocalhost%3A8000 from localhost:8080 (crossOrigin=anonymous)
-Test 5 PASS: Loaded image http://127.0.0.1:8080/security/resources/abe-allow-star.php?allowCache from localhost:8000
-Test 6 PASS: Loaded image http://127.0.0.1:8080/security/resources/abe-allow-star.php?allowCache from localhost:8000 (crossOrigin=anonymous)
-Test 7 PASS: Loaded image http://127.0.0.1:8080/security/resources/allow-if-origin.php?allowCache&amp;origin=http%3A%2F%2Flocalhost%3A8000 from localhost:8080
-Test 8 PASS: Did not load image http://127.0.0.1:8080/security/resources/allow-if-origin.php?allowCache&amp;origin=http%3A%2F%2Flocalhost%3A8000 from localhost:8080 (crossOrigin=anonymous)
-     
-     
</del></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycrossorigincachedresourceparallelhtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/security/cross-origin-cached-resource-parallel.html (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/cross-origin-cached-resource-parallel.html        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/security/cross-origin-cached-resource-parallel.html        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,67 +0,0 @@
</span><del>-&lt;html&gt;
-&lt;body&gt;
-&lt;p&gt;Tests source origin difference for cached resources.&lt;/p
-&lt;p&gt;Trying to load sequentially the same image from various origins.&lt;/p&gt;
-&lt;p&gt;All images should load.&lt;/p&gt;
-&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
-&lt;div&gt;
-    &lt;iframe id=&quot;iframe1&quot;&gt;&lt;/iframe&gt;
-    &lt;iframe id=&quot;iframe2&quot;&gt;&lt;/iframe&gt;
-    &lt;iframe id=&quot;iframe3&quot;&gt;&lt;/iframe&gt;
-    &lt;iframe id=&quot;iframe4&quot;&gt;&lt;/iframe&gt;
-&lt;/div&gt;
-&lt;div&gt;
-    &lt;iframe id=&quot;iframe5&quot;&gt;&lt;/iframe&gt;
-    &lt;iframe id=&quot;iframe6&quot;&gt;&lt;/iframe&gt;
-    &lt;iframe id=&quot;iframe7&quot;&gt;&lt;/iframe&gt;
-    &lt;iframe id=&quot;iframe8&quot;&gt;&lt;/iframe&gt;
-&lt;/div&gt;
-&lt;script&gt;
-if (window.testRunner) {
-   testRunner.dumpAsText();
-   testRunner.waitUntilDone();
-}
-
-var counter = 0;
-var messages = [];
-window.addEventListener(&quot;message&quot;, function(event) {
-    messages.push(event.data);
-    if (messages.length == 8) {
-        messages.sort();
-        messages.forEach((message) =&gt; {
-            document.getElementById('console').innerHTML += message + &quot;&lt;br/&gt;&quot;;
-        })
-        if (window.testRunner)
-            testRunner.notifyDone();
-    }
-});
-
-var iframeURL8000 = &quot;http://localhost:8000/security/resources/cross-origin-cached-resource-iframe.html&quot;;
-var iframeURL8080 = &quot;http://localhost:8080/security/resources/cross-origin-cached-resource-iframe.html&quot;;
-
-var allowAllImage1 = &quot;http://127.0.0.1:8000/security/resources/abe-allow-star.php?allowCache&quot;;
-var allow8000Image1 = &quot;http://127.0.0.1:8000/security/resources/allow-if-origin.php?allowCache&amp;origin=http%3A%2F%2Flocalhost%3A8000&quot;;
-
-var allowAllImage2 = &quot;http://127.0.0.1:8080/security/resources/abe-allow-star.php?allowCache&quot;;
-var allow8000Image2 = &quot;http://127.0.0.1:8080/security/resources/allow-if-origin.php?allowCache&amp;origin=http%3A%2F%2Flocalhost%3A8000&quot;;
-
-document.getElementById('iframe1').src = iframeURL8000 + &quot;#&quot; +
-    encodeURIComponent(JSON.stringify({url: allowAllImage1, shouldPass:true, crossOrigin: &quot;anonymous&quot;, id: 1}));
-document.getElementById('iframe2').src = iframeURL8080 + &quot;#&quot; +
-    encodeURIComponent(JSON.stringify({url: allowAllImage1, shouldPass: true, crossOrigin: &quot;anonymous&quot;, id: 2}));
-document.getElementById('iframe3').src = iframeURL8000 + &quot;#&quot; +
-    encodeURIComponent(JSON.stringify({url: allow8000Image1, shouldPass: true, crossOrigin: &quot;anonymous&quot;, id: 3}));
-document.getElementById('iframe4').src = iframeURL8080 + &quot;#&quot; +
-    encodeURIComponent(JSON.stringify({url: allow8000Image1, shouldPass: false, crossOrigin: &quot;anonymous&quot;, id: 4}));
-
-document.getElementById('iframe5').src = iframeURL8000 + &quot;#&quot; +
-    encodeURIComponent(JSON.stringify({url: allowAllImage2, shouldPass:true, id: 5}));
-document.getElementById('iframe6').src = iframeURL8000 + &quot;#&quot; +
-    encodeURIComponent(JSON.stringify({url: allowAllImage2, shouldPass:true, crossOrigin: &quot;anonymous&quot;, id: 6}));
-document.getElementById('iframe7').src = iframeURL8080 + &quot;#&quot; +
-    encodeURIComponent(JSON.stringify({url: allow8000Image2, shouldPass:true, id: 7}));
-document.getElementById('iframe8').src = iframeURL8080 + &quot;#&quot; +
-    encodeURIComponent(JSON.stringify({url: allow8000Image2, shouldPass:false, crossOrigin: &quot;anonymous&quot;, id: 8}));
-&lt;/script&gt;
-&lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycrossorigincachedresourcehtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/security/cross-origin-cached-resource.html (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/cross-origin-cached-resource.html        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/security/cross-origin-cached-resource.html        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,78 +0,0 @@
</span><del>-&lt;html&gt;
-&lt;body&gt;
-&lt;p&gt;Tests source origin difference for cached resources.&lt;/p
-&lt;p&gt;Trying to load sequentially the same image from various origins.&lt;/p&gt;
-&lt;p&gt;All images should load.&lt;/p&gt;
-&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
-&lt;div&gt;
-    &lt;iframe id=&quot;iframe1&quot;&gt;&lt;/iframe&gt;
-    &lt;iframe id=&quot;iframe2&quot;&gt;&lt;/iframe&gt;
-    &lt;iframe id=&quot;iframe3&quot;&gt;&lt;/iframe&gt;
-    &lt;iframe id=&quot;iframe4&quot;&gt;&lt;/iframe&gt;
-&lt;/div&gt;
-&lt;div&gt;
-    &lt;iframe id=&quot;iframe5&quot;&gt;&lt;/iframe&gt;
-    &lt;iframe id=&quot;iframe6&quot;&gt;&lt;/iframe&gt;
-    &lt;iframe id=&quot;iframe7&quot;&gt;&lt;/iframe&gt;
-    &lt;iframe id=&quot;iframe8&quot;&gt;&lt;/iframe&gt;
-&lt;/div&gt;
-&lt;script&gt;
-if (window.testRunner) {
-   testRunner.dumpAsText();
-   testRunner.waitUntilDone();
-}
-
-window.addEventListener(&quot;message&quot;, function(event) {
-    document.getElementById('console').innerHTML += event.data + &quot;&lt;br/&gt;&quot;;
-    loadNextFrame();
-});
-
-var iframeURL8000 = &quot;http://localhost:8000/security/resources/cross-origin-cached-resource-iframe.html&quot;;
-var iframeURL8080 = &quot;http://localhost:8080/security/resources/cross-origin-cached-resource-iframe.html&quot;;
-
-var allowAllImage1 = &quot;http://127.0.0.1:8000/security/resources/abe-allow-star.php?allowCache&quot;;
-var allow8000Image1 = &quot;http://127.0.0.1:8000/security/resources/allow-if-origin.php?allowCache&amp;origin=http%3A%2F%2Flocalhost%3A8000&quot;;
-
-var allowAllImage2 = &quot;http://127.0.0.1:8080/security/resources/abe-allow-star.php?allowCache&quot;;
-var allow8000Image2 = &quot;http://127.0.0.1:8080/security/resources/allow-if-origin.php?allowCache&amp;origin=http%3A%2F%2Flocalhost%3A8000&quot;;
-
-var counter = 0;
-function loadNextFrame()
-{
-    counter++;
-    // Four first tests try to load an image with a given origin and then the same image (in cache) with a different origin.
-    if (counter == 1)
-        document.getElementById('iframe1').src = iframeURL8000 + &quot;#&quot; +
-            encodeURIComponent(JSON.stringify({url: allowAllImage1, shouldPass:true, crossOrigin: &quot;anonymous&quot;, id: 1}));
-    else if (counter == 2)
-        document.getElementById('iframe2').src = iframeURL8080 + &quot;#&quot; +
-            encodeURIComponent(JSON.stringify({url: allowAllImage1, shouldPass: true, crossOrigin: &quot;anonymous&quot;, id: 2}));
-    else if (counter == 3)
-        document.getElementById('iframe3').src = iframeURL8000 + &quot;#&quot; +
-            encodeURIComponent(JSON.stringify({url: allow8000Image1, shouldPass: true, crossOrigin: &quot;anonymous&quot;, id: 3}));
-    // Fourth image load should fail since requesting image from localhost:8080 while only allowed from localhost:8000.
-    else if (counter == 4)
-        document.getElementById('iframe4').src = iframeURL8080 + &quot;#&quot; +
-            encodeURIComponent(JSON.stringify({url: allow8000Image1, shouldPass: false, crossOrigin: &quot;anonymous&quot;, id: 4}));
-
-    // Four next tests try to load a cross-origin image without cors and then with cors.
-    else if (counter == 5)
-        document.getElementById('iframe5').src = iframeURL8000 + &quot;#&quot; +
-            encodeURIComponent(JSON.stringify({url: allowAllImage2, shouldPass:true, id: 5}));
-    else if (counter == 6)
-        document.getElementById('iframe6').src = iframeURL8000 + &quot;#&quot; +
-            encodeURIComponent(JSON.stringify({url: allowAllImage2, shouldPass:true, crossOrigin: &quot;anonymous&quot;, id: 6}));
-    else if (counter == 7)
-        document.getElementById('iframe7').src = iframeURL8080 + &quot;#&quot; +
-            encodeURIComponent(JSON.stringify({url: allow8000Image2, shouldPass:true, id: 7}));
-    else if (counter == 8)
-        document.getElementById('iframe8').src = iframeURL8080 + &quot;#&quot; +
-            encodeURIComponent(JSON.stringify({url: allow8000Image2, shouldPass:false, crossOrigin: &quot;anonymous&quot;, id: 8}));
-    else if (window.testRunner)
-        testRunner.notifyDone();
-}
-
-loadNextFrame();
-&lt;/script&gt;
-&lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestssecurityimgwithfailedcorscheckfailstoloadexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/security/img-with-failed-cors-check-fails-to-load-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/img-with-failed-cors-check-fails-to-load-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/security/img-with-failed-cors-check-fails-to-load-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,4 +1,3 @@
</span><del>-CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
</del><span class="cx"> CONSOLE MESSAGE: Cross-origin image load denied by Cross-Origin Resource Sharing policy.
</span><span class="cx"> ALERT: PASS: The error event was called.
</span><span class="cx"> This test passes if the image below does not load. 
</span></span></pre></div>
<a id="trunkLayoutTestshttptestssecurityloadimageafterredirection2expectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/security/load-image-after-redirection-2-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/load-image-after-redirection-2-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/security/load-image-after-redirection-2-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,7 +0,0 @@
</span><del>-CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8000/security/resources/allow-if-origin.php denied by Cross-Origin Resource Sharing policy: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Cross-origin image load denied by Cross-Origin Resource Sharing policy.

-
-PASS Loading an image in no-cors mode after a CORS invalid redirection is ok 
-PASS Loading an image in cors mode after a CORS invalid redirection is stopped 
-
</del></span></pre></div>
<a id="trunkLayoutTestshttptestssecurityloadimageafterredirection2html"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/security/load-image-after-redirection-2.html (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/load-image-after-redirection-2.html        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/security/load-image-after-redirection-2.html        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,33 +0,0 @@
</span><del>-&lt;!DOCTYPE html&gt;
-&lt;html&gt;
-&lt;head&gt;
-&lt;title&gt;Testing redirection with images fetched with cors mode&lt;/title&gt;
-
-&lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
-&lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
-&lt;/head&gt;
-&lt;body&gt;
-&lt;img id=&quot;image1&quot; style=&quot;visibility:hidden&quot;&gt;&lt;/img&gt;
-&lt;img id=&quot;image2&quot; crossorigin=&quot;use-credentials&quot; style=&quot;visibility:hidden&quot;&gt;&lt;/img&gt;
-&lt;script type=&quot;text/javascript&quot;&gt;
-var imageURLAfterCORSInvalidRedirection = &quot;http://localhost:8000/resources/redirect.php?url=http://127.0.0.1:8000/security/resources/allow-if-origin.php&amp;allowCache&quot;;
-promise_test((test) =&gt; {
-    return new Promise((resolve, reject) =&gt; {
-        var image = document.getElementById(&quot;image1&quot;);
-        image.onload = resolve;
-        image.onerror = () =&gt; { reject(&quot;image loading failed unexpectedly&quot;); };
-        image.src = imageURLAfterCORSInvalidRedirection;
-    });
-}, &quot;Loading an image in no-cors mode after a CORS invalid redirection is ok&quot;);
-
-promise_test((test) =&gt; {
-    return new Promise((resolve, reject) =&gt; {
-        var image = document.getElementById(&quot;image2&quot;);
-        image.onerror = resolve;
-        image.onload = () =&gt; { reject(&quot;image loading succeeded unexpectedly&quot;); };
-        image.src = imageURLAfterCORSInvalidRedirection;
-    });
-}, &quot;Loading an image in cors mode after a CORS invalid redirection is stopped&quot;);
-&lt;/script&gt;
-&lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestssecurityresourcesabeallowstarphp"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/security/resources/abe-allow-star.php (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/resources/abe-allow-star.php        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/security/resources/abe-allow-star.php        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,10 +1,6 @@
</span><span class="cx"> &lt;?php
</span><span class="cx"> header(&quot;Access-Control-Allow-Origin: *&quot;);
</span><span class="cx"> 
</span><del>-$allowCache = $_GET['allowCache'];
-if (isset($allowCache))
-    header(&quot;Cache-Control: max-age=100&quot;);
-
</del><span class="cx"> $name = 'abe.png';
</span><span class="cx"> $fp = fopen($name, 'rb');
</span><span class="cx"> header(&quot;Content-Type: image/png&quot;);
</span></span></pre></div>
<a id="trunkLayoutTestshttptestssecurityresourcesallowiforiginphp"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/security/resources/allow-if-origin.php (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/resources/allow-if-origin.php        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/security/resources/allow-if-origin.php        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,30 +0,0 @@
</span><del>-&lt;?php
-
-$delay = $_GET['delay'];
-if (isset($delay))
-    usleep($delay);
-
-$origin = $_GET['origin'];
-if (isset($origin))
-    header(&quot;Access-Control-Allow-Origin: &quot; . $origin);
-else if ($_SERVER[&quot;HTTP_ORIGIN&quot;]) {
-    header(&quot;Access-Control-Allow-Origin: &quot; . $_SERVER[&quot;HTTP_ORIGIN&quot;]);
-    header(&quot;Vary: Origin&quot;);
-}
-
-$allowCache = $_GET['allowCache'];
-if (isset($allowCache))
-    header(&quot;Cache-Control: max-age=100&quot;);
-
-$name = $_GET['name'];
-if (!isset($name))
-    $name = 'abe.png';
-
-$fp = fopen($name, 'rb');
-
-header(&quot;Content-Type: image/png&quot;);
-header(&quot;Content-Length: &quot; . filesize($name));
-
-fpassthru($fp);
-exit;
-?&gt;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestssecurityresourcescrossorigincachedresourceiframehtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/security/resources/cross-origin-cached-resource-iframe.html (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/resources/cross-origin-cached-resource-iframe.html        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/security/resources/cross-origin-cached-resource-iframe.html        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,27 +0,0 @@
</span><del>-&lt;html&gt;
-&lt;body&gt;
-
-&lt;img id=&quot;img&quot; onload=&quot;logStatus(true)&quot; onerror=&quot;logStatus(false)&quot;/&gt;
-&lt;script&gt;
-var test = JSON.parse(decodeURIComponent(location.hash.substring(1)));
-
-function logStatus(status)
-{
-    var msg = &quot;Test &quot; + test.id;
-    msg += test.shouldPass == status ? &quot; PASS: &quot; : &quot; FAIL: &quot;;
-
-    msg += status ? &quot;Loaded&quot; : &quot;Did not load&quot;;
-    msg += &quot; image &quot; + img.src + &quot; from &quot; + location.host;
-    if (test.crossOrigin)
-        msg += &quot; (crossOrigin=&quot; + test.crossOrigin + &quot;)&quot;;
-
-    parent.postMessage(msg, &quot;*&quot;);
-}
-
-var image = document.getElementById('img');
-if (test.crossOrigin !== undefined)
-    image.crossOrigin = test.crossOrigin;
-image.src = test.url;
-&lt;/script&gt;
-&lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestssecurityresourcesrgbalphapng"></a>
<div class="binary"><h4>Deleted: trunk/LayoutTests/http/tests/security/resources/rgbalpha.png</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<a id="trunkLayoutTestshttptestssecurityshapeoutsideandcachedresourcesexpectedhtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/security/shape-outside-and-cached-resources-expected.html (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/shape-outside-and-cached-resources-expected.html        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/security/shape-outside-and-cached-resources-expected.html        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,21 +0,0 @@
</span><del>-&lt;!DOCTYPE html&gt;
-&lt;html&gt;
-&lt;head&gt;
-    &lt;title&gt;Testing loading a CSS shape outside with resource cache&lt;/title&gt;
-    &lt;style&gt;&lt;/style&gt;
-&lt;/head&gt;
-&lt;body&gt;
-&lt;script&gt;
-function add_style() {
-    var sheet = window.document.styleSheets[0];
-    sheet.insertRule(&quot;#image-with-shape {-webkit-shape-outside: url('/security/resources/allow-if-origin.php?name=rgbalpha.png');-webkit-shape-image-threshold: 0.4;float: left;}&quot;, sheet.cssRules.length);
-}
-&lt;/script&gt;
-Test is passing if the two following text lines are not vertically aligned, the second one being closer to the red region of the image.
-&lt;p style=&quot;width: 300px&quot;&gt;
-    &lt;img id=&quot;image-with-shape&quot; onload=&quot;add_style()&quot; src='http://localhost:8000/security/resources/allow-if-origin.php?name=rgbalpha.png'&gt;&lt;/img&gt;
-    This is a test!&lt;br&gt;
-    This is a real test!&lt;br&gt;
-&lt;/p&gt;
-&lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestssecurityshapeoutsideandcachedresourceshtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/security/shape-outside-and-cached-resources.html (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/shape-outside-and-cached-resources.html        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/security/shape-outside-and-cached-resources.html        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,21 +0,0 @@
</span><del>-&lt;!DOCTYPE html&gt;
-&lt;html&gt;
-&lt;head&gt;
-    &lt;title&gt;Testing loading a CSS shape outside with resource cache&lt;/title&gt;
-    &lt;style&gt;&lt;/style&gt;
-&lt;/head&gt;
-&lt;body&gt;
-&lt;script&gt;
-function add_style() {
-    var sheet = window.document.styleSheets[0];
-    sheet.insertRule(&quot;#image-with-shape {-webkit-shape-outside: url('http://localhost:8000/security/resources/allow-if-origin.php?name=rgbalpha.png&amp;addVary');-webkit-shape-image-threshold: 0.4;float: left;}&quot;, sheet.cssRules.length);
-}
-&lt;/script&gt;
-Test is passing if the two following text lines are not vertically aligned, the second one being closer to the red region of the image.
-&lt;p style=&quot;width: 300px&quot;&gt;
-    &lt;img id=&quot;image-with-shape&quot; onload=&quot;add_style()&quot; src='http://localhost:8000/security/resources/allow-if-origin.php?name=rgbalpha.png&amp;addVary'&gt;&lt;/img&gt;
-    This is a test!&lt;br&gt;
-    This is a real test!&lt;br&gt;
-&lt;/p&gt;
-&lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestssecurityvideopostercrossorigincrashexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/security/video-poster-cross-origin-crash-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/video-poster-cross-origin-crash-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/security/video-poster-cross-origin-crash-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,3 +1,2 @@
</span><del>-CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
</del><span class="cx"> CONSOLE MESSAGE: Cross-origin image load denied by Cross-Origin Resource Sharing policy.
</span><span class="cx"> &gt;&gt;&gt;
</span></span></pre></div>
<a id="trunkLayoutTestshttptestssecurityvideopostercrossorigincrash2expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/security/video-poster-cross-origin-crash2-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/video-poster-cross-origin-crash2-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/security/video-poster-cross-origin-crash2-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,4 +1,3 @@
</span><del>-CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
</del><span class="cx"> CONSOLE MESSAGE: Cross-origin image load denied by Cross-Origin Resource Sharing policy.
</span><span class="cx"> Test passes if it doesn't crash.
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestaccesscontrolandredirectsasyncsameoriginexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/access-control-and-redirects-async-same-origin-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/access-control-and-redirects-async-same-origin-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/access-control-and-redirects-async-same-origin-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,7 +1,5 @@
</span><del>-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
-CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-allow-star.cgi due to access control checks.
-CONSOLE MESSAGE: Credentials flag is true, but Access-Control-Allow-Credentials is not &quot;true&quot;.
-CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-allow-no-credentials.cgi due to access control checks.
</del><ins>+CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-allow-star.cgi. Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
+CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-allow-no-credentials.cgi. Credentials flag is true, but Access-Control-Allow-Credentials is not &quot;true&quot;.
</ins><span class="cx"> Tests that asynchronous XMLHttpRequests handle redirects according to the CORS standard.
</span><span class="cx"> 
</span><span class="cx"> Testing ../resources/redirect.php?url=http://localhost:8000/xmlhttprequest/resources/access-control-basic-allow-star.cgi without credentials
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestaccesscontrolrepeatedfailedpreflightcrashexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/access-control-repeated-failed-preflight-crash-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/access-control-repeated-failed-preflight-crash-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/access-control-repeated-failed-preflight-crash-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,13 +1,7 @@
</span><del>-CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-denied.cgi due to access control checks.
-CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-denied.cgi due to access control checks.
-CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-denied.cgi due to access control checks.
-CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-denied.cgi due to access control checks.
-CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-denied.cgi due to access control checks.
-CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-denied.cgi due to access control checks.
</del><ins>+CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-denied.cgi. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
+CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-denied.cgi. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
+CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-denied.cgi. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
+CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-denied.cgi. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
+CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-denied.cgi. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
+CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-denied.cgi. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
</ins><span class="cx"> PASS
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestcrossoriginnoauthorizationexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/cross-origin-no-authorization-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/cross-origin-no-authorization-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/cross-origin-no-authorization-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,6 +1,5 @@
</span><span class="cx"> CONSOLE MESSAGE: line 56: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/cross-origin-no-authorization.php. Credentials flag is true, but Access-Control-Allow-Credentials is not &quot;true&quot;.
</span><del>-CONSOLE MESSAGE: Credentials flag is true, but Access-Control-Allow-Credentials is not &quot;true&quot;.
-CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/cross-origin-no-authorization.php due to access control checks.
</del><ins>+CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/cross-origin-no-authorization.php. Credentials flag is true, but Access-Control-Allow-Credentials is not &quot;true&quot;.
</ins><span class="cx"> Start
</span><span class="cx"> Trying different ways to access a password protected resource from another origin. The UA already has login and password for this protection space.
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestcrossoriginnocredentialpromptexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/cross-origin-no-credential-prompt-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/cross-origin-no-credential-prompt-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/cross-origin-no-credential-prompt-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,3 +1,2 @@
</span><del>-CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/basic-auth/basic-auth.php?uid=41531 due to access control checks.
</del><ins>+CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/basic-auth/basic-auth.php?uid=41531. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
</ins><span class="cx"> There should be no authentication prompt displayed, since this is a cross-origin request. In automatic mode, the test relies on logging of authentication sheets.
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestcrosssitedeniedresponseexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/cross-site-denied-response-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/cross-site-denied-response-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/cross-site-denied-response-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,4 +1,3 @@
</span><del>-CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/reply.xml due to access control checks.
</del><ins>+CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/reply.xml. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
</ins><span class="cx"> PASS
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestonerroreventexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/onerror-event-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/onerror-event-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/onerror-event-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,5 +1,4 @@
</span><del>-CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-denied.cgi due to access control checks.
</del><ins>+CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-denied.cgi. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
</ins><span class="cx"> This test that the error event is fired for XMLHttpRequests
</span><span class="cx"> 
</span><span class="cx"> PASS: error event fired.
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestoriginwhitelistinghttpsexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/origin-whitelisting-https-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/origin-whitelisting-https-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/origin-whitelisting-https-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,6 +1,5 @@
</span><span class="cx"> CONSOLE MESSAGE: line 20: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/get.txt. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
</span><del>-CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/get.txt due to access control checks.
</del><ins>+CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/get.txt. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
</ins><span class="cx"> Tests that origin whitelisting for https does not match http URLs.
</span><span class="cx"> 
</span><span class="cx"> Testing: http://localhost:8000/xmlhttprequest/resources/get.txt (sync)
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestoriginwhitelistingipaddresseswithsubdomainsexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/origin-whitelisting-ip-addresses-with-subdomains-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/origin-whitelisting-ip-addresses-with-subdomains-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/origin-whitelisting-ip-addresses-with-subdomains-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,6 +1,5 @@
</span><span class="cx"> CONSOLE MESSAGE: line 16: XMLHttpRequest cannot load http://127.0.0.1:8000/xmlhttprequest/resources/get.txt. Origin http://localhost:8000 is not allowed by Access-Control-Allow-Origin.
</span><del>-CONSOLE MESSAGE: Origin http://localhost:8000 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: XMLHttpRequest cannot load http://127.0.0.1:8000/xmlhttprequest/resources/get.txt due to access control checks.
</del><ins>+CONSOLE MESSAGE: XMLHttpRequest cannot load http://127.0.0.1:8000/xmlhttprequest/resources/get.txt. Origin http://localhost:8000 is not allowed by Access-Control-Allow-Origin.
</ins><span class="cx"> Specifying that an IP address should match subdomains doesn't make sense. This test verifies that it doesn't do anything.
</span><span class="cx"> 
</span><span class="cx"> Testing: http://127.0.0.1:8000/xmlhttprequest/resources/get.txt (sync)
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestpostblobcontenttypeasyncexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/post-blob-content-type-async-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/post-blob-content-type-async-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/post-blob-content-type-async-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,5 +1,4 @@
</span><del>-CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-allow-lists.php due to access control checks.
</del><ins>+CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-allow-lists.php. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
</ins><span class="cx"> Test verifies that content MIME type is set correctly when Blob is sent using XMLHttpRequest asynchronously.
</span><span class="cx"> 
</span><span class="cx"> On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestredirectcrossorigin2expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/redirect-cross-origin-2-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/redirect-cross-origin-2-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/redirect-cross-origin-2-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,5 +1,4 @@
</span><del>-CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/reply.xml due to access control checks.
</del><ins>+CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/reply.xml. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
</ins><span class="cx"> Test that a cross-origin redirect to a server that responds is indistinguishable from one that does not. Should say PASS:
</span><span class="cx"> 
</span><span class="cx"> PASS
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestredirectcrossoriginexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/redirect-cross-origin-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/redirect-cross-origin-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/redirect-cross-origin-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,5 +1,4 @@
</span><del>-CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/reply.xml due to access control checks.
</del><ins>+CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/reply.xml. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
</ins><span class="cx"> Test that a cross-origin redirect to a server that responds is indistinguishable from one that does not. Should say PASS:
</span><span class="cx"> 
</span><span class="cx"> PASS
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestsimplecrossorigindeniedeventsexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/simple-cross-origin-denied-events-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/simple-cross-origin-denied-events-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/simple-cross-origin-denied-events-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,5 +1,4 @@
</span><del>-CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/reply.xml due to access control checks.
</del><ins>+CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/reply.xml. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
</ins><span class="cx"> Test that a simple cross-origin request to a server that responds (but does not permit cross-origin requests) is indistinguishable from one that does not exist. Should say PASS:
</span><span class="cx"> 
</span><span class="cx"> PASS
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestsimplecrossoriginprogresseventsexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/simple-cross-origin-progress-events-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/simple-cross-origin-progress-events-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/simple-cross-origin-progress-events-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,6 +1,5 @@
</span><del>-CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/cross-site-progress-events.cgi due to access control checks.
</del><span class="cx"> CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/cross-site-progress-events.cgi. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
</span><ins>+CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/cross-site-progress-events.cgi. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
</ins><span class="cx"> Test that upload progress events are not dispatched for simple cross-origin requests (i.e. if the listener is set after calling send(), and there are no other reasons to make a preflight request).
</span><span class="cx"> 
</span><span class="cx"> Test 1: The URL is allowed for cross-origin requests
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestxmlhttprequestunsaferedirectexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-unsafe-redirect-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-unsafe-redirect-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-unsafe-redirect-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,5 +1,4 @@
</span><del>-CONSOLE MESSAGE: Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8080/xmlhttprequest/resources/forbidden.txt due to access control checks.
</del><ins>+CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8080/xmlhttprequest/resources/forbidden.txt. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
</ins><span class="cx"> This tests that unsafe redirects won't be allowed when making an XMLHttpRequest.
</span><span class="cx"> Sync XHR started.
</span><span class="cx"> readyState change 1
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/ChangeLog (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/ChangeLog        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/imported/w3c/ChangeLog        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,3 +1,18 @@
</span><ins>+2016-09-05  Commit Queue  &lt;commit-queue@webkit.org&gt;
+
+        Unreviewed, rolling out r205450.
+        https://bugs.webkit.org/show_bug.cgi?id=161614
+
+        Made tests flaky, causing false positives on EWS (Requested by
+        ap on #webkit).
+
+        Reverted changeset:
+
+        &quot;CachedResourceLoader is not taking into account fetch options
+        to use or not cached resources&quot;
+        https://bugs.webkit.org/show_bug.cgi?id=161389
+        http://trac.webkit.org/changeset/205450
+
</ins><span class="cx"> 2016-09-05  Youenn Fablet  &lt;youenn@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         CachedResourceLoader is not taking into account fetch options to use or not cached resources
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsecurityconsiderationsubexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/security-consideration.sub-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/security-consideration.sub-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/security-consideration.sub-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,5 +1,4 @@
</span><del>-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8801/XMLHttpRequest/resources/img.jpg due to access control checks.
</del><ins>+CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8801/XMLHttpRequest/resources/img.jpg. Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
</ins><span class="cx"> 
</span><span class="cx"> FAIL ProgressEvent: security consideration assert_unreached: MUST NOT dispatch progress event. Reached unreachable code
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsfetchapicorscorsbasicexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,8 +1,3 @@
</span><del>-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
</del><span class="cx"> 
</span><span class="cx"> PASS Same domain different port [no-cors mode] 
</span><span class="cx"> PASS Same domain different port [server forbid CORS] 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsfetchapicorscorsbasicworkerexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,8 +1,3 @@
</span><del>-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
</del><span class="cx"> 
</span><span class="cx"> PASS Same domain different port [no-cors mode] 
</span><span class="cx"> PASS Same domain different port [server forbid CORS] 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsfetchapicorscorsmultipleoriginsexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-multiple-origins-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-multiple-origins-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-multiple-origins-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,4 +1,3 @@
</span><del>-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
</del><span class="cx"> 
</span><span class="cx"> PASS 3 origins allowed, match the 3rd (http://localhost:8800) 
</span><span class="cx"> PASS 3 origins allowed, match the 3rd (&quot;*&quot;) 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsfetchapicorscorsmultipleoriginsworkerexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-multiple-origins-worker-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-multiple-origins-worker-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-multiple-origins-worker-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,4 +1,3 @@
</span><del>-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
</del><span class="cx"> 
</span><span class="cx"> PASS 3 origins allowed, match the 3rd (http://localhost:8800) 
</span><span class="cx"> PASS 3 origins allowed, match the 3rd (&quot;*&quot;) 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsfetchapicorscorsoriginexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-origin-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-origin-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-origin-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,11 +1,3 @@
</span><del>-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
</del><span class="cx"> 
</span><span class="cx"> PASS Cross domain different subdomain [origin OK] 
</span><span class="cx"> PASS Cross domain different subdomain [origin KO] 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsfetchapicorscorsoriginworkerexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-origin-worker-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-origin-worker-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-origin-worker-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,11 +1,3 @@
</span><del>-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
</del><span class="cx"> 
</span><span class="cx"> PASS Cross domain different subdomain [origin OK] 
</span><span class="cx"> PASS Cross domain different subdomain [origin KO] 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsfetchapicorscorsoriginjs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-origin.js (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-origin.js        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-origin.js        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -16,7 +16,7 @@
</span><span class="cx">   var requestInit = {&quot;mode&quot;: &quot;cors&quot;, &quot;method&quot;: method};
</span><span class="cx"> 
</span><span class="cx">   promise_test(function(test) {
</span><del>-    return fetch(RESOURCES_DIR + &quot;clean-stash.py?token=&quot; + uuid_token).then(function(resp) {
</del><ins>+    fetch(RESOURCES_DIR + &quot;clean-stash.py?token=&quot; + uuid_token).then(function(resp) {
</ins><span class="cx">       assert_equals(resp.status, 200, &quot;Clean stash response's status is 200&quot;);
</span><span class="cx">       if (shouldPass) {
</span><span class="cx">         return fetch(url + urlParameters, requestInit).then(function(resp) {
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsfetchapicorscorsredirectcredentialsexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-redirect-credentials-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-redirect-credentials-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-redirect-credentials-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,6 +1,3 @@
</span><del>-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</del><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=301&amp;location=http%3A%2F%2Fuser%3Apassword%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=301&amp;location=http%3A%2F%2Fuser%3A%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=301&amp;location=http%3A%2F%2F%3Apassword%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="lines">@@ -10,9 +7,6 @@
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=301&amp;location=http%3A%2F%2Fuser%3Apassword%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=301&amp;location=http%3A%2F%2Fuser%3A%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=301&amp;location=http%3A%2F%2F%3Apassword%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><del>-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</del><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=302&amp;location=http%3A%2F%2Fuser%3Apassword%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=302&amp;location=http%3A%2F%2Fuser%3A%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=302&amp;location=http%3A%2F%2F%3Apassword%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="lines">@@ -22,9 +16,6 @@
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=302&amp;location=http%3A%2F%2Fuser%3Apassword%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=302&amp;location=http%3A%2F%2Fuser%3A%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=302&amp;location=http%3A%2F%2F%3Apassword%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><del>-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</del><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=303&amp;location=http%3A%2F%2Fuser%3Apassword%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=303&amp;location=http%3A%2F%2Fuser%3A%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=303&amp;location=http%3A%2F%2F%3Apassword%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="lines">@@ -34,9 +25,6 @@
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=303&amp;location=http%3A%2F%2Fuser%3Apassword%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=303&amp;location=http%3A%2F%2Fuser%3A%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=303&amp;location=http%3A%2F%2F%3Apassword%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><del>-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</del><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=307&amp;location=http%3A%2F%2Fuser%3Apassword%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=307&amp;location=http%3A%2F%2Fuser%3A%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=307&amp;location=http%3A%2F%2F%3Apassword%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="lines">@@ -46,9 +34,6 @@
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=307&amp;location=http%3A%2F%2Fuser%3Apassword%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=307&amp;location=http%3A%2F%2Fuser%3A%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=307&amp;location=http%3A%2F%2F%3Apassword%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><del>-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</del><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=308&amp;location=http%3A%2F%2Fuser%3Apassword%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=308&amp;location=http%3A%2F%2Fuser%3A%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=308&amp;location=http%3A%2F%2F%3Apassword%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsfetchapicorscorsredirectcredentialsworkerexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-redirect-credentials-worker-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-redirect-credentials-worker-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/cors/cors-redirect-credentials-worker-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,6 +1,3 @@
</span><del>-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</del><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=301&amp;location=http%3A%2F%2Fuser%3Apassword%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=301&amp;location=http%3A%2F%2Fuser%3A%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=301&amp;location=http%3A%2F%2F%3Apassword%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="lines">@@ -10,9 +7,6 @@
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=301&amp;location=http%3A%2F%2Fuser%3Apassword%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=301&amp;location=http%3A%2F%2Fuser%3A%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=301&amp;location=http%3A%2F%2F%3Apassword%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><del>-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</del><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=302&amp;location=http%3A%2F%2Fuser%3Apassword%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=302&amp;location=http%3A%2F%2Fuser%3A%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=302&amp;location=http%3A%2F%2F%3Apassword%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="lines">@@ -22,9 +16,6 @@
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=302&amp;location=http%3A%2F%2Fuser%3Apassword%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=302&amp;location=http%3A%2F%2Fuser%3A%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=302&amp;location=http%3A%2F%2F%3Apassword%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><del>-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</del><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=303&amp;location=http%3A%2F%2Fuser%3Apassword%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=303&amp;location=http%3A%2F%2Fuser%3A%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=303&amp;location=http%3A%2F%2F%3Apassword%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="lines">@@ -34,9 +25,6 @@
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=303&amp;location=http%3A%2F%2Fuser%3Apassword%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=303&amp;location=http%3A%2F%2Fuser%3A%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=303&amp;location=http%3A%2F%2F%3Apassword%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><del>-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</del><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=307&amp;location=http%3A%2F%2Fuser%3Apassword%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=307&amp;location=http%3A%2F%2Fuser%3A%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=307&amp;location=http%3A%2F%2F%3Apassword%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="lines">@@ -46,9 +34,6 @@
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=307&amp;location=http%3A%2F%2Fuser%3Apassword%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=307&amp;location=http%3A%2F%2Fuser%3A%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/fetch/api/resources/preflight.py?redirect_status=307&amp;location=http%3A%2F%2F%3Apassword%40127.0.0.1%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><del>-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
-CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</del><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=308&amp;location=http%3A%2F%2Fuser%3Apassword%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=308&amp;location=http%3A%2F%2Fuser%3A%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span><span class="cx"> CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/api/resources/preflight.py?redirect_status=308&amp;location=http%3A%2F%2F%3Apassword%40localhost%3A8800%2Ffetch%2Fapi%2Fcors%2F..%2Fresources%2Fpreflight.py&amp;count=1 denied by Cross-Origin Resource Sharing policy: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
</span></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorwk2importedw3cwebplatformtestsfetchapicorscorsbasicexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,6 +1,3 @@
</span><del>-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
</del><span class="cx"> 
</span><span class="cx"> PASS Same domain different port [no-cors mode] 
</span><span class="cx"> PASS Same domain different port [server forbid CORS] 
</span></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorwk2importedw3cwebplatformtestsfetchapicorscorsbasicworkerexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,6 +1,3 @@
</span><del>-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
</del><span class="cx"> 
</span><span class="cx"> PASS Same domain different port [no-cors mode] 
</span><span class="cx"> PASS Same domain different port [server forbid CORS] 
</span></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorwk2importedw3cwebplatformtestsfetchapicorscorsoriginexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-origin-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-origin-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-origin-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,25 +0,0 @@
</span><del>-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-
-PASS Cross domain different subdomain [origin OK] 
-PASS Cross domain different subdomain [origin KO] 
-PASS Same domain different port [origin OK] 
-PASS Same domain different port [origin KO] 
-PASS Cross domain different port [origin OK] 
-PASS Cross domain different port [origin KO] 
-FAIL Cross domain different protocol [origin OK] promise_test: Unhandled rejection with value: object &quot;TypeError: Type error&quot;
-PASS Cross domain different protocol [origin KO] 
-FAIL Same domain different protocol different port [origin OK] promise_test: Unhandled rejection with value: object &quot;TypeError: Type error&quot;
-PASS Same domain different protocol different port [origin KO] 
-PASS Cross domain [POST] [origin OK] 
-PASS Cross domain [POST] [origin KO] 
-PASS Cross domain [HEAD] [origin OK] 
-PASS Cross domain [HEAD] [origin KO] 
-PASS CORS preflight [PUT] [origin OK] 
-PASS CORS preflight [PUT] [origin KO] 
-PASS Allowed origin: &quot;&quot; [origin KO] 
-
</del></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorwk2importedw3cwebplatformtestsfetchapicorscorsoriginworkerexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-origin-worker-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-origin-worker-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/platform/ios-simulator-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-origin-worker-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,25 +0,0 @@
</span><del>-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-
-PASS Cross domain different subdomain [origin OK] 
-PASS Cross domain different subdomain [origin KO] 
-PASS Same domain different port [origin OK] 
-PASS Same domain different port [origin KO] 
-PASS Cross domain different port [origin OK] 
-PASS Cross domain different port [origin KO] 
-FAIL Cross domain different protocol [origin OK] promise_test: Unhandled rejection with value: object &quot;TypeError: Type error&quot;
-PASS Cross domain different protocol [origin KO] 
-FAIL Same domain different protocol different port [origin OK] promise_test: Unhandled rejection with value: object &quot;TypeError: Type error&quot;
-PASS Same domain different protocol different port [origin KO] 
-PASS Cross domain [POST] [origin OK] 
-PASS Cross domain [POST] [origin KO] 
-PASS Cross domain [HEAD] [origin OK] 
-PASS Cross domain [HEAD] [origin KO] 
-PASS CORS preflight [PUT] [origin OK] 
-PASS CORS preflight [PUT] [origin KO] 
-PASS Allowed origin: &quot;&quot; [origin KO] 
-
</del></span></pre></div>
<a id="trunkLayoutTestsplatformmacwk2importedw3cwebplatformtestsfetchapicorscorsbasicexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,6 +1,3 @@
</span><del>-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
</del><span class="cx"> 
</span><span class="cx"> PASS Same domain different port [no-cors mode] 
</span><span class="cx"> PASS Same domain different port [server forbid CORS] 
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacwk2importedw3cwebplatformtestsfetchapicorscorsbasicworkerexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-basic-worker-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,6 +1,3 @@
</span><del>-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
</del><span class="cx"> 
</span><span class="cx"> PASS Same domain different port [no-cors mode] 
</span><span class="cx"> PASS Same domain different port [server forbid CORS] 
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacwk2importedw3cwebplatformtestsfetchapicorscorsoriginexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-origin-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-origin-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-origin-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,25 +0,0 @@
</span><del>-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-
-PASS Cross domain different subdomain [origin OK] 
-PASS Cross domain different subdomain [origin KO] 
-PASS Same domain different port [origin OK] 
-PASS Same domain different port [origin KO] 
-PASS Cross domain different port [origin OK] 
-PASS Cross domain different port [origin KO] 
-FAIL Cross domain different protocol [origin OK] promise_test: Unhandled rejection with value: object &quot;TypeError: Type error&quot;
-PASS Cross domain different protocol [origin KO] 
-FAIL Same domain different protocol different port [origin OK] promise_test: Unhandled rejection with value: object &quot;TypeError: Type error&quot;
-PASS Same domain different protocol different port [origin KO] 
-PASS Cross domain [POST] [origin OK] 
-PASS Cross domain [POST] [origin KO] 
-PASS Cross domain [HEAD] [origin OK] 
-PASS Cross domain [HEAD] [origin KO] 
-PASS CORS preflight [PUT] [origin OK] 
-PASS CORS preflight [PUT] [origin KO] 
-PASS Allowed origin: &quot;&quot; [origin KO] 
-
</del></span></pre></div>
<a id="trunkLayoutTestsplatformmacwk2importedw3cwebplatformtestsfetchapicorscorsoriginworkerexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-origin-worker-expected.txt (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-origin-worker-expected.txt        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/fetch/api/cors/cors-origin-worker-expected.txt        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,25 +0,0 @@
</span><del>-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
-
-PASS Cross domain different subdomain [origin OK] 
-PASS Cross domain different subdomain [origin KO] 
-PASS Same domain different port [origin OK] 
-PASS Same domain different port [origin KO] 
-PASS Cross domain different port [origin OK] 
-PASS Cross domain different port [origin KO] 
-FAIL Cross domain different protocol [origin OK] promise_test: Unhandled rejection with value: object &quot;TypeError: Type error&quot;
-PASS Cross domain different protocol [origin KO] 
-FAIL Same domain different protocol different port [origin OK] promise_test: Unhandled rejection with value: object &quot;TypeError: Type error&quot;
-PASS Same domain different protocol different port [origin KO] 
-PASS Cross domain [POST] [origin OK] 
-PASS Cross domain [POST] [origin KO] 
-PASS Cross domain [HEAD] [origin OK] 
-PASS Cross domain [HEAD] [origin KO] 
-PASS CORS preflight [PUT] [origin OK] 
-PASS CORS preflight [PUT] [origin KO] 
-PASS Allowed origin: &quot;&quot; [origin KO] 
-
</del></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/Source/WebCore/ChangeLog        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -1,3 +1,18 @@
</span><ins>+2016-09-05  Commit Queue  &lt;commit-queue@webkit.org&gt;
+
+        Unreviewed, rolling out r205450.
+        https://bugs.webkit.org/show_bug.cgi?id=161614
+
+        Made tests flaky, causing false positives on EWS (Requested by
+        ap on #webkit).
+
+        Reverted changeset:
+
+        &quot;CachedResourceLoader is not taking into account fetch options
+        to use or not cached resources&quot;
+        https://bugs.webkit.org/show_bug.cgi?id=161389
+        http://trac.webkit.org/changeset/205450
+
</ins><span class="cx"> 2016-08-31  Filip Pizlo  &lt;fpizlo@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Butterflies should be allocated in Auxiliary MarkedSpace instead of CopiedSpace and we should rewrite as much of the GC as needed to make this not a regression
</span></span></pre></div>
<a id="trunkSourceWebCoreloaderCrossOriginPreflightCheckercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/CrossOriginPreflightChecker.cpp (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/CrossOriginPreflightChecker.cpp        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/Source/WebCore/loader/CrossOriginPreflightChecker.cpp        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -100,8 +100,8 @@
</span><span class="cx"> 
</span><span class="cx"> void CrossOriginPreflightChecker::startPreflight()
</span><span class="cx"> {
</span><del>-    ResourceLoaderOptions options;
-    options.referrerPolicy = m_loader.options().referrerPolicy;
</del><ins>+    ResourceLoaderOptions options = static_cast&lt;FetchOptions&gt;(m_loader.options());
+    options.credentials = FetchOptions::Credentials::Omit;
</ins><span class="cx">     options.redirect = FetchOptions::Redirect::Manual;
</span><span class="cx"> 
</span><span class="cx">     CachedResourceRequest preflightRequest(createAccessControlPreflightRequest(m_request, m_loader.securityOrigin()), options);
</span></span></pre></div>
<a id="trunkSourceWebCoreloaderDocumentThreadableLoadercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/DocumentThreadableLoader.cpp (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/DocumentThreadableLoader.cpp        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/Source/WebCore/loader/DocumentThreadableLoader.cpp        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -276,6 +276,14 @@
</span><span class="cx"> {
</span><span class="cx">     ASSERT(m_client);
</span><span class="cx"> 
</span><ins>+    String accessControlErrorDescription;
+    if (!m_sameOriginRequest &amp;&amp; m_options.mode == FetchOptions::Mode::Cors) {
+        if (!passesAccessControlCheck(response, m_options.allowCredentials, securityOrigin(), accessControlErrorDescription)) {
+            m_client-&gt;didFail(ResourceError(errorDomainWebKitInternal, 0, response.url(), accessControlErrorDescription, ResourceError::Type::AccessControl));
+            return;
+        }
+    }
+
</ins><span class="cx">     ASSERT(response.type() != ResourceResponse::Type::Error);
</span><span class="cx">     if (response.type() == ResourceResponse::Type::Default) {
</span><span class="cx">         m_client-&gt;didReceiveResponse(identifier, ResourceResponse::filterResponse(response, tainting));
</span><span class="lines">@@ -422,19 +430,8 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     ResourceResponse::Tainting tainting = ResourceResponse::Tainting::Basic;
</span><del>-    if (!m_sameOriginRequest) {
-        if (m_options.mode == FetchOptions::Mode::NoCors)
-            tainting = ResourceResponse::Tainting::Opaque;
-        else {
-            ASSERT(m_options.mode == FetchOptions::Mode::Cors);
-            tainting = ResourceResponse::Tainting::Cors;
-            String accessControlErrorDescription;
-            if (!passesAccessControlCheck(response, m_options.allowCredentials, securityOrigin(), accessControlErrorDescription)) {
-                m_client-&gt;didFail(ResourceError(errorDomainWebKitInternal, 0, response.url(), accessControlErrorDescription, ResourceError::Type::AccessControl));
-                return;
-            }
-        }
-    }
</del><ins>+    if (!m_sameOriginRequest)
+        tainting = m_options.mode == FetchOptions::Mode::Cors ? ResourceResponse::Tainting::Cors : ResourceResponse::Tainting::Opaque;
</ins><span class="cx">     didReceiveResponse(identifier, response, tainting);
</span><span class="cx"> 
</span><span class="cx">     if (data)
</span></span></pre></div>
<a id="trunkSourceWebCoreloaderImageLoadercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/ImageLoader.cpp (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/ImageLoader.cpp        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/Source/WebCore/loader/ImageLoader.cpp        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -210,7 +210,7 @@
</span><span class="cx">         m_hasPendingErrorEvent = true;
</span><span class="cx">         errorEventSender().dispatchEventSoon(*this);
</span><span class="cx">     }
</span><del>-
</del><ins>+    
</ins><span class="cx">     CachedImage* oldImage = m_image.get();
</span><span class="cx">     if (newImage != oldImage) {
</span><span class="cx">         if (m_hasPendingBeforeLoadEvent) {
</span><span class="lines">@@ -282,7 +282,7 @@
</span><span class="cx">     if (!m_hasPendingLoadEvent)
</span><span class="cx">         return;
</span><span class="cx"> 
</span><del>-    if (resource-&gt;resourceError().isAccessControl()) {
</del><ins>+    if (element().hasAttributeWithoutSynchronization(HTMLNames::crossoriginAttr) &amp;&amp; !resource-&gt;passesSameOriginPolicyCheck(*element().document().securityOrigin())) {
</ins><span class="cx">         clearImageWithoutConsideringPendingLoadEvent();
</span><span class="cx"> 
</span><span class="cx">         m_hasPendingErrorEvent = true;
</span></span></pre></div>
<a id="trunkSourceWebCoreloaderSubresourceLoadercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/SubresourceLoader.cpp (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/SubresourceLoader.cpp        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/Source/WebCore/loader/SubresourceLoader.cpp        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -277,14 +277,6 @@
</span><span class="cx">             m_frame-&gt;page()-&gt;diagnosticLoggingClient().logDiagnosticMessageWithResult(DiagnosticLoggingKeys::cachedResourceRevalidationKey(), emptyString(), DiagnosticLoggingResultFail, ShouldSample::Yes);
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    String errorDescription;
-    if (!checkResponseCrossOriginAccessControl(response, errorDescription)) {
-        if (m_frame &amp;&amp; m_frame-&gt;document())
-            m_frame-&gt;document()-&gt;addConsoleMessage(MessageSource::Security, MessageLevel::Error, errorDescription);
-        cancel(ResourceError(String(), 0, request().url(), errorDescription, ResourceError::Type::AccessControl));
-        return;
-    }
-
</del><span class="cx">     m_resource-&gt;responseReceived(response);
</span><span class="cx">     if (reachedTerminalState())
</span><span class="cx">         return;
</span><span class="lines">@@ -411,15 +403,6 @@
</span><span class="cx">     frame-&gt;page()-&gt;diagnosticLoggingClient().logDiagnosticMessageWithValue(DiagnosticLoggingKeys::resourceKey(), DiagnosticLoggingKeys::loadedKey(), resourceType, ShouldSample::Yes);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-bool SubresourceLoader::checkResponseCrossOriginAccessControl(const ResourceResponse&amp; response, String&amp; errorDescription)
-{
-    if (!m_resource-&gt;isCrossOrigin() || options().mode != FetchOptions::Mode::Cors)
-        return true;
-
-    ASSERT(m_origin);
-    return passesAccessControlCheck(response, options().allowCredentials, *m_origin, errorDescription);
-}
-
</del><span class="cx"> bool SubresourceLoader::checkRedirectionCrossOriginAccessControl(const ResourceRequest&amp; previousRequest, const ResourceResponse&amp; redirectResponse, ResourceRequest&amp; newRequest, String&amp; errorMessage)
</span><span class="cx"> {
</span><span class="cx">     bool crossOriginFlag = m_resource-&gt;isCrossOrigin();
</span></span></pre></div>
<a id="trunkSourceWebCoreloaderSubresourceLoaderh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/SubresourceLoader.h (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/SubresourceLoader.h        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/Source/WebCore/loader/SubresourceLoader.h        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -92,7 +92,6 @@
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx">     bool checkForHTTPStatusCodeError();
</span><del>-    bool checkResponseCrossOriginAccessControl(const ResourceResponse&amp;, String&amp;);
</del><span class="cx">     bool checkRedirectionCrossOriginAccessControl(const ResourceRequest&amp; previousRequest, const ResourceResponse&amp;, ResourceRequest&amp; newRequest, String&amp;);
</span><span class="cx"> 
</span><span class="cx">     void didReceiveDataOrBuffer(const char*, int, RefPtr&lt;SharedBuffer&gt;&amp;&amp;, long long encodedDataLength, DataPayloadType);
</span></span></pre></div>
<a id="trunkSourceWebCoreloadercacheCachedImagecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/cache/CachedImage.cpp (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/cache/CachedImage.cpp        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/Source/WebCore/loader/cache/CachedImage.cpp        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -114,18 +114,6 @@
</span><span class="cx">         setLoading(false);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void CachedImage::setBodyDataFrom(const CachedResource&amp; resource)
-{
-    ASSERT(resource.type() == type());
-    const CachedImage&amp; image = static_cast&lt;const CachedImage&amp;&gt;(resource);
-
-    setLoading(false);
-    m_image = image.m_image;
-
-    if (m_image &amp;&amp; is&lt;SVGImage&gt;(*m_image))
-        m_svgImageCache = std::make_unique&lt;SVGImageCache&gt;(&amp;downcast&lt;SVGImage&gt;(*m_image));
-}
-
</del><span class="cx"> void CachedImage::didAddClient(CachedResourceClient* client)
</span><span class="cx"> {
</span><span class="cx">     if (m_data &amp;&amp; !m_image &amp;&amp; !errorOccurred()) {
</span><span class="lines">@@ -132,7 +120,7 @@
</span><span class="cx">         createImage();
</span><span class="cx">         m_image-&gt;setData(m_data.copyRef(), true);
</span><span class="cx">     }
</span><del>-
</del><ins>+    
</ins><span class="cx">     ASSERT(client-&gt;resourceClientType() == CachedImageClient::expectedType());
</span><span class="cx">     if (m_image &amp;&amp; !m_image-&gt;isNull())
</span><span class="cx">         static_cast&lt;CachedImageClient*&gt;(client)-&gt;imageChanged(this);
</span></span></pre></div>
<a id="trunkSourceWebCoreloadercacheCachedImageh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/cache/CachedImage.h (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/cache/CachedImage.h        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/Source/WebCore/loader/cache/CachedImage.h        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -91,10 +91,6 @@
</span><span class="cx"> private:
</span><span class="cx">     void clear();
</span><span class="cx"> 
</span><del>-    CachedImage(CachedImage&amp;, const ResourceRequest&amp;, SessionID);
-
-    void setBodyDataFrom(const CachedResource&amp;) final;
-
</del><span class="cx">     void createImage();
</span><span class="cx">     void clearImage();
</span><span class="cx">     // If not null, changeRect is the changed part of the image.
</span></span></pre></div>
<a id="trunkSourceWebCoreloadercacheCachedResourcecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/cache/CachedResource.cpp (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/cache/CachedResource.cpp        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/Source/WebCore/loader/cache/CachedResource.cpp        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -236,29 +236,11 @@
</span><span class="cx">     frameLoader.addExtraFieldsToSubresourceRequest(request);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void CachedResource::addAdditionalRequestHeaders(CachedResourceLoader&amp; loader)
</del><ins>+void CachedResource::addAdditionalRequestHeaders(CachedResourceLoader&amp; cachedResourceLoader)
</ins><span class="cx"> {
</span><del>-    addAdditionalRequestHeadersToRequest(m_resourceRequest, loader, *this);
</del><ins>+    addAdditionalRequestHeadersToRequest(m_resourceRequest, cachedResourceLoader, *this);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-void CachedResource::computeOrigin(CachedResourceLoader&amp; loader)
-{
-    if (type() == MainResource)
-        return;
-
-    ASSERT(loader.document());
-    if (m_resourceRequest.hasHTTPOrigin())
-        m_origin = SecurityOrigin::createFromString(m_resourceRequest.httpOrigin());
-    else
-        m_origin = loader.document()-&gt;securityOrigin();
-    ASSERT(m_origin);
-
-    if (!(m_resourceRequest.url().protocolIsData() &amp;&amp; m_options.sameOriginDataURLFlag == SameOriginDataURLFlag::Set) &amp;&amp; !m_origin-&gt;canRequest(m_resourceRequest.url()))
-        setCrossOrigin();
-
-    addAdditionalRequestHeaders(loader);
-}
-
</del><span class="cx"> void CachedResource::load(CachedResourceLoader&amp; cachedResourceLoader, const ResourceLoaderOptions&amp; options)
</span><span class="cx"> {
</span><span class="cx">     if (!cachedResourceLoader.frame()) {
</span><span class="lines">@@ -318,8 +300,19 @@
</span><span class="cx"> #endif
</span><span class="cx">     m_resourceRequest.setPriority(loadPriority());
</span><span class="cx"> 
</span><del>-    computeOrigin(cachedResourceLoader);
</del><ins>+    if (type() != MainResource) {
+        if (m_resourceRequest.hasHTTPOrigin())
+            m_origin = SecurityOrigin::createFromString(m_resourceRequest.httpOrigin());
+        else
+            m_origin = cachedResourceLoader.document()-&gt;securityOrigin();
+        ASSERT(m_origin);
</ins><span class="cx"> 
</span><ins>+        if (!(m_resourceRequest.url().protocolIsData() &amp;&amp; options.sameOriginDataURLFlag == SameOriginDataURLFlag::Set)  &amp;&amp; m_origin &amp;&amp; !m_origin-&gt;canRequest(m_resourceRequest.url()))
+            setCrossOrigin();
+
+        addAdditionalRequestHeaders(cachedResourceLoader);
+    }
+
</ins><span class="cx">     // FIXME: It's unfortunate that the cache layer and below get to know anything about fragment identifiers.
</span><span class="cx">     // We should look into removing the expectation of that knowledge from the platform network stacks.
</span><span class="cx">     ResourceRequest request(m_resourceRequest);
</span><span class="lines">@@ -339,27 +332,6 @@
</span><span class="cx">     m_status = Pending;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void CachedResource::loadFrom(const CachedResource&amp; resource, const ResourceLoaderOptions&amp; options, CachedResourceLoader&amp; cachedResourceLoader)
-{
-    ASSERT(url() == resource.url());
-    ASSERT(type() == resource.type());
-    ASSERT(resource.status() == Status::Cached);
-
-    m_options = options;
-    computeOrigin(cachedResourceLoader);
-
-    if (isCrossOrigin() &amp;&amp; options.mode == FetchOptions::Mode::Cors) {
-        ASSERT(m_origin);
-        String errorMessage;
-        if (!WebCore::passesAccessControlCheck(resource.response(), m_options.allowCredentials, *m_origin, errorMessage)) {
-            setResourceError(ResourceError(String(), 0, url(), errorMessage, ResourceError::Type::AccessControl));
-            return;
-        }
-    }
-
-    setBodyDataFrom(resource);
-}
-
</del><span class="cx"> void CachedResource::checkNotify()
</span><span class="cx"> {
</span><span class="cx">     if (isLoading() || stillNeedsLoad())
</span></span></pre></div>
<a id="trunkSourceWebCoreloadercacheCachedResourceh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/cache/CachedResource.h (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/cache/CachedResource.h        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/Source/WebCore/loader/cache/CachedResource.h        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -209,8 +209,6 @@
</span><span class="cx">     bool isClean() const;
</span><span class="cx">     ResourceResponse::Tainting responseTainting() const { return m_responseTainting; }
</span><span class="cx"> 
</span><del>-    void loadFrom(const CachedResource&amp;, const ResourceLoaderOptions&amp;, CachedResourceLoader&amp;);
-
</del><span class="cx">     SecurityOrigin* origin() const { return m_origin.get(); }
</span><span class="cx"> 
</span><span class="cx">     bool canDelete() const { return !hasClients() &amp;&amp; !m_loader &amp;&amp; !m_preloadCount &amp;&amp; !m_handleCount &amp;&amp; !m_resourceToRevalidate &amp;&amp; !m_proxyResource; }
</span><span class="lines">@@ -307,12 +305,10 @@
</span><span class="cx"> 
</span><span class="cx">     virtual void checkNotify();
</span><span class="cx">     virtual bool mayTryReplaceEncodedData() const { return false; }
</span><del>-    virtual void setBodyDataFrom(const CachedResource&amp;) { }
</del><span class="cx"> 
</span><span class="cx">     std::chrono::microseconds freshnessLifetime(const ResourceResponse&amp;) const;
</span><span class="cx"> 
</span><span class="cx">     void addAdditionalRequestHeaders(CachedResourceLoader&amp;);
</span><del>-    void computeOrigin(CachedResourceLoader&amp;);
</del><span class="cx">     void failBeforeStarting();
</span><span class="cx"> 
</span><span class="cx">     HashMap&lt;CachedResourceClient*, std::unique_ptr&lt;Callback&gt;&gt; m_clientsAwaitingCallback;
</span></span></pre></div>
<a id="trunkSourceWebCoreloadercacheCachedResourceLoadercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/cache/CachedResourceLoader.cpp (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/cache/CachedResourceLoader.cpp        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/Source/WebCore/loader/cache/CachedResourceLoader.cpp        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -539,34 +539,6 @@
</span><span class="cx">     return !newRequest.isNull();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-bool CachedResourceLoader::updateCachedResourceWithCurrentRequest(CachedResourceRequest&amp; request, CachedResourceHandle&lt;CachedResource&gt;&amp; resourceHandle)
-{
-    ASSERT(resourceHandle);
-
-    CachedResource&amp; resource = *resourceHandle;
-
-    // FIXME: We should progressively extend this to other reusable resources
-    if (resource.type() != CachedResource::Type::ImageResource)
-        return false;
-
-    bool shouldUpdate = resource.options().mode != request.options().mode || request.resourceRequest().httpOrigin() != resource.resourceRequest().httpOrigin();
-
-    if (!shouldUpdate)
-        return false;
-
-    // FIXME: For being loaded requests, we currently do not use the same resource, as this may induce errors in the resource response tainting.
-    // We should find a way to improve this.
-    if (resource.status() != CachedResource::Cached) {
-        request.setCachingPolicy(CachingPolicy::DisallowCaching);
-        resourceHandle = loadResource(resource.type(), request);
-        return true;
-    }
-
-    resourceHandle = createResource(resource.type(), request.mutableResourceRequest(), request.charset(), sessionID());
-    resourceHandle-&gt;loadFrom(resource, request.options(), *this);
-    return true;
-}
-
</del><span class="cx"> static inline void logMemoryCacheResourceRequest(Frame* frame, const String&amp; description, const String&amp; value = String())
</span><span class="cx"> {
</span><span class="cx">     if (!frame || !frame-&gt;page())
</span><span class="lines">@@ -663,21 +635,19 @@
</span><span class="cx">         resource = revalidateResource(request, resource.get());
</span><span class="cx">         break;
</span><span class="cx">     case Use:
</span><del>-        if (!updateCachedResourceWithCurrentRequest(request, resource)) {
-            if (!shouldContinueAfterNotifyingLoadedFromMemoryCache(request, resource.get()))
-                return nullptr;
-            logMemoryCacheResourceRequest(frame(), DiagnosticLoggingKeys::inMemoryCacheKey(), DiagnosticLoggingKeys::usedKey());
-            memoryCache.resourceAccessed(*resource);
</del><ins>+        if (!shouldContinueAfterNotifyingLoadedFromMemoryCache(request, resource.get()))
+            return nullptr;
+        logMemoryCacheResourceRequest(frame(), DiagnosticLoggingKeys::inMemoryCacheKey(), DiagnosticLoggingKeys::usedKey());
+        memoryCache.resourceAccessed(*resource);
</ins><span class="cx"> #if ENABLE(WEB_TIMING)
</span><del>-            if (document() &amp;&amp; RuntimeEnabledFeatures::sharedFeatures().resourceTimingEnabled()) {
-                // FIXME (161170): The networkLoadTiming shouldn't be stored on the ResourceResponse.
-                resource-&gt;response().networkLoadTiming().reset();
-                loadTiming.setResponseEnd(monotonicallyIncreasingTime());
-                m_resourceTimingInfo.storeResourceTimingInitiatorInformation(resource, request, frame());
-                m_resourceTimingInfo.addResourceTiming(resource.get(), *document(), loadTiming);
-            }
</del><ins>+        if (document() &amp;&amp; RuntimeEnabledFeatures::sharedFeatures().resourceTimingEnabled()) {
+            // FIXME (161170): The networkLoadTiming shouldn't be stored on the ResourceResponse.
+            resource-&gt;response().networkLoadTiming().reset();
+            loadTiming.setResponseEnd(monotonicallyIncreasingTime());
+            m_resourceTimingInfo.storeResourceTimingInitiatorInformation(resource, request, frame());
+            m_resourceTimingInfo.addResourceTiming(resource.get(), *document(), loadTiming);
+        }
</ins><span class="cx"> #endif
</span><del>-        }
</del><span class="cx">         break;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -830,11 +800,11 @@
</span><span class="cx">     // in CachedImage::load.
</span><span class="cx">     if (cachedResourceRequest.defer() == CachedResourceRequest::DeferredByClient)
</span><span class="cx">         return Reload;
</span><del>-
</del><ins>+    
</ins><span class="cx">     // Don't reload resources while pasting.
</span><span class="cx">     if (m_allowStaleResources)
</span><span class="cx">         return Use;
</span><del>-
</del><ins>+    
</ins><span class="cx">     // Always use preloads.
</span><span class="cx">     if (existingResource-&gt;isPreloaded())
</span><span class="cx">         return Use;
</span></span></pre></div>
<a id="trunkSourceWebCoreloadercacheCachedResourceLoaderh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/cache/CachedResourceLoader.h (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/cache/CachedResourceLoader.h        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/Source/WebCore/loader/cache/CachedResourceLoader.h        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -155,8 +155,7 @@
</span><span class="cx"> 
</span><span class="cx">     enum RevalidationPolicy { Use, Revalidate, Reload, Load };
</span><span class="cx">     RevalidationPolicy determineRevalidationPolicy(CachedResource::Type, CachedResourceRequest&amp;, CachedResource* existingResource) const;
</span><del>-
-    bool updateCachedResourceWithCurrentRequest(CachedResourceRequest&amp;, CachedResourceHandle&lt;CachedResource&gt;&amp;);
</del><ins>+    
</ins><span class="cx">     bool shouldContinueAfterNotifyingLoadedFromMemoryCache(const CachedResourceRequest&amp;, CachedResource*);
</span><span class="cx">     bool checkInsecureContent(CachedResource::Type, const URL&amp;) const;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreloadercacheCachedResourceRequesth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/cache/CachedResourceRequest.h (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/cache/CachedResourceRequest.h        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/Source/WebCore/loader/cache/CachedResourceRequest.h        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -61,7 +61,6 @@
</span><span class="cx">     void setInitiator(const AtomicString&amp; name);
</span><span class="cx">     const AtomicString&amp; initiatorName() const;
</span><span class="cx">     bool allowsCaching() const { return m_options.cachingPolicy == CachingPolicy::AllowCaching; }
</span><del>-    void setCachingPolicy(CachingPolicy policy) { m_options.cachingPolicy = policy; }
</del><span class="cx"> 
</span><span class="cx">     void setAsPotentiallyCrossOrigin(const String&amp;, Document&amp;);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorestyleStylePendingResourcescpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/style/StylePendingResources.cpp (205463 => 205464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/style/StylePendingResources.cpp        2016-09-06 01:11:19 UTC (rev 205463)
+++ trunk/Source/WebCore/style/StylePendingResources.cpp        2016-09-06 02:08:52 UTC (rev 205464)
</span><span class="lines">@@ -54,7 +54,6 @@
</span><span class="cx">     if (loadPolicy == LoadPolicy::ShapeOutside) {
</span><span class="cx">         options.mode = FetchOptions::Mode::Cors;
</span><span class="cx">         options.allowCredentials = DoNotAllowStoredCredentials;
</span><del>-        options.sameOriginDataURLFlag = SameOriginDataURLFlag::Set;
</del><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     const_cast&lt;StyleImage&amp;&gt;(*styleImage).load(document.cachedResourceLoader(), options);
</span></span></pre>
</div>
</div>

</body>
</html>