summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2021-11-22 13:53:05 +0100
committerPierre Ossman <ossman@cendio.se>2021-11-22 13:53:05 +0100
commit2f602da96145f02b7765916ac8abfb5022097c29 (patch)
treeda79cbec8475299c58fe7d66fd24e1a7aa2872ca
parent7ad4e60df60fa007c6c89f61479c02487aba837b (diff)
downloadnovnc-2f602da96145f02b7765916ac8abfb5022097c29.tar.gz
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.
-rw-r--r--app/error-handler.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/error-handler.js b/app/error-handler.js
index 81a6cba..f956c22 100644
--- a/app/error-handler.js
+++ b/app/error-handler.js
@@ -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;