Skip to content

Commit 6247d21

Browse files
committed
Attempt to use headless mode with non-native widgets. Breaks WebGL; what else?
1 parent f00c527 commit 6247d21

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

security/sandbox/linux/launch/SandboxLaunch.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,11 @@ void SandboxLaunchPrepare(GeckoProcessType aType,
332332
false)) {
333333
flags |= CLONE_NEWUSER;
334334
}
335+
336+
if (Preferences::GetBool("widget.disable-native-theme-for-content")) {
337+
aOptions->env_map["MOZ_HEADLESS"] = "1";
338+
}
339+
335340
break;
336341
default:
337342
// Nothing yet.

0 commit comments

Comments
 (0)