RESOLVED CONFIGURATION CHANGED235223
REGRESSION(iOS 15): getSelection() is successful rarely, on onclick event
https://bugs.webkit.org/show_bug.cgi?id=235223
Summary REGRESSION(iOS 15): getSelection() is successful rarely, on onclick event
Takao Baba
Reported 2022-01-14 01:04:34 PST
# 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.
Attachments
Radar WebKit Bug Importer
Comment 1 2022-01-21 01:05:16 PST
Ryosuke Niwa
Comment 2 2023-03-23 18:27:39 PDT
This seems to work on iOS 16.4.
Note You need to log in before you can comment on or make changes to this bug.