@ai-ecoverse/slicc-browsers 1.30.1 → 1.31.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/extension-frame.mjs +164 -46
- package/guard-runner.mjs +1 -0
- package/guard-vectors.json +1 -1
- package/package.json +3 -3
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) {
|
|
@@ -579,7 +621,25 @@ async function targetListExposure(client, frameURL, extensionId, missing, result
|
|
|
579
621
|
}
|
|
580
622
|
}
|
|
581
623
|
|
|
582
|
-
function
|
|
624
|
+
function matchTargetEvent(event, page, ids, frameURL, extensionId, seen) {
|
|
625
|
+
if (
|
|
626
|
+
event.method === 'Target.attachedToTarget' &&
|
|
627
|
+
event.sessionId === page &&
|
|
628
|
+
ids.has(event.params?.targetInfo?.targetId) &&
|
|
629
|
+
typeof event.params.sessionId === 'string'
|
|
630
|
+
)
|
|
631
|
+
seen.attached.add(event.params.targetInfo.targetId);
|
|
632
|
+
if (
|
|
633
|
+
!seen.eventURL &&
|
|
634
|
+
['Target.attachedToTarget', 'Target.targetCreated', 'Target.targetInfoChanged'].includes(
|
|
635
|
+
event.method
|
|
636
|
+
) &&
|
|
637
|
+
exposesExtension(event.params, extensionId, frameURL)
|
|
638
|
+
)
|
|
639
|
+
seen.eventURL = true;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
async function targetEventExposure(
|
|
583
643
|
client,
|
|
584
644
|
page,
|
|
585
645
|
ids,
|
|
@@ -588,34 +648,48 @@ function targetEventExposure(
|
|
|
588
648
|
eventStart,
|
|
589
649
|
missing,
|
|
590
650
|
result,
|
|
591
|
-
{ autoAttach, discovery }
|
|
651
|
+
{ autoAttach, attachWait, discovery, budgetMs, notes }
|
|
592
652
|
) {
|
|
593
653
|
if (eventStart === undefined || !Array.isArray(client.events)) {
|
|
594
654
|
missing.push('target event stream is unavailable');
|
|
655
|
+
return undefined;
|
|
656
|
+
}
|
|
657
|
+
const seen = { attached: new Set(), eventURL: false };
|
|
658
|
+
const done = () =>
|
|
659
|
+
(!attachWait || seen.attached.size >= ids.size) && (!discovery || seen.eventURL);
|
|
660
|
+
const started = Date.now();
|
|
661
|
+
let cursor = eventStart;
|
|
662
|
+
for (;;) {
|
|
663
|
+
for (; cursor < client.events.length; cursor++)
|
|
664
|
+
matchTargetEvent(client.events[cursor], page, ids, frameURL, extensionId, seen);
|
|
665
|
+
const elapsed = Date.now() - started;
|
|
666
|
+
if (done() || elapsed >= budgetMs) break;
|
|
667
|
+
await pause(Math.min(25, budgetMs - elapsed));
|
|
668
|
+
}
|
|
669
|
+
const waitedMs = Date.now() - started;
|
|
670
|
+
if (autoAttach) result.autoAttached = seen.attached.size > 0;
|
|
671
|
+
if (discovery) result.eventURL = seen.eventURL;
|
|
672
|
+
const parts = [
|
|
673
|
+
...(autoAttach ? [`autoAttached ${seen.attached.size} of ${ids.size} frames`] : []),
|
|
674
|
+
...(discovery ? [`eventURL ${seen.eventURL ? 'seen' : 'not seen'}`] : []),
|
|
675
|
+
];
|
|
676
|
+
notes?.push(`target events after ${waitedMs}ms (budget ${budgetMs}ms): ${parts.join(', ')}`);
|
|
677
|
+
return waitedMs;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
function silentAttach({ side, attachControls, result, refused, waitedMs, budgetMs, missing }) {
|
|
681
|
+
if (side === 'control') {
|
|
682
|
+
if (attachControls) attachControls.autoAttached = result.autoAttached === true;
|
|
595
683
|
return;
|
|
596
684
|
}
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
event.method === 'Target.attachedToTarget' &&
|
|
602
|
-
event.sessionId === page &&
|
|
603
|
-
ids.has(event.params?.targetInfo?.targetId) &&
|
|
604
|
-
typeof event.params.sessionId === 'string'
|
|
605
|
-
);
|
|
606
|
-
if (discovery)
|
|
607
|
-
result.eventURL = events.some(
|
|
608
|
-
(event) =>
|
|
609
|
-
['Target.attachedToTarget', 'Target.targetCreated', 'Target.targetInfoChanged'].includes(
|
|
610
|
-
event.method
|
|
611
|
-
) && exposesExtension(event.params, extensionId, frameURL)
|
|
612
|
-
);
|
|
685
|
+
if (attachControls?.autoAttached !== true || result.autoAttached !== false || refused) return;
|
|
686
|
+
missing.push(
|
|
687
|
+
`autoAttached: the control auto-attached the frame; the guarded leg saw neither an attach event nor a refusal after ${waitedMs ?? 0}ms (budget ${budgetMs}ms)`
|
|
688
|
+
);
|
|
613
689
|
}
|
|
614
690
|
|
|
615
691
|
async function targetExposure({
|
|
616
692
|
client,
|
|
617
|
-
reader,
|
|
618
|
-
observer,
|
|
619
693
|
page,
|
|
620
694
|
frames,
|
|
621
695
|
frameURL,
|
|
@@ -624,6 +698,10 @@ async function targetExposure({
|
|
|
624
698
|
frameMs,
|
|
625
699
|
missing,
|
|
626
700
|
capabilities = {},
|
|
701
|
+
side,
|
|
702
|
+
notes,
|
|
703
|
+
attachControls,
|
|
704
|
+
attachRefused = false,
|
|
627
705
|
}) {
|
|
628
706
|
const result = { autoAttached: false, eventURL: false, listed: false };
|
|
629
707
|
const ids = new Set(frames.map((frame) => frame.targetId));
|
|
@@ -642,13 +720,30 @@ async function targetExposure({
|
|
|
642
720
|
)
|
|
643
721
|
: { ok: false };
|
|
644
722
|
try {
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
723
|
+
const budgetMs = Number.isFinite(frameMs) && frameMs > 0 ? frameMs : 0;
|
|
724
|
+
let waitedMs;
|
|
725
|
+
if (autoAttach || discovery)
|
|
726
|
+
waitedMs = await targetEventExposure(
|
|
727
|
+
client,
|
|
728
|
+
page,
|
|
729
|
+
ids,
|
|
730
|
+
frameURL,
|
|
731
|
+
extensionId,
|
|
732
|
+
eventStart,
|
|
733
|
+
missing,
|
|
734
|
+
result,
|
|
735
|
+
{ autoAttach, attachWait: autoAttach && auto.ok, discovery, budgetMs, notes }
|
|
736
|
+
);
|
|
737
|
+
if (autoAttach)
|
|
738
|
+
silentAttach({
|
|
739
|
+
side,
|
|
740
|
+
attachControls,
|
|
741
|
+
result,
|
|
742
|
+
refused: attachRefused || (!auto.ok && protectedRefusal(auto)),
|
|
743
|
+
waitedMs,
|
|
744
|
+
budgetMs,
|
|
745
|
+
missing,
|
|
650
746
|
});
|
|
651
|
-
}
|
|
652
747
|
if (browserSession) await targetListExposure(client, frameURL, extensionId, missing, result);
|
|
653
748
|
return result;
|
|
654
749
|
} finally {
|
|
@@ -835,7 +930,14 @@ async function driveInput(client, reader, page, observer, inputList, mode, frame
|
|
|
835
930
|
const f = ${frameLookup};
|
|
836
931
|
if (!f) return null;
|
|
837
932
|
const r = f.getBoundingClientRect();
|
|
838
|
-
|
|
933
|
+
let left = r.left;
|
|
934
|
+
let top = r.top;
|
|
935
|
+
for (let w = f.ownerDocument?.defaultView; w && w !== window && w.frameElement; w = w.parent) {
|
|
936
|
+
const o = w.frameElement.getBoundingClientRect();
|
|
937
|
+
left += o.left + w.frameElement.clientLeft;
|
|
938
|
+
top += o.top + w.frameElement.clientTop;
|
|
939
|
+
}
|
|
940
|
+
return { x: left + r.width / 2, y: top + r.height / 2, w: r.width, h: r.height };
|
|
839
941
|
})()`
|
|
840
942
|
);
|
|
841
943
|
const point = clearPoint(box);
|
|
@@ -858,11 +960,7 @@ async function driveInput(client, reader, page, observer, inputList, mode, frame
|
|
|
858
960
|
box && box.h > 0 ? box.y : 10
|
|
859
961
|
);
|
|
860
962
|
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);
|
|
963
|
+
const pressed = await click(client, reader, page, observer, { side, missing });
|
|
866
964
|
await refocus();
|
|
867
965
|
const typed = await key(client, reader, page, observer, refocus, mode !== 'focused');
|
|
868
966
|
await refocus();
|
|
@@ -878,6 +976,10 @@ async function driveInput(client, reader, page, observer, inputList, mode, frame
|
|
|
878
976
|
mode
|
|
879
977
|
);
|
|
880
978
|
await refocus();
|
|
979
|
+
const tab = await outcome(
|
|
980
|
+
client.send('Input.dispatchKeyEvent', { type: 'keyDown', key: 'Tab', code: 'Tab' }, page)
|
|
981
|
+
);
|
|
982
|
+
await refocus();
|
|
881
983
|
const focusedKey = await outcome(
|
|
882
984
|
client.send('Input.dispatchKeyEvent', { type: 'keyDown', key: 'a', code: 'KeyA' }, page)
|
|
883
985
|
);
|
|
@@ -1350,9 +1452,15 @@ async function finishReveal(
|
|
|
1350
1452
|
page,
|
|
1351
1453
|
observer,
|
|
1352
1454
|
frameMs,
|
|
1353
|
-
{ ok, text, overlap, revealRacePass }
|
|
1455
|
+
{ ok, text, overlap, revealRacePass },
|
|
1456
|
+
side,
|
|
1457
|
+
missing
|
|
1354
1458
|
) {
|
|
1355
|
-
const revealedPress = await click(client, reader, page, observer
|
|
1459
|
+
const revealedPress = await click(client, reader, page, observer, {
|
|
1460
|
+
side,
|
|
1461
|
+
missing,
|
|
1462
|
+
name: 'revealedClick',
|
|
1463
|
+
});
|
|
1356
1464
|
await style(reader, observer, 'hidden', frameMs);
|
|
1357
1465
|
const rehidden = await shot(client, page);
|
|
1358
1466
|
return {
|
|
@@ -1412,15 +1520,20 @@ export async function driveReveal(client, reader, page, observer, frameMs, missi
|
|
|
1412
1520
|
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
|
|
1413
1521
|
last = await attemptRevealCapture(client, reader, page, observer, side);
|
|
1414
1522
|
if (last.overlap !== 'unknown')
|
|
1415
|
-
return finishReveal(client, reader, page, observer, frameMs, last);
|
|
1523
|
+
return finishReveal(client, reader, page, observer, frameMs, last, side, missing);
|
|
1416
1524
|
if (attempt < maxAttempts) await style(reader, observer, 'hidden', frameMs);
|
|
1417
1525
|
}
|
|
1418
1526
|
missing.push(`reveal/capture overlap unproven (${maxAttempts} attempts)`);
|
|
1419
|
-
return finishReveal(
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1527
|
+
return finishReveal(
|
|
1528
|
+
client,
|
|
1529
|
+
reader,
|
|
1530
|
+
page,
|
|
1531
|
+
observer,
|
|
1532
|
+
frameMs,
|
|
1533
|
+
{ ...last, overlap: 'unknown', revealRacePass: false },
|
|
1534
|
+
side,
|
|
1535
|
+
missing
|
|
1536
|
+
);
|
|
1424
1537
|
}
|
|
1425
1538
|
|
|
1426
1539
|
function frameObservations({ pageAttached, origin, read, leaks, picture, input, captures }) {
|
|
@@ -1482,6 +1595,7 @@ export async function extensionFrame({
|
|
|
1482
1595
|
capabilities = {},
|
|
1483
1596
|
notes,
|
|
1484
1597
|
castControls,
|
|
1598
|
+
attachControls,
|
|
1485
1599
|
}) {
|
|
1486
1600
|
const attached = await reader.send('Target.attachToTarget', { targetId, flatten: true });
|
|
1487
1601
|
const observer = attached.sessionId;
|
|
@@ -1577,10 +1691,12 @@ export async function extensionFrame({
|
|
|
1577
1691
|
await driveReveal(client, reader, page, observer, frameMs, missing, side)
|
|
1578
1692
|
);
|
|
1579
1693
|
result.frameAttach = false;
|
|
1694
|
+
let attachRefused = false;
|
|
1580
1695
|
for (const entry of frames) {
|
|
1581
1696
|
const frameAttach = await outcome(
|
|
1582
1697
|
client.send('Target.attachToTarget', { targetId: entry.targetId, flatten: true })
|
|
1583
1698
|
);
|
|
1699
|
+
if (!frameAttach.ok && protectedRefusal(frameAttach)) attachRefused = true;
|
|
1584
1700
|
if (frameAttach.ok) {
|
|
1585
1701
|
result.frameAttach = true;
|
|
1586
1702
|
await outcome(
|
|
@@ -1592,8 +1708,6 @@ export async function extensionFrame({
|
|
|
1592
1708
|
result,
|
|
1593
1709
|
await targetExposure({
|
|
1594
1710
|
client,
|
|
1595
|
-
reader,
|
|
1596
|
-
observer,
|
|
1597
1711
|
page,
|
|
1598
1712
|
frames,
|
|
1599
1713
|
frameURL,
|
|
@@ -1602,6 +1716,10 @@ export async function extensionFrame({
|
|
|
1602
1716
|
frameMs,
|
|
1603
1717
|
missing,
|
|
1604
1718
|
capabilities,
|
|
1719
|
+
side,
|
|
1720
|
+
notes,
|
|
1721
|
+
attachControls,
|
|
1722
|
+
attachRefused,
|
|
1605
1723
|
})
|
|
1606
1724
|
);
|
|
1607
1725
|
const alive = await outcome(
|
package/guard-runner.mjs
CHANGED
|
@@ -1358,6 +1358,7 @@ class Execution {
|
|
|
1358
1358
|
capabilities: this.options.capabilities,
|
|
1359
1359
|
notes: this.notes,
|
|
1360
1360
|
castControls: (this.clients.castControls ??= {}),
|
|
1361
|
+
attachControls: (this.clients.attachControls ??= {}),
|
|
1361
1362
|
})
|
|
1362
1363
|
);
|
|
1363
1364
|
if (step.rawTarget) return outcome(this.rawTarget(step.rawTarget));
|
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.
|
|
3
|
+
"version": "1.31.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-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-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-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.14",
|
|
94
94
|
"@ai-ecoverse/slicc-shared-web": "2.16.1",
|
|
95
95
|
"@biomejs/biome": "2.6.7",
|
|
96
96
|
"ajv": "8.20.0",
|