| Index: LayoutTests/http/tests/security/suborigins/multiple-suborigins-disallowed.html
|
| diff --git a/LayoutTests/http/tests/security/suborigins/multiple-suborigins-disallowed.html b/LayoutTests/http/tests/security/suborigins/multiple-suborigins-disallowed.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..003af9142f4344f23e42d3923846f74116936eb5
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/security/suborigins/multiple-suborigins-disallowed.html
|
| @@ -0,0 +1,23 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| + <title>Multiple Suborigins Disallowed</title>
|
| +<script src="/resources/testharness.js"></script>
|
| +<script src="/resources/testharnessreport.js"></script>
|
| +</head>
|
| +
|
| +<script>
|
| +
|
| +window.onmessage = function() {
|
| + var secret = '';
|
| + try {
|
| + secret = iframe.contentWindow.secret;
|
| + assert_unreached();
|
| + } catch(e) {
|
| + assert_equals(secret, "", "The parent frame should never be able to get the secret value from the child iframe.");
|
| + done();
|
| + };
|
| +};
|
| +
|
| +</script>
|
| +<iframe id="iframe" src="resources/multiple-suborigins.php"></iframe>
|
|
|