gm-plugkit 2.0.1862 → 2.0.1863

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-plugkit",
3
- "version": "2.0.1862",
3
+ "version": "2.0.1863",
4
4
  "description": "Bootstrap and daemon-spawn tool for gm plugkit binary. Downloads the correct platform binary, verifies SHA256, and starts the spool watcher daemon. Includes plugkit-wasm-wrapper for WASM-based spool watching.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -1371,7 +1371,8 @@ function startManagedBrowser(pw, profileDir, cwd) {
1371
1371
  }
1372
1372
  try { reapOrphanChromiums(cwd, 'pre-spawn'); } catch (_) {}
1373
1373
  const port = findFreePortSync();
1374
- let noSandbox = process.env.GM_BROWSER_NO_SANDBOX === '1';
1374
+ const noSandboxEnv = process.env.GM_BROWSER_NO_SANDBOX;
1375
+ let noSandbox = noSandboxEnv === '0' ? false : (noSandboxEnv === '1' || process.platform === 'win32');
1375
1376
  let { pid, chromeLogPath } = spawnChromiumOnce(browserBin, profileDir, port, headless, noSandbox, cwd);
1376
1377
  logEvent('plugkit', 'browser.chromium-launched', { pid, port, profileDir, headless, noSandbox, binary: browserBin, chromeLogPath });
1377
1378
  let ready = waitForCdpReady(port, 30000);