1 /* Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ */
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]],
12 const tabPromise = BrowserTestUtils.waitForNewTab(
16 await SMATestUtils.executeAndValidateAction({
17 type: "OPEN_FIREFOX_VIEW",
20 const tab = await tabPromise;
22 ok(tab, "should open about:firefoxview in a new tab");
24 BrowserTestUtils.removeTab(tab);
25 await SpecialPowers.popPrefEnv();