tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_getURIFlags.js (426B)


      1 const contract = "@mozilla.org/network/protocol/about;1?what=newtab";
      2 const am = Cc[contract].getService(Ci.nsIAboutModule);
      3 const uri = Services.io.newURI("about:newtab");
      4 
      5 function run_test() {
      6  test_AS_enabled_flags();
      7 }
      8 
      9 // Activity Stream, however, is e10s-capable, and should advertise it.
     10 function test_AS_enabled_flags() {
     11  let flags = am.getURIFlags(uri);
     12 
     13  ok(flags & Ci.nsIAboutModule.URI_MUST_LOAD_IN_CHILD);
     14 }