Changeset 280310 in webkit
- Timestamp:
 - Jul 26, 2021, 1:15:49 PM (4 years ago)
 - Location:
 - trunk
 - Files:
 - 
      
- 3 added
 - 37 edited
 
- 
          
  LayoutTests/ChangeLog (modified) (1 diff)
 - 
          
  LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
 - 
          
  LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/FormDataEvent.window-expected.txt (modified) (1 diff)
 - 
          
  LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/constructing-form-data-set-expected.txt (modified) (1 diff)
 - 
          
  LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/text-plain.window-expected.txt (modified) (2 diffs)
 - 
          
  LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/urlencoded2.window-expected.txt (modified) (2 diffs)
 - 
          
  LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-all-global-events-expected.txt (modified) (1 diff)
 - 
          
  LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-body-window-expected.txt (modified) (3 diffs)
 - 
          
  LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-windowless-body-expected.txt (modified) (2 diffs)
 - 
          
  LayoutTests/imported/w3c/web-platform-tests/xhr/formdata-expected.txt (modified) (1 diff)
 - 
          
  LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt (modified) (10 diffs)
 - 
          
  LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt (modified) (1 diff)
 - 
          
  LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt (modified) (10 diffs)
 - 
          
  LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt (modified) (1 diff)
 - 
          
  LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt (modified) (10 diffs)
 - 
          
  LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt (modified) (1 diff)
 - 
          
  Source/WebCore/CMakeLists.txt (modified) (1 diff)
 - 
          
  Source/WebCore/ChangeLog (modified) (1 diff)
 - 
          
  Source/WebCore/DerivedSources-input.xcfilelist (modified) (1 diff)
 - 
          
  Source/WebCore/DerivedSources-output.xcfilelist (modified) (1 diff)
 - 
          
  Source/WebCore/DerivedSources.make (modified) (1 diff)
 - 
          
  Source/WebCore/Sources.txt (modified) (2 diffs)
 - 
          
  Source/WebCore/WebCore.xcodeproj/project.pbxproj (modified) (2 diffs)
 - 
          
  Source/WebCore/dom/EventNames.h (modified) (1 diff)
 - 
          
  Source/WebCore/dom/EventNames.in (modified) (1 diff)
 - 
          
  Source/WebCore/dom/FormDataEvent.cpp (added)
 - 
          
  Source/WebCore/dom/FormDataEvent.h (added)
 - 
          
  Source/WebCore/dom/FormDataEvent.idl (added)
 - 
          
  Source/WebCore/dom/GlobalEventHandlers.idl (modified) (1 diff)
 - 
          
  Source/WebCore/html/DOMFormData.cpp (modified) (1 diff)
 - 
          
  Source/WebCore/html/DOMFormData.h (modified) (4 diffs)
 - 
          
  Source/WebCore/html/HTMLAttributeNames.in (modified) (1 diff)
 - 
          
  Source/WebCore/html/HTMLElement.cpp (modified) (1 diff)
 - 
          
  Source/WebCore/html/HTMLFormElement.cpp (modified) (3 diffs)
 - 
          
  Source/WebCore/html/HTMLFormElement.h (modified) (3 diffs)
 - 
          
  Source/WebCore/loader/FormSubmission.cpp (modified) (2 diffs)
 - 
          
  Source/WebCore/platform/network/FormData.cpp (modified) (2 diffs)
 - 
          
  Source/WebCore/platform/network/FormData.h (modified) (3 diffs)
 - 
          
  Source/WebInspectorUI/ChangeLog (modified) (1 diff)
 - 
          
  Source/WebInspectorUI/UserInterface/Models/ScriptTimelineRecord.js (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/LayoutTests/ChangeLog
r280308 r280310 1 2021-07-26 Johnson Zhou <qiaosong_zhou@apple.com> 2 3 Added support for FormDataEvent. Rebaselined. 4 https://bugs.webkit.org/show_bug.cgi?id=227718 5 6 Reviewed by Chris Dumez. 7 8 * platform/ios-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt: 9 * platform/ios-wk2/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt: 10 * platform/mac-wk1/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt: 11 * platform/mac-wk1/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt: 12 * platform/mac-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt: 13 * platform/mac-wk2/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt: 14 1 15 2021-07-26 Jer Noble <jer.noble@apple.com> 2 16  - 
      
trunk/LayoutTests/imported/w3c/ChangeLog
r280256 r280310 1 2021-07-26 Johnson Zhou <qiaosong_zhou@apple.com> 2 3 Added FormDataEvent support. 4 https://bugs.webkit.org/show_bug.cgi?id=227718 5 6 Reviewed by Chris Dumez. 7 8 * web-platform-tests/html/semantics/forms/form-submission-0/FormDataEvent.window-expected.txt: 9 * web-platform-tests/html/semantics/forms/form-submission-0/constructing-form-data-set-expected.txt: 10 * web-platform-tests/html/semantics/forms/form-submission-0/text-plain.window-expected.txt: 11 * web-platform-tests/html/semantics/forms/form-submission-0/urlencoded2.window-expected.txt: 12 * web-platform-tests/html/webappapis/scripting/events/event-handler-all-global-events-expected.txt: 13 * web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-body-window-expected.txt: 14 * web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-windowless-body-expected.txt: 15 * web-platform-tests/xhr/formdata-expected.txt: 16 1 17 2021-07-23 Alexey Shvayka <shvaikalesh@gmail.com> 2 18  - 
      
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/FormDataEvent.window-expected.txt
r263987 r280310 1 1 2 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() { 3 [native code] 4 }" ("TypeError") 5 FAIL Successful FormDataEvent constructor Can't find variable: FormDataEvent 2 PASS Failing FormDataEvent constructor 3 PASS Successful FormDataEvent constructor 6 4  - 
      
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/constructing-form-data-set-expected.txt
r279427 r280310 11 11 PASS _charset_ control sets the expected encoding name. 12 12 PASS The button cannot be setted if it is not a submitter. 13 FAIL "formdata" event bubbles, and is not cancelable. assert_true: expected true got false 14 FAIL "formdata" event bubbles in an orphan tree. assert_true: expected true got false 15 FAIL "formData" IDL attribute should have entries for form-associated elements in the first event handler, and the second handler can read entries set by the first handler. assert_true: expected true got false 16 FAIL Entries added to "formData" IDL attribute should be submitted. assert_true: expected true got false 17 FAIL Entries added to the "formdata" IDL attribute shouldn't be newline normalized in the resulting FormData undefined is not an object (evaluating '[...formData][0]') 13 PASS "formdata" event bubbles, and is not cancelable. 14 PASS "formdata" event bubbles in an orphan tree. 15 PASS "formData" IDL attribute should have entries for form-associated elements in the first event handler, and the second handler can read entries set by the first handler. 16 PASS Entries added to "formData" IDL attribute should be submitted. 17 PASS Entries added to the "formdata" IDL attribute shouldn't be newline normalized in the resulting FormData 18 18 FAIL The constructed FormData object should not contain an entry for the submit button that was used to submit the form. assert_false: expected false got true 19 19  - 
      
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/text-plain.window-expected.txt
r279427 r280310 1 1 2 2 FAIL text/plain: Basic test (normal form) assert_equals: expected "basic=test\r\n" but got "basic=test" 3 FAIL text/plain: Basic test (formdata event) assert_equals: expected "basic=test\r\n" but got " "3 FAIL text/plain: Basic test (formdata event) assert_equals: expected "basic=test\r\n" but got "basic=test" 4 4 FAIL text/plain: Basic File test (normal form) assert_equals: expected "basic=file-test.txt\r\n" but got "basic=file-test.txt" 5 5 FAIL text/plain: Basic File test (formdata event) assert_equals: expected "basic=file-test.txt\r\n" but got "" 6 6 FAIL text/plain: 0x00 in name (normal form) assert_equals: expected "a\0b=c\r\n" but got "a\0b=c" 7 FAIL text/plain: 0x00 in name (formdata event) assert_equals: expected "a\0b=c\r\n" but got " "7 FAIL text/plain: 0x00 in name (formdata event) assert_equals: expected "a\0b=c\r\n" but got "a\0b=c" 8 8 FAIL text/plain: 0x00 in value (normal form) assert_equals: expected "a=b\0c\r\n" but got "a=b\0c" 9 FAIL text/plain: 0x00 in value (formdata event) assert_equals: expected "a=b\0c\r\n" but got " "9 FAIL text/plain: 0x00 in value (formdata event) assert_equals: expected "a=b\0c\r\n" but got "a=b\0c" 10 10 FAIL text/plain: 0x00 in filename (normal form) assert_equals: expected "a=b\0c\r\n" but got "a=b\0c" 11 11 FAIL text/plain: 0x00 in filename (formdata event) assert_equals: expected "a=b\0c\r\n" but got "" 12 12 FAIL text/plain: \n in name (normal form) assert_equals: expected "a\r\nb=c\r\n" but got "a\r\nb=c" 13 FAIL text/plain: \n in name (formdata event) assert_equals: expected "a\r\nb=c\r\n" but got " "13 FAIL text/plain: \n in name (formdata event) assert_equals: expected "a\r\nb=c\r\n" but got "a\r\nb=c" 14 14 FAIL text/plain: \r in name (normal form) assert_equals: expected "a\r\nb=c\r\n" but got "a\r\nb=c" 15 FAIL text/plain: \r in name (formdata event) assert_equals: expected "a\r\nb=c\r\n" but got " "15 FAIL text/plain: \r in name (formdata event) assert_equals: expected "a\r\nb=c\r\n" but got "a\r\nb=c" 16 16 FAIL text/plain: \r\n in name (normal form) assert_equals: expected "a\r\nb=c\r\n" but got "a\r\nb=c" 17 FAIL text/plain: \r\n in name (formdata event) assert_equals: expected "a\r\nb=c\r\n" but got " "17 FAIL text/plain: \r\n in name (formdata event) assert_equals: expected "a\r\nb=c\r\n" but got "a\r\nb=c" 18 18 FAIL text/plain: \n\r in name (normal form) assert_equals: expected "a\r\n\r\nb=c\r\n" but got "a\r\n\r\nb=c" 19 FAIL text/plain: \n\r in name (formdata event) assert_equals: expected "a\r\n\r\nb=c\r\n" but got " "19 FAIL text/plain: \n\r in name (formdata event) assert_equals: expected "a\r\n\r\nb=c\r\n" but got "a\r\n\r\nb=c" 20 20 FAIL text/plain: \n in value (normal form) assert_equals: expected "a=b\r\nc\r\n" but got "a=b\r\nc" 21 FAIL text/plain: \n in value (formdata event) assert_equals: expected "a=b\r\nc\r\n" but got " "21 FAIL text/plain: \n in value (formdata event) assert_equals: expected "a=b\r\nc\r\n" but got "a=b\r\nc" 22 22 FAIL text/plain: \r in value (normal form) assert_equals: expected "a=b\r\nc\r\n" but got "a=b\r\nc" 23 FAIL text/plain: \r in value (formdata event) assert_equals: expected "a=b\r\nc\r\n" but got " "23 FAIL text/plain: \r in value (formdata event) assert_equals: expected "a=b\r\nc\r\n" but got "a=b\r\nc" 24 24 FAIL text/plain: \r\n in value (normal form) assert_equals: expected "a=b\r\nc\r\n" but got "a=b\r\nc" 25 FAIL text/plain: \r\n in value (formdata event) assert_equals: expected "a=b\r\nc\r\n" but got " "25 FAIL text/plain: \r\n in value (formdata event) assert_equals: expected "a=b\r\nc\r\n" but got "a=b\r\nc" 26 26 FAIL text/plain: \n\r in value (normal form) assert_equals: expected "a=b\r\n\r\nc\r\n" but got "a=b\r\n\r\nc" 27 FAIL text/plain: \n\r in value (formdata event) assert_equals: expected "a=b\r\n\r\nc\r\n" but got " "27 FAIL text/plain: \n\r in value (formdata event) assert_equals: expected "a=b\r\n\r\nc\r\n" but got "a=b\r\n\r\nc" 28 28 FAIL text/plain: \n in filename (normal form) assert_equals: expected "a=b\r\nc\r\n" but got "a=b\r\nc" 29 29 FAIL text/plain: \n in filename (formdata event) assert_equals: expected "a=b\r\nc\r\n" but got "" … … 35 35 FAIL text/plain: \n\r in filename (formdata event) assert_equals: expected "a=b\r\n\r\nc\r\n" but got "" 36 36 FAIL text/plain: double quote in name (normal form) assert_equals: expected "a\"b=c\r\n" but got "a\"b=c" 37 FAIL text/plain: double quote in name (formdata event) assert_equals: expected "a\"b=c\r\n" but got " "37 FAIL text/plain: double quote in name (formdata event) assert_equals: expected "a\"b=c\r\n" but got "a\"b=c" 38 38 FAIL text/plain: double quote in value (normal form) assert_equals: expected "a=b\"c\r\n" but got "a=b\"c" 39 FAIL text/plain: double quote in value (formdata event) assert_equals: expected "a=b\"c\r\n" but got " "39 FAIL text/plain: double quote in value (formdata event) assert_equals: expected "a=b\"c\r\n" but got "a=b\"c" 40 40 FAIL text/plain: double quote in filename (normal form) assert_equals: expected "a=b\"c\r\n" but got "a=b\"c" 41 41 FAIL text/plain: double quote in filename (formdata event) assert_equals: expected "a=b\"c\r\n" but got "" 42 42 FAIL text/plain: single quote in name (normal form) assert_equals: expected "a'b=c\r\n" but got "a'b=c" 43 FAIL text/plain: single quote in name (formdata event) assert_equals: expected "a'b=c\r\n" but got " "43 FAIL text/plain: single quote in name (formdata event) assert_equals: expected "a'b=c\r\n" but got "a'b=c" 44 44 FAIL text/plain: single quote in value (normal form) assert_equals: expected "a=b'c\r\n" but got "a=b'c" 45 FAIL text/plain: single quote in value (formdata event) assert_equals: expected "a=b'c\r\n" but got " "45 FAIL text/plain: single quote in value (formdata event) assert_equals: expected "a=b'c\r\n" but got "a=b'c" 46 46 FAIL text/plain: single quote in filename (normal form) assert_equals: expected "a=b'c\r\n" but got "a=b'c" 47 47 FAIL text/plain: single quote in filename (formdata event) assert_equals: expected "a=b'c\r\n" but got "" 48 48 FAIL text/plain: backslash in name (normal form) assert_equals: expected "a\\b=c\r\n" but got "a\\b=c" 49 FAIL text/plain: backslash in name (formdata event) assert_equals: expected "a\\b=c\r\n" but got " "49 FAIL text/plain: backslash in name (formdata event) assert_equals: expected "a\\b=c\r\n" but got "a\\b=c" 50 50 FAIL text/plain: backslash in value (normal form) assert_equals: expected "a=b\\c\r\n" but got "a=b\\c" 51 FAIL text/plain: backslash in value (formdata event) assert_equals: expected "a=b\\c\r\n" but got " "51 FAIL text/plain: backslash in value (formdata event) assert_equals: expected "a=b\\c\r\n" but got "a=b\\c" 52 52 FAIL text/plain: backslash in filename (normal form) assert_equals: expected "a=b\\c\r\n" but got "a=b\\c" 53 53 FAIL text/plain: backslash in filename (formdata event) assert_equals: expected "a=b\\c\r\n" but got "" 54 54 FAIL text/plain: non-ASCII in name and value (normal form) assert_equals: expected "áb=ç\r\n" but got "áb=ç" 55 FAIL text/plain: non-ASCII in name and value (formdata event) assert_equals: expected "áb=ç\r\n" but got " "55 FAIL text/plain: non-ASCII in name and value (formdata event) assert_equals: expected "áb=ç\r\n" but got "áb=ç" 56 56 FAIL text/plain: non-ASCII in filename (normal form) assert_equals: expected "a=É.txt\r\n" but got "a=É.txt" 57 57 FAIL text/plain: non-ASCII in filename (formdata event) assert_equals: expected "a=É.txt\r\n" but got "" 58 58 FAIL text/plain: characters not in encoding in name and value (normal form) assert_equals: expected "aəb=c�d\r\n" but got "aəb=c�d" 59 FAIL text/plain: characters not in encoding in name and value (formdata event) assert_equals: expected "aəb=c�d\r\n" but got " "59 FAIL text/plain: characters not in encoding in name and value (formdata event) assert_equals: expected "aəb=c�d\r\n" but got "aəb=c�d" 60 60 FAIL text/plain: character not in encoding in filename (normal form) assert_equals: expected "á=💩\r\n" but got "á=💩" 61 61 FAIL text/plain: character not in encoding in filename (formdata event) assert_equals: expected "á=💩\r\n" but got ""  - 
      
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/urlencoded2.window-expected.txt
r279427 r280310 1 1 2 2 PASS application/x-www-form-urlencoded: Basic test (normal form) 3 FAIL application/x-www-form-urlencoded: Basic test (formdata event) assert_equals: expected "basic=test" but got "" 3 PASS application/x-www-form-urlencoded: Basic test (formdata event) 4 4 PASS application/x-www-form-urlencoded: Basic File test (normal form) 5 5 FAIL application/x-www-form-urlencoded: Basic File test (formdata event) assert_equals: expected "basic=file-test.txt" but got "" 6 6 FAIL application/x-www-form-urlencoded: 0x00 in name (normal form) assert_equals: expected "a%00b=c" but got "a\0b=c" 7 FAIL application/x-www-form-urlencoded: 0x00 in name (formdata event) assert_equals: expected "a%00b=c" but got " "7 FAIL application/x-www-form-urlencoded: 0x00 in name (formdata event) assert_equals: expected "a%00b=c" but got "a\0b=c" 8 8 FAIL application/x-www-form-urlencoded: 0x00 in value (normal form) assert_equals: expected "a=b%00c" but got "a=b\0c" 9 FAIL application/x-www-form-urlencoded: 0x00 in value (formdata event) assert_equals: expected "a=b%00c" but got " "9 FAIL application/x-www-form-urlencoded: 0x00 in value (formdata event) assert_equals: expected "a=b%00c" but got "a=b\0c" 10 10 FAIL application/x-www-form-urlencoded: 0x00 in filename (normal form) assert_equals: expected "a=b%00c" but got "a=b\0c" 11 11 FAIL application/x-www-form-urlencoded: 0x00 in filename (formdata event) assert_equals: expected "a=b%00c" but got "" 12 12 PASS application/x-www-form-urlencoded: \n in name (normal form) 13 FAIL application/x-www-form-urlencoded: \n in name (formdata event) assert_equals: expected "a%0D%0Ab=c" but got "" 13 PASS application/x-www-form-urlencoded: \n in name (formdata event) 14 14 PASS application/x-www-form-urlencoded: \r in name (normal form) 15 FAIL application/x-www-form-urlencoded: \r in name (formdata event) assert_equals: expected "a%0D%0Ab=c" but got "" 15 PASS application/x-www-form-urlencoded: \r in name (formdata event) 16 16 PASS application/x-www-form-urlencoded: \r\n in name (normal form) 17 FAIL application/x-www-form-urlencoded: \r\n in name (formdata event) assert_equals: expected "a%0D%0Ab=c" but got "" 17 PASS application/x-www-form-urlencoded: \r\n in name (formdata event) 18 18 PASS application/x-www-form-urlencoded: \n\r in name (normal form) 19 FAIL application/x-www-form-urlencoded: \n\r in name (formdata event) assert_equals: expected "a%0D%0A%0D%0Ab=c" but got "" 19 PASS application/x-www-form-urlencoded: \n\r in name (formdata event) 20 20 PASS application/x-www-form-urlencoded: \n in value (normal form) 21 FAIL application/x-www-form-urlencoded: \n in value (formdata event) assert_equals: expected "a=b%0D%0Ac" but got "" 21 PASS application/x-www-form-urlencoded: \n in value (formdata event) 22 22 PASS application/x-www-form-urlencoded: \r in value (normal form) 23 FAIL application/x-www-form-urlencoded: \r in value (formdata event) assert_equals: expected "a=b%0D%0Ac" but got "" 23 PASS application/x-www-form-urlencoded: \r in value (formdata event) 24 24 PASS application/x-www-form-urlencoded: \r\n in value (normal form) 25 FAIL application/x-www-form-urlencoded: \r\n in value (formdata event) assert_equals: expected "a=b%0D%0Ac" but got "" 25 PASS application/x-www-form-urlencoded: \r\n in value (formdata event) 26 26 PASS application/x-www-form-urlencoded: \n\r in value (normal form) 27 FAIL application/x-www-form-urlencoded: \n\r in value (formdata event) assert_equals: expected "a=b%0D%0A%0D%0Ac" but got "" 27 PASS application/x-www-form-urlencoded: \n\r in value (formdata event) 28 28 PASS application/x-www-form-urlencoded: \n in filename (normal form) 29 29 FAIL application/x-www-form-urlencoded: \n in filename (formdata event) assert_equals: expected "a=b%0D%0Ac" but got "" … … 35 35 FAIL application/x-www-form-urlencoded: \n\r in filename (formdata event) assert_equals: expected "a=b%0D%0A%0D%0Ac" but got "" 36 36 PASS application/x-www-form-urlencoded: double quote in name (normal form) 37 FAIL application/x-www-form-urlencoded: double quote in name (formdata event) assert_equals: expected "a%22b=c" but got "" 37 PASS application/x-www-form-urlencoded: double quote in name (formdata event) 38 38 PASS application/x-www-form-urlencoded: double quote in value (normal form) 39 FAIL application/x-www-form-urlencoded: double quote in value (formdata event) assert_equals: expected "a=b%22c" but got "" 39 PASS application/x-www-form-urlencoded: double quote in value (formdata event) 40 40 PASS application/x-www-form-urlencoded: double quote in filename (normal form) 41 41 FAIL application/x-www-form-urlencoded: double quote in filename (formdata event) assert_equals: expected "a=b%22c" but got "" 42 42 PASS application/x-www-form-urlencoded: single quote in name (normal form) 43 FAIL application/x-www-form-urlencoded: single quote in name (formdata event) assert_equals: expected "a%27b=c" but got "" 43 PASS application/x-www-form-urlencoded: single quote in name (formdata event) 44 44 PASS application/x-www-form-urlencoded: single quote in value (normal form) 45 FAIL application/x-www-form-urlencoded: single quote in value (formdata event) assert_equals: expected "a=b%27c" but got "" 45 PASS application/x-www-form-urlencoded: single quote in value (formdata event) 46 46 PASS application/x-www-form-urlencoded: single quote in filename (normal form) 47 47 FAIL application/x-www-form-urlencoded: single quote in filename (formdata event) assert_equals: expected "a=b%27c" but got "" 48 48 PASS application/x-www-form-urlencoded: backslash in name (normal form) 49 FAIL application/x-www-form-urlencoded: backslash in name (formdata event) assert_equals: expected "a%5Cb=c" but got "" 49 PASS application/x-www-form-urlencoded: backslash in name (formdata event) 50 50 PASS application/x-www-form-urlencoded: backslash in value (normal form) 51 FAIL application/x-www-form-urlencoded: backslash in value (formdata event) assert_equals: expected "a=b%5Cc" but got "" 51 PASS application/x-www-form-urlencoded: backslash in value (formdata event) 52 52 PASS application/x-www-form-urlencoded: backslash in filename (normal form) 53 53 FAIL application/x-www-form-urlencoded: backslash in filename (formdata event) assert_equals: expected "a=b%5Cc" but got "" 54 54 PASS application/x-www-form-urlencoded: non-ASCII in name and value (normal form) 55 FAIL application/x-www-form-urlencoded: non-ASCII in name and value (formdata event) assert_equals: expected "%C3%A1b=%C3%A7" but got "" 55 PASS application/x-www-form-urlencoded: non-ASCII in name and value (formdata event) 56 56 PASS application/x-www-form-urlencoded: non-ASCII in filename (normal form) 57 57 FAIL application/x-www-form-urlencoded: non-ASCII in filename (formdata event) assert_equals: expected "a=%C9%99.txt" but got "" 58 58 PASS application/x-www-form-urlencoded: characters not in encoding in name and value (normal form) 59 FAIL application/x-www-form-urlencoded: characters not in encoding in name and value (formdata event) assert_equals: expected "a%26%23601%3Bb=c%26%2365533%3Bd" but got "" 59 PASS application/x-www-form-urlencoded: characters not in encoding in name and value (formdata event) 60 60 PASS application/x-www-form-urlencoded: character not in encoding in filename (normal form) 61 61 FAIL application/x-www-form-urlencoded: character not in encoding in filename (formdata event) assert_equals: expected "%E1=%26%23128169%3B" but got ""  - 
      
trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-all-global-events-expected.txt
r279406 r280310 115 115 PASS onfocus: the content attribute must execute when an event is dispatched 116 116 PASS onfocus: dispatching an Event at a <meta> element must trigger element.onfocus 117 FAIL onformdata: must be on the appropriate locations for GlobalEventHandlers assert_true: Window has an own property named "onformdata" expected true got false 118 FAIL onformdata: the default value must be null assert_equals: The default value of the property is null for a Window instance expected (object) null but got (undefined) undefined 119 FAIL onformdata: the content attribute must be compiled into a function as the corresponding property assert_equals: The onformdata property must be a function expected "function" but got "undefined" 120 FAIL onformdata: the content attribute must execute when an event is dispatched assert_true: Dispatching an event must run the code expected true got undefined117 PASS onformdata: must be on the appropriate locations for GlobalEventHandlers 118 PASS onformdata: the default value must be null 119 PASS onformdata: the content attribute must be compiled into a function as the corresponding property 120 PASS onformdata: the content attribute must execute when an event is dispatched 121 121 PASS onformdata: dispatching an Event at a <meta> element must trigger element.onformdata 122 122 PASS oninput: must be on the appropriate locations for GlobalEventHandlers  - 
      
trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-body-window-expected.txt
r279406 r280310 43 43 PASS not shadowed emptied (document.body) 44 44 PASS not shadowed ended (document.body) 45 FAIL not shadowed formdata (document.body) assert_equals: alternative body should reflect expected (object) null but got (undefined) undefined 45 PASS not shadowed formdata (document.body) 46 46 PASS not shadowed input (document.body) 47 47 PASS not shadowed invalid (document.body) … … 150 150 PASS not shadowed emptied (document.createElement("body")) 151 151 PASS not shadowed ended (document.createElement("body")) 152 FAIL not shadowed formdata (document.createElement("body")) assert_equals: body should reflect expected (object) null but got (undefined) undefined 152 PASS not shadowed formdata (document.createElement("body")) 153 153 PASS not shadowed input (document.createElement("body")) 154 154 PASS not shadowed invalid (document.createElement("body")) … … 257 257 PASS not shadowed emptied (window) 258 258 PASS not shadowed ended (window) 259 FAIL not shadowed formdata (window) assert_equals: body should reflect expected (object) null but got (undefined) undefined 259 PASS not shadowed formdata (window) 260 260 PASS not shadowed input (window) 261 261 PASS not shadowed invalid (window)  - 
      
trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-windowless-body-expected.txt
r279406 r280310 65 65 PASS emptied is unaffected on a windowless body 66 66 PASS ended is unaffected on a windowless body 67 FAIL formdata is unaffected on a windowless body assert_equals: expected (object) null but got (undefined) undefined 67 PASS formdata is unaffected on a windowless body 68 68 PASS input is unaffected on a windowless body 69 69 PASS invalid is unaffected on a windowless body … … 172 172 PASS emptied is unaffected on a windowless frameset 173 173 PASS ended is unaffected on a windowless frameset 174 FAIL formdata is unaffected on a windowless frameset assert_equals: expected (object) null but got (undefined) undefined 174 PASS formdata is unaffected on a windowless frameset 175 175 PASS input is unaffected on a windowless frameset 176 176 PASS invalid is unaffected on a windowless frameset  - 
      
trunk/LayoutTests/imported/w3c/web-platform-tests/xhr/formdata-expected.txt
r267866 r280310 8 8 PASS formdata with named string 9 9 PASS formdata from form 10 FAIL Newly created FormData contains entries added to "formData" IDL attribute of FormDataEvent. assert_equals: expected (string) "vh1" but got (object) null 11 FAIL |new FormData()| in formdata event handler should throw assert_equals: expected 1 but got 0 10 PASS Newly created FormData contains entries added to "formData" IDL attribute of FormDataEvent. 11 PASS |new FormData()| in formdata event handler should throw 12 12  - 
      
trunk/LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt
r279979 r280310 285 285 PASS HTMLElement interface: attribute onerror 286 286 PASS HTMLElement interface: attribute onfocus 287 FAIL HTMLElement interface: attribute onformdata assert_true: The prototype object must have a property "onformdata" expected true got false 287 PASS HTMLElement interface: attribute onformdata 288 288 PASS HTMLElement interface: attribute oninput 289 289 PASS HTMLElement interface: attribute oninvalid … … 380 380 PASS HTMLElement interface: document.createElement("noscript") must inherit property "onerror" with the proper type 381 381 PASS HTMLElement interface: document.createElement("noscript") must inherit property "onfocus" with the proper type 382 FAIL HTMLElement interface: document.createElement("noscript") must inherit property "onformdata" with the proper type assert_inherits: property "onformdata" not found in prototype chain 382 PASS HTMLElement interface: document.createElement("noscript") must inherit property "onformdata" with the proper type 383 383 PASS HTMLElement interface: document.createElement("noscript") must inherit property "oninput" with the proper type 384 384 PASS HTMLElement interface: document.createElement("noscript") must inherit property "oninvalid" with the proper type … … 3774 3774 PASS SubmitEvent interface: existence and properties of interface prototype object's @@unscopables property 3775 3775 PASS SubmitEvent interface: attribute submitter 3776 FAIL FormDataEvent interface: existence and properties of interface object assert_own_property: self does not have own property "FormDataEvent" expected property "FormDataEvent" missing 3777 FAIL FormDataEvent interface object length assert_own_property: self does not have own property "FormDataEvent" expected property "FormDataEvent" missing 3778 FAIL FormDataEvent interface object name assert_own_property: self does not have own property "FormDataEvent" expected property "FormDataEvent" missing 3779 FAIL FormDataEvent interface: existence and properties of interface prototype object assert_own_property: self does not have own property "FormDataEvent" expected property "FormDataEvent" missing 3780 FAIL FormDataEvent interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "FormDataEvent" expected property "FormDataEvent" missing 3781 FAIL FormDataEvent interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "FormDataEvent" expected property "FormDataEvent" missing 3782 FAIL FormDataEvent interface: attribute formData assert_own_property: self does not have own property "FormDataEvent" expected property "FormDataEvent" missing 3783 FAIL FormDataEvent must be primary interface of new FormDataEvent("formdata", { formData: new FormData() }) assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: FormDataEvent" 3784 FAIL Stringification of new FormDataEvent("formdata", { formData: new FormData() }) assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: FormDataEvent" 3785 FAIL FormDataEvent interface: new FormDataEvent("formdata", { formData: new FormData() }) must inherit property "formData" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: FormDataEvent" 3776 PASS FormDataEvent interface: existence and properties of interface object 3777 PASS FormDataEvent interface object length 3778 PASS FormDataEvent interface object name 3779 PASS FormDataEvent interface: existence and properties of interface prototype object 3780 PASS FormDataEvent interface: existence and properties of interface prototype object's "constructor" property 3781 PASS FormDataEvent interface: existence and properties of interface prototype object's @@unscopables property 3782 PASS FormDataEvent interface: attribute formData 3783 PASS FormDataEvent must be primary interface of new FormDataEvent("formdata", { formData: new FormData() }) 3784 PASS Stringification of new FormDataEvent("formdata", { formData: new FormData() }) 3785 PASS FormDataEvent interface: new FormDataEvent("formdata", { formData: new FormData() }) must inherit property "formData" with the proper type 3786 3786 PASS HTMLDetailsElement interface: existence and properties of interface object 3787 3787 PASS HTMLDetailsElement interface object length … … 4415 4415 PASS Window interface: attribute onerror 4416 4416 PASS Window interface: attribute onfocus 4417 FAIL Window interface: attribute onformdata assert_own_property: The global object must have a property "onformdata" expected property "onformdata" missing 4417 PASS Window interface: attribute onformdata 4418 4418 PASS Window interface: attribute oninput 4419 4419 PASS Window interface: attribute oninvalid … … 4565 4565 PASS Window interface: window must inherit property "onerror" with the proper type 4566 4566 PASS Window interface: window must inherit property "onfocus" with the proper type 4567 FAIL Window interface: window must inherit property "onformdata" with the proper type assert_own_property: expected property "onformdata" missing 4567 PASS Window interface: window must inherit property "onformdata" with the proper type 4568 4568 PASS Window interface: window must inherit property "oninput" with the proper type 4569 4569 PASS Window interface: window must inherit property "oninvalid" with the proper type … … 5280 5280 PASS SVGElement interface: attribute onerror 5281 5281 PASS SVGElement interface: attribute onfocus 5282 FAIL SVGElement interface: attribute onformdata assert_true: The prototype object must have a property "onformdata" expected true got false 5282 PASS SVGElement interface: attribute onformdata 5283 5283 PASS SVGElement interface: attribute oninput 5284 5284 PASS SVGElement interface: attribute oninvalid … … 5414 5414 PASS Document interface: attribute onerror 5415 5415 PASS Document interface: attribute onfocus 5416 FAIL Document interface: attribute onformdata assert_true: The prototype object must have a property "onformdata" expected true got false 5416 PASS Document interface: attribute onformdata 5417 5417 PASS Document interface: attribute oninput 5418 5418 PASS Document interface: attribute oninvalid … … 5539 5539 PASS Document interface: iframe.contentDocument must inherit property "onerror" with the proper type 5540 5540 PASS Document interface: iframe.contentDocument must inherit property "onfocus" with the proper type 5541 FAIL Document interface: iframe.contentDocument must inherit property "onformdata" with the proper type assert_inherits: property "onformdata" not found in prototype chain 5541 PASS Document interface: iframe.contentDocument must inherit property "onformdata" with the proper type 5542 5542 PASS Document interface: iframe.contentDocument must inherit property "oninput" with the proper type 5543 5543 PASS Document interface: iframe.contentDocument must inherit property "oninvalid" with the proper type … … 5664 5664 PASS Document interface: new Document() must inherit property "onerror" with the proper type 5665 5665 PASS Document interface: new Document() must inherit property "onfocus" with the proper type 5666 FAIL Document interface: new Document() must inherit property "onformdata" with the proper type assert_inherits: property "onformdata" not found in prototype chain 5666 PASS Document interface: new Document() must inherit property "onformdata" with the proper type 5667 5667 PASS Document interface: new Document() must inherit property "oninput" with the proper type 5668 5668 PASS Document interface: new Document() must inherit property "oninvalid" with the proper type … … 5789 5789 PASS Document interface: documentWithHandlers must inherit property "onerror" with the proper type 5790 5790 PASS Document interface: documentWithHandlers must inherit property "onfocus" with the proper type 5791 FAIL Document interface: documentWithHandlers must inherit property "onformdata" with the proper type assert_inherits: property "onformdata" found on object expected in prototype chain 5791 PASS Document interface: documentWithHandlers must inherit property "onformdata" with the proper type 5792 5792 PASS Document interface: documentWithHandlers must inherit property "oninput" with the proper type 5793 5793 PASS Document interface: documentWithHandlers must inherit property "oninvalid" with the proper type  - 
      
trunk/LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt
r279406 r280310 115 115 PASS onfocus: dynamic changes on the attribute 116 116 PASS onfocus: dispatching an Event at a <math> element must trigger element.onfocus 117 FAIL onformdata: must be on the appropriate locations for GlobalEventHandlers assert_true: MathMLElement has an own property named "onformdata" expected true got false 118 FAIL onformdata: the default value must be null assert_equals: The default value of the property is null for a MathMLMathElement instance expected (object) null but got (undefined) undefined 119 FAIL onformdata: the content attribute must be compiled into a function as the corresponding property assert_equals: The onformdata property must be a function expected "function" but got "undefined" 120 FAIL onformdata: dynamic changes on the attribute assert_equals: The onformdata property must be null (no attribute) expected (object) null but got (undefined) undefined 121 FAIL onformdata: dispatching an Event at a <math> element must trigger element.onformdata assert_equals: The event must be fired at the <math> element expected (object) Element node <math></math> but got (undefined) undefined 117 PASS onformdata: must be on the appropriate locations for GlobalEventHandlers 118 PASS onformdata: the default value must be null 119 PASS onformdata: the content attribute must be compiled into a function as the corresponding property 120 PASS onformdata: dynamic changes on the attribute 121 PASS onformdata: dispatching an Event at a <math> element must trigger element.onformdata 122 122 PASS oninput: must be on the appropriate locations for GlobalEventHandlers 123 123 PASS oninput: the default value must be null  - 
      
trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt
r279979 r280310 285 285 PASS HTMLElement interface: attribute onerror 286 286 PASS HTMLElement interface: attribute onfocus 287 FAIL HTMLElement interface: attribute onformdata assert_true: The prototype object must have a property "onformdata" expected true got false 287 PASS HTMLElement interface: attribute onformdata 288 288 PASS HTMLElement interface: attribute oninput 289 289 PASS HTMLElement interface: attribute oninvalid … … 380 380 PASS HTMLElement interface: document.createElement("noscript") must inherit property "onerror" with the proper type 381 381 PASS HTMLElement interface: document.createElement("noscript") must inherit property "onfocus" with the proper type 382 FAIL HTMLElement interface: document.createElement("noscript") must inherit property "onformdata" with the proper type assert_inherits: property "onformdata" not found in prototype chain 382 PASS HTMLElement interface: document.createElement("noscript") must inherit property "onformdata" with the proper type 383 383 PASS HTMLElement interface: document.createElement("noscript") must inherit property "oninput" with the proper type 384 384 PASS HTMLElement interface: document.createElement("noscript") must inherit property "oninvalid" with the proper type … … 3784 3784 PASS SubmitEvent interface: existence and properties of interface prototype object's @@unscopables property 3785 3785 PASS SubmitEvent interface: attribute submitter 3786 FAIL FormDataEvent interface: existence and properties of interface object assert_own_property: self does not have own property "FormDataEvent" expected property "FormDataEvent" missing 3787 FAIL FormDataEvent interface object length assert_own_property: self does not have own property "FormDataEvent" expected property "FormDataEvent" missing 3788 FAIL FormDataEvent interface object name assert_own_property: self does not have own property "FormDataEvent" expected property "FormDataEvent" missing 3789 FAIL FormDataEvent interface: existence and properties of interface prototype object assert_own_property: self does not have own property "FormDataEvent" expected property "FormDataEvent" missing 3790 FAIL FormDataEvent interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "FormDataEvent" expected property "FormDataEvent" missing 3791 FAIL FormDataEvent interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "FormDataEvent" expected property "FormDataEvent" missing 3792 FAIL FormDataEvent interface: attribute formData assert_own_property: self does not have own property "FormDataEvent" expected property "FormDataEvent" missing 3793 FAIL FormDataEvent must be primary interface of new FormDataEvent("formdata", { formData: new FormData() }) assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: FormDataEvent" 3794 FAIL Stringification of new FormDataEvent("formdata", { formData: new FormData() }) assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: FormDataEvent" 3795 FAIL FormDataEvent interface: new FormDataEvent("formdata", { formData: new FormData() }) must inherit property "formData" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: FormDataEvent" 3786 PASS FormDataEvent interface: existence and properties of interface object 3787 PASS FormDataEvent interface object length 3788 PASS FormDataEvent interface object name 3789 PASS FormDataEvent interface: existence and properties of interface prototype object 3790 PASS FormDataEvent interface: existence and properties of interface prototype object's "constructor" property 3791 PASS FormDataEvent interface: existence and properties of interface prototype object's @@unscopables property 3792 PASS FormDataEvent interface: attribute formData 3793 PASS FormDataEvent must be primary interface of new FormDataEvent("formdata", { formData: new FormData() }) 3794 PASS Stringification of new FormDataEvent("formdata", { formData: new FormData() }) 3795 PASS FormDataEvent interface: new FormDataEvent("formdata", { formData: new FormData() }) must inherit property "formData" with the proper type 3796 3796 PASS HTMLDetailsElement interface: existence and properties of interface object 3797 3797 PASS HTMLDetailsElement interface object length … … 4425 4425 PASS Window interface: attribute onerror 4426 4426 PASS Window interface: attribute onfocus 4427 FAIL Window interface: attribute onformdata assert_own_property: The global object must have a property "onformdata" expected property "onformdata" missing 4427 PASS Window interface: attribute onformdata 4428 4428 PASS Window interface: attribute oninput 4429 4429 PASS Window interface: attribute oninvalid … … 4575 4575 PASS Window interface: window must inherit property "onerror" with the proper type 4576 4576 PASS Window interface: window must inherit property "onfocus" with the proper type 4577 FAIL Window interface: window must inherit property "onformdata" with the proper type assert_own_property: expected property "onformdata" missing 4577 PASS Window interface: window must inherit property "onformdata" with the proper type 4578 4578 PASS Window interface: window must inherit property "oninput" with the proper type 4579 4579 PASS Window interface: window must inherit property "oninvalid" with the proper type … … 5290 5290 PASS SVGElement interface: attribute onerror 5291 5291 PASS SVGElement interface: attribute onfocus 5292 FAIL SVGElement interface: attribute onformdata assert_true: The prototype object must have a property "onformdata" expected true got false 5292 PASS SVGElement interface: attribute onformdata 5293 5293 PASS SVGElement interface: attribute oninput 5294 5294 PASS SVGElement interface: attribute oninvalid … … 5424 5424 PASS Document interface: attribute onerror 5425 5425 PASS Document interface: attribute onfocus 5426 FAIL Document interface: attribute onformdata assert_true: The prototype object must have a property "onformdata" expected true got false 5426 PASS Document interface: attribute onformdata 5427 5427 PASS Document interface: attribute oninput 5428 5428 PASS Document interface: attribute oninvalid … … 5549 5549 PASS Document interface: iframe.contentDocument must inherit property "onerror" with the proper type 5550 5550 PASS Document interface: iframe.contentDocument must inherit property "onfocus" with the proper type 5551 FAIL Document interface: iframe.contentDocument must inherit property "onformdata" with the proper type assert_inherits: property "onformdata" not found in prototype chain 5551 PASS Document interface: iframe.contentDocument must inherit property "onformdata" with the proper type 5552 5552 PASS Document interface: iframe.contentDocument must inherit property "oninput" with the proper type 5553 5553 PASS Document interface: iframe.contentDocument must inherit property "oninvalid" with the proper type … … 5674 5674 PASS Document interface: new Document() must inherit property "onerror" with the proper type 5675 5675 PASS Document interface: new Document() must inherit property "onfocus" with the proper type 5676 FAIL Document interface: new Document() must inherit property "onformdata" with the proper type assert_inherits: property "onformdata" not found in prototype chain 5676 PASS Document interface: new Document() must inherit property "onformdata" with the proper type 5677 5677 PASS Document interface: new Document() must inherit property "oninput" with the proper type 5678 5678 PASS Document interface: new Document() must inherit property "oninvalid" with the proper type … … 5799 5799 PASS Document interface: documentWithHandlers must inherit property "onerror" with the proper type 5800 5800 PASS Document interface: documentWithHandlers must inherit property "onfocus" with the proper type 5801 FAIL Document interface: documentWithHandlers must inherit property "onformdata" with the proper type assert_inherits: property "onformdata" found on object expected in prototype chain 5801 PASS Document interface: documentWithHandlers must inherit property "onformdata" with the proper type 5802 5802 PASS Document interface: documentWithHandlers must inherit property "oninput" with the proper type 5803 5803 PASS Document interface: documentWithHandlers must inherit property "oninvalid" with the proper type  - 
      
trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt
r279406 r280310 115 115 PASS onfocus: dynamic changes on the attribute 116 116 PASS onfocus: dispatching an Event at a <math> element must trigger element.onfocus 117 FAIL onformdata: must be on the appropriate locations for GlobalEventHandlers assert_true: MathMLElement has an own property named "onformdata" expected true got false 118 FAIL onformdata: the default value must be null assert_equals: The default value of the property is null for a MathMLMathElement instance expected (object) null but got (undefined) undefined 119 FAIL onformdata: the content attribute must be compiled into a function as the corresponding property assert_equals: The onformdata property must be a function expected "function" but got "undefined" 120 FAIL onformdata: dynamic changes on the attribute assert_equals: The onformdata property must be null (no attribute) expected (object) null but got (undefined) undefined 121 FAIL onformdata: dispatching an Event at a <math> element must trigger element.onformdata assert_equals: The event must be fired at the <math> element expected (object) Element node <math></math> but got (undefined) undefined 117 PASS onformdata: must be on the appropriate locations for GlobalEventHandlers 118 PASS onformdata: the default value must be null 119 PASS onformdata: the content attribute must be compiled into a function as the corresponding property 120 PASS onformdata: dynamic changes on the attribute 121 PASS onformdata: dispatching an Event at a <math> element must trigger element.onformdata 122 122 PASS oninput: must be on the appropriate locations for GlobalEventHandlers 123 123 PASS oninput: the default value must be null  - 
      
trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt
r279979 r280310 285 285 PASS HTMLElement interface: attribute onerror 286 286 PASS HTMLElement interface: attribute onfocus 287 FAIL HTMLElement interface: attribute onformdata assert_true: The prototype object must have a property "onformdata" expected true got false 287 PASS HTMLElement interface: attribute onformdata 288 288 PASS HTMLElement interface: attribute oninput 289 289 PASS HTMLElement interface: attribute oninvalid … … 380 380 PASS HTMLElement interface: document.createElement("noscript") must inherit property "onerror" with the proper type 381 381 PASS HTMLElement interface: document.createElement("noscript") must inherit property "onfocus" with the proper type 382 FAIL HTMLElement interface: document.createElement("noscript") must inherit property "onformdata" with the proper type assert_inherits: property "onformdata" not found in prototype chain 382 PASS HTMLElement interface: document.createElement("noscript") must inherit property "onformdata" with the proper type 383 383 PASS HTMLElement interface: document.createElement("noscript") must inherit property "oninput" with the proper type 384 384 PASS HTMLElement interface: document.createElement("noscript") must inherit property "oninvalid" with the proper type … … 3784 3784 PASS SubmitEvent interface: existence and properties of interface prototype object's @@unscopables property 3785 3785 PASS SubmitEvent interface: attribute submitter 3786 FAIL FormDataEvent interface: existence and properties of interface object assert_own_property: self does not have own property "FormDataEvent" expected property "FormDataEvent" missing 3787 FAIL FormDataEvent interface object length assert_own_property: self does not have own property "FormDataEvent" expected property "FormDataEvent" missing 3788 FAIL FormDataEvent interface object name assert_own_property: self does not have own property "FormDataEvent" expected property "FormDataEvent" missing 3789 FAIL FormDataEvent interface: existence and properties of interface prototype object assert_own_property: self does not have own property "FormDataEvent" expected property "FormDataEvent" missing 3790 FAIL FormDataEvent interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "FormDataEvent" expected property "FormDataEvent" missing 3791 FAIL FormDataEvent interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "FormDataEvent" expected property "FormDataEvent" missing 3792 FAIL FormDataEvent interface: attribute formData assert_own_property: self does not have own property "FormDataEvent" expected property "FormDataEvent" missing 3793 FAIL FormDataEvent must be primary interface of new FormDataEvent("formdata", { formData: new FormData() }) assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: FormDataEvent" 3794 FAIL Stringification of new FormDataEvent("formdata", { formData: new FormData() }) assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: FormDataEvent" 3795 FAIL FormDataEvent interface: new FormDataEvent("formdata", { formData: new FormData() }) must inherit property "formData" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: FormDataEvent" 3786 PASS FormDataEvent interface: existence and properties of interface object 3787 PASS FormDataEvent interface object length 3788 PASS FormDataEvent interface object name 3789 PASS FormDataEvent interface: existence and properties of interface prototype object 3790 PASS FormDataEvent interface: existence and properties of interface prototype object's "constructor" property 3791 PASS FormDataEvent interface: existence and properties of interface prototype object's @@unscopables property 3792 PASS FormDataEvent interface: attribute formData 3793 PASS FormDataEvent must be primary interface of new FormDataEvent("formdata", { formData: new FormData() }) 3794 PASS Stringification of new FormDataEvent("formdata", { formData: new FormData() }) 3795 PASS FormDataEvent interface: new FormDataEvent("formdata", { formData: new FormData() }) must inherit property "formData" with the proper type 3796 3796 PASS HTMLDetailsElement interface: existence and properties of interface object 3797 3797 PASS HTMLDetailsElement interface object length … … 4425 4425 PASS Window interface: attribute onerror 4426 4426 PASS Window interface: attribute onfocus 4427 FAIL Window interface: attribute onformdata assert_own_property: The global object must have a property "onformdata" expected property "onformdata" missing 4427 PASS Window interface: attribute onformdata 4428 4428 PASS Window interface: attribute oninput 4429 4429 PASS Window interface: attribute oninvalid … … 4575 4575 PASS Window interface: window must inherit property "onerror" with the proper type 4576 4576 PASS Window interface: window must inherit property "onfocus" with the proper type 4577 FAIL Window interface: window must inherit property "onformdata" with the proper type assert_own_property: expected property "onformdata" missing 4577 PASS Window interface: window must inherit property "onformdata" with the proper type 4578 4578 PASS Window interface: window must inherit property "oninput" with the proper type 4579 4579 PASS Window interface: window must inherit property "oninvalid" with the proper type … … 5290 5290 PASS SVGElement interface: attribute onerror 5291 5291 PASS SVGElement interface: attribute onfocus 5292 FAIL SVGElement interface: attribute onformdata assert_true: The prototype object must have a property "onformdata" expected true got false 5292 PASS SVGElement interface: attribute onformdata 5293 5293 PASS SVGElement interface: attribute oninput 5294 5294 PASS SVGElement interface: attribute oninvalid … … 5424 5424 PASS Document interface: attribute onerror 5425 5425 PASS Document interface: attribute onfocus 5426 FAIL Document interface: attribute onformdata assert_true: The prototype object must have a property "onformdata" expected true got false 5426 PASS Document interface: attribute onformdata 5427 5427 PASS Document interface: attribute oninput 5428 5428 PASS Document interface: attribute oninvalid … … 5549 5549 PASS Document interface: iframe.contentDocument must inherit property "onerror" with the proper type 5550 5550 PASS Document interface: iframe.contentDocument must inherit property "onfocus" with the proper type 5551 FAIL Document interface: iframe.contentDocument must inherit property "onformdata" with the proper type assert_inherits: property "onformdata" not found in prototype chain 5551 PASS Document interface: iframe.contentDocument must inherit property "onformdata" with the proper type 5552 5552 PASS Document interface: iframe.contentDocument must inherit property "oninput" with the proper type 5553 5553 PASS Document interface: iframe.contentDocument must inherit property "oninvalid" with the proper type … … 5674 5674 PASS Document interface: new Document() must inherit property "onerror" with the proper type 5675 5675 PASS Document interface: new Document() must inherit property "onfocus" with the proper type 5676 FAIL Document interface: new Document() must inherit property "onformdata" with the proper type assert_inherits: property "onformdata" not found in prototype chain 5676 PASS Document interface: new Document() must inherit property "onformdata" with the proper type 5677 5677 PASS Document interface: new Document() must inherit property "oninput" with the proper type 5678 5678 PASS Document interface: new Document() must inherit property "oninvalid" with the proper type … … 5799 5799 PASS Document interface: documentWithHandlers must inherit property "onerror" with the proper type 5800 5800 PASS Document interface: documentWithHandlers must inherit property "onfocus" with the proper type 5801 FAIL Document interface: documentWithHandlers must inherit property "onformdata" with the proper type assert_inherits: property "onformdata" found on object expected in prototype chain 5801 PASS Document interface: documentWithHandlers must inherit property "onformdata" with the proper type 5802 5802 PASS Document interface: documentWithHandlers must inherit property "oninput" with the proper type 5803 5803 PASS Document interface: documentWithHandlers must inherit property "oninvalid" with the proper type  - 
      
trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/mathml/relations/html5-tree/math-global-event-handlers.tentative-expected.txt
r279406 r280310 115 115 PASS onfocus: dynamic changes on the attribute 116 116 PASS onfocus: dispatching an Event at a <math> element must trigger element.onfocus 117 FAIL onformdata: must be on the appropriate locations for GlobalEventHandlers assert_true: MathMLElement has an own property named "onformdata" expected true got false 118 FAIL onformdata: the default value must be null assert_equals: The default value of the property is null for a MathMLMathElement instance expected (object) null but got (undefined) undefined 119 FAIL onformdata: the content attribute must be compiled into a function as the corresponding property assert_equals: The onformdata property must be a function expected "function" but got "undefined" 120 FAIL onformdata: dynamic changes on the attribute assert_equals: The onformdata property must be null (no attribute) expected (object) null but got (undefined) undefined 121 FAIL onformdata: dispatching an Event at a <math> element must trigger element.onformdata assert_equals: The event must be fired at the <math> element expected (object) Element node <math></math> but got (undefined) undefined 117 PASS onformdata: must be on the appropriate locations for GlobalEventHandlers 118 PASS onformdata: the default value must be null 119 PASS onformdata: the content attribute must be compiled into a function as the corresponding property 120 PASS onformdata: dynamic changes on the attribute 121 PASS onformdata: dispatching an Event at a <math> element must trigger element.onformdata 122 122 PASS oninput: must be on the appropriate locations for GlobalEventHandlers 123 123 PASS oninput: the default value must be null  - 
      
trunk/Source/WebCore/CMakeLists.txt
r279979 r280310 853 853 dom/FocusEvent.idl 854 854 dom/FocusOptions.idl 855 dom/FormDataEvent.idl 855 856 dom/GlobalEventHandlers+PointerEvents.idl 856 857 dom/GlobalEventHandlers+Selection.idl  - 
      
trunk/Source/WebCore/ChangeLog
r280308 r280310 1 2021-07-26 Johnson Zhou <qiaosong_zhou@apple.com> 2 3 FormDataEvent added, and dispatched upon creation of DOMFormData or submission of HTMLFormElement. 4 https://bugs.webkit.org/show_bug.cgi?id=227718 5 6 Reviewed by Chris Dumez. 7 8 * CMakeLists.txt: 9 * DerivedSources-input.xcfilelist: 10 * DerivedSources-output.xcfilelist: 11 * DerivedSources.make: 12 * Sources.txt: 13 * WebCore.xcodeproj/project.pbxproj: 14 * dom/EventNames.h: 15 * dom/EventNames.in: 16 * dom/FormDataEvent.cpp: Added. 17 (WebCore::FormDataEvent::create): 18 (WebCore::FormDataEvent::FormDataEvent): 19 (WebCore::FormDataEvent::eventInterface const): 20 * dom/FormDataEvent.h: Added. 21 (WebCore::FormDataEvent::formData const): 22 * dom/FormDataEvent.idl: Added. 23 * dom/GlobalEventHandlers.idl: 24 * html/DOMFormData.cpp: 25 (WebCore::DOMFormData::DOMFormData): 26 (WebCore::DOMFormData::create): 27 (WebCore::DOMFormData::clone): 28 * html/DOMFormData.h: 29 (WebCore::DOMFormData::create): Deleted. 30 * html/HTMLAttributeNames.in: 31 * html/HTMLElement.cpp: 32 (WebCore::HTMLElement::createEventHandlerNameMap): 33 * html/HTMLFormElement.cpp: 34 (WebCore::HTMLFormElement::submitIfPossible): 35 (WebCore::HTMLFormElement::submit): 36 (WebCore::HTMLFormElement::constructEntryList): 37 * html/HTMLFormElement.h: 38 * loader/FormSubmission.cpp: 39 (WebCore::FormSubmission::create): 40 * loader/FormSubmission.h: 41 * platform/network/FormData.cpp: 42 (WebCore::FormData::appendNonMultiPartKeyValuePairItems): 43 1 44 2021-07-26 Jer Noble <jer.noble@apple.com> 2 45  - 
      
trunk/Source/WebCore/DerivedSources-input.xcfilelist
r279979 r280310 873 873 $(PROJECT_DIR)/dom/FocusEvent.idl 874 874 $(PROJECT_DIR)/dom/FocusOptions.idl 875 $(PROJECT_DIR)/dom/FormDataEvent.idl 875 876 $(PROJECT_DIR)/dom/GlobalEventHandlers+PointerEvents.idl 876 877 $(PROJECT_DIR)/dom/GlobalEventHandlers+Selection.idl  - 
      
trunk/Source/WebCore/DerivedSources-output.xcfilelist
r279979 r280310 850 850 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSFontFaceSource.cpp 851 851 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSFontFaceSource.h 852 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSFormDataEvent.cpp 853 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSFormDataEvent.h 852 854 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSGCObservation.cpp 853 855 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSGCObservation.h  - 
      
trunk/Source/WebCore/DerivedSources.make
r279979 r280310 734 734 $(WebCore)/dom/FocusEvent.idl \ 735 735 $(WebCore)/dom/FocusOptions.idl \ 736 $(WebCore)/dom/FormDataEvent.idl \ 736 737 $(WebCore)/dom/GlobalEventHandlers+PointerEvents.idl \ 737 738 $(WebCore)/dom/GlobalEventHandlers+Selection.idl \  - 
      
trunk/Source/WebCore/Sources.txt
r279979 r280310 951 951 dom/ExtensionStyleSheets.cpp 952 952 dom/FocusEvent.cpp 953 dom/FormDataEvent.cpp 953 954 dom/FullscreenManager.cpp 954 955 dom/GCReachableRef.cpp … … 3071 3072 JSFontFace.cpp 3072 3073 JSFontFaceSet.cpp 3074 JSFormDataEvent.cpp 3073 3075 JSGPUBindGroupLayoutBinding.cpp 3074 3076 JSGPUBindGroupLayoutDescriptor.cpp  - 
      
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r280199 r280310 7225 7225 29E4D8E016B0959800C84704 /* PlatformSpeechSynthesizerMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = PlatformSpeechSynthesizerMac.mm; sourceTree = "<group>"; }; 7226 7226 29FAF4B5195AB08900A522DC /* TextUndoInsertionMarkupMac.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TextUndoInsertionMarkupMac.h; sourceTree = "<group>"; }; 7227 2A66438E26A006AE00C147A1 /* FormDataEvent.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = FormDataEvent.idl; sourceTree = "<group>"; }; 7228 2A66439026A006AF00C147A1 /* FormDataEvent.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FormDataEvent.h; sourceTree = "<group>"; }; 7229 2A66439126A006AF00C147A1 /* FormDataEvent.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = FormDataEvent.cpp; sourceTree = "<group>"; }; 7227 7230 2B42359F15250F6000DBBCD8 /* RenderSVGEllipse.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RenderSVGEllipse.cpp; sourceTree = "<group>"; }; 7228 7231 2B4235A015250F6000DBBCD8 /* RenderSVGEllipse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RenderSVGEllipse.h; sourceTree = "<group>"; }; … … 30758 30761 AADEFE4325AF4FCB0040DD67 /* FocusOptions.h */, 30759 30762 AA2E0D0925AF5104007693BA /* FocusOptions.idl */, 30763 2A66439126A006AF00C147A1 /* FormDataEvent.cpp */, 30764 2A66439026A006AF00C147A1 /* FormDataEvent.h */, 30765 2A66438E26A006AE00C147A1 /* FormDataEvent.idl */, 30760 30766 A853123C11D0471B00D4D077 /* FragmentScriptingPermission.h */, 30761 30767 CD92F5172261038200F87BB3 /* FullscreenManager.cpp */,  - 
      
trunk/Source/WebCore/dom/EventNames.h
r279582 r280310 135 135 macro(focusin) \ 136 136 macro(focusout) \ 137 macro(formdata) \ 137 138 macro(gamepadconnected) \ 138 139 macro(gamepaddisconnected) \  - 
      
trunk/Source/WebCore/dom/EventNames.in
r279979 r280310 20 20 FetchEvent conditional=SERVICE_WORKER 21 21 FocusEvent 22 FormDataEvent 22 23 HashChangeEvent 23 24 InputEvent  - 
      
trunk/Source/WebCore/dom/GlobalEventHandlers.idl
r279406 r280310 57 57 attribute EventHandler onerror; 58 58 attribute EventHandler onfocus; 59 // FIXME: Implement 'onformdata'. 60 // attribute EventHandler onformdata; 59 attribute EventHandler onformdata; 61 60 attribute EventHandler oninput; 62 61 attribute EventHandler oninvalid;  - 
      
trunk/Source/WebCore/html/DOMFormData.cpp
r278340 r280310 42 42 } 43 43 44 DOMFormData::DOMFormData(HTMLFormElement* form) 45 : m_encoding(UTF8Encoding()) 44 ExceptionOr<Ref<DOMFormData>> DOMFormData::create(HTMLFormElement* form) 46 45 { 46 auto domFormData = adoptRef(*new DOMFormData()); 47 47 if (!form) 48 return; 48 return domFormData; 49 50 auto result = form->constructEntryList(WTFMove(domFormData), nullptr, HTMLFormElement::IsMultipartForm::Yes); 51 52 if (!result) 53 return Exception { InvalidStateError, "Already constructing Form entry list."_s }; 54 55 return result.releaseNonNull(); 56 } 49 57 50 ASSERT(isMainThread()); 51 for (auto& element : form->copyAssociatedElementsVector()) { 52 if (!element->asHTMLElement().isDisabledFormControl()) 53 element->appendFormData(*this, true); 54 } 58 Ref<DOMFormData> DOMFormData::create(const TextEncoding& encoding) 59 { 60 return adoptRef(*new DOMFormData(encoding)); 61 } 62 63 Ref<DOMFormData> DOMFormData::clone() 64 { 65 auto newFormData = adoptRef(*new DOMFormData(this->encoding())); 66 newFormData->m_items = m_items; 67 68 return newFormData; 55 69 } 56 70  - 
      
