Change `CheckPopoverValidity` to match the spec more closely
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox115 | --- | fixed |
People
(Reporter: mbrodesser-Igalia, Assigned: mbrodesser-Igalia)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
Assignee | ||
Comment 2•2 years ago
|
||
This requires the changes of https://github.com/web-platform-tests/wpt/pull/39781/commits/6403f546bd460256e8a8bf270f633c0799babe53#.
Updated•2 years ago
|
Comment 3•2 years ago
|
||
This could also be related to the failure on popover-move-documents.html, which is failed because of it generates the error "HTMLElement.hidePopover: Element has unexpected visibility state".
In the case 'Moving popovers between documents while hiding should not throw an exception.', when call p2.hidePopover();
, on the 'beforetoggle' callback, p2
is moved to another frame myframe2
, which calls hidePopover
for p2
. So when finish 'beforetoggle' callback, the status of p2
is not popover-open
. And after that, calling CheckPopoverValidity
, it generates an error "HTMLElement.hidePopover: Element has unexpected visibility state" because it assumes the statue should be popover-open
.
So this failure could be fixed, if CheckPopoverValidity
does not generate errors for data->GetPopoverVisibilityState() != aExpectedState
.
Updated•2 years ago
|
Comment 5•2 years ago
|
||
bugherder |
Description
•