From 06c3a2a1a14b07bfb2e17c2cb4a81f3e4680b0aa Mon Sep 17 00:00:00 2001 From: Keith Cirkel Date: Wed, 24 Sep 2025 15:54:57 +0100 Subject: [PATCH 1/3] reorder removing the implicit anchor element to always ensure it is removed --- source | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source b/source index ac08ba73ea3..f75b96e3def 100644 --- a/source +++ b/source @@ -87152,8 +87152,6 @@ dictionary DragEventInit : MouseEventInit {
  • Request an element to be removed from the top layer given element.

  • - -
  • Set element's implicit anchor element to null.

  • @@ -87162,6 +87160,8 @@ dictionary DragEventInit : MouseEventInit {
  • Set element's popover invoker to null.

  • +
  • Set element's implicit anchor element to null.

  • +
  • Set element's opened in popover mode to null.

  • Set element's popover visibility state to Date: Wed, 24 Sep 2025 16:46:15 +0100 Subject: [PATCH 2/3] switch to using a callback algorithm --- source | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/source b/source index f75b96e3def..edda2b8cd13 100644 --- a/source +++ b/source @@ -87123,6 +87123,14 @@ dictionary DragEventInit : MouseEventInit { showing auto popover list's last item is element, otherwise false.

  • +
  • +

    Let cleanupAnchor be the following algorithm:

    + +
      +
    1. Set element's implicit anchor element to null.

    2. +
    +
  • +
  • If fireEvents is true:

    @@ -87151,17 +87159,15 @@ dictionary DragEventInit : MouseEventInit {
  • Request an element to be removed from the top layer given - element.

  • + element and cleanupAnchor.

  • Otherwise, remove an element from the top layer immediately given - element.

  • + element and cleanupAnchor.

  • Set element's popover invoker to null.

  • -
  • Set element's implicit anchor element to null.

  • -
  • Set element's opened in popover mode to null.

  • Set element's popover visibility state to Date: Wed, 24 Sep 2025 17:02:02 +0100 Subject: [PATCH 3/3] avoid using callback for removing from top layer immediately --- source | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source b/source index edda2b8cd13..21ab6a44872 100644 --- a/source +++ b/source @@ -87164,7 +87164,7 @@ dictionary DragEventInit : MouseEventInit {

  • Otherwise, remove an element from the top layer immediately given - element and cleanupAnchor.

  • + element, then run cleanupAnchor.

  • Set element's popover invoker to null.