the company that i work for has changed the http proxy to protect the internet from its workers by windows passwords.
i managed to get the domain\user and the password pre filled for the authentication dialog.
Now i would like to avoid the dialog completely.
I found the relevant code in omi.jar, file components/nsLoginManagerPrompter.js, function promptAuth:
Code: Select all
if (foundLogins.length > 0) {
selectedLogin = foundLogins[0];
this._SetAuthInfo(aAuthInfo, selectedLogin.username,
selectedLogin.password);
// Allow automatic proxy login
if (aAuthInfo.flags & Ci.nsIAuthInformation.AUTH_PROXY &&
!(aAuthInfo.flags & Ci.nsIAuthInformation.PREVIOUS_FAILED) &&
Services.prefs.getBoolPref("signon.autologin.proxy") &&
!this._inPrivateBrowsing) {
this.log("Autologin enabled, skipping auth prompt.");
canAutologin = true;
}
checkbox.value = true;
}
...
var ok = canAutologin;
if (!ok) {
if (this._chromeWindow)
PromptUtils.fireDialogEvent(this._chromeWindow, "DOMWillOpenModalDialog", this._browser);
preference signon.autologin.proxy is also set,
but _inPrivateBrowsing lets the condition fail.
Could the file changed please, so automatic proxy authentication works also in "do not record chronic" mode?
For people that want to get the dialog, they can set the signon.autologin.proxy preference to false.