| Index: LayoutTests/http/tests/security/script-onerror-crossorigin-same-origin.html
|
| diff --git a/LayoutTests/http/tests/security/script-onerror-crossorigin-cors.html b/LayoutTests/http/tests/security/script-onerror-crossorigin-same-origin.html
|
| similarity index 60%
|
| copy from LayoutTests/http/tests/security/script-onerror-crossorigin-cors.html
|
| copy to LayoutTests/http/tests/security/script-onerror-crossorigin-same-origin.html
|
| index f0033b9177d3383aac546a49b310341b90d17712..32b1cf839c5b73cfcc93940d0f0507895bc71ad5 100644
|
| --- a/LayoutTests/http/tests/security/script-onerror-crossorigin-cors.html
|
| +++ b/LayoutTests/http/tests/security/script-onerror-crossorigin-same-origin.html
|
| @@ -5,7 +5,7 @@
|
| <script src="../../js-test-resources/js-test-pre.js"></script>
|
| <script>
|
| window.jsTestIsAsync = true;
|
| - description("The test passes if 'window.onerror' gets unsanitized information about an exception thrown in a script loaded with a 'crossorigin' attribute, and delivered with valid CORS headers.");
|
| + description("The test passes if 'window.onerror' is invoked with unsanitized information on a script loaded with a 'crossorigin' attribute, but loads from same-origin and without valid CORS headers.");
|
|
|
| window.onerror = function(msg, url, line, column, error) {
|
| window.msg = msg;
|
| @@ -14,14 +14,14 @@
|
| window.column = column;
|
| window.errorObject = error;
|
| shouldBeTrue("/SomeError/.test(msg)");
|
| - shouldBeEqualToString("url", "http://localhost:8000/security/resources/cors-script.php?fail=true&cors=true");
|
| + shouldBeEqualToString("url", "http://127.0.0.1:8000/security/resources/cors-script.php?fail=true&cors=false");
|
| shouldBe("line", "1");
|
| shouldBe("column", "1");
|
| shouldNotBe("window.errorObject", "null");
|
| finishJSTest();
|
| }
|
| </script>
|
| - <script crossorigin="anonymous" src="http://localhost:8000/security/resources/cors-script.php?fail=true&cors=true"></script>
|
| + <script crossorigin="anonymous" src="resources/cors-script.php?fail=true&cors=false"></script>
|
| <script src="../../js-test-resources/js-test-post.js"></script>
|
| </body>
|
| </html>
|
|
|