| Differences between
and this patch
- a/Source/WebCore/CMakeLists.txt +1 lines
Lines 1024-1029 set(WebCore_NON_SVG_IDL_FILES a/Source/WebCore/CMakeLists.txt_sec1
1024
    html/MediaError.idl
1024
    html/MediaError.idl
1025
    html/OffscreenCanvas.idl
1025
    html/OffscreenCanvas.idl
1026
    html/RadioNodeList.idl
1026
    html/RadioNodeList.idl
1027
    html/SubmitEvent.idl
1027
    html/TextMetrics.idl
1028
    html/TextMetrics.idl
1028
    html/TimeRanges.idl
1029
    html/TimeRanges.idl
1029
    html/URLSearchParams.idl
1030
    html/URLSearchParams.idl
- a/Source/WebCore/DerivedSources-input.xcfilelist +1 lines
Lines 1050-1055 $(PROJECT_DIR)/html/MediaEncryptedEvent.idl a/Source/WebCore/DerivedSources-input.xcfilelist_sec1
1050
$(PROJECT_DIR)/html/MediaError.idl
1050
$(PROJECT_DIR)/html/MediaError.idl
1051
$(PROJECT_DIR)/html/OffscreenCanvas.idl
1051
$(PROJECT_DIR)/html/OffscreenCanvas.idl
1052
$(PROJECT_DIR)/html/RadioNodeList.idl
1052
$(PROJECT_DIR)/html/RadioNodeList.idl
1053
$(PROJECT_DIR)/html/SubmitEvent.idl
1053
$(PROJECT_DIR)/html/TextMetrics.idl
1054
$(PROJECT_DIR)/html/TextMetrics.idl
1054
$(PROJECT_DIR)/html/TimeRanges.idl
1055
$(PROJECT_DIR)/html/TimeRanges.idl
1055
$(PROJECT_DIR)/html/URLSearchParams.idl
1056
$(PROJECT_DIR)/html/URLSearchParams.idl
- a/Source/WebCore/DerivedSources-output.xcfilelist +2 lines
Lines 2243-2248 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSStyleSheet.cpp a/Source/WebCore/DerivedSources-output.xcfilelist_sec1
2243
$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSStyleSheet.h
2243
$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSStyleSheet.h
2244
$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSStyleSheetList.cpp
2244
$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSStyleSheetList.cpp
2245
$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSStyleSheetList.h
2245
$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSStyleSheetList.h
2246
$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSSubmitEvent.cpp
2247
$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSSubmitEvent.h
2246
$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSSubtleCrypto.cpp
2248
$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSSubtleCrypto.cpp
2247
$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSSubtleCrypto.h
2249
$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSSubtleCrypto.h
2248
$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSText.cpp
2250
$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSText.cpp
- a/Source/WebCore/DerivedSources.make +1 lines
Lines 900-905 JS_BINDING_IDLS := \ a/Source/WebCore/DerivedSources.make_sec1
900
    $(WebCore)/html/MediaError.idl \
900
    $(WebCore)/html/MediaError.idl \
901
    $(WebCore)/html/OffscreenCanvas.idl \
901
    $(WebCore)/html/OffscreenCanvas.idl \
902
    $(WebCore)/html/RadioNodeList.idl \
902
    $(WebCore)/html/RadioNodeList.idl \
903
    $(WebCore)/html/SubmitEvent.idl \
903
    $(WebCore)/html/TextMetrics.idl \
904
    $(WebCore)/html/TextMetrics.idl \
904
    $(WebCore)/html/TimeRanges.idl \
905
    $(WebCore)/html/TimeRanges.idl \
905
    $(WebCore)/html/URLSearchParams.idl \
906
    $(WebCore)/html/URLSearchParams.idl \
- a/Source/WebCore/Sources.txt +2 lines
Lines 1297-1302 html/RubyElement.cpp a/Source/WebCore/Sources.txt_sec1
1297
html/RubyTextElement.cpp
1297
html/RubyTextElement.cpp
1298
html/SearchInputType.cpp
1298
html/SearchInputType.cpp
1299
html/StepRange.cpp
1299
html/StepRange.cpp
1300
html/SubmitEvent.cpp
1300
html/SubmitInputType.cpp
1301
html/SubmitInputType.cpp
1301
html/TelephoneInputType.cpp
1302
html/TelephoneInputType.cpp
1302
html/TextDocument.cpp
1303
html/TextDocument.cpp
Lines 3671-3676 JSStylePropertyMap.cpp a/Source/WebCore/Sources.txt_sec2
3671
JSStylePropertyMapReadOnly.cpp
3672
JSStylePropertyMapReadOnly.cpp
3672
JSStyleSheet.cpp
3673
JSStyleSheet.cpp
3673
JSStyleSheetList.cpp
3674
JSStyleSheetList.cpp
3675
JSSubmitEvent.cpp
3674
JSSubtleCrypto.cpp
3676
JSSubtleCrypto.cpp
3675
JSText.cpp
3677
JSText.cpp
3676
JSTextDecoder.cpp
3678
JSTextDecoder.cpp
- a/Source/WebCore/WebCore.xcodeproj/project.pbxproj +8 lines
Lines 1316-1321 a/Source/WebCore/WebCore.xcodeproj/project.pbxproj_sec1
1316
		46C696CC1E7205FC00597937 /* CPUMonitor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 46C696CA1E7205E400597937 /* CPUMonitor.cpp */; };
