- From: 金东勋 | 金東勳 | 김동훈 | Jin Dongxun <notifications@github.com>
- Date: Sun, 25 Oct 2026 05:05:58 -0700
- To: whatwg/fullscreen <fullscreen@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/fullscreen/pull/265@github.com>
Clone the document's pending fullscreen event set before emptying it. The current first step aliases the existing ordered set, so emptying the document's set also empties pendingEvents before the dispatch loop.
The clone preserves the pending events for this iteration while events queued during dispatch remain in the document's set for a subsequent iteration.
Spec: https://fullscreen.spec.whatwg.org/#run-the-fullscreen-steps
<!--
Thank you for contributing to the Fullscreen API Standard! Please describe the change you are making and complete the checklist below if your change is not editorial.
When you submit this PR, and each time you edit this comment (including checking a checkbox through the UI!), PR Preview will run and update it. As such make any edits in one go and only after PR Preview has run.
If you think your PR is ready to land, please double-check that the build is passing and the checklist is complete before pinging.
-->
- [ ] At least two implementers are interested (and none opposed):
* …
* …
- [ ] [Tests](https://github.com/web-platform-tests/wpt) are written and can be reviewed and commented upon at:
* … <!-- If these tests are tentative, link a PR to make them non-tentative. -->
- [ ] [Implementation bugs](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) are filed:
* Chromium: …
* Gecko: …
* WebKit: …
- [ ] [MDN issue](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) is filed: …
- [ ] The top of this comment includes a [clear commit message](https://github.com/whatwg/meta/blob/main/COMMITTING.md) to use. <!-- If you created this PR from a single commit, Github copied its message. Otherwise, you need to add a commit message yourself. -->
(See [WHATWG Working Mode: Changes](https://whatwg.org/working-mode#changes) for more details.)
<!--
This comment and the below content is programmatically generated.
You may add a comma-separated list of anchors you'd like a
direct link to below (e.g. #idl-serializers, #idl-sequence):
Don't remove this comment or modify anything below this line.
If you don't want a preview generated for this pull request,
just replace the whole of this comment's content by "no preview"
and remove what's below.
-->
***
<a href="https://whatpr.org/fullscreen/265.html" title="Last updated on Oct 25, 2026, 12:05 PM UTC (8e05c5f)">Preview</a> | <a href="https://whatpr.org/fullscreen/265/a3e9529...8e05c5f.html" title="Last updated on Oct 25, 2026, 12:05 PM UTC (8e05c5f)">Diff</a>
You can view, comment on, or merge this pull request online at:
https://github.com/whatwg/fullscreen/pull/265
-- Commit Summary --
* Clone pending fullscreen events before clearing them
-- File Changes --
M fullscreen.bs (2)
-- Patch Links --
https://github.com/whatwg/fullscreen/pull/265.patch
https://github.com/whatwg/fullscreen/pull/265.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fullscreen/pull/265
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/fullscreen/pull/265@github.com>
Received on Sunday, 25 October 2026 12:06:02 UTC