Bug 1513206 [wpt PR 14460] - HTML: test that non-synthetic errors get muted too, a=testonly
authorAnne van Kesteren <annevk@annevk.nl>
Tue, 18 Dec 2018 17:59:48 +0000
changeset 514981 71e378cbdb3525b9a9f845e41b1295bf22e2d27a
parent 514980 6cf4084543869b8ed9ba0a661af7fa9fb54e64a3
child 514982 fd849fc7298930f37cc07a51bc57e3040c701af6
push id1953
push userffxbld-merge
push dateMon, 11 Mar 2019 12:10:20 +0000
treeherdermozilla-release@9c35dcbaa899 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1513206, 14460
milestone66.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1513206 [wpt PR 14460] - HTML: test that non-synthetic errors get muted too, a=testonly Automatic update from web-platform-tests HTML: test that non-synthetic errors get muted too -- wpt-commits: 69d00d5f81ac1b29673878368055d24390819cc8 wpt-pr: 14460
testing/web-platform/tests/html/semantics/scripting-1/the-script-element/muted-errors.sub.html
testing/web-platform/tests/html/semantics/scripting-1/the-script-element/resources/throw.js
--- a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/muted-errors.sub.html
+++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/muted-errors.sub.html
@@ -48,22 +48,30 @@
                            "cross-origin url and redirected back to " +
                            "same-origin should be muted");
     var check4 = test4.step_func_done(() => check(true));
 
     var test5 = async_test("Errors for cross-origin scripts redirected to a " +
                            "same-origin url should be muted");
     var check5 = test5.step_func_done(() => check(true));
 
+    const test6 = async_test("Non-synthetic errors for same-origin scripts redirected to a " +
+                             "cross-origin URL and redirected back to same-origin should be " +
+                             "muted");
+    const check6 = test6.step_func_done(() => check(true));
+
     function unreachable() { log.push("unexpected"); }
 </script>
 <script src="cacheable-script-throw.py" onerror="test1.unreached_func()()" onload="check1()"></script>
 <script src="//{{domains[www2]}}:{{ports[http][0]}}/html/semantics/scripting-1/the-script-element/cacheable-script-throw.py"
     onerror="test2.unreached_func()()" onload="check2()"></script>
 <iframe src="//{{domains[www2]}}:{{ports[http][0]}}/html/semantics/scripting-1/the-script-element/muted-errors-iframe.html"
     onerror="test3.unreached_func()()" onload="step3()"></iframe>
 <script src="/fetch/api/resources/redirect.py?location=
 //{{domains[www2]}}:{{ports[http][0]}}/fetch/api/resources/redirect.py?location=
 //{{host}}:{{ports[http][0]}}/html/semantics/scripting-1/the-script-element/cacheable-script-throw.py?same-cross-same"
 onerror="test4.unreached_func()()" onload="check4()"></script>
 <script src="//{{domains[www2]}}:{{ports[http][0]}}/fetch/api/resources/redirect.py?location=
 //{{host}}:{{ports[http][0]}}/html/semantics/scripting-1/the-script-element/cacheable-script-throw.py?cross-same"
 onerror="test5.unreached_func()()" onload="check5()"></script>
+<script src="//{{domains[www2]}}:{{ports[http][0]}}/fetch/api/resources/redirect.py?location=
+//{{host}}:{{ports[http][0]}}/html/semantics/scripting-1/the-script-element/resources/throw.js"
+onerror="test6.unreached_func()()" onload="check6()"></script>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/resources/throw.js
@@ -0,0 +1,1 @@
+document.querySelector(":::not-going-to-be-valid");