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