forked from mirrors/gecko-dev
		
	 1f830c96da
			
		
	
	
		1f830c96da
		
	
	
	
	
		
			
			# 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"
 | |
|   );
 | |
| }
 |