Changeset 107324 in webkit
- Timestamp:
- Feb 9, 2012, 5:24:14 PM (15 years ago)
- Location:
- branches/chromium/963
- Files:
-
- 1 edited
- 2 copied
-
LayoutTests/fast/forms/form-submission-create-crash-expected.txt (copied) (copied from trunk/LayoutTests/fast/forms/form-submission-create-crash-expected.txt )
-
LayoutTests/fast/forms/form-submission-create-crash.xhtml (copied) (copied from trunk/LayoutTests/fast/forms/form-submission-create-crash.xhtml )
-
Source/WebCore/loader/FormSubmission.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/chromium/963/Source/WebCore/loader/FormSubmission.cpp
r98896 r107324 143 143 144 144 HTMLFormControlElement* submitButton = 0; 145 if (event && event->target() && event->target()->toNode()) 146 submitButton = static_cast<HTMLFormControlElement*>(event->target()->toNode()); 145 if (event && event->target()) { 146 Node* node = event->target()->toNode(); 147 if (node && node->isElementNode() && toElement(node)->isFormControlElement()) 148 submitButton = static_cast<HTMLFormControlElement*>(node); 149 } 147 150 148 151 FormSubmission::Attributes copiedAttributes;
Note:
See TracChangeset
for help on using the changeset viewer.