forked from mirrors/gecko-dev
		
	# ignore-this-changeset Differential Revision: https://phabricator.services.mozilla.com/D36042 --HG-- extra : source : d3afcafdce650a6f36cebbc126ee93b17f13cf52
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			507 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			507 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
 | 
						|
 | 
						|
const contract = "@mozilla.org/network/protocol/about;1?what=newtab";
 | 
						|
const am = Cc[contract].getService(Ci.nsIAboutModule);
 | 
						|
const uri = Services.io.newURI("about:newtab");
 | 
						|
 | 
						|
function run_test() {
 | 
						|
  test_AS_enabled_flags();
 | 
						|
}
 | 
						|
 | 
						|
// Activity Stream, however, is e10s-capable, and should advertise it.
 | 
						|
function test_AS_enabled_flags() {
 | 
						|
  let flags = am.getURIFlags(uri);
 | 
						|
 | 
						|
  ok(flags & Ci.nsIAboutModule.URI_MUST_LOAD_IN_CHILD);
 | 
						|
}
 |