Skip to content
TypeScript

fix(web): video full-screen buttons work in HTML renders (#21378)

punkhopf3bbd0fd07f4
diff --git a/apps/web/src/components/files/BrowserDocumentFrame.tsx b/apps/web/src/components/files/BrowserDocumentFrame.tsx
index 763e3f2fd3d..9d8afbc08a5 100644
--- a/apps/web/src/components/files/BrowserDocumentFrame.tsx
+++ b/apps/web/src/components/files/BrowserDocumentFrame.tsx
@@ -320,6 +320,8 @@ export function HtmlRenderDocument(props: {
title={props.title}
// Never allow-same-origin: the opaque origin keeps the page out of the app's session.
sandbox="allow-scripts allow-forms"
+ // Lets a page's video or image viewer take the screen.
+ allow="fullscreen"
loading="lazy"
onLoad={() => {
setLoaded(true);