@ai-ecoverse/slicc-browsers 1.30.0 → 1.30.2
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 +8 -8
- package/extension-frame.mjs +78 -18
- package/guard-runner.mjs +37 -5
- package/guard-vectors.json +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ One catalog, four vector sets and schemas, shared as a Go module, Rust crate and
|
|
|
20
20
|
|
|
21
21
|
| file | what it is |
|
|
22
22
|
| --- | --- |
|
|
23
|
-
| [`catalog.json`](catalog.json) | every known Chromium browser and Electron app,
|
|
23
|
+
| [`catalog.json`](catalog.json) | every known Chromium browser and Electron app, and the rules for finding, ranking and launching them ([below](#the-catalog)) |
|
|
24
24
|
| [`corpus/`](corpus), `corpus.json` | discovery conformance cases: a fake machine each, with the ranked browser list it must produce |
|
|
25
25
|
| [`protected.json`](protected.json), [`protected.mjs`](protected.mjs) | protected-origin test vectors, and a reference matcher in JavaScript |
|
|
26
26
|
| [`guard-vectors.json`](guard-vectors.json) | the CDP scenarios every guard must pass |
|
|
@@ -105,19 +105,19 @@ The catalog is `"schema": 1`. Minor releases only add fields; changing or removi
|
|
|
105
105
|
|
|
106
106
|
## Discovery
|
|
107
107
|
|
|
108
|
-
A program lists the browsers it can attach to, from four sources: `DevToolsActivePort` files in known user-data dirs and SLICC profiles, `--cdp` URLs, a probe
|
|
108
|
+
A program lists the browsers it can attach to, from four sources: `DevToolsActivePort` files in known user-data dirs and SLICC profiles, `--cdp` URLs, a port probe, and the process list. It ranks the endpoints, adds the installed browsers it could launch, and prints the list in the shape of [`schema/browsers.schema.json`](schema/browsers.schema.json). Seven's tabs are reported by origin only, never with a path, query or title.
|
|
109
109
|
|
|
110
110
|
### The process source
|
|
111
111
|
|
|
112
|
-
The process scan finds browsers that something else started with `--remote-debugging-port`.
|
|
112
|
+
The process scan finds browsers that something else started with `--remote-debugging-port`. The exact parsing rules are in `catalog.json`'s `discovery.process` and the corpus's `process-*` cases.
|
|
113
113
|
|
|
114
114
|
### SLICC six's profiles
|
|
115
115
|
|
|
116
|
-
SLICC six, the previous generation, launches Chrome in a profile of its own
|
|
116
|
+
SLICC six, the previous generation, launches Chrome in a profile of its own. Discovery lists such an endpoint, marks it `six: true` and ranks it last, but **never picks it by itself**. Only an explicit request, such as `slicc --profile six`, uses it. The roots per OS are in `catalog.json`'s `profiles.six`.
|
|
117
117
|
|
|
118
118
|
## The corpus
|
|
119
119
|
|
|
120
|
-
Each case in `corpus/<case>/` is a fake machine: a home directory, `DevToolsActivePort` files, fake `/json/version` and `/json/list` answers, a fake process list, `--cdp` URLs and installed browsers. `expected.json` holds the ranked list it must produce. `case.json`'s `needs` say what a program must support to run the case
|
|
120
|
+
Each case in `corpus/<case>/` is a fake machine: a home directory, `DevToolsActivePort` files, fake `/json/version` and `/json/list` answers, a fake process list, `--cdp` URLs and installed browsers. `expected.json` holds the ranked list it must produce. `case.json`'s `needs` say what a program must support to run the case, and a program skips cases it can't run.
|
|
121
121
|
|
|
122
122
|
For each case, a test harness:
|
|
123
123
|
1. writes the case's files into a temporary home;
|
|
@@ -154,7 +154,7 @@ for case in corpus().cases {
|
|
|
154
154
|
}
|
|
155
155
|
```
|
|
156
156
|
|
|
157
|
-
slicc-cli's `test/integration/corpus_test.go` is a complete harness.
|
|
157
|
+
slicc-cli's `test/integration/corpus_test.go` is a complete harness.
|
|
158
158
|
|
|
159
159
|
## Protected origins
|
|
160
160
|
|
|
@@ -185,7 +185,7 @@ Credential origins (`catalog.credentialOrigins`) withhold cookie/storage export
|
|
|
185
185
|
|
|
186
186
|
## Guard vectors
|
|
187
187
|
|
|
188
|
-
A guard sits between a CDP client and the browser and keeps the client away from protected origins. `guard-vectors.json` holds the attacks every guard must pass
|
|
188
|
+
A guard sits between a CDP client and the browser and keeps the client away from protected origins. `guard-vectors.json` holds the attacks every guard must pass.
|
|
189
189
|
|
|
190
190
|
Each vector runs twice. The **control** runs against an ordinary origin and must work. The **guarded** leg runs through the guard against a protected target and must be refused or have no effect. A **liveness** check outside the guard proves the target was really there. All three must pass.
|
|
191
191
|
|
|
@@ -271,7 +271,7 @@ You need Go 1.26, Rust stable with `wasm32-wasip1`, Node 24+, and Chrome or Chro
|
|
|
271
271
|
| --- | --- |
|
|
272
272
|
| `npm run corpus` | rebuilds `corpus.json` from `corpus/` |
|
|
273
273
|
| `npm run validate` | checks every file against its schema and the rules a schema can't express, and runs `protected.json` through `protected.mjs` |
|
|
274
|
-
| `npm run lint` |
|
|
274
|
+
| `npm run lint` | the JavaScript, Go and Rust linters and formatters, and a `wasm32-wasip1` check of each feature |
|
|
275
275
|
| `npm test` | every file in `test/integration/`: validation, the Node, Go and Rust tests, and the reference runner against real Chromium with no guard, where every control must pass and every protection must fail |
|
|
276
276
|
| `npm run build` | the Go module, the crate (also for `wasm32-wasip1`), and the npm package |
|
|
277
277
|
|
package/extension-frame.mjs
CHANGED
|
@@ -141,11 +141,53 @@ async function clickAt(client, _reader, session, _observer, x, y) {
|
|
|
141
141
|
return { out: down.ok ? up : down, ok: down.ok && up.ok };
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
const CLICK_MS = 1000;
|
|
145
|
+
const CLICK_ARM = `(() => {
|
|
146
|
+
delete document.body.dataset.clicked;
|
|
147
|
+
const target = document.getElementById("c9-click") ?? document;
|
|
148
|
+
globalThis.__sliccC9Click = new Promise((resolve) =>
|
|
149
|
+
target.addEventListener("click", () => resolve(true), { once: true })
|
|
150
|
+
);
|
|
151
|
+
return true;
|
|
152
|
+
})()`;
|
|
153
|
+
const CLICK_WAIT = `Promise.race([
|
|
154
|
+
globalThis.__sliccC9Click ?? Promise.resolve(false),
|
|
155
|
+
new Promise((resolve) => setTimeout(resolve, ${CLICK_MS}, false)),
|
|
156
|
+
]).then((hit) => hit === true || document.body.dataset.clicked === "yes")`;
|
|
157
|
+
|
|
158
|
+
async function click(client, reader, session, observer, { side, missing, name = 'click' } = {}) {
|
|
159
|
+
await observe(reader, observer, CLICK_ARM);
|
|
146
160
|
const pressed = await clickAt(client, reader, session, observer, 20, 20);
|
|
147
|
-
const
|
|
148
|
-
|
|
161
|
+
const measured = side === 'control' && Array.isArray(missing);
|
|
162
|
+
if (!pressed.ok) {
|
|
163
|
+
if (!measured || protectedRefusal(pressed.out)) return { out: pressed.out, ok: false };
|
|
164
|
+
missing.push(`${name}: ${refusal(pressed.out) || 'transport error'}`);
|
|
165
|
+
return { out: pressed.out, ok: 'incomplete' };
|
|
166
|
+
}
|
|
167
|
+
let timer;
|
|
168
|
+
const waited = await Promise.race([
|
|
169
|
+
outcome(
|
|
170
|
+
reader.send(
|
|
171
|
+
'Runtime.evaluate',
|
|
172
|
+
{ expression: CLICK_WAIT, awaitPromise: true, returnByValue: true },
|
|
173
|
+
observer
|
|
174
|
+
)
|
|
175
|
+
),
|
|
176
|
+
new Promise((resolve) => {
|
|
177
|
+
timer = setTimeout(resolve, CLICK_MS * 2, null);
|
|
178
|
+
}),
|
|
179
|
+
]).finally(() => clearTimeout(timer));
|
|
180
|
+
if (waited?.ok && !waited.result.exceptionDetails && waited.result.result?.value === true)
|
|
181
|
+
return { out: pressed.out, ok: true };
|
|
182
|
+
if (!measured) return { out: pressed.out, ok: false };
|
|
183
|
+
const why =
|
|
184
|
+
waited == null
|
|
185
|
+
? 'no answer'
|
|
186
|
+
: !waited.ok
|
|
187
|
+
? refusal(waited)
|
|
188
|
+
: (waited.result.exceptionDetails?.text ?? `not delivered within ${CLICK_MS}ms`);
|
|
189
|
+
missing.push(`${name}: ${why}`);
|
|
190
|
+
return { out: pressed.out, ok: 'incomplete' };
|
|
149
191
|
}
|
|
150
192
|
|
|
151
193
|
async function key(client, reader, session, observer, beforeSend, requireTyped = true) {
|
|
@@ -835,7 +877,14 @@ async function driveInput(client, reader, page, observer, inputList, mode, frame
|
|
|
835
877
|
const f = ${frameLookup};
|
|
836
878
|
if (!f) return null;
|
|
837
879
|
const r = f.getBoundingClientRect();
|
|
838
|
-
|
|
880
|
+
let left = r.left;
|
|
881
|
+
let top = r.top;
|
|
882
|
+
for (let w = f.ownerDocument?.defaultView; w && w !== window && w.frameElement; w = w.parent) {
|
|
883
|
+
const o = w.frameElement.getBoundingClientRect();
|
|
884
|
+
left += o.left + w.frameElement.clientLeft;
|
|
885
|
+
top += o.top + w.frameElement.clientTop;
|
|
886
|
+
}
|
|
887
|
+
return { x: left + r.width / 2, y: top + r.height / 2, w: r.width, h: r.height };
|
|
839
888
|
})()`
|
|
840
889
|
);
|
|
841
890
|
const point = clearPoint(box);
|
|
@@ -858,11 +907,7 @@ async function driveInput(client, reader, page, observer, inputList, mode, frame
|
|
|
858
907
|
box && box.h > 0 ? box.y : 10
|
|
859
908
|
);
|
|
860
909
|
await refocus();
|
|
861
|
-
const
|
|
862
|
-
client.send('Input.dispatchKeyEvent', { type: 'keyDown', key: 'Tab', code: 'Tab' }, page)
|
|
863
|
-
);
|
|
864
|
-
await refocus();
|
|
865
|
-
const pressed = await click(client, reader, page, observer);
|
|
910
|
+
const pressed = await click(client, reader, page, observer, { side, missing });
|
|
866
911
|
await refocus();
|
|
867
912
|
const typed = await key(client, reader, page, observer, refocus, mode !== 'focused');
|
|
868
913
|
await refocus();
|
|
@@ -878,6 +923,10 @@ async function driveInput(client, reader, page, observer, inputList, mode, frame
|
|
|
878
923
|
mode
|
|
879
924
|
);
|
|
880
925
|
await refocus();
|
|
926
|
+
const tab = await outcome(
|
|
927
|
+
client.send('Input.dispatchKeyEvent', { type: 'keyDown', key: 'Tab', code: 'Tab' }, page)
|
|
928
|
+
);
|
|
929
|
+
await refocus();
|
|
881
930
|
const focusedKey = await outcome(
|
|
882
931
|
client.send('Input.dispatchKeyEvent', { type: 'keyDown', key: 'a', code: 'KeyA' }, page)
|
|
883
932
|
);
|
|
@@ -1350,9 +1399,15 @@ async function finishReveal(
|
|
|
1350
1399
|
page,
|
|
1351
1400
|
observer,
|
|
1352
1401
|
frameMs,
|
|
1353
|
-
{ ok, text, overlap, revealRacePass }
|
|
1402
|
+
{ ok, text, overlap, revealRacePass },
|
|
1403
|
+
side,
|
|
1404
|
+
missing
|
|
1354
1405
|
) {
|
|
1355
|
-
const revealedPress = await click(client, reader, page, observer
|
|
1406
|
+
const revealedPress = await click(client, reader, page, observer, {
|
|
1407
|
+
side,
|
|
1408
|
+
missing,
|
|
1409
|
+
name: 'revealedClick',
|
|
1410
|
+
});
|
|
1356
1411
|
await style(reader, observer, 'hidden', frameMs);
|
|
1357
1412
|
const rehidden = await shot(client, page);
|
|
1358
1413
|
return {
|
|
@@ -1412,15 +1467,20 @@ export async function driveReveal(client, reader, page, observer, frameMs, missi
|
|
|
1412
1467
|
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
|
|
1413
1468
|
last = await attemptRevealCapture(client, reader, page, observer, side);
|
|
1414
1469
|
if (last.overlap !== 'unknown')
|
|
1415
|
-
return finishReveal(client, reader, page, observer, frameMs, last);
|
|
1470
|
+
return finishReveal(client, reader, page, observer, frameMs, last, side, missing);
|
|
1416
1471
|
if (attempt < maxAttempts) await style(reader, observer, 'hidden', frameMs);
|
|
1417
1472
|
}
|
|
1418
1473
|
missing.push(`reveal/capture overlap unproven (${maxAttempts} attempts)`);
|
|
1419
|
-
return finishReveal(
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1474
|
+
return finishReveal(
|
|
1475
|
+
client,
|
|
1476
|
+
reader,
|
|
1477
|
+
page,
|
|
1478
|
+
observer,
|
|
1479
|
+
frameMs,
|
|
1480
|
+
{ ...last, overlap: 'unknown', revealRacePass: false },
|
|
1481
|
+
side,
|
|
1482
|
+
missing
|
|
1483
|
+
);
|
|
1424
1484
|
}
|
|
1425
1485
|
|
|
1426
1486
|
function frameObservations({ pageAttached, origin, read, leaks, picture, input, captures }) {
|
package/guard-runner.mjs
CHANGED
|
@@ -136,9 +136,27 @@ const hostOnly = (text) =>
|
|
|
136
136
|
const beyondOrigin = (url) => !['', '/'].includes(url.pathname) || Boolean(url.search || url.hash);
|
|
137
137
|
|
|
138
138
|
const nonBlankAbout = (text) => parseURL(text)?.protocol === 'about:' && text !== 'about:blank';
|
|
139
|
+
const aboutParts = /[?#&=]+/;
|
|
140
|
+
const aboutName = /^[^/?#]*/;
|
|
141
|
+
const leadsWith = (text, path) => Boolean(path) && (text === path || text.startsWith(`${path}/`));
|
|
142
|
+
const aboutCarries = (text, check) => {
|
|
143
|
+
const rest = text.slice('about:'.length);
|
|
144
|
+
const [first, ...others] = rest.split(aboutParts);
|
|
145
|
+
const parts = [first, first.replace(aboutName, ''), ...others];
|
|
146
|
+
const bareName = (part) => part.replace(/^\/+/, '');
|
|
147
|
+
return (
|
|
148
|
+
Boolean(check.secret && rest.includes(check.secret)) ||
|
|
149
|
+
parts.some(
|
|
150
|
+
(part) =>
|
|
151
|
+
check.protectedHost(check.hostToken(bareName(part))) ||
|
|
152
|
+
(part.startsWith('/') && leadsWith(bareName(part), check.path))
|
|
153
|
+
)
|
|
154
|
+
);
|
|
155
|
+
};
|
|
139
156
|
|
|
140
157
|
const layerRule = (text, check) => {
|
|
141
|
-
if (nonBlankAbout(text)
|
|
158
|
+
if (nonBlankAbout(text) && (!check.aboutContent || aboutCarries(text, check)))
|
|
159
|
+
return 'about: non-bare';
|
|
142
160
|
if (check.relative && text.startsWith('//') && check.protectedHost(asURL(text)?.host))
|
|
143
161
|
return 'scheme-relative url';
|
|
144
162
|
const urlHost = parseURL(text)?.host;
|
|
@@ -157,7 +175,7 @@ const namingRule = (all, check) => {
|
|
|
157
175
|
|
|
158
176
|
export function redactionLeak(
|
|
159
177
|
info,
|
|
160
|
-
{ targetId, origin, tag },
|
|
178
|
+
{ targetId, origin, path, tag },
|
|
161
179
|
{
|
|
162
180
|
normalize = normalizeHost,
|
|
163
181
|
hostToken = leadingHost,
|
|
@@ -166,13 +184,23 @@ export function redactionLeak(
|
|
|
166
184
|
embedded = true,
|
|
167
185
|
relative = true,
|
|
168
186
|
fold = foldNFKC,
|
|
187
|
+
aboutContent = true,
|
|
169
188
|
} = {}
|
|
170
189
|
) {
|
|
171
190
|
const exact = parseURL(origin)?.host;
|
|
172
191
|
const host = normalize(exact ?? '');
|
|
173
192
|
const protectedHost = (candidate) => Boolean(host && candidate) && normalize(candidate) === host;
|
|
174
|
-
const check = { exact, protectedHost, hostToken, relative };
|
|
175
193
|
const prepared = (value) => fold(unwrapped(fold(String(value ?? ''))));
|
|
194
|
+
const secret = String(tag).toLowerCase();
|
|
195
|
+
const check = {
|
|
196
|
+
exact,
|
|
197
|
+
protectedHost,
|
|
198
|
+
hostToken,
|
|
199
|
+
relative,
|
|
200
|
+
aboutContent,
|
|
201
|
+
secret,
|
|
202
|
+
path: prepared(path).replace(/^\/+/, ''),
|
|
203
|
+
};
|
|
176
204
|
const texts = (value) => layers(prepared(value), schemes).map((text) => trim(fold(text)));
|
|
177
205
|
const embeds = (value) =>
|
|
178
206
|
embedded &&
|
|
@@ -199,7 +227,6 @@ export function redactionLeak(
|
|
|
199
227
|
}
|
|
200
228
|
const embedding = names.find((field) => embeds(fields[field]));
|
|
201
229
|
if (embedding) return { field: embedding, rule: 'embedded url with path' };
|
|
202
|
-
const secret = String(tag).toLowerCase();
|
|
203
230
|
const tagged = names.find((field) => unwrapped(fields[field]).includes(secret));
|
|
204
231
|
return tagged ? { field: tagged, rule: 'tag' } : undefined;
|
|
205
232
|
}
|
|
@@ -2470,7 +2497,12 @@ class Execution {
|
|
|
2470
2497
|
}))
|
|
2471
2498
|
: [];
|
|
2472
2499
|
});
|
|
2473
|
-
const scope = {
|
|
2500
|
+
const scope = {
|
|
2501
|
+
targetId: this.vars.rawTarget,
|
|
2502
|
+
origin,
|
|
2503
|
+
path: parseURL(this.vars.rawTargetUrl)?.pathname,
|
|
2504
|
+
tag: this.vars.tag,
|
|
2505
|
+
};
|
|
2474
2506
|
const leaks = entries
|
|
2475
2507
|
.filter(({ info }) => info)
|
|
2476
2508
|
.map((entry) => ({ ...entry, leak: redactionLeak(entry.info, scope) }))
|
package/guard-vectors.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-browsers",
|
|
3
|
-
"version": "1.30.
|
|
3
|
+
"version": "1.30.2",
|
|
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-adoption.test.mjs test/integration/guard-scoping.test.mjs test/integration/guard-late-pause.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-frames.test.mjs test/integration/guard-stock-setup.test.mjs test/integration/guard-explicit-attach.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",
|
|
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-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-frames.test.mjs test/integration/guard-stock-setup.test.mjs test/integration/guard-explicit-attach.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",
|
|
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\"",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"test:unit:guard": "mkdir -p coverage/unit && node --experimental-vm-modules --no-warnings --experimental-test-coverage --test --test-concurrency=1 --test-coverage-include=guard-runner.mjs --test-coverage-include=guard-driver.mjs --test-coverage-include=extension-frame.mjs --test-coverage-include=fixture-server.mjs --test-coverage-include=fixture-client.mjs --test-coverage-include=observer-target.mjs --test-coverage-include=frame-read.mjs --test-coverage-include=bfcache-restore.mjs --test-coverage-include=protected-error-page.mjs --test-coverage-include=protected-parent-iframes.mjs --test-coverage-include=unparseable-url.mjs --test-coverage-include=scripts/browser-runner.mjs --test-coverage-include=scripts/validate.mjs --test-reporter=lcov --test-reporter-destination=coverage/unit/guard.lcov test/unit/guard-*.test.mjs && slicc-diff-cover coverage/unit/guard.lcov"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
|
-
"@ai-ecoverse/slicc-cdp": "2.1.
|
|
93
|
+
"@ai-ecoverse/slicc-cdp": "2.1.11",
|
|
94
94
|
"@ai-ecoverse/slicc-shared-web": "2.16.1",
|
|
95
95
|
"@biomejs/biome": "2.6.7",
|
|
96
96
|
"ajv": "8.20.0",
|