bug 213228: new toolkit independence bug, part 10: port seamonkey fixes in the toolkit/content files

bug 188956 by suresh, bug 201964 by shliang
This commit is contained in:
chanial%noos.fr 2003-08-17 18:18:14 +00:00
Родитель f7641ed674
Коммит 4c9254e33b
1 изменённых файлов: 4 добавлений и 3 удалений

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

@ -114,9 +114,10 @@ nsWidgetStateManager.prototype =
if ("GetFields" in gCurrentWindow) {
// save page data based on user supplied function in content area
var dataObject = gCurrentWindow.GetFields();
var dataObject = this.dataManager.getPageData(aPageTag);
dataObject = this.contentArea.GetFields(dataObject);
if (dataObject)
this.dataManager.setPageData( aPageTag, dataObject );
this.dataManager.setPageData(aPageTag, dataObject);
}
// Automatic element retrieval. This is done in two ways.
@ -231,7 +232,7 @@ nsWidgetStateManager.prototype =
// set menulist specific properties
if ("value" in aDataObject) {
try {
element.selectedItem = element.getElementsByAttribute("value", aDataObject.value)[0];
element.selectedItem = aDataObject.value;
}
catch (ex) {
dump(aElementID + ", ex: " + ex + "\n");