Bug 1550050 - Fix intermittent failures in test_same_base_domain_3.html forcing no cache via HTTP headers, r=valentin
authorAndrea Marchesini <amarchesini@mozilla.com>
Fri, 17 May 2019 11:20:19 +0000
changeset 533151 61f89ab0895f18aac004f37ec227997311f94879
parent 533150 934d2f88195de26cc114451e6511613d27f997aa
child 533152 a9deeecc3899b5d21081a8408404c2fd60805787
push id11276
push userrgurzau@mozilla.com
push dateMon, 20 May 2019 13:11:24 +0000
treeherdermozilla-beta@847755a7c325 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvalentin
bugs1550050
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1550050 - Fix intermittent failures in test_same_base_domain_3.html forcing no cache via HTTP headers, r=valentin At the end of each test, file_chromecommon.js deletes all the cookies, but it doesn't invalidate the network cache. Some of the files are shared between tests. When they are loaded from the cache, we don't set the cookies and, because of this, the tests were reporting a wrong cookie number. Differential Revision: https://phabricator.services.mozilla.com/D31596
netwerk/test/mochitests/file_domain_hierarchy_inner.html^headers^
netwerk/test/mochitests/file_domain_hierarchy_inner_inner.html^headers^
netwerk/test/mochitests/file_domain_inner.html^headers^
netwerk/test/mochitests/file_domain_inner_inner.html^headers^
netwerk/test/mochitests/file_image_inner.html^headers^
netwerk/test/mochitests/file_image_inner_inner.html^headers^
netwerk/test/mochitests/file_loadflags_inner.html^headers^
netwerk/test/mochitests/file_localhost_inner.html^headers^
netwerk/test/mochitests/file_loopback_inner.html^headers^
netwerk/test/mochitests/file_subdomain_inner.html^headers^
netwerk/test/mochitests/test_same_base_domain.html
netwerk/test/mochitests/test_same_base_domain_3.html
netwerk/test/mochitests/test_same_base_domain_5.html
netwerk/test/mochitests/test_samedomain.html
--- a/netwerk/test/mochitests/file_domain_hierarchy_inner.html^headers^
+++ b/netwerk/test/mochitests/file_domain_hierarchy_inner.html^headers^
@@ -1,1 +1,4 @@
 Set-Cookie: meta=tag
+Cache-Control: no-cache, no-store, must-revalidate
+Pragma: no-cache
+Expires: 0
--- a/netwerk/test/mochitests/file_domain_hierarchy_inner_inner.html^headers^
+++ b/netwerk/test/mochitests/file_domain_hierarchy_inner_inner.html^headers^
@@ -1,1 +1,4 @@
 Set-Cookie: meta2=tag2
+Cache-Control: no-cache, no-store, must-revalidate
+Pragma: no-cache
+Expires: 0
--- a/netwerk/test/mochitests/file_domain_inner.html^headers^
+++ b/netwerk/test/mochitests/file_domain_inner.html^headers^
@@ -1,1 +1,4 @@
 Set-Cookie: meta=tag
+Cache-Control: no-cache, no-store, must-revalidate
+Pragma: no-cache
+Expires: 0
--- a/netwerk/test/mochitests/file_domain_inner_inner.html^headers^
+++ b/netwerk/test/mochitests/file_domain_inner_inner.html^headers^
@@ -1,1 +1,4 @@
 Set-Cookie: meta2=tag2
+Cache-Control: no-cache, no-store, must-revalidate
+Pragma: no-cache
+Expires: 0
--- a/netwerk/test/mochitests/file_image_inner.html^headers^
+++ b/netwerk/test/mochitests/file_image_inner.html^headers^
@@ -1,1 +1,4 @@
 Set-Cookie: meta=tag
+Cache-Control: no-cache, no-store, must-revalidate
+Pragma: no-cache
+Expires: 0
--- a/netwerk/test/mochitests/file_image_inner_inner.html^headers^
+++ b/netwerk/test/mochitests/file_image_inner_inner.html^headers^
@@ -1,1 +1,4 @@
 Set-Cookie: meta2=tag2
+Cache-Control: no-cache, no-store, must-revalidate
+Pragma: no-cache
+Expires: 0
--- a/netwerk/test/mochitests/file_loadflags_inner.html^headers^
+++ b/netwerk/test/mochitests/file_loadflags_inner.html^headers^
@@ -1,1 +1,4 @@
 Set-Cookie: meta=tag
