summaryrefslogtreecommitdiffstats
path: root/dom/plugins/test/mochitest/file_authident.js
blob: f255fc30c7fd72542b2c04e25c4cf79bbf5c5a2c (plain)
1
2
3
4
5
6
var Ci = Components.interfaces;
var Cc = Components.classes;
var am = Cc["@mozilla.org/network/http-auth-manager;1"].
         getService(Ci.nsIHttpAuthManager);
am.setAuthIdentity("http", "mochi.test", 8888, "basic", "testrealm", "",
    "mochi.test", "user1", "password1");