Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / security / suborigins / suborigin-invalid-names.html
blob9e6c141a3d09c6e044abb44098dd1610d0c99d8b
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Invalid suborigin names</title>
5 </head>
7 <script>
8 if (window.testRunner) {
9 testRunner.dumpAsText();
10 testRunner.waitUntilDone();
13 function finish() {
14 if (window.testRunner)
15 testRunner.notifyDone();
18 var test_suborigin_names = [
19 "",
20 "'foobar'",
21 "'foobar",
22 "foobar'",
23 "foo'bar",
24 "foob@r",
25 "foo bar",
28 var iframe;
29 var i = 0;
30 function next() {
31 if (i >= test_suborigin_names.length)
32 finish();
33 document.getElementById('iframe').src = "resources/reach-into-iframe.php?childsuborigin=" + test_suborigin_names[i];
34 i++;
37 window.onmessage = function(event) {
38 alert(event.data);
39 next();
42 window.onload = function() {;
43 next();
45 </script>
46 <iframe id="iframe"></iframe>