Bug 657353 followup. Put a scriptblocker around our call to VisitGroup with nsRadioSetValueMissingState, since that dispatches state change notifications.

This commit is contained in:
Boris Zbarsky 2011-05-31 20:21:24 -04:00
Родитель 68939aec99
Коммит e6b39b2296
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -3832,6 +3832,8 @@ nsHTMLInputElement::UpdateValueMissingValidityStateForRadio(bool aIgnoreSelf)
SetValidityState(VALIDITY_STATE_VALUE_MISSING, valueMissing);
// nsRadioSetValueMissingState will call ContentStateChanged while visiting.
nsAutoScriptBlocker scriptBlocker;
nsCOMPtr<nsIRadioVisitor> visitor =
new nsRadioSetValueMissingState(this, valueMissing, notify);
VisitGroup(visitor, notify);