bug 401096 QAX cannot login to litmus r=jay

This commit is contained in:
ctalbert%mozilla.com 2008-01-24 00:43:47 +00:00
Родитель 261df83b88
Коммит 3190187148
4 изменённых файлов: 17 добавлений и 10 удалений

Просмотреть файл

@ -62,7 +62,7 @@ function LitmusResults(a) {
this.machinename = a.machinename || '';
this.requireField('username', a);
this.requireField('password', a);
this.server = a.server || 'http://litmus.mozilla.org/process_test.cgi';
this.server = a.server || 'https://litmus.mozilla.org/process_test.cgi';
this.action = 'submit';
this.results = new Array();
@ -97,7 +97,7 @@ LitmusResults.prototype = {
var d = '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>'+"\n";
d += '<!DOCTYPE litmusresults PUBLIC' +
' "-//Mozilla Corporation//Litmus Result Submission DTD//EN/"' +
' "http://litmus.mozilla.org/litmus_results.dtd">'+"\n";
' "https://litmus.mozilla.org/litmus_results.dtd">'+"\n";
d += '<litmusresults action="'+this.action+'" useragent="'+
'litmusReporter.js/'+VERSION+' ('+this.machinename+')" '+
(this.machinename ? 'machinename="'+this.machinename+'">' : '>') +"\n";

Просмотреть файл

@ -173,9 +173,16 @@ var CC_loginManager = Components.classes["@mozilla.org/login-manager;1"];
var nsLoginInfo = new Components.Constructor("@mozilla.org/login-manager/loginInfo;1",
Components.interfaces.nsILoginInfo,
"init");
var newLogin = new nsLoginInfo('chrome://qa', 'Litmus Login', litmus.baseURL,
username, password, null, null);
this.manager().addLogin(newLogin);
// The LoginManager does not like "null" for username/password fields,
// So we send in the field names from the XUL.
var newLogin = new nsLoginInfo('chrome://qa', 'Litmus Login', litmus.baseURL,
username, password, "username", "password");
try {
this.manager().addLogin(newLogin);
} catch (err) {
alert("ERROR: " + err);
}
},
getPasswordObj: function() {
try {

Просмотреть файл

@ -75,8 +75,8 @@
<spacer height="20px" />
<label value="&qa.setup.haveaccount;"/>
<radiogroup id="qa-setup-account-haveaccount">
<radio value="0" label="&qa.setup.accountno;" onclick="qaSetup.accountSetting('0');"/>
<radio value="1" label="&qa.setup.accountyes;" onclick="qaSetup.accountSetting('1');"/>
<radio value="0" label="&qa.setup.accountno;" oncommand="qaSetup.accountSetting('0');"/>
<radio value="1" label="&qa.setup.accountyes;" oncommand="qaSetup.accountSetting('1');"/>
</radiogroup>
<spacer height="20px" />

Просмотреть файл

@ -35,9 +35,9 @@
*
* ***** END LICENSE BLOCK ***** */
pref("qa.extension.litmus.url", "http://litmus.mozilla.org/");
pref("qa.extension.hermes.url", "http://litmus.mozilla.org/hermes/1/");
pref("qa.extension.bugzilla.url", "http:/bugzilla.mozilla.org/");
pref("qa.extension.litmus.url", "https://litmus.mozilla.org/");
pref("qa.extension.hermes.url", "https://litmus.mozilla.org/hermes/1/");
pref("qa.extension.bugzilla.url", "https:/bugzilla.mozilla.org/");
pref("qa.extension.isFirstTime", true);
pref("qa.extension.minNotificationInterval", 5400000); // 90 minutes
pref("qa.extension.lastNotificationTime", 0);