Focusing parent when two sibling subframes have been focused results in inconsistent focus state
Categories
(Core :: DOM: UI Events & Focus Handling, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox91 | --- | fixed |
People
(Reporter: enndeakin, Assigned: hsivonen)
References
Details
Attachments
(2 files)
The test added by bug 1712900 uncovers a bug that occurs only in fission mode:
The frame structure is:
A1
-> B
-> A2
A and B are two processes. A2 is a sibling frame of B.
The frame A2 starts out focused.
When B is then focused, A1's focus is updated correctly, however if window.focus() is then called on A1, process A's focusedWindow is set to or remains at A2, yet its active focused element is the frame for B.
This causes the test to fail when enable-fission is used.
The best way to reproduce this bug is to apply the patch in bug 1712900 and run test test with --enable-fission.
| Reporter | ||
Updated•4 years ago
|
| Reporter | ||
Updated•4 years ago
|
| Assignee | ||
Updated•4 years ago
|
| Assignee | ||
Comment 1•4 years ago
|
||
(In reply to Neil Deakin from comment #0)
The best way to reproduce this bug is to apply the patch in bug 1712900 and run test test with --enable-fission.
Do you happen to have a test that's scoped only to this bug?
I wrote https://hsivonen.fi/fission-sibling.html but the permission check on window.focus() means the call is ignored.
| Reporter | ||
Comment 2•4 years ago
|
||
This is a version of the test that just shows the issue.
Updated•4 years ago
|
| Assignee | ||
Comment 3•4 years ago
|
||
| Assignee | ||
Comment 4•4 years ago
|
||
(In reply to Neil Deakin from comment #2)
This is a version of the test that just shows the issue.
To be clear, this test isn't expected to pass but to err out with the focused window being null during the assertion in the Fission case, right?
https://treeherder.mozilla.org/#/jobs?repo=try&revision=93686970ed4c00d1cce1c5e51154a2e9aa4f7aec
| Assignee | ||
Comment 5•4 years ago
|
||
| Reporter | ||
Updated•4 years ago
|
Comment 7•4 years ago
|
||
| bugherder | ||
Description
•