Closed Bug 2079664 Opened 1 month ago Closed 1 month ago

Honour MOZ_WINDOW_OCCLUSION on macOS so test harnesses can disable window occlusion

Categories

(Core :: Widget: Cocoa, defect)

ARM64
macOS
defect

Tracking

()

RESOLVED FIXED
160 Branch
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:

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.

Assignee: nobody → rcurran
Status: NEW → ASSIGNED
Severity: -- → S3
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
QA Whiteboard: [qa-triage-done-c161/b160]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: