Bug 1575272 - Fix DOM bindings tests to work with Fission. r=peterv
authorAndrew McCreight <continuation@gmail.com>
Wed, 21 Aug 2019 20:10:33 +0000
changeset 553212 01ed7f4e9a8f62f1761b6048539cd220cdc74827
parent 553211 15d0f55c9720876fd43194c1b79a9362f1e8a8ce
child 553213 c74a30be936c3292f755f634bf64f2e03d3d6879
push id2165
push userffxbld-merge
push dateMon, 14 Oct 2019 16:30:58 +0000
treeherdermozilla-release@0eae18af659f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspeterv
bugs1575272
milestone70.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 1575272 - Fix DOM bindings tests to work with Fission. r=peterv These test that various DOM things fail when done cross-origin. They'll fail in a different way if done cross-process, so change the origin used so that it is same-process, but cross-origin, even with Fission. Differential Revision: https://phabricator.services.mozilla.com/D42678
dom/bindings/test/mochitest.ini
dom/bindings/test/test_bug1036214.html
dom/bindings/test/test_crossOriginWindowSymbolAccess.html
--- a/dom/bindings/test/mochitest.ini
+++ b/dom/bindings/test/mochitest.ini
@@ -14,17 +14,16 @@ support-files =
 [test_bug560072.html]
 [test_bug742191.html]
 [test_bug759621.html]
 [test_bug773326.html]
 [test_bug788369.html]
 [test_bug852846.html]
 [test_bug862092.html]
 [test_bug1036214.html]
-fail-if = fission
 skip-if = !debug
 [test_bug1041646.html]
 [test_bug1123875.html]
 [test_barewordGetsWindow.html]
 support-files =
   file_barewordGetsWindow_frame1.html
   file_barewordGetsWindow_frame2.html
 [test_callback_across_document_open.html]
@@ -61,17 +60,16 @@ subsuite = gpu
 skip-if = debug == false
 [test_exception_options_from_jsimplemented.html]
 skip-if = debug == false
 [test_promise_rejections_from_jsimplemented.html]
 skip-if = debug == false
 [test_worker_UnwrapArg.html]
 [test_unforgeablesonexpando.html]
 [test_crossOriginWindowSymbolAccess.html]
-skip-if = fission # Should be fail-if, but this test's harness doesn't respect it.
 [test_primitive_this.html]
 [test_callback_exceptions.html]
 [test_bug1123516_maplikesetlike.html]
 skip-if = debug == false
 [test_jsimplemented_eventhandler.html]
 skip-if = debug == false
 [test_jsimplemented_cross_realm_this.html]
 skip-if = debug == false
--- a/dom/bindings/test/test_bug1036214.html
+++ b/dom/bindings/test/test_bug1036214.html
@@ -121,11 +121,11 @@ https://bugzilla.mozilla.org/show_bug.cg
 <body>
 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1036214">Mozilla Bug 1036214</a>
 <p id="display"></p>
 <div id="content" style="display: none">
 
 </div>
 <pre id="test">
 </pre>
-<iframe id="ifr" onload="setup();" src="http://example.org/tests/js/xpconnect/tests/mochitest/file_empty.html"></iframe>
+<iframe id="ifr" onload="setup();" src="http://test1.mochi.test:8888/tests/js/xpconnect/tests/mochitest/file_empty.html"></iframe>
 </body>
 </html>
--- a/dom/bindings/test/test_crossOriginWindowSymbolAccess.html
+++ b/dom/bindings/test/test_crossOriginWindowSymbolAccess.html
@@ -1,15 +1,15 @@
 <!DOCTYPE html>
 <meta charset=utf-8>
 <title>Test for accessing symbols on a cross-origin window</title>
 <script src="/resources/testharness.js"></script>
 <script src="/resources/testharnessreport.js"></script>
 <div id="log"></div>
-<iframe src="http://www1.w3c-test.org/common/blank.html"></iframe>
+<iframe src="http://test1.mochi.test:8888/tests/js/xpconnect/tests/mochitest/file_empty.html"></iframe>
 <script>
 /* global async_test, assert_equals, assert_throws */
 
 async_test(function(t) {
   window.addEventListener("load", t.step_func(
     function() {
       assert_equals(document.querySelector("iframe").contentDocument, null, "Should have a crossorigin frame");
       assert_throws("SecurityError", function() {