[Webkit-unassigned] [Bug 225559] Implement standards-compliant user gesture tracking

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 11 14:13:02 PDT 2021


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

--- Comment #3 from Ryosuke Niwa <rniwa at webkit.org> ---
(In reply to Ashley Gullen from comment #2)
> > Do you have a specific use case / test case where Safari's heuristics doesn't work?
> 
> - When copying to the clipboard, we have to do some async work to prepare
> the data to be copied. Currently we use FileReader APIs for that. The async
> work loses the user gesture and then the copy is blocked. In future we might
> want to use other APIs to prepare the data to read, such as posting to a
> worker to process off-thread, DecompressionStream, createImageBitmap,
> IndexedDB...

Funny you bring that up. As we mentioned in https://bugs.webkit.org/show_bug.cgi?id=222262, the correct way to use async clipboard API is to initiate the write immediately where each item will be written via promise.

> - We make a game engine that is capable of running entirely in a Web Worker
> with OffscreenCanvas. Input events are forwarded to the worker via
> postMessage() where we then run logic, and any DOM calls are forwarded back
> to the DOM via postMessage() again. This currently loses the user gesture in
> Safari and thus blocks our use of OffscreenCanvas in Safari.

I'm a bit confused here. OffscreenCanvas isn't supported in Safari. Are you talking about the hypothetical future in which Safari supports OffscreenCanvas? But drawing into OffscreenCanvas or painting it in the main thread wouldn't require any user gesture. So what exactly are we talking about here?

-- 
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/20210511/bb166cea/attachment.htm>


More information about the webkit-unassigned mailing list