From 02b02e5f5d2e781625644e1bc47dd8f540c3a85c Mon Sep 17 00:00:00 2001 From: Tim Nguyen Date: Tue, 4 Feb 2025 09:52:27 -0800 Subject: [PATCH] Fix dangling fullscreen flag when exiting a disconnected element Fixes #217 --- fullscreen.bs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/fullscreen.bs b/fullscreen.bs index d8130cc..1eca40b 100644 --- a/fullscreen.bs +++ b/fullscreen.bs @@ -495,9 +495,11 @@ could be an open <{dialog}> element.
  • If doc's fullscreen element is not connected:

      -
    1. Append ({{fullscreenchange}}, doc's - fullscreen element) to doc's - list of pending fullscreen events. +

    2. Append ({{fullscreenchange}}, doc's fullscreen element) + to doc's list of pending fullscreen events. + +

    3. Unfullscreen doc's fullscreen + element.

  • Return promise, and run the remaining steps in parallel.