Re: [mediacapture-region] What makes CropTarget special to require an asynchronous creation? (#17)

> The W3C design principles cite interprocess communications (IPC) as a potential reason to choose async over sync, so they don't provide much in the way of definitive guidance here.

It says to use sync if the "[API ... will not be _blocked_ by ... inter-process communication.](" (emphasis on _blocked_)

I hope I [showed]( that any IPC in `fromElement` is (premature) optimization, and that there's no reason for JS to block on it since it cannot fail, and doing so just [slows things down]( Needs for failure are discussed and disputed in #48.

> whereas some implementers claim they cannot live with the sync approach.

We talked about this on the call, and my recollection was this argument reduced to convenience of implementation, i.e. _not_ a need.

> For example, resource allocation could be moved from `CropTarget()` to `cropTo()`, since the latter is async. 


GitHub Notification of comment by jan-ivar
Please view or discuss this issue at using your GitHub account

Sent via github-notify-ml as configured in

Received on Monday, 27 June 2022 21:31:09 UTC