Skip to content

Windows cannot run headless mode #37973

@yezhizhen

Description

@yezhizhen

Describe the bug:

pub fn init(&mut self, event_loop: Option<&ActiveEventLoop>) {
let headless = self.servoshell_preferences.headless;
assert_eq!(headless, event_loop.is_none());

The assertion always fails, so it still runs headed window.

To Reproduce:
./mach test-wpt -r tests\wpt\mozilla\tests\mozilla\window_resizeTo.html --headless

Platform:
Windows

Metadata

Metadata

Assignees

Labels

A-servoshellP-windowsAny version of Windows capable of running Servo

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions