зеркало из https://github.com/mozilla/pjs.git
Bug 657353 followup. Put a scriptblocker around our call to VisitGroup with nsRadioSetValueMissingState, since that dispatches state change notifications.
This commit is contained in:
Родитель
7def6154a1
Коммит
5b0e02cc85
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче