| Index: LayoutTests/http/tests/security/contentSecurityPolicy/sandbox-allow-scripts-in-http-header.html
|
| diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/sandbox-allow-scripts-in-http-header.html b/LayoutTests/http/tests/security/contentSecurityPolicy/sandbox-allow-scripts-in-http-header.html
|
| index 0ead40d4a3e7a02a15d7650107330aac9ed27f40..11cb8023591d7f376ac744efddb5d4928686894d 100644
|
| --- a/LayoutTests/http/tests/security/contentSecurityPolicy/sandbox-allow-scripts-in-http-header.html
|
| +++ b/LayoutTests/http/tests/security/contentSecurityPolicy/sandbox-allow-scripts-in-http-header.html
|
| @@ -6,10 +6,11 @@ if (window.testRunner)
|
|
|
| window.onload = function() {
|
| var frame = document.getElementsByTagName("iframe")[0];
|
| - var secret = frame.contentWindow.secret;
|
| - if (secret)
|
| + try {
|
| + var secret = frame.contentWindow.secret;
|
| alert("FAIL: Iframe was not in a unique origin: " + secret);
|
| - else
|
| + } catch (e) {
|
| alert("PASS: Iframe was in a unique origin");
|
| + }
|
| };
|
| </script>
|
|
|