From d6c516a44775062c638fee351dc013c2347243b6 Mon Sep 17 00:00:00 2001 From: Joey Arhar Date: Wed, 28 Jun 2023 07:34:57 -0700 Subject: [PATCH] Make togglePopover() throw more exceptions This makes sure that togglePopover() will throw exceptions when it is disconnected from the document or doesn't have a popover attribute. Fixes #8999. --- source | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/source b/source index ec141fd6115..1bf45ff268a 100644 --- a/source +++ b/source @@ -82852,6 +82852,19 @@ dictionary DragEventInit : MouseEventInit {
  • Otherwise, if force is not present or true, then run show popover given this true, and null.

  • +
  • +

    Otherwise:

    + +
      +
    1. Let expectedToBeShowing be true if this's popover + visibility state is showing; otherwise + false.

    2. + +
    3. Run check popover validity given expectedToBeShowing, true, and + null.

    4. +
    +
  • +
  • Return true if this's popover visibility state is showing; otherwise false.