summaryrefslogtreecommitdiffstats
path: root/dom/plugins/test/mochitest/file_authident.js
blob: d067cff2232174461fc7ea8f686cbc8f0a1bc179 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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"
);