Closed Bug 1832033 Opened 1 year ago Closed 11 months ago

Change `CheckPopoverValidity` to match the spec more closely

Categories

(Core :: DOM: Core & HTML, defect)

defect

Tracking

()

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: mbrodesser-Igalia, Assigned: mbrodesser-Igalia)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Summary: Change `CheckPopoverValidity` to match the spec → Change `CheckPopoverValidity` to match the spec more closely
Attachment #9332360 - Attachment description: Bug 1832033: change `CheckPopoverValidity` to match spec more closely. r=emilio → WIP: Bug 1832033: change `CheckPopoverValidity` to match spec more closely. r=emilio

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.

Attachment #9332360 - Attachment description: WIP: Bug 1832033: change `CheckPopoverValidity` to match spec more closely. r=emilio → Bug 1832033: change `CheckPopoverValidity` to match spec more closely. r=emilio
Pushed by mbrodesser@igalia.com:
https://hg.mozilla.org/integration/autoland/rev/38cfebe42935
change `CheckPopoverValidity` to match spec more closely. r=emilio
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: