[Webkit-unassigned] [Bug 258068] New: transient activation duration of Clipboard.readText is not 5 secs
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jun 14 02:15:37 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=258068
Bug ID: 258068
Summary: transient activation duration of Clipboard.readText is
not 5 secs
Product: WebKit
Version: WebKit Nightly Build
Hardware: iPhone / iPad
OS: iOS 16
Status: NEW
Severity: Normal
Priority: P2
Component: New Bugs
Assignee: webkit-unassigned at lists.webkit.org
Reporter: jokeygeek at gmail.com
Created attachment 466690
--> https://bugs.webkit.org/attachment.cgi?id=466690&action=review
iOS Safari log of the use case in description
Use Case: During our testing of the Clipboard.readText WebAPI on iOS Safari with TouchEnd events, we observed that the Promise would be rejected by iOS Safari if the duration between the TouchStart and TouchEnd events exceeded approximately 750ms.
According to a relevant discussion on the W3C Github thread, the WebKit team has indicated that they will consider increasing the transient activation duration to 5 seconds.
- https://github.com/w3c/clipboard-apis/issues/75#issuecomment-1125155111
There is a related WebKit bug that has been closed, which addresses increasing the transient activation duration to 5 seconds.
- https://bugs.webkit.org/show_bug.cgi?id=239832 - increase transient activation duration to 5s
Based on our testing of the UserActivation WebAPI on iOS 16.4, which is the version that officially supports this API, we observed that the UserActivation.isActive sometimes would be false in the above use case, and event it sometimes would be true, the Promise from Clipboard.readText was still being rejected.
Considering the validity of the 5-second fix, shouldn't the Clipboard.readText WebAPI set isActive to true when the last user activation has not expired within 5 seconds?
Refer to the relevant section of the HTML specification for more details on transient activation:
- https://html.spec.whatwg.org/multipage/interaction.html#transient-activation
- "The transient activation state is considered expired if it becomes false because the transient activation duration time has elapsed since the last user activation. Note that it can become false even before the expiry time through an activation consumption."
I have attached the log from the ground test for checking the Clipboard API on iOS 16.4.
--
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/20230614/5cfd1385/attachment-0001.htm>
More information about the webkit-unassigned
mailing list