Changeset 263624 in webkit
- Timestamp:
- Jun 27, 2020 9:44:03 AM (4 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r263621 r263624 1 2020-06-27 Rob Buis <rbuis@igalia.com> 2 3 Require <form> to be connected 4 https://bugs.webkit.org/show_bug.cgi?id=177356 5 6 Reviewed by Sam Weinig. 7 8 Update improved test result. 9 10 * web-platform-tests/html/semantics/forms/form-submission-0/submission-checks.window-expected.txt: 11 1 12 2020-06-27 Chris Dumez <cdumez@apple.com> 2 13 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/submission-checks.window-expected.txt
r249886 r263624 1 1 2 FAIL <form> not connected to a document cannot navigate assert_unreached: Reached unreachable code 3 FAIL <form> not connected to a document after submit event cannot navigate assert_unreached: Reached unreachable code 2 PASS <form> not connected to a document cannot navigate 3 PASS <form> not connected to a document after submit event cannot navigate 4 4 PASS <form> in a navigated document cannot navigate 5 5 -
trunk/Source/WebCore/ChangeLog
r263623 r263624 1 2020-06-27 Rob Buis <rbuis@igalia.com> 2 3 Require <form> to be connected 4 https://bugs.webkit.org/show_bug.cgi?id=177356 5 6 Reviewed by Sam Weinig. 7 8 Implement step 1 of [1], i.e. do not submit form if it 9 is not connected. 10 11 Test: imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/submission-checks.html 12 13 [1] https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#concept-form-submit 14 15 * html/HTMLFormElement.cpp: 16 (WebCore::HTMLFormElement::submit): 17 1 18 2020-06-27 Youenn Fablet <youenn@apple.com> 2 19 -
trunk/Source/WebCore/html/HTMLFormElement.cpp
r263113 r263624 335 335 void HTMLFormElement::submit(Event* event, bool activateSubmitButton, bool processingUserGesture, FormSubmissionTrigger formSubmissionTrigger) 336 336 { 337 // The prepareForSubmission function also does this check, but we need to do it here 338 // too, since there are some code paths that bypass that function. 339 if (!isConnected()) 340 return; 341 337 342 RefPtr<FrameView> view = document().view(); 338 343 RefPtr<Frame> frame = document().frame();
Note: See TracChangeset
for help on using the changeset viewer.