+Cache-Control: no-cache, no-store, must-revalidate
+Pragma: no-cache
+Expires: 0
--- a/netwerk/test/mochitests/file_localhost_inner.html^headers^
+++ b/netwerk/test/mochitests/file_localhost_inner.html^headers^
@@ -1,1 +1,4 @@
 Set-Cookie: meta=tag
+Cache-Control: no-cache, no-store, must-revalidate
+Pragma: no-cache
+Expires: 0
--- a/netwerk/test/mochitests/file_loopback_inner.html^headers^
+++ b/netwerk/test/mochitests/file_loopback_inner.html^headers^
@@ -1,1 +1,4 @@
 Set-Cookie: meta=tag
+Cache-Control: no-cache, no-store, must-revalidate
+Pragma: no-cache
+Expires: 0
--- a/netwerk/test/mochitests/file_subdomain_inner.html^headers^
+++ b/netwerk/test/mochitests/file_subdomain_inner.html^headers^
@@ -1,1 +1,4 @@
 Set-Cookie: meta=tag
+Cache-Control: no-cache, no-store, must-revalidate
+Pragma: no-cache
+Expires: 0
--- a/netwerk/test/mochitests/test_same_base_domain.html
+++ b/netwerk/test/mochitests/test_same_base_domain.html
@@ -1,15 +1,15 @@
 <!DOCTYPE HTML>
 <html>
 <head>
   <title>Test for Cross domain access to properties</title>
   <script src="/tests/SimpleTest/SimpleTest.js"></script>        
   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
 </head>
-<body onload="setupTest('http://test1.example.org/tests/netwerk/test/mochitests/file_domain_inner.html', 4, 2)">
+<body onload="setupTest('http://test1.example.org/tests/netwerk/test/mochitests/file_domain_inner.html', 5, 2)">
 <p id="display"></p>
 <pre id="test">
 <script class="testbody" type="text/javascript" src="file_testcommon.js">
 </script>
 </pre>
 </body>
 </html>
--- a/netwerk/test/mochitests/test_same_base_domain_3.html
+++ b/netwerk/test/mochitests/test_same_base_domain_3.html
@@ -1,15 +1,15 @@
 <!DOCTYPE HTML>
 <html>
 <head>
   <title>Test for Cross domain access to properties</title>
   <script src="/tests/SimpleTest/SimpleTest.js"></script>        
   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
 </head>
-<body onload="setupTest('http://example.org/tests/netwerk/test/mochitests/file_subdomain_inner.html', 4, 2)">
+<body onload="setupTest('http://example.org/tests/netwerk/test/mochitests/file_subdomain_inner.html', 5, 2)">
 <p id="display"></p>
 <pre id="test">
 <script class="testbody" type="text/javascript" src="file_testcommon.js">
 </script>
 </pre>
 </body>
 </html>
--- a/netwerk/test/mochitests/test_same_base_domain_5.html
+++ b/netwerk/test/mochitests/test_same_base_domain_5.html
@@ -1,15 +1,15 @@
 <!DOCTYPE HTML>
 <html>
 <head>
   <title>Test for Cross domain access to properties</title>
   <script src="/tests/SimpleTest/SimpleTest.js"></script>        
   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
 </head>
-<body onload="setupTest('http://sub1.test1.example.org/tests/netwerk/test/mochitests/file_subdomain_inner.html', 4, 2)">
+<body onload="setupTest('http://sub1.test1.example.org/tests/netwerk/test/mochitests/file_subdomain_inner.html', 5, 2)">
 <p id="display"></p>
 <pre id="test">
 <script class="testbody" type="text/javascript" src="file_testcommon.js">
 </script>
 </pre>
 </body>
 </html>
--- a/netwerk/test/mochitests/test_samedomain.html
+++ b/netwerk/test/mochitests/test_samedomain.html
@@ -1,15 +1,15 @@
 <!DOCTYPE HTML>
 <html>
 <head>
   <title>Test for Cross domain access to properties</title>
   <script src="/tests/SimpleTest/SimpleTest.js"></script>        
   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
 </head>
-<body onload="setupTest('http://example.org/tests/netwerk/test/mochitests/file_domain_inner.html', 4, 2)">
+<body onload="setupTest('http://example.org/tests/netwerk/test/mochitests/file_domain_inner.html', 5, 2)">
 <p id="display"></p>
 <pre id="test">
 <script class="testbody" type="text/javascript" src="file_testcommon.js">
 </script>
 </pre>
 </body>
 </html>