зеркало из https://github.com/mozilla/gecko-dev.git
fix account manager regression. use new style contract id
instead of old style. patch from shaver. sr=sspitzer
This commit is contained in:
Родитель
b4773b1e64
Коммит
fe047e7a6e
|
@ -606,11 +606,10 @@ function getFormElementValue(formElement) {
|
|||
else if (type == "textbox" &&
|
||||
formElement.getAttribute("datatype") == "nsILocalFile") {
|
||||
if (formElement.value) {
|
||||
var localfile = Components.classes["component://mozilla/file/local"].createInstance(Components.interfaces.nsILocalFile);
|
||||
var localfile = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);
|
||||
|
||||
localfile.unicodePath = formElement.value;
|
||||
return localfile;
|
||||
|
||||
}
|
||||
else {
|
||||
return null;
|
||||
|
|
Загрузка…
Ссылка в новой задаче