| Index: third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-in-meta-disallowed.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-in-meta-disallowed.html b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-in-meta-disallowed.html
|
| index 08650b21507749df66530d466211a540301ee842..0cd9aa966f92a540b3533101307d4e47b12656e7 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-in-meta-disallowed.html
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-in-meta-disallowed.html
|
| @@ -1,22 +1,25 @@
|
| <!DOCTYPE html>
|
| <html>
|
| - <head>
|
| - <meta http-equiv="Suborigin" content="foobar">
|
| - <title>The <meta> tag does not allow a page to enter a suborigin.</title>
|
| - <script src="/resources/testharness.js"></script>
|
| - <script src="/resources/testharnessreport.js"></script>
|
| - </head>
|
| - <script>
|
| - window.onmessage = function(event) {
|
| - var secret;
|
| - try {
|
| - secret = document.getElementById('iframe').contentWindow.secret;
|
| - } catch(e) {
|
| - secret = '' + e;
|
| - }
|
| - assert_equals(secret, 'SecurityError: Blocked a frame with origin \"http://127.0.0.1:8000\" from accessing a cross-origin frame.');
|
| - done();
|
| - };
|
| - </script>
|
| - <iframe id="iframe" src="resources/post-to-parent.php?suborigin=foobar"></iframe>
|
| +<head>
|
| +<meta charset="utf-8">
|
| +<meta http-equiv="Suborigin" content="foobar">
|
| +<title>The <meta> tag does not allow a page to enter a suborigin.</title>
|
| +<script src="/resources/testharness.js"></script>
|
| +<script src="/resources/testharnessreport.js"></script>
|
| +</head>
|
| +<script>
|
| +window.onmessage = function(event) {
|
| + var secret;
|
| + try {
|
| + secret = document.getElementById('iframe').contentWindow.secret;
|
| + } catch(e) {
|
| + secret = '' + e;
|
| + }
|
| + assert_equals(secret,
|
| + 'SecurityError: Blocked a frame with origin \"http://127.0.0.1:8000\" ' +
|
| + 'from accessing a cross-origin frame.');
|
| + done();
|
| +};
|
| +</script>
|
| +<iframe id="iframe" src="resources/post-to-parent.php?suborigin=foobar"></iframe>
|
| </html>
|
|
|