| Index: LayoutTests/http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-in-body.html
|
| diff --git a/LayoutTests/http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-in-body.html b/LayoutTests/http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-in-body.html
|
| index 28cdcd783b7bea2af8cdc030ec610c1a5c992bca..1ea9dade3d8697472e16b602a9ac29ff4d944197 100644
|
| --- a/LayoutTests/http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-in-body.html
|
| +++ b/LayoutTests/http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-in-body.html
|
| @@ -7,12 +7,13 @@
|
| }
|
|
|
| function checkIfDone() {
|
| - var url = document.querySelector('iframe').contentWindow.location.href;
|
| -
|
| - if (!url)
|
| - console.log("PASS: Could not read contentWindow.location.href");
|
| - else
|
| + try {
|
| + var url = document.querySelector('iframe').contentWindow.location.href;
|
| console.log("FAIL: Could read contentWindow.location.href");
|
| + } catch (e) {
|
| + console.log("PASS: Access to contentWindow.location.href threw an exception.");
|
| + }
|
| +
|
| testRunner.notifyDone();
|
| }
|
| </script>
|
|
|