Frequent hangs of browser/base/content/test/webrtc tests in headless mode
Categories
(Firefox :: Headless, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox112 | --- | fixed |
People
(Reporter: pehrsons, Assigned: pehrsons)
Details
Attachments
(3 files)
Run ./mach test browser/base/content/test/webrtc/ --headless
and it will soon hang, waiting for a permission prompt to appear, which doesn't happen.
This is pretty old, and I landed a test-specific mitigation back then that didn't cover all cases.
This happens when the webrtc indicator appears as it takes focus from the browser window, and the prompt needs focus to appear.
This happens more frequently with webrtcLegacyIndicator.xhtml than webrtcIndicator.xhtml because the latter is only visible for display capture by default.
For me on linux, under headless, the legacy indicator is a toplevel WindowType::Popup widget whereas the new indicator is a toplevel WindowType::Dialog widget.
The root cause of this is HeadlessWidget taking focus when shown and being toplevel (or a dialog). The native webrtc indicator widgets do not take focus in this way.
Assignee | ||
Comment 1•2 years ago
|
||
Updated•2 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
webrtcLegacyIndicator is a parentless window of type Popup, but should not
receive focus by default.
Assignee | ||
Comment 3•2 years ago
|
||
webrtcIndicator is an alwaysontop window of type Dialog or TopLevel, but should
not receive focus by default.
Comment 5•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/009858d01598
https://hg.mozilla.org/mozilla-central/rev/55cbddfeeaf3
https://hg.mozilla.org/mozilla-central/rev/bc669ecd9097
Description
•