Closed
Bug 1675484
Opened 5 years ago
Closed 4 years ago
iframe.onfocus invoked upon iframe.focus() for out-of-process iframes
Categories
(Core :: DOM: UI Events & Focus Handling, defect, P2)
Core
DOM: UI Events & Focus Handling
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox89 | --- | fixed |
People
(Reporter: hsivonen, Assigned: edgar)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
When calling iframe.focus() on an OOP iframe, Chrome and Fission invoke iframe.onfocus. However, we don't invoke it for in-process iframes. Test case coming up in bug 1662772.
Updated•5 years ago
|
Severity: -- → S3
Priority: -- → P2
| Reporter | ||
Updated•5 years ago
|
Summary: iframe.onfocus not invoked upon iframe.focus() for in-process iframes → iframe.onfocus not invoked upon iframe.contentWindow.focus() for in-process iframes
| Reporter | ||
Updated•5 years ago
|
Summary: iframe.onfocus not invoked upon iframe.contentWindow.focus() for in-process iframes → iframe.onfocus not invoked upon iframe.focus() for in-process iframes
| Assignee | ||
Comment 1•5 years ago
|
||
It seems like the difference is probably from the elementToFocus and newWindow setup in nsFocusManager::SetFocusInner,
- In-process iframe case: the
newWindowwould be the contentWindow of iframe, andelementToFocuswould be the mFocusedElement in contentWindow. - OOP iframe case: the
newWindowwould be the window that contains the iframe, and elementToFocus would be the iframe itself.
| Reporter | ||
Comment 2•4 years ago
|
||
Per discussion with Anne, spec-wise this looks like a Fission (and partially Blink) bug after all, and there's no spec basis for the event firing. (We should also consider the possibility that something expects the event to fire as in Blink compat-wise by now.)
| Reporter | ||
Updated•4 years ago
|
Blocks: fission-focus
Summary: iframe.onfocus not invoked upon iframe.focus() for in-process iframes → iframe.onfocus invoked upon iframe.focus() for out-of-process iframes
Comment 3•4 years ago
|
||
Moving it to MVP since the current behavior is the same as Chrome.
Fission Milestone: --- → MVP
| Assignee | ||
Updated•4 years ago
|
Assignee: nobody → echen
| Assignee | ||
Comment 5•4 years ago
|
||
| Assignee | ||
Comment 6•4 years ago
•
|
||
| Assignee | ||
Comment 7•4 years ago
|
||
Updated•4 years ago
|
Attachment #9212192 -
Attachment description: WIP: Bug 1675484 - iframe.onfocus should not be invoked when focus moves to out-of-process iframes; r=hsivonen → Bug 1675484 - iframe.onfocus should not be invoked when focus moves to out-of-process iframes; r=hsivonen
Pushed by echen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ab57f439bce3
iframe.onfocus should not be invoked when focus moves to out-of-process iframes; r=hsivonen
Comment 9•4 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 4 years ago
status-firefox89:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•