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
Родитель 7def6154a1
Коммит 5b0e02cc85
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);