1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/app/error-handler.js b/app/error-handler.js
-index 81a6cba..6ce8013 100644
+index f956c22..20233b2 100644
--- a/app/error-handler.js
+++ b/app/error-handler.js
@@ -15,6 +15,18 @@
// Fallback for all uncought errors
function handleError(event, err) {
-@@ -52,8 +64,9 @@
+@@ -58,8 +70,9 @@
msg.appendChild(div);
}
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
- app/pve.js | 34 ++++++++++++++++++++++++--
- app/styles/pve.css | 58 +++++++++++++++++++++++++++++++++++++++++++++
- vnc.html | 9 +++++++
+ app/pve.js | 34 +++++++++++++++++++++++++--
+ app/styles/pve.css | 58 ++++++++++++++++++++++++++++++++++++++++++++++
+ vnc.html | 9 +++++++
3 files changed, 99 insertions(+), 2 deletions(-)
diff --git a/app/pve.js b/app/pve.js
var me = this;
try {
diff --git a/app/styles/pve.css b/app/styles/pve.css
-index 18126b0..f2e7484 100644
+index 18126b0..e0ca61f 100644
--- a/app/styles/pve.css
+++ b/app/styles/pve.css
@@ -44,3 +44,61 @@
+ padding: 0 5px 2px 0;
+}
diff --git a/vnc.html b/vnc.html
-index d94fd99..72efa89 100644
+index 3e63087..f0488b1 100644
--- a/vnc.html
+++ b/vnc.html
-@@ -283,6 +283,15 @@
+@@ -281,6 +281,15 @@
</div>
</div>
--- /dev/null
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Pierre Ossman <ossman@cendio.se>
+Date: Mon, 22 Nov 2021 13:53:05 +0100
+Subject: [PATCH] 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.
+
+Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
+---
+ app/error-handler.js | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+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;
+extra/0001-Ignore-ResizeObserver-errors.patch
0001-add-PVE-specific-JS-code.patch
0002-add-custom-fbresize-event-on-rfb.patch
0003-change-scaling-when-toggling-fullscreen.patch