| Index: third_party/WebKit/LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cross-origin-window-event-exception.php
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cross-origin-window-event-exception.php b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cross-origin-window-event-exception.php
|
| index a9766550bcf127e63e6dd29098c9a25e9b976c8d..4406e3d4ef4bb3aa7029448bab1c65e03cc4ef12 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cross-origin-window-event-exception.php
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cross-origin-window-event-exception.php
|
| @@ -4,20 +4,30 @@ header("Suborigin: foobar");
|
| <!DOCTYPE html>
|
| <html>
|
| <head>
|
| +<meta charset="utf-8">
|
| </head>
|
| <body>
|
| - <iframe src="http://127.0.0.1:8000/"></iframe>
|
| - <script src="/js-test-resources/js-test.js"></script>
|
| - <script>
|
| - description("Cross-origin access to 'window.event' should throw a SecurityError.");
|
| - window.jsTestIsAsync = true;
|
| +<iframe src="http://127.0.0.1:8000/"></iframe>
|
| +<script src="/js-test-resources/js-test.js"></script>
|
| +<script>
|
| +window.jsTestIsAsync = true;
|
| +description(
|
| + 'Cross-origin access to \'window.event\' should throw a SecurityError.');
|
|
|
| - var frame = document.querySelector('iframe');
|
| - window.onload = function () {
|
| - shouldThrow("frame.contentWindow.event", '"SecurityError: Blocked a frame with origin \\"http-so://foobar.127.0.0.1:8000\\" from accessing a cross-origin frame."');
|
| - shouldThrow("frame.contentWindow.event = 1;", '"SecurityError: Blocked a frame with origin \\"http-so://foobar.127.0.0.1:8000\\" from accessing a cross-origin frame."');
|
| - finishJSTest();
|
| - };
|
| - </script>
|
| +var frame = document.querySelector('iframe');
|
| +window.onload = function () {
|
| + shouldThrow(
|
| + 'frame.contentWindow.event',
|
| + '"SecurityError: Blocked a frame with origin ' +
|
| + '\\"http-so://foobar.127.0.0.1:8000\\" from accessing a ' +
|
| + 'cross-origin frame."');
|
| + shouldThrow(
|
| + 'frame.contentWindow.event = 1;',
|
| + '"SecurityError: Blocked a frame with origin ' +
|
| + '\\"http-so://foobar.127.0.0.1:8000\\" from accessing a ' +
|
| + 'cross-origin frame."');
|
| + finishJSTest();
|
| +};
|
| +</script>
|
| </body>
|
| </html>
|
|
|