Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(502)

Unified Diff: Source/core/html/HTMLFormElement.cpp

Issue 26200002: Merge 158428 "Fix a crash in HTMLFormElement::prepareForSubmission." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/1599/
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/forms/form-submission-crash-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « LayoutTests/fast/forms/form-submission-crash-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698