Bug 1585775 - Fix undefined reference, r=jlast.
authorBrian Hackett <bhackett1024@gmail.com>
Wed, 02 Oct 2019 22:48:24 +0000
changeset 496133 94eaa02e0ea1725512893cd5139b1d200fcf4fdd
parent 496132 4e83dcd91c83bb6a19dd3044fdc3b6df49f4a7db
child 496134 5e221240fc1d537da612973800bbe24efa50736b
push id97039
push userbhackett@mozilla.com
push dateWed, 02 Oct 2019 23:02:01 +0000
treeherderautoland@94eaa02e0ea1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjlast
bugs1585775
milestone71.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 1585775 - Fix undefined reference, r=jlast. Differential Revision: https://phabricator.services.mozilla.com/D47987
devtools/client/shared/test/shared-head.js
--- a/devtools/client/shared/test/shared-head.js
+++ b/devtools/client/shared/test/shared-head.js
@@ -439,17 +439,17 @@ function loadHelperScript(filePath) {
   Services.scriptloader.loadSubScript(testDir + "/" + filePath, this);
 }
 
 /**
  * Wait for a tick.
  * @return {Promise}
  */
 function waitForTick() {
-  return new Promise(resolve => executeSoon(resolve));
+  return new Promise(resolve => DevToolsUtils.executeSoon(resolve));
 }
 
 /**
  * This shouldn't be used in the tests, but is useful when writing new tests or
  * debugging existing tests in order to introduce delays in the test steps
  *
  * @param {Number} ms
  *        The time to wait
@@ -615,17 +615,17 @@ function waitForContextMenu(popup, butto
     function onPopupShown() {
       info("onPopupShown");
       popup.removeEventListener("popupshown", onPopupShown);
 
       onShown && onShown();
 
       // Use executeSoon() to get out of the popupshown event.
       popup.addEventListener("popuphidden", onPopupHidden);
-      executeSoon(() => popup.hidePopup());
+      DevToolsUtils.executeSoon(() => popup.hidePopup());
     }
     function onPopupHidden() {
       info("onPopupHidden");
       popup.removeEventListener("popuphidden", onPopupHidden);
 
       onHidden && onHidden();
 
       resolve(popup);