You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fixed
Fixed a regression introduced in #5026 where stable web-sys methods that
accept a union type containing a [WbgGeneric] interface (e.g. ImageBitmapSource, which includes VideoFrame) incorrectly applied typed
generics to all union expansions rather than only those whose argument type
is itself [WbgGeneric]. In practice this caused Window::create_image_bitmap_with_*
and the corresponding WorkerGlobalScope overloads to return Promise<ImageBitmap> instead of Promise<JsValue> for the stable
(non-VideoFrame) call sites, breaking JsFuture::from(promise).await?. #5064 #5073