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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andrea Marchesini 2019-05-17 11:20:19 +00:00
parent cade486cb8
commit 62236a7f79
14 changed files with 34 additions and 4 deletions

View file

@ -1 +1,4 @@
Set-Cookie: meta=tag
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: 0

View file

@ -1 +1,4 @@
Set-Cookie: meta2=tag2
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: 0

View file

@ -1 +1,4 @@
Set-Cookie: meta=tag
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: 0

View file

@ -1 +1,4 @@
Set-Cookie: meta2=tag2
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: 0

View file

@ -1 +1,4 @@
Set-Cookie: meta=tag
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: 0

View file

@ -1 +1,4 @@
Set-Cookie: meta2=tag2
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: 0

View file

@ -1 +1,4 @@
Set-Cookie: meta=tag
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: 0

View file

@ -1 +1,4 @@
Set-Cookie: meta=tag
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: 0

View file

@ -1 +1,4 @@
Set-Cookie: meta=tag
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: 0

View file

@ -1 +1,4 @@
Set-Cookie: meta=tag
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: 0

View file

@ -5,7 +5,7 @@
<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">

View file

@ -5,7 +5,7 @@
<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">

View file

@ -5,7 +5,7 @@
<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">

View file

@ -5,7 +5,7 @@
<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">