Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
LayoutTests/imported/w3c:
Added FormDataEvent support. https://bugs.webkit.org/show_bug.cgi?id=227718 Patch by Johnson Zhou <qiaosong_zhou@apple.com> on 2021-07-26 Reviewed by Chris Dumez. * web-platform-tests/html/semantics/forms/form-submission-0/FormDataEvent.window-expected.txt: * web-platform-tests/html/semantics/forms/form-submission-0/constructing-form-data-set-expected.txt: * web-platform-tests/html/semantics/forms/form-submission-0/text-plain.window-expected.txt: * web-platform-tests/html/semantics/forms/form-submission-0/urlencoded2.window-expected.txt: * web-platform-tests/html/webappapis/scripting/events/event-handler-all-global-events-expected.txt: * web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-body-window-expected.txt: * web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-windowless-body-expected.txt: * web-platform-tests/xhr/formdata-expected.txt: Source/WebCore: FormDataEvent added, and dispatched upon creation of DOMFormData or submission of HTMLFormElement. https://bugs.webkit.org/show_bug.cgi?id=227718 Patch by Johnson Zhou <qiaosong_zhou@apple.com> on 2021-07-26 Reviewed by Chris Dumez. * CMakeLists.txt: * DerivedSources-input.xcfilelist: * DerivedSources-output.xcfilelist: * DerivedSources.make: * Sources.txt: * WebCore.xcodeproj/project.pbxproj: * dom/EventNames.h: * dom/EventNames.in: * dom/FormDataEvent.cpp: Added. (WebCore::FormDataEvent::create): (WebCore::FormDataEvent::FormDataEvent): (WebCore::FormDataEvent::eventInterface const): * dom/FormDataEvent.h: Added. (WebCore::FormDataEvent::formData const): * dom/FormDataEvent.idl: Added. * dom/GlobalEventHandlers.idl: * html/DOMFormData.cpp: (WebCore::DOMFormData::DOMFormData): (WebCore::DOMFormData::create): (WebCore::DOMFormData::clone): * html/DOMFormData.h: (WebCore::DOMFormData::create): Deleted. * html/HTMLAttributeNames.in: * html/HTMLElement.cpp: (WebCore::HTMLElement::createEventHandlerNameMap): * html/HTMLFormElement.cpp: (WebCore::HTMLFormElement::submitIfPossible): (WebCore::HTMLFormElement::submit): (WebCore::HTMLFormElement::constructEntryList): * html/HTMLFormElement.h: * loader/FormSubmission.cpp: (WebCore::FormSubmission::create): * loader/FormSubmission.h: * platform/network/FormData.cpp: (WebCore::FormData::appendNonMultiPartKeyValuePairItems): Source/WebInspectorUI: FormDataEvent added. https://bugs.webkit.org/show_bug.cgi?id=227718 Patch by Qiaosong Zhou <qiaosong_zhou@apple.com> on 2021-07-26 Reviewed by Chris Dumez. * UserInterface/Models/ScriptTimelineRecord.js: (WI.ScriptTimelineRecord.EventType.displayName): LayoutTests: Added support for FormDataEvent. Rebaselined. https://bugs.webkit.org/show_bug.cgi?id=227718 Patch by Johnson Zhou <qiaosong_zhou@apple.com> on 2021-07-26 Reviewed by Chris Dumez. * platform/ios-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt: * platform/ios-wk2/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt: * platform/mac-wk1/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt: * platform/mac-wk1/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt: * platform/mac-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt: * platform/mac-wk2/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt: Canonical link: https://commits.webkit.org/239960@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@280310 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
5b5306a
commit b0404c83a0033650d00c8b4d4e73f74f03224412
Showing
40 changed files
with
457 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
|
||
FAIL Failing FormDataEvent constructor assert_throws_js: 0 arguments function "() => { new FormDataEvent() }" threw object "ReferenceError: Can't find variable: FormDataEvent" ("ReferenceError") expected instance of function "function TypeError() { | ||
[native code] | ||
}" ("TypeError") | ||
FAIL Successful FormDataEvent constructor Can't find variable: FormDataEvent | ||
PASS Failing FormDataEvent constructor | ||
PASS Successful FormDataEvent constructor | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.