summaryrefslogtreecommitdiffstats
path: root/toolkit/components/windowwatcher/test/browser_popup_condition_tab.js
blob: 36a98fd511021a1556ab4c00ee7ae56732d91c1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
"use strict";

/**
 * Opens windows from content using window.open with several features patterns.
 */
add_task(async function test_popup_conditions_tab() {
  // Non-popup is opened in a new tab (default behavior).
  await SpecialPowers.pushPrefEnv({
    set: [["browser.link.open_newwindow", 3]],
  });
  await testPopupPatterns("tab");
  await SpecialPowers.popPrefEnv();
});