[webkit-changes] [WebKit/WebKit] 9c9f8f: Gamepad's getGamepads() should return an empty arr...
Marcos Cáceres
noreply at github.com
Mon Dec 18 15:02:40 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9c9f8fb6a98d5c005105f19b3930b022b5fafaec
https://github.com/WebKit/WebKit/commit/9c9f8fb6a98d5c005105f19b3930b022b5fafaec
Author: Marcos Caceres <marcos at marcosc.com>
Date: 2023-12-18 (Mon, 18 Dec 2023)
Changed paths:
A LayoutTests/gamepad/gamepad-non-fully-active-expected.txt
A LayoutTests/gamepad/gamepad-non-fully-active.html
M Source/WebCore/Modules/gamepad/NavigatorGamepad.cpp
Log Message:
-----------
Gamepad's getGamepads() should return an empty array when not fully active.
https://bugs.webkit.org/show_bug.cgi?id=266450
rdar://119702262
Reviewed by Youenn Fablet.
Now checks if document is fully active.
Aligns with other browsers, specially Firefox, and the spec.
* LayoutTests/gamepad/gamepad-non-fully-active-expected.txt: Added.
* LayoutTests/gamepad/gamepad-non-fully-active.html: Added.
* Source/WebCore/Modules/gamepad/NavigatorGamepad.cpp:
(WebCore::NavigatorGamepad::getGamepads):
Canonical link: https://commits.webkit.org/272245@main
More information about the webkit-changes
mailing list