B2G/gecko/toolkit/mozapps/extensions/test/xpinstall/browser_trigger_redirect.js
// Tests that the InstallTrigger callback can redirect to a relative url.
Tests that the InstallTrigger callback can redirect to a relative url.
Tests that the InstallTrigger callback can redirect to a relative url .
function test() {
  Harness.installConfirmCallback = confirm_install;
  Harness.installEndedCallback = install_ended;
  Harness.installsCompletedCallback = finish_test;
  Harness.setup();
  var pm = Services.perms;
  pm.add(makeURI("http://example.com/"), "install", pm.ALLOW_ACTION);
  gBrowser.selectedTab = gBrowser.addTab();
  gBrowser.loadURI(TESTROOT + "triggerredirect.html");
}
function test ( ) { Harness . installConfirmCallback = confirm_install ; Harness . installEndedCallback = install_ended ; Harness . installsCompletedCallback = finish_test ; Harness . setup ( ) ; var pm = Services . perms ; pm . add ( makeURI ( "http://example.com/" ) , "install" , pm . ALLOW_ACTION ) ; gBrowser . selectedTab = gBrowser . addTab ( ) ; gBrowser . loadURI ( TESTROOT + "triggerredirect.html" ) ; }
Tests that the InstallTrigger callback can redirect to a relative url.
Tests that the InstallTrigger callback can redirect to a relative url .