trunk/Source/WebCore/html/DOMFormData.h
r278253 r280310 31 31 #pragma once 32 32 33 #include "ExceptionOr.h" 33 34 #include "File.h" 35 #include "FormState.h" 34 36 #include "TextEncoding.h" 35 37 #include <wtf/RefCounted.h> … … 50 52 }; 51 53 52 static Ref<DOMFormData> create(HTMLFormElement* form) { return adoptRef(*new DOMFormData(form)); }53 static Ref<DOMFormData> create(const TextEncoding& encoding) { return adoptRef(*new DOMFormData(encoding)); }54 static ExceptionOr<Ref<DOMFormData>> create(HTMLFormElement*); 55 static Ref<DOMFormData> create(const TextEncoding&); 54 56 55 57 const Vector<Item>& items() const { return m_items; } … … 64 66 void set(const String& name, const String& value); 65 67 void set(const String& name, Blob&, const String& filename = { }); 68 Ref<DOMFormData> clone(); 66 69 67 70 class Iterator { … … 77 80 78 81 private: 79 explicit DOMFormData(const TextEncoding&); 80 explicit DOMFormData(HTMLFormElement*); 82 explicit DOMFormData(const TextEncoding& = UTF8Encoding()); 81 83 82 84 Item createFileEntry(const String& name, Blob&, const String& filename);  - 
      
trunk/Source/WebCore/html/HTMLAttributeNames.in
r279406 r280310 245 245 onfocusin 246 246 onfocusout 247 onformdata 247 248 onhashchange 248 249 oninput  - 
      
trunk/Source/WebCore/html/HTMLElement.cpp
r279751 r280310 290 290 &onfocusinAttr.get(), 291 291 &onfocusoutAttr.get(), 292 &onformdataAttr.get(), 292 293 &ongesturechangeAttr.get(), 293 294 &ongestureendAttr.get(),  - 
      
trunk/Source/WebCore/html/HTMLFormElement.cpp
r279979 r280310 35 35 #include "FormController.h" 36 36 #include "FormData.h" 37 #include "FormDataEvent.h" 37 38 #include "Frame.h" 38 39 #include "FrameLoader.h" … … 259 260 void HTMLFormElement::submitIfPossible(Event* event, HTMLFormControlElement* submitter, FormSubmissionTrigger trigger) 260 261 { 262 // https://html.spec.whatwg.org/#form-submission-algorithm 261 263 if (!isConnected()) 262 264 return; … … 961 963 } 962 964 965 RefPtr<DOMFormData> HTMLFormElement::constructEntryList(Ref<DOMFormData>&& domFormData, StringPairVector* formValues, IsMultipartForm isMultipartForm) 966 { 967 // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#constructing-form-data-set 968 ASSERT(isMainThread()); 969 970 if (m_isConstructingEntryList) 971 return nullptr; 972 973 SetForScope<bool> isConstructingEntryListScope(m_isConstructingEntryList, true); 974 975 for (auto& control : this->copyAssociatedElementsVector()) { 976 auto& element = control->asHTMLElement(); 977 if (!element.isDisabledFormControl()) 978 control->appendFormData(domFormData.get(), isMultipartForm == IsMultipartForm::Yes); 979 if (formValues && is<HTMLInputElement>(element)) { 980 auto& input = downcast<HTMLInputElement>(element); 981 if (input.isTextField()) { 982 formValues->append({ input.name(), input.value() }); 983 input.addSearchResult(); 984 } 985 } 986 } 987 988 dispatchEvent(FormDataEvent::create(eventNames().formdataEvent, Event::CanBubble::Yes, Event::IsCancelable::No, Event::IsComposed::No, domFormData.copyRef())); 989 990 return domFormData->clone(); 991 } 992 963 993 } // namespace  - 
      
