document.hidden reports false when ChromeWindow.windowState says it is minimised
Categories
(Firefox :: Headless, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox69 | --- | fixed |
People
(Reporter: ato, Assigned: bdahl)
References
Details
Attachments
(1 file)
322 bytes,
text/plain
|
Details |
Reporter | ||
Comment 1•6 years ago
|
||
Assignee | ||
Comment 2•6 years ago
|
||
Reporter | ||
Comment 3•6 years ago
|
||
Comment 4•6 years ago
|
||
Reporter | ||
Comment 5•6 years ago
|
||
Comment 6•6 years ago
|
||
Comment 7•6 years ago
|
||
The same also applies to https://developer.mozilla.org/en-US/docs/Web/API/Document/visibilityState, which is always reported as visible
. Maybe this is due to that no visibilitychange
event is getting fired on the active tab, when calling minimize()
in headless mode? That's what I just noticed when working on bug 1520302.
Brendan, it would be great if you could have a look at this. Thanks!
Assignee | ||
Comment 8•6 years ago
|
||
I took a quick look and was able to reproduce with your test case and couldn't find any obvious issues in headless. The focus manager related code always seems to take awhile to dig into, but hopefully I'll have some time this week or next. Leaving the need info as a reminder.
Assignee | ||
Updated•6 years ago
|
Comment 9•6 years ago
|
||
As what I just have seen too, also docShellIsActive isn't getting updated to false
. So maybe minimizing the window in headless mode doesn't actually work at all?
Assignee | ||
Updated•6 years ago
|
Comment 10•6 years ago
|
||
With bug 1562025 being fixed now this is no longer a problem! This is wonderful.
Description
•