Changeset 280310 in webkit


Ignore:
Timestamp:
Jul 26, 2021, 1:15:49 PM (4 years ago)
Author:
commit-queue@webkit.org
Message:

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:
Location:
trunk
Files:
3 added
37 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r280308 r280310  
     12021-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
    1152021-07-26  Jer Noble  <jer.noble@apple.com>
    216
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r280256 r280310  
     12021-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
    1172021-07-23  Alexey Shvayka  <shvaikalesh@gmail.com>
    218
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/FormDataEvent.window-expected.txt

    r263987 r280310  
    11
    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
     2PASS Failing FormDataEvent constructor
     3PASS Successful FormDataEvent constructor
    64
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/constructing-form-data-set-expected.txt

    r279427 r280310  
    1111PASS _charset_ control sets the expected encoding name.
    1212PASS 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]')
     13PASS "formdata" event bubbles, and is not cancelable.
     14PASS "formdata" event bubbles in an orphan tree.
     15PASS "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.
     16PASS Entries added to "formData" IDL attribute should be submitted.
     17PASS Entries added to the "formdata" IDL attribute shouldn't be newline normalized in the resulting FormData
    1818FAIL 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
    1919
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/text-plain.window-expected.txt

    r279427 r280310  
    11
    22FAIL 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 ""
     3FAIL text/plain: Basic test (formdata event) assert_equals: expected "basic=test\r\n" but got "basic=test"
    44FAIL text/plain: Basic File test (normal form) assert_equals: expected "basic=file-test.txt\r\n" but got "basic=file-test.txt"
    55FAIL text/plain: Basic File test (formdata event) assert_equals: expected "basic=file-test.txt\r\n" but got ""
    66FAIL 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 ""
     7FAIL text/plain: 0x00 in name (formdata event) assert_equals: expected "a\0b=c\r\n" but got "a\0b=c"
    88FAIL 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 ""
     9FAIL text/plain: 0x00 in value (formdata event) assert_equals: expected "a=b\0c\r\n" but got "a=b\0c"
    1010FAIL text/plain: 0x00 in filename (normal form) assert_equals: expected "a=b\0c\r\n" but got "a=b\0c"
    1111FAIL text/plain: 0x00 in filename (formdata event) assert_equals: expected "a=b\0c\r\n" but got ""
    1212FAIL 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 ""
     13FAIL text/plain: \n in name (formdata event) assert_equals: expected "a\r\nb=c\r\n" but got "a\r\nb=c"
    1414FAIL 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 ""
     15FAIL text/plain: \r in name (formdata event) assert_equals: expected "a\r\nb=c\r\n" but got "a\r\nb=c"
    1616FAIL 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 ""
     17FAIL text/plain: \r\n in name (formdata event) assert_equals: expected "a\r\nb=c\r\n" but got "a\r\nb=c"
    1818FAIL 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 ""
     19FAIL 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"
    2020FAIL 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 ""
     21FAIL text/plain: \n in value (formdata event) assert_equals: expected "a=b\r\nc\r\n" but got "a=b\r\nc"
    2222FAIL 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 ""
     23FAIL text/plain: \r in value (formdata event) assert_equals: expected "a=b\r\nc\r\n" but got "a=b\r\nc"
    2424FAIL 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 ""
     25FAIL text/plain: \r\n in value (formdata event) assert_equals: expected "a=b\r\nc\r\n" but got "a=b\r\nc"
    2626FAIL 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 ""
     27FAIL 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"
    2828FAIL text/plain: \n in filename (normal form) assert_equals: expected "a=b\r\nc\r\n" but got "a=b\r\nc"
    2929FAIL text/plain: \n in filename (formdata event) assert_equals: expected "a=b\r\nc\r\n" but got ""
     
    3535FAIL text/plain: \n\r in filename (formdata event) assert_equals: expected "a=b\r\n\r\nc\r\n" but got ""
    3636FAIL 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 ""
     37FAIL text/plain: double quote in name (formdata event) assert_equals: expected "a\"b=c\r\n" but got "a\"b=c"
    3838FAIL 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 ""
     39FAIL text/plain: double quote in value (formdata event) assert_equals: expected "a=b\"c\r\n" but got "a=b\"c"
    4040FAIL text/plain: double quote in filename (normal form) assert_equals: expected "a=b\"c\r\n" but got "a=b\"c"
    4141FAIL text/plain: double quote in filename (formdata event) assert_equals: expected "a=b\"c\r\n" but got ""
    4242FAIL 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 ""
     43FAIL text/plain: single quote in name (formdata event) assert_equals: expected "a'b=c\r\n" but got "a'b=c"
    4444FAIL 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 ""
     45FAIL text/plain: single quote in value (formdata event) assert_equals: expected "a=b'c\r\n" but got "a=b'c"
    4646FAIL text/plain: single quote in filename (normal form) assert_equals: expected "a=b'c\r\n" but got "a=b'c"
    4747FAIL text/plain: single quote in filename (formdata event) assert_equals: expected "a=b'c\r\n" but got ""
    4848FAIL 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 ""
     49FAIL text/plain: backslash in name (formdata event) assert_equals: expected "a\\b=c\r\n" but got "a\\b=c"
    5050FAIL 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 ""
     51FAIL text/plain: backslash in value (formdata event) assert_equals: expected "a=b\\c\r\n" but got "a=b\\c"
    5252FAIL text/plain: backslash in filename (normal form) assert_equals: expected "a=b\\c\r\n" but got "a=b\\c"
    5353FAIL text/plain: backslash in filename (formdata event) assert_equals: expected "a=b\\c\r\n" but got ""
    5454FAIL 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 ""
     55FAIL text/plain: non-ASCII in name and value (formdata event) assert_equals: expected "áb=ç\r\n" but got "áb=ç"
    5656FAIL text/plain: non-ASCII in filename (normal form) assert_equals: expected "a=ə.txt\r\n" but got "a=ə.txt"
    5757FAIL text/plain: non-ASCII in filename (formdata event) assert_equals: expected "a=ə.txt\r\n" but got ""
    5858FAIL text/plain: characters not in encoding in name and value (normal form) assert_equals: expected "a&#601;b=c&#65533;d\r\n" but got "a&#601;b=c&#65533;d"
    59 FAIL text/plain: characters not in encoding in name and value (formdata event) assert_equals: expected "a&#601;b=c&#65533;d\r\n" but got ""
     59FAIL text/plain: characters not in encoding in name and value (formdata event) assert_equals: expected "a&#601;b=c&#65533;d\r\n" but got "a&#601;b=c&#65533;d"
    6060FAIL text/plain: character not in encoding in filename (normal form) assert_equals: expected "á=&#128169;\r\n" but got "á=&#128169;"
    6161FAIL text/plain: character not in encoding in filename (formdata event) assert_equals: expected "á=&#128169;\r\n" but got ""
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/urlencoded2.window-expected.txt

    r279427 r280310  
    11
    22PASS 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 ""
     3PASS application/x-www-form-urlencoded: Basic test (formdata event)
    44PASS application/x-www-form-urlencoded: Basic File test (normal form)
    55FAIL application/x-www-form-urlencoded: Basic File test (formdata event) assert_equals: expected "basic=file-test.txt" but got ""
    66FAIL 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 ""
     7FAIL application/x-www-form-urlencoded: 0x00 in name (formdata event) assert_equals: expected "a%00b=c" but got "a\0b=c"
    88FAIL 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 ""
     9FAIL application/x-www-form-urlencoded: 0x00 in value (formdata event) assert_equals: expected "a=b%00c" but got "a=b\0c"
    1010FAIL application/x-www-form-urlencoded: 0x00 in filename (normal form) assert_equals: expected "a=b%00c" but got "a=b\0c"
    1111FAIL application/x-www-form-urlencoded: 0x00 in filename (formdata event) assert_equals: expected "a=b%00c" but got ""
    1212PASS 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 ""
     13PASS application/x-www-form-urlencoded: \n in name (formdata event)
    1414PASS 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 ""
     15PASS application/x-www-form-urlencoded: \r in name (formdata event)
    1616PASS 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 ""
     17PASS application/x-www-form-urlencoded: \r\n in name (formdata event)
    1818PASS 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 ""
     19PASS application/x-www-form-urlencoded: \n\r in name (formdata event)
    2020PASS 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 ""
     21PASS application/x-www-form-urlencoded: \n in value (formdata event)
    2222PASS 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 ""
     23PASS application/x-www-form-urlencoded: \r in value (formdata event)
    2424PASS 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 ""
     25PASS application/x-www-form-urlencoded: \r\n in value (formdata event)
    2626PASS 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 ""
     27PASS application/x-www-form-urlencoded: \n\r in value (formdata event)
    2828PASS application/x-www-form-urlencoded: \n in filename (normal form)
    2929FAIL application/x-www-form-urlencoded: \n in filename (formdata event) assert_equals: expected "a=b%0D%0Ac" but got ""
     
    3535FAIL application/x-www-form-urlencoded: \n\r in filename (formdata event) assert_equals: expected "a=b%0D%0A%0D%0Ac" but got ""
    3636PASS 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 ""
     37PASS application/x-www-form-urlencoded: double quote in name (formdata event)
    3838PASS 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 ""
     39PASS application/x-www-form-urlencoded: double quote in value (formdata event)
    4040PASS application/x-www-form-urlencoded: double quote in filename (normal form)
    4141FAIL application/x-www-form-urlencoded: double quote in filename (formdata event) assert_equals: expected "a=b%22c" but got ""
    4242PASS 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 ""
     43PASS application/x-www-form-urlencoded: single quote in name (formdata event)
    4444PASS 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 ""
     45PASS application/x-www-form-urlencoded: single quote in value (formdata event)
    4646PASS application/x-www-form-urlencoded: single quote in filename (normal form)
    4747FAIL application/x-www-form-urlencoded: single quote in filename (formdata event) assert_equals: expected "a=b%27c" but got ""
    4848PASS 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 ""
     49PASS application/x-www-form-urlencoded: backslash in name (formdata event)
    5050PASS 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 ""
     51PASS application/x-www-form-urlencoded: backslash in value (formdata event)
    5252PASS application/x-www-form-urlencoded: backslash in filename (normal form)
    5353FAIL application/x-www-form-urlencoded: backslash in filename (formdata event) assert_equals: expected "a=b%5Cc" but got ""
    5454PASS 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 ""
     55PASS application/x-www-form-urlencoded: non-ASCII in name and value (formdata event)
    5656PASS application/x-www-form-urlencoded: non-ASCII in filename (normal form)
    5757FAIL application/x-www-form-urlencoded: non-ASCII in filename (formdata event) assert_equals: expected "a=%C9%99.txt" but got ""
    5858PASS 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 ""
     59PASS application/x-www-form-urlencoded: characters not in encoding in name and value (formdata event)
    6060PASS application/x-www-form-urlencoded: character not in encoding in filename (normal form)
    6161FAIL 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  
    115115PASS onfocus: the content attribute must execute when an event is dispatched
    116116PASS 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 undefined
     117PASS onformdata: must be on the appropriate locations for GlobalEventHandlers
     118PASS onformdata: the default value must be null
     119PASS onformdata: the content attribute must be compiled into a function as the corresponding property
     120PASS onformdata: the content attribute must execute when an event is dispatched
    121121PASS onformdata: dispatching an Event at a <meta> element must trigger element.onformdata
    122122PASS 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  
    4343PASS not shadowed emptied (document.body)
    4444PASS 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
     45PASS not shadowed formdata (document.body)
    4646PASS not shadowed input (document.body)
    4747PASS not shadowed invalid (document.body)
     
    150150PASS not shadowed emptied (document.createElement("body"))
    151151PASS 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
     152PASS not shadowed formdata (document.createElement("body"))
    153153PASS not shadowed input (document.createElement("body"))
    154154PASS not shadowed invalid (document.createElement("body"))
     
    257257PASS not shadowed emptied (window)
    258258PASS not shadowed ended (window)
    259 FAIL not shadowed formdata (window) assert_equals: body should reflect expected (object) null but got (undefined) undefined
     259PASS not shadowed formdata (window)
    260260PASS not shadowed input (window)
    261261PASS not shadowed invalid (window)
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-windowless-body-expected.txt

    r279406 r280310  
    6565PASS emptied is unaffected on a windowless body
    6666PASS 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
     67PASS formdata is unaffected on a windowless body
    6868PASS input is unaffected on a windowless body
    6969PASS invalid is unaffected on a windowless body
     
    172172PASS emptied is unaffected on a windowless frameset
    173173PASS 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
     174PASS formdata is unaffected on a windowless frameset
    175175PASS input is unaffected on a windowless frameset
    176176PASS invalid is unaffected on a windowless frameset
  • trunk/LayoutTests/imported/w3c/web-platform-tests/xhr/formdata-expected.txt

    r267866 r280310  
    88PASS formdata with named string
    99PASS 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
     10PASS Newly created FormData contains entries added to "formData" IDL attribute of FormDataEvent.
     11PASS |new FormData()| in formdata event handler should throw
    1212
  • trunk/LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt

    r279979 r280310  
    285285PASS HTMLElement interface: attribute onerror
    286286PASS HTMLElement interface: attribute onfocus
    287 FAIL HTMLElement interface: attribute onformdata assert_true: The prototype object must have a property "onformdata" expected true got false
     287PASS HTMLElement interface: attribute onformdata
    288288PASS HTMLElement interface: attribute oninput
    289289PASS HTMLElement interface: attribute oninvalid
     
    380380PASS HTMLElement interface: document.createElement("noscript") must inherit property "onerror" with the proper type
    381381PASS 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
     382PASS HTMLElement interface: document.createElement("noscript") must inherit property "onformdata" with the proper type
    383383PASS HTMLElement interface: document.createElement("noscript") must inherit property "oninput" with the proper type
    384384PASS HTMLElement interface: document.createElement("noscript") must inherit property "oninvalid" with the proper type
     
    37743774PASS SubmitEvent interface: existence and properties of interface prototype object's @@unscopables property
    37753775PASS 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"
     3776PASS FormDataEvent interface: existence and properties of interface object
     3777PASS FormDataEvent interface object length
     3778PASS FormDataEvent interface object name
     3779PASS FormDataEvent interface: existence and properties of interface prototype object
     3780PASS FormDataEvent interface: existence and properties of interface prototype object's "constructor" property
     3781PASS FormDataEvent interface: existence and properties of interface prototype object's @@unscopables property
     3782PASS FormDataEvent interface: attribute formData
     3783PASS FormDataEvent must be primary interface of new FormDataEvent("formdata", { formData: new FormData() })
     3784PASS Stringification of new FormDataEvent("formdata", { formData: new FormData() })
     3785PASS FormDataEvent interface: new FormDataEvent("formdata", { formData: new FormData() }) must inherit property "formData" with the proper type
    37863786PASS HTMLDetailsElement interface: existence and properties of interface object
    37873787PASS HTMLDetailsElement interface object length
     
    44154415PASS Window interface: attribute onerror
    44164416PASS 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
     4417PASS Window interface: attribute onformdata
    44184418PASS Window interface: attribute oninput
    44194419PASS Window interface: attribute oninvalid
     
    45654565PASS Window interface: window must inherit property "onerror" with the proper type
    45664566PASS 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
     4567PASS Window interface: window must inherit property "onformdata" with the proper type
    45684568PASS Window interface: window must inherit property "oninput" with the proper type
    45694569PASS Window interface: window must inherit property "oninvalid" with the proper type
     
    52805280PASS SVGElement interface: attribute onerror
    52815281PASS SVGElement interface: attribute onfocus
    5282 FAIL SVGElement interface: attribute onformdata assert_true: The prototype object must have a property "onformdata" expected true got false
     5282PASS SVGElement interface: attribute onformdata
    52835283PASS SVGElement interface: attribute oninput
    52845284PASS SVGElement interface: attribute oninvalid
     
    54145414PASS Document interface: attribute onerror
    54155415PASS Document interface: attribute onfocus
    5416 FAIL Document interface: attribute onformdata assert_true: The prototype object must have a property "onformdata" expected true got false
     5416PASS Document interface: attribute onformdata
    54175417PASS Document interface: attribute oninput
    54185418PASS Document interface: attribute oninvalid
     
    55395539PASS Document interface: iframe.contentDocument must inherit property "onerror" with the proper type
    55405540PASS 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
     5541PASS Document interface: iframe.contentDocument must inherit property "onformdata" with the proper type
    55425542PASS Document interface: iframe.contentDocument must inherit property "oninput" with the proper type
    55435543PASS Document interface: iframe.contentDocument must inherit property "oninvalid" with the proper type
     
    56645664PASS Document interface: new Document() must inherit property "onerror" with the proper type
    56655665PASS 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
     5666PASS Document interface: new Document() must inherit property "onformdata" with the proper type
    56675667PASS Document interface: new Document() must inherit property "oninput" with the proper type
    56685668PASS Document interface: new Document() must inherit property "oninvalid" with the proper type
     
    57895789PASS Document interface: documentWithHandlers must inherit property "onerror" with the proper type
    57905790PASS 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
     5791PASS Document interface: documentWithHandlers must inherit property "onformdata" with the proper type
    57925792PASS Document interface: documentWithHandlers must inherit property "oninput" with the proper type
    57935793PASS 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  
    115115PASS onfocus: dynamic changes on the attribute
    116116PASS 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
     117PASS onformdata: must be on the appropriate locations for GlobalEventHandlers
     118PASS onformdata: the default value must be null
     119PASS onformdata: the content attribute must be compiled into a function as the corresponding property
     120PASS onformdata: dynamic changes on the attribute
     121PASS onformdata: dispatching an Event at a <math> element must trigger element.onformdata
    122122PASS oninput: must be on the appropriate locations for GlobalEventHandlers
    123123PASS 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  
    285285PASS HTMLElement interface: attribute onerror
    286286PASS HTMLElement interface: attribute onfocus
    287 FAIL HTMLElement interface: attribute onformdata assert_true: The prototype object must have a property "onformdata" expected true got false
     287PASS HTMLElement interface: attribute onformdata
    288288PASS HTMLElement interface: attribute oninput
    289289PASS HTMLElement interface: attribute oninvalid
     
    380380PASS HTMLElement interface: document.createElement("noscript") must inherit property "onerror" with the proper type
    381381PASS 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
     382PASS HTMLElement interface: document.createElement("noscript") must inherit property "onformdata" with the proper type
    383383PASS HTMLElement interface: document.createElement("noscript") must inherit property "oninput" with the proper type
    384384PASS HTMLElement interface: document.createElement("noscript") must inherit property "oninvalid" with the proper type
     
    37843784PASS SubmitEvent interface: existence and properties of interface prototype object's @@unscopables property
    37853785PASS 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"
     3786PASS FormDataEvent interface: existence and properties of interface object
     3787PASS FormDataEvent interface object length
     3788PASS FormDataEvent interface object name
     3789PASS FormDataEvent interface: existence and properties of interface prototype object
     3790PASS FormDataEvent interface: existence and properties of interface prototype object's "constructor" property
     3791PASS FormDataEvent interface: existence and properties of interface prototype object's @@unscopables property
     3792PASS FormDataEvent interface: attribute formData
     3793PASS FormDataEvent must be primary interface of new FormDataEvent("formdata", { formData: new FormData() })
     3794PASS Stringification of new FormDataEvent("formdata", { formData: new FormData() })
     3795PASS FormDataEvent interface: new FormDataEvent("formdata", { formData: new FormData() }) must inherit property "formData" with the proper type
    37963796PASS HTMLDetailsElement interface: existence and properties of interface object
    37973797PASS HTMLDetailsElement interface object length
     
    44254425PASS Window interface: attribute onerror
    44264426PASS 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
     4427PASS Window interface: attribute onformdata
    44284428PASS Window interface: attribute oninput
    44294429PASS Window interface: attribute oninvalid
     
    45754575PASS Window interface: window must inherit property "onerror" with the proper type
    45764576PASS 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
     4577PASS Window interface: window must inherit property "onformdata" with the proper type
    45784578PASS Window interface: window must inherit property "oninput" with the proper type
    45794579PASS Window interface: window must inherit property "oninvalid" with the proper type
     
    52905290PASS SVGElement interface: attribute onerror
    52915291PASS SVGElement interface: attribute onfocus
    5292 FAIL SVGElement interface: attribute onformdata assert_true: The prototype object must have a property "onformdata" expected true got false
     5292PASS SVGElement interface: attribute onformdata
    52935293PASS SVGElement interface: attribute oninput
    52945294PASS SVGElement interface: attribute oninvalid
     
    54245424PASS Document interface: attribute onerror
    54255425PASS Document interface: attribute onfocus
    5426 FAIL Document interface: attribute onformdata assert_true: The prototype object must have a property "onformdata" expected true got false
     5426PASS Document interface: attribute onformdata
    54275427PASS Document interface: attribute oninput
    54285428PASS Document interface: attribute oninvalid
     
    55495549PASS Document interface: iframe.contentDocument must inherit property "onerror" with the proper type
    55505550PASS 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
     5551PASS Document interface: iframe.contentDocument must inherit property "onformdata" with the proper type
    55525552PASS Document interface: iframe.contentDocument must inherit property "oninput" with the proper type
    55535553PASS Document interface: iframe.contentDocument must inherit property "oninvalid" with the proper type
     
    56745674PASS Document interface: new Document() must inherit property "onerror" with the proper type
    56755675PASS 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
     5676PASS Document interface: new Document() must inherit property "onformdata" with the proper type
    56775677PASS Document interface: new Document() must inherit property "oninput" with the proper type
    56785678PASS Document interface: new Document() must inherit property "oninvalid" with the proper type
     
    57995799PASS Document interface: documentWithHandlers must inherit property "onerror" with the proper type
    58005800PASS 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
     5801PASS Document interface: documentWithHandlers must inherit property "onformdata" with the proper type
    58025802PASS Document interface: documentWithHandlers must inherit property "oninput" with the proper type
    58035803PASS 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  
    115115PASS onfocus: dynamic changes on the attribute
    116116PASS 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
     117PASS onformdata: must be on the appropriate locations for GlobalEventHandlers
     118PASS onformdata: the default value must be null
     119PASS onformdata: the content attribute must be compiled into a function as the corresponding property
     120PASS onformdata: dynamic changes on the attribute
     121PASS onformdata: dispatching an Event at a <math> element must trigger element.onformdata
    122122PASS oninput: must be on the appropriate locations for GlobalEventHandlers
    123123PASS 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  
    285285PASS HTMLElement interface: attribute onerror
    286286PASS HTMLElement interface: attribute onfocus
    287 FAIL HTMLElement interface: attribute onformdata assert_true: The prototype object must have a property "onformdata" expected true got false
     287PASS HTMLElement interface: attribute onformdata
    288288PASS HTMLElement interface: attribute oninput
    289289PASS HTMLElement interface: attribute oninvalid
     
    380380PASS HTMLElement interface: document.createElement("noscript") must inherit property "onerror" with the proper type
    381381PASS 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
     382PASS HTMLElement interface: document.createElement("noscript") must inherit property "onformdata" with the proper type
    383383PASS HTMLElement interface: document.createElement("noscript") must inherit property "oninput" with the proper type
    384384PASS HTMLElement interface: document.createElement("noscript") must inherit property "oninvalid" with the proper type
     
    37843784PASS SubmitEvent interface: existence and properties of interface prototype object's @@unscopables property
    37853785PASS 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"
     3786PASS FormDataEvent interface: existence and properties of interface object
     3787PASS FormDataEvent interface object length
     3788PASS FormDataEvent interface object name
     3789PASS FormDataEvent interface: existence and properties of interface prototype object
     3790PASS FormDataEvent interface: existence and properties of interface prototype object's "constructor" property
     3791PASS FormDataEvent interface: existence and properties of interface prototype object's @@unscopables property
     3792PASS FormDataEvent interface: attribute formData
     3793PASS FormDataEvent must be primary interface of new FormDataEvent("formdata", { formData: new FormData() })
     3794PASS Stringification of new FormDataEvent("formdata", { formData: new FormData() })
     3795PASS FormDataEvent interface: new FormDataEvent("formdata", { formData: new FormData() }) must inherit property "formData" with the proper type
    37963796PASS HTMLDetailsElement interface: existence and properties of interface object
    37973797PASS HTMLDetailsElement interface object length
     
    44254425PASS Window interface: attribute onerror
    44264426PASS 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
     4427PASS Window interface: attribute onformdata
    44284428PASS Window interface: attribute oninput
    44294429PASS Window interface: attribute oninvalid
     
    45754575PASS Window interface: window must inherit property "onerror" with the proper type
    45764576PASS 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
     4577PASS Window interface: window must inherit property "onformdata" with the proper type
    45784578PASS Window interface: window must inherit property "oninput" with the proper type
    45794579PASS Window interface: window must inherit property "oninvalid" with the proper type
     
    52905290PASS SVGElement interface: attribute onerror
    52915291PASS SVGElement interface: attribute onfocus
    5292 FAIL SVGElement interface: attribute onformdata assert_true: The prototype object must have a property "onformdata" expected true got false
     5292PASS SVGElement interface: attribute onformdata
    52935293PASS SVGElement interface: attribute oninput
    52945294PASS SVGElement interface: attribute oninvalid
     
    54245424PASS Document interface: attribute onerror
    54255425PASS Document interface: attribute onfocus
    5426 FAIL Document interface: attribute onformdata assert_true: The prototype object must have a property "onformdata" expected true got false
     5426PASS Document interface: attribute onformdata
    54275427PASS Document interface: attribute oninput
    54285428PASS Document interface: attribute oninvalid
     
    55495549PASS Document interface: iframe.contentDocument must inherit property "onerror" with the proper type
    55505550PASS 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
     5551PASS Document interface: iframe.contentDocument must inherit property "onformdata" with the proper type
    55525552PASS Document interface: iframe.contentDocument must inherit property "oninput" with the proper type
    55535553PASS Document interface: iframe.contentDocument must inherit property "oninvalid" with the proper type
     
    56745674PASS Document interface: new Document() must inherit property "onerror" with the proper type
    56755675PASS 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
     5676PASS Document interface: new Document() must inherit property "onformdata" with the proper type
    56775677PASS Document interface: new Document() must inherit property "oninput" with the proper type
    56785678PASS Document interface: new Document() must inherit property "oninvalid" with the proper type
     
    57995799PASS Document interface: documentWithHandlers must inherit property "onerror" with the proper type
    58005800PASS 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
     5801PASS Document interface: documentWithHandlers must inherit property "onformdata" with the proper type
    58025802PASS Document interface: documentWithHandlers must inherit property "oninput" with the proper type
    58035803PASS 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  
    115115PASS onfocus: dynamic changes on the attribute
    116116PASS 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
     117PASS onformdata: must be on the appropriate locations for GlobalEventHandlers
     118PASS onformdata: the default value must be null
     119PASS onformdata: the content attribute must be compiled into a function as the corresponding property
     120PASS onformdata: dynamic changes on the attribute
     121PASS onformdata: dispatching an Event at a <math> element must trigger element.onformdata
    122122PASS oninput: must be on the appropriate locations for GlobalEventHandlers
    123123PASS oninput: the default value must be null
  • trunk/Source/WebCore/CMakeLists.txt

    r279979 r280310  
    853853    dom/FocusEvent.idl
    854854    dom/FocusOptions.idl
     855    dom/FormDataEvent.idl
    855856    dom/GlobalEventHandlers+PointerEvents.idl
    856857    dom/GlobalEventHandlers+Selection.idl
  • trunk/Source/WebCore/ChangeLog

    r280308 r280310  
     12021-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
    1442021-07-26  Jer Noble  <jer.noble@apple.com>
    245
  • trunk/Source/WebCore/DerivedSources-input.xcfilelist

    r279979 r280310  
    873873$(PROJECT_DIR)/dom/FocusEvent.idl
    874874$(PROJECT_DIR)/dom/FocusOptions.idl
     875$(PROJECT_DIR)/dom/FormDataEvent.idl
    875876$(PROJECT_DIR)/dom/GlobalEventHandlers+PointerEvents.idl
    876877$(PROJECT_DIR)/dom/GlobalEventHandlers+Selection.idl
  • trunk/Source/WebCore/DerivedSources-output.xcfilelist

    r279979 r280310  
    850850$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSFontFaceSource.cpp
    851851$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSFontFaceSource.h
     852$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSFormDataEvent.cpp
     853$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSFormDataEvent.h
    852854$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSGCObservation.cpp
    853855$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSGCObservation.h
  • trunk/Source/WebCore/DerivedSources.make

    r279979 r280310  
    734734    $(WebCore)/dom/FocusEvent.idl \
    735735    $(WebCore)/dom/FocusOptions.idl \
     736    $(WebCore)/dom/FormDataEvent.idl \
    736737    $(WebCore)/dom/GlobalEventHandlers+PointerEvents.idl \
    737738    $(WebCore)/dom/GlobalEventHandlers+Selection.idl \
  • trunk/Source/WebCore/Sources.txt

    r279979 r280310  
    951951dom/ExtensionStyleSheets.cpp
    952952dom/FocusEvent.cpp
     953dom/FormDataEvent.cpp
    953954dom/FullscreenManager.cpp
    954955dom/GCReachableRef.cpp
     
    30713072JSFontFace.cpp
    30723073JSFontFaceSet.cpp
     3074JSFormDataEvent.cpp
    30733075JSGPUBindGroupLayoutBinding.cpp
    30743076JSGPUBindGroupLayoutDescriptor.cpp
  • trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj

    r280199 r280310  
    72257225                29E4D8E016B0959800C84704 /* PlatformSpeechSynthesizerMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = PlatformSpeechSynthesizerMac.mm; sourceTree = "<group>"; };
    72267226                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>"; };
    72277230                2B42359F15250F6000DBBCD8 /* RenderSVGEllipse.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RenderSVGEllipse.cpp; sourceTree = "<group>"; };
    72287231                2B4235A015250F6000DBBCD8 /* RenderSVGEllipse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RenderSVGEllipse.h; sourceTree = "<group>"; };
     
    3075830761                                AADEFE4325AF4FCB0040DD67 /* FocusOptions.h */,
    3075930762                                AA2E0D0925AF5104007693BA /* FocusOptions.idl */,
     30763                                2A66439126A006AF00C147A1 /* FormDataEvent.cpp */,
     30764                                2A66439026A006AF00C147A1 /* FormDataEvent.h */,
     30765                                2A66438E26A006AE00C147A1 /* FormDataEvent.idl */,
    3076030766                                A853123C11D0471B00D4D077 /* FragmentScriptingPermission.h */,
    3076130767                                CD92F5172261038200F87BB3 /* FullscreenManager.cpp */,
  • trunk/Source/WebCore/dom/EventNames.h

    r279582 r280310  
    135135    macro(focusin) \
    136136    macro(focusout) \
     137    macro(formdata) \
    137138    macro(gamepadconnected) \
    138139    macro(gamepaddisconnected) \
  • trunk/Source/WebCore/dom/EventNames.in

    r279979 r280310  
    2020FetchEvent conditional=SERVICE_WORKER
    2121FocusEvent
     22FormDataEvent
    2223HashChangeEvent
    2324InputEvent
  • trunk/Source/WebCore/dom/GlobalEventHandlers.idl

    r279406 r280310  
    5757    attribute EventHandler onerror;
    5858    attribute EventHandler onfocus;
    59     // FIXME: Implement 'onformdata'.
    60     // attribute EventHandler onformdata;
     59    attribute EventHandler onformdata;
    6160    attribute EventHandler oninput;
    6261    attribute EventHandler oninvalid;
  • trunk/Source/WebCore/html/DOMFormData.cpp

    r278340 r280310  
    4242}
    4343
    44 DOMFormData::DOMFormData(HTMLFormElement* form)
    45     : m_encoding(UTF8Encoding())
     44ExceptionOr<Ref<DOMFormData>> DOMFormData::create(HTMLFormElement* form)
    4645{
     46    auto domFormData = adoptRef(*new DOMFormData());
    4747    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}
    4957
    50     ASSERT(isMainThread());
    51     for (auto& element : form->copyAssociatedElementsVector()) {
    52         if (!element->asHTMLElement().isDisabledFormControl())
    53             element->appendFormData(*this, true);
    54     }
     58Ref<DOMFormData> DOMFormData::create(const TextEncoding& encoding)
     59{
     60    return adoptRef(*new DOMFormData(encoding));
     61}
     62
     63Ref<DOMFormData> DOMFormData::clone()
     64{
     65    auto newFormData = adoptRef(*new DOMFormData(this->encoding()));
     66    newFormData->m_items = m_items;
     67   
     68    return newFormData;
    5569}
    5670
  • trunk/Source/WebCore/html/DOMFormData.h

    r278253 r280310  
    3131#pragma once
    3232
     33#include "ExceptionOr.h"
    3334#include "File.h"
     35#include "FormState.h"
    3436#include "TextEncoding.h"
    3537#include <wtf/RefCounted.h>
     
    5052    };
    5153
    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&);
    5456
    5557    const Vector<Item>& items() const { return m_items; }
     
    6466    void set(const String& name, const String& value);
    6567    void set(const String& name, Blob&, const String& filename = { });
     68    Ref<DOMFormData> clone();
    6669
    6770    class Iterator {
     
    7780
    7881private:
    79     explicit DOMFormData(const TextEncoding&);
    80     explicit DOMFormData(HTMLFormElement*);
     82    explicit DOMFormData(const TextEncoding& = UTF8Encoding());
    8183
    8284    Item createFileEntry(const String& name, Blob&, const String& filename);
  • trunk/Source/WebCore/html/HTMLAttributeNames.in

    r279406 r280310  
    245245onfocusin
    246246onfocusout
     247onformdata
    247248onhashchange
    248249oninput
  • trunk/Source/WebCore/html/HTMLElement.cpp

    r279751 r280310  
    290290        &onfocusinAttr.get(),
    291291        &onfocusoutAttr.get(),
     292        &onformdataAttr.get(),
    292293        &ongesturechangeAttr.get(),
    293294        &ongestureendAttr.get(),
  • trunk/Source/WebCore/html/HTMLFormElement.cpp

    r279979 r280310  
    3535#include "FormController.h"
    3636#include "FormData.h"
     37#include "FormDataEvent.h"
    3738#include "Frame.h"
    3839#include "FrameLoader.h"
     
    259260void HTMLFormElement::submitIfPossible(Event* event, HTMLFormControlElement* submitter, FormSubmissionTrigger trigger)
    260261{
     262    // https://html.spec.whatwg.org/#form-submission-algorithm
    261263    if (!isConnected())
    262264        return;
     
    961963}
    962964
     965RefPtr<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
    963993} // namespace
  • trunk/Source/WebCore/html/HTMLFormElement.h

    r279401 r280310  
    3434namespace WebCore {
    3535
     36class DOMFormData;
    3637class Event;
    3738class FormAssociatedElement;
     
    124125
    125126    static HTMLFormElement* findClosestFormAncestor(const Element&);
    126 
     127   
     128    enum class IsMultipartForm : bool { No, Yes };
     129   
     130    RefPtr<DOMFormData> constructEntryList(Ref<DOMFormData>&&, StringPairVector*, IsMultipartForm);
     131   
    127132private:
    128133    HTMLFormElement(const QualifiedName&, Document&);
     
    190195
    191196    bool m_wasDemoted { false };
     197    bool m_isConstructingEntryList { false };
    192198};
    193199
  • trunk/Source/WebCore/loader/FormSubmission.cpp

    r279401 r280310  
    212212    StringPairVector formValues;
    213213
    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();
    229217
    230218    RefPtr<FormData> formData;
     
    244232
    245233    formData->setIdentifier(generateFormDataIdentifier());
    246     formData->setContainsPasswordData(containsPasswordData);
    247234
    248235    auto formState = FormState::create(form, WTFMove(formValues), document, trigger);
  • trunk/Source/WebCore/platform/network/FormData.cpp

    r278516 r280310  
    4848    , m_identifier(data.m_identifier)
    4949    , m_alwaysStream(false)
    50     , m_containsPasswordData(data.m_containsPasswordData)
    5150{
    5251}
     
    275274    Vector<char> encodedData;
    276275    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       
    277281        ASSERT(WTF::holds_alternative<String>(item.data));
    278282
  • trunk/Source/WebCore/platform/network/FormData.h

    r278516 r280310  
    240240    int64_t identifier() const { return m_identifier; }
    241241
    242     bool containsPasswordData() const { return m_containsPasswordData; }
    243     void setContainsPasswordData(bool containsPasswordData) { m_containsPasswordData = containsPasswordData; }
    244242    unsigned imageOrMediaFilesCount() const;
    245243
     
    271269    bool m_alwaysStream { false };
    272270    Vector<char> m_boundary;
    273     bool m_containsPasswordData { false };
    274271    mutable std::optional<uint64_t> m_lengthInBytes;
    275272};
     
    292289    encoder << m_elements;
    293290    encoder << m_identifier;
    294     // FIXME: Does not encode m_containsPasswordData. Why is that OK?
    295291}
    296292
  • trunk/Source/WebInspectorUI/ChangeLog

    r280045 r280310  
     12021-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
    1112021-07-19  Nikita Vasilyev  <nvasilyev@apple.com>
    212
  • trunk/Source/WebInspectorUI/UserInterface/Models/ScriptTimelineRecord.js

    r262806 r280310  
    256256        nameMap.set("focusin", "Focus In");
    257257        nameMap.set("focusout", "Focus Out");
     258        nameMap.set("formdata", "Form submission or invocation of FormData()");
    258259        nameMap.set("gesturechange", "Gesture Change");
    259260        nameMap.set("gestureend", "Gesture End");
Note: See TracChangeset for help on using the changeset viewer.