trunk/Source/WebCore/html/HTMLFormElement.h
r279401 r280310 34 34 namespace WebCore { 35 35 36 class DOMFormData; 36 37 class Event; 37 38 class FormAssociatedElement; … … 124 125 125 126 static HTMLFormElement* findClosestFormAncestor(const Element&); 126 127 128 enum class IsMultipartForm : bool { No, Yes }; 129 130 RefPtr<DOMFormData> constructEntryList(Ref<DOMFormData>&&, StringPairVector*, IsMultipartForm); 131 127 132 private: 128 133 HTMLFormElement(const QualifiedName&, Document&); … … 190 195 191 196 bool m_wasDemoted { false }; 197 bool m_isConstructingEntryList { false }; 192 198 }; 193 199  - 
      
trunk/Source/WebCore/loader/FormSubmission.cpp
r279401 r280310 212 212 StringPairVector formValues; 213 213 214 bool containsPasswordData = false; 215 for (auto& control : form.copyAssociatedElementsVector()) { 216 auto& element = control->asHTMLElement(); 217 if (!element.isDisabledFormControl()) 218 control->appendFormData(domFormData, isMultiPartForm); 219 if (is<HTMLInputElement>(element)) { 220 auto& input = downcast<HTMLInputElement>(element); 221 if (input.isTextField()) { 222 formValues.append({ input.name(), input.value() }); 223 input.addSearchResult(); 224 } 225 if (input.isPasswordField() && !input.value().isEmpty()) 226 containsPasswordData = true; 227 } 228 } 214 auto result = form.constructEntryList(WTFMove(domFormData), &formValues, isMultiPartForm ? HTMLFormElement::IsMultipartForm::Yes : HTMLFormElement::IsMultipartForm::No); 215 RELEASE_ASSERT(result); 216 domFormData = result.releaseNonNull(); 229 217 230 218 RefPtr<FormData> formData; … … 244 232 245 233 formData->setIdentifier(generateFormDataIdentifier()); 246 formData->setContainsPasswordData(containsPasswordData);247 234 248 235 auto formState = FormState::create(form, WTFMove(formValues), document, trigger);  - 
      
