-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Custom cursors should not appear outside the web content viewport #47103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom cursors should not appear outside the web content viewport #47103
Conversation
EWS run on previous version of this PR (hash fadde5d) |
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<script src="../../resources/js-test-pre.js"></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<script src="../../resources/js-test-pre.js"></script> | |
<script src="../../resources/js-test.js"></script> |
And no need for the -post.js below.
fadde5d
to
4ff1329
Compare
EWS run on previous version of this PR (hash 4ff1329) |
4ff1329
to
7aa2cb0
Compare
EWS run on current version of this PR (hash 7aa2cb0) |
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
7aa2cb0
to
d606afc
Compare
Committed 296590@main (d606afc): https://commits.webkit.org/296590@main Reviewed commits have been landed. Closing PR #47103 and removing active labels. |
d606afc
7aa2cb0