Closed Bug 1842711 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 40960 - Move popover invoker CHECK

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
117 Branch
Tracking Status
firefox117 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 40960 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/40960
Details from upstream follow.

Joey Arhar <jarhar@chromium.org> wrote:

Move popover invoker CHECK

I added this CHECK in http://crrev.com/1166594 but it will get hit when
showPopover is called while the popover is open with an invoker. This
patch moves the CHECK down past the IsPopoverReady check to avoid
getting hit. If the popover is already open, then the IsPopoverReady
check will return before the CHECK is run.

The motivation behind the CHECK is still fine - it ensures that while
the popover is closed, it can't have an invoker set.

Fixed: 1463384
Change-Id: Ie75a1026acefd9ce8018caf96b2bb314a18ac730

Reviewed-on: https://chromium-review.googlesource.com/4676654
WPT-Export-Revision: ca8528242738eb95b430157b01f2cc88a4cd84c2

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests

Status Summary

Firefox

PASS: 1

Chrome

PASS: 1

Safari

PASS: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9c84ceed4658
[wpt PR 40960] - Move popover invoker CHECK, a=testonly
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch
You need to log in before you can comment on or make changes to this bug.