Bug 1766884 [wpt PR 33848] - Make showPopup and hidePopup throw in invalid situations...
commit5761a645ce45b7653282d877bbea51fcf8206b83
authorMason Freed <masonf@chromium.org>
Sat, 7 May 2022 11:38:28 +0000 (7 11:38 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Sun, 15 May 2022 20:20:51 +0000 (15 20:20 +0000)
treea6ad2a41e01df4bdb141e67fd0dc77e04560bbed
parent5db79f03c83e5cabdfd42f0b5156cf4b60f3481f
Bug 1766884 [wpt PR 33848] - Make showPopup and hidePopup throw in invalid situations, a=testonly

Automatic update from web-platform-tests
Make showPopup and hidePopup throw in invalid situations

With this CL, both `showPopup()` and `hidePopup()` will throw exceptions
in invalid situations, including:
 - called on non-popup elements
 - called when the popup is in an invalid state (e.g. showPopup on an
   already-showing popup).

See this issue:
  https://github.com/openui/open-ui/issues/511#issuecomment-1099522414

Bug: 1307772
Change-Id: Ib6b623fdcc0fcf7de68f496163df7b47b1c24732
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3610726
Reviewed-by: Joey Arhar <jarhar@chromium.org>
Auto-Submit: Mason Freed <masonf@chromium.org>
Commit-Queue: Mason Freed <masonf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#997279}

--

wpt-commits: 7e280cd5814a822cb05b7116eb2cbaf736af2803
wpt-pr: 33848
testing/web-platform/tests/html/semantics/popups/popup-attribute-basic.tentative.html
testing/web-platform/tests/html/semantics/popups/popup-light-dismiss.tentative.html
testing/web-platform/tests/html/semantics/popups/popup-not-keyboard-focusable.tentative.html