Add WPTs for testing the effect on activeElement of the containing doc when calling .focus() and .blur() on an OOP iframe
Categories
(Core :: DOM: UI Events & Focus Handling, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox82 | --- | fixed |
People
(Reporter: hsivonen, Assigned: hsivonen)
References
(Blocks 1 open bug)
Details
(Whiteboard: ETA: 9/15, [wptsync upstream])
Attachments
(1 file)
Assignee | ||
Comment 1•4 years ago
|
||
Assignee | ||
Comment 2•4 years ago
|
||
As a surprise, the different-site case passes in Fission. I'll use Pernosco to figure out why.
Assignee | ||
Comment 3•4 years ago
|
||
Assignee | ||
Comment 4•4 years ago
|
||
(In reply to Henri Sivonen (:hsivonen) from comment #2)
As a surprise, the different-site case passes in Fission. I'll use Pernosco to figure out why.
Things are OK after onload. Need to write more tests for the case before onload.
Updated•4 years ago
|
Assignee | ||
Comment 5•4 years ago
|
||
Here are the cases that differ between Chrome and Firefox:
/focus/activeelement-after-immediately-focusing-different-site-iframe-contentwindow.html
Chrome
"outerparser,activeElement:BODY,willfocusiframe,didfocusiframe,activeElement:IFRAME,willbluriframe,didbluriframe,activeElement:IFRAME,willspineventloop,"
Firefox without Fission
"outerparser,activeElement:BODY,willfocusiframe,didfocusiframe,activeElement:IFRAME,willbluriframe,didbluriframe,activeElement:IFRAME,willspineventloop,innerbodyfocus,"
Firefox with Fission
"outeronload,activeElement:BODY,willfocusiframe,didfocusiframe,activeElement:BODY,willbluriframe,didbluriframe,activeElement:BODY,willspineventloop,innerbodyfocus,"
/focus/activeelement-after-immediately-focusing-different-site-iframe.html
Chrome
"outerparser,activeElement:BODY,willfocusiframe,didfocusiframe,activeElement:IFRAME,willbluriframe,didbluriframe,activeElement:BODY,willspineventloop,"
Firefox without Fission
"outerparser,activeElement:BODY,willfocusiframe,didfocusiframe,activeElement:BODY,willbluriframe,didbluriframe,activeElement:BODY,willspineventloop,"
Firefox with Fission
"outerparser,activeElement:BODY,willfocusiframe,didfocusiframe,activeElement:BODY,willbluriframe,didbluriframe,activeElement:BODY,willspineventloop,"
/focus/activeelement-after-immediately-focusing-same-site-iframe-contentwindow.html
Chrome
"outerparse,activeElement:BODY,willfocusiframe,didfocusiframe,activeElement:IFRAME,willbluriframe,didbluriframe,activeElement:IFRAME,willspineventloop,"
Firefox without Fission
"outerparse,activeElement:BODY,willfocusiframe,didfocusiframe,activeElement:IFRAME,willbluriframe,didbluriframe,activeElement:IFRAME,willspineventloop,innerbodyfocus,"
Firefox with Fission
"outerparse,activeElement:BODY,willfocusiframe,didfocusiframe,activeElement:IFRAME,willbluriframe,didbluriframe,activeElement:IFRAME,willspineventloop,innerbodyfocus,"
/focus/activeelement-after-immediately-focusing-same-site-iframe.html
Chrome
"outerparse,activeElement:BODY,willfocusiframe,didfocusiframe,activeElement:IFRAME,willbluriframe,didbluriframe,activeElement:BODY,willspineventloop,"
Firefox without Fission
"outerparse,activeElement:BODY,willfocusiframe,didfocusiframe,activeElement:BODY,willbluriframe,didbluriframe,activeElement:BODY,willspineventloop,"
Firefox with Fission
"outerparse,activeElement:BODY,willfocusiframe,didfocusiframe,activeElement:BODY,willbluriframe,didbluriframe,activeElement:BODY,willspineventloop,"
Assignee | ||
Comment 6•4 years ago
|
||
(In reply to Henri Sivonen (:hsivonen) from comment #5)
Here are the cases that differ between Chrome and Firefox:
The primary observation is that Chrome's results don't differ between same-site and different-site. That seems like a good sign.
contentWindow
Different-site in Firefox via contentWindow
differs between Fission and non-Fission. (Do sites actually care about contentWindow
? We have a pre-existing unit test that does.)
The document inside the iframe fires a focus event in Firefox but not in Chrome. Blur isn't observable in either.
Element
Firefox fails to focus with or without Fission even though Chrome focuses.
annevk, any thoughts on the focus event observability difference in the contentWindow
case?
Comment 7•4 years ago
|
||
Nothing concrete unfortunately. I think our focus should be on getting the browsers, tests, and the standard in alignment. We should not have behavior differences between Fission and non-Fission (same-origin vs cross-origin or same-site vs cross-site differences are okay though).
Comment 8•4 years ago
|
||
We should do this as soon as possible in M6.
Comment 11•4 years ago
|
||
Backed out for perma failures.
Log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=315232224&repo=autoland&lineNumber=4483
Backout: https://hg.mozilla.org/integration/autoland/rev/e39008a3c702b4fb741c03cc0b562d1723b92bd5
Updated•4 years ago
|
Assignee | ||
Comment 12•4 years ago
|
||
Assignee | ||
Comment 13•4 years ago
|
||
Assignee | ||
Comment 14•4 years ago
|
||
Assignee | ||
Updated•4 years ago
|
Comment 15•4 years ago
|
||
Comment 16•4 years ago
|
||
bugherder |
Description
•