[Webkit-unassigned] [Bug 249223] New: preventDefault() doesn't block selection on iOS

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 13 07:17:00 PST 2022


https://bugs.webkit.org/show_bug.cgi?id=249223

            Bug ID: 249223
           Summary: preventDefault() doesn't block selection on iOS
           Product: WebKit
           Version: Safari 16
          Hardware: Unspecified
                OS: iOS 16
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: UI Events
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ossman at cendio.se

This issue is specific to Safari on iOS. It doesn't happen in Safari on macOS, nor in other browsers.

We (noVNC) have a canvas where we grab all UI events (keyboard, mouse, touch), pass them on to the remote system, and call preventDefault() to avoid both a local and remote action.

For the most part, this works well, but not for selections on iOS. There are two primary cases we've seen:

 * Pressing Cmd+A
 * Double-clicking

In these cases, we get a local selection in Safari as well, which means we get a blue overlay annoying the user.

We're trying to work around most of it by using -webkit-user-select, but it is difficult to handle all cases.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221213/02db39a1/attachment.htm>


More information about the webkit-unassigned mailing list