mirror of
				https://github.com/mozilla/gecko-dev.git
				synced 2025-11-03 17:58:55 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			378 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			378 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
"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();
 | 
						|
});
 |