Honour MOZ_WINDOW_OCCLUSION on macOS so test harnesses can disable window occlusion
Categories
(Core :: Widget: Cocoa, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: rcurran, Assigned: rcurran)
References
Details
Attachments
(1 external file)
wptrunner sets MOZ_WINDOW_OCCLUSION=0 so browser windows that share the screen are not treated as occluded (bug 1733955), but only the Windows widget code reads it.
On macOS, when WPT testharness runs with more than one process (bug 2050488), the browser windows overlap, macOS reports the covered ones as occluded, nsCocoaWindow::DispatchOcclusionEvent marks them fully occluded and their documents become hidden. css-view-transitions then fails with "Skipped ViewTransition due to document being hidden". This caused the second backout of bug 2050488.
Proposed fix: never report a window as occluded on macOS when MOZ_WINDOW_OCCLUSION is set to anything other than 1, matching Windows. Normal browsing is unaffected since the variable is unset.
Try, the 98 directories from the failing autoland chunk, macOS aarch64 opt:
- 3 processes, without the fix: 3/3 failed (css-view-transitions, document being hidden) https://treeherder.mozilla.org/jobs?repo=try&revision=d9b83acd0db8a14c31d687dd229e65506e0e97aa
- 3 processes, with the fix: 5/5 passed https://treeherder.mozilla.org/jobs?repo=try&revision=f6507c939ea7a82423340016b6c41a7dcc3a717b
- 1 process, with the fix: passed https://treeherder.mozilla.org/jobs?repo=try&revision=1dfb5200b202f03dc8669d282097080c5b8666bd
| Assignee | ||
Comment 1•1 month ago
|
||
wptrunner sets MOZ_WINDOW_OCCLUSION=0 to stop browser windows that share
the screen from being treated as occluded, but only Windows read it. On
macOS an occluded window's documents become hidden, which breaks tests
such as css-view-transitions when testharness runs several processes.
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Description
•