Closed Bug 1678349 Opened 4 years ago Closed 4 years ago

Additional blur and focus event get fired while calling iframe.focus() on OOP iframe

Categories

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

defect

Tracking

()

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

People

(Reporter: edgar, Assigned: edgar)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

This is another case that we trigger additional blur and focus events on the OOP iframe.
I will attach test script later.

Attached file test.html

STR:

  1. enable Fission
  2. load test.html
  3. wait for a few seconds.

Expected result:
No duplicated focus or blur event

Actual Result:
Duplicated focus and blur event on the iframe and framer.

Tracking for Fission Beta milestone (M7).

Fission Milestone: --- → M7
Blocks: 582459

This simplify the code a bit and also fix FocusIsOutOfProcess isn't set correctly
for a certain case, e.g. framer calls iframe.focus() on a OOP iframe.

for the case that framer calls iframe.focus() on OOP iframe and the OOP iframe
already has the focus.

Assignee: nobody → echen
Status: NEW → ASSIGNED
Pushed by echen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ef077201b2a4 Part 1: Compute focus-in-other-content-process flag in nsFocusManager::Focus; r=hsivonen https://hg.mozilla.org/integration/autoland/rev/c8f03513e3a5 Part 2: Suppress additional blur/focus event on OOP iframe; r=hsivonen
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/26717 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 85 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: