Closed Bug 1661227 Opened 4 years ago Closed 4 years ago

Clicking to focus an OOP iframe inside an OOP iframe fires focus event in the parent iframe

Categories

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

defect

Tracking

()

RESOLVED FIXED
85 Branch
Fission Milestone M7
Tracking Status
firefox85 --- fixed

People

(Reporter: hsivonen, Assigned: hsivonen)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Spin-off from bug 1653160:

When a A frames B that frames C such that all three are from different domains, when focus is in A, clicking C fires a focus event in B (plus the events that are supposed to fire) in Fission but not in non-Fission.

Fission shouldn't fire the event. This appears to be due to the PuppetWidget of B getting raised.

Fission Milestone: --- → M7

I also notice that calling window.focus() in frame C would also result in firing a focus event in frame B.

(In reply to Edgar Chen [:edgar] from comment #1)

I also notice that calling window.focus() in frame C would also result in firing a focus event in frame B.

window.focus() case should be fixed after bug 1674702.

(In reply to Edgar Chen [:edgar] from comment #2)

(In reply to Edgar Chen [:edgar] from comment #1)

I also notice that calling window.focus() in frame C would also result in firing a focus event in frame B.

window.focus() case should be fixed after bug 1674702.

Thanks. It looks like this one got fixed, too. I'll update the test accordingly.

Assignee: nobody → hsivonen
Status: NEW → ASSIGNED
Pushed by hsivonen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/191a4443d110 Change test_focus_blur_on_click_in_deep_cross_origin_iframe to treat extra focus event as a failure. r=nika
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 85 Branch
Blocks: 1653457
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: