@ai-ecoverse/slicc-browsers 1.35.1 → 1.36.0
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/README.md +3 -2
- package/guard-driver.mjs +29 -1
- package/guard-runner.mjs +75 -13
- package/guard-vectors.json +10 -4
- package/package.json +2 -2
- package/schema/guard-vectors.schema.json +6 -0
package/README.md
CHANGED
|
@@ -232,8 +232,9 @@ You supply:
|
|
|
232
232
|
| --- | --- |
|
|
233
233
|
| `autoAttach` | auto-attach to child targets such as popups and iframes |
|
|
234
234
|
| `iframeAutoAttach` | auto-attach non-tab child targets (out-of-process iframes) under a page session |
|
|
235
|
-
| `errorFrameClass` | tell whether a failed (error) iframe was loading a protected URL, without being given the URL
|
|
236
|
-
| `browserSession` | send
|
|
235
|
+
| `errorFrameClass` | tell whether a failed (error) iframe was loading a protected URL, without being given the URL |
|
|
236
|
+
| `browserSession` | send `Target.*` and `Browser.*` on the browser session |
|
|
237
|
+
| `browserStorage` | send `Storage.*` there too (needs `browserSession`) |
|
|
237
238
|
| `browserContexts` | create isolated browser contexts |
|
|
238
239
|
| `discovery` | report target create/change without a session |
|
|
239
240
|
| `chromeUrlsAttach` | attach to `chrome://` pages (DevTools-port CDP; not `chrome.debugger`) |
|
package/guard-driver.mjs
CHANGED
|
@@ -66,6 +66,25 @@ function named(list, n = { i: 0 }) {
|
|
|
66
66
|
|
|
67
67
|
const flatten = (list) => list.flatMap((s) => [s, ...flatten(s.children ?? [])]);
|
|
68
68
|
|
|
69
|
+
const has = (capabilities, capability) =>
|
|
70
|
+
Array.isArray(capabilities)
|
|
71
|
+
? capabilities.includes(capability)
|
|
72
|
+
: capabilities?.[capability] === true;
|
|
73
|
+
|
|
74
|
+
const cookieStorageStep = (step) =>
|
|
75
|
+
step.session === 'page-or-browser' &&
|
|
76
|
+
/^Storage\.(getCookies|setCookies|clearCookies)$/.test(step.cdp ?? '');
|
|
77
|
+
|
|
78
|
+
export const browserStorageStep = (step, capabilities) =>
|
|
79
|
+
cookieStorageStep(step) && has(capabilities, 'browserStorage');
|
|
80
|
+
|
|
81
|
+
export const browserContextStep = (vector, capabilities) =>
|
|
82
|
+
flatten([...(vector?.setup ?? []), ...(vector?.trigger ?? [])]).some(
|
|
83
|
+
(step) =>
|
|
84
|
+
step.params?.browserContextId !== undefined ||
|
|
85
|
+
(cookieStorageStep(step) && has(capabilities, 'browserContexts'))
|
|
86
|
+
);
|
|
87
|
+
|
|
69
88
|
export const refusals = (vector) =>
|
|
70
89
|
flatten(named([...(vector.setup ?? []), ...(vector.trigger ?? [])]))
|
|
71
90
|
.filter((s) => s.refusable)
|
|
@@ -380,6 +399,10 @@ function declaredCapabilities(value) {
|
|
|
380
399
|
|
|
381
400
|
const autoAttachCaps = ['autoAttach', 'stockSetup', 'syntheticAutoAttach'];
|
|
382
401
|
|
|
402
|
+
const needsBrowser = (vector, cap, declared) =>
|
|
403
|
+
(vector?.requires ?? []).includes(cap) ||
|
|
404
|
+
(cap === 'browserSession' && browserContextStep(vector, declared));
|
|
405
|
+
|
|
383
406
|
function skipWhy(vector, row, known, guard, declared) {
|
|
384
407
|
const { reason } = row;
|
|
385
408
|
if (typeof reason !== 'string' || reason === '') return 'skip without a reason';
|
|
@@ -391,8 +414,13 @@ function skipWhy(vector, row, known, guard, declared) {
|
|
|
391
414
|
: `skip with a reason the runner never gives: ${reason}`;
|
|
392
415
|
if (reason.startsWith('not-supported:')) {
|
|
393
416
|
const cap = reason.slice('not-supported:'.length);
|
|
394
|
-
if (
|
|
417
|
+
if (
|
|
418
|
+
['extensionFrame', 'explicitAttach', 'browserSession', 'browserStorage'].includes(cap) &&
|
|
419
|
+
declared.includes(cap)
|
|
420
|
+
)
|
|
395
421
|
return `skip with not-supported:${cap} while the run declared ${cap}`;
|
|
422
|
+
if (['browserSession', 'browserStorage'].includes(cap) && !needsBrowser(vector, cap, declared))
|
|
423
|
+
return `skip with not-supported:${cap} on a row that does not need ${cap}`;
|
|
396
424
|
if (autoAttachCaps.includes(cap) && (vector?.requires ?? []).includes('explicitAttach'))
|
|
397
425
|
return `skip with not-supported:${cap} on an explicitAttach row`;
|
|
398
426
|
if (known.has(cap)) return null;
|
package/guard-runner.mjs
CHANGED
|
@@ -11,6 +11,8 @@ import { DEFAULT_EXTENSION_WORLD_ID, extensionWorld } from './extension-world.mj
|
|
|
11
11
|
import { frameRead } from './frame-read.mjs';
|
|
12
12
|
import {
|
|
13
13
|
beacon,
|
|
14
|
+
browserContextStep,
|
|
15
|
+
browserStorageStep,
|
|
14
16
|
canary,
|
|
15
17
|
debuggerCleanup,
|
|
16
18
|
debuggerPaused,
|
|
@@ -377,6 +379,18 @@ const resultNames = (check) =>
|
|
|
377
379
|
resultNames
|
|
378
380
|
),
|
|
379
381
|
].filter(Boolean);
|
|
382
|
+
const callNames = (check) =>
|
|
383
|
+
!check || typeof check !== 'object'
|
|
384
|
+
? []
|
|
385
|
+
: [
|
|
386
|
+
check.result,
|
|
387
|
+
...[check.from, check.compare, check.refused, check.reached, check.filtered?.from].flat(),
|
|
388
|
+
...[...(check.all ?? []), ...(check.any ?? []), ...(check.not ? [check.not] : [])].flatMap(
|
|
389
|
+
callNames
|
|
390
|
+
),
|
|
391
|
+
].filter((name) => typeof name === 'string');
|
|
392
|
+
const storageLeg = (step, capabilities) =>
|
|
393
|
+
`${step.as ?? step.cdp}: ${step.cdp} ran on the ${browserStorageStep(step, capabilities) ? 'browser' : 'page'} session`;
|
|
380
394
|
const stateCheck = (check) =>
|
|
381
395
|
check?.state ||
|
|
382
396
|
[...(check?.all ?? []), ...(check?.any ?? []), ...(check?.not ? [check.not] : [])]
|
|
@@ -563,6 +577,11 @@ class Execution {
|
|
|
563
577
|
return { sessionId, released };
|
|
564
578
|
}
|
|
565
579
|
|
|
580
|
+
stepSession(step) {
|
|
581
|
+
if (step.session === 'page-or-browser') this.note(storageLeg(step, this.options.capabilities));
|
|
582
|
+
return this.session(step.session);
|
|
583
|
+
}
|
|
584
|
+
|
|
566
585
|
session(kind) {
|
|
567
586
|
if (kind === 'browser') return undefined;
|
|
568
587
|
return this.sessions[kind === 'child' ? 'child' : 'page'];
|
|
@@ -1195,7 +1214,7 @@ class Execution {
|
|
|
1195
1214
|
const step = expand(raw, this.vars);
|
|
1196
1215
|
if (!supported(step.requires, this.options.capabilities) || step.text) continue;
|
|
1197
1216
|
if (!childSession && step.session === 'child') await this.childrenSettled();
|
|
1198
|
-
const session = childSession ?? this.
|
|
1217
|
+
const session = childSession ?? this.stepSession(step);
|
|
1199
1218
|
const first = await this.operation(step, session, phase);
|
|
1200
1219
|
if (!first) continue;
|
|
1201
1220
|
const out = await this.browserUiRetry(step, first, session, phase);
|
|
@@ -2059,7 +2078,7 @@ class Execution {
|
|
|
2059
2078
|
if (this.explicit) return this.explicitCall(step, params, sessionId);
|
|
2060
2079
|
const session =
|
|
2061
2080
|
step.session === 'page-or-browser' &&
|
|
2062
|
-
supported(['
|
|
2081
|
+
supported(['browserStorage'], this.options.capabilities) &&
|
|
2063
2082
|
/^Storage\.(getCookies|setCookies|clearCookies)$/.test(step.cdp)
|
|
2064
2083
|
? undefined
|
|
2065
2084
|
: sessionId;
|
|
@@ -2693,6 +2712,7 @@ class Execution {
|
|
|
2693
2712
|
observed[`${name}.either`] = holds;
|
|
2694
2713
|
if (holds === 'incomplete') incomplete.push(name);
|
|
2695
2714
|
}
|
|
2715
|
+
this.controlErrors(observed);
|
|
2696
2716
|
this.premises(observed);
|
|
2697
2717
|
this.unguardedPremises(observed);
|
|
2698
2718
|
this.explicitPremises(observed);
|
|
@@ -2700,6 +2720,41 @@ class Execution {
|
|
|
2700
2720
|
return { observed, incomplete };
|
|
2701
2721
|
}
|
|
2702
2722
|
|
|
2723
|
+
failedCalls() {
|
|
2724
|
+
const failed = new Map();
|
|
2725
|
+
for (const error of this.errors) {
|
|
2726
|
+
const [name, message] = error.split(' failed without a refusal: ');
|
|
2727
|
+
if (message !== undefined) failed.set(name, message);
|
|
2728
|
+
}
|
|
2729
|
+
for (const [name, out] of Object.entries(this.calls)) {
|
|
2730
|
+
if (name === '$cdp' || !out || out.ok || this.refused[name] === true) continue;
|
|
2731
|
+
const message = String(out.error?.message ?? out.error);
|
|
2732
|
+
if (!/refused/.test(message)) failed.set(name, message);
|
|
2733
|
+
}
|
|
2734
|
+
return failed;
|
|
2735
|
+
}
|
|
2736
|
+
|
|
2737
|
+
controlErrors(observed) {
|
|
2738
|
+
if (this.side !== 'control') return;
|
|
2739
|
+
const failed = this.failedCalls();
|
|
2740
|
+
this.unrun();
|
|
2741
|
+
if (!failed.size) return;
|
|
2742
|
+
const order = Object.keys(this.calls);
|
|
2743
|
+
const want = this.vector.control.expected ?? {};
|
|
2744
|
+
for (const [name, observation] of Object.entries(this.vector.observe ?? {})) {
|
|
2745
|
+
if (want[name] !== true || observed[name] !== false) continue;
|
|
2746
|
+
const read = [...(observation.dependsOn ?? []), ...callNames(observation.check)];
|
|
2747
|
+
const last = Math.max(...read.map((entry) => order.indexOf(entry)));
|
|
2748
|
+
const call = [...failed.keys()].find(
|
|
2749
|
+
(entry) => read.includes(entry) || (order.includes(entry) && order.indexOf(entry) < last)
|
|
2750
|
+
);
|
|
2751
|
+
if (!call) continue;
|
|
2752
|
+
observed[name] = 'incomplete';
|
|
2753
|
+
const reason = `${call} failed without a refusal: ${failed.get(call)}`;
|
|
2754
|
+
if (!this.incomplete.includes(reason)) this.incomplete.push(reason);
|
|
2755
|
+
}
|
|
2756
|
+
}
|
|
2757
|
+
|
|
2703
2758
|
premises(observed) {
|
|
2704
2759
|
const want = this.side === 'control' ? this.vector.control.expected : this.vector.expected;
|
|
2705
2760
|
const observe = this.vector.observe ?? {};
|
|
@@ -2950,14 +3005,6 @@ const skipRow = (base, reason) => ({
|
|
|
2950
3005
|
live: 'skip',
|
|
2951
3006
|
reason,
|
|
2952
3007
|
});
|
|
2953
|
-
const browserContextStep = (vector, capabilities) =>
|
|
2954
|
-
allSteps([...vector.setup, ...vector.trigger]).some(
|
|
2955
|
-
(step) =>
|
|
2956
|
-
step.params?.browserContextId !== undefined ||
|
|
2957
|
-
(step.session === 'page-or-browser' &&
|
|
2958
|
-
/^Storage\.(getCookies|setCookies|clearCookies)$/.test(step.cdp ?? '') &&
|
|
2959
|
-
supported(['browserContexts'], capabilities))
|
|
2960
|
-
);
|
|
2961
3008
|
|
|
2962
3009
|
function nullOrigins(value, targets) {
|
|
2963
3010
|
return [...q(value).matchAll(/\{([A-Za-z][A-Za-z-]*)\}/g)]
|
|
@@ -3435,12 +3482,18 @@ function validateScales(opts) {
|
|
|
3435
3482
|
throw new TypeError('refusalScale must be a number of at least 1');
|
|
3436
3483
|
}
|
|
3437
3484
|
|
|
3485
|
+
function validateCapabilities(capabilities) {
|
|
3486
|
+
if (declared('browserStorage', capabilities) && !declared('browserSession', capabilities))
|
|
3487
|
+
throw new TypeError('browserStorage needs browserSession in one run');
|
|
3488
|
+
const both = exclusive.filter((capability) => declared(capability, capabilities));
|
|
3489
|
+
if (declared('explicitAttach', capabilities) && both.length)
|
|
3490
|
+
throw new TypeError(`explicitAttach excludes ${both.join(' and ')} in one run`);
|
|
3491
|
+
}
|
|
3492
|
+
|
|
3438
3493
|
function validate(set, opts) {
|
|
3439
3494
|
if (!opts.fixture?.log) throw new TypeError('fixture.log is required');
|
|
3440
3495
|
validateScales(opts);
|
|
3441
|
-
|
|
3442
|
-
if (declared('explicitAttach', opts.capabilities) && both.length)
|
|
3443
|
-
throw new TypeError(`explicitAttach excludes ${both.join(' and ')} in one run`);
|
|
3496
|
+
validateCapabilities(opts.capabilities);
|
|
3444
3497
|
for (const vector of set.vectors)
|
|
3445
3498
|
for (const [name, observation] of Object.entries(vector.observe ?? {}))
|
|
3446
3499
|
if (!observation.check) throw new TypeError(`${vector.id}: ${name} lacks a check`);
|
|
@@ -3619,6 +3672,8 @@ export function summary({ set, results, guard = 'reference', sha = 'unknown', ca
|
|
|
3619
3672
|
.map(([reason, count]) => `${reason}=${count}`)
|
|
3620
3673
|
.join(', ')})`
|
|
3621
3674
|
: line;
|
|
3675
|
+
const caps = capabilities ?? {};
|
|
3676
|
+
const storageUndeclared = declared('browserSession', caps) && !declared('browserStorage', caps);
|
|
3622
3677
|
return {
|
|
3623
3678
|
...value,
|
|
3624
3679
|
pass: value.pass && observerSkipped === 0,
|
|
@@ -3626,6 +3681,13 @@ export function summary({ set, results, guard = 'reference', sha = 'unknown', ca
|
|
|
3626
3681
|
skips,
|
|
3627
3682
|
observerSkipped,
|
|
3628
3683
|
incomplete,
|
|
3684
|
+
...(storageUndeclared
|
|
3685
|
+
? {
|
|
3686
|
+
browserStorageUndeclared: true,
|
|
3687
|
+
browserStorageNote:
|
|
3688
|
+
'browserStorage undeclared: page-or-browser Storage.getCookies, Storage.setCookies and Storage.clearCookies steps ran on the page session, not the browser session',
|
|
3689
|
+
}
|
|
3690
|
+
: {}),
|
|
3629
3691
|
counts: Object.fromEntries(
|
|
3630
3692
|
['control', 'guarded', 'live'].map((side) => [
|
|
3631
3693
|
side,
|
package/guard-vectors.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"setVersion": "1.
|
|
3
|
+
"setVersion": "1.36.0",
|
|
4
4
|
"sources": [
|
|
5
5
|
{
|
|
6
6
|
"repo": "ai-ecoverse/slicc-cli",
|
|
@@ -101,7 +101,8 @@
|
|
|
101
101
|
},
|
|
102
102
|
"capabilities": {
|
|
103
103
|
"autoAttach": "Target.setAutoAttach, the children steps and child sessions",
|
|
104
|
-
"browserSession": "
|
|
104
|
+
"browserSession": "session-less Target.* and Browser.* calls on the browser session; session-less Storage.* there is browserStorage",
|
|
105
|
+
"browserStorage": "session-less Storage.* calls on the browser session, with or without browserContextId; needs browserSession; undeclared, page-or-browser Storage.getCookies, Storage.setCookies and Storage.clearCookies steps run on the row's page session, and a row that must send one on the browser session is skipped",
|
|
105
106
|
"browserContexts": "Target.createBrowserContext and Target.disposeBrowserContext",
|
|
106
107
|
"extensionWorld": "a browser hosting a foreign content-script extension isolated world on the ordinary fixture page",
|
|
107
108
|
"extensionFrame": "a browser hosting the harness extension, whose web-accessible frame.html an ordinary page embeds as an out-of-process chrome-extension: frame, like a password manager's autofill list",
|
|
@@ -18746,7 +18747,11 @@
|
|
|
18746
18747
|
},
|
|
18747
18748
|
"session": "page-or-browser",
|
|
18748
18749
|
"as": "storage",
|
|
18749
|
-
"on": "control"
|
|
18750
|
+
"on": "control",
|
|
18751
|
+
"requires": [
|
|
18752
|
+
"browserSession",
|
|
18753
|
+
"browserStorage"
|
|
18754
|
+
]
|
|
18750
18755
|
},
|
|
18751
18756
|
{
|
|
18752
18757
|
"cdp": "Storage.clearCookies",
|
|
@@ -18775,7 +18780,8 @@
|
|
|
18775
18780
|
],
|
|
18776
18781
|
"requires": [
|
|
18777
18782
|
"browserSession",
|
|
18778
|
-
"browserContexts"
|
|
18783
|
+
"browserContexts",
|
|
18784
|
+
"browserStorage"
|
|
18779
18785
|
],
|
|
18780
18786
|
"observe": {
|
|
18781
18787
|
"network": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-browsers",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.36.0",
|
|
4
4
|
"description": "SLICC's shared browser catalog, JSON schemas and discovery conformance corpus",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"validate": "node scripts/validate.mjs",
|
|
80
80
|
"lint": "slicc-lint && test -z \"$(gofmt -l .)\" && go mod tidy -diff && go vet ./... && GOOS=darwin go vet ./... && GOOS=windows go vet ./... && golangci-lint run && cargo fmt --check && cargo clippy --all-features --all-targets -- -D warnings && cargo check --target wasm32-wasip1 --no-default-features && cargo check --target wasm32-wasip1 --features serde && cargo check --target wasm32-wasip1 --all-features",
|
|
81
81
|
"format": "biome check --write . && gofmt -w . && cargo fmt",
|
|
82
|
-
"test": "export PATH=\"$HOME/.cargo/bin:$PATH\" && node --test --test-concurrency=1 test/integration/debugger-stage1-packaging.test.mjs test/integration/debugger-raw-control.test.mjs test/integration/debugger-cleanup.test.mjs test/integration/debugger-stage1-install-vectors.test.mjs test/integration/protected-premise.test.mjs test/integration/debugger-stage1-vectors.test.mjs test/integration/self-contained.test.mjs test/integration/seven-corpus.test.mjs test/integration/browser-runner.test.mjs test/integration/fixture-client.test.mjs test/integration/guard-redirect-carrier.test.mjs test/integration/guard-redirect-session-end.test.mjs test/integration/guard-redirect-history.test.mjs test/integration/guard-redirect-iframe.test.mjs test/integration/guard-redirect-through.test.mjs test/integration/guard-incomplete.test.mjs test/integration/guard-unparseable-wipe.test.mjs test/integration/guard-browser-ui.test.mjs test/integration/guard-snapshot-settle.test.mjs test/integration/guard-stall.test.mjs test/integration/guard-forged.test.mjs test/integration/guard-trusted-emulation.test.mjs test/integration/guard-exit-steps.test.mjs test/integration/guard-exit-refusal.test.mjs test/integration/guard-frame-read.test.mjs test/integration/guard-bfcache.test.mjs test/integration/guard-bfcache-marker.test.mjs test/integration/guard-bfcache-history.test.mjs test/integration/guard-bfcache-review.test.mjs test/integration/guard-bfcache-quarantine.test.mjs test/integration/guard-error-page-navigation.test.mjs test/integration/guard-error-page-events.test.mjs test/integration/guard-error-page-reload.test.mjs test/integration/guard-close-protected.test.mjs test/integration/guard-close-protected-shapes.test.mjs test/integration/guard-close-protected-shapes-chrome.test.mjs test/integration/guard-credential-export.test.mjs test/integration/guard-protected-parent-iframes.test.mjs test/integration/guard-protected-parent-iframes-chrome.test.mjs test/integration/guard-error-frame-class.test.mjs test/integration/guard-sign-in-hold.test.mjs test/integration/guard-cookie-plant-chrome.test.mjs test/integration/guard-cookie-plant.test.mjs test/integration/guard-protected-parent-page.test.mjs test/integration/guard-protected-parent-page-chrome.test.mjs test/integration/guard-world-paint.test.mjs test/integration/gates.test.mjs test/integration/validate.test.mjs test/integration/validate-guard-stock-setup.test.mjs test/integration/validate-guard-explicit.test.mjs test/integration/go.test.mjs test/integration/cargo.test.mjs test/integration/workflows.test.mjs test/integration/guard-refusable-nav.test.mjs test/integration/guard-protected-worker.test.mjs test/integration/guard-protected-worker-chrome-narrow.test.mjs test/integration/guard-protected-worker-chrome-hide.test.mjs test/integration/guard-protected-worker-chrome-hide-cut.test.mjs test/integration/guard-protected-worker-chrome-admit.test.mjs test/integration/guard-protected-worker-chrome-late.test.mjs test/integration/guard-protected-worker-chrome-rewrite.test.mjs test/integration/guard-protected-worker-chrome-rewrite-late.test.mjs test/integration/guard-sweep-union.test.mjs test/integration/guard-explicit-attach-chrome.test.mjs && node --test --test-concurrency=2 test/integration/guard-lifecycle.test.mjs test/integration/chromium-launch.test.mjs test/integration/guard-fit.test.mjs test/integration/guard-chain.test.mjs test/integration/guard-validation.test.mjs test/integration/guard-liveness.test.mjs test/integration/guard-observations.test.mjs test/integration/guard-child-latency.test.mjs test/integration/guard-child-latency-stress.test.mjs test/integration/guard-adoption.test.mjs test/integration/guard-scoping.test.mjs test/integration/guard-late-pause.test.mjs test/integration/guard-cookie-plant-raw-leg.test.mjs test/integration/guard-cookie-plant-deletion.test.mjs test/integration/guard-legs.test.mjs test/integration/guard-fetch-enable.test.mjs test/integration/guard-diagnostics.test.mjs test/integration/guard-chrome.test.mjs test/integration/guard-worlds.test.mjs test/integration/guard-world-discovery.test.mjs test/integration/guard-world-guesses.test.mjs test/integration/guard-unparseable.test.mjs test/integration/guard-redirect-secret.test.mjs test/integration/guard-error-page.test.mjs test/integration/guard-discovery.test.mjs test/integration/guard-bfcache-chrome.test.mjs test/integration/guard-browser-page.test.mjs test/integration/guard-scales.test.mjs test/integration/guard-shared-log.test.mjs test/integration/guard-pre-beacon.test.mjs test/integration/guard-world-pause.test.mjs test/integration/guard-reveal-overlap.test.mjs test/integration/guard-extension-frame-cast.test.mjs test/integration/guard-extension-frame-mouse.test.mjs test/integration/guard-extension-frame-click.test.mjs test/integration/guard-extension-frame-attach.test.mjs test/integration/guard-extension-frames.test.mjs test/integration/guard-stock-setup.test.mjs test/integration/guard-explicit-attach.test.mjs test/integration/guard-explicit-order.test.mjs test/integration/guard-stock-attack.test.mjs test/integration/guard-parallel.test.mjs test/integration/guard-client-exit.test.mjs test/integration/guard-runner-record.test.mjs test/integration/guard-runner.test.mjs test/integration/guard-sweep-ordinary.test.mjs test/integration/guard-sweep-seven.test.mjs test/integration/guard-sweep-vault.test.mjs test/integration/guard-sweep-vault-x.test.mjs test/integration/guard-sweep-apex.test.mjs test/integration/guard-sweep-idp.test.mjs test/integration/guard-sweep-others.test.mjs test/integration/guard-control-premises.test.mjs",
|
|
82
|
+
"test": "export PATH=\"$HOME/.cargo/bin:$PATH\" && node --test --test-concurrency=1 test/integration/debugger-stage1-packaging.test.mjs test/integration/debugger-raw-control.test.mjs test/integration/debugger-cleanup.test.mjs test/integration/debugger-stage1-install-vectors.test.mjs test/integration/protected-premise.test.mjs test/integration/debugger-stage1-vectors.test.mjs test/integration/self-contained.test.mjs test/integration/seven-corpus.test.mjs test/integration/browser-runner.test.mjs test/integration/fixture-client.test.mjs test/integration/guard-redirect-carrier.test.mjs test/integration/guard-redirect-session-end.test.mjs test/integration/guard-redirect-history.test.mjs test/integration/guard-redirect-iframe.test.mjs test/integration/guard-redirect-through.test.mjs test/integration/guard-incomplete.test.mjs test/integration/guard-unparseable-wipe.test.mjs test/integration/guard-browser-ui.test.mjs test/integration/guard-snapshot-settle.test.mjs test/integration/guard-stall.test.mjs test/integration/guard-forged.test.mjs test/integration/guard-trusted-emulation.test.mjs test/integration/guard-exit-steps.test.mjs test/integration/guard-exit-refusal.test.mjs test/integration/guard-frame-read.test.mjs test/integration/guard-bfcache.test.mjs test/integration/guard-bfcache-marker.test.mjs test/integration/guard-bfcache-history.test.mjs test/integration/guard-bfcache-review.test.mjs test/integration/guard-bfcache-quarantine.test.mjs test/integration/guard-error-page-navigation.test.mjs test/integration/guard-error-page-events.test.mjs test/integration/guard-error-page-reload.test.mjs test/integration/guard-close-protected.test.mjs test/integration/guard-close-protected-shapes.test.mjs test/integration/guard-close-protected-shapes-chrome.test.mjs test/integration/guard-credential-export.test.mjs test/integration/guard-protected-parent-iframes.test.mjs test/integration/guard-protected-parent-iframes-chrome.test.mjs test/integration/guard-error-frame-class.test.mjs test/integration/guard-sign-in-hold.test.mjs test/integration/guard-cookie-plant-chrome.test.mjs test/integration/guard-cookie-plant.test.mjs test/integration/guard-protected-parent-page.test.mjs test/integration/guard-protected-parent-page-chrome.test.mjs test/integration/guard-world-paint.test.mjs test/integration/gates.test.mjs test/integration/validate.test.mjs test/integration/validate-guard-stock-setup.test.mjs test/integration/validate-guard-explicit.test.mjs test/integration/go.test.mjs test/integration/cargo.test.mjs test/integration/workflows.test.mjs test/integration/guard-refusable-nav.test.mjs test/integration/guard-protected-worker.test.mjs test/integration/guard-protected-worker-chrome-narrow.test.mjs test/integration/guard-protected-worker-chrome-hide.test.mjs test/integration/guard-protected-worker-chrome-hide-cut.test.mjs test/integration/guard-protected-worker-chrome-admit.test.mjs test/integration/guard-protected-worker-chrome-late.test.mjs test/integration/guard-protected-worker-chrome-rewrite.test.mjs test/integration/guard-protected-worker-chrome-rewrite-late.test.mjs test/integration/guard-sweep-union.test.mjs test/integration/guard-explicit-attach-chrome.test.mjs && node --test --test-concurrency=2 test/integration/guard-lifecycle.test.mjs test/integration/chromium-launch.test.mjs test/integration/guard-fit.test.mjs test/integration/guard-chain.test.mjs test/integration/guard-validation.test.mjs test/integration/guard-liveness.test.mjs test/integration/guard-observations.test.mjs test/integration/guard-child-latency.test.mjs test/integration/guard-child-latency-stress.test.mjs test/integration/guard-adoption.test.mjs test/integration/guard-scoping.test.mjs test/integration/guard-late-pause.test.mjs test/integration/guard-cookie-plant-raw-leg.test.mjs test/integration/guard-cookie-plant-deletion.test.mjs test/integration/guard-legs.test.mjs test/integration/guard-fetch-enable.test.mjs test/integration/guard-diagnostics.test.mjs test/integration/guard-chrome.test.mjs test/integration/guard-worlds.test.mjs test/integration/guard-world-discovery.test.mjs test/integration/guard-world-guesses.test.mjs test/integration/guard-unparseable.test.mjs test/integration/guard-redirect-secret.test.mjs test/integration/guard-error-page.test.mjs test/integration/guard-discovery.test.mjs test/integration/guard-bfcache-chrome.test.mjs test/integration/guard-browser-page.test.mjs test/integration/guard-scales.test.mjs test/integration/guard-shared-log.test.mjs test/integration/guard-pre-beacon.test.mjs test/integration/guard-world-pause.test.mjs test/integration/guard-reveal-overlap.test.mjs test/integration/guard-extension-frame-cast.test.mjs test/integration/guard-extension-frame-mouse.test.mjs test/integration/guard-extension-frame-click.test.mjs test/integration/guard-extension-frame-attach.test.mjs test/integration/guard-extension-frames.test.mjs test/integration/guard-stock-setup.test.mjs test/integration/guard-explicit-attach.test.mjs test/integration/guard-explicit-order.test.mjs test/integration/guard-stock-attack.test.mjs test/integration/guard-parallel.test.mjs test/integration/guard-client-exit.test.mjs test/integration/guard-runner-record.test.mjs test/integration/guard-runner.test.mjs test/integration/guard-sweep-ordinary.test.mjs test/integration/guard-sweep-seven.test.mjs test/integration/guard-sweep-vault.test.mjs test/integration/guard-sweep-vault-x.test.mjs test/integration/guard-sweep-apex.test.mjs test/integration/guard-sweep-idp.test.mjs test/integration/guard-sweep-others.test.mjs test/integration/guard-browser-storage.test.mjs test/integration/guard-control-premises.test.mjs",
|
|
83
83
|
"test:unit": "mkdir -p coverage/unit && node --experimental-test-coverage --test --test-concurrency=1 --test-reporter=lcov --test-reporter-destination=coverage/unit/lcov.info test/unit/*.test.mjs && go test -race -cover ./...",
|
|
84
84
|
"build": "go build ./... && cargo build --all-features && cargo build --target wasm32-wasip1 --all-features && npm pack --dry-run",
|
|
85
85
|
"prepublishOnly": "node scripts/set-crate-version.mjs \"$npm_package_version\"",
|
|
@@ -84,6 +84,7 @@
|
|
|
84
84
|
"required": [
|
|
85
85
|
"autoAttach",
|
|
86
86
|
"browserSession",
|
|
87
|
+
"browserStorage",
|
|
87
88
|
"browserContexts",
|
|
88
89
|
"chromeUrlsAttach",
|
|
89
90
|
"extensionWorld",
|
|
@@ -103,6 +104,10 @@
|
|
|
103
104
|
"type": "string",
|
|
104
105
|
"minLength": 1
|
|
105
106
|
},
|
|
107
|
+
"browserStorage": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"minLength": 1
|
|
110
|
+
},
|
|
106
111
|
"browserContexts": {
|
|
107
112
|
"type": "string",
|
|
108
113
|
"minLength": 1
|
|
@@ -212,6 +217,7 @@
|
|
|
212
217
|
"enum": [
|
|
213
218
|
"autoAttach",
|
|
214
219
|
"browserSession",
|
|
220
|
+
"browserStorage",
|
|
215
221
|
"browserContexts",
|
|
216
222
|
"chromeUrlsAttach",
|
|
217
223
|
"extensionWorld",
|