1316
		46C696CC1E7205FC00597937 /* CPUMonitor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 46C696CA1E7205E400597937 /* CPUMonitor.cpp */; };
1317
		46C83EFE1A9BBE2900A79A41 /* GeoNotifier.h in Headers */ = {isa = PBXBuildFile; fileRef = 46C83EFC1A9BBE2900A79A41 /* GeoNotifier.h */; settings = {ATTRIBUTES = (Private, ); }; };
1317
		46C83EFE1A9BBE2900A79A41 /* GeoNotifier.h in Headers */ = {isa = PBXBuildFile; fileRef = 46C83EFC1A9BBE2900A79A41 /* GeoNotifier.h */; settings = {ATTRIBUTES = (Private, ); }; };
1318
		46CA9C441F97BBE9004CFC3A /* VisibilityState.h in Headers */ = {isa = PBXBuildFile; fileRef = 46CA9C411F97BBE7004CFC3A /* VisibilityState.h */; settings = {ATTRIBUTES = (Private, ); }; };
1318
		46CA9C441F97BBE9004CFC3A /* VisibilityState.h in Headers */ = {isa = PBXBuildFile; fileRef = 46CA9C411F97BBE7004CFC3A /* VisibilityState.h */; settings = {ATTRIBUTES = (Private, ); }; };
1319
		46D0004026A0FEB300D1BF1E /* SubmitEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 46D0003E26A0FE6F00D1BF1E /* SubmitEvent.h */; };
1319
		46DBB6501AB8C96F00D9A813 /* PowerObserverMac.h in Headers */ = {isa = PBXBuildFile; fileRef = 46DBB64E1AB8C96F00D9A813 /* PowerObserverMac.h */; settings = {ATTRIBUTES = (Private, ); }; };
1320
		46DBB6501AB8C96F00D9A813 /* PowerObserverMac.h in Headers */ = {isa = PBXBuildFile; fileRef = 46DBB64E1AB8C96F00D9A813 /* PowerObserverMac.h */; settings = {ATTRIBUTES = (Private, ); }; };
1320
		46DFF4981DC2603100B80B48 /* ShadowRootMode.h in Headers */ = {isa = PBXBuildFile; fileRef = 46DFF4961DC2601300B80B48 /* ShadowRootMode.h */; settings = {ATTRIBUTES = (Private, ); }; };
1321
		46DFF4981DC2603100B80B48 /* ShadowRootMode.h in Headers */ = {isa = PBXBuildFile; fileRef = 46DFF4961DC2601300B80B48 /* ShadowRootMode.h */; settings = {ATTRIBUTES = (Private, ); }; };
1321
		46DFF49C1DC2620B00B80B48 /* JSShadowRootMode.h in Headers */ = {isa = PBXBuildFile; fileRef = 46DFF49A1DC261F900B80B48 /* JSShadowRootMode.h */; };
