Bug 1659221 - Make test_bug967796.html pass with cross-origin and Fission enabled; r=smaug
authorEdgar Chen <echen@mozilla.com>
Tue, 18 Aug 2020 18:12:45 +0000
changeset 609856 fec0ffbd1773cb3c4d4bf7a52f0c803414e6efa9
parent 609855 d9ee9a2a6fec3f70db60046cb5f29a219589afa9
child 609857 f2e6cb8a6e7f500e06c1959a371a355e875eafa2
push id13553
push userffxbld-merge
push dateMon, 24 Aug 2020 12:51:36 +0000
treeherdermozilla-beta@a54f8b5d0977 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1659221, 967796
milestone81.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 1659221 - Make test_bug967796.html pass with cross-origin and Fission enabled; r=smaug Wait for iframe loaded before starting the tests, otherwise, the `synthesizeMouse` might fail due to `nsPresShell` isn't yet finishing initializing and `nsPresShell::GetRootFrame` would returns `nullptr`. Differential Revision: https://phabricator.services.mozilla.com/D87201
dom/events/test/mochitest.ini
dom/events/test/test_bug967796.html
--- a/dom/events/test/mochitest.ini
+++ b/dom/events/test/mochitest.ini
@@ -131,18 +131,16 @@ skip-if = debug #In order to be able to 
 [test_bug855741.html]
 [test_bug864040.html]
 [test_bug924087.html]
 [test_bug930374-content.html]
 [test_bug944011.html]
 [test_bug944847.html]
 [test_bug946632.html]
 [test_bug967796.html]
-skip-if = (verify && (os == 'linux'))
-  || xorigin # JavaScript error: http://mochi.xorigin-test:8888/tests/SimpleTest/TestRunner.js, line 157: SecurityError: Permission denied to access property "wrappedJSObject" on cross-origin object
 [test_bug985988.html]
 [test_bug998809.html]
 [test_bug1003432.html]
 support-files = test_bug1003432.js
 [test_bug1013412.html]
 skip-if = (verify && debug && (os == 'linux' || os == 'win'))
 [test_bug1017086_disable.html]
 support-files = bug1017086_inner.html
--- a/dom/events/test/test_bug967796.html
+++ b/dom/events/test/test_bug967796.html
@@ -53,20 +53,17 @@ var expectedPointerLeaveTargets = [];
 
 function runTests() {
   outer = document.getElementById("outertest");
   middle = document.getElementById("middletest");
   inner = document.getElementById("innertest");
   outside = document.getElementById("outside");
   container = document.getElementById("container");
   file = document.getElementById("file");
-  iframe = document.createElement('iframe');
-  iframe.width=50;
-  iframe.height=50;
-  container.appendChild(iframe);
+  iframe = document.getElementById("iframe");
   iframe.addEventListener("pointerenter", penter);
   iframe.addEventListener("pointerleave", pleave);
   iframe.addEventListener("pointerout", pout);
   iframe.addEventListener("pointerover", pover);
 
   // Make sure ESM thinks pointer is outside the test elements.
   sendMouseEventToElement("mousemove", outside);
 
@@ -235,11 +232,12 @@ function pout(evt) {
       <div id="innertest" onpointerenter="penter(event)" onpointerleave="pleave(event)"
                           onpointerout="pout(event)" onpointerover="pover(event)">foo</div>
     </div>
   </div>
   <input type="file" id="file"
          onpointerenter="penter(event)" onpointerleave="pleave(event)"
          onpointerout="pout(event)" onpointerover="pover(event)">
   <br>
+  <iframe id="iframe" width="50" height="50"></iframe>
 </div>
 </body>
 </html>