Skip to content

Commit 6a4d105

Browse files
RReverserkripken
andauthored
Remove HEADLESS option (#24537)
Closes #20554. --------- Co-authored-by: Alon Zakai <[email protected]>
1 parent c08fbb0 commit 6a4d105

File tree

13 files changed

+11
-1420
lines changed

13 files changed

+11
-1420
lines changed

ChangeLog.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ See docs/process.md for more on how version tagging works.
2222
-----------------------
2323
- The `ENVIRONMENT` setting will now be automatically updated to include
2424
`worker` if multi-threading is enabled. (#24525)
25+
- Removed the `HEADLESS` option. It tried to simulate a minimal browser-like
26+
environment before browser engines had real headless modes. For headless
27+
testing, users are now encouraged to use
28+
[Playwright](https://playwright.dev/), [Puppeteer](https://pptr.dev/) or
29+
Node.js with [JSDOM](https://github.com/jsdom/jsdom) instead. You can also
30+
use browser headless mode with `emrun` as follows:
31+
emrun --browser=chrome --browser-args=--headless [..]
32+
for chrome, or
33+
emrun --browser=firefox --browser-args=-headless [..]
34+
for firefox. (#24537)
2535

2636
4.0.10 - 06/07/25
2737
-----------------

eslint.config.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ export default [{
4646
'src/cpuprofiler.js',
4747
'src/memoryprofiler.js',
4848
'src/gl-matrix.js',
49-
'src/headless.js',
50-
'src/headlessCanvas.js',
5149
'src/source_map_support.js',
5250
'src/Fetch.js',
5351
'src/settings.js',

site/source/docs/tools_reference/settings_reference.rst

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1841,20 +1841,6 @@ testing. See test_chunked_synchronous_xhr in runner.py and library.js.
18411841

18421842
Default value: false
18431843

1844-
.. _headless:
1845-
1846-
HEADLESS
1847-
========
1848-
1849-
If 1, will include shim code that tries to 'fake' a browser environment, in
1850-
order to let you run a browser program (say, using SDL) in the shell.
1851-
Obviously nothing is rendered, but this can be useful for benchmarking and
1852-
debugging if actual rendering is not the issue. Note that the shim code is
1853-
very partial - it is hard to fake a whole browser! - so keep your
1854-
expectations low for this to work.
1855-
1856-
Default value: false
1857-
18581844
.. _deterministic:
18591845

18601846
DETERMINISTIC

src/headless.js

Lines changed: 0 additions & 290 deletions
This file was deleted.

0 commit comments

Comments
 (0)