Open Bug 1889039 Opened 10 months ago Updated 7 months ago

SpecialPowers.isHeadless lies on Linux

Categories

(Testing :: Mochitest, defect, P2)

defect

Tracking

(Not tracked)

People

(Reporter: hiro, Unassigned)

Details

On linux we set MOZ_HEADLESS environment variable to 1 (at startup?), then unfortunately in gfxPlatform::IsHeadless, which is used for SpecialPowers.isHeadless we check the env variable just once, thus even on non-headless mode, SpecialPowers.isHeadless keeps returning true.

CCing :jld who wrote the code to set MOZ_HEADLESS variable there.

The severity field is not set for this bug.
:jmaher, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(jmaher)
Severity: -- → S3
Flags: needinfo?(jmaher)
Priority: -- → P2
Summary: SpecialPowres.isHeadless lies on Linux → SpecialPowers.isHeadless lies on Linux
You need to log in before you can comment on or make changes to this bug.