Additional pair of blur and focus event gets fired while triggering the accesskey shortcut on OOP iframe
Categories
(Core :: DOM: UI Events & Focus Handling, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox84 | --- | fixed |
People
(Reporter: edgar, Assigned: edgar)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 1 obsolete file)
After triggering the accesskey shortcut, for example, control
+ option
+ a
on Mac, there is additional pair of blur and focus event gets fired. Like,
onfocus: target: https://bugzilla.mozilla.org/show_bug.cgi?id=1661415
onclick: target: https://bugzilla.mozilla.org/show_bug.cgi?id=1661415
onblur: target: https://bugzilla.mozilla.org/show_bug.cgi?id=1661415
onfocus: target: https://bugzilla.mozilla.org/show_bug.cgi?id=1661415
Where there is only one focus event on non-Fission
onfocus: target: https://bugzilla.mozilla.org/show_bug.cgi?id=1661415
onclick: target: https://bugzilla.mozilla.org/show_bug.cgi?id=1661415
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Assignee | ||
Comment 2•4 years ago
|
||
I also saw similar behavior on tab key navigation in OOP iframe.
Assignee | ||
Comment 3•4 years ago
|
||
Assignee | ||
Comment 4•4 years ago
|
||
Assignee | ||
Comment 5•4 years ago
|
||
nsFocusManager::GetFocusedDescendant only returns the focused descendant within
the same browsing context boundary, so we don't expose aFocusIsOutOfProcess
if the frameLoad acts as boundary, either.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 6•4 years ago
|
||
I have a WIP that could avoid additional pair of blur and focus events.
But almost all xorigin test on try gets timed out due to the lack of focus event. :(
Assignee | ||
Comment 7•4 years ago
•
|
||
(In reply to Edgar Chen [:edgar] from comment #6)
I have a WIP that could avoid additional pair of blur and focus events.
But almost all xorigin test on try gets timed out due to the lack of focus event. :(
What the WIP does is to check mFocusedBrowsingContext
in nsFocusManager::SetFocusInner, if the mFocusedBrowsingContext
already pointers to embeded browsing context that lives in a different process, then parent window don't need to to anything for the frame-focus-request given that the out-of-process iframe already has the focus. However, mFocusedBrowsingContext
seems to not be accurate any more after process switching or navigate happens on focused browsing context.
Updated•4 years ago
|
Assignee | ||
Comment 8•4 years ago
|
||
Assignee | ||
Comment 9•4 years ago
|
||
Assignee | ||
Comment 10•4 years ago
|
||
Updated•4 years ago
|
Comment 11•4 years ago
|
||
Comment 12•4 years ago
|
||
bugherder |
Description
•