Closed Bug 1856289 Opened 1 year ago Closed 1 year ago

dom/events/test/test_mouse_enterleave_iframe.html should not request reflow to a child document multiple times

Categories

(Core :: DOM: UI Events & Focus Handling, defect, P2)

defect

Tracking

()

RESOLVED FIXED
120 Branch
Tracking Status
firefox120 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

It seems that requesting reflow multiple times to an <iframe> causes odd race condition.

The test requests reflow to a child document which the listener listens to
when expected event gets received as a message. However, the message listener
is set twice for listening same events on <html> and <div>. Therefore,
the request occurs twice, and that assumes that the reflow happens before
the next task of a setTimeout call.

This patch makes the order stabler.

  • Request reflow only when the the last expected event is received
  • Remove the message listeners when the reflow request is performed in the child
Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/0d3b6ffb57f5 Make the test request a reflow of a child document when it received the last expected event message r=edgar
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: