Skip to content

Commit

Permalink
feat(core): enable WebGL in headless mode
Browse files Browse the repository at this point in the history
Summary: so memlab or puppeteer won't throw error in headless mode when the web page uses WebGL

Reviewed By: tulga1970

Differential Revision: D54936137

fbshipit-source-id: 2c5e03a5d86c6f8a29a332aa46e44cbca84f3307
  • Loading branch information
JacksonGL authored and facebook-github-bot committed Apr 9, 2024
1 parent cb19d8b commit 5236059
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/core/src/lib/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,9 @@ export class MemLabConfig {
'--js-flags="--no-move-object-start"',
// Alreay on by default, just want to make sure
'--enable-precise-memory-info',
// sites using WebGL (three.js) will fail
// in headless mode without WebGL
'--enable-webgl',
'browser-test',
],
defaultViewport,
Expand Down

0 comments on commit 5236059

Please sign in to comment.