Backed out changeset 7b2ffe9a4d06 (bug 1869605) for causing bc failures on browser_no...
[gecko.git] / toolkit / components / messaging-system / schemas / SpecialMessageActionSchemas / test / browser / browser_sma_open_firefoxview.js
blob077de96d2461b3c02e9945037b996b5660b5b978
1 /* Any copyright is dedicated to the Public Domain.
2    http://creativecommons.org/publicdomain/zero/1.0/ */
4 "use strict";
6 add_task(async function test_open_firefoxview() {
7   // Remove this test when we remove old firefox view, see bug 1850501.
8   await SpecialPowers.pushPrefEnv({
9     set: [["browser.tabs.firefox-view-next", false]],
10   });
12   const tabPromise = BrowserTestUtils.waitForNewTab(
13     gBrowser,
14     "about:firefoxview"
15   );
16   await SMATestUtils.executeAndValidateAction({
17     type: "OPEN_FIREFOX_VIEW",
18   });
20   const tab = await tabPromise;
22   ok(tab, "should open about:firefoxview in a new tab");
24   BrowserTestUtils.removeTab(tab);
25   await SpecialPowers.popPrefEnv();
26 });