blob: 87a18369b277cb2ebebf52ad1e37567fc3e7299f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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);
}
|