B2G/gecko/toolkit/mozapps/extensions/test/xpinstall/browser_whitelist4.js
// blocked since the referer is not whitelisted even though the target is.
blocked since the referer is not whitelisted even though the target is.
blocked since the referer is not whitelisted even though the target is .
function test() {
  Harness.installBlockedCallback = allow_blocked;
  Harness.installsCompletedCallback = finish_test;
  Harness.setup();
  var pm = Services.perms;
  pm.add(makeURI("http://example.com/"), "install", pm.ALLOW_ACTION);
  var triggers = encodeURIComponent(JSON.stringify({
    "Unsigned XPI": TESTROOT2 + "unsigned.xpi"
  }));
  gBrowser.selectedTab = gBrowser.addTab();
  gBrowser.loadURI(TESTROOT + "unsigned.xpi", makeURI(TESTROOT2 + "test.html"));
}
function test ( ) { Harness . installBlockedCallback = allow_blocked ; Harness . installsCompletedCallback = finish_test ; Harness . setup ( ) ; var pm = Services . perms ; pm . add ( makeURI ( "http://example.com/" ) , "install" , pm . ALLOW_ACTION ) ; var triggers = encodeURIComponent ( JSON . stringify ( { "Unsigned XPI" : TESTROOT2 + "unsigned.xpi" } ) ) ; gBrowser . selectedTab = gBrowser . addTab ( ) ; gBrowser . loadURI ( TESTROOT + "unsigned.xpi" , makeURI ( TESTROOT2 + "test.html" ) ) ; }
blocked since the referer is not whitelisted even though the target is.
blocked since the referer is not whitelisted even though the target is .