Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @@ -225,16 +225,21 @@ session.Proxy = class {
- if (!Number.isInteger(port)) {
- if (scheme === "socks") {
- port = null;
- } else {
- port = Services.io.getProtocolHandler(scheme).defaultPort;
- }
- }
- + let login = Cc["@mozilla.org/login-manager/loginInfo;1"]
- + .createInstance(Ci.nsILoginInfo);
- + login.init("http://example.com", "", null, "un", "pw", "un_field", "pw_field");
- + Services.logins.addLogin(login);
- +
- if (url.username != "" ||
- url.password != "" ||
- url.pathname != "/" ||
- url.search != "" ||
- url.hash != "") {
- throw new InvalidArgumentError(
- `${host} was not of the form host[:port]`);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement