| Index: LayoutTests/http/tests/security/XFrameOptions/x-frame-options-deny.html
|
| diff --git a/LayoutTests/http/tests/security/XFrameOptions/x-frame-options-deny.html b/LayoutTests/http/tests/security/XFrameOptions/x-frame-options-deny.html
|
| index 1c612dd5b78882744211abbcd8e68a99d298a3da..b6ae8334585285a61a7e5adf784a242cb78ef59e 100644
|
| --- a/LayoutTests/http/tests/security/XFrameOptions/x-frame-options-deny.html
|
| +++ b/LayoutTests/http/tests/security/XFrameOptions/x-frame-options-deny.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>
|
|
|