Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d606afcf01edb789f19727c895106feb7756f521
https://github.com/WebKit/WebKit/commit/d606afcf01edb789f19727c895106feb7756f521
Author: Tim Horton <[email protected]>
Date: 2025-06-24 (Tue, 24 Jun 2025)
Changed paths:
A
LayoutTests/fast/events/mouse-cursor-hidden-when-out-of-bounds-expected.txt
A LayoutTests/fast/events/mouse-cursor-hidden-when-out-of-bounds.html
M LayoutTests/fast/events/mouse-cursor.html
M LayoutTests/platform/ios/TestExpectations
M LayoutTests/platform/mac-site-isolation/TestExpectations
M LayoutTests/platform/wpe/TestExpectations
M Source/WebCore/page/EventHandler.cpp
Log Message:
-----------
Custom cursors should not appear outside the web content viewport
https://bugs.webkit.org/show_bug.cgi?id=294886
rdar://150695318
Reviewed by Abrar Rahman Protyasha and Aditya Keerthi.
Align with the other browsers, and hide custom cursors when they are outside of
the viewport.
This avoids the potential for confusion between the cursor and external UI.
Chrome and Firefox already behave this way.
* Source/WebCore/page/EventHandler.cpp:
(WebCore::EventHandler::selectCursor):
Restrict custom cursor presentation such that they only appear when fully insid
the viewport.
* LayoutTests/fast/events/mouse-cursor-hidden-when-out-of-bounds-expected.txt:
Added.
* LayoutTests/fast/events/mouse-cursor-hidden-when-out-of-bounds.html: Added.
Add a new test that verifies this behavior.
* LayoutTests/fast/events/mouse-cursor.html:
Adjust an existing test that didn't expect this behavior, by adding a margin.
* LayoutTests/platform/ios/TestExpectations:
* LayoutTests/platform/mac-site-isolation/TestExpectations:
* LayoutTests/platform/wpe/TestExpectations:
Propagate test expectations from mouse-cursor.html, which the new test was
copied from.
Canonical link: https://commits.webkit.org/296590@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes