muxinc / media-chrome

Custom elements (web components) for making audio and video player controls that look great in your website or app.
https://media-chrome.org
MIT License
1.77k stars 71 forks source link

ResizeObserver loop completed with undelivered notifications #732

Closed mmvsk closed 1 year ago

mmvsk commented 1 year ago

In some conditions, media-chrome use of ResizeObserver ends up throwing the following error:

loop completed with undelivered notifications

The exact error message may depend on the browser (here I'm using Chrome 118), and the issue is known as seen in a Mux Player test comments:

Media Chrome uses a ResizeObserver which ends up throwing in Firefox and Safari in some cases so we want to catch those. It is supposedly not a blocker if this error is thrown. Safari also has some weird script error being thrown, so, we want to catch it to. This unblocks a bunch of tests from running properly.

In normal conditions, this error can be dismissed as it doesn't really affect anything, however when developing with React and Webpack, it is catched and the following message is displayed:

media-chrome-error