Index: third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-change-document-domain.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-change-document-domain.html b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-change-document-domain.html |
index c27a7cd688f60080ced7a941b1044f8ec5bec2d3..802c7b4aecc8fa50ccc3825d5eb9af65ea440c34 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-change-document-domain.html |
+++ b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-change-document-domain.html |
@@ -1,6 +1,7 @@ |
<!DOCTYPE html> |
<html> |
<head> |
+<meta charset="utf-8"> |
<title>Validate that a frame can't change it's document.domain and enter the suborigin</title> |
<script src="/resources/testharness.js"></script> |
<script src="/resources/testharnessreport.js"></script> |
@@ -9,9 +10,13 @@ |
document.domain = '127.0.0.1'; |
window.secret = 'Unchanged'; |
window.onmessage = function(event) { |
- assert_equals(secret, 'Unchanged', 'secret should not be touchable by the child in a suborigin.'); |
- assert_equals(event.data, 'SecurityError: Blocked a frame with origin \"http-so://foobar.127.0.0.1:8000\" from accessing a cross-origin frame.'); |
- done(); |
+ assert_equals(secret, 'Unchanged', |
+ 'secret should not be touchable by the child in a suborigin.'); |
+ assert_equals(event.data, |
+ 'SecurityError: Blocked a frame with origin ' + |
+ '\"http-so://foobar.127.0.0.1:8000\" from accessing a cross-origin ' + |
+ 'frame.'); |
+ done(); |
}; |
</script> |
<iframe src="resources/child-changes-document-domain.php?suborigin=foobar"></iframe> |