Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fin

Manav Rathi822285fd3d29
diff --git a/web/packages/base/log-web.ts b/web/packages/base/log-web.ts
index 12801ab08c..be63612875 100644
--- a/web/packages/base/log-web.ts
+++ b/web/packages/base/log-web.ts
@@ -31,6 +31,19 @@ export const logStartupBanner = (userID?: number) => {
*/
export const logUnhandledErrorsAndRejections = (attach: boolean) => {
const handleError = (event: ErrorEvent) => {
+ // [Note: Spurious media chrome resize observer errors]
+ //
+ // When attaching media chrome controls to the DOM, we get an (AFAICT)
+ // spurious error in the log. Ignore it. FWIW, the media control tests
+ // themselves do the same.
+ // https://github.com/muxinc/elements/blob/f602519f544509f15add8fcc8cbbf7379843dcd3/packages/mux-player/test/player.test.js#L6-L12C5
+ if (
+ event.message ==
+ "ResizeObserver loop completed with undelivered notifications."
+ ) {
+ return;
+ }
+
log.error("Unhandled error", event.error ?? event.message);
};
diff --git a/web/packages/gallery/components/viewer/photoswipe.ts b/web/packages/gallery/components/viewer/photoswipe.ts
index 3830617c70..19fbb14420 100644
--- a/web/packages/gallery/components/viewer/photoswipe.ts
+++ b/web/packages/gallery/components/viewer/photoswipe.ts
@@ -1257,14 +1257,13 @@ const hlsVideoHTML = (url: string, mediaControllerID: string) => `
* To make these functional, the `media-control-bar` requires the
* `mediacontroller="${mediaControllerID}"` attribute.
*
- * TODO(HLS): Spurious console warning
- *
* Notes:
*
* - Examples: https://media-chrome.mux.dev/examples/vanilla/
*
* - When PiP is active and the video moves out, the browser displays some
- * indicator (browser specific) in the in-page video element.
+ * indicator (browser specific) in the in-page video element. This element and
+ * text is not under our control.
*
* - The media-cast-button currently doesn't work with the `hls-video` player.
*
@@ -1276,6 +1275,8 @@ const hlsVideoHTML = (url: string, mediaControllerID: string) => `
* Revisit this when we have a custom tooltip element we can then also use on
* this screen, which can also be used enhancement for the other buttons on
* this screen which use "title" (which get clipped when they are multi-word).
+ *
+ * - See: [Note: Spurious media chrome resize observer errors]
*/
const hlsVideoControlsHTML = () => `
<div>