Bug 1530283 replaced promiseWaitForEvent usage in the waitForNewTabEvent test function with the BrowserTestUtils.waitForEvent utility function r=johannh
authorRiz <rizwansyed357@protonmail.com>
Fri, 01 Mar 2019 15:11:06 +0000
changeset 519850 8dc3d4283b0cb3c3e4eef548c5b6f6d4d561a427
parent 519849 37c04ba80d68ca4f2e764ffae5db7aedad4bd26d
child 519851 dcfebc36f75c8950280cee02cf82398932db98ee
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjohannh
bugs1530283
milestone67.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 1530283 replaced promiseWaitForEvent usage in the waitForNewTabEvent test function with the BrowserTestUtils.waitForEvent utility function r=johannh Replaced promiseWaitForEvent usage in the waitForNewTabEvent test function with the BrowserTestUtils.waitForEvent utility function r=reviewers Differential Revision: https://phabricator.services.mozilla.com/D21395
browser/base/content/test/general/head.js
--- a/browser/base/content/test/general/head.js
+++ b/browser/base/content/test/general/head.js
@@ -387,17 +387,17 @@ function promiseTabLoadEvent(tab, url) {
  * @param aTabBrowser
  *        The xul:tabbrowser to monitor for a new tab.
  * @return {Promise}
  *        Resolved when the new tab has been opened.
  * @resolves to the TabOpen event that was fired.
  * @rejects Never.
  */
 function waitForNewTabEvent(aTabBrowser) {
-  return promiseWaitForEvent(aTabBrowser.tabContainer, "TabOpen");
+  return BrowserTestUtils.waitForEvent(aTabBrowser.tabContainer, "TabOpen");
 }
 
 function is_hidden(element) {
   var style = element.ownerGlobal.getComputedStyle(element);
   if (style.display == "none")
     return true;
   if (style.visibility != "visible")
     return true;