[webkit-changes] [WebKit/WebKit] 274608: [macOS] Expose DeviceMotionEvent / DeviceOrientati...
Chris Dumez
noreply at github.com
Fri May 19 13:28:11 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2746089d71f266790dc9ea4a93a62472ecfd910f
https://github.com/WebKit/WebKit/commit/2746089d71f266790dc9ea4a93a62472ecfd910f
Author: Chris Dumez <cdumez at apple.com>
Date: 2023-05-19 (Fri, 19 May 2023)
Changed paths:
M LayoutTests/http/tests/events/device-orientation-motion-insecure-context.html
M LayoutTests/http/tests/events/device-orientation-motion-non-secure-context.html
M LayoutTests/http/tests/events/device-orientation-motion-secure-context.html
M LayoutTests/imported/w3c/web-platform-tests/dom/events/EventTarget-dispatchEvent-expected.txt
M LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Document-createEvent.https-expected.txt
A LayoutTests/platform/glib/imported/w3c/web-platform-tests/dom/events/EventTarget-dispatchEvent-expected.txt
A LayoutTests/platform/glib/imported/w3c/web-platform-tests/dom/nodes/Document-createEvent.https-expected.txt
M Source/WTF/wtf/PlatformEnableCocoa.h
M Source/WebCore/dom/DeviceOrientationClient.h
M Source/WebCore/dom/DeviceOrientationController.cpp
M Source/WebKitLegacy/WebKitLegacy.xcodeproj/project.pbxproj
R Source/WebKitLegacy/mac/WebCoreSupport/WebDeviceOrientationClient.h
R Source/WebKitLegacy/mac/WebCoreSupport/WebDeviceOrientationClient.mm
M Source/WebKitLegacy/mac/WebView/WebView.mm
Log Message:
-----------
[macOS] Expose DeviceMotionEvent / DeviceOrientationEvent on the global Window object
https://bugs.webkit.org/show_bug.cgi?id=256994
Reviewed by Brent Fulgham.
Expose DeviceMotionEvent / DeviceOrientationEvent on the global Window object
on macOS. Historically, we've only exposed the event types on iOS since we only
fire those events on iOS. However, Chrome and Firefox expose those event types
on desktop even though they don't fire them. Exposing the event types doesn't
hurt so align with other browsers.
* LayoutTests/imported/w3c/web-platform-tests/dom/events/EventTarget-dispatchEvent-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Document-createEvent.https-expected.txt:
* Source/WTF/wtf/PlatformEnableCocoa.h:
Canonical link: https://commits.webkit.org/264271@main
More information about the webkit-changes
mailing list