@zixt/host 0.0.72 → 0.0.73
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/dist/index.js +11 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ import { homedir } from "node:os";
|
|
|
31
31
|
// package.json
|
|
32
32
|
var package_default = {
|
|
33
33
|
name: "@zixt/host",
|
|
34
|
-
version: "0.0.
|
|
34
|
+
version: "0.0.73",
|
|
35
35
|
type: "module",
|
|
36
36
|
exports: {
|
|
37
37
|
".": "./src/client.ts",
|
|
@@ -26844,6 +26844,16 @@ function createPlaywrightBrowserAdapterFactory(dependencies = {}) {
|
|
|
26844
26844
|
const playwright = await load();
|
|
26845
26845
|
const context = await playwright.chromium.launchPersistentContext(profileDir, {
|
|
26846
26846
|
headless: true,
|
|
26847
|
+
// Without a channel, Playwright resolves `headless: true` to its
|
|
26848
|
+
// `chromium_headless_shell` build — a stripped binary missing pieces
|
|
26849
|
+
// a browser is expected to have (no `window.chrome`, no plugins, a
|
|
26850
|
+
// single-entry `navigator.languages`). Google Accounts reads that
|
|
26851
|
+
// shape as "this browser or app may not be secure" and refuses the
|
|
26852
|
+
// sign-in outright, which made every site behind a Google login a
|
|
26853
|
+
// dead end for the person watching the panel. `chromium` selects the
|
|
26854
|
+
// full browser this adapter's capability probe already checks for
|
|
26855
|
+
// (`executablePath()` resolves to it), so the two now agree.
|
|
26856
|
+
channel: "chromium",
|
|
26847
26857
|
viewport,
|
|
26848
26858
|
// Headless Chromium announces itself in two ways that bot protection
|
|
26849
26859
|
// reads as "not a person": `HeadlessChrome` in the user agent, and
|