Diff
Modified: trunk/LayoutTests/ChangeLog (244420 => 244421)
--- trunk/LayoutTests/ChangeLog 2019-04-18 06:39:35 UTC (rev 244420)
+++ trunk/LayoutTests/ChangeLog 2019-04-18 06:41:22 UTC (rev 244421)
@@ -1,3 +1,14 @@
+2019-04-17 Antoine Quint <[email protected]>
+
+ [Pointer Events WPT] Unskip imported/w3c/web-platform-tests/pointerevents/pointerevent_on_event_handlers.html
+ https://bugs.webkit.org/show_bug.cgi?id=197006
+
+ Reviewed by Antti Koivisto.
+
+ * js/dom/dom-static-property-for-in-iteration-expected.txt:
+ * platform/mac-wk2/js/dom/dom-static-property-for-in-iteration-expected.txt:
+ * platform/mac/TestExpectations:
+
2019-04-17 Fujii Hironori <[email protected]>
Unreviewed test gardening for WinCairo port
Modified: trunk/LayoutTests/imported/w3c/ChangeLog (244420 => 244421)
--- trunk/LayoutTests/imported/w3c/ChangeLog 2019-04-18 06:39:35 UTC (rev 244420)
+++ trunk/LayoutTests/imported/w3c/ChangeLog 2019-04-18 06:41:22 UTC (rev 244421)
@@ -1,5 +1,14 @@
2019-04-17 Antoine Quint <[email protected]>
+ [Pointer Events WPT] Unskip imported/w3c/web-platform-tests/pointerevents/pointerevent_on_event_handlers.html
+ https://bugs.webkit.org/show_bug.cgi?id=197006
+
+ Reviewed by Antti Koivisto.
+
+ * web-platform-tests/pointerevents/pointerevent_on_event_handlers-expected.txt: Added.
+
+2019-04-17 Antoine Quint <[email protected]>
+
[Pointer Events WPT] Update WPT tests and provide macOS testdriver
https://bugs.webkit.org/show_bug.cgi?id=197011
<rdar://problem/49976553>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/pointerevents/pointerevent_on_event_handlers-expected.txt (0 => 244421)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/pointerevents/pointerevent_on_event_handlers-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/pointerevents/pointerevent_on_event_handlers-expected.txt 2019-04-18 06:41:22 UTC (rev 244421)
@@ -0,0 +1,36 @@
+PointerEvent: Dispatch custom event
+
+Test Description: This test checks if on pointer event handlers through attributes works properly using synthetic pointerevents. For valid results, this test must be run without generating real (trusted) events on the black rectangle below.
+
+
+PASS The default value of onpointerdown is always null
+PASS The onpointerdown content attribute must be compiled into the onpointerdown property
+PASS dispatching a pointerdown event must trigger element.onpointerdown
+PASS The default value of onpointerup is always null
+PASS The onpointerup content attribute must be compiled into the onpointerup property
+PASS dispatching a pointerup event must trigger element.onpointerup
+PASS The default value of onpointercancel is always null
+PASS The onpointercancel content attribute must be compiled into the onpointercancel property
+PASS dispatching a pointercancel event must trigger element.onpointercancel
+PASS The default value of onpointermove is always null
+PASS The onpointermove content attribute must be compiled into the onpointermove property
+PASS dispatching a pointermove event must trigger element.onpointermove
+PASS The default value of onpointerover is always null
+PASS The onpointerover content attribute must be compiled into the onpointerover property
+PASS dispatching a pointerover event must trigger element.onpointerover
+PASS The default value of onpointerout is always null
+PASS The onpointerout content attribute must be compiled into the onpointerout property
+PASS dispatching a pointerout event must trigger element.onpointerout
+PASS The default value of onpointerenter is always null
+PASS The onpointerenter content attribute must be compiled into the onpointerenter property
+PASS dispatching a pointerenter event must trigger element.onpointerenter
+PASS The default value of onpointerleave is always null
+PASS The onpointerleave content attribute must be compiled into the onpointerleave property
+PASS dispatching a pointerleave event must trigger element.onpointerleave
+PASS The default value of ongotpointercapture is always null
+PASS The ongotpointercapture content attribute must be compiled into the ongotpointercapture property
+PASS dispatching a gotpointercapture event must trigger element.ongotpointercapture
+PASS The default value of onlostpointercapture is always null
+PASS The onlostpointercapture content attribute must be compiled into the onlostpointercapture property
+PASS dispatching a lostpointercapture event must trigger element.onlostpointercapture
+
Modified: trunk/LayoutTests/js/dom/dom-static-property-for-in-iteration-expected.txt (244420 => 244421)
--- trunk/LayoutTests/js/dom/dom-static-property-for-in-iteration-expected.txt 2019-04-18 06:39:35 UTC (rev 244420)
+++ trunk/LayoutTests/js/dom/dom-static-property-for-in-iteration-expected.txt 2019-04-18 06:41:22 UTC (rev 244421)
@@ -119,6 +119,16 @@
PASS a["onanimationiteration"] is null
PASS a["onanimationstart"] is null
PASS a["onanimationcancel"] is null
+PASS a["ongotpointercapture"] is null
+PASS a["onlostpointercapture"] is null
+PASS a["onpointerdown"] is null
+PASS a["onpointermove"] is null
+PASS a["onpointerup"] is null
+PASS a["onpointercancel"] is null
+PASS a["onpointerover"] is null
+PASS a["onpointerout"] is null
+PASS a["onpointerenter"] is null
+PASS a["onpointerleave"] is null
PASS a["namespaceURI"] is http://www.w3.org/1999/xhtml
PASS a["prefix"] is null
PASS a["localName"] is a
Modified: trunk/LayoutTests/platform/mac/TestExpectations (244420 => 244421)
--- trunk/LayoutTests/platform/mac/TestExpectations 2019-04-18 06:39:35 UTC (rev 244420)
+++ trunk/LayoutTests/platform/mac/TestExpectations 2019-04-18 06:41:22 UTC (rev 244421)
@@ -1881,7 +1881,6 @@
webkit.org/b/197004 imported/w3c/web-platform-tests/pointerevents/pointerevent_lostpointercapture_for_disconnected_node.html [ Skip ]
webkit.org/b/197005 imported/w3c/web-platform-tests/pointerevents/pointerevent_lostpointercapture_is_first.html [ Skip ]
-webkit.org/b/197006 imported/w3c/web-platform-tests/pointerevents/pointerevent_on_event_handlers.html [ Skip ]
webkit.org/b/197008 imported/w3c/web-platform-tests/pointerevents/pointerevent_suppress_compat_events_on_drag_mouse.html [ Pass Failure ]
webkit.org/b/197007 imported/w3c/web-platform-tests/pointerevents/pointerlock/pointerevent_coordinates_when_locked.html [ Skip ]
webkit.org/b/197009 imported/w3c/web-platform-tests/pointerevents/pointerevent_setpointercapture_invalid_pointerid.html [ Failure Pass ]
Modified: trunk/LayoutTests/platform/mac-wk2/js/dom/dom-static-property-for-in-iteration-expected.txt (244420 => 244421)
--- trunk/LayoutTests/platform/mac-wk2/js/dom/dom-static-property-for-in-iteration-expected.txt 2019-04-18 06:39:35 UTC (rev 244420)
+++ trunk/LayoutTests/platform/mac-wk2/js/dom/dom-static-property-for-in-iteration-expected.txt 2019-04-18 06:41:22 UTC (rev 244421)
@@ -120,6 +120,16 @@
PASS a["onanimationiteration"] is null
PASS a["onanimationstart"] is null
PASS a["onanimationcancel"] is null
+PASS a["ongotpointercapture"] is null
+PASS a["onlostpointercapture"] is null
+PASS a["onpointerdown"] is null
+PASS a["onpointermove"] is null
+PASS a["onpointerup"] is null
+PASS a["onpointercancel"] is null
+PASS a["onpointerover"] is null
+PASS a["onpointerout"] is null
+PASS a["onpointerenter"] is null
+PASS a["onpointerleave"] is null
PASS a["namespaceURI"] is http://www.w3.org/1999/xhtml
PASS a["prefix"] is null
PASS a["localName"] is a
Modified: trunk/Source/WebCore/ChangeLog (244420 => 244421)
--- trunk/Source/WebCore/ChangeLog 2019-04-18 06:39:35 UTC (rev 244420)
+++ trunk/Source/WebCore/ChangeLog 2019-04-18 06:41:22 UTC (rev 244421)
@@ -1,3 +1,17 @@
+2019-04-17 Antoine Quint <[email protected]>
+
+ [Pointer Events WPT] Unskip imported/w3c/web-platform-tests/pointerevents/pointerevent_on_event_handlers.html
+ https://bugs.webkit.org/show_bug.cgi?id=197006
+
+ Reviewed by Antti Koivisto.
+
+ Add support for on* HTML attributes and JS properties for pointer events.
+
+ * dom/GlobalEventHandlers.idl:
+ * html/HTMLAttributeNames.in:
+ * html/HTMLElement.cpp:
+ (WebCore::HTMLElement::createEventHandlerNameMap):
+
2019-04-17 Timothy Hatcher <[email protected]>
Standardize the `<meta name="color-scheme">` separator.
Modified: trunk/Source/WebCore/dom/GlobalEventHandlers.idl (244420 => 244421)
--- trunk/Source/WebCore/dom/GlobalEventHandlers.idl 2019-04-18 06:39:35 UTC (rev 244420)
+++ trunk/Source/WebCore/dom/GlobalEventHandlers.idl 2019-04-18 06:41:22 UTC (rev 244421)
@@ -107,6 +107,18 @@
attribute EventHandler onanimationstart;
attribute EventHandler onanimationcancel;
+ // Event handlers from Pointer Events API (https://w3c.github.io/pointerevents/#extensions-to-the-globaleventhandlers-mixin)
+ attribute EventHandler ongotpointercapture;
+ attribute EventHandler onlostpointercapture;
+ attribute EventHandler onpointerdown;
+ attribute EventHandler onpointermove;
+ attribute EventHandler onpointerup;
+ attribute EventHandler onpointercancel;
+ attribute EventHandler onpointerover;
+ attribute EventHandler onpointerout;
+ attribute EventHandler onpointerenter;
+ attribute EventHandler onpointerleave;
+
// Additions that are not yet part of the standard.
[NotEnumerable] attribute EventHandler onsearch;
Modified: trunk/Source/WebCore/html/HTMLAttributeNames.in (244420 => 244421)
--- trunk/Source/WebCore/html/HTMLAttributeNames.in 2019-04-18 06:39:35 UTC (rev 244420)
+++ trunk/Source/WebCore/html/HTMLAttributeNames.in 2019-04-18 06:41:22 UTC (rev 244421)
@@ -249,11 +249,13 @@
ongesturestart
ongesturechange
ongestureend
+ongotpointercapture
onlanguagechange
onload
onloadeddata
onloadedmetadata
onloadstart
+onlostpointercapture
onmessage
onmousedown
onmouseenter
@@ -272,6 +274,14 @@
onpause
onplay
onplaying
+onpointerdown
+onpointermove
+onpointerup
+onpointercancel
+onpointerover
+onpointerout
+onpointerenter
+onpointerleave
onpopstate
onprogress
onratechange
Modified: trunk/Source/WebCore/html/HTMLElement.cpp (244420 => 244421)
--- trunk/Source/WebCore/html/HTMLElement.cpp 2019-04-18 06:39:35 UTC (rev 244420)
+++ trunk/Source/WebCore/html/HTMLElement.cpp 2019-04-18 06:41:22 UTC (rev 244421)
@@ -273,6 +273,7 @@
&ongesturechangeAttr.get(),
&ongestureendAttr.get(),
&ongesturestartAttr.get(),
+ &ongotpointercaptureAttr.get(),
&oninputAttr.get(),
&oninvalidAttr.get(),
&onkeydownAttr.get(),
@@ -282,6 +283,7 @@
&onloadeddataAttr.get(),
&onloadedmetadataAttr.get(),
&onloadstartAttr.get(),
+ &onlostpointercaptureAttr.get(),
&onmousedownAttr.get(),
&onmouseenterAttr.get(),
&onmouseleaveAttr.get(),
@@ -294,6 +296,14 @@
&onpauseAttr.get(),
&onplayAttr.get(),
&onplayingAttr.get(),
+ &onpointerdownAttr.get(),
+ &onpointermoveAttr.get(),
+ &onpointerupAttr.get(),
+ &onpointercancelAttr.get(),
+ &onpointeroverAttr.get(),
+ &onpointeroutAttr.get(),
+ &onpointerenterAttr.get(),
+ &onpointerleaveAttr.get(),
&onprogressAttr.get(),
&onratechangeAttr.get(),
&onresetAttr.get(),