- From: Mustaq Ahmed <notifications@github.com>
- Date: Thu, 24 Nov 2022 14:04:16 -0800
- To: whatwg/fullscreen <fullscreen@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 24 November 2022 22:04:29 UTC
Yes, good catch that we need to avoid seamless fullscreen transition between two different origins. Perhaps we can say: `elem.requestFullscreen()` will require either: - transient user activation (as we currently have in [Step 5 here](https://fullscreen.spec.whatwg.org/#dom-element-requestfullscreen)), or - `Document.fullscreenElement.ownerDocument === elem.ownerDocument`. @foolip What do you think? Any chance an easier answer lies in the "relevant global object" in Step 5 above? The call `elem.requestFullscreen()` cannot be made from a cross-origin `Window` because that `Window` can't access `elem`---at least in Chrome. I don't know if this site isolation behavior is fully spec-ed. @domenic? -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fullscreen/issues/193#issuecomment-1326861169 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/fullscreen/issues/193/1326861169@github.com>
Received on Thursday, 24 November 2022 22:04:29 UTC