| Index: LayoutTests/http/tests/security/XFrameOptions/x-frame-options-multiple-headers-sameorigin-deny.html
|
| diff --git a/LayoutTests/http/tests/security/XFrameOptions/x-frame-options-multiple-headers-sameorigin-deny.html b/LayoutTests/http/tests/security/XFrameOptions/x-frame-options-multiple-headers-sameorigin-deny.html
|
| index 1a88e5b8fc16a72ba7a8a3838605bd29aee17c3a..e4804ec46c814962b4a49048bcda01b7ea4f5cfe 100644
|
| --- a/LayoutTests/http/tests/security/XFrameOptions/x-frame-options-multiple-headers-sameorigin-deny.html
|
| +++ b/LayoutTests/http/tests/security/XFrameOptions/x-frame-options-multiple-headers-sameorigin-deny.html
|
| @@ -10,12 +10,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>
|
|
|