Commented out the reset of the list when an option gets added
Fixes crashers 17836, 17852, 17965 r=kmcclusk git-svn-id: svn://10.0.0.236/trunk@52817 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
451b1f9771
commit
e34b01ce89
@ -1679,7 +1679,8 @@ nsListControlFrame::AddOption(nsIPresContext* aPresContext, PRInt32 aIndex)
|
||||
PRBool selected = PR_FALSE;
|
||||
option->GetDefaultSelected(&selected);
|
||||
if (selected) {
|
||||
Reset(aPresContext); // this sets mSelectedIndex to the defaulted selection
|
||||
// XXX this is very bad to here
|
||||
//Reset(aPresContext); // this sets mSelectedIndex to the defaulted selection
|
||||
wasReset = PR_TRUE;
|
||||
}
|
||||
NS_RELEASE(option);
|
||||
|
||||
@ -1679,7 +1679,8 @@ nsListControlFrame::AddOption(nsIPresContext* aPresContext, PRInt32 aIndex)
|
||||
PRBool selected = PR_FALSE;
|
||||
option->GetDefaultSelected(&selected);
|
||||
if (selected) {
|
||||
Reset(aPresContext); // this sets mSelectedIndex to the defaulted selection
|
||||
// XXX this is very bad to here
|
||||
//Reset(aPresContext); // this sets mSelectedIndex to the defaulted selection
|
||||
wasReset = PR_TRUE;
|
||||
}
|
||||
NS_RELEASE(option);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user