From 4c6d388481c441087cd0ca7b70e1f32f8bb1227e Mon Sep 17 00:00:00 2001 From: Mirko Brodesser Date: Mon, 3 Jul 2023 13:36:22 +0200 Subject: [PATCH 1/2] Set popover invoker immediately after changing popover's visibility state to "showing" See . Fixes #9383. --- source | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source b/source index 7ad656232aa..b0bc53e7de7 100644 --- a/source +++ b/source @@ -82580,8 +82580,6 @@ dictionary DragEventInit : MouseEventInit {
  • Assert: element's popover invoker is null.

  • -
  • Set element's popover invoker to invoker.

  • -
  • Assert: element is not in document's top layer.

  • @@ -82628,7 +82626,7 @@ dictionary DragEventInit : MouseEventInit { data-x="attr-popover">popover attribute.

  • Let ancestor be the result of running the topmost popover - ancestor algorithm given element.

  • + ancestor algorithm given element and invoker.

  • If ancestor is null, then set ancestor to document.

  • @@ -82672,6 +82670,8 @@ dictionary DragEventInit : MouseEventInit {
  • Set element's popover visibility state to showing.

  • +
  • Set element's popover invoker to invoker.

  • +
  • Run the popover focusing steps given element.

  • If shouldRestoreFocus is true and element's DragEventInit : MouseEventInit { false, and false.

    To find the topmost popover ancestor, given a Node - newPopover, perform the following steps. They return an HTML element + invoker or null, perform the following steps. They return an HTML element or null.

    @@ -83037,8 +83038,7 @@ dictionary DragEventInit : MouseEventInit {
  • Run checkAncestor given newPopover's parent node within the flat tree.

  • -
  • Run checkAncestor given newPopover's popover - invoker.

  • +
  • Run checkAncestor given invoker.

  • return topmostPopoverAncestor.

  • From 5407a1b9cab5930b70467f72b9917b41a0190f6e Mon Sep 17 00:00:00 2001 From: Mirko Brodesser Date: Mon, 3 Jul 2023 13:56:13 +0200 Subject: [PATCH 2/2] Correct function signature --- source | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source b/source index b0bc53e7de7..bb150eaf98b 100644 --- a/source +++ b/source @@ -82959,8 +82959,8 @@ dictionary DragEventInit : MouseEventInit { false, and false.

    To find the topmost popover ancestor, given a Node - newPopover, and HTML element - invoker or null, perform the following steps. They return an HTML element or null + invoker, perform the following steps. They return an HTML element or null.