| Index: LayoutTests/security/resources/cannot-read-self-from-file.html
|
| diff --git a/LayoutTests/security/resources/cannot-read-self-from-file.html b/LayoutTests/security/resources/cannot-read-self-from-file.html
|
| index 9851f156af272c575aaf74bd6180dbc9fe278ac7..d380284c51226a086a9bb2bb68c11bd4bc3246c6 100644
|
| --- a/LayoutTests/security/resources/cannot-read-self-from-file.html
|
| +++ b/LayoutTests/security/resources/cannot-read-self-from-file.html
|
| @@ -4,10 +4,12 @@
|
| <script>
|
| var req = new XMLHttpRequest();
|
| req.open('GET', location);
|
| -req.onerror = function() {
|
| - window.parent.postMessage('PASS', '*');
|
| +try {
|
| + req.send();
|
| + window.parent.postMessage('FAIL', '*');
|
| +} catch (e) {
|
| + window.parent.postMessage(e.name, '*');
|
| }
|
| -req.send();
|
| </script>
|
| </head>
|
| <body>
|
|
|