Summary: | Native caret shows up alongside the page's caret when requesting desktop site on jsfiddle.net | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Wenson Hsieh <wenson_hsieh> | ||||||||||||
Component: | HTML Editing | Assignee: | Wenson Hsieh <wenson_hsieh> | ||||||||||||
Status: | RESOLVED FIXED | ||||||||||||||
Severity: | Normal | CC: | bdakin, commit-queue, ews-watchlist, megan_gardner, thorton, webkit-bug-importer, wenson_hsieh | ||||||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||||||
Version: | WebKit Nightly Build | ||||||||||||||
Hardware: | iPhone / iPad | ||||||||||||||
OS: | iOS 12 | ||||||||||||||
Attachments: |
|
Description
Wenson Hsieh
2019-01-06 14:12:33 PST
Created attachment 358472 [details]
Patch
Created attachment 358478 [details]
Patch
Comment on attachment 358478 [details] Patch Attachment 358478 [details] did not pass win-ews (win): Output: https://webkit-queues.webkit.org/results/10654743 New failing tests: js/dom/custom-constructors.html Created attachment 358480 [details]
Archive of layout-test-results from ews202 for win-future
The attached test failures were seen while running run-webkit-tests on the win-ews.
Bot: ews202 Port: win-future Platform: CYGWIN_NT-6.1-2.10.0-0.325-5-3-x86_64-64bit
Created attachment 358499 [details]
Patch
Comment on attachment 358499 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=358499&action=review > Source/WebKit/ChangeLog:14 > + When requesting desktop site on iOS, both CodeMirror's caret and the native iOS caret are shown because the > + caret is rendered in the UI process on iOS, whereas on macOS, the entire textarea (along with the caret) are it's really about the selection being pulled out of z-order, right? (everything is "rendered in the UI process" in some sense) > Source/WebKit/UIProcess/ios/WKContentViewInteraction.h:156 > - FocusedElementIsTransparent = 1 << 0, > + FocusedElementIsNotVisible = 1 << 0, Is this promising too much? There are many kinds of occlusion it doesn't cover. Comment on attachment 358499 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=358499&action=review >> Source/WebKit/ChangeLog:14 >> + caret is rendered in the UI process on iOS, whereas on macOS, the entire textarea (along with the caret) are > > it's really about the selection being pulled out of z-order, right? (everything is "rendered in the UI process" in some sense) That's right, it's about selection UI being rendered as a platform overlay on top of all page content. I'll reword the ChangeLog to make this clearer. >> Source/WebKit/UIProcess/ios/WKContentViewInteraction.h:156 >> + FocusedElementIsNotVisible = 1 << 0, > > Is this promising too much? There are many kinds of occlusion it doesn't cover. 👍 I'll change this from FocusedElementIsNotVisible to FocusedElementIsTransparentOrFullyClipped. It's true that this still doesn't cover many cases of occlusion, but at the very least if this flag is set, we know the focused element must be hidden from the user. Created attachment 358506 [details]
Patch for landing
Comment on attachment 358506 [details] Patch for landing Clearing flags on attachment: 358506 Committed r239685: <https://trac.webkit.org/changeset/239685> |