Changeset 268745 in webkit
- Timestamp:
- Oct 20, 2020, 10:24:38 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 13 edited
- 1 copied
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/dom/event-attribute-availability-expected.txt (modified) (1 diff)
-
LayoutTests/fast/dom/event-handler-attributes-expected.txt (modified) (14 diffs)
-
LayoutTests/fast/dom/event-handler-attributes.html (modified) (3 diffs)
-
Source/WebCore/CMakeLists.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/DerivedSources-input.xcfilelist (modified) (1 diff)
-
Source/WebCore/DerivedSources-output.xcfilelist (modified) (1 diff)
-
Source/WebCore/DerivedSources.make (modified) (1 diff)
-
Source/WebCore/WebCore.xcodeproj/project.pbxproj (modified) (2 diffs)
-
Source/WebCore/dom/Document+Selection.idl (modified) (1 diff)
-
Source/WebCore/dom/Element.idl (modified) (1 diff)
-
Source/WebCore/dom/GlobalEventHandlers+Selection.idl (copied) (copied from trunk/Source/WebCore/dom/Document+Selection.idl ) (1 diff)
-
Source/WebCore/page/DOMWindow.idl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r268741 r268745 1 2020-10-20 Rob Buis <rbuis@igalia.com> 2 3 Introduce Selection specific mixin of GlobalEventHandlers 4 https://bugs.webkit.org/show_bug.cgi?id=217248 5 6 Reviewed by Sam Weinig. 7 8 Adapt test to GlobalEventHandlers change. 9 10 * fast/dom/event-attribute-availability-expected.txt: 11 * fast/dom/event-handler-attributes-expected.txt: 12 * fast/dom/event-handler-attributes.html: 13 1 14 2020-10-20 Antti Koivisto <antti@apple.com> 2 15 -
trunk/LayoutTests/fast/dom/event-attribute-availability-expected.txt
r168358 r268745 161 161 PASS 'onreset' in window is true 162 162 PASS 'onsearch' in window is true 163 FAIL 'onselectstart' in window should be true. Was false. 163 PASS 'onselectstart' in window is true 164 164 165 165 Test Text Node -
trunk/LayoutTests/fast/dom/event-handler-attributes-expected.txt
r267893 r268745 66 66 PASS testScriptAttribute(window, "seeking") is "window" 67 67 PASS testScriptAttribute(window, "select") is "window" 68 PASS testScriptAttribute(window, "selectionchange") is "window" 69 PASS testScriptAttribute(window, "selectstart") is "window" 68 70 PASS testScriptAttribute(window, "stalled") is "window" 69 71 PASS testScriptAttribute(window, "storage") is "window" … … 94 96 PASS testScriptAttribute(window, "paste") is "none" 95 97 PASS testScriptAttribute(window, "readystatechange") is "none" 96 PASS testScriptAttribute(window, "selectionchange") is "none"97 PASS testScriptAttribute(window, "selectstart") is "none"98 98 99 99 Event names we expect to be able to set on the document … … 253 253 PASS testElementAttribute(element, "seeking") is "target" 254 254 PASS testElementAttribute(element, "select") is "target" 255 FAIL testElementAttribute(element, "selectionchange") should be target. Was script: target; content: none. 255 256 PASS testElementAttribute(element, "selectstart") is "target" 256 257 PASS testElementAttribute(element, "stalled") is "target" … … 279 280 PASS testElementAttribute(element, "popstate") is "none" 280 281 PASS testElementAttribute(element, "readystatechange") is "none" 281 PASS testElementAttribute(element, "selectionchange") is "none"282 282 PASS testElementAttribute(element, "storage") is "none" 283 283 PASS testElementAttribute(element, "unload") is "none" … … 346 346 PASS testElementAttribute(inputElement, "seeking") is "target" 347 347 PASS testElementAttribute(inputElement, "select") is "target" 348 FAIL testElementAttribute(inputElement, "selectionchange") should be target. Was script: target; content: none. 348 349 PASS testElementAttribute(inputElement, "selectstart") is "target" 349 350 PASS testElementAttribute(inputElement, "stalled") is "target" … … 372 373 PASS testElementAttribute(inputElement, "popstate") is "none" 373 374 PASS testElementAttribute(inputElement, "readystatechange") is "none" 374 PASS testElementAttribute(inputElement, "selectionchange") is "none"375 375 PASS testElementAttribute(inputElement, "storage") is "none" 376 376 PASS testElementAttribute(inputElement, "unload") is "none" … … 439 439 PASS testElementAttribute(audioElement, "seeking") is "target" 440 440 PASS testElementAttribute(audioElement, "select") is "target" 441 FAIL testElementAttribute(audioElement, "selectionchange") should be target. Was script: target; content: none. 441 442 PASS testElementAttribute(audioElement, "selectstart") is "target" 442 443 PASS testElementAttribute(audioElement, "stalled") is "target" … … 465 466 PASS testElementAttribute(audioElement, "popstate") is "none" 466 467 PASS testElementAttribute(audioElement, "readystatechange") is "none" 467 PASS testElementAttribute(audioElement, "selectionchange") is "none"468 468 PASS testElementAttribute(audioElement, "storage") is "none" 469 469 PASS testElementAttribute(audioElement, "unload") is "none" … … 532 532 PASS testElementAttribute(videoElement, "seeking") is "target" 533 533 PASS testElementAttribute(videoElement, "select") is "target" 534 FAIL testElementAttribute(videoElement, "selectionchange") should be target. Was script: target; content: none. 534 535 PASS testElementAttribute(videoElement, "selectstart") is "target" 535 536 PASS testElementAttribute(videoElement, "stalled") is "target" … … 558 559 PASS testElementAttribute(videoElement, "popstate") is "none" 559 560 PASS testElementAttribute(videoElement, "readystatechange") is "none" 560 PASS testElementAttribute(videoElement, "selectionchange") is "none"561 561 PASS testElementAttribute(videoElement, "storage") is "none" 562 562 PASS testElementAttribute(videoElement, "unload") is "none" … … 683 683 Event names we expect to be forwarded from <frameset> element to document) 684 684 685 FAIL testElementAttribute(framesetElement, "selectionchange") should be document. Was none.685 FAIL testElementAttribute(framesetElement, "selectionchange") should be document. Was script: target; content: none. 686 686 687 687 Non-forwarded event names on <frameset> element … … 823 823 PASS testElementAttribute(rectElement, "seeking") is "target" 824 824 PASS testElementAttribute(rectElement, "select") is "target" 825 FAIL testElementAttribute(rectElement, "selectionchange") should be target. Was script: target; content: none. 825 826 PASS testElementAttribute(rectElement, "selectstart") is "target" 826 827 PASS testElementAttribute(rectElement, "stalled") is "target" … … 849 850 PASS testElementAttribute(rectElement, "popstate") is "none" 850 851 PASS testElementAttribute(rectElement, "readystatechange") is "none" 851 PASS testElementAttribute(rectElement, "selectionchange") is "none"852 852 PASS testElementAttribute(rectElement, "storage") is "none" 853 853 PASS testElementAttribute(rectElement, "unload") is "none" … … 927 927 PASS testElementAttribute(nonHTMLElement, "select") is "none" 928 928 PASS testElementAttribute(nonHTMLElement, "selectionchange") is "none" 929 FAIL testElementAttribute(nonHTMLElement, "selectstart") should be none. Was script: target; content: none. 929 PASS testElementAttribute(nonHTMLElement, "selectstart") is "none" 930 930 PASS testElementAttribute(nonHTMLElement, "stalled") is "none" 931 931 PASS testElementAttribute(nonHTMLElement, "storage") is "none" -
trunk/LayoutTests/fast/dom/event-handler-attributes.html
r258697 r268745 65 65 "seeking", 66 66 "select", 67 "selectionchange", 68 "selectstart", 67 69 "stalled", 68 70 "submit", … … 99 101 "copy", 100 102 "cut", 101 "paste", 102 "selectstart", 103 "paste" 103 104 ]; 104 105 … … 111 112 112 113 const uniqueDocumentEvents = [ 113 "selectionchange",114 114 "readystatechange" 115 115 ]; -
trunk/Source/WebCore/CMakeLists.txt
r268735 r268745 829 829 dom/FocusEvent.idl 830 830 dom/GlobalEventHandlers+PointerEvents.idl 831 dom/GlobalEventHandlers+Selection.idl 831 832 dom/GlobalEventHandlers.idl 832 833 dom/HashChangeEvent.idl -
trunk/Source/WebCore/ChangeLog
r268741 r268745 1 2020-10-20 Rob Buis <rbuis@igalia.com> 2 3 Introduce Selection specific mixin of GlobalEventHandlers 4 https://bugs.webkit.org/show_bug.cgi?id=217248 5 6 Reviewed by Sam Weinig. 7 8 Introduce Selection specific mixin of GlobalEventHandlers [1] by 9 splitting out the interface from Document+Selection.idl. This 10 also means the HTMLBodyElement specific selectionchange IDL is 11 superflous and can be removed. 12 13 Behavior matches Chrome and Firefox. 14 15 Test: fast/dom/event-handler-attributes.html 16 17 [1] https://w3c.github.io/selection-api/#dom-globaleventhandlers 18 19 * CMakeLists.txt: 20 * DerivedSources-input.xcfilelist: 21 * DerivedSources-output.xcfilelist: 22 * DerivedSources.make: 23 * WebCore.xcodeproj/project.pbxproj: 24 * dom/Document+Selection.idl: 25 * dom/Element.idl: 26 * dom/GlobalEventHandlers+Selection.idl: Copied from Source/WebCore/dom/Document+Selection.idl. 27 1 28 2020-10-20 Antti Koivisto <antti@apple.com> 2 29 -
trunk/Source/WebCore/DerivedSources-input.xcfilelist
r268735 r268745 753 753 $(PROJECT_DIR)/dom/FocusEvent.idl 754 754 $(PROJECT_DIR)/dom/GlobalEventHandlers+PointerEvents.idl 755 $(PROJECT_DIR)/dom/GlobalEventHandlers+Selection.idl 755 756 $(PROJECT_DIR)/dom/GlobalEventHandlers.idl 756 757 $(PROJECT_DIR)/dom/HashChangeEvent.idl -
trunk/Source/WebCore/DerivedSources-output.xcfilelist
r268735 r268745 921 921 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSGlobalEventHandlers+PointerEvents.cpp 922 922 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSGlobalEventHandlers+PointerEvents.h 923 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSGlobalEventHandlers+Selection.cpp 924 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSGlobalEventHandlers+Selection.h 923 925 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSGlobalEventHandlers.cpp 924 926 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSGlobalEventHandlers.h -
trunk/Source/WebCore/DerivedSources.make
r268735 r268745 710 710 $(WebCore)/dom/FocusEvent.idl \ 711 711 $(WebCore)/dom/GlobalEventHandlers+PointerEvents.idl \ 712 $(WebCore)/dom/GlobalEventHandlers+Selection.idl \ 712 713 $(WebCore)/dom/GlobalEventHandlers.idl \ 713 714 $(WebCore)/dom/HashChangeEvent.idl \ -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r268735 r268745 7934 7934 44A28AAB12DFB8AC00AE923B /* MathMLElementFactory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MathMLElementFactory.h; path = DerivedSources/WebCore/MathMLElementFactory.h; sourceTree = BUILT_PRODUCTS_DIR; }; 7935 7935 44A28AAE12DFB8BF00AE923B /* MathMLNames.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MathMLNames.h; path = DerivedSources/WebCore/MathMLNames.h; sourceTree = BUILT_PRODUCTS_DIR; }; 7936 44BD2B36252779780055D95A /* GlobalEventHandlers+Selection.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = "GlobalEventHandlers+Selection.idl"; sourceTree = "<group>"; }; 7936 7937 44B38BF42536901A00A4458D /* SelectionRangeData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SelectionRangeData.h; sourceTree = "<group>"; }; 7937 7938 44B38BF925369A8800A4458D /* SelectionRangeData.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SelectionRangeData.cpp; sourceTree = "<group>"; }; … … 29674 29675 0720B09F14D3323500642955 /* GenericEventQueue.h */, 29675 29676 7C2D722E25083A3400539662 /* GlobalEventHandlers+PointerEvents.idl */, 29677 44BD2B36252779780055D95A /* GlobalEventHandlers+Selection.idl */, 29676 29678 7C4189AB1B07C170000FA757 /* GlobalEventHandlers.idl */, 29677 29679 E3BF19E622AF302A009C9926 /* HashChangeEvent.cpp */, -
trunk/Source/WebCore/dom/Document+Selection.idl
r267449 r268745 32 32 // We should get this resolved in the Selection API spec and move this to the correct IDL file. 33 33 DOMSelection? getSelection(); 34 35 // FIXME: Should be moved to GlobalEventHandlers (http://w3c.github.io/selection-api/#extensions-to-globaleventhandlers).36 [NotEnumerable] attribute EventHandler onselectstart; // FIXME: Should be enumerable.37 [NotEnumerable] attribute EventHandler onselectionchange; // FIXME: Should be enumerable.38 34 }; -
trunk/Source/WebCore/dom/Element.idl
r267953 r268745 74 74 // FIXME: Most of the following non-standard event handlers probably make more sense as part of the GlobalEventHandlers mixin. 75 75 76 // Event handler from Selection API (http://w3c.github.io/selection-api/#extensions-to-globaleventhandlers).77 [NotEnumerable] attribute EventHandler onselectstart; // FIXME: Should be enumerable.78 79 76 // Non-standard: Cannot find these in the latest specification (https://w3c.github.io/uievents/#events-focus-types). 80 77 [NotEnumerable] attribute EventHandler onfocusin; -
trunk/Source/WebCore/dom/GlobalEventHandlers+Selection.idl
r268741 r268745 24 24 */ 25 25 26 // https://w3c.github.io/selection-api/#extensions-to-document-interface 27 partial interface Document { 28 // FIXME: getSelection is currently defined only to be on Document in the Selection API spec 29 // https://w3c.github.io/selection-api/#extensions-to-document-interface, but 30 // previously had been defined to be on DocumentOrShadowRoot in the deprecated Shadow DOM spec 31 // https://w3c.github.io/webcomponents/spec/shadow/#extensions-to-the-documentorshadowroot-mixin. 32 // We should get this resolved in the Selection API spec and move this to the correct IDL file. 33 DOMSelection? getSelection(); 34 35 // FIXME: Should be moved to GlobalEventHandlers (http://w3c.github.io/selection-api/#extensions-to-globaleventhandlers). 36 [NotEnumerable] attribute EventHandler onselectstart; // FIXME: Should be enumerable. 37 [NotEnumerable] attribute EventHandler onselectionchange; // FIXME: Should be enumerable. 26 // https://w3c.github.io/selection-api/#extensions-to-globaleventhandlers-interface 27 partial interface mixin GlobalEventHandlers { 28 attribute EventHandler onselectstart; 29 attribute EventHandler onselectionchange; 38 30 }; -
trunk/Source/WebCore/page/DOMWindow.idl
r267935 r268745 131 131 WebKitPoint webkitConvertPointFromNodeToPage(optional Node? node = null, optional WebKitPoint? p = null); 132 132 133 134 133 // Internal operations, not exposed to the Web. 135 134 [MayThrowException, EnabledForWorld=shadowRootIsAlwaysOpen] NodeList collectMatchingElementsInFlatTree(Node scope, DOMString selectors);
Note:
See TracChangeset
for help on using the changeset viewer.