REGRESSION (r192251): http/tests/navigation/page-cache-xhr.html is flaky
authorap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 23 Feb 2016 20:09:07 +0000 (20:09 +0000)
committerap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 23 Feb 2016 20:09:07 +0000 (20:09 +0000)
https://bugs.webkit.org/show_bug.cgi?id=154589

Reviewed by Youenn Fablet.

* http/tests/navigation/page-cache-xhr.html: Load a file that exists. The content
doesn't matter, as we expect to navigate away before the load occurs.

* http/tests/resources/load-and-stall.cgi: Added cache control, just for a good measure.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@196988 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/http/tests/navigation/page-cache-xhr.html
LayoutTests/http/tests/resources/load-and-stall.cgi

index 29ca7de..bb44c25 100644 (file)
@@ -1,3 +1,15 @@
+2016-02-23  Alexey Proskuryakov  <ap@apple.com>
+
+        REGRESSION (r192251): http/tests/navigation/page-cache-xhr.html is flaky
+        https://bugs.webkit.org/show_bug.cgi?id=154589
+
+        Reviewed by Youenn Fablet.
+
+        * http/tests/navigation/page-cache-xhr.html: Load a file that exists. The content
+        doesn't matter, as we expect to navigate away before the load occurs.
+
+        * http/tests/resources/load-and-stall.cgi: Added cache control, just for a good measure.
+
 2016-02-23  Mark Lam  <mark.lam@apple.com>
 
         Debug assertion failure while loading http://kangax.github.io/compat-table/es6/.
index 8bf69a4..4e59b98 100644 (file)
@@ -49,7 +49,7 @@ window.addEventListener('load', function() {
     xhr.onload = xhrLoaded;
     xhr.onerror = xhrError;
     // Slow loading XHR (3-second stall).
-    xhr.open("GET", "/resources/load-and-stall.cgi?name=../../../http/tests/xmlhttprequest/timeout/xmlhttprequest-timeout.js&stallFor=3&stallAt=0&mimeType=text/plain", true);
+    xhr.open("GET", "/resources/load-and-stall.cgi?name=load-and-stall.cgi&stallFor=3&stallAt=0&mimeType=text/plain", true);
     xhr.send();
 
     // This needs to happen in a setTimeout because a navigation inside the onload handler would
index 6837c12..32806d6 100755 (executable)
@@ -11,6 +11,7 @@ $stallFor = $query->param('stallFor');
 $mimeType = $query->param('mimeType');
 
 my $filesize = stat($name)->size;
+print "Cache-Control: no-store\n";
 print "Content-type: " . $mimeType . "\n"; 
 print "Content-Length: " . $filesize . "\n\n";