@intuned/runtime-dev 1.3.27-dev3 → 1.3.27-dev4
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/common/launchBrowser.js +8 -10
- package/package.json +1 -1
|
@@ -25,14 +25,12 @@ var _intunedJson = require("./intunedJson");
|
|
|
25
25
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
26
26
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
27
27
|
const execAsync = (0, _util.promisify)(_child_process.exec);
|
|
28
|
-
function
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
function getKeychainBypassArgs() {
|
|
29
|
+
const args = ["--password-store=basic"];
|
|
30
|
+
if (process.platform === "darwin" && process.env.INTUNED_MAC_DISABLE_KEYCHAIN_PROMPTS !== "0") {
|
|
31
|
+
args.unshift("--use-mock-keychain");
|
|
31
32
|
}
|
|
32
|
-
|
|
33
|
-
return [];
|
|
34
|
-
}
|
|
35
|
-
return ["--use-mock-keychain", "--password-store=basic"];
|
|
33
|
+
return args;
|
|
36
34
|
}
|
|
37
35
|
const DEFAULT_USER_PREFERENCES = {
|
|
38
36
|
plugins: {
|
|
@@ -152,8 +150,8 @@ async function launchChromium(options) {
|
|
|
152
150
|
const ignoreHttpErrors = await getIgnoreHttpErrorsFromConfig(ignoreHttpErrorsParam);
|
|
153
151
|
const defaultArgsToIgnore = ["--disable-extensions", "--disable-component-extensions-with-background-pages", "--disable-background-networking", "--disable-backgrounding-occluded-windows", "--disable-background-timer-throttling"];
|
|
154
152
|
const extraArgs = ["--disable-notifications"];
|
|
155
|
-
const
|
|
156
|
-
extraArgs.push(...
|
|
153
|
+
const keychainBypassArgs = getKeychainBypassArgs();
|
|
154
|
+
extraArgs.push(...keychainBypassArgs);
|
|
157
155
|
const stealthConfig = await (0, _intunedJson.getStealthModeConfig)();
|
|
158
156
|
if (stealthConfig.enabled) {
|
|
159
157
|
extraArgs.push("--stealth-mode");
|
|
@@ -196,7 +194,7 @@ async function launchChromium(options) {
|
|
|
196
194
|
const viewport = null;
|
|
197
195
|
const userAgent = process.env.__PLAYWRIGHT_USER_AGENT_OVERRIDE ?? (await getHeadlessUserAgent({
|
|
198
196
|
executablePath,
|
|
199
|
-
args:
|
|
197
|
+
args: keychainBypassArgs
|
|
200
198
|
}));
|
|
201
199
|
const context = await playwright.chromium.launchPersistentContext(userDataDir, {
|
|
202
200
|
userAgent,
|