Roll leveldb 3f7758:803d69 (v1.17 -> v1.18)
[chromium-blink-merge.git] / chrome / test / data / nacl / cross_origin / same_origin_cookie.html
blob6942cd6ab0e053253e0267d6c1781e7a1aa3e7c4
1 <html>
2 <!--
3 Copyright (c) 2013 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file.
6 -->
7 <head>
8 <title>NaCl Cross-origin Test</title>
9 </head>
10 <body>
11 <h2>NaCl Cross-origin Test</h2>
12 </body>
13 <script type="text/javascript" src="../load_util.js"></script>
14 <script>
16 function run() {
17 document.cookie = "foo";
18 var embed = load_util.embed("cors.nmf?expected_headers=Cookie:foo");
19 // This same-origin manifest request will succeed only if the server detects
20 // that a cookie is sent. The .nexe is junk data, however, so the load
21 // ultimately fails.
22 load_util.expectLoadFailure(embed, "Bad ELF header magic number");
23 document.body.appendChild(embed);
26 run();
28 </script>
29 </html>