1322
		46DFF49C1DC2620B00B80B48 /* JSShadowRootMode.h in Headers */ = {isa = PBXBuildFile; fileRef = 46DFF49A1DC261F900B80B48 /* JSShadowRootMode.h */; };
Lines 8392-8397 a/Source/WebCore/WebCore.xcodeproj/project.pbxproj_sec2
8392
		46C83EFC1A9BBE2900A79A41 /* GeoNotifier.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GeoNotifier.h; sourceTree = "<group>"; };
8393
		46C83EFC1A9BBE2900A79A41 /* GeoNotifier.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GeoNotifier.h; sourceTree = "<group>"; };
8393
		46CA9C411F97BBE7004CFC3A /* VisibilityState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VisibilityState.h; sourceTree = "<group>"; };
8394
		46CA9C411F97BBE7004CFC3A /* VisibilityState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VisibilityState.h; sourceTree = "<group>"; };
8394
		46CA9C421F97BBE7004CFC3A /* VisibilityState.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = VisibilityState.idl; sourceTree = "<group>"; };
8395
		46CA9C421F97BBE7004CFC3A /* VisibilityState.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = VisibilityState.idl; sourceTree = "<group>"; };
8396
		46D0003C26A0FE6F00D1BF1E /* SubmitEvent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SubmitEvent.cpp; sourceTree = "<group>"; };
8397
		46D0003E26A0FE6F00D1BF1E /* SubmitEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SubmitEvent.h; sourceTree = "<group>"; };
8398
		46D0003F26A0FE7000D1BF1E /* SubmitEvent.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = SubmitEvent.idl; sourceTree = "<group>"; };
8395
		46DBB64E1AB8C96F00D9A813 /* PowerObserverMac.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PowerObserverMac.h; sourceTree = "<group>"; };
8399
		46DBB64E1AB8C96F00D9A813 /* PowerObserverMac.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PowerObserverMac.h; sourceTree = "<group>"; };
8396
		46DFF4961DC2601300B80B48 /* ShadowRootMode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ShadowRootMode.h; sourceTree = "<group>"; };
8400
		46DFF4961DC2601300B80B48 /* ShadowRootMode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ShadowRootMode.h; sourceTree = "<group>"; };
8397
		46DFF4971DC2601300B80B48 /* ShadowRootMode.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = ShadowRootMode.idl; sourceTree = "<group>"; };
8401
		46DFF4971DC2601300B80B48 /* ShadowRootMode.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = ShadowRootMode.idl; sourceTree = "<group>"; };
Lines 24162-24167 a/Source/WebCore/WebCore.xcodeproj/project.pbxproj_sec3
24162
				F55B3D9E1251F12D003EF269 /* SearchInputType.h */,
24166
				F55B3D9E1251F12D003EF269 /* SearchInputType.h */,
24163
				A5AFB34D115151A700B045CB /* StepRange.cpp */,
24167
				A5AFB34D115151A700B045CB /* StepRange.cpp */,
24164
				A5AFB34E115151A700B045CB /* StepRange.h */,
24168
				A5AFB34E115151A700B045CB /* StepRange.h */,
24169
				46D0003C26A0FE6F00D1BF1E /* SubmitEvent.cpp */,
24170
				46D0003E26A0FE6F00D1BF1E /* SubmitEvent.h */,
24171
				46D0003F26A0FE7000D1BF1E /* SubmitEvent.idl */,
24165
				F55B3D9F1251F12D003EF269 /* SubmitInputType.cpp */,
24172
				F55B3D9F1251F12D003EF269 /* SubmitInputType.cpp */,
24166
				F55B3DA01251F12D003EF269 /* SubmitInputType.h */,
24173
				F55B3DA01251F12D003EF269 /* SubmitInputType.h */,
24167
				F55B3DA11251F12D003EF269 /* TelephoneInputType.cpp */,
24174
				F55B3DA11251F12D003EF269 /* TelephoneInputType.cpp */,
Lines 35329-35334 a/Source/WebCore/WebCore.xcodeproj/project.pbxproj_sec4
35329
				E4AFD00C0DAF335400F5F55C /* SMILTime.h in Headers */,
