@ai-ecoverse/slicc-browsers 1.16.2 → 1.18.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 +19 -4
- package/bfcache-restore.mjs +514 -0
- package/fixture-server.mjs +22 -0
- package/frame-read.mjs +182 -0
- package/guard-runner.mjs +66 -6
- package/guard-vectors.json +810 -2
- package/package.json +8 -6
- package/schema/guard-vectors.schema.json +38 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-browsers",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.18.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",
|
|
@@ -58,6 +58,8 @@
|
|
|
58
58
|
"redirect-secret.mjs",
|
|
59
59
|
"redirect-fragments.mjs",
|
|
60
60
|
"observer-target.mjs",
|
|
61
|
+
"frame-read.mjs",
|
|
62
|
+
"bfcache-restore.mjs",
|
|
61
63
|
"fixture-client.mjs"
|
|
62
64
|
],
|
|
63
65
|
"scripts": {
|
|
@@ -66,22 +68,22 @@
|
|
|
66
68
|
"validate": "node scripts/validate.mjs",
|
|
67
69
|
"lint": "slicc-lint && test -z \"$(gofmt -l .)\" && go mod tidy -diff && go vet ./... && golangci-lint run && cargo fmt --check && cargo clippy --all-features --all-targets -- -D warnings",
|
|
68
70
|
"format": "biome check --write . && gofmt -w . && cargo fmt",
|
|
69
|
-
"test": "npm run validate && node --test test/integration/self-contained.test.mjs test/integration/browser-runner.test.mjs test/integration/fixture-client.test.mjs test/integration/git-retry.test.mjs test/integration/release-line.test.mjs test/integration/guard-redirect-carrier.test.mjs test/integration/guard-redirect-session-end.test.mjs test/integration/guard-incomplete.test.mjs test/integration/guard-stall.test.mjs test/integration/guard-forged.test.mjs test/integration/guard-exit-steps.test.mjs && go test -race -count=1 ./test/integration/... && cargo test --all-features",
|
|
70
|
-
"test:unit": "go test -race -cover ./...",
|
|
71
|
+
"test": "npm run validate && node --test --test-concurrency=1 test/integration/self-contained.test.mjs test/integration/browser-runner.test.mjs test/integration/fixture-client.test.mjs test/integration/git-retry.test.mjs test/integration/release-line.test.mjs test/integration/guard-redirect-carrier.test.mjs test/integration/guard-redirect-session-end.test.mjs test/integration/guard-incomplete.test.mjs test/integration/guard-stall.test.mjs test/integration/guard-forged.test.mjs test/integration/guard-exit-steps.test.mjs test/integration/guard-frame-read.test.mjs test/integration/guard-bfcache.test.mjs test/integration/guard-bfcache-review.test.mjs && go test -race -count=1 ./test/integration/... && cargo test --all-features",
|
|
72
|
+
"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 ./...",
|
|
71
73
|
"build": "go build ./... && cargo build --all-features && cargo build --target wasm32-wasip1 --all-features && npm pack --dry-run",
|
|
72
74
|
"trust": "npx fledgling sync -y --skip-publish",
|
|
73
75
|
"trust:dry": "npx fledgling sync --dry-run -y --skip-publish",
|
|
74
76
|
"release": "semantic-release",
|
|
75
77
|
"test:guard": "npm run test:guard-integration && npm run test:guard-sweep",
|
|
76
|
-
"test:guard-integration": "node --test --test-concurrency=2 test/integration/guard-lifecycle.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-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-parallel.test.mjs test/integration/guard-client-exit.test.mjs test/integration/self-contained.test.mjs",
|
|
78
|
+
"test:guard-integration": "node --test --test-concurrency=2 test/integration/guard-lifecycle.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-parallel.test.mjs test/integration/guard-client-exit.test.mjs test/integration/self-contained.test.mjs",
|
|
77
79
|
"test:guard-sweep": "node scripts/test-guards.mjs",
|
|
78
80
|
"test:gates": "node --test test/integration/gates.test.mjs",
|
|
79
81
|
"test:guard-target": "node --test test/integration/guard-runner.test.mjs",
|
|
80
82
|
"test:unit:redirect": "mkdir -p coverage/unit && node --experimental-test-coverage --test --test-coverage-include=redirect-secret.mjs --test-coverage-include=redirect-fragments.mjs --test-reporter=lcov --test-reporter-destination=coverage/unit/redirect.lcov test/unit/guard-redirect-*.test.mjs && slicc-diff-cover coverage/unit/redirect.lcov",
|
|
81
|
-
"test:unit:guard": "mkdir -p coverage/unit && node --experimental-vm-modules --no-warnings --experimental-test-coverage --test --test-coverage-include=guard-runner.mjs --test-coverage-include=fixture-server.mjs --test-coverage-include=fixture-client.mjs --test-coverage-include=observer-target.mjs --test-coverage-include=protected-error-page.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"
|
|
83
|
+
"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=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=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"
|
|
82
84
|
},
|
|
83
85
|
"devDependencies": {
|
|
84
|
-
"@ai-ecoverse/slicc-shared-web": "2.7.
|
|
86
|
+
"@ai-ecoverse/slicc-shared-web": "2.7.8",
|
|
85
87
|
"@biomejs/biome": "2.5.15",
|
|
86
88
|
"ajv": "8.20.0",
|
|
87
89
|
"ajv-formats": "3.0.1",
|
|
@@ -88,7 +88,9 @@
|
|
|
88
88
|
"chromeUrlsAttach",
|
|
89
89
|
"extensionWorld",
|
|
90
90
|
"discovery",
|
|
91
|
-
"clientExit"
|
|
91
|
+
"clientExit",
|
|
92
|
+
"siteIsolationOff",
|
|
93
|
+
"inboundDelay"
|
|
92
94
|
],
|
|
93
95
|
"properties": {
|
|
94
96
|
"autoAttach": {
|
|
@@ -109,7 +111,10 @@
|
|
|
109
111
|
"type": "string",
|
|
110
112
|
"minLength": 1
|
|
111
113
|
},
|
|
112
|
-
"clientExit": { "type": "string", "minLength": 1 }
|
|
114
|
+
"clientExit": { "type": "string", "minLength": 1 },
|
|
115
|
+
"siteIsolationOff": { "type": "string", "minLength": 1 },
|
|
116
|
+
"inboundDelay": { "type": "string", "minLength": 1 },
|
|
117
|
+
"forwardAudit": { "type": "string", "minLength": 1 }
|
|
113
118
|
}
|
|
114
119
|
},
|
|
115
120
|
"placeholders": {
|
|
@@ -139,7 +144,10 @@
|
|
|
139
144
|
"chromeUrlsAttach",
|
|
140
145
|
"extensionWorld",
|
|
141
146
|
"discovery",
|
|
142
|
-
"clientExit"
|
|
147
|
+
"clientExit",
|
|
148
|
+
"siteIsolationOff",
|
|
149
|
+
"inboundDelay",
|
|
150
|
+
"forwardAudit"
|
|
143
151
|
]
|
|
144
152
|
},
|
|
145
153
|
"requires": {
|
|
@@ -433,6 +441,21 @@
|
|
|
433
441
|
},
|
|
434
442
|
"step": {
|
|
435
443
|
"oneOf": [
|
|
444
|
+
{
|
|
445
|
+
"type": "object",
|
|
446
|
+
"additionalProperties": false,
|
|
447
|
+
"required": ["bfcacheRestore", "origin", "as", "requires"],
|
|
448
|
+
"properties": {
|
|
449
|
+
"bfcacheRestore": { "enum": ["observer", "history"] },
|
|
450
|
+
"origin": { "type": "string", "minLength": 1 },
|
|
451
|
+
"as": { "$ref": "#/$defs/name" },
|
|
452
|
+
"requires": {
|
|
453
|
+
"$ref": "#/$defs/requires",
|
|
454
|
+
"type": "array",
|
|
455
|
+
"contains": { "const": "inboundDelay" }
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
},
|
|
436
459
|
{
|
|
437
460
|
"type": "object",
|
|
438
461
|
"additionalProperties": false,
|
|
@@ -453,6 +476,18 @@
|
|
|
453
476
|
"as": { "$ref": "#/$defs/name" }
|
|
454
477
|
}
|
|
455
478
|
},
|
|
479
|
+
{
|
|
480
|
+
"type": "object",
|
|
481
|
+
"additionalProperties": false,
|
|
482
|
+
"required": ["frameRead", "from", "as"],
|
|
483
|
+
"properties": {
|
|
484
|
+
"frameRead": { "enum": ["blank", "srcdoc"] },
|
|
485
|
+
"from": { "type": "string", "minLength": 1 },
|
|
486
|
+
"on": { "$ref": "#/$defs/on" },
|
|
487
|
+
"requires": { "$ref": "#/$defs/requires" },
|
|
488
|
+
"as": { "$ref": "#/$defs/name" }
|
|
489
|
+
}
|
|
490
|
+
},
|
|
456
491
|
{
|
|
457
492
|
"type": "object",
|
|
458
493
|
"additionalProperties": false,
|