From 607568716ecaff7760086aa05dc67c74af4802bc Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Mon, 30 Sep 2024 13:38:39 +0900 Subject: [PATCH] Do not establish close watchers in non-fully active documents Closes #10634. See #10659 for a better followup. --- source | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/source b/source index 2024b777812..e5a565e1fe0 100644 --- a/source +++ b/source @@ -61649,8 +61649,9 @@ interface HTMLDialogElement : HTMLElement { to the top layer given this.

  • -

    Set this's close watcher to the - result of establishing a close watcher given +

    If this's node document is fully active, then set + this's close watcher to the result of + establishing a close watcher given this's relevant global object, with:

    + +

    It would be better if this method failed early for the non-fully + active case. That is being tracked in issue #10659.

  • Set this's previously focused element to the @@ -85392,9 +85397,10 @@ dictionary DragEventInit : MouseEventInit {

  • -

    Set element's popover close watcher to the result of establishing a close watcher given - element's relevant global object, with:

    +

    If document is fully active, then set element's + popover close watcher to the result of establishing a close watcher given element's relevant global + object, with:

    + +

    It would be better if this algorithm failed early for the non-fully + active case. That is being tracked in issue #10659.