trunk/Source/WebCore/platform/network/FormData.cpp
r278516 r280310 48 48 , m_identifier(data.m_identifier) 49 49 , m_alwaysStream(false) 50 , m_containsPasswordData(data.m_containsPasswordData)51 50 { 52 51 } … … 275 274 Vector<char> encodedData; 276 275 for (auto& item : formData.items()) { 276 // FIXME: The expected behavior is to convert files to string for enctype "text/plain". Conversion may be added at "void DOMFormData::set(const String& name, Blob& blob, const String& filename)" or here. 277 // FIXME: Remove the following if statement when fixed. 278 if (!WTF::holds_alternative<String>(item.data)) 279 continue; 280 277 281 ASSERT(WTF::holds_alternative<String>(item.data)); 278 282  - 
      
trunk/Source/WebCore/platform/network/FormData.h
r278516 r280310 240 240 int64_t identifier() const { return m_identifier; } 241 241 242 bool containsPasswordData() const { return m_containsPasswordData; }243 void setContainsPasswordData(bool containsPasswordData) { m_containsPasswordData = containsPasswordData; }244 242 unsigned imageOrMediaFilesCount() const; 245 243 … … 271 269 bool m_alwaysStream { false }; 272 270 Vector<char> m_boundary; 273 bool m_containsPasswordData { false };274 271 mutable std::optional<uint64_t> m_lengthInBytes; 275 272 }; … … 292 289 encoder << m_elements; 293 290 encoder << m_identifier; 294 // FIXME: Does not encode m_containsPasswordData. Why is that OK?295 291 } 296 292  - 
      
trunk/Source/WebInspectorUI/ChangeLog
r280045 r280310 1 2021-07-26 Qiaosong Zhou <qiaosong_zhou@apple.com> 2 3 FormDataEvent added. 4 https://bugs.webkit.org/show_bug.cgi?id=227718 5 6 Reviewed by Chris Dumez. 7 8 * UserInterface/Models/ScriptTimelineRecord.js: 9 (WI.ScriptTimelineRecord.EventType.displayName): 10 1 11 2021-07-19 Nikita Vasilyev <nvasilyev@apple.com> 2 12  - 
      
trunk/Source/WebInspectorUI/UserInterface/Models/ScriptTimelineRecord.js
r262806 r280310 256 256 nameMap.set("focusin", "Focus In"); 257 257 nameMap.set("focusout", "Focus Out"); 258 nameMap.set("formdata", "Form submission or invocation of FormData()"); 258 259 nameMap.set("gesturechange", "Gesture Change"); 259 260 nameMap.set("gestureend", "Gesture End");  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.