Chromium Code Reviews| Index: Source/core/html/HTMLFormElement.cpp |
| =================================================================== |
| --- Source/core/html/HTMLFormElement.cpp (revision 159066) |
| +++ Source/core/html/HTMLFormElement.cpp (working copy) |
| @@ -258,6 +258,7 @@ |
| bool HTMLFormElement::prepareForSubmission(Event* event) |
| { |
| + RefPtr<HTMLFormElement> protector(this); |
| Frame* frame = document().frame(); |
| if (m_isSubmittingOrPreparingForSubmission || !frame) |
| return m_isSubmittingOrPreparingForSubmission; |