[Webkit-unassigned] [Bug 172745] New: [Mac] Web content unable to properly prevent cursor auto-hiding on macOS

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 30 23:33:26 PDT 2017


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

            Bug ID: 172745
           Summary: [Mac] Web content unable to properly prevent cursor
                    auto-hiding on macOS
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: birunthan at mohanathas.com
                CC: ap at webkit.org, mitz at webkit.org

Safari hides the cursor for most keys if `event.preventDefault()` is called: https://github.com/WebKit/webkit/blob/dfc70eed6820b5c5c1fac1fecfd3e4e4dbfdee8f/Source/WebKit2/UIProcess/Cocoa/WebViewImpl.mm#L4220

For some other keys (e.g. Escape), the default behaviour always hides the cursor: https://github.com/WebKit/webkit/blob/5277f6fb92b0c03958265d24a7692142f7bdeaf8/Source/WebKit/mac/WebView/WebFrameView.mm#L1095

This means that web content is unable to *both* prevent the default behaviour *and* keep the cursor visible. This is problematic for e.g. design tools, which rely heavily on a keyboard centric workflow with many shortcuts for which the default behaviour needs to be prevented.

Chrome had a similar issue, see https://bugs.chromium.org/p/chromium/issues/detail?id=713202

The Chrome solution was to hide the cursor on input only if a textual input type is in focus. Firefox is planning a similar fix. Ideally Safari should match the other browsers for web compatibility.

-- 
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/20170531/f57644b3/attachment-0001.html>


More information about the webkit-unassigned mailing list