35336
				E4AFD00C0DAF335400F5F55C /* SMILTime.h in Headers */,
35330
				E4AFD00E0DAF335500F5F55C /* SMILTimeContainer.h in Headers */,
35337
				E4AFD00E0DAF335500F5F55C /* SMILTimeContainer.h in Headers */,
35331
				5C7C88D81D0F1F4A009D2F6D /* SocketProvider.h in Headers */,
35338
				5C7C88D81D0F1F4A009D2F6D /* SocketProvider.h in Headers */,
35339
				46D0004026A0FEB300D1BF1E /* SubmitEvent.h in Headers */,
35332
				510D4A34103165EE0049EA54 /* SocketStreamError.h in Headers */,
35340
				510D4A34103165EE0049EA54 /* SocketStreamError.h in Headers */,
35333
				510D4A37103165EE0049EA54 /* SocketStreamHandle.h in Headers */,
35341
				510D4A37103165EE0049EA54 /* SocketStreamHandle.h in Headers */,
35334
				510D4A38103165EE0049EA54 /* SocketStreamHandleClient.h in Headers */,
35342
				510D4A38103165EE0049EA54 /* SocketStreamHandleClient.h in Headers */,
- a/Source/WebCore/dom/EventNames.in +1 lines
Lines 35-40 PageTransitionEvent a/Source/WebCore/dom/EventNames.in_sec1
35
PopStateEvent
35
PopStateEvent
36
ProgressEvent
36
ProgressEvent
37
PromiseRejectionEvent
37
PromiseRejectionEvent
38
SubmitEvent
38
TextEvent
39
TextEvent
39
TransitionEvent
40
TransitionEvent
40
UIEvent
41
UIEvent
- a/Source/WebCore/html/HTMLFormElement.cpp -1 / +2 lines
Lines 55-60 a/Source/WebCore/html/HTMLFormElement.cpp_sec1
55
#include "RuntimeEnabledFeatures.h"
55
#include "RuntimeEnabledFeatures.h"
56
#include "ScriptDisallowedScope.h"
56
#include "ScriptDisallowedScope.h"
57
#include "Settings.h"
57
#include "Settings.h"
58
#include "SubmitEvent.h"
58
#include "UserGestureIndicator.h"
59
#include "UserGestureIndicator.h"
59
#include <limits>
60
#include <limits>
60
#include <wtf/IsoMallocInlines.h>
61
#include <wtf/IsoMallocInlines.h>
Lines 289-295 void HTMLFormElement::submitIfPossible(Event* event, HTMLFormControlElement* sub a/Source/WebCore/html/HTMLFormElement.cpp_sec2
289
290
290
    auto protectedThis = makeRef(*this);
291
    auto protectedThis = makeRef(*this);
291
292
292
    auto submitEvent = Event::create(eventNames().submitEvent, Event::CanBubble::Yes, Event::IsCancelable::Yes);
293
    auto submitEvent = SubmitEvent::create(submitter);
293
    dispatchEvent(submitEvent);
294
    dispatchEvent(submitEvent);
294
295
295
    // Event handling could have resulted in m_shouldSubmit becoming true as a side effect, too.
296
    // Event handling could have resulted in m_shouldSubmit becoming true as a side effect, too.
- a/Source/WebCore/html/SubmitEvent.cpp +59 lines
Line 0 a/Source/WebCore/html/SubmitEvent.cpp_sec1
1
/*
2
 * Copyright (C) 2021 Apple Inc. All rights reserved.
3
 *
4
 * Redistribution and use in source and binary forms, with or without
5
 * modification, are permitted provided that the following conditions
6
 * are met:
7
 * 1. Redistributions of source code must retain the above copyright
8
 *    notice, this list of conditions and the following disclaimer.
9
 * 2. Redistributions in binary form must reproduce the above copyright
10
 *    notice, this list of conditions and the following disclaimer in the
11
 *    documentation and/or other materials provided with the distribution.
12
 *
13
 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
14
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
15
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16
 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
17
 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
18
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
19
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
21
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
23
 * THE POSSIBILITY OF SUCH DAMAGE.
24
 */
25
26
#include "config.h"
27
#include "SubmitEvent.h"
28
29
#include "EventNames.h"
30
#include "HTMLElement.h"
31
32
namespace WebCore {
33
34
Ref<SubmitEvent> SubmitEvent::create(const WTF::AtomString& type, Init&& init)
35
{
36
    return adoptRef(*new SubmitEvent(type, WTFMove(init)));
37
}
38
39
Ref<SubmitEvent> SubmitEvent::create(RefPtr<HTMLElement>&& submitter)
40
{
41
    return adoptRef(*new SubmitEvent(WTFMove(submitter)));
42
}
43
44
SubmitEvent::SubmitEvent(const AtomString& type, Init&& init)
45
    : Event(type, init, IsTrusted::No)
46
    , m_submitter(WTFMove(init.submitter))
47
{ }
48
49
SubmitEvent::SubmitEvent(RefPtr<HTMLElement>&& submitter)
50
    : Event(eventNames().submitEvent, CanBubble::Yes, IsCancelable::Yes)
51
    , m_submitter(WTFMove(submitter))
52
{ }
53
54
EventInterface SubmitEvent::eventInterface() const
55
{
56
    return SubmitEventInterfaceType;
57
}
58
59
} // namespace WebCore
- a/Source/WebCore/html/SubmitEvent.h +56 lines
Line 0 a/Source/WebCore/html/SubmitEvent.h_sec1
1
/*
2
 * Copyright (C) 2021 Apple Inc. All rights reserved.
3
 *
4
 * Redistribution and use in source and binary forms, with or without
5
 * modification, are permitted provided that the following conditions
6
 * are met:
7
 * 1. Redistributions of source code must retain the above copyright
8
 *    notice, this list of conditions and the following disclaimer.
9
 * 2. Redistributions in binary form must reproduce the above copyright
10
 *    notice, this list of conditions and the following disclaimer in the
11
 *    documentation and/or other materials provided with the distribution.
12
 *
13
 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
14
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
15
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16
 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
17
 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
18
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
19
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
21
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
23
 * THE POSSIBILITY OF SUCH DAMAGE.
24
 */
25
26
#pragma once
27
28
#include "Event.h"
29
#include "EventInit.h"
30
#include <wtf/Forward.h>
31
32
namespace WebCore {
33
34
class HTMLElement;
35
36
class SubmitEvent : public Event {
37
public:
38
    struct Init : EventInit {
39
        RefPtr<HTMLElement> submitter;
40
    };
41
42
    static Ref<SubmitEvent> create(const AtomString& type, Init&& init);
43
    static Ref<SubmitEvent> create(RefPtr<HTMLElement>&& submitter);
44
45
    HTMLElement* submitter() const { return m_submitter.get(); }
46
47
private:
48
    SubmitEvent(const AtomString& type, Init&&);
49
    explicit SubmitEvent(RefPtr<HTMLElement>&& submitter);
50
51
    EventInterface eventInterface() const final;
52
53
    RefPtr<HTMLElement> m_submitter;
54
};
55
56
} // namespace WebCore
- a/Source/WebCore/html/SubmitEvent.idl +36 lines
Line 0 a/Source/WebCore/html/SubmitEvent.idl_sec1
1
/*
2
 * Copyright (C) 2021 Apple Inc.  All rights reserved.
3
 *
4
 * Redistribution and use in source and binary forms, with or without
5
 * modification, are permitted provided that the following conditions
6
 * are met:
7
 * 1. Redistributions of source code must retain the above copyright
8
 *    notice, this list of conditions and the following disclaimer.
9
 * 2. Redistributions in binary form must reproduce the above copyright
10
 *    notice, this list of conditions and the following disclaimer in the
11
 *    documentation and/or other materials provided with the distribution.
12
 *
13
 * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
14
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
17
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20
 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21
 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24
 */
25
26
[
27
    Exposed=Window
28
] interface SubmitEvent : Event {
29
    constructor(DOMString type, optional SubmitEventInit eventInitDict);
30
31
    readonly attribute HTMLElement? submitter;
32
};
33
34
dictionary SubmitEventInit : EventInit {
35
    HTMLElement? submitter = null;
36
};

Return to Bug 202978