forked from mirrors/gecko-dev
		
	Differential Revision: https://phabricator.services.mozilla.com/D45329 --HG-- extra : source : acff4a6636719d9302d1a893e1f3ca392c8f99e5 extra : histedit_source : c727f4637a48f89ecb29233dba0a4aba0ed9ffd9%2Cfd70bbd8400e8aba9a4dc57956bfc9f1320e20db
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			447 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			447 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
add_task(async function test() {
 | 
						|
  window.open("about:blank", "", "width=100,height=100,noopener");
 | 
						|
 | 
						|
  let win = Services.wm.getMostRecentWindow("navigator:browser");
 | 
						|
  Services.prefs.setBoolPref("browser.tabs.closeWindowWithLastTab", false);
 | 
						|
  win.gBrowser.removeCurrentTab();
 | 
						|
  ok(win.closed, "popup is closed");
 | 
						|
 | 
						|
  // clean up
 | 
						|
  if (!win.closed) {
 | 
						|
    win.close();
 | 
						|
  }
 | 
						|
  Services.prefs.clearUserPref("browser.tabs.closeWindowWithLastTab");
 | 
						|
});
 |