Bug 1530285 - Remove waitForNewTabEvent from browser/base/content/test/siteIdentity/head.js r=johannh

Removed waitForNewTabEvent from browser/base/content/test/siteIdentity/head.js as it doesn't seem to be used anymore.

Differential Revision: https://phabricator.services.mozilla.com/D21868

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mariah 2019-04-09 10:01:43 +00:00
Родитель 4d1c376ac0
Коммит 4c4dd32808
1 изменённых файлов: 0 добавлений и 15 удалений

Просмотреть файл

@ -1,20 +1,5 @@
var {XPCOMUtils} = ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
/**
* Returns a Promise that resolves once a new tab has been opened in
* a xul:tabbrowser.
*
* @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 BrowserTestUtils.waitForEvent(aTabBrowser.tabContainer, "TabOpen");
}
/**
* Waits for a load (or custom) event to finish in a given tab. If provided
* load an uri into the tab.