Update web-platform-tests to revision de3ae39cb59880a8245431e7f09817a2a4dad1a3

This commit is contained in:
WPT Sync Bot 2018-06-15 21:19:30 -04:00
parent 0c5b020163
commit b322aa3943
131 changed files with 2717 additions and 600 deletions

View file

@ -16,7 +16,7 @@
}
</script>
<iframe src="support/sandboxed-post-message-to-parent.sub.html?sandbox=allow-scripts"></iframe>
<iframe src="support/sandboxed-post-message-to-parent.html?sandbox=allow-scripts"></iframe>
</body>
</html>

View file

@ -0,0 +1,3 @@
<script>
window.opener.postMessage(window.testProperty, "*");
</script>

View file

@ -0,0 +1,3 @@
<script>
window.opener.postMessage(window.testProperty, "*");
</script>

View file

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<script>
var t = async_test("Window object should not be reused");
window.onmessage = t.step_func_done(function(e) {
assert_equals(e.data, undefined);
});
w = window.open("support/sandboxed-post-property-to-opener.html?sandbox=allow-scripts","","width=400,height=400");
w.testProperty = "test";
</script>
</body>
</html>

View file

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<script>
var t = async_test("Window object should be reused");
window.onmessage = t.step_func_done(function(e) {
assert_equals(e.data, "test");
});
w = window.open("support/unsandboxed-post-property-to-opener.html","","width=400,height=400");
w.testProperty = "test";
</script>
</body>
</html>