[Webkit-unassigned] [Bug 235223] New: iOS 15: getSelection() is successful rarely, on onclick event.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jan 14 01:04:34 PST 2022
https://bugs.webkit.org/show_bug.cgi?id=235223
Bug ID: 235223
Summary: iOS 15: getSelection() is successful rarely, on
onclick event.
Product: WebKit
Version: Safari 15
Hardware: iPhone / iPad
OS: iOS 15
Status: NEW
Severity: Normal
Priority: P2
Component: DOM
Assignee: webkit-unassigned at lists.webkit.org
Reporter: baba at bpsinc.jp
# Steps to reproduce:
1. Open https://jsbin.com/pubipidaxu/edit?html,js,output by Safari on iOS 15.
2. Long-press "Hello". Make sure the text is selected.
3. Touch "click" button.
# Expected behavior:
Alert with text "Hello" is shown. (I'm not care whether the selection remains or not.)
# Actual behaviro:
In most cases, alert with no text is shown. Sometimes works correctly.
# Note
On iOS 14, getSelection() can always get the text. The selection seems remain though it become invisible at the click.
Other browsers such as Android Chrome and desktop browsers do not have this issue: the selection remains after the click.
--
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/20220114/2958314f/attachment.htm>
More information about the webkit-unassigned
mailing list