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