Closed Bug 1659940 Opened 5 years ago Closed 5 years ago

Iframe might not be notified the mouse leaving if restyle happens

Categories

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

defect

Tracking

()

RESOLVED FIXED
85 Branch
Tracking Status
firefox81 --- wontfix
firefox85 --- fixed

People

(Reporter: edgar, Assigned: edgar)

References

Details

Attachments

(1 file)

mLastOverFrame is used for notifying the sub-document the mouse out, it is a WeakFrame, so it could possibly be nulled-out after restyling and the sub-document won't be notified the mouse leaving.

Found this while working on bug 1653949, it adds new tests to test if the mouseenter/mouseleave event is fired properly while switching tab, but the test-verify on try will consistently get timeout due to the lack of mouseleave event on an iframe.

See Also: → 1653949
Fission Milestone: --- → ?

Edgar, does this new test failure happen in both Fission and non-Fission modes?

Flags: needinfo?(echen)

(In reply to Chris Peterson [:cpeterson] from comment #1)

Edgar, does this new test failure happen in both Fission and non-Fission modes?

Yes, it happens in non-Fission mode. And I think it is a long-existing behavior.

Flags: needinfo?(echen)

(In reply to Edgar Chen [:edgar] (PTO 08/21) from comment #2)

Yes, it happens in non-Fission mode. And I think it is a long-existing behavior.

Thanks. In that case, I'll clear the Fission flag.

Fission Milestone: ? → ---

mLastOverFrame is a WeakFrame, it could possibly be nulled-out, for example
after restyling, and the sub-document won't be able to be notified the mouse
leaving.

Assignee: nobody → echen
Status: NEW → ASSIGNED
Pushed by echen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/42b11b39afe4 Use mLastOverElement to notify the mouse leaving for an iframe; r=smaug
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 85 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: