summaryrefslogtreecommitdiffstats
path: root/netwerk/cookie/test/mochitest/test_fetch.html
blob: 315d0d76249bd80ab4dc1f9e149e7ffe5ee91984 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE HTML>
<html>
<head>
  <title>Test for cookies + fetch when the policy changes</title>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
  <script type="application/javascript" src="cookiesHelper.js"></script>
</head>
<body>
<script type="application/javascript">

runTests(async (w, state) => {
  w.document.cookie = "name=value";
  await w.fetch("cookie.sjs?fetch&" + Math.random()).then(r => r.text());
  await checkLastRequest("fetch", state);
});

</script>
</body>
</html>