<!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>[175841] trunk/LayoutTests</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/175841">175841</a></dd>
<dt>Author</dt> <dd>ap@apple.com</dd>
<dt>Date</dt> <dd>2014-11-10 17:16:15 -0800 (Mon, 10 Nov 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>http tests should not use shared temporary files
https://bugs.webkit.org/show_bug.cgi?id=138583

Reviewed by Tim Horton.

Made some of the scripts that write to files take a path argument, and made others
more strictly serve only one test.

This way, we don't race for any files.

* http/tests/appcache/fail-on-update-2.html:
* http/tests/appcache/fallback.html:
* http/tests/appcache/main-resource-fallback-for-network-error-crash.html:
* http/tests/appcache/main-resource-hash.html:
* http/tests/appcache/main-resource-redirect.html:
* http/tests/appcache/multi-fallback.html:
* http/tests/appcache/non-html.xhtml:
* http/tests/appcache/offline-access.html:
* http/tests/appcache/online-whitelist.html:
* http/tests/appcache/remove-cache.html:
* http/tests/appcache/resources/counter.php: Removed.
* http/tests/appcache/resources/fail-on-update-2.php:
* http/tests/appcache/resources/fail-on-update.php:
* http/tests/appcache/resources/main-resource-redirect-frame.php:
* http/tests/appcache/resources/main-resource-redirect.manifest:
* http/tests/appcache/resources/non-html.manifest:
* http/tests/appcache/resources/offline-access-frame.html:
* http/tests/appcache/resources/offline-access.js:
* http/tests/appcache/resources/offline-access.manifest:
* http/tests/appcache/resources/online-whitelist.manifest:
* http/tests/appcache/resources/online-whitelist.php: Copied from LayoutTests/http/tests/appcache/resources/counter.php.
* http/tests/appcache/resources/remove-cache-frame-2.html:
* http/tests/appcache/resources/remove-cache-frame.html:
* http/tests/appcache/resources/remove-cache.php: Copied from LayoutTests/http/tests/appcache/resources/fail-on-update.php.
* http/tests/appcache/resources/update-cache.php: Copied from LayoutTests/http/tests/appcache/resources/versioned-manifest.php.
* http/tests/appcache/resources/versioned-manifest.php: Removed.
* http/tests/appcache/update-cache.html:
* http/tests/cache/network-error-during-revalidation.html:
* http/tests/cache/post-redirect-get.php:
* http/tests/cache/post-with-cached-subresources.php:
* http/tests/cache/reload-main-resource.php:
* http/tests/cache/resources/network-error-during-revalidation-frame.html:
* http/tests/cache/resources/partitioned-cache-echo-state.php:
* http/tests/cache/resources/partitioned-cache-loader.html:
* http/tests/cache/resources/post-image-to-verify.php:
* http/tests/cache/resources/reload-main-resource-iframe.php:
* http/tests/cache/stopped-revalidation.html:
* http/tests/cache/subresource-fragment-identifier.html:
* http/tests/css/border-image-loading.html:
* http/tests/css/css-image-loading.html:
* http/tests/css/mask-image-loading.html:
* http/tests/css/reflection-mask-image-loading.html:
* http/tests/css/resources/request-logging.js:
* http/tests/loading/preload-img-test.html:
* http/tests/local/link-stylesheet-load-order-preload.html:
* http/tests/local/link-stylesheet-load-order.html:
* http/tests/misc/link-rel-prefetch-and-subresource.html:
* http/tests/resources/network-simulator.php:
* http/tests/resources/tripmine.php: Removed.
* http/tests/xmlhttprequest/access-control-preflight-async-header-denied-expected.txt:
* http/tests/xmlhttprequest/access-control-preflight-async-header-denied.html:
* http/tests/xmlhttprequest/access-control-preflight-async-method-denied-expected.txt:
* http/tests/xmlhttprequest/access-control-preflight-async-method-denied.html:
* http/tests/xmlhttprequest/access-control-preflight-async-not-supported-expected.txt:
* http/tests/xmlhttprequest/access-control-preflight-async-not-supported.html:
* http/tests/xmlhttprequest/access-control-preflight-headers-async.html:
* http/tests/xmlhttprequest/access-control-preflight-headers-sync.html:
* http/tests/xmlhttprequest/access-control-preflight-sync-header-denied-expected.txt:
* http/tests/xmlhttprequest/access-control-preflight-sync-header-denied.html:
* http/tests/xmlhttprequest/access-control-preflight-sync-method-denied-expected.txt:
* http/tests/xmlhttprequest/access-control-preflight-sync-method-denied.html:
* http/tests/xmlhttprequest/access-control-preflight-sync-not-supported-expected.txt:
* http/tests/xmlhttprequest/access-control-preflight-sync-not-supported.html:
* http/tests/xmlhttprequest/redirect-cross-origin-tripmine.html:
* http/tests/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php:
* http/tests/xmlhttprequest/resources/no-custom-header.php:
* http/tests/xmlhttprequest/resources/redirect-cross-origin-tripmine.php: Copied from LayoutTests/http/tests/resources/tripmine.php.
* http/tests/xmlhttprequest/state-after-network-error.html:
* http/tests/xmlhttprequest/xmlhttprequest-responseURL-expected.txt:
* http/tests/xmlhttprequest/xmlhttprequest-responseURL.html:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestshttptestsappcachefailonupdate2html">trunk/LayoutTests/http/tests/appcache/fail-on-update-2.html</a></li>
<li><a href="#trunkLayoutTestshttptestsappcachefallbackhtml">trunk/LayoutTests/http/tests/appcache/fallback.html</a></li>
<li><a href="#trunkLayoutTestshttptestsappcachemainresourcefallbackfornetworkerrorcrashhtml">trunk/LayoutTests/http/tests/appcache/main-resource-fallback-for-network-error-crash.html</a></li>
<li><a href="#trunkLayoutTestshttptestsappcachemainresourcehashhtml">trunk/LayoutTests/http/tests/appcache/main-resource-hash.html</a></li>
<li><a href="#trunkLayoutTestshttptestsappcachemainresourceredirecthtml">trunk/LayoutTests/http/tests/appcache/main-resource-redirect.html</a></li>
<li><a href="#trunkLayoutTestshttptestsappcachemultifallbackhtml">trunk/LayoutTests/http/tests/appcache/multi-fallback.html</a></li>
<li><a href="#trunkLayoutTestshttptestsappcachenonhtmlxhtml">trunk/LayoutTests/http/tests/appcache/non-html.xhtml</a></li>
<li><a href="#trunkLayoutTestshttptestsappcacheofflineaccesshtml">trunk/LayoutTests/http/tests/appcache/offline-access.html</a></li>
<li><a href="#trunkLayoutTestshttptestsappcacheonlinewhitelisthtml">trunk/LayoutTests/http/tests/appcache/online-whitelist.html</a></li>
<li><a href="#trunkLayoutTestshttptestsappcacheremovecachehtml">trunk/LayoutTests/http/tests/appcache/remove-cache.html</a></li>
<li><a href="#trunkLayoutTestshttptestsappcacheresourcesfailonupdate2php">trunk/LayoutTests/http/tests/appcache/resources/fail-on-update-2.php</a></li>
<li><a href="#trunkLayoutTestshttptestsappcacheresourcesfailonupdatephp">trunk/LayoutTests/http/tests/appcache/resources/fail-on-update.php</a></li>
<li><a href="#trunkLayoutTestshttptestsappcacheresourcesmainresourceredirectframephp">trunk/LayoutTests/http/tests/appcache/resources/main-resource-redirect-frame.php</a></li>
<li><a href="#trunkLayoutTestshttptestsappcacheresourcesmainresourceredirectmanifest">trunk/LayoutTests/http/tests/appcache/resources/main-resource-redirect.manifest</a></li>
<li><a href="#trunkLayoutTestshttptestsappcacheresourcesnonhtmlmanifest">trunk/LayoutTests/http/tests/appcache/resources/non-html.manifest</a></li>
<li><a href="#trunkLayoutTestshttptestsappcacheresourcesofflineaccessframehtml">trunk/LayoutTests/http/tests/appcache/resources/offline-access-frame.html</a></li>
<li><a href="#trunkLayoutTestshttptestsappcacheresourcesofflineaccessjs">trunk/LayoutTests/http/tests/appcache/resources/offline-access.js</a></li>
<li><a href="#trunkLayoutTestshttptestsappcacheresourcesofflineaccessmanifest">trunk/LayoutTests/http/tests/appcache/resources/offline-access.manifest</a></li>
<li><a href="#trunkLayoutTestshttptestsappcacheresourcesonlinewhitelistmanifest">trunk/LayoutTests/http/tests/appcache/resources/online-whitelist.manifest</a></li>
<li><a href="#trunkLayoutTestshttptestsappcacheresourcesremovecacheframe2html">trunk/LayoutTests/http/tests/appcache/resources/remove-cache-frame-2.html</a></li>
<li><a href="#trunkLayoutTestshttptestsappcacheresourcesremovecacheframehtml">trunk/LayoutTests/http/tests/appcache/resources/remove-cache-frame.html</a></li>
<li><a href="#trunkLayoutTestshttptestsappcacheupdatecachehtml">trunk/LayoutTests/http/tests/appcache/update-cache.html</a></li>
<li><a href="#trunkLayoutTestshttptestscachenetworkerrorduringrevalidationhtml">trunk/LayoutTests/http/tests/cache/network-error-during-revalidation.html</a></li>
<li><a href="#trunkLayoutTestshttptestscachepostredirectgetphp">trunk/LayoutTests/http/tests/cache/post-redirect-get.php</a></li>
<li><a href="#trunkLayoutTestshttptestscachepostwithcachedsubresourcesphp">trunk/LayoutTests/http/tests/cache/post-with-cached-subresources.php</a></li>
<li><a href="#trunkLayoutTestshttptestscachereloadmainresourcephp">trunk/LayoutTests/http/tests/cache/reload-main-resource.php</a></li>
<li><a href="#trunkLayoutTestshttptestscacheresourcesnetworkerrorduringrevalidationframehtml">trunk/LayoutTests/http/tests/cache/resources/network-error-during-revalidation-frame.html</a></li>
<li><a href="#trunkLayoutTestshttptestscacheresourcespartitionedcacheechostatephp">trunk/LayoutTests/http/tests/cache/resources/partitioned-cache-echo-state.php</a></li>
<li><a href="#trunkLayoutTestshttptestscacheresourcespartitionedcacheloaderhtml">trunk/LayoutTests/http/tests/cache/resources/partitioned-cache-loader.html</a></li>
<li><a href="#trunkLayoutTestshttptestscacheresourcespostimagetoverifyphp">trunk/LayoutTests/http/tests/cache/resources/post-image-to-verify.php</a></li>
<li><a href="#trunkLayoutTestshttptestscacheresourcesreloadmainresourceiframephp">trunk/LayoutTests/http/tests/cache/resources/reload-main-resource-iframe.php</a></li>
<li><a href="#trunkLayoutTestshttptestscachestoppedrevalidationhtml">trunk/LayoutTests/http/tests/cache/stopped-revalidation.html</a></li>
<li><a href="#trunkLayoutTestshttptestscachesubresourcefragmentidentifierhtml">trunk/LayoutTests/http/tests/cache/subresource-fragment-identifier.html</a></li>
<li><a href="#trunkLayoutTestshttptestscssborderimageloadinghtml">trunk/LayoutTests/http/tests/css/border-image-loading.html</a></li>
<li><a href="#trunkLayoutTestshttptestscsscssimageloadinghtml">trunk/LayoutTests/http/tests/css/css-image-loading.html</a></li>
<li><a href="#trunkLayoutTestshttptestscssmaskimageloadinghtml">trunk/LayoutTests/http/tests/css/mask-image-loading.html</a></li>
<li><a href="#trunkLayoutTestshttptestscssreflectionmaskimageloadinghtml">trunk/LayoutTests/http/tests/css/reflection-mask-image-loading.html</a></li>
<li><a href="#trunkLayoutTestshttptestscssresourcesrequestloggingjs">trunk/LayoutTests/http/tests/css/resources/request-logging.js</a></li>
<li><a href="#trunkLayoutTestshttptestsloadingpreloadimgtesthtml">trunk/LayoutTests/http/tests/loading/preload-img-test.html</a></li>
<li><a href="#trunkLayoutTestshttptestslocallinkstylesheetloadorderpreloadhtml">trunk/LayoutTests/http/tests/local/link-stylesheet-load-order-preload.html</a></li>
<li><a href="#trunkLayoutTestshttptestslocallinkstylesheetloadorderhtml">trunk/LayoutTests/http/tests/local/link-stylesheet-load-order.html</a></li>
<li><a href="#trunkLayoutTestshttptestsmisclinkrelprefetchandsubresourcehtml">trunk/LayoutTests/http/tests/misc/link-rel-prefetch-and-subresource.html</a></li>
<li><a href="#trunkLayoutTestshttptestsresourcesnetworksimulatorphp">trunk/LayoutTests/http/tests/resources/network-simulator.php</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestaccesscontrolpreflightasyncheaderdeniedexpectedtxt">trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-async-header-denied-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestaccesscontrolpreflightasyncheaderdeniedhtml">trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-async-header-denied.html</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestaccesscontrolpreflightasyncmethoddeniedexpectedtxt">trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-async-method-denied-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestaccesscontrolpreflightasyncmethoddeniedhtml">trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-async-method-denied.html</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestaccesscontrolpreflightasyncnotsupportedexpectedtxt">trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-async-not-supported-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestaccesscontrolpreflightasyncnotsupportedhtml">trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-async-not-supported.html</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestaccesscontrolpreflightheadersasynchtml">trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-headers-async.html</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestaccesscontrolpreflightheaderssynchtml">trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-headers-sync.html</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestaccesscontrolpreflightsyncheaderdeniedexpectedtxt">trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-sync-header-denied-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestaccesscontrolpreflightsyncheaderdeniedhtml">trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-sync-header-denied.html</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestaccesscontrolpreflightsyncmethoddeniedexpectedtxt">trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-sync-method-denied-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestaccesscontrolpreflightsyncmethoddeniedhtml">trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-sync-method-denied.html</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestaccesscontrolpreflightsyncnotsupportedexpectedtxt">trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-sync-not-supported-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestaccesscontrolpreflightsyncnotsupportedhtml">trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-sync-not-supported.html</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestredirectcrossorigintripminehtml">trunk/LayoutTests/http/tests/xmlhttprequest/redirect-cross-origin-tripmine.html</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestresourcesaccesscontrolpreflightdeniedxsrfphp">trunk/LayoutTests/http/tests/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestresourcesnocustomheaderphp">trunk/LayoutTests/http/tests/xmlhttprequest/resources/no-custom-header.php</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequeststateafternetworkerrorhtml">trunk/LayoutTests/http/tests/xmlhttprequest/state-after-network-error.html</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestxmlhttprequestresponseURLexpectedtxt">trunk/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-responseURL-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestxmlhttprequestresponseURLhtml">trunk/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-responseURL.html</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestshttptestsappcacheresourcesonlinewhitelistphp">trunk/LayoutTests/http/tests/appcache/resources/online-whitelist.php</a></li>
<li><a href="#trunkLayoutTestshttptestsappcacheresourcesremovecachephp">trunk/LayoutTests/http/tests/appcache/resources/remove-cache.php</a></li>
<li><a href="#trunkLayoutTestshttptestsappcacheresourcesupdatecachephp">trunk/LayoutTests/http/tests/appcache/resources/update-cache.php</a></li>
<li><a href="#trunkLayoutTestshttptestsxmlhttprequestresourcesredirectcrossorigintripminephp">trunk/LayoutTests/http/tests/xmlhttprequest/resources/redirect-cross-origin-tripmine.php</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkLayoutTestshttptestsappcacheresourcescounterphp">trunk/LayoutTests/http/tests/appcache/resources/counter.php</a></li>
<li><a href="#trunkLayoutTestshttptestsappcacheresourcesversionedmanifestphp">trunk/LayoutTests/http/tests/appcache/resources/versioned-manifest.php</a></li>
<li><a href="#trunkLayoutTestshttptestsresourcestripminephp">trunk/LayoutTests/http/tests/resources/tripmine.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/ChangeLog        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -1,3 +1,86 @@
</span><ins>+2014-11-10  Alexey Proskuryakov  &lt;ap@apple.com&gt;
+
+        http tests should not use shared temporary files
+        https://bugs.webkit.org/show_bug.cgi?id=138583
+
+        Reviewed by Tim Horton.
+
+        Made some of the scripts that write to files take a path argument, and made others
+        more strictly serve only one test.
+
+        This way, we don't race for any files.
+
+        * http/tests/appcache/fail-on-update-2.html:
+        * http/tests/appcache/fallback.html:
+        * http/tests/appcache/main-resource-fallback-for-network-error-crash.html:
+        * http/tests/appcache/main-resource-hash.html:
+        * http/tests/appcache/main-resource-redirect.html:
+        * http/tests/appcache/multi-fallback.html:
+        * http/tests/appcache/non-html.xhtml:
+        * http/tests/appcache/offline-access.html:
+        * http/tests/appcache/online-whitelist.html:
+        * http/tests/appcache/remove-cache.html:
+        * http/tests/appcache/resources/counter.php: Removed.
+        * http/tests/appcache/resources/fail-on-update-2.php:
+        * http/tests/appcache/resources/fail-on-update.php:
+        * http/tests/appcache/resources/main-resource-redirect-frame.php:
+        * http/tests/appcache/resources/main-resource-redirect.manifest:
+        * http/tests/appcache/resources/non-html.manifest:
+        * http/tests/appcache/resources/offline-access-frame.html:
+        * http/tests/appcache/resources/offline-access.js:
+        * http/tests/appcache/resources/offline-access.manifest:
+        * http/tests/appcache/resources/online-whitelist.manifest:
+        * http/tests/appcache/resources/online-whitelist.php: Copied from LayoutTests/http/tests/appcache/resources/counter.php.
+        * http/tests/appcache/resources/remove-cache-frame-2.html:
+        * http/tests/appcache/resources/remove-cache-frame.html:
+        * http/tests/appcache/resources/remove-cache.php: Copied from LayoutTests/http/tests/appcache/resources/fail-on-update.php.
+        * http/tests/appcache/resources/update-cache.php: Copied from LayoutTests/http/tests/appcache/resources/versioned-manifest.php.
+        * http/tests/appcache/resources/versioned-manifest.php: Removed.
+        * http/tests/appcache/update-cache.html:
+        * http/tests/cache/network-error-during-revalidation.html:
+        * http/tests/cache/post-redirect-get.php:
+        * http/tests/cache/post-with-cached-subresources.php:
+        * http/tests/cache/reload-main-resource.php:
+        * http/tests/cache/resources/network-error-during-revalidation-frame.html:
+        * http/tests/cache/resources/partitioned-cache-echo-state.php:
+        * http/tests/cache/resources/partitioned-cache-loader.html:
+        * http/tests/cache/resources/post-image-to-verify.php:
+        * http/tests/cache/resources/reload-main-resource-iframe.php:
+        * http/tests/cache/stopped-revalidation.html:
+        * http/tests/cache/subresource-fragment-identifier.html:
+        * http/tests/css/border-image-loading.html:
+        * http/tests/css/css-image-loading.html:
+        * http/tests/css/mask-image-loading.html:
+        * http/tests/css/reflection-mask-image-loading.html:
+        * http/tests/css/resources/request-logging.js:
+        * http/tests/loading/preload-img-test.html:
+        * http/tests/local/link-stylesheet-load-order-preload.html:
+        * http/tests/local/link-stylesheet-load-order.html:
+        * http/tests/misc/link-rel-prefetch-and-subresource.html:
+        * http/tests/resources/network-simulator.php:
+        * http/tests/resources/tripmine.php: Removed.
+        * http/tests/xmlhttprequest/access-control-preflight-async-header-denied-expected.txt:
+        * http/tests/xmlhttprequest/access-control-preflight-async-header-denied.html:
+        * http/tests/xmlhttprequest/access-control-preflight-async-method-denied-expected.txt:
+        * http/tests/xmlhttprequest/access-control-preflight-async-method-denied.html:
+        * http/tests/xmlhttprequest/access-control-preflight-async-not-supported-expected.txt:
+        * http/tests/xmlhttprequest/access-control-preflight-async-not-supported.html:
+        * http/tests/xmlhttprequest/access-control-preflight-headers-async.html:
+        * http/tests/xmlhttprequest/access-control-preflight-headers-sync.html:
+        * http/tests/xmlhttprequest/access-control-preflight-sync-header-denied-expected.txt:
+        * http/tests/xmlhttprequest/access-control-preflight-sync-header-denied.html:
+        * http/tests/xmlhttprequest/access-control-preflight-sync-method-denied-expected.txt:
+        * http/tests/xmlhttprequest/access-control-preflight-sync-method-denied.html:
+        * http/tests/xmlhttprequest/access-control-preflight-sync-not-supported-expected.txt:
+        * http/tests/xmlhttprequest/access-control-preflight-sync-not-supported.html:
+        * http/tests/xmlhttprequest/redirect-cross-origin-tripmine.html:
+        * http/tests/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php:
+        * http/tests/xmlhttprequest/resources/no-custom-header.php:
+        * http/tests/xmlhttprequest/resources/redirect-cross-origin-tripmine.php: Copied from LayoutTests/http/tests/resources/tripmine.php.
+        * http/tests/xmlhttprequest/state-after-network-error.html:
+        * http/tests/xmlhttprequest/xmlhttprequest-responseURL-expected.txt:
+        * http/tests/xmlhttprequest/xmlhttprequest-responseURL.html:
+
</ins><span class="cx"> 2014-11-10  Michael Saboff  &lt;msaboff@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Add test for fix of REGRESSION (r174985-174986): Site display disappears
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsappcachefailonupdate2html"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/appcache/fail-on-update-2.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/appcache/fail-on-update-2.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/appcache/fail-on-update-2.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -8,7 +8,7 @@
</span><span class="cx"> function setManifestDeleted(state)
</span><span class="cx"> {
</span><span class="cx">     var req = new XMLHttpRequest;
</span><del>-    req.open(&quot;GET&quot;, &quot;resources/fail-on-update.php?command=&quot; + (state ? &quot;delete&quot; : &quot;reset&quot;), false);
</del><ins>+    req.open(&quot;GET&quot;, &quot;resources/fail-on-update-2.php?command=&quot; + (state ? &quot;delete&quot; : &quot;reset&quot;), false);
</ins><span class="cx">     req.send(null);
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsappcachefallbackhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/appcache/fallback.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/appcache/fallback.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/appcache/fallback.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -21,7 +21,7 @@
</span><span class="cx"> {
</span><span class="cx">     try {
</span><span class="cx">         var req = new XMLHttpRequest;
</span><del>-        req.open(&quot;GET&quot;, &quot;/resources/network-simulator.php?command=&quot; + (state ? &quot;connect&quot; : &quot;disconnect&quot;), false);
</del><ins>+        req.open(&quot;GET&quot;, &quot;/resources/network-simulator.php?test=appcache-fallback&amp;command=&quot; + (state ? &quot;connect&quot; : &quot;disconnect&quot;), false);
</ins><span class="cx">         req.send(&quot;&quot;);
</span><span class="cx">     } catch (ex) {
</span><span class="cx">         log(&quot;Cannot access network simulator URL&quot;);
</span><span class="lines">@@ -43,7 +43,7 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-var testURL = &quot;/resources/network-simulator.php?path=/appcache/resources/not-in-cache.txt&quot;;
</del><ins>+var testURL = &quot;/resources/network-simulator.php?test=appcache-fallback&amp;path=/appcache/resources/not-in-cache.txt&quot;;
</ins><span class="cx"> var nonexistentURL = &quot;resources/does-not-exist&quot;;
</span><span class="cx"> var redirectURL = &quot;resources/fallback-redirect.php&quot;;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsappcachemainresourcefallbackfornetworkerrorcrashhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/appcache/main-resource-fallback-for-network-error-crash.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/appcache/main-resource-fallback-for-network-error-crash.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/appcache/main-resource-fallback-for-network-error-crash.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -5,7 +5,7 @@
</span><span class="cx"> &lt;div&gt;        Before you click the link that tests the appcache fallback, please make sure the server is down or disconnect your device from any data connection so the connection request to the server will fail.
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><del>-&lt;a id= &quot;Link&quot; href=&quot;/resources/network-simulator.php?path=does-not-exist&quot; &gt; click this link when the server is down or the client device doesn't have a data connection, this will verify if the fallback will cause the crash. &lt;/a&gt;
</del><ins>+&lt;a id= &quot;Link&quot; href=&quot;/resources/network-simulator.php?test=appcache-main-resource-fallback-for-network-error-crash&amp;path=does-not-exist&quot; &gt; click this link when the server is down or the client device doesn't have a data connection, this will verify if the fallback will cause the crash. &lt;/a&gt;
</ins><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> &lt;script&gt;
</span><span class="lines">@@ -13,7 +13,7 @@
</span><span class="cx"> function setNetworkEnabled(state)
</span><span class="cx"> {
</span><span class="cx">     var req = new XMLHttpRequest;
</span><del>-    req.open(&quot;GET&quot;, &quot;/resources/network-simulator.php?command=&quot; + (state ? &quot;connect&quot; : &quot;disconnect&quot;), false);
</del><ins>+    req.open(&quot;GET&quot;, &quot;/resources/network-simulator.php?test=appcache-main-resource-fallback-for-network-error-crash&amp;command=&quot; + (state ? &quot;connect&quot; : &quot;disconnect&quot;), false);
</ins><span class="cx">     req.send(&quot;&quot;);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -26,7 +26,7 @@
</span><span class="cx"> {
</span><span class="cx">     if (window.testRunner) {
</span><span class="cx">         setNetworkEnabled(false);
</span><del>-        window.location=&quot;/resources/network-simulator.php?path=does-not-exist&quot;;
</del><ins>+        window.location=&quot;/resources/network-simulator.php?test=appcache-main-resource-fallback-for-network-error-crash&amp;path=does-not-exist&quot;;
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsappcachemainresourcehashhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/appcache/main-resource-hash.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/appcache/main-resource-hash.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/appcache/main-resource-hash.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -18,7 +18,7 @@
</span><span class="cx"> function setNetworkEnabled(state)
</span><span class="cx"> {
</span><span class="cx">     var req = new XMLHttpRequest;
</span><del>-    req.open(&quot;GET&quot;, &quot;/resources/network-simulator.php?command=&quot; + (state ? &quot;connect&quot; : &quot;disconnect&quot;), false);
</del><ins>+    req.open(&quot;GET&quot;, &quot;/resources/network-simulator.php?test=appcache-main-resource-main-resource-hash&amp;command=&quot; + (state ? &quot;connect&quot; : &quot;disconnect&quot;), false);
</ins><span class="cx">     req.send(&quot;&quot;);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -28,7 +28,7 @@
</span><span class="cx">         stage = 1;
</span><span class="cx">         setNetworkEnabled(false);
</span><span class="cx">         var ifr = document.createElement(&quot;iframe&quot;);
</span><del>-        ifr.setAttribute(&quot;src&quot;, &quot;/resources/network-simulator.php?path=/appcache/resources/main-resource-hash-frame.html#bar&quot;);
</del><ins>+        ifr.setAttribute(&quot;src&quot;, &quot;/resources/network-simulator.php?test=appcache-main-resource-main-resource-hash&amp;path=/appcache/resources/main-resource-hash-frame.html#bar&quot;);
</ins><span class="cx">         document.body.appendChild(ifr);
</span><span class="cx">     } else {
</span><span class="cx">         log(&quot;SUCCESS&quot;);
</span><span class="lines">@@ -43,7 +43,7 @@
</span><span class="cx"> var stage = 0;
</span><span class="cx"> setNetworkEnabled(true);
</span><span class="cx"> var ifr = document.createElement(&quot;iframe&quot;);
</span><del>-ifr.setAttribute(&quot;src&quot;, &quot;/resources/network-simulator.php?path=/appcache/resources/main-resource-hash-frame.html#foo&quot;);
</del><ins>+ifr.setAttribute(&quot;src&quot;, &quot;/resources/network-simulator.php?test=appcache-main-resource-main-resource-hash&amp;path=/appcache/resources/main-resource-hash-frame.html#foo&quot;);
</ins><span class="cx"> document.body.appendChild(ifr);
</span><span class="cx"> 
</span><span class="cx"> &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsappcachemainresourceredirecthtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/appcache/main-resource-redirect.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/appcache/main-resource-redirect.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/appcache/main-resource-redirect.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -11,7 +11,7 @@
</span><span class="cx"> function setNetworkEnabled(state)
</span><span class="cx"> {
</span><span class="cx">     var req = new XMLHttpRequest;
</span><del>-    req.open(&quot;GET&quot;, &quot;/resources/network-simulator.php?command=&quot; + (state ? &quot;connect&quot; : &quot;disconnect&quot;), false);
</del><ins>+    req.open(&quot;GET&quot;, &quot;/resources/network-simulator.php?test=appcache-main-resource-main-resource-redirect&amp;command=&quot; + (state ? &quot;connect&quot; : &quot;disconnect&quot;), false);
</ins><span class="cx">     req.send(&quot;&quot;);
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsappcachemultifallbackhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/appcache/multi-fallback.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/appcache/multi-fallback.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/appcache/multi-fallback.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -21,7 +21,7 @@
</span><span class="cx"> {
</span><span class="cx">     try {
</span><span class="cx">         var req = new XMLHttpRequest;
</span><del>-        req.open(&quot;GET&quot;, &quot;/resources/network-simulator.php?command=&quot; + (state ? &quot;connect&quot; : &quot;disconnect&quot;), false);
</del><ins>+        req.open(&quot;GET&quot;, &quot;/resources/network-simulator.php?test=appcache-multi-fallback&amp;command=&quot; + (state ? &quot;connect&quot; : &quot;disconnect&quot;), false);
</ins><span class="cx">         req.send(&quot;&quot;);
</span><span class="cx">     } catch (ex) {
</span><span class="cx">         log(&quot;Cannot access network simulator URL, ex = &quot; + ex);
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsappcachenonhtmlxhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/appcache/non-html.xhtml (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/appcache/non-html.xhtml        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/appcache/non-html.xhtml        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;
</span><del>-      manifest=&quot;/resources/network-simulator.php?path=/appcache/resources/non-html.manifest&quot;&gt;
</del><ins>+      manifest=&quot;/resources/network-simulator.php?test=appcache-non-html&amp;amp;path=/appcache/resources/non-html.manifest&quot;&gt;
</ins><span class="cx"> &lt;head&gt;&lt;title/&gt;&lt;/head&gt;
</span><span class="cx"> &lt;body&gt;
</span><span class="cx"> &lt;p&gt;Test that non-HTML main resources work with application cache correctly.&lt;/p&gt;
</span><span class="lines">@@ -19,14 +19,14 @@
</span><span class="cx"> function setNetworkEnabled(state)
</span><span class="cx"> {
</span><span class="cx">     var req = new XMLHttpRequest;
</span><del>-    req.open(&quot;GET&quot;, &quot;/resources/network-simulator.php?command=&quot; + (state ? &quot;connect&quot; : &quot;disconnect&quot;), false);
</del><ins>+    req.open(&quot;GET&quot;, &quot;/resources/network-simulator.php?test=appcache-non-html&amp;amp;command=&quot; + (state ? &quot;connect&quot; : &quot;disconnect&quot;), false);
</ins><span class="cx">     req.send(&quot;&quot;);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function createFrame()
</span><span class="cx"> {
</span><span class="cx">     var ifr = document.createElement(&quot;iframe&quot;);
</span><del>-    ifr.setAttribute(&quot;src&quot;, &quot;/resources/network-simulator.php?path=/appcache/resources/abe.png&quot;);
</del><ins>+    ifr.setAttribute(&quot;src&quot;, &quot;/resources/network-simulator.php?test=appcache-non-html&amp;amp;path=/appcache/resources/abe.png&quot;);
</ins><span class="cx">     ifr.onload = frameCreated;
</span><span class="cx">     document.body.appendChild(ifr);
</span><span class="cx"> }
</span><span class="lines">@@ -43,7 +43,7 @@
</span><span class="cx">     // Load a resource that does not exist in the cache.
</span><span class="cx">     try {
</span><span class="cx">         var req = new XMLHttpRequest();
</span><del>-        req.open(&quot;GET&quot;, &quot;/resources/network-simulator.php?path=/appcache/resources/not-in-cache.txt&quot;, false);
</del><ins>+        req.open(&quot;GET&quot;, &quot;/resources/network-simulator.php?test=appcache-non-html&amp;amp;path=/appcache/resources/not-in-cache.txt&quot;, false);
</ins><span class="cx">         req.send();
</span><span class="cx">     } catch (e) {
</span><span class="cx">         if (e.code == XMLHttpRequestException.NETWORK_ERR)
</span><span class="lines">@@ -58,7 +58,7 @@
</span><span class="cx">     // Load a resource that exists in the cache.
</span><span class="cx">     try {
</span><span class="cx">         var req = new XMLHttpRequest();
</span><del>-        req.open(&quot;GET&quot;, &quot;/resources/network-simulator.php?path=/appcache/resources/simple.txt&quot;, false);
</del><ins>+        req.open(&quot;GET&quot;, &quot;/resources/network-simulator.php?test=appcache-non-html&amp;amp;path=/appcache/resources/simple.txt&quot;, false);
</ins><span class="cx">         req.send();
</span><span class="cx">     } catch (e) {
</span><span class="cx">         document.getElementById('result').innerHTML = &quot;FAILURE: Could not load data from cache&quot;
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsappcacheofflineaccesshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/appcache/offline-access.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/appcache/offline-access.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/appcache/offline-access.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -18,14 +18,14 @@
</span><span class="cx"> function setNetworkEnabled(state)
</span><span class="cx"> {
</span><span class="cx">     var req = new XMLHttpRequest;
</span><del>-    req.open(&quot;GET&quot;, &quot;/resources/network-simulator.php?command=&quot; + (state ? &quot;connect&quot; : &quot;disconnect&quot;), false);
</del><ins>+    req.open(&quot;GET&quot;, &quot;/resources/network-simulator.php?test=appcache-offline-access&amp;command=&quot; + (state ? &quot;connect&quot; : &quot;disconnect&quot;), false);
</ins><span class="cx">     req.send(&quot;&quot;);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function createFrame()
</span><span class="cx"> {
</span><span class="cx">     var ifr = document.createElement(&quot;iframe&quot;);
</span><del>-    ifr.setAttribute(&quot;src&quot;, &quot;/resources/network-simulator.php?path=/appcache/resources/offline-access-frame.html&quot;);
</del><ins>+    ifr.setAttribute(&quot;src&quot;, &quot;/resources/network-simulator.php?test=appcache-offline-access&amp;path=/appcache/resources/offline-access-frame.html&quot;);
</ins><span class="cx">     document.body.appendChild(ifr);
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsappcacheonlinewhitelisthtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/appcache/online-whitelist.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/appcache/online-whitelist.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/appcache/online-whitelist.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -43,22 +43,22 @@
</span><span class="cx"> 
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    if (load(&quot;resources/counter.php?cached&quot;) != load(&quot;resources/counter.php?cached&quot;)) {
</del><ins>+    if (load(&quot;resources/online-whitelist.php?cached&quot;) != load(&quot;resources/online-whitelist.php?cached&quot;)) {
</ins><span class="cx">         log(&quot;FAIL: Explicit entry didn't override online whitelist.&quot;);
</span><span class="cx">         hadError = true;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    if (load(&quot;resources/counter.php?uncached&quot;) == load(&quot;resources/counter.php?uncached&quot;)) {
</del><ins>+    if (load(&quot;resources/online-whitelist.php?uncached&quot;) == load(&quot;resources/online-whitelist.php?uncached&quot;)) {
</ins><span class="cx">         log(&quot;FAIL: Online whitelist resource wasn't reloaded from network.&quot;);
</span><span class="cx">         hadError = true;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    if (load(&quot;resources/counter.php?uncachedxxx&quot;) == load(&quot;resources/counter.php?uncachedxxx&quot;)) {
</del><ins>+    if (load(&quot;resources/online-whitelist.php?uncachedxxx&quot;) == load(&quot;resources/online-whitelist.php?uncachedxxx&quot;)) {
</ins><span class="cx">         log(&quot;FAIL: Online whitelist resource wasn't reloaded from network (prefix matching).&quot;);
</span><span class="cx">         hadError = true;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    if (canLoad(&quot;resources/counter.php?foobar&quot;)) {
</del><ins>+    if (canLoad(&quot;resources/online-whitelist.php?foobar&quot;)) {
</ins><span class="cx">         log(&quot;FAIL: Uncached resource was successfully loaded.&quot;);
</span><span class="cx">         hadError = true;
</span><span class="cx">     }
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsappcacheremovecachehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/appcache/remove-cache.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/appcache/remove-cache.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/appcache/remove-cache.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-&lt;html manifest=&quot;resources/fail-on-update.php&quot;&gt;
</del><ins>+&lt;html manifest=&quot;resources/remove-cache.php&quot;&gt;
</ins><span class="cx"> &lt;p&gt;Test that a 404 response for manifest results in cache removal.&lt;/p&gt;
</span><span class="cx"> &lt;body&gt;
</span><span class="cx"> &lt;ul&gt;
</span><span class="lines">@@ -24,7 +24,7 @@
</span><span class="cx"> function setManifestDeleted(state)
</span><span class="cx"> {
</span><span class="cx">     var req = new XMLHttpRequest;
</span><del>-    req.open(&quot;GET&quot;, &quot;resources/fail-on-update.php?command=&quot; + (state ? &quot;delete&quot; : &quot;reset&quot;), false);
</del><ins>+    req.open(&quot;GET&quot;, &quot;resources/remove-cache.php?command=&quot; + (state ? &quot;delete&quot; : &quot;reset&quot;), false);
</ins><span class="cx">     req.send(null);
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsappcacheresourcescounterphp"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/appcache/resources/counter.php (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/appcache/resources/counter.php        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/appcache/resources/counter.php        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -1,23 +0,0 @@
</span><del>-&lt;?php
-require_once '../../resources/portabilityLayer.php';
-
-$tmpFile = sys_get_temp_dir() . &quot;/&quot; . &quot;appcache_counter&quot;;
-
-function stepCounter($file)
-{
-    if (!file_exists($file)) {
-        file_put_contents($file, &quot;0&quot;);
-        return &quot;0&quot;;
-    }
-    $value = file_get_contents($file);
-    file_put_contents($file, ++$value);
-    return $value;
-}
-
-header(&quot;Expires: Thu, 01 Dec 2003 16:00:00 GMT&quot;);
-header(&quot;Cache-Control: no-cache, must-revalidate&quot;);
-header(&quot;Pragma: no-cache&quot;);
-header(&quot;Content-Type: text/plain&quot;);
-
-print(stepCounter($tmpFile));
-?&gt;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestsappcacheresourcesfailonupdate2php"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/appcache/resources/fail-on-update-2.php (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/appcache/resources/fail-on-update-2.php        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/appcache/resources/fail-on-update-2.php        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -1,7 +1,8 @@
</span><span class="cx"> &lt;?php
</span><span class="cx"> require_once '../../resources/portabilityLayer.php';
</span><span class="cx"> 
</span><del>-$tmpFile = sys_get_temp_dir() . &quot;/&quot; . &quot;fail_on_update_state&quot;;
</del><ins>+# This script may only be used by appcache/fail-on-update-2.html test, since it uses global data.
+$tmpFile = sys_get_temp_dir() . &quot;/&quot; . &quot;appcache_fail-on-update-2_state&quot;;
</ins><span class="cx"> 
</span><span class="cx"> function setState($newState, $file)
</span><span class="cx"> {
</span><span class="lines">@@ -32,7 +33,7 @@
</span><span class="cx">     print(&quot;CACHE MANIFEST\n&quot;);
</span><span class="cx">     print(&quot;fail-on-update-2.html\n&quot;);
</span><span class="cx">     print(&quot;NETWORK:\n&quot;);
</span><del>-    print(&quot;fail-on-update.php?command=\n&quot;);
</del><ins>+    print(&quot;fail-on-update-2.php?command=\n&quot;);
</ins><span class="cx"> } else if ($state == &quot;Deleted&quot;) {
</span><span class="cx">     header('HTTP/1.0 404 Not Found');
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsappcacheresourcesfailonupdatephp"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/appcache/resources/fail-on-update.php (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/appcache/resources/fail-on-update.php        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/appcache/resources/fail-on-update.php        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -1,7 +1,8 @@
</span><span class="cx"> &lt;?php
</span><span class="cx"> require_once '../../resources/portabilityLayer.php';
</span><span class="cx"> 
</span><del>-$tmpFile = sys_get_temp_dir() . &quot;/&quot; . &quot;fail_on_update_state&quot;;
</del><ins>+# This script may only be used by appcache/fail-on-update.html test, since it uses global data.
+$tmpFile = sys_get_temp_dir() . &quot;/&quot; . &quot;appcache_fail-on-update_state&quot;;
</ins><span class="cx"> 
</span><span class="cx"> function setState($newState, $file)
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsappcacheresourcesmainresourceredirectframephp"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/appcache/resources/main-resource-redirect-frame.php (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/appcache/resources/main-resource-redirect-frame.php        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/appcache/resources/main-resource-redirect-frame.php        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><span class="cx"> &lt;?php
</span><span class="cx">   header('HTTP/1.0 302 Found');
</span><del>-  header('Location: http://127.0.0.1:8000/resources/network-simulator.php?path=/appcache/resources/main-resource-redirect-frame-2.html');
</del><ins>+  header('Location: http://127.0.0.1:8000/resources/network-simulator.php?test=appcache-main-resource-main-resource-redirect&amp;path=/appcache/resources/main-resource-redirect-frame-2.html');
</ins><span class="cx"> ?&gt;
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsappcacheresourcesmainresourceredirectmanifest"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/appcache/resources/main-resource-redirect.manifest (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/appcache/resources/main-resource-redirect.manifest        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/appcache/resources/main-resource-redirect.manifest        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><span class="cx"> CACHE MANIFEST
</span><del>-http://127.0.0.1:8000/resources/network-simulator.php?path=/appcache/resources/main-resource-redirect-frame-2.html
</del><ins>+http://127.0.0.1:8000/resources/network-simulator.php?test=appcache-main-resource-main-resource-redirect&amp;path=/appcache/resources/main-resource-redirect-frame-2.html
</ins><span class="cx"> NETWORK:
</span><del>-http://127.0.0.1:8000/resources/network-simulator.php?command
</del><ins>+http://127.0.0.1:8000/resources/network-simulator.php?test=appcache-main-resource-main-resource-redirect&amp;command
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestsappcacheresourcesnonhtmlmanifest"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/appcache/resources/non-html.manifest (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/appcache/resources/non-html.manifest        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/appcache/resources/non-html.manifest        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -1,8 +1,8 @@
</span><span class="cx"> CACHE MANIFEST
</span><span class="cx"> /appcache/non-html.xhtml
</span><del>-/resources/network-simulator.php?path=/appcache/resources/simple.txt
-/resources/network-simulator.php?path=/appcache/resources/abe.png
-/resources/network-simulator.php?path=/appcache/resources/non-html.manifest
</del><ins>+/resources/network-simulator.php?test=appcache-non-html&amp;path=/appcache/resources/simple.txt
+/resources/network-simulator.php?test=appcache-non-html&amp;path=/appcache/resources/abe.png
+/resources/network-simulator.php?test=appcache-non-html&amp;path=/appcache/resources/non-html.manifest
</ins><span class="cx"> NETWORK:
</span><span class="cx"> /favicon.ico
</span><del>-/resources/network-simulator.php?command=
</del><ins>+/resources/network-simulator.php?test=appcache-non-html&amp;command=
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestsappcacheresourcesofflineaccessframehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/appcache/resources/offline-access-frame.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/appcache/resources/offline-access-frame.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/appcache/resources/offline-access-frame.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-&lt;html manifest=&quot;/resources/network-simulator.php?path=/appcache/resources/offline-access.manifest&quot;&gt;
</del><ins>+&lt;html manifest=&quot;/resources/network-simulator.php?test=appcache-offline-access&amp;path=/appcache/resources/offline-access.manifest&quot;&gt;
</ins><span class="cx"> &lt;div id=result&gt;&lt;/div&gt;
</span><span class="cx"> &lt;script&gt;
</span><span class="cx"> function log(message)
</span><span class="lines">@@ -11,7 +11,7 @@
</span><span class="cx"> applicationCache.onupdateready = function() { log(&quot;updateready&quot;) }
</span><span class="cx"> applicationCache.onobsolete = function() { log(&quot;obsolete&quot;) }
</span><span class="cx"> &lt;/script&gt;
</span><del>-&lt;script src=&quot;/resources/network-simulator.php?path=/appcache/resources/offline-access.js&quot;&gt;&lt;/script&gt;
</del><ins>+&lt;script src=&quot;/resources/network-simulator.php?test=appcache-offline-access&amp;path=/appcache/resources/offline-access.js&quot;&gt;&lt;/script&gt;
</ins><span class="cx"> &lt;script&gt;
</span><span class="cx"> 
</span><span class="cx"> applicationCache.oncached = function() { log(&quot;cached&quot;); test() }
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsappcacheresourcesofflineaccessjs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/appcache/resources/offline-access.js (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/appcache/resources/offline-access.js        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/appcache/resources/offline-access.js        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -6,7 +6,7 @@
</span><span class="cx"> 
</span><span class="cx">     try {
</span><span class="cx">         var req = new XMLHttpRequest;
</span><del>-        req.open(&quot;GET&quot;, &quot;/resources/network-simulator.php?path=/appcache/resources/simple.txt&quot;, false);
</del><ins>+        req.open(&quot;GET&quot;, &quot;/resources/network-simulator.php?test=appcache-offline-access&amp;path=/appcache/resources/simple.txt&quot;, false);
</ins><span class="cx">         req.send(null);
</span><span class="cx">         if (req.responseText == &quot;Hello, World!&quot;)
</span><span class="cx">             parent.postMessage(&quot;done&quot;, &quot;*&quot;);
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsappcacheresourcesofflineaccessmanifest"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/appcache/resources/offline-access.manifest (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/appcache/resources/offline-access.manifest        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/appcache/resources/offline-access.manifest        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> CACHE MANIFEST
</span><del>-/resources/network-simulator.php?path=/appcache/resources/offline-access-frame.html
-/resources/network-simulator.php?path=/appcache/resources/offline-access.manifest
-/resources/network-simulator.php?path=/appcache/resources/simple.txt
-/resources/network-simulator.php?path=/appcache/resources/offline-access.js
</del><ins>+/resources/network-simulator.php?test=appcache-offline-access&amp;path=/appcache/resources/offline-access-frame.html
+/resources/network-simulator.php?test=appcache-offline-access&amp;path=/appcache/resources/offline-access.manifest
+/resources/network-simulator.php?test=appcache-offline-access&amp;path=/appcache/resources/simple.txt
+/resources/network-simulator.php?test=appcache-offline-access&amp;path=/appcache/resources/offline-access.js
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestsappcacheresourcesonlinewhitelistmanifest"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/appcache/resources/online-whitelist.manifest (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/appcache/resources/online-whitelist.manifest        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/appcache/resources/online-whitelist.manifest        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> CACHE MANIFEST
</span><del>-counter.php?cached
</del><ins>+online-whitelist.php?cached
</ins><span class="cx"> 
</span><span class="cx"> NETWORK:
</span><span class="cx"> # These are prefixes for requests we test, but they are not same origin, so they will be skipped.
</span><span class="lines">@@ -8,7 +8,7 @@
</span><span class="cx"> http://127.0.0.1:8
</span><span class="cx"> 
</span><span class="cx"> # This should be ignored, because explicit entries are checked before online whitelist
</span><del>-counter.php?cached
</del><ins>+online-whitelist.php?cached
</ins><span class="cx"> 
</span><span class="cx"> # This should work normally.
</span><del>-counter.php?uncached
</del><span class="cx">\ No newline at end of file
</span><ins>+online-whitelist.php?uncached
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestsappcacheresourcesonlinewhitelistphpfromrev175731trunkLayoutTestshttptestsappcacheresourcescounterphp"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/http/tests/appcache/resources/online-whitelist.php (from rev 175731, trunk/LayoutTests/http/tests/appcache/resources/counter.php) (0 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/appcache/resources/online-whitelist.php                                (rev 0)
+++ trunk/LayoutTests/http/tests/appcache/resources/online-whitelist.php        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+&lt;?php
+require_once '../../resources/portabilityLayer.php';
+
+# This script may only be used by appcache/online-whitelist.html test, since it uses global data.
+$tmpFile = sys_get_temp_dir() . &quot;/&quot; . &quot;appcache_online-whitelist_state&quot;;
+
+function stepCounter($file)
+{
+    if (!file_exists($file)) {
+        file_put_contents($file, &quot;0&quot;);
+        return &quot;0&quot;;
+    }
+    $value = file_get_contents($file);
+    file_put_contents($file, ++$value);
+    return $value;
+}
+
+header(&quot;Expires: Thu, 01 Dec 2003 16:00:00 GMT&quot;);
+header(&quot;Cache-Control: no-cache, must-revalidate&quot;);
+header(&quot;Pragma: no-cache&quot;);
+header(&quot;Content-Type: text/plain&quot;);
+
+print(stepCounter($tmpFile));
+?&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestsappcacheresourcesremovecacheframe2html"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/appcache/resources/remove-cache-frame-2.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/appcache/resources/remove-cache-frame-2.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/appcache/resources/remove-cache-frame-2.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-&lt;html manifest=&quot;fail-on-update.php&quot;&gt;
</del><ins>+&lt;html manifest=&quot;remove-cache.php&quot;&gt;
</ins><span class="cx"> &lt;body&gt;
</span><span class="cx"> &lt;div id=result&gt;&lt;/div&gt;
</span><span class="cx"> &lt;script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsappcacheresourcesremovecacheframehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/appcache/resources/remove-cache-frame.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/appcache/resources/remove-cache-frame.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/appcache/resources/remove-cache-frame.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-&lt;html manifest=&quot;fail-on-update.php&quot;&gt;
</del><ins>+&lt;html manifest=&quot;remove-cache.php&quot;&gt;
</ins><span class="cx"> &lt;body&gt;
</span><span class="cx"> &lt;div id=result&gt;&lt;/div&gt;
</span><span class="cx"> &lt;script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsappcacheresourcesremovecachephpfromrev175731trunkLayoutTestshttptestsappcacheresourcesfailonupdatephp"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/http/tests/appcache/resources/remove-cache.php (from rev 175731, trunk/LayoutTests/http/tests/appcache/resources/fail-on-update.php) (0 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/appcache/resources/remove-cache.php                                (rev 0)
+++ trunk/LayoutTests/http/tests/appcache/resources/remove-cache.php        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -0,0 +1,39 @@
</span><ins>+&lt;?php
+require_once '../../resources/portabilityLayer.php';
+
+# This script may only be used by appcache/remove-cache.html test, since it uses global data.
+$tmpFile = sys_get_temp_dir() . &quot;/&quot; . &quot;appcache_remove-cache_state&quot;;
+
+function setState($newState, $file)
+{
+    file_put_contents($file, $newState);
+}
+
+function getState($file)
+{
+    if (!file_exists($file)) {
+        return &quot;Uninitialized&quot;;
+    }
+    return file_get_contents($file);
+}
+
+$command = $_GET['command'];
+$state = getState($tmpFile);
+
+header(&quot;Expires: Thu, 01 Dec 2003 16:00:00 GMT&quot;);
+header(&quot;Cache-Control: no-cache, must-revalidate&quot;);
+header(&quot;Pragma: no-cache&quot;);
+
+if ($command == &quot;reset&quot;) {
+    unlink($tmpFile);
+} else if ($command == &quot;delete&quot;) {
+    setState(&quot;Deleted&quot;, $tmpFile);
+} else if ($state == &quot;Uninitialized&quot;) {
+    header(&quot;Content-Type: text/cache-manifest&quot;);
+    print(&quot;CACHE MANIFEST\n&quot;);
+    print(&quot;NETWORK:\n&quot;);
+    print(&quot;remove-cache.php?command=\n&quot;);
+} else if ($state == &quot;Deleted&quot;) {
+    header('HTTP/1.0 404 Not Found');
+}
+?&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestsappcacheresourcesupdatecachephpfromrev175731trunkLayoutTestshttptestsappcacheresourcesversionedmanifestphp"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/http/tests/appcache/resources/update-cache.php (from rev 175731, trunk/LayoutTests/http/tests/appcache/resources/versioned-manifest.php) (0 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/appcache/resources/update-cache.php                                (rev 0)
+++ trunk/LayoutTests/http/tests/appcache/resources/update-cache.php        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -0,0 +1,37 @@
</span><ins>+&lt;?php
+require_once '../../resources/portabilityLayer.php';
+
+# This script may only be used by appcache/update-cache.html test, since it uses global data.
+$tmpFile = sys_get_temp_dir() . &quot;/&quot; . &quot;appcache_update-cache_state&quot;;
+
+function getCount($file)
+{
+    if (!file_exists($file)) {
+        file_put_contents($file, &quot;0&quot;);
+        return &quot;0&quot;;
+    }
+    return file_get_contents($file);
+}
+
+function stepCounter($file)
+{
+    if (file_exists($file)) {
+        $value = getCount($file);
+        file_put_contents($file, ++$value);
+    }
+}
+
+header(&quot;Expires: Thu, 01 Dec 2003 16:00:00 GMT&quot;);
+header(&quot;Cache-Control: no-cache, must-revalidate&quot;);
+header(&quot;Pragma: no-cache&quot;);
+header(&quot;Content-Type: text/cache-manifest&quot;);
+
+if (&quot;step&quot; == $_GET['command'])
+    stepCounter($tmpFile);
+
+print(&quot;CACHE MANIFEST\n&quot;);
+print(&quot;# version &quot; . getCount($tmpFile) . &quot;\n&quot;);
+print(&quot;uncacheable-resource.php\n&quot;); // with Cache-control: no-store
+print(&quot;NETWORK:\n&quot;);
+print(&quot;update-cache.php?command=\n&quot;);
+?&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestsappcacheresourcesversionedmanifestphp"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/appcache/resources/versioned-manifest.php (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/appcache/resources/versioned-manifest.php        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/appcache/resources/versioned-manifest.php        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -1,37 +0,0 @@
</span><del>-&lt;?php
-require_once '../../resources/portabilityLayer.php';
-
-$tmpFile = sys_get_temp_dir() . &quot;/&quot; . &quot;appcache_manifest_counter&quot;;
-
-function getCount($file)
-{
-    if (!file_exists($file)) {
-        file_put_contents($file, &quot;0&quot;);
-        return &quot;0&quot;;
-    }
-    return file_get_contents($file);
-}
-
-function stepCounter($file)
-{
-    if (file_exists($file)) {
-        $value = getCount($file);
-        file_put_contents($file, ++$value);
-    }
-}
-
-header(&quot;Expires: Thu, 01 Dec 2003 16:00:00 GMT&quot;);
-header(&quot;Cache-Control: no-cache, must-revalidate&quot;);
-header(&quot;Pragma: no-cache&quot;);
-header(&quot;Content-Type: text/cache-manifest&quot;);
-
-if (&quot;step&quot; == $_GET['command'])
-    stepCounter($tmpFile);
-
-print(&quot;CACHE MANIFEST\n&quot;);
-print(&quot;# version &quot; . getCount($tmpFile) . &quot;\n&quot;);
-print(&quot;counter.php\n&quot;);
-print(&quot;uncacheable-resource.php\n&quot;); // with Cache-control: no-store
-print(&quot;NETWORK:\n&quot;);
-print(&quot;versioned-manifest.php?command=\n&quot;);
-?&gt;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestsappcacheupdatecachehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/appcache/update-cache.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/appcache/update-cache.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/appcache/update-cache.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-&lt;html manifest=&quot;resources/versioned-manifest.php&quot;&gt;
</del><ins>+&lt;html manifest=&quot;resources/update-cache.php&quot;&gt;
</ins><span class="cx"> &lt;body&gt;
</span><span class="cx"> &lt;p&gt;Test a simple offline application self-update process. Should print a series of messages followed with DONE:&lt;/p&gt;
</span><span class="cx"> &lt;div id=result&gt;&lt;/div&gt;
</span><span class="lines">@@ -17,7 +17,7 @@
</span><span class="cx"> function modifyManifest()
</span><span class="cx"> {
</span><span class="cx">     var req = new XMLHttpRequest;
</span><del>-    req.open(&quot;GET&quot;, &quot;resources/versioned-manifest.php?command=step&quot;, false);
</del><ins>+    req.open(&quot;GET&quot;, &quot;resources/update-cache.php?command=step&quot;, false);
</ins><span class="cx">     req.send(false);
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestshttptestscachenetworkerrorduringrevalidationhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/cache/network-error-during-revalidation.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/cache/network-error-during-revalidation.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/cache/network-error-during-revalidation.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -16,7 +16,7 @@
</span><span class="cx"> {
</span><span class="cx">     log(state ? &quot;Enabling network&quot; : &quot;Disabling network&quot;);
</span><span class="cx">     var req = new XMLHttpRequest;
</span><del>-    req.open(&quot;GET&quot;, &quot;/resources/network-simulator.php?command=&quot; + (state ? &quot;connect&quot; : &quot;disconnect&quot;), false);
</del><ins>+    req.open(&quot;GET&quot;, &quot;/resources/network-simulator.php?test=cache-network-error-during-revalidation&amp;command=&quot; + (state ? &quot;connect&quot; : &quot;disconnect&quot;), false);
</ins><span class="cx">     req.send(&quot;&quot;);
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestshttptestscachepostredirectgetphp"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/cache/post-redirect-get.php (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/cache/post-redirect-get.php        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/cache/post-redirect-get.php        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -30,7 +30,7 @@
</span><span class="cx"> {
</span><span class="cx">     document.getElementById(&quot;result&quot;).appendChild(document.createTextNode(message));
</span><span class="cx">     var xhr = new XMLHttpRequest;
</span><del>-    xhr.open(&quot;GET&quot;, &quot;../resources/reset-temp-file.php?filename=post.tmp&quot;, false);
</del><ins>+    xhr.open(&quot;GET&quot;, &quot;../resources/reset-temp-file.php?filename=cache_post-redirect-get_state&quot;, false);
</ins><span class="cx">     xhr.send(null);
</span><span class="cx">     if (window.testRunner)
</span><span class="cx">         testRunner.notifyDone();
</span><span class="lines">@@ -41,19 +41,19 @@
</span><span class="cx"> if ($_GET[&quot;finish&quot;] == &quot;true&quot;) {
</span><span class="cx">     // The initial load of the image might have been done from the cache. In that case, touch the
</span><span class="cx">     // state file to indicate a load has already occurred.
</span><del>-    if (!file_exists(sys_get_temp_dir() . &quot;/post.tmp&quot;)) {
</del><ins>+    if (!file_exists(sys_get_temp_dir() . &quot;/cache_post-redirect-get_state&quot;)) {
</ins><span class="cx">         echo &quot;&lt;script&gt;&quot;;
</span><span class="cx">         echo &quot;xhr = new XMLHttpRequest;&quot;;
</span><del>-        echo &quot;xhr.open('GET', '../resources/touch-temp-file.php?filename=post.tmp', false);&quot;;
</del><ins>+        echo &quot;xhr.open('GET', '../resources/touch-temp-file.php?filename=cache_post-redirect-get_state', false);&quot;;
</ins><span class="cx">         echo &quot;xhr.send(null);&quot;;
</span><span class="cx">         echo &quot;&lt;/script&gt;&quot;;
</span><span class="cx">     }
</span><del>-    echo &quot;&lt;img src='resources/post-image-to-verify.php' onload=\&quot;logAndFinish('PASS');\&quot; onerror=\&quot;logAndFinish('FAIL');\&quot;&gt;&lt;/img&gt;&quot;;
</del><ins>+    echo &quot;&lt;img src='resources/post-image-to-verify.php?test=cache_post-redirect-get' onload=\&quot;logAndFinish('PASS');\&quot; onerror=\&quot;logAndFinish('FAIL');\&quot;&gt;&lt;/img&gt;&quot;;
</ins><span class="cx"> } else {
</span><span class="cx">     echo &quot;&lt;form action='post-redirect-get.php' method='post'&gt;&quot;;
</span><span class="cx">     echo &quot;&lt;input type='submit' id='submit' name='submit' value='redirect'&gt;&quot;;
</span><span class="cx">     echo &quot;&lt;/form&gt;&quot;;
</span><del>-    echo &quot;&lt;img src='resources/post-image-to-verify.php' onload=\&quot;document.getElementById('submit').click();\&quot; onerror=\&quot;logAndFinish('FAIL on initial load');\&quot;&gt;&lt;/img&gt;&quot;;
</del><ins>+    echo &quot;&lt;img src='resources/post-image-to-verify.php?test=cache_post-redirect-get' onload=\&quot;document.getElementById('submit').click();\&quot; onerror=\&quot;logAndFinish('FAIL on initial load');\&quot;&gt;&lt;/img&gt;&quot;;
</ins><span class="cx"> } 
</span><span class="cx"> ?&gt;
</span><span class="cx"> &lt;/body&gt;
</span></span></pre></div>
<a id="trunkLayoutTestshttptestscachepostwithcachedsubresourcesphp"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/cache/post-with-cached-subresources.php (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/cache/post-with-cached-subresources.php        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/cache/post-with-cached-subresources.php        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -24,7 +24,7 @@
</span><span class="cx"> {
</span><span class="cx">     document.getElementById(&quot;result&quot;).appendChild(document.createTextNode(message));
</span><span class="cx">     var xhr = new XMLHttpRequest;
</span><del>-    xhr.open(&quot;GET&quot;, &quot;../resources/reset-temp-file.php?filename=post.tmp&quot;, false);
</del><ins>+    xhr.open(&quot;GET&quot;, &quot;../resources/reset-temp-file.php?filename=cache_post-with-cached-subresources_state&quot;, false);
</ins><span class="cx">     xhr.send(null);
</span><span class="cx">     if (window.testRunner)
</span><span class="cx">         testRunner.notifyDone();
</span><span class="lines">@@ -35,19 +35,19 @@
</span><span class="cx"> if ($_POST[&quot;submit&quot;] == &quot;finish&quot;) {
</span><span class="cx">     // The initial load of the image might have been done from the cache. In that case, touch the
</span><span class="cx">     // state file to indicate a load has already occurred.
</span><del>-    if (!file_exists(sys_get_temp_dir() . &quot;/post.tmp&quot;)) {
</del><ins>+    if (!file_exists(sys_get_temp_dir() . &quot;/cache_post-with-cached-subresources_state&quot;)) {
</ins><span class="cx">         echo &quot;&lt;script&gt;&quot;;
</span><span class="cx">         echo &quot;xhr = new XMLHttpRequest;&quot;;
</span><del>-        echo &quot;xhr.open('GET', '../resources/touch-temp-file.php?filename=post.tmp', false);&quot;;
</del><ins>+        echo &quot;xhr.open('GET', '../resources/touch-temp-file.php?filename=cache_post-with-cached-subresources_state', false);&quot;;
</ins><span class="cx">         echo &quot;xhr.send(null);&quot;;
</span><span class="cx">         echo &quot;&lt;/script&gt;&quot;;
</span><span class="cx">     }
</span><del>-    echo &quot;&lt;img src='resources/post-image-to-verify.php' onload=\&quot;logAndFinish('PASS');\&quot; onerror=\&quot;logAndFinish('FAIL');\&quot;&gt;&lt;/img&gt;&quot;;
</del><ins>+    echo &quot;&lt;img src='resources/post-image-to-verify.php?test=cache_post-with-cached-subresources' onload=\&quot;logAndFinish('PASS');\&quot; onerror=\&quot;logAndFinish('FAIL');\&quot;&gt;&lt;/img&gt;&quot;;
</ins><span class="cx"> } else {
</span><span class="cx">     echo &quot;&lt;form action='post-with-cached-subresources.php' method='post'&gt;&quot;;
</span><span class="cx">     echo &quot;&lt;input type='submit' id='submit' name='submit' value='finish'&gt;&quot;;
</span><span class="cx">     echo &quot;&lt;/form&gt;&quot;;
</span><del>-    echo &quot;&lt;img src='resources/post-image-to-verify.php' onload=\&quot;document.getElementById('submit').click();\&quot; onerror=\&quot;logAndFinish('FAIL on initial load');\&quot;&gt;&lt;/img&gt;&quot;;
</del><ins>+    echo &quot;&lt;img src='resources/post-image-to-verify.php?test=cache_post-with-cached-subresources' onload=\&quot;document.getElementById('submit').click();\&quot; onerror=\&quot;logAndFinish('FAIL on initial load');\&quot;&gt;&lt;/img&gt;&quot;;
</ins><span class="cx"> } 
</span><span class="cx"> ?&gt;
</span><span class="cx"> &lt;/body&gt;
</span></span></pre></div>
<a id="trunkLayoutTestshttptestscachereloadmainresourcephp"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/cache/reload-main-resource.php (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/cache/reload-main-resource.php        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/cache/reload-main-resource.php        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -1,8 +1,8 @@
</span><span class="cx"> &lt;?php
</span><span class="cx"> require_once '../resources/portabilityLayer.php';
</span><span class="cx"> clearstatcache();
</span><del>-if (file_exists(sys_get_temp_dir() . &quot;/reload-main-resource.tmp&quot;))
-    unlink(sys_get_temp_dir() . &quot;/reload-main-resource.tmp&quot;);
</del><ins>+if (file_exists(sys_get_temp_dir() . &quot;/cache-reload-main-resource.tmp&quot;))
+    unlink(sys_get_temp_dir() . &quot;/cache-reload-main-resource.tmp&quot;);
</ins><span class="cx"> ?&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;body&gt;
</span></span></pre></div>
<a id="trunkLayoutTestshttptestscacheresourcesnetworkerrorduringrevalidationframehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/cache/resources/network-error-during-revalidation-frame.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/cache/resources/network-error-during-revalidation-frame.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/cache/resources/network-error-during-revalidation-frame.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -1 +1 @@
</span><del>-&lt;img src=&quot;/resources/network-simulator.php?path=/misc/resources/compass.jpg&amp;allow-caching=1&quot;&gt;
</del><ins>+&lt;img src=&quot;/resources/network-simulator.php?test=cache-network-error-during-revalidation&amp;path=/misc/resources/compass.jpg&amp;allow-caching=1&quot;&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestscacheresourcespartitionedcacheechostatephp"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/cache/resources/partitioned-cache-echo-state.php (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/cache/resources/partitioned-cache-echo-state.php        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/cache/resources/partitioned-cache-echo-state.php        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -4,6 +4,7 @@
</span><span class="cx"> header('Content-Type: application/javascript');
</span><span class="cx"> header('Cache-Control: max-age=3600');
</span><span class="cx"> 
</span><del>-$tmpFile = sys_get_temp_dir() . &quot;/&quot; . &quot;partitioned-cache-state&quot;;
</del><ins>+# This script may only be used by cache/partitioned-cache.html test, since it uses global data.
+$tmpFile = sys_get_temp_dir() . &quot;/&quot; . &quot;cache-partitioned-cache-state&quot;;
</ins><span class="cx"> ?&gt;
</span><span class="cx"> var response = '&lt;?php print file_get_contents($tmpFile); ?&gt;';
</span></span></pre></div>
<a id="trunkLayoutTestshttptestscacheresourcespartitionedcacheloaderhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/cache/resources/partitioned-cache-loader.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/cache/resources/partitioned-cache-loader.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/cache/resources/partitioned-cache-loader.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -5,7 +5,7 @@
</span><span class="cx"> function setServerState(string)
</span><span class="cx"> {
</span><span class="cx">     var xhr = new XMLHttpRequest;
</span><del>-    xhr.open('POST', '/resources/write-temp-file.php?filename=partitioned-cache-state&amp;data=' + string, false);
</del><ins>+    xhr.open('POST', '/resources/write-temp-file.php?filename=cache-partitioned-cache-state&amp;data=' + string, false);
</ins><span class="cx">     xhr.send();
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestshttptestscacheresourcespostimagetoverifyphp"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/cache/resources/post-image-to-verify.php (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/cache/resources/post-image-to-verify.php        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/cache/resources/post-image-to-verify.php        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -2,11 +2,11 @@
</span><span class="cx"> require_once '../../resources/portabilityLayer.php';
</span><span class="cx"> 
</span><span class="cx"> clearstatcache();
</span><del>-if (file_exists(sys_get_temp_dir() . &quot;/post.tmp&quot;)) {
</del><ins>+if (file_exists(sys_get_temp_dir() . &quot;/&quot; . $_GET[&quot;test&quot;] . &quot;_state&quot;)) {
</ins><span class="cx">     header('HTTP/1.1 404 Not Found');
</span><span class="cx">     exit();
</span><span class="cx"> } else {
</span><del>-    $tmpFile = fopen(sys_get_temp_dir() . &quot;/post.tmp&quot;, 'w');
</del><ins>+    $tmpFile = fopen(sys_get_temp_dir() . &quot;/&quot; . $_GET[&quot;test&quot;] . &quot;_state&quot;, 'w');
</ins><span class="cx">     fclose($tmpFile);
</span><span class="cx">     
</span><span class="cx">     $filename = 'compass-no-cache.jpg';
</span></span></pre></div>
<a id="trunkLayoutTestshttptestscacheresourcesreloadmainresourceiframephp"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/cache/resources/reload-main-resource-iframe.php (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/cache/resources/reload-main-resource-iframe.php        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/cache/resources/reload-main-resource-iframe.php        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -1,6 +1,6 @@
</span><span class="cx"> &lt;?php
</span><del>-if (file_exists(sys_get_temp_dir() . &quot;/reload-main-resource.tmp&quot;)) {
-    unlink(sys_get_temp_dir() . &quot;/reload-main-resource.tmp&quot;);
</del><ins>+if (file_exists(sys_get_temp_dir() . &quot;/cache-reload-main-resource.tmp&quot;)) {
+    unlink(sys_get_temp_dir() . &quot;/cache-reload-main-resource.tmp&quot;);
</ins><span class="cx">     echo &quot;&lt;body&gt;&quot;;
</span><span class="cx">     echo &quot;&lt;script&gt;&quot;;
</span><span class="cx">     echo &quot;window.parent.finish();&quot;;
</span><span class="lines">@@ -9,7 +9,7 @@
</span><span class="cx">     exit();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-$tmpFile = fopen(sys_get_temp_dir() . &quot;/reload-main-resource.tmp&quot;, 'w');
</del><ins>+$tmpFile = fopen(sys_get_temp_dir() . &quot;/cache-reload-main-resource.tmp&quot;, 'w');
</ins><span class="cx"> fclose($tmpFile);
</span><span class="cx"> 
</span><span class="cx"> $max_age = 12 * 31 * 24 * 60 * 60; //one year
</span></span></pre></div>
<a id="trunkLayoutTestshttptestscachestoppedrevalidationhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/cache/stopped-revalidation.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/cache/stopped-revalidation.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/cache/stopped-revalidation.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -5,15 +5,6 @@
</span><span class="cx">     testRunner.waitUntilDone();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-function setNetworkEnabled(state)
-{
-    var req = new XMLHttpRequest;
-    req.open(&quot;GET&quot;, &quot;/resources/network-simulator.php?command=&quot; + (state ? &quot;connect&quot; : &quot;disconnect&quot;), false);
-    req.send(&quot;&quot;);
-}
-
-setNetworkEnabled(true);
-
</del><span class="cx"> function test()
</span><span class="cx"> {
</span><span class="cx">     location='resources/stopped-revalidation-result.html';
</span></span></pre></div>
<a id="trunkLayoutTestshttptestscachesubresourcefragmentidentifierhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/cache/subresource-fragment-identifier.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/cache/subresource-fragment-identifier.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/cache/subresource-fragment-identifier.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -11,7 +11,7 @@
</span><span class="cx">         {
</span><span class="cx">             try {
</span><span class="cx">                 var req = new XMLHttpRequest;
</span><del>-                req.open(&quot;GET&quot;, &quot;http://127.0.0.1:8000/resources/network-simulator.php?command=&quot; + cmd, false);
</del><ins>+                req.open(&quot;GET&quot;, &quot;http://127.0.0.1:8000/resources/network-simulator.php?test=cache-subresource-fragment-identifier&amp;command=&quot; + cmd, false);
</ins><span class="cx">                 req.send(null);
</span><span class="cx">                 return req.responseText;
</span><span class="cx">             } catch (ex) {
</span><span class="lines">@@ -41,18 +41,18 @@
</span><span class="cx">   
</span><span class="cx">     &lt;style&gt;
</span><span class="cx">         div {
</span><del>-            background-image: url('http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=bg_pattern.jpg#div');
</del><ins>+            background-image: url('http://127.0.0.1:8000/resources/network-simulator.php?test=cache-subresource-fragment-identifier&amp;command=log-resource-request&amp;path=bg_pattern.jpg#div');
</ins><span class="cx">         }
</span><span class="cx">         p {
</span><del>-            background-image: url('http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=bg_pattern.jpg#p');
</del><ins>+            background-image: url('http://127.0.0.1:8000/resources/network-simulator.php?test=cache-subresource-fragment-identifier&amp;command=log-resource-request&amp;path=bg_pattern.jpg#p');
</ins><span class="cx">         }
</span><span class="cx">     &lt;/style&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;/head&gt;
</span><span class="cx"> &lt;body&gt;
</span><span class="cx">     &lt;div style=&quot;width: 100px; height: 100px;&quot;&gt;&lt;/div&gt;
</span><del>-    &lt;img src=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=bg_pattern.jpg#img1&quot;&gt;
-    &lt;img src=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=bg_pattern.jpg#img2&quot;&gt;
</del><ins>+    &lt;img src=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=cache-subresource-fragment-identifier&amp;command=log-resource-request&amp;path=bg_pattern.jpg#img1&quot;&gt;
+    &lt;img src=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=cache-subresource-fragment-identifier&amp;command=log-resource-request&amp;path=bg_pattern.jpg#img2&quot;&gt;
</ins><span class="cx">     
</span><span class="cx">   Test that resources with fragment identifiers are loaded only once.
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestshttptestscssborderimageloadinghtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/css/border-image-loading.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/css/border-image-loading.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/css/border-image-loading.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -1,17 +1,19 @@
</span><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><span class="cx">   &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;&gt;
</span><ins>+  &lt;!-- FIXME: This test relies on no preloading to happen before scripts run. --&gt;
</ins><span class="cx">   &lt;script src=&quot;resources/request-logging.js&quot; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;
</span><ins>+  &lt;script&gt;ResourceLogging.start(&quot;css-border-image-loading&quot;);&lt;/script&gt;
</ins><span class="cx"> 
</span><span class="cx">   &lt;style type=&quot;text/css&quot;&gt;
</span><span class="cx">     .box {
</span><span class="cx">       height: 100px;
</span><span class="cx">       width: 100px;
</span><del>-      -webkit-border-image: url(&quot;/resources/network-simulator.php?command=log-resource-request&amp;path=border1.jpg&quot;) 10 10 10 10 stretch;
</del><ins>+      -webkit-border-image: url(&quot;/resources/network-simulator.php?test=css-border-image-loading&amp;command=log-resource-request&amp;path=border1.jpg&quot;) 10 10 10 10 stretch;
</ins><span class="cx">     }
</span><span class="cx">     
</span><span class="cx">     .bordered {
</span><del>-      -webkit-border-image: url(&quot;/resources/network-simulator.php?command=log-resource-request&amp;path=border2.jpg&quot;) 10 10 10 10 stretch;
</del><ins>+      -webkit-border-image: url(&quot;/resources/network-simulator.php?test=css-border-image-loading&amp;command=log-resource-request&amp;path=border2.jpg&quot;) 10 10 10 10 stretch;
</ins><span class="cx">     }
</span><span class="cx">     
</span><span class="cx">   &lt;/style&gt;
</span></span></pre></div>
<a id="trunkLayoutTestshttptestscsscssimageloadinghtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/css/css-image-loading.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/css/css-image-loading.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/css/css-image-loading.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -1,32 +1,34 @@
</span><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><span class="cx">   &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;&gt;
</span><ins>+  &lt;!-- FIXME: This test relies on no preloading to happen before scripts run. --&gt;
</ins><span class="cx">   &lt;script src=&quot;resources/request-logging.js&quot; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;
</span><ins>+  &lt;script&gt;ResourceLogging.start(&quot;css-css-image-loading&quot;);&lt;/script&gt;
</ins><span class="cx"> 
</span><span class="cx">   &lt;style type=&quot;text/css&quot;&gt;
</span><span class="cx">     .box {
</span><span class="cx">       height: 100px;
</span><span class="cx">       width: 100px;
</span><del>-      background-image: url(&quot;/resources/network-simulator.php?command=log-resource-request&amp;path=background1.jpg&quot;);
</del><ins>+      background-image: url(&quot;/resources/network-simulator.php?test=css-css-image-loading&amp;command=log-resource-request&amp;path=background1.jpg&quot;);
</ins><span class="cx">     }
</span><span class="cx">     
</span><span class="cx">     .background {
</span><del>-      background-image: url(&quot;/resources/network-simulator.php?command=log-resource-request&amp;path=background2.jpg&quot;);
</del><ins>+      background-image: url(&quot;/resources/network-simulator.php?test=css-css-image-loading&amp;command=log-resource-request&amp;path=background2.jpg&quot;);
</ins><span class="cx">     }
</span><span class="cx">     
</span><span class="cx">     .content {
</span><del>-      content: url(&quot;/resources/network-simulator.php?command=log-resource-request&amp;path=content-image1.jpg&quot;);
</del><ins>+      content: url(&quot;/resources/network-simulator.php?test=css-css-image-loading&amp;command=log-resource-request&amp;path=content-image1.jpg&quot;);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     .test {
</span><del>-      content: url(&quot;/resources/network-simulator.php?command=log-resource-request&amp;path=content-image2.jpg&quot;) &quot;foopy&quot; url(&quot;/resources/network-simulator.php?command=log-resource-request&amp;path=content-image3.jpg&quot;);
</del><ins>+      content: url(&quot;/resources/network-simulator.php?test=css-css-image-loading&amp;command=log-resource-request&amp;path=content-image2.jpg&quot;) &quot;foopy&quot; url(&quot;/resources/network-simulator.php?test=css-css-image-loading&amp;command=log-resource-request&amp;path=content-image3.jpg&quot;);
</ins><span class="cx">     }
</span><span class="cx">     
</span><span class="cx">     ul {
</span><del>-      list-style-image: url(&quot;/resources/network-simulator.php?command=log-resource-request&amp;path=list-image1.jpg&quot;);
</del><ins>+      list-style-image: url(&quot;/resources/network-simulator.php?test=css-css-image-loading&amp;command=log-resource-request&amp;path=list-image1.jpg&quot;);
</ins><span class="cx">     }
</span><span class="cx">     .list {
</span><del>-      list-style-image: url(&quot;/resources/network-simulator.php?command=log-resource-request&amp;path=list-image2.jpg&quot;);
</del><ins>+      list-style-image: url(&quot;/resources/network-simulator.php?test=css-css-image-loading&amp;command=log-resource-request&amp;path=list-image2.jpg&quot;);
</ins><span class="cx">     }
</span><span class="cx">     
</span><span class="cx">   &lt;/style&gt;
</span></span></pre></div>
<a id="trunkLayoutTestshttptestscssmaskimageloadinghtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/css/mask-image-loading.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/css/mask-image-loading.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/css/mask-image-loading.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -1,17 +1,19 @@
</span><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><span class="cx">   &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;&gt;
</span><ins>+  &lt;!-- FIXME: This test relies on no preloading to happen before scripts run. --&gt;
</ins><span class="cx">   &lt;script src=&quot;resources/request-logging.js&quot; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;
</span><ins>+  &lt;script&gt;ResourceLogging.start(&quot;css-mask-image-loading&quot;);&lt;/script&gt;
</ins><span class="cx"> 
</span><span class="cx">   &lt;style type=&quot;text/css&quot;&gt;
</span><span class="cx">     .box {
</span><span class="cx">       height: 100px;
</span><span class="cx">       width: 100px;
</span><del>-      -webkit-mask-box-image: url(&quot;/resources/network-simulator.php?command=log-resource-request&amp;path=mask1.jpg&quot;);
</del><ins>+      -webkit-mask-box-image: url(&quot;/resources/network-simulator.php?test=css-mask-image-loading&amp;command=log-resource-request&amp;path=mask1.jpg&quot;);
</ins><span class="cx">     }
</span><span class="cx">     
</span><span class="cx">     .masked {
</span><del>-      -webkit-mask-box-image: url(&quot;/resources/network-simulator.php?command=log-resource-request&amp;path=mask2.jpg&quot;);
</del><ins>+      -webkit-mask-box-image: url(&quot;/resources/network-simulator.php?test=css-mask-image-loading&amp;command=log-resource-request&amp;path=mask2.jpg&quot;);
</ins><span class="cx">     }
</span><span class="cx">     
</span><span class="cx">   &lt;/style&gt;
</span></span></pre></div>
<a id="trunkLayoutTestshttptestscssreflectionmaskimageloadinghtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/css/reflection-mask-image-loading.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/css/reflection-mask-image-loading.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/css/reflection-mask-image-loading.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -1,17 +1,19 @@
</span><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><span class="cx">   &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;&gt;
</span><ins>+  &lt;!-- FIXME: This test relies on no preloading to happen before scripts run. --&gt;
</ins><span class="cx">   &lt;script src=&quot;resources/request-logging.js&quot; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;
</span><ins>+  &lt;script&gt;ResourceLogging.start(&quot;css-refleciton-mask-image-loading&quot;);&lt;/script&gt;
</ins><span class="cx"> 
</span><span class="cx">   &lt;style type=&quot;text/css&quot;&gt;
</span><span class="cx">     .box {
</span><span class="cx">       height: 100px;
</span><span class="cx">       width: 100px;
</span><del>-      -webkit-box-reflect: below 10px url(&quot;/resources/network-simulator.php?command=log-resource-request&amp;path=mask1.jpg&quot;);
</del><ins>+      -webkit-box-reflect: below 10px url(&quot;/resources/network-simulator.php?test=css-refleciton-mask-image-loading&amp;command=log-resource-request&amp;path=mask1.jpg&quot;);
</ins><span class="cx">     }
</span><span class="cx">     
</span><span class="cx">     .reflected {
</span><del>-      -webkit-box-reflect: below 10px url(&quot;/resources/network-simulator.php?command=log-resource-request&amp;path=mask2.jpg&quot;);
</del><ins>+      -webkit-box-reflect: below 10px url(&quot;/resources/network-simulator.php?test=css-refleciton-mask-image-loading&amp;command=log-resource-request&amp;path=mask2.jpg&quot;);
</ins><span class="cx">     }
</span><span class="cx">     
</span><span class="cx">   &lt;/style&gt;
</span></span></pre></div>
<a id="trunkLayoutTestshttptestscssresourcesrequestloggingjs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/css/resources/request-logging.js (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/css/resources/request-logging.js        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/css/resources/request-logging.js        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -1,41 +1,47 @@
</span><del>-function CallCommand(cmd)
-{
- try {
-     var req = new XMLHttpRequest;
-     req.open(&quot;GET&quot;, &quot;/resources/network-simulator.php?command=&quot; + cmd, false);
-     req.send(null);
-     return req.responseText;
- } catch (ex) {
-     return &quot;&quot;;
- }
-}
</del><ins>+var ResourceLogging = {
+    CallCommand: function(cmd)
+    {
+        try {
+            var req = new XMLHttpRequest;
+            req.open(&quot;GET&quot;, &quot;/resources/network-simulator.php?test=&quot; + this.testName + &quot;&amp;command=&quot; + cmd, false);
+            req.send(null);
+            return req.responseText;
+        } catch (ex) {
+            return &quot;&quot;;
+        }
+    },
</ins><span class="cx"> 
</span><del>-function startTest()
-{
-    if (window.testRunner) {
-        testRunner.dumpAsText();
-        testRunner.waitUntilDone();
-    }
</del><ins>+    startTest: function()
+    {
+        if (window.testRunner) {
+            testRunner.dumpAsText();
+            testRunner.waitUntilDone();
+        }
</ins><span class="cx">  
</span><del>-    window.setTimeout(endTest, 0);
-}
</del><ins>+        window.setTimeout(this.endTest.bind(this), 0);
+    },
</ins><span class="cx"> 
</span><del>-function endTest()
-{
-    getResourceLog();
-    CallCommand(&quot;clear-resource-request-log&quot;);
</del><ins>+    endTest: function()
+    {
+        this.getResourceLog();
+        this.CallCommand(&quot;clear-resource-request-log&quot;);
</ins><span class="cx"> 
</span><del>-    if (window.testRunner)
-        testRunner.notifyDone();
-}
</del><ins>+        if (window.testRunner)
+            testRunner.notifyDone();
+    },
</ins><span class="cx"> 
</span><del>-function getResourceLog()
-{
-    var log = CallCommand(&quot;get-resource-request-log&quot;);
-    var logLines = log.split('\n');
-    logLines.sort();
-    document.getElementById('result').innerText = logLines.join('\n');
-}
</del><ins>+    getResourceLog: function()
+    {
+        var log = this.CallCommand(&quot;get-resource-request-log&quot;);
+        var logLines = log.split('\n');
+        logLines.sort();
+        document.getElementById('result').innerText = logLines.join('\n');
+    },
</ins><span class="cx"> 
</span><del>-CallCommand(&quot;start-resource-request-log&quot;);
-window.addEventListener('load', startTest, false);
</del><ins>+    start: function(testName)
+    {
+        this.testName = testName;
+        this.CallCommand(&quot;start-resource-request-log&quot;);
+        window.addEventListener('load', this.startTest.bind(this), false);
+    },
+};
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestsloadingpreloadimgtesthtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/loading/preload-img-test.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/loading/preload-img-test.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/loading/preload-img-test.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -6,7 +6,7 @@
</span><span class="cx">   {
</span><span class="cx">        try {
</span><span class="cx">            var req = new XMLHttpRequest;
</span><del>-           req.open(&quot;GET&quot;, &quot;/resources/network-simulator.php?command=&quot; + cmd, false);
</del><ins>+           req.open(&quot;GET&quot;, &quot;/resources/network-simulator.php?test=loading-preload-img-test&amp;command=&quot; + cmd, false);
</ins><span class="cx">            req.send(null);
</span><span class="cx">            return req.responseText;
</span><span class="cx">        } catch (ex) {
</span><span class="lines">@@ -49,7 +49,7 @@
</span><span class="cx">   &lt;script type=&quot;text/javascript&quot; src=&quot;./resources/empty.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;/head&gt;
</span><span class="cx"> &lt;body onload=&quot;test()&quot;&gt;
</span><del>-  &lt;img id =&quot;test_image&quot; src=&quot;/resources/network-simulator.php?command=increase-resource-count&amp;path=/loading/resources/preload-test.jpg&quot; onerror=&quot;img_error()&quot; onload=&quot;setTimeout(checkAccessCount, 3000)&quot;&gt;
</del><ins>+  &lt;img id =&quot;test_image&quot; src=&quot;/resources/network-simulator.php?test=loading-preload-img-test&amp;command=increase-resource-count&amp;path=/loading/resources/preload-test.jpg&quot; onerror=&quot;img_error()&quot; onload=&quot;setTimeout(checkAccessCount, 3000)&quot;&gt;
</ins><span class="cx">   &lt;p&gt;This test is to test whether preload image will require 2 more requests or not.&lt;/p&gt;
</span><span class="cx">   &lt;span id=&quot;outputPanel&quot;&gt;PASSED&lt;/span&gt;
</span><span class="cx"> &lt;/body&gt;
</span></span></pre></div>
<a id="trunkLayoutTestshttptestslocallinkstylesheetloadorderpreloadhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/local/link-stylesheet-load-order-preload.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/local/link-stylesheet-load-order-preload.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/local/link-stylesheet-load-order-preload.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -14,7 +14,7 @@
</span><span class="cx">     {
</span><span class="cx">      try {
</span><span class="cx">          var req = new XMLHttpRequest;
</span><del>-         req.open(&quot;GET&quot;, &quot;http://127.0.0.1:8000/resources/network-simulator.php?command=&quot; + cmd, false);
</del><ins>+         req.open(&quot;GET&quot;, &quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order-preload&amp;command=&quot; + cmd, false);
</ins><span class="cx">          req.send(null);
</span><span class="cx">          return req.responseText;
</span><span class="cx">      } catch (ex) {
</span><span class="lines">@@ -43,35 +43,35 @@
</span><span class="cx">   &lt;/script&gt;
</span><span class="cx">   
</span><span class="cx">   &lt;!-- This will trigger the preload scanner --&gt;
</span><del>-  &lt;script src=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=script.js&quot;&gt;&lt;/script&gt;
</del><ins>+  &lt;script src=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order-preload&amp;command=log-resource-request&amp;path=script.js&quot;&gt;&lt;/script&gt;
</ins><span class="cx"> 
</span><del>-  &lt;link rel=stylesheet href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=no-media.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-empty.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;all&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-all.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;print&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-print.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;screen&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-screen.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;screen and (min-width: 1px)&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-screen-query-success.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;braille, screen&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-braille-screen.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;screen and (min-width: 1000000px)&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-screen-query-fail.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;aural&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-aural.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;braille&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-braille.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;handheld&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=median-handheld.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;projection&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-projection.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;tty&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-tty.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;tv&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-tv.css&quot;&gt;
-  &lt;link rel=stylesheet href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=no-media-2.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-empty-2.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;all&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-all-2.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;print&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-print-2.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;screen&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-screen-2.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;screen and (min-width: 1px)&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-screen-query-success-2.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;braille, screen&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-braille-screen-2.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;screen and (min-width: 1000000px)&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-screen-query-fail-2.css&quot;&gt;
</del><ins>+  &lt;link rel=stylesheet href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order-preload&amp;command=log-resource-request&amp;path=no-media.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order-preload&amp;command=log-resource-request&amp;path=media-empty.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;all&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order-preload&amp;command=log-resource-request&amp;path=media-all.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;print&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order-preload&amp;command=log-resource-request&amp;path=media-print.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;screen&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order-preload&amp;command=log-resource-request&amp;path=media-screen.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;screen and (min-width: 1px)&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order-preload&amp;command=log-resource-request&amp;path=media-screen-query-success.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;braille, screen&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order-preload&amp;command=log-resource-request&amp;path=media-braille-screen.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;screen and (min-width: 1000000px)&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order-preload&amp;command=log-resource-request&amp;path=media-screen-query-fail.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;aural&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order-preload&amp;command=log-resource-request&amp;path=media-aural.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;braille&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order-preload&amp;command=log-resource-request&amp;path=media-braille.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;handheld&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order-preload&amp;command=log-resource-request&amp;path=median-handheld.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;projection&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order-preload&amp;command=log-resource-request&amp;path=media-projection.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;tty&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order-preload&amp;command=log-resource-request&amp;path=media-tty.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;tv&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order-preload&amp;command=log-resource-request&amp;path=media-tv.css&quot;&gt;
+  &lt;link rel=stylesheet href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order-preload&amp;command=log-resource-request&amp;path=no-media-2.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order-preload&amp;command=log-resource-request&amp;path=media-empty-2.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;all&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order-preload&amp;command=log-resource-request&amp;path=media-all-2.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;print&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order-preload&amp;command=log-resource-request&amp;path=media-print-2.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;screen&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order-preload&amp;command=log-resource-request&amp;path=media-screen-2.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;screen and (min-width: 1px)&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order-preload&amp;command=log-resource-request&amp;path=media-screen-query-success-2.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;braille, screen&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order-preload&amp;command=log-resource-request&amp;path=media-braille-screen-2.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;screen and (min-width: 1000000px)&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order-preload&amp;command=log-resource-request&amp;path=media-screen-query-fail-2.css&quot;&gt;
</ins><span class="cx">   
</span><span class="cx"> &lt;/head&gt;
</span><span class="cx"> &lt;body&gt;
</span><del>-  &lt;img src=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=image.jpg&quot;&gt;
-  &lt;script src=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=script-2.js&quot;&gt;&lt;/script&gt;
</del><ins>+  &lt;img src=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order-preload&amp;command=log-resource-request&amp;path=image.jpg&quot;&gt;
+  &lt;script src=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order-preload&amp;command=log-resource-request&amp;path=script-2.js&quot;&gt;&lt;/script&gt;
</ins><span class="cx"> 
</span><span class="cx">   Test stylesheet load scheduling with preload scanner. Resource loads for screen stylesheets should be scheduled first, others should be scheduled last.
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestshttptestslocallinkstylesheetloadorderhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/local/link-stylesheet-load-order.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/local/link-stylesheet-load-order.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/local/link-stylesheet-load-order.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -14,7 +14,7 @@
</span><span class="cx">     {
</span><span class="cx">      try {
</span><span class="cx">          var req = new XMLHttpRequest;
</span><del>-         req.open(&quot;GET&quot;, &quot;http://127.0.0.1:8000/resources/network-simulator.php?command=&quot; + cmd, false);
</del><ins>+         req.open(&quot;GET&quot;, &quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order&amp;command=&quot; + cmd, false);
</ins><span class="cx">          req.send(null);
</span><span class="cx">          return req.responseText;
</span><span class="cx">      } catch (ex) {
</span><span class="lines">@@ -42,33 +42,33 @@
</span><span class="cx">     window.addEventListener('load', endTest, false);
</span><span class="cx">   &lt;/script&gt;
</span><span class="cx"> 
</span><del>-  &lt;link rel=stylesheet href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=no-media.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-empty.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;all&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-all.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;print&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-print.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;screen&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-screen.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;screen and (min-width: 1px)&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-screen-query-success.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;braille, screen&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-braille-screen.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;screen and (min-width: 1000000px)&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-screen-query-fail.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;aural&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-aural.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;braille&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-braille.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;handheld&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=median-handheld.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;projection&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-projection.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;tty&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-tty.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;tv&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-tv.css&quot;&gt;
-  &lt;link rel=stylesheet href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=no-media-2.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-empty-2.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;all&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-all-2.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;print&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-print-2.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;screen&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-screen-2.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;screen and (min-width: 1px)&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-screen-query-success-2.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;braille, screen&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-braille-screen-2.css&quot;&gt;
-  &lt;link rel=stylesheet media=&quot;screen and (min-width: 1000000px)&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=media-screen-query-fail-2.css&quot;&gt;
</del><ins>+  &lt;link rel=stylesheet href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order&amp;command=log-resource-request&amp;path=no-media.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order&amp;command=log-resource-request&amp;path=media-empty.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;all&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order&amp;command=log-resource-request&amp;path=media-all.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;print&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order&amp;command=log-resource-request&amp;path=media-print.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;screen&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order&amp;command=log-resource-request&amp;path=media-screen.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;screen and (min-width: 1px)&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order&amp;command=log-resource-request&amp;path=media-screen-query-success.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;braille, screen&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order&amp;command=log-resource-request&amp;path=media-braille-screen.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;screen and (min-width: 1000000px)&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order&amp;command=log-resource-request&amp;path=media-screen-query-fail.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;aural&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order&amp;command=log-resource-request&amp;path=media-aural.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;braille&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order&amp;command=log-resource-request&amp;path=media-braille.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;handheld&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order&amp;command=log-resource-request&amp;path=median-handheld.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;projection&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order&amp;command=log-resource-request&amp;path=media-projection.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;tty&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order&amp;command=log-resource-request&amp;path=media-tty.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;tv&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order&amp;command=log-resource-request&amp;path=media-tv.css&quot;&gt;
+  &lt;link rel=stylesheet href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order&amp;command=log-resource-request&amp;path=no-media-2.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order&amp;command=log-resource-request&amp;path=media-empty-2.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;all&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order&amp;command=log-resource-request&amp;path=media-all-2.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;print&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order&amp;command=log-resource-request&amp;path=media-print-2.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;screen&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order&amp;command=log-resource-request&amp;path=media-screen-2.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;screen and (min-width: 1px)&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order&amp;command=log-resource-request&amp;path=media-screen-query-success-2.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;braille, screen&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order&amp;command=log-resource-request&amp;path=media-braille-screen-2.css&quot;&gt;
+  &lt;link rel=stylesheet media=&quot;screen and (min-width: 1000000px)&quot; href=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order&amp;command=log-resource-request&amp;path=media-screen-query-fail-2.css&quot;&gt;
</ins><span class="cx">   
</span><span class="cx"> &lt;/head&gt;
</span><span class="cx"> &lt;body&gt;
</span><del>-  &lt;img src=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=image.jpg&quot;&gt;
-  &lt;script src=&quot;http://127.0.0.1:8000/resources/network-simulator.php?command=log-resource-request&amp;path=script.js&quot;&gt;&lt;/script&gt;
</del><ins>+  &lt;img src=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order&amp;command=log-resource-request&amp;path=image.jpg&quot;&gt;
+  &lt;script src=&quot;http://127.0.0.1:8000/resources/network-simulator.php?test=loading-link-stylesheet-load-order&amp;command=log-resource-request&amp;path=script.js&quot;&gt;&lt;/script&gt;
</ins><span class="cx"> 
</span><span class="cx">   Test stylesheet load scheduling. Resource loads for screen stylesheets should be scheduled first, others should be scheduled last.
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsmisclinkrelprefetchandsubresourcehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/misc/link-rel-prefetch-and-subresource.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/misc/link-rel-prefetch-and-subresource.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/misc/link-rel-prefetch-and-subresource.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -5,7 +5,7 @@
</span><span class="cx"> {
</span><span class="cx">  try {
</span><span class="cx">      var req = new XMLHttpRequest;
</span><del>-     req.open(&quot;GET&quot;, &quot;/resources/network-simulator.php?command=&quot; + cmd, false);
</del><ins>+     req.open(&quot;GET&quot;, &quot;/resources/network-simulator.php?test=misc-link-rel-prefetch-and-subresource&amp;command=&quot; + cmd, false);
</ins><span class="cx">      req.send(null);
</span><span class="cx">      return req.responseText;
</span><span class="cx">  } catch (ex) {
</span><span class="lines">@@ -57,11 +57,11 @@
</span><span class="cx">       }
</span><span class="cx">   }
</span><span class="cx">   &lt;/script&gt;
</span><del>-  &lt;link rel=prefetch onload=&quot;decrementLinkLoadCount()&quot; href=&quot;/resources/network-simulator.php?command=log-resource-request&amp;path=1st.jpg&quot;&gt;
-  &lt;link rel=subresource onload=&quot;decrementLinkLoadCount()&quot; href=&quot;/resources/network-simulator.php?command=log-resource-request&amp;path=2nd.jpg&quot;&gt;
-  &lt;link rel=prefetch onload=&quot;decrementLinkLoadCount()&quot; href=&quot;/resources/network-simulator.php?command=log-resource-request&amp;path=3rd.jpg&quot;&gt;
-  &lt;link rel=prefetch onload=&quot;decrementLinkLoadCount()&quot; href=&quot;/resources/network-simulator.php?command=log-resource-request&amp;path=4th.jpg&quot;&gt;
-  &lt;link rel=subresource onload=&quot;decrementLinkLoadCount()&quot; href=&quot;/resources/network-simulator.php?command=log-resource-request&amp;path=5th.jpg&quot;&gt;
</del><ins>+  &lt;link rel=prefetch onload=&quot;decrementLinkLoadCount()&quot; href=&quot;/resources/network-simulator.php?test=misc-link-rel-prefetch-and-subresource&amp;command=log-resource-request&amp;path=1st.jpg&quot;&gt;
+  &lt;link rel=subresource onload=&quot;decrementLinkLoadCount()&quot; href=&quot;/resources/network-simulator.php?test=misc-link-rel-prefetch-and-subresource&amp;command=log-resource-request&amp;path=2nd.jpg&quot;&gt;
+  &lt;link rel=prefetch onload=&quot;decrementLinkLoadCount()&quot; href=&quot;/resources/network-simulator.php?test=misc-link-rel-prefetch-and-subresource&amp;command=log-resource-request&amp;path=3rd.jpg&quot;&gt;
+  &lt;link rel=prefetch onload=&quot;decrementLinkLoadCount()&quot; href=&quot;/resources/network-simulator.php?test=misc-link-rel-prefetch-and-subresource&amp;command=log-resource-request&amp;path=4th.jpg&quot;&gt;
+  &lt;link rel=subresource onload=&quot;decrementLinkLoadCount()&quot; href=&quot;/resources/network-simulator.php?test=misc-link-rel-prefetch-and-subresource&amp;command=log-resource-request&amp;path=5th.jpg&quot;&gt;
</ins><span class="cx"> &lt;/head&gt;
</span><span class="cx"> &lt;body&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsresourcesnetworksimulatorphp"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/resources/network-simulator.php (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/resources/network-simulator.php        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/resources/network-simulator.php        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -5,10 +5,22 @@
</span><span class="cx"> // offline, it simulates a network error with a nonsense response.
</span><span class="cx"> 
</span><span class="cx"> if (!sys_get_temp_dir()) {
</span><ins>+    header(&quot;HTTP/1.1 500 Internal Server Error&quot;);
</ins><span class="cx">     echo &quot;FAIL: No temp dir was returned.\n&quot;;
</span><span class="cx">     exit();
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+if (!isset($_GET['test'])) {
+    header(&quot;HTTP/1.1 500 Internal Server Error&quot;);
+    echo &quot;test parameter must be specified for a unique test name\n&quot;;
+    exit();
+}
+
+function tempPathBase()
+{
+    return sys_get_temp_dir() . &quot;/&quot; . $_GET['test'];
+}
+
</ins><span class="cx"> function setState($newState, $file)
</span><span class="cx"> {
</span><span class="cx">     file_put_contents($file, $newState);
</span><span class="lines">@@ -89,7 +101,7 @@
</span><span class="cx"> 
</span><span class="cx"> function handleIncreaseResourceCountCommand($path)
</span><span class="cx"> {
</span><del>-    $resourceCountFile = sys_get_temp_dir() . &quot;/resource-count&quot;;
</del><ins>+    $resourceCountFile = tempPathBase() . &quot;-count&quot;;
</ins><span class="cx">     $resourceCount = getState($resourceCountFile);
</span><span class="cx">     $pieces = explode(&quot; &quot;, $resourceCount);
</span><span class="cx">     $count = 0;
</span><span class="lines">@@ -104,7 +116,7 @@
</span><span class="cx"> 
</span><span class="cx"> function handleResetResourceCountCommand()
</span><span class="cx"> {
</span><del>-    $resourceCountFile = sys_get_temp_dir() . &quot;/resource-count&quot;;
</del><ins>+    $resourceCountFile = tempPathBase() . &quot;-count&quot;;
</ins><span class="cx">     file_put_contents($resourceCountFile, 0);
</span><span class="cx">     generateNoCacheHTTPHeader();
</span><span class="cx">     header('HTTP/1.1 200 OK');
</span><span class="lines">@@ -112,7 +124,7 @@
</span><span class="cx"> 
</span><span class="cx"> function handleGetResourceCountCommand($path)
</span><span class="cx"> {
</span><del>-    $resourceCountFile = sys_get_temp_dir() . &quot;/resource-count&quot;;
</del><ins>+    $resourceCountFile = tempPathBase() . &quot;-count&quot;;
</ins><span class="cx">     $resourceCount = getState($resourceCountFile);
</span><span class="cx">     $pieces = explode(&quot; &quot;, $resourceCount);
</span><span class="cx">     generateNoCacheHTTPHeader();
</span><span class="lines">@@ -126,19 +138,19 @@
</span><span class="cx"> 
</span><span class="cx"> function handleStartResourceRequestsLog()
</span><span class="cx"> {
</span><del>-    $resourceLogFile = sys_get_temp_dir() . &quot;/resource-log&quot;;
</del><ins>+    $resourceLogFile = tempPathBase() . &quot;-log&quot;;
</ins><span class="cx">     file_put_contents($resourceLogFile,  &quot;&quot;);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function handleClearResourceRequestsLog()
</span><span class="cx"> {
</span><del>-    $resourceLogFile = sys_get_temp_dir() . &quot;/resource-log&quot;;
</del><ins>+    $resourceLogFile = tempPathBase() . &quot;-log&quot;;
</ins><span class="cx">     file_put_contents($resourceLogFile, &quot;&quot;);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function handleGetResourceRequestsLog()
</span><span class="cx"> {
</span><del>-    $resourceLogFile = sys_get_temp_dir() . &quot;/resource-log&quot;;
</del><ins>+    $resourceLogFile = tempPathBase() . &quot;-log&quot;;
</ins><span class="cx"> 
</span><span class="cx">     generateNoCacheHTTPHeader();
</span><span class="cx">     header(&quot;Content-Type: text/plain&quot;);
</span><span class="lines">@@ -148,14 +160,14 @@
</span><span class="cx"> 
</span><span class="cx"> function handleLogResourceRequest($path)
</span><span class="cx"> {
</span><del>-    $resourceLogFile = sys_get_temp_dir() . &quot;/resource-log&quot;;
</del><ins>+    $resourceLogFile = tempPathBase() . &quot;-log&quot;;
</ins><span class="cx">     
</span><span class="cx">     $newData = &quot;\n&quot;.$path;
</span><span class="cx">     // Documentation says that appends are atomic.
</span><span class="cx">     file_put_contents($resourceLogFile, $newData, FILE_APPEND);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-$stateFile = sys_get_temp_dir() . &quot;/network-simulator-state&quot;;
</del><ins>+$stateFile = tempPathBase() . &quot;-state&quot;;
</ins><span class="cx"> $command = $_GET['command'];
</span><span class="cx"> if ($command) {
</span><span class="cx">     if ($command == &quot;connect&quot;)
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsresourcestripminephp"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/resources/tripmine.php (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/resources/tripmine.php        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/resources/tripmine.php        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -1,63 +0,0 @@
</span><del>-&lt;?php
-require_once 'portabilityLayer.php';
-
-// This script detects requests that could not be sent before cross-site XMLHttpRequest appeared.
-
-header(&quot;Expires: Thu, 01 Dec 2003 16:00:00 GMT&quot;);
-header(&quot;Cache-Control: no-cache, no-store, must-revalidate&quot;);
-header(&quot;Pragma: no-cache&quot;);
-
-if (!sys_get_temp_dir()) {
-    echo &quot;FAIL: No temp dir was returned.\n&quot;;
-    exit();
-}
-
-function setState($newState, $file)
-{
-    file_put_contents($file, $newState);
-}
-
-function getState($file)
-{
-    if (!file_exists($file)) {
-        return &quot;&quot;;
-    }
-    return file_get_contents($file);
-}
-
-$stateFile = sys_get_temp_dir() . &quot;/tripmine-status&quot;;
-$command = $_GET['command'];
-if ($command) {
-    if ($command == &quot;status&quot;)
-        echo getState($stateFile);
-    exit();
-}
-
-$method = $_SERVER['REQUEST_METHOD'];
-$contentType = $_SERVER['CONTENT_TYPE'];
-
-if ($method == &quot;OPTIONS&quot;) {
-    // Don't allow cross-site requests with preflight.
-    exit();
-}
-
-// Only allow simple cross-site requests - since we did not allow preflight, this is all we should ever get.
-
-if ($method != &quot;GET&quot; &amp;&amp; $method != &quot;HEAD&quot; &amp;&amp; $method != &quot;POST&quot;) {
-    setState(&quot;FAIL. Non-simple method $method.&quot;, $stateFile);
-    exit();
-}
-
-if (isset($contentType)
-     &amp;&amp; !preg_match(&quot;/^application\/x\-www\-form\-urlencoded(;.+)?$/&quot;, $contentType)
-     &amp;&amp; !preg_match(&quot;/^multipart\/form\-data(;.+)?$/&quot;, $contentType)
-     &amp;&amp; !preg_match(&quot;/^text\/plain(;.+)?$/&quot;, $contentType)) {
-    setState(&quot;FAIL. Non-simple content type: $contentType.&quot;, $stateFile);
-    exit();
-}
-
-if (isset($_SERVER['HTTP_X_WEBKIT_TEST'])) {
-    setState(&quot;FAIL. Custom header sent with a simple request.&quot;, $stateFile);
-    exit();
-}
-?&gt;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestaccesscontrolpreflightasyncheaderdeniedexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-async-header-denied-expected.txt (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-async-header-denied-expected.txt        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-async-header-denied-expected.txt        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?state=header. Request header field X-NON-STANDARD is not allowed by Access-Control-Allow-Headers.
</del><ins>+CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?test=access-control-preflight-async-header-denied&amp;state=header. Request header field X-NON-STANDARD is not allowed by Access-Control-Allow-Headers.
</ins><span class="cx"> PASS: Request successfully blocked.
</span><span class="cx"> 
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestaccesscontrolpreflightasyncheaderdeniedhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-async-header-denied.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-async-header-denied.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-async-header-denied.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -16,7 +16,7 @@
</span><span class="cx">     var xhr = new XMLHttpRequest();
</span><span class="cx"> 
</span><span class="cx">     try {
</span><del>-        xhr.open(&quot;GET&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?state=reset&quot;, false);
</del><ins>+        xhr.open(&quot;GET&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?test=access-control-preflight-async-header-denied&amp;state=reset&quot;, false);
</ins><span class="cx">         xhr.send(null);
</span><span class="cx">     } catch(e) {
</span><span class="cx">         log(&quot;FAIL: Unable to reset server state: [&quot; + e.message + &quot;].&quot;);
</span><span class="lines">@@ -26,7 +26,7 @@
</span><span class="cx">     xhr = new XMLHttpRequest();
</span><span class="cx"> 
</span><span class="cx">     try {
</span><del>-        xhr.open(&quot;GET&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?state=header&quot;, true);
</del><ins>+        xhr.open(&quot;GET&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?test=access-control-preflight-async-header-denied&amp;state=header&quot;, true);
</ins><span class="cx">         xhr.setRequestHeader(&quot;X-NON-STANDARD&quot;, &quot;filler&quot;);
</span><span class="cx">     } catch(e) {
</span><span class="cx">         log(&quot;FAIL: Exception thrown. Cross-domain access is not allowed in first 'open'. [&quot; + e.message + &quot;].&quot;);
</span><span class="lines">@@ -37,7 +37,7 @@
</span><span class="cx">         xhr = new XMLHttpRequest();
</span><span class="cx"> 
</span><span class="cx">         try {
</span><del>-            xhr.open(&quot;GET&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?state=complete&quot;, false);
</del><ins>+            xhr.open(&quot;GET&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?test=access-control-preflight-async-header-denied&amp;state=complete&quot;, false);
</ins><span class="cx">             try {
</span><span class="cx">                 xhr.send(null);
</span><span class="cx">             } catch(e) {
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestaccesscontrolpreflightasyncmethoddeniedexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-async-method-denied-expected.txt (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-async-method-denied-expected.txt        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-async-method-denied-expected.txt        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?state=method. Method DELETE is not allowed by Access-Control-Allow-Methods.
</del><ins>+CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?test=access-control-preflight-async-method-denied&amp;state=method. Method DELETE is not allowed by Access-Control-Allow-Methods.
</ins><span class="cx"> PASS: Request successfully blocked.
</span><span class="cx"> 
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestaccesscontrolpreflightasyncmethoddeniedhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-async-method-denied.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-async-method-denied.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-async-method-denied.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -16,7 +16,7 @@
</span><span class="cx">     var xhr = new XMLHttpRequest();
</span><span class="cx"> 
</span><span class="cx">     try {
</span><del>-        xhr.open(&quot;GET&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?state=reset&quot;, false);
</del><ins>+        xhr.open(&quot;GET&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?test=access-control-preflight-async-method-denied&amp;state=reset&quot;, false);
</ins><span class="cx">         xhr.send(null);
</span><span class="cx">     } catch(e) {
</span><span class="cx">         log(&quot;FAIL: Unable to reset server state: [&quot; + e.message + &quot;].&quot;);
</span><span class="lines">@@ -26,7 +26,7 @@
</span><span class="cx">     xhr = new XMLHttpRequest();
</span><span class="cx"> 
</span><span class="cx">     try {
</span><del>-        xhr.open(&quot;DELETE&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?state=method&quot;, true);
</del><ins>+        xhr.open(&quot;DELETE&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?test=access-control-preflight-async-method-denied&amp;state=method&quot;, true);
</ins><span class="cx">     } catch(e) {
</span><span class="cx">         log(&quot;FAIL: Exception thrown. Cross-domain access is not allowed in first 'open'. [&quot; + e.message + &quot;].&quot;);
</span><span class="cx">         return;
</span><span class="lines">@@ -36,7 +36,7 @@
</span><span class="cx">         xhr = new XMLHttpRequest();
</span><span class="cx"> 
</span><span class="cx">         try {
</span><del>-            xhr.open(&quot;GET&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?state=complete&quot;, false);
</del><ins>+            xhr.open(&quot;GET&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?test=access-control-preflight-async-method-denied&amp;state=complete&quot;, false);
</ins><span class="cx">             try {
</span><span class="cx">                 xhr.send(null);
</span><span class="cx">             } catch(e) {
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestaccesscontrolpreflightasyncnotsupportedexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-async-not-supported-expected.txt (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-async-not-supported-expected.txt        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-async-not-supported-expected.txt        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
</del><ins>+CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?test=access-control-preflight-async-non-supported. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
</ins><span class="cx"> PASS: Request successfully blocked.
</span><span class="cx"> 
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestaccesscontrolpreflightasyncnotsupportedhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-async-not-supported.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-async-not-supported.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-async-not-supported.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -16,7 +16,7 @@
</span><span class="cx">     var xhr = new XMLHttpRequest();
</span><span class="cx"> 
</span><span class="cx">     try {
</span><del>-        xhr.open(&quot;GET&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?state=reset&quot;, false);
</del><ins>+        xhr.open(&quot;GET&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?test=access-control-preflight-async-non-supported&amp;state=reset&quot;, false);
</ins><span class="cx">         xhr.send(null);
</span><span class="cx">     } catch(e) {
</span><span class="cx">         log(&quot;FAIL: Unable to reset server state: [&quot; + e.message + &quot;].&quot;);
</span><span class="lines">@@ -26,7 +26,7 @@
</span><span class="cx">     xhr = new XMLHttpRequest();
</span><span class="cx"> 
</span><span class="cx">     try {
</span><del>-        xhr.open(&quot;PUT&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php&quot;, true);
</del><ins>+        xhr.open(&quot;PUT&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?test=access-control-preflight-async-non-supported&quot;, true);
</ins><span class="cx">     } catch(e) {
</span><span class="cx">         log(&quot;FAIL: Exception thrown. Cross-domain access is not allowed in first 'open'. [&quot; + e.message + &quot;].&quot;);
</span><span class="cx">         return;
</span><span class="lines">@@ -36,7 +36,7 @@
</span><span class="cx">         xhr = new XMLHttpRequest();
</span><span class="cx"> 
</span><span class="cx">         try {
</span><del>-            xhr.open(&quot;GET&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?state=complete&quot;, false);
</del><ins>+            xhr.open(&quot;GET&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?test=access-control-preflight-async-non-supported&amp;state=complete&quot;, false);
</ins><span class="cx">             try {
</span><span class="cx">                 xhr.send(null);
</span><span class="cx">             } catch(e) {
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestaccesscontrolpreflightheadersasynchtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-headers-async.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-headers-async.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-headers-async.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -8,14 +8,14 @@
</span><span class="cx"> function resetStatus()
</span><span class="cx"> {
</span><span class="cx">     var req = new XMLHttpRequest;
</span><del>-    req.open(&quot;GET&quot;, &quot;/resources/reset-temp-file.php?filename=access-control-preflight-headers-status&quot;, false);
</del><ins>+    req.open(&quot;GET&quot;, &quot;/resources/reset-temp-file.php?filename=access-control-preflight-headers-async-status&quot;, false);
</ins><span class="cx">     req.send();
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function sendRequest()
</span><span class="cx"> {
</span><span class="cx">     var req = new XMLHttpRequest;
</span><del>-    req.open(&quot;GET&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/no-custom-header.php&quot;);
</del><ins>+    req.open(&quot;GET&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/no-custom-header.php?filename=access-control-preflight-headers-async-status&quot;);
</ins><span class="cx">     req.setRequestHeader(&quot;X-Custom-Header&quot;, &quot;foobar&quot;);
</span><span class="cx">     req.onerror = function() {
</span><span class="cx">         document.body.appendChild(document.createTextNode(&quot;FAIL: onerror called&quot;));
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestaccesscontrolpreflightheaderssynchtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-headers-sync.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-headers-sync.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-headers-sync.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -6,7 +6,7 @@
</span><span class="cx"> function resetStatus()
</span><span class="cx"> {
</span><span class="cx">     var req = new XMLHttpRequest;
</span><del>-    req.open(&quot;GET&quot;, &quot;/resources/reset-temp-file.php?filename=access-control-preflight-headers-status&quot;, false);
</del><ins>+    req.open(&quot;GET&quot;, &quot;/resources/reset-temp-file.php?filename=access-control-preflight-headers-sync-status&quot;, false);
</ins><span class="cx">     req.send();
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -14,7 +14,7 @@
</span><span class="cx"> {
</span><span class="cx">     try {
</span><span class="cx">         var req = new XMLHttpRequest;
</span><del>-        req.open(&quot;GET&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/no-custom-header.php&quot;, false);
</del><ins>+        req.open(&quot;GET&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/no-custom-header.php?filename=access-control-preflight-headers-sync-status&quot;, false);
</ins><span class="cx">         req.setRequestHeader(&quot;X-Custom-Header&quot;, &quot;foobar&quot;);
</span><span class="cx">         req.send();
</span><span class="cx">         document.write(&quot;&lt;xmp&gt;&quot; + req.responseText + &quot;&lt;/xmp&gt;&quot;);
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestaccesscontrolpreflightsyncheaderdeniedexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-sync-header-denied-expected.txt (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-sync-header-denied-expected.txt        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-sync-header-denied-expected.txt        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?state=header. Request header field X-NON-STANDARD is not allowed by Access-Control-Allow-Headers.
</del><ins>+CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?test=access-control-preflight-sync-header-denied&amp;state=header. Request header field X-NON-STANDARD is not allowed by Access-Control-Allow-Headers.
</ins><span class="cx"> PASS: Request successfully blocked.
</span><span class="cx"> 
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestaccesscontrolpreflightsyncheaderdeniedhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-sync-header-denied.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-sync-header-denied.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-sync-header-denied.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -14,7 +14,7 @@
</span><span class="cx">     var xhr = new XMLHttpRequest();
</span><span class="cx"> 
</span><span class="cx">     try {
</span><del>-        xhr.open(&quot;GET&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?state=reset&quot;, false);
</del><ins>+        xhr.open(&quot;GET&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?test=access-control-preflight-sync-header-denied&amp;state=reset&quot;, false);
</ins><span class="cx">         xhr.send(null);
</span><span class="cx">     } catch(e) {
</span><span class="cx">         log(&quot;FAIL: Unable to reset server state: [&quot; + e.message + &quot;].&quot;);
</span><span class="lines">@@ -24,7 +24,7 @@
</span><span class="cx">     xhr = new XMLHttpRequest();
</span><span class="cx"> 
</span><span class="cx">     try {
</span><del>-        xhr.open(&quot;GET&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?state=header&quot;, false);
</del><ins>+        xhr.open(&quot;GET&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?test=access-control-preflight-sync-header-denied&amp;state=header&quot;, false);
</ins><span class="cx">         xhr.setRequestHeader(&quot;X-NON-STANDARD&quot;, &quot;filler&quot;);
</span><span class="cx">     } catch(e) {
</span><span class="cx">         log(&quot;FAIL: Exception thrown. Cross-domain access is not allowed in first 'open'. [&quot; + e.message + &quot;].&quot;);
</span><span class="lines">@@ -42,7 +42,7 @@
</span><span class="cx">     xhr = new XMLHttpRequest();
</span><span class="cx"> 
</span><span class="cx">     try {
</span><del>-        xhr.open(&quot;GET&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?state=complete&quot;, false);
</del><ins>+        xhr.open(&quot;GET&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?test=access-control-preflight-sync-header-denied&amp;state=complete&quot;, false);
</ins><span class="cx">     } catch(e) {
</span><span class="cx">         log(&quot;FAIL: Exception thrown. Cross-domain access is not allowed in second 'open'. [&quot; + e.message + &quot;].&quot;);
</span><span class="cx">         return;
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestaccesscontrolpreflightsyncmethoddeniedexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-sync-method-denied-expected.txt (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-sync-method-denied-expected.txt        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-sync-method-denied-expected.txt        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?state=method. Method DELETE is not allowed by Access-Control-Allow-Methods.
</del><ins>+CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?test=access-control-preflight-sync-method-denied&amp;state=method. Method DELETE is not allowed by Access-Control-Allow-Methods.
</ins><span class="cx"> PASS: Request successfully blocked.
</span><span class="cx"> 
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestaccesscontrolpreflightsyncmethoddeniedhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-sync-method-denied.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-sync-method-denied.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-sync-method-denied.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -14,7 +14,7 @@
</span><span class="cx">     var xhr = new XMLHttpRequest();
</span><span class="cx"> 
</span><span class="cx">     try {
</span><del>-        xhr.open(&quot;GET&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?state=reset&quot;, false);
</del><ins>+        xhr.open(&quot;GET&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?test=access-control-preflight-sync-method-denied&amp;state=reset&quot;, false);
</ins><span class="cx">         xhr.send(null);
</span><span class="cx">     } catch(e) {
</span><span class="cx">         log(&quot;FAIL: Unable to reset server state: [&quot; + e.message + &quot;].&quot;);
</span><span class="lines">@@ -24,7 +24,7 @@
</span><span class="cx">     xhr = new XMLHttpRequest();
</span><span class="cx"> 
</span><span class="cx">     try {
</span><del>-        xhr.open(&quot;DELETE&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?state=method&quot;, false);
</del><ins>+        xhr.open(&quot;DELETE&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?test=access-control-preflight-sync-method-denied&amp;state=method&quot;, false);
</ins><span class="cx">     } catch(e) {
</span><span class="cx">         log(&quot;FAIL: Exception thrown. Cross-domain access is not allowed in first 'open'. [&quot; + e.message + &quot;].&quot;);
</span><span class="cx">         return;
</span><span class="lines">@@ -41,7 +41,7 @@
</span><span class="cx">     xhr = new XMLHttpRequest();
</span><span class="cx"> 
</span><span class="cx">     try {
</span><del>-        xhr.open(&quot;GET&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?state=complete&quot;, false);
</del><ins>+        xhr.open(&quot;GET&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?test=access-control-preflight-sync-method-denied&amp;state=complete&quot;, false);
</ins><span class="cx">     } catch(e) {
</span><span class="cx">         log(&quot;FAIL: Exception thrown. Cross-domain access is not allowed in second 'open'. [&quot; + e.message + &quot;].&quot;);
</span><span class="cx">         return;
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestaccesscontrolpreflightsyncnotsupportedexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-sync-not-supported-expected.txt (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-sync-not-supported-expected.txt        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-sync-not-supported-expected.txt        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
</del><ins>+CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?test=access-control-preflight-sync-non-supported. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.
</ins><span class="cx"> PASS: Request successfully blocked.
</span><span class="cx"> 
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestaccesscontrolpreflightsyncnotsupportedhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-sync-not-supported.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-sync-not-supported.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-sync-not-supported.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -14,7 +14,7 @@
</span><span class="cx">     var xhr = new XMLHttpRequest();
</span><span class="cx"> 
</span><span class="cx">     try {
</span><del>-        xhr.open(&quot;GET&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?state=reset&quot;, false);
</del><ins>+        xhr.open(&quot;GET&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?test=access-control-preflight-sync-non-supported&amp;state=reset&quot;, false);
</ins><span class="cx">         xhr.send(null);
</span><span class="cx">     } catch(e) {
</span><span class="cx">         log(&quot;FAIL: Unable to reset server state: [&quot; + e.message + &quot;].&quot;);
</span><span class="lines">@@ -24,7 +24,7 @@
</span><span class="cx">     xhr = new XMLHttpRequest();
</span><span class="cx"> 
</span><span class="cx">     try {
</span><del>-        xhr.open(&quot;PUT&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php&quot;, false);
</del><ins>+        xhr.open(&quot;PUT&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?test=access-control-preflight-sync-non-supported&quot;, false);
</ins><span class="cx">     } catch(e) {
</span><span class="cx">         log(&quot;FAIL: Exception thrown. Cross-domain access is not allowed in first 'open'. [&quot; + e.message + &quot;].&quot;);
</span><span class="cx">         return;
</span><span class="lines">@@ -41,7 +41,7 @@
</span><span class="cx">     xhr = new XMLHttpRequest();
</span><span class="cx"> 
</span><span class="cx">     try {
</span><del>-        xhr.open(&quot;GET&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?state=complete&quot;, false);
</del><ins>+        xhr.open(&quot;GET&quot;, &quot;http://localhost:8000/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php?test=access-control-preflight-sync-non-supported&amp;state=complete&quot;, false);
</ins><span class="cx">     } catch(e) {
</span><span class="cx">         log(&quot;FAIL: Exception thrown. Cross-domain access is not allowed in second 'open'. [&quot; + e.message + &quot;].&quot;);
</span><span class="cx">         return;
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestredirectcrossorigintripminehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/redirect-cross-origin-tripmine.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/redirect-cross-origin-tripmine.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/redirect-cross-origin-tripmine.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -14,14 +14,14 @@
</span><span class="cx"> function resetTripmine()
</span><span class="cx"> {
</span><span class="cx">     var req = new XMLHttpRequest;
</span><del>-    req.open(&quot;GET&quot;, &quot;/resources/reset-temp-file.php?filename=tripmine-status&quot;, false);
</del><ins>+    req.open(&quot;GET&quot;, &quot;/resources/reset-temp-file.php?filename=xmlhttprequest-redirect-cross-origin-tripmine_status&quot;, false);
</ins><span class="cx">     req.send();
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function tripmineStatus()
</span><span class="cx"> {
</span><span class="cx">     var req = new XMLHttpRequest;
</span><del>-    req.open(&quot;GET&quot;, &quot;/resources/tripmine.php?command=status&quot;, false);
</del><ins>+    req.open(&quot;GET&quot;, &quot;resources/redirect-cross-origin-tripmine.php?command=status&quot;, false);
</ins><span class="cx">     req.send();
</span><span class="cx">     return req.responseText;
</span><span class="cx"> }
</span><span class="lines">@@ -41,7 +41,7 @@
</span><span class="cx">     resetTripmine();
</span><span class="cx"> 
</span><span class="cx">     var req = new XMLHttpRequest;
</span><del>-    req.open(method, &quot;/resources/redirect.php?code=&quot; + code + &quot;&amp;url=http://localhost:8000/resources/tripmine.php&quot;, true);
</del><ins>+    req.open(method, &quot;/resources/redirect.php?code=&quot; + code + &quot;&amp;url=http://localhost:8000/xmlhttprequest/resources/redirect-cross-origin-tripmine.php&quot;, true);
</ins><span class="cx">     req.setRequestHeader(&quot;X-WebKit-Test&quot;, &quot;*&quot;);
</span><span class="cx">     req.setRequestHeader(&quot;Content-Type&quot;, &quot;application/xml&quot;);
</span><span class="cx">     req.send(&quot;data&quot;);
</span><span class="lines">@@ -55,7 +55,7 @@
</span><span class="cx">     resetTripmine();
</span><span class="cx"> 
</span><span class="cx">     var req = new XMLHttpRequest;
</span><del>-    req.open(method, &quot;/resources/redirect.php?code=&quot; + code + &quot;&amp;url=http://localhost:8000/resources/tripmine.php&quot;, false);
</del><ins>+    req.open(method, &quot;/resources/redirect.php?code=&quot; + code + &quot;&amp;url=http://localhost:8000/xmlhttprequest/resources/redirect-cross-origin-tripmine.php&quot;, false);
</ins><span class="cx">     req.setRequestHeader(&quot;X-WebKit-Test&quot;, &quot;*&quot;);
</span><span class="cx">     req.setRequestHeader(&quot;Content-Type&quot;, &quot;application/xml&quot;);
</span><span class="cx">     try {
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestresourcesaccesscontrolpreflightdeniedxsrfphp"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/resources/access-control-preflight-denied-xsrf.php        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -1,7 +1,7 @@
</span><span class="cx"> &lt;?php
</span><span class="cx"> require_once '../../resources/portabilityLayer.php';
</span><span class="cx"> 
</span><del>-$tmpFile = sys_get_temp_dir() . &quot;/xsrf.txt&quot;;
</del><ins>+$tmpFile = sys_get_temp_dir() . &quot;/&quot; . $_GET[&quot;test&quot;];
</ins><span class="cx"> 
</span><span class="cx"> function fail($state)
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestresourcesnocustomheaderphp"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/resources/no-custom-header.php (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/resources/no-custom-header.php        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/resources/no-custom-header.php        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -1,7 +1,7 @@
</span><span class="cx"> &lt;?php
</span><span class="cx"> require_once '../../resources/portabilityLayer.php';
</span><span class="cx"> 
</span><del>-$stateFile = sys_get_temp_dir() . &quot;/access-control-preflight-headers-status&quot;;
</del><ins>+$stateFile = sys_get_temp_dir() . &quot;/&quot; . $_GET['filename'];
</ins><span class="cx"> 
</span><span class="cx"> function setState($newState, $file)
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestresourcesredirectcrossorigintripminephpfromrev175731trunkLayoutTestshttptestsresourcestripminephp"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/http/tests/xmlhttprequest/resources/redirect-cross-origin-tripmine.php (from rev 175731, trunk/LayoutTests/http/tests/resources/tripmine.php) (0 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/resources/redirect-cross-origin-tripmine.php                                (rev 0)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/resources/redirect-cross-origin-tripmine.php        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -0,0 +1,63 @@
</span><ins>+&lt;?php
+require_once '../../resources/portabilityLayer.php';
+
+// This script detects requests that could not be sent before cross-site XMLHttpRequest appeared.
+
+header(&quot;Expires: Thu, 01 Dec 2003 16:00:00 GMT&quot;);
+header(&quot;Cache-Control: no-cache, no-store, must-revalidate&quot;);
+header(&quot;Pragma: no-cache&quot;);
+
+if (!sys_get_temp_dir()) {
+    echo &quot;FAIL: No temp dir was returned.\n&quot;;
+    exit();
+}
+
+function setState($newState, $file)
+{
+    file_put_contents($file, $newState);
+}
+
+function getState($file)
+{
+    if (!file_exists($file)) {
+        return &quot;&quot;;
+    }
+    return file_get_contents($file);
+}
+
+$stateFile = sys_get_temp_dir() . &quot;/xmlhttprequest-redirect-cross-origin-tripmine_status&quot;;
+$command = $_GET['command'];
+if ($command) {
+    if ($command == &quot;status&quot;)
+        echo getState($stateFile);
+    exit();
+}
+
+$method = $_SERVER['REQUEST_METHOD'];
+$contentType = $_SERVER['CONTENT_TYPE'];
+
+if ($method == &quot;OPTIONS&quot;) {
+    // Don't allow cross-site requests with preflight.
+    exit();
+}
+
+// Only allow simple cross-site requests - since we did not allow preflight, this is all we should ever get.
+
+if ($method != &quot;GET&quot; &amp;&amp; $method != &quot;HEAD&quot; &amp;&amp; $method != &quot;POST&quot;) {
+    setState(&quot;FAIL. Non-simple method $method.&quot;, $stateFile);
+    exit();
+}
+
+if (isset($contentType)
+     &amp;&amp; !preg_match(&quot;/^application\/x\-www\-form\-urlencoded(;.+)?$/&quot;, $contentType)
+     &amp;&amp; !preg_match(&quot;/^multipart\/form\-data(;.+)?$/&quot;, $contentType)
+     &amp;&amp; !preg_match(&quot;/^text\/plain(;.+)?$/&quot;, $contentType)) {
+    setState(&quot;FAIL. Non-simple content type: $contentType.&quot;, $stateFile);
+    exit();
+}
+
+if (isset($_SERVER['HTTP_X_WEBKIT_TEST'])) {
+    setState(&quot;FAIL. Custom header sent with a simple request.&quot;, $stateFile);
+    exit();
+}
+?&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequeststateafternetworkerrorhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/state-after-network-error.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/state-after-network-error.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/state-after-network-error.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -17,7 +17,7 @@
</span><span class="cx"> function setNetworkEnabled(state)
</span><span class="cx"> {
</span><span class="cx">     var req = new XMLHttpRequest;
</span><del>-    req.open(&quot;GET&quot;, &quot;/resources/network-simulator.php?command=&quot; + (state ? &quot;connect&quot; : &quot;disconnect&quot;), false);
</del><ins>+    req.open(&quot;GET&quot;, &quot;/resources/network-simulator.php?test=xmlhttprequest-state-after-network-error&amp;command=&quot; + (state ? &quot;connect&quot; : &quot;disconnect&quot;), false);
</ins><span class="cx">     req.send(&quot;&quot;);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -34,7 +34,7 @@
</span><span class="cx"> setNetworkEnabled(false);
</span><span class="cx"> var xhr = new XMLHttpRequest();
</span><span class="cx"> xhr.onreadystatechange = onReadyStateChange;
</span><del>-xhr.open('GET', '/resources/network-simulator.php?path=/', true);
</del><ins>+xhr.open('GET', '/resources/network-simulator.php?test=xmlhttprequest-state-after-network-error&amp;path=/', true);
</ins><span class="cx"> xhr.send(null);
</span><span class="cx"> 
</span><span class="cx"> &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestxmlhttprequestresponseURLexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-responseURL-expected.txt (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-responseURL-expected.txt        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-responseURL-expected.txt        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -49,16 +49,6 @@
</span><span class="cx"> PASS responseURL is &quot;&quot;
</span><span class="cx"> req.readyState = 1: responseURL = 
</span><span class="cx"> PASS responseURL is &quot;&quot;
</span><del>-req.readyState = 2: responseURL = http://127.0.0.1:8000/xmlhttprequest/resources/network-simulator.php?command=connect/
-req.readyState = 3: responseURL = http://127.0.0.1:8000/xmlhttprequest/resources/network-simulator.php?command=connect/
-req.readyState = 4: responseURL = http://127.0.0.1:8000/xmlhttprequest/resources/network-simulator.php?command=connect/
-PASS responseURL is &quot;http://127.0.0.1:8000/xmlhttprequest/resources/network-simulator.php?command=connect/&quot;
-req.readyState = 0: responseURL = 
-PASS responseURL is &quot;&quot;
-req.readyState = 1: responseURL = 
-PASS responseURL is &quot;&quot;
-req.readyState = 1: responseURL = 
-PASS responseURL is &quot;&quot;
</del><span class="cx"> req.readyState = 2: responseURL = http://127.0.0.1:8000/xmlhttprequest/resources/supported-xml-content-types.cgi?type=foo
</span><span class="cx"> req.readyState = 3: responseURL = http://127.0.0.1:8000/xmlhttprequest/resources/supported-xml-content-types.cgi?type=foo
</span><span class="cx"> req.readyState = 4: responseURL = http://127.0.0.1:8000/xmlhttprequest/resources/supported-xml-content-types.cgi?type=foo
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsxmlhttprequestxmlhttprequestresponseURLhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-responseURL.html (175840 => 175841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-responseURL.html        2014-11-11 01:15:38 UTC (rev 175840)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-responseURL.html        2014-11-11 01:16:15 UTC (rev 175841)
</span><span class="lines">@@ -53,11 +53,6 @@
</span><span class="cx">     window.responseURL = req.responseURL;
</span><span class="cx">     shouldBeEqualToString('responseURL', 'http://127.0.0.1:8000/xmlhttprequest/resources/cross-site-progress-events.cgi');
</span><span class="cx"> 
</span><del>-    return runTest('resources/network-simulator.php?command=connect/', 'text');
-}).then(function(req) {
-    window.responseURL = req.responseURL;
-    shouldBeEqualToString('responseURL', 'http://127.0.0.1:8000/xmlhttprequest/resources/network-simulator.php?command=connect/');
-
</del><span class="cx">     return runTest(&quot;resources/supported-xml-content-types.cgi?type=foo#bar/baz+xml&quot;, 'xml');
</span><span class="cx"> }).then(function(req) {
</span><span class="cx">     window.responseURL = req.responseURL;
</span></span></pre>
</div>
</div>

</body>
</html>