Ignore ResizeObserver errors

It seems that Firefox has a bug where these are fired incorrectly when
we are in an <iframe>. The events also contain no useful details, so we
can't really do anything useful with them anyway.
This commit is contained in:
Pierre Ossman 2021-11-22 13:53:05 +01:00
parent 7ad4e60df6
commit 2f602da961
1 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,12 @@
try {
const msg = document.getElementById('noVNC_fallback_errormsg');
// Work around Firefox bug:
// https://bugzilla.mozilla.org/show_bug.cgi?id=1685038
if (event.message === "ResizeObserver loop completed with undelivered notifications.") {
return false;
}
// Only show the initial error
if (msg.hasChildNodes()) {
return false;