forked from mirrors/gecko-dev
		
	# ignore-this-changeset Differential Revision: https://phabricator.services.mozilla.com/D36042 --HG-- extra : source : d3afcafdce650a6f36cebbc126ee93b17f13cf52
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			366 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			366 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
const { ShellService } = ChromeUtils.import(
 | 
						|
  "resource:///modules/ShellService.jsm"
 | 
						|
);
 | 
						|
 | 
						|
function test() {
 | 
						|
  ShellService.setDefaultBrowser(true, false);
 | 
						|
  ok(
 | 
						|
    ShellService.isDefaultBrowser(true, false),
 | 
						|
    "we got here and are the default browser"
 | 
						|
  );
 | 
						|
  ok(
 | 
						|
    ShellService.isDefaultBrowser(true, true),
 | 
						|
    "we got here and are the default browser"
 | 
						|
  );
 | 
						|
}
 |