@ai-ecoverse/slicc-browsers 1.44.0 → 1.46.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 +8 -6
- package/catalog.json +8 -3
- package/cookie-plant.mjs +15 -218
- package/engine/engine-wasm.mjs +1 -1
- package/engine/engine.wasm +0 -0
- package/fixture-server.mjs +19 -5
- package/guard-driver.mjs +17 -3
- package/guard-runner.mjs +41 -29
- package/guard-vectors.json +800 -1518
- package/package.json +4 -5
- package/protected.json +210 -87
- package/protected.mjs +31 -7
- package/schema/catalog.schema.json +24 -4
- package/schema/guard-vectors.schema.json +13 -1
- package/schema/protected.schema.json +2 -2
- package/credential-export.mjs +0 -1511
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-browsers",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.46.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",
|
|
@@ -74,7 +74,6 @@
|
|
|
74
74
|
"frame-read.mjs",
|
|
75
75
|
"bfcache-restore.mjs",
|
|
76
76
|
"close-protected-shape.mjs",
|
|
77
|
-
"credential-export.mjs",
|
|
78
77
|
"protected-worker.mjs",
|
|
79
78
|
"protected-parent-iframes.mjs",
|
|
80
79
|
"sign-in-hold.mjs",
|
|
@@ -87,7 +86,7 @@
|
|
|
87
86
|
"validate": "node scripts/validate.mjs",
|
|
88
87
|
"lint": "export PATH=\"$HOME/.cargo/bin:$PATH\" && if [ \"$(uname -s)\" = Darwin ]; then echo 'Skipping byte comparison on macOS; Linux CI owns the wasm bytes.'; else git ls-files --error-unmatch engine/engine.wasm engine/engine-wasm.mjs > /dev/null && npm run engine && git diff --exit-code -- engine/engine.wasm engine/engine-wasm.mjs; fi && 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 --all --check && cargo clippy --workspace --locked --all-features --all-targets -- -D warnings && cargo check --target wasm32-wasip1 --no-default-features --locked && cargo check --target wasm32-wasip1 --features serde --locked && cargo check --target wasm32-wasip1 --all-features --locked",
|
|
89
88
|
"format": "biome check --write . && gofmt -w . && cargo fmt --all",
|
|
90
|
-
"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-
|
|
89
|
+
"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/protected-zones.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-ordinary-idp-cookies.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/engine.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-cookie-plant-attach.test.mjs test/integration/guard-cookie-plant-attach-retry.test.mjs test/integration/guard-cookie-plant-open-commit.test.mjs test/integration/guard-cookie-plant-legacy-setup.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-error-page-enable.test.mjs test/integration/guard-discovery.test.mjs test/integration/guard-bfcache-chrome.test.mjs test/integration/guard-bfcache-ownership-probe.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-key.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-error-legs.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-preview.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 test/integration/guard-control-probe-failure.test.mjs test/integration/guard-kept-origins.test.mjs",
|
|
91
90
|
"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 ./...",
|
|
92
91
|
"build": "export PATH=\"$HOME/.cargo/bin:$PATH\" && go build ./... && cargo build --locked --all-features && cargo build --locked --target wasm32-wasip1 --all-features && npm pack --dry-run",
|
|
93
92
|
"prepublishOnly": "node scripts/set-crate-version.mjs \"$npm_package_version\"",
|
|
@@ -98,8 +97,8 @@
|
|
|
98
97
|
"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"
|
|
99
98
|
},
|
|
100
99
|
"devDependencies": {
|
|
101
|
-
"@ai-ecoverse/slicc-cdp": "2.
|
|
102
|
-
"@ai-ecoverse/slicc-shared-web": "2.
|
|
100
|
+
"@ai-ecoverse/slicc-cdp": "2.6.0",
|
|
101
|
+
"@ai-ecoverse/slicc-shared-web": "2.20.0",
|
|
103
102
|
"@biomejs/biome": "2.6.8",
|
|
104
103
|
"ajv": "8.20.0",
|
|
105
104
|
"ajv-formats": "3.0.1",
|
package/protected.json
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
"unparseableRefusal": "slicc: refused: slicc can't parse this URL, so it could be a protected page",
|
|
6
6
|
"origins": ["http://127.0.0.1:5710", "https://seven.example.test"],
|
|
7
7
|
"urls": [
|
|
8
|
-
{ "url": "http://sliccy.ai/cdp-premise", "protected":
|
|
9
|
-
{ "url": "https://sliccy.ai/cdp-premise", "protected":
|
|
8
|
+
{ "url": "http://sliccy.ai/cdp-premise", "protected": false },
|
|
9
|
+
{ "url": "https://sliccy.ai/cdp-premise", "protected": false },
|
|
10
10
|
{ "url": "http://www.sliccy.ai/cdp-premise", "protected": true },
|
|
11
11
|
{ "url": "https://www.sliccy.ai/cdp-premise", "protected": true },
|
|
12
12
|
{ "url": "http://seven.sliccy.ai/cdp-premise", "protected": true },
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
{ "url": "https://vault.sliccy.ai/cdp-premise", "protected": true },
|
|
16
16
|
{ "url": "http://arbitrary-premise.sliccy.ai/cdp-premise", "protected": true },
|
|
17
17
|
{ "url": "https://arbitrary-premise.sliccy.ai/cdp-premise", "protected": true },
|
|
18
|
+
{ "url": "http://main--seven.sliccy.ai/cdp-premise", "protected": true },
|
|
19
|
+
{ "url": "https://main--seven.sliccy.ai/cdp-premise", "protected": true },
|
|
18
20
|
{
|
|
19
21
|
"url": "http://exa mple.sliccy.ai/",
|
|
20
22
|
"protected": true
|
|
@@ -157,11 +159,11 @@
|
|
|
157
159
|
},
|
|
158
160
|
{
|
|
159
161
|
"url": "https://sliccy.ai/",
|
|
160
|
-
"protected":
|
|
162
|
+
"protected": false
|
|
161
163
|
},
|
|
162
164
|
{
|
|
163
165
|
"url": "https://a.b.sliccy.ai/",
|
|
164
|
-
"protected":
|
|
166
|
+
"protected": false
|
|
165
167
|
},
|
|
166
168
|
{
|
|
167
169
|
"url": "https://seven.sliccy.ai./",
|
|
@@ -409,12 +411,90 @@
|
|
|
409
411
|
},
|
|
410
412
|
{
|
|
411
413
|
"url": "https://echo.sliccy.ai/",
|
|
412
|
-
"protected":
|
|
414
|
+
"protected": false
|
|
413
415
|
},
|
|
414
416
|
{
|
|
415
417
|
"url": "https://vault-feature-x.sliccy.ai/",
|
|
416
418
|
"protected": true
|
|
417
419
|
},
|
|
420
|
+
{ "url": "https://www.sliccy.ai/7", "protected": true },
|
|
421
|
+
{ "url": "http://www.sliccy.ai/7", "protected": true },
|
|
422
|
+
{ "url": "https://WWW.SLICCY.AI/7?x=1#y", "protected": true },
|
|
423
|
+
{ "url": "https://main--seven.sliccy.ai/os/index.html", "protected": true },
|
|
424
|
+
{ "url": "https://main--seven.sliccy.ai:8443/", "protected": true },
|
|
425
|
+
{ "url": "https://MAIN--SEVEN.SLICCY.AI/", "protected": true },
|
|
426
|
+
{ "url": "https://main--seven.sliccy.ai./", "protected": true },
|
|
427
|
+
{ "url": "https://user:secret@main--seven.sliccy.ai/", "protected": true },
|
|
428
|
+
{ "url": "https://get.sliccy.ai@main--seven.sliccy.ai/", "protected": true },
|
|
429
|
+
{ "url": "https://main--seven%2Esliccy%2Eai/", "protected": true },
|
|
430
|
+
{ "url": "https://main--seven。sliccy。ai/", "protected": true },
|
|
431
|
+
{ "url": "https://main--seven.sliccy.ai/", "protected": true },
|
|
432
|
+
{ "url": "https://main--seven.sliccy.ai/", "protected": true },
|
|
433
|
+
{ "url": "blob:https://main--seven.sliccy.ai/0b9e0f6c", "protected": true },
|
|
434
|
+
{ "url": "view-source:https://main--seven.sliccy.ai/", "protected": true },
|
|
435
|
+
{ "url": "filesystem:https://main--seven.sliccy.ai/temporary/x", "protected": true },
|
|
436
|
+
{ "url": "http://vault-feature-x.sliccy.ai:8080/", "protected": true },
|
|
437
|
+
{ "url": "https://vault-preview.sliccy.ai./", "protected": true },
|
|
438
|
+
{ "url": "view-source:https://vault-feature-x.sliccy.ai/", "protected": true },
|
|
439
|
+
{ "url": "https://bb-x.sliccy.ai/", "protected": true },
|
|
440
|
+
{ "url": "https://get-x.sliccy.ai/", "protected": true },
|
|
441
|
+
{ "url": "https://my-get.sliccy.ai/", "protected": true },
|
|
442
|
+
{ "url": "https://echo2.sliccy.ai/", "protected": true },
|
|
443
|
+
{ "url": "https://mcpcat-preview.sliccy.ai/", "protected": true },
|
|
444
|
+
{ "url": "https://lease-pilot2.sliccy.ai/", "protected": true },
|
|
445
|
+
{ "url": "https://lease-pilot-x.sliccy.ai/", "protected": true },
|
|
446
|
+
{ "url": "https://a_b.sliccy.ai/", "protected": true },
|
|
447
|
+
{ "url": "https://.sliccy.ai/", "protected": true },
|
|
448
|
+
{ "url": "https://get.sliccy.ai/", "protected": false },
|
|
449
|
+
{ "url": "http://get.sliccy.ai/", "protected": false },
|
|
450
|
+
{ "url": "https://get.sliccy.ai:8443/", "protected": false },
|
|
451
|
+
{ "url": "https://get.sliccy.ai/os/index.html?x=1#y", "protected": false },
|
|
452
|
+
{ "url": "https://GET.SLICCY.AI/", "protected": false },
|
|
453
|
+
{ "url": "https://get.sliccy.ai./", "protected": false },
|
|
454
|
+
{ "url": "https://main--seven.sliccy.ai../", "protected": false },
|
|
455
|
+
{ "url": "https://vault.sliccy.ai../", "protected": false },
|
|
456
|
+
{ "url": "https://sliccy.ai../", "protected": false },
|
|
457
|
+
{ "url": "https://user:secret@get.sliccy.ai/", "protected": false },
|
|
458
|
+
{ "url": "https://seven.sliccy.ai@get.sliccy.ai/", "protected": false },
|
|
459
|
+
{ "url": "https://get%2Esliccy%2Eai/", "protected": false },
|
|
460
|
+
{ "url": "https://get。sliccy。ai/", "protected": false },
|
|
461
|
+
{ "url": "https://get.sliccy.ai/", "protected": false },
|
|
462
|
+
{ "url": "https://get.sliccy.ai/", "protected": false },
|
|
463
|
+
{ "url": "blob:https://get.sliccy.ai/0b9e0f6c", "protected": false },
|
|
464
|
+
{ "url": "view-source:https://get.sliccy.ai/", "protected": false },
|
|
465
|
+
{ "url": "filesystem:https://get.sliccy.ai/temporary/x", "protected": false },
|
|
466
|
+
{ "url": "https://mcpcat.sliccy.ai/", "protected": false },
|
|
467
|
+
{ "url": "http://mcpcat.sliccy.ai:8080/", "protected": false },
|
|
468
|
+
{ "url": "https://ECHO.sliccy.ai./", "protected": false },
|
|
469
|
+
{ "url": "https://lease-pilot.sliccy.ai/", "protected": false },
|
|
470
|
+
{ "url": "https://lease-pilot.sliccy.ai/auth/callback", "protected": false },
|
|
471
|
+
{ "url": "https://lease-pilot.sliccy.ai/", "protected": false },
|
|
472
|
+
{ "url": "https://lease-pilot%2Esliccy.ai/", "protected": false },
|
|
473
|
+
{ "url": "http://sliccy.ai/", "protected": false },
|
|
474
|
+
{ "url": "https://sliccy.ai", "protected": false },
|
|
475
|
+
{ "url": "https://sliccy.ai/7", "protected": false },
|
|
476
|
+
{ "url": "https://SLICCY.AI./", "protected": false },
|
|
477
|
+
{ "url": "https://sliccy.ai:8443/", "protected": false },
|
|
478
|
+
{ "url": "https://user:secret@sliccy.ai/", "protected": false },
|
|
479
|
+
{ "url": "blob:https://sliccy.ai/0b9e0f6c", "protected": false },
|
|
480
|
+
{ "url": "view-source:https://sliccy.ai/", "protected": false },
|
|
481
|
+
{ "url": "https://a.seven.sliccy.ai/", "protected": false },
|
|
482
|
+
{ "url": "https://www.seven.sliccy.ai/", "protected": false },
|
|
483
|
+
{ "url": "https://x.vault.sliccy.ai/", "protected": false },
|
|
484
|
+
{ "url": "https://x.vault-feature-x.sliccy.ai/", "protected": false },
|
|
485
|
+
{ "url": "https://a.lease-pilot.sliccy.ai/", "protected": false },
|
|
486
|
+
{ "url": "https://a%2Eb.sliccy.ai/", "protected": false },
|
|
487
|
+
{ "url": "https://a。b。sliccy。ai/", "protected": false },
|
|
488
|
+
{ "url": "http://a.b.c.sliccy.ai:8080/", "protected": false },
|
|
489
|
+
{ "url": "blob:https://a.b.sliccy.ai/0b9e0f6c", "protected": false },
|
|
490
|
+
{ "url": "https://seven.sliccy.ai.example.com/", "protected": false },
|
|
491
|
+
{ "url": "https://www.sliccy.ai.example.com/", "protected": false },
|
|
492
|
+
{ "url": "https://main--seven.sliccy.ai.example/", "protected": false },
|
|
493
|
+
{ "url": "https://get.notsliccy.ai/", "protected": false },
|
|
494
|
+
{ "url": "https://seven.notsliccy.ai/", "protected": false },
|
|
495
|
+
{ "url": "https://main--seven.sliccy.ai@example.com/", "protected": false },
|
|
496
|
+
{ "url": "wss://main--seven.sliccy.ai/", "protected": false },
|
|
497
|
+
{ "url": "ftp://www.sliccy.ai/", "protected": false },
|
|
418
498
|
{
|
|
419
499
|
"url": "chrome://settings/",
|
|
420
500
|
"protected": true
|
|
@@ -749,8 +829,8 @@
|
|
|
749
829
|
}
|
|
750
830
|
],
|
|
751
831
|
"targets": [
|
|
752
|
-
{ "url": "http://sliccy.ai/cdp-premise", "type": "page", "protected":
|
|
753
|
-
{ "url": "https://sliccy.ai/cdp-premise", "type": "page", "protected":
|
|
832
|
+
{ "url": "http://sliccy.ai/cdp-premise", "type": "page", "protected": false },
|
|
833
|
+
{ "url": "https://sliccy.ai/cdp-premise", "type": "page", "protected": false },
|
|
754
834
|
{ "url": "http://www.sliccy.ai/cdp-premise", "type": "page", "protected": true },
|
|
755
835
|
{ "url": "https://www.sliccy.ai/cdp-premise", "type": "page", "protected": true },
|
|
756
836
|
{ "url": "http://seven.sliccy.ai/cdp-premise", "type": "page", "protected": true },
|
|
@@ -759,6 +839,8 @@
|
|
|
759
839
|
{ "url": "https://vault.sliccy.ai/cdp-premise", "type": "page", "protected": true },
|
|
760
840
|
{ "url": "http://arbitrary-premise.sliccy.ai/cdp-premise", "type": "page", "protected": true },
|
|
761
841
|
{ "url": "https://arbitrary-premise.sliccy.ai/cdp-premise", "type": "page", "protected": true },
|
|
842
|
+
{ "url": "http://main--seven.sliccy.ai/cdp-premise", "type": "page", "protected": true },
|
|
843
|
+
{ "url": "https://main--seven.sliccy.ai/cdp-premise", "type": "page", "protected": true },
|
|
762
844
|
{
|
|
763
845
|
"url": "https://seven.sliccy.ai/path?secret=query#fragment",
|
|
764
846
|
"documentURL": "chrome-error://chromewebdata/",
|
|
@@ -1240,6 +1322,90 @@
|
|
|
1240
1322
|
"url": "file:///Users/me/frame.html",
|
|
1241
1323
|
"type": "iframe",
|
|
1242
1324
|
"protected": true
|
|
1325
|
+
},
|
|
1326
|
+
{ "url": "https://main--seven.sliccy.ai/", "type": "page", "protected": true },
|
|
1327
|
+
{ "url": "https://www.sliccy.ai/7", "type": "page", "protected": true },
|
|
1328
|
+
{ "url": "https://vault-feature-x.sliccy.ai/", "type": "iframe", "protected": true },
|
|
1329
|
+
{ "url": "https://get.sliccy.ai/", "type": "page", "protected": false },
|
|
1330
|
+
{ "url": "https://sliccy.ai/", "type": "page", "protected": false },
|
|
1331
|
+
{ "url": "https://a.b.sliccy.ai/", "type": "iframe", "protected": false },
|
|
1332
|
+
{ "url": "https://lease-pilot.sliccy.ai/", "type": "page", "protected": false },
|
|
1333
|
+
{ "url": "https://get.sliccy.ai/", "type": "browser_ui", "protected": true },
|
|
1334
|
+
{ "url": "blob:https://main--seven.sliccy.ai/0b9e0f6c", "protected": true },
|
|
1335
|
+
{ "url": "blob:https://get.sliccy.ai/0b9e0f6c", "protected": false },
|
|
1336
|
+
{ "url": "view-source:https://sliccy.ai/", "protected": false },
|
|
1337
|
+
{ "url": "http://main--seven.sliccy.ai:8080/index.html", "protected": true },
|
|
1338
|
+
{ "url": "http://sliccy.ai:8080/index.html", "protected": false },
|
|
1339
|
+
{ "url": "https://get.sliccy.ai/", "previous": true, "protected": false },
|
|
1340
|
+
{ "url": "https://get.sliccy.ai/", "opener": "protected", "protected": false },
|
|
1341
|
+
{
|
|
1342
|
+
"url": "about:blank",
|
|
1343
|
+
"contextOrigin": "https://get.sliccy.ai",
|
|
1344
|
+
"opener": "unprotected",
|
|
1345
|
+
"protected": false
|
|
1346
|
+
},
|
|
1347
|
+
{
|
|
1348
|
+
"url": "about:blank",
|
|
1349
|
+
"contextOrigin": "https://get.sliccy.ai",
|
|
1350
|
+
"opener": "protected",
|
|
1351
|
+
"protected": true
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
"url": "about:blank",
|
|
1355
|
+
"contextOrigin": "https://sliccy.ai",
|
|
1356
|
+
"previous": true,
|
|
1357
|
+
"protected": true
|
|
1358
|
+
},
|
|
1359
|
+
{
|
|
1360
|
+
"url": "about:blank",
|
|
1361
|
+
"contextOrigin": "https://main--seven.sliccy.ai",
|
|
1362
|
+
"opener": "protected",
|
|
1363
|
+
"protected": true
|
|
1364
|
+
},
|
|
1365
|
+
{
|
|
1366
|
+
"url": "about:srcdoc",
|
|
1367
|
+
"contextOrigin": "https://get.sliccy.ai",
|
|
1368
|
+
"opener": "unprotected",
|
|
1369
|
+
"protected": false
|
|
1370
|
+
},
|
|
1371
|
+
{
|
|
1372
|
+
"url": "https://get.sliccy.ai/path?secret=query#fragment",
|
|
1373
|
+
"documentURL": "chrome-error://chromewebdata/",
|
|
1374
|
+
"unreachableURL": "https://get.sliccy.ai/path?secret=query#fragment",
|
|
1375
|
+
"protected": false
|
|
1376
|
+
},
|
|
1377
|
+
{
|
|
1378
|
+
"url": "https://get.sliccy.ai/path?secret=query#fragment",
|
|
1379
|
+
"documentURL": "chrome-error://chromewebdata/",
|
|
1380
|
+
"unreachableURL": "https://get.sliccy.ai/path?secret=query#fragment",
|
|
1381
|
+
"previous": true,
|
|
1382
|
+
"protected": true
|
|
1383
|
+
},
|
|
1384
|
+
{
|
|
1385
|
+
"url": "https://get.sliccy.ai/path?secret=query#fragment",
|
|
1386
|
+
"documentURL": "chrome-error://chromewebdata/",
|
|
1387
|
+
"unreachableURL": "https://get.sliccy.ai/path?secret=query#fragment",
|
|
1388
|
+
"navigating": true,
|
|
1389
|
+
"protected": false
|
|
1390
|
+
},
|
|
1391
|
+
{
|
|
1392
|
+
"url": "https://main--seven.sliccy.ai/path?secret=query#fragment",
|
|
1393
|
+
"documentURL": "chrome-error://chromewebdata/",
|
|
1394
|
+
"unreachableURL": "https://main--seven.sliccy.ai/path?secret=query#fragment",
|
|
1395
|
+
"navigating": true,
|
|
1396
|
+
"protected": true
|
|
1397
|
+
},
|
|
1398
|
+
{
|
|
1399
|
+
"url": "https://main--seven.sliccy.ai/path?secret=query#fragment",
|
|
1400
|
+
"documentURL": "chrome-error://chromewebdata/",
|
|
1401
|
+
"unreachableURL": "https://main--seven.sliccy.ai/path?secret=query#fragment",
|
|
1402
|
+
"protected": false
|
|
1403
|
+
},
|
|
1404
|
+
{
|
|
1405
|
+
"url": "https://sliccy.ai/path?secret=query#fragment",
|
|
1406
|
+
"documentURL": "chrome-error://chromewebdata/",
|
|
1407
|
+
"unreachableURL": "https://sliccy.ai/other",
|
|
1408
|
+
"protected": false
|
|
1243
1409
|
}
|
|
1244
1410
|
],
|
|
1245
1411
|
"cookieDomains": [
|
|
@@ -1273,7 +1439,7 @@
|
|
|
1273
1439
|
},
|
|
1274
1440
|
{
|
|
1275
1441
|
"domain": "a.b.sliccy.ai",
|
|
1276
|
-
"protected":
|
|
1442
|
+
"protected": false
|
|
1277
1443
|
},
|
|
1278
1444
|
{
|
|
1279
1445
|
"domain": "127.0.0.1",
|
|
@@ -1322,7 +1488,27 @@
|
|
|
1322
1488
|
{
|
|
1323
1489
|
"domain": ".",
|
|
1324
1490
|
"protected": false
|
|
1325
|
-
}
|
|
1491
|
+
},
|
|
1492
|
+
{ "domain": ".a.b.sliccy.ai", "protected": false },
|
|
1493
|
+
{ "domain": "a.seven.sliccy.ai", "protected": false },
|
|
1494
|
+
{ "domain": "x.vault.sliccy.ai", "protected": false },
|
|
1495
|
+
{ "domain": "get.sliccy.ai", "protected": false },
|
|
1496
|
+
{ "domain": ".get.sliccy.ai", "protected": false },
|
|
1497
|
+
{ "domain": "GET.SLICCY.AI.", "protected": false },
|
|
1498
|
+
{ "domain": "mcpcat.sliccy.ai", "protected": false },
|
|
1499
|
+
{ "domain": ".echo.sliccy.ai", "protected": false },
|
|
1500
|
+
{ "domain": "lease-pilot.sliccy.ai", "protected": false },
|
|
1501
|
+
{ "domain": "get.sliccy.ai.example", "protected": false },
|
|
1502
|
+
{ "domain": "main--seven.sliccy.ai", "protected": true },
|
|
1503
|
+
{ "domain": ".vault-feature-x.sliccy.ai", "protected": true },
|
|
1504
|
+
{ "domain": "vault-preview.sliccy.ai", "protected": true },
|
|
1505
|
+
{ "domain": "www.sliccy.ai", "protected": true },
|
|
1506
|
+
{ "domain": ".MAIN--SEVEN.SLICCY.AI.", "protected": true },
|
|
1507
|
+
{ "domain": "main--seven.sliccy.ai..", "protected": false },
|
|
1508
|
+
{ "domain": "vault.sliccy.ai..", "protected": false },
|
|
1509
|
+
{ "domain": ".sliccy.ai..", "protected": false },
|
|
1510
|
+
{ "domain": "ai", "protected": true },
|
|
1511
|
+
{ "domain": ".ai", "protected": true }
|
|
1326
1512
|
],
|
|
1327
1513
|
"storageKeys": [
|
|
1328
1514
|
{
|
|
@@ -1351,7 +1537,7 @@
|
|
|
1351
1537
|
},
|
|
1352
1538
|
{
|
|
1353
1539
|
"key": "https://sliccy.ai/",
|
|
1354
|
-
"protected":
|
|
1540
|
+
"protected": false
|
|
1355
1541
|
},
|
|
1356
1542
|
{
|
|
1357
1543
|
"key": "https://vault.sliccy.ai/",
|
|
@@ -1392,83 +1578,20 @@
|
|
|
1392
1578
|
{
|
|
1393
1579
|
"key": "",
|
|
1394
1580
|
"protected": false
|
|
1395
|
-
}
|
|
1396
|
-
],
|
|
1397
|
-
"kept": [
|
|
1398
|
-
{ "url": "https://lease-pilot.sliccy.ai/", "kept": true },
|
|
1399
|
-
{ "url": "https://lease-pilot.sliccy.ai", "kept": true },
|
|
1400
|
-
{ "url": "https://lease-pilot.sliccy.ai/os/x", "kept": true },
|
|
1401
|
-
{ "url": "https://lease-pilot.sliccy.ai/auth/callback", "kept": true },
|
|
1402
|
-
{ "url": "https://lease-pilot.sliccy.ai/os/x/y/z/deep/path/index.html", "kept": true },
|
|
1403
|
-
{ "url": "https://lease-pilot.sliccy.ai/?x=1&y=2", "kept": true },
|
|
1404
|
-
{ "url": "https://lease-pilot.sliccy.ai/#x", "kept": true },
|
|
1405
|
-
{ "url": "HTTPS://LEASE-PILOT.SLICCY.AI/", "kept": true },
|
|
1406
|
-
{ "url": "https://lease-pilot.sliccy.ai./", "kept": true },
|
|
1407
|
-
{ "url": "https://user:secret@lease-pilot.sliccy.ai/", "kept": true },
|
|
1408
|
-
{ "url": "https://lease-pilot.sliccy.ai:443/", "kept": true },
|
|
1409
|
-
{ "url": "https://lease-pilot%2Esliccy.ai/", "kept": true },
|
|
1410
|
-
{ "url": "https://lease-pilot.sliccy.ai/", "kept": true },
|
|
1411
|
-
{ "url": "https://lease-pilot.sliccy.ai:8443/", "kept": false },
|
|
1412
|
-
{ "url": "https://lease-pilot.sliccy.ai:80/", "kept": false },
|
|
1413
|
-
{ "url": "http://lease-pilot.sliccy.ai/", "kept": false },
|
|
1414
|
-
{ "url": "http://lease-pilot.sliccy.ai:80/", "kept": false },
|
|
1415
|
-
{ "url": "https://a.lease-pilot.sliccy.ai/", "kept": false },
|
|
1416
|
-
{ "url": "https://a.b.lease-pilot.sliccy.ai/", "kept": false },
|
|
1417
|
-
{ "url": "https://lease-pilot.sliccy.ai.example/", "kept": false },
|
|
1418
|
-
{ "url": "https://lease-pilot-sliccy.ai/", "kept": false },
|
|
1419
|
-
{ "url": "https://notsliccy.ai/", "kept": false },
|
|
1420
|
-
{ "url": "https://lease-pilot.sliccy.aix/", "kept": false },
|
|
1421
|
-
{ "url": "https://lease-pilot.sliccy.ai@example.com/", "kept": false },
|
|
1422
|
-
{ "url": "wss://lease-pilot.sliccy.ai/", "kept": false },
|
|
1423
|
-
{ "url": "ftp://lease-pilot.sliccy.ai/", "kept": false },
|
|
1424
|
-
{ "url": "https://sliccy.ai/", "kept": false },
|
|
1425
|
-
{ "url": "https://seven.sliccy.ai/", "kept": false },
|
|
1426
|
-
{ "url": "https://www.sliccy.ai/", "kept": false },
|
|
1427
|
-
{ "url": "https://vault.sliccy.ai/", "kept": false },
|
|
1428
|
-
{ "url": "blob:https://lease-pilot.sliccy.ai/x", "kept": false },
|
|
1429
|
-
{ "url": "view-source:https://lease-pilot.sliccy.ai/", "kept": false },
|
|
1430
|
-
{ "url": "https://lease-pilot.sliccy.ai:99999/", "kept": false }
|
|
1431
|
-
],
|
|
1432
|
-
"keptTargets": [
|
|
1433
|
-
{ "url": "about:blank", "contextOrigin": "https://lease-pilot.sliccy.ai", "kept": true },
|
|
1434
|
-
{
|
|
1435
|
-
"url": "about:blank",
|
|
1436
|
-
"contextOrigin": "https://lease-pilot.sliccy.ai",
|
|
1437
|
-
"opener": "protected",
|
|
1438
|
-
"kept": true
|
|
1439
|
-
},
|
|
1440
|
-
{
|
|
1441
|
-
"url": "about:blank",
|
|
1442
|
-
"contextOrigin": "https://lease-pilot.sliccy.ai",
|
|
1443
|
-
"opener": "unprotected",
|
|
1444
|
-
"kept": true
|
|
1445
|
-
},
|
|
1446
|
-
{
|
|
1447
|
-
"url": "about:blank",
|
|
1448
|
-
"contextOrigin": "https://lease-pilot.sliccy.ai",
|
|
1449
|
-
"previous": true,
|
|
1450
|
-
"kept": true
|
|
1451
|
-
},
|
|
1452
|
-
{ "url": "about:blank", "contextOrigin": "https://lease-pilot.sliccy.ai:8443", "kept": false },
|
|
1453
|
-
{ "url": "about:blank", "contextOrigin": "http://lease-pilot.sliccy.ai", "kept": false },
|
|
1454
|
-
{ "url": "about:blank", "contextOrigin": "https://a.lease-pilot.sliccy.ai", "kept": false },
|
|
1455
|
-
{ "url": "about:blank", "contextOrigin": "https://seven.sliccy.ai", "kept": false },
|
|
1456
|
-
{ "url": "about:blank", "contextOrigin": "https://example.com", "kept": false },
|
|
1457
|
-
{ "url": "about:blank", "contextOrigin": "https://lease-pilot.sliccy.ai/", "kept": false },
|
|
1458
|
-
{ "url": "about:blank", "contextOrigin": "HTTPS://LEASE-PILOT.SLICCY.AI", "kept": false },
|
|
1459
|
-
{ "url": "about:blank", "contextOrigin": "about://", "kept": false },
|
|
1460
|
-
{ "url": "about:blank", "contextOrigin": "://", "kept": false },
|
|
1461
|
-
{ "url": "about:blank", "kept": false },
|
|
1462
|
-
{ "url": "about:blank", "previous": true, "kept": false },
|
|
1463
|
-
{ "url": "about:blank", "opener": "protected", "kept": false },
|
|
1464
|
-
{ "url": "https://lease-pilot.sliccy.ai/", "kept": true },
|
|
1465
|
-
{ "url": "https://lease-pilot.sliccy.ai/os/x", "opener": "unprotected", "kept": true },
|
|
1466
|
-
{
|
|
1467
|
-
"url": "https://seven.sliccy.ai/",
|
|
1468
|
-
"contextOrigin": "https://lease-pilot.sliccy.ai",
|
|
1469
|
-
"kept": false
|
|
1470
1581
|
},
|
|
1471
|
-
{ "
|
|
1472
|
-
{ "
|
|
1582
|
+
{ "key": "https://get.sliccy.ai/", "protected": false },
|
|
1583
|
+
{ "key": "https://main--seven.sliccy.ai/", "protected": true },
|
|
1584
|
+
{ "key": "http://main--seven.sliccy.ai:8080/", "protected": true },
|
|
1585
|
+
{ "key": "https://a.b.sliccy.ai/", "protected": false },
|
|
1586
|
+
{ "key": "https://lease-pilot.sliccy.ai/^31", "protected": false },
|
|
1587
|
+
{ "key": "https://get.sliccy.ai/^0https://sliccy.ai", "protected": true },
|
|
1588
|
+
{ "key": "https://widget.example/^0http://sliccy.ai", "protected": true },
|
|
1589
|
+
{ "key": "https://widget.example/^0wss://sliccy.ai", "protected": false },
|
|
1590
|
+
{ "key": "https://widget.example/^0https://main--seven.sliccy.ai", "protected": true },
|
|
1591
|
+
{ "key": "https://widget.example/^0https://get.sliccy.ai", "protected": false },
|
|
1592
|
+
{ "key": "https://widget.example/^0https://a.b.sliccy.ai", "protected": false },
|
|
1593
|
+
{ "key": "https://widget.example/^0https://sliccy.ai..", "protected": false },
|
|
1594
|
+
{ "key": "https://main--seven.sliccy.ai../", "protected": false },
|
|
1595
|
+
{ "key": "https://get.sliccy.ai/^112345^2https://sliccy.ai", "protected": false }
|
|
1473
1596
|
]
|
|
1474
1597
|
}
|
package/protected.mjs
CHANGED
|
@@ -21,12 +21,30 @@ const originOf = (u) => {
|
|
|
21
21
|
|
|
22
22
|
const under = (host, domain) => host === domain || host.endsWith(`.${domain}`);
|
|
23
23
|
|
|
24
|
+
const zoneLabel = (host, zone) => {
|
|
25
|
+
if (!host.endsWith(`.${zone.domain}`)) return null;
|
|
26
|
+
const label = host.slice(0, -zone.domain.length - 1);
|
|
27
|
+
return label.includes('.') ? null : label;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const zoned = (zones, host) =>
|
|
31
|
+
zones.some((zone) => {
|
|
32
|
+
const label = zoneLabel(host, zone);
|
|
33
|
+
return label !== null && !(zone.unprotectedLabels ?? []).includes(label);
|
|
34
|
+
});
|
|
35
|
+
|
|
24
36
|
export function protectedOrigins(rules, extraOrigins = []) {
|
|
25
37
|
const extra = extraOrigins.map((o) => originOf(parse(o))).filter(Boolean);
|
|
26
38
|
const extraHosts = extraOrigins
|
|
27
39
|
.map((o) => parse(o))
|
|
28
40
|
.filter((u) => u?.host)
|
|
29
41
|
.map(hostOf);
|
|
42
|
+
const zones = rules.zones ?? [];
|
|
43
|
+
const named = (host) =>
|
|
44
|
+
rules.hosts.includes(host) || rules.domains.some((d) => under(host, d)) || zoned(zones, host);
|
|
45
|
+
const zoneAncestor = (host) => zones.some((z) => under(z.domain, host));
|
|
46
|
+
const covers = (host) =>
|
|
47
|
+
[...rules.domains, ...rules.hosts].some((h) => under(h, host)) || zoneAncestor(host);
|
|
30
48
|
|
|
31
49
|
const unwrap = (u) => {
|
|
32
50
|
for (let i = 0; u && rules.innerSchemes.includes(scheme(u)) && i < 8; i += 1) {
|
|
@@ -52,8 +70,7 @@ export function protectedOrigins(rules, extraOrigins = []) {
|
|
|
52
70
|
if (rules.anySchemes.includes(s)) return true;
|
|
53
71
|
if ((rules.protectedSchemes ?? []).includes(s))
|
|
54
72
|
return !(rules.schemeExceptions ?? []).includes(`${s}://${hostOf(u)}`);
|
|
55
|
-
if (rules.schemes.includes(s) &&
|
|
56
|
-
if (rules.schemes.includes(s) && rules.domains.some((d) => under(hostOf(u), d))) return true;
|
|
73
|
+
if (rules.schemes.includes(s) && named(hostOf(u))) return true;
|
|
57
74
|
const o = originOf(u);
|
|
58
75
|
return o !== null && extra.includes(o);
|
|
59
76
|
};
|
|
@@ -115,15 +132,22 @@ export function protectedOrigins(rules, extraOrigins = []) {
|
|
|
115
132
|
if (d.startsWith('.')) d = d.slice(1);
|
|
116
133
|
if (d.endsWith('.')) d = d.slice(0, -1);
|
|
117
134
|
if (d === '') return false;
|
|
118
|
-
if (
|
|
119
|
-
return
|
|
135
|
+
if (named(d) || covers(d)) return true;
|
|
136
|
+
return extraHosts.some((h) => under(h, d));
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
const site = (text) => {
|
|
140
|
+
const u = parse(text);
|
|
141
|
+
return u !== null && rules.schemes.includes(scheme(u)) && zoneAncestor(hostOf(u));
|
|
120
142
|
};
|
|
121
143
|
|
|
122
144
|
const storageKey = (key) => {
|
|
123
145
|
const [first, ...rest] = key.split('^');
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
146
|
+
if (url(first, { readOnly: true })) return true;
|
|
147
|
+
return rest
|
|
148
|
+
.filter((p) => p.startsWith('0'))
|
|
149
|
+
.map((p) => p.slice(1))
|
|
150
|
+
.some((text) => url(text, { readOnly: true }) || site(text));
|
|
127
151
|
};
|
|
128
152
|
|
|
129
153
|
const extensionFrame = (text) => {
|
|
@@ -194,7 +194,6 @@
|
|
|
194
194
|
"properties": {
|
|
195
195
|
"domains": {
|
|
196
196
|
"type": "array",
|
|
197
|
-
"minItems": 1,
|
|
198
197
|
"uniqueItems": true,
|
|
199
198
|
"items": {
|
|
200
199
|
"type": "string",
|
|
@@ -210,11 +209,32 @@
|
|
|
210
209
|
}
|
|
211
210
|
},
|
|
212
211
|
"keptOrigins": {
|
|
213
|
-
"description": "Exact https origins (scheme and host, no port, path or trailing slash) whose documents are kept. A URL is kept when it parses as https on the default port and its host equals an entry's host, compared case-insensitively with one trailing dot ignored, for any path, query or fragment; userinfo does not change the host, and wrapped URLs (blob:, view-source:) are not kept. An inheriting document (about:blank) is kept when its context origin equals an entry exactly. Every kept origin is also a protected origin. Keeping only narrows and never grants protection: a consumer evaluates protected and kept together, and keeping never changes whether a page is protected. The about:blank case only means something beside the consumer's own context-origin judge. Optional; consumers without a kept notion ignore it.",
|
|
212
|
+
"description": "Exact https origins (scheme and host, no port, path or trailing slash) whose documents are kept. A URL is kept when it parses as https on the default port and its host equals an entry's host, compared case-insensitively with one trailing dot ignored, for any path, query or fragment; userinfo does not change the host, and wrapped URLs (blob:, view-source:) are not kept. An inheriting document (about:blank) is kept when its context origin equals an entry exactly. Every kept origin is also a protected origin. Keeping only narrows and never grants protection: a consumer evaluates protected and kept together, and keeping never changes whether a page is protected. The about:blank case only means something beside the consumer's own context-origin judge. Optional and no longer set by the catalog; consumers without a kept notion ignore it.",
|
|
214
213
|
"type": "array",
|
|
215
214
|
"uniqueItems": true,
|
|
216
215
|
"items": { "type": "string", "pattern": "^https://[a-z0-9.-]+$" }
|
|
217
216
|
},
|
|
217
|
+
"zones": {
|
|
218
|
+
"description": "Domains protected one label deep. A zone protects a host that is <label>.<domain> with exactly one label before the domain (the label holds no dot) unless the label is in unprotectedLabels; the domain itself and names two or more labels below it are not protected by the zone. Any dot-free label counts, so an empty label (.<domain>) and a label that is not a valid hostname label (such as a_b) are protected too, erring towards protecting more. Hosts compare case-insensitively with exactly one trailing dot ignored, so a host ending in two dots is not protected, on the schemes in schemes and on any port, after the consumer's URL parsing: userinfo does not change the host and wrapped URLs (innerSchemes) are unwrapped first. A cookie domain is protected when a zone protects it as a host or when it is the zone's domain or a parent of it, because the hosts the zone protects read cookies set there; a storage key's top-level site (a ^0 part) is protected on the same terms. Consumers must implement zones: a consumer that ignores them protects less than the catalog and fails the protected.json vectors.",
|
|
219
|
+
"type": "array",
|
|
220
|
+
"uniqueItems": true,
|
|
221
|
+
"items": {
|
|
222
|
+
"type": "object",
|
|
223
|
+
"additionalProperties": false,
|
|
224
|
+
"required": ["domain", "unprotectedLabels"],
|
|
225
|
+
"properties": {
|
|
226
|
+
"domain": {
|
|
227
|
+
"type": "string",
|
|
228
|
+
"pattern": "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)+$"
|
|
229
|
+
},
|
|
230
|
+
"unprotectedLabels": {
|
|
231
|
+
"type": "array",
|
|
232
|
+
"uniqueItems": true,
|
|
233
|
+
"items": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$" }
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
},
|
|
218
238
|
"schemes": { "$ref": "#/$defs/schemes", "type": "array", "minItems": 1 },
|
|
219
239
|
"innerSchemes": { "$ref": "#/$defs/schemes" },
|
|
220
240
|
"anySchemes": { "$ref": "#/$defs/schemes" },
|
|
@@ -265,14 +285,14 @@
|
|
|
265
285
|
}
|
|
266
286
|
},
|
|
267
287
|
"credentialOrigins": {
|
|
268
|
-
"
|
|
288
|
+
"deprecated": true,
|
|
289
|
+
"description": "Deprecated compatibility field. The shipped catalog keeps origins empty: sign-in hosts receive no special handling. The schema still accepts previously supported lists for consumers.",
|
|
269
290
|
"type": "object",
|
|
270
291
|
"additionalProperties": false,
|
|
271
292
|
"required": ["origins", "refusal"],
|
|
272
293
|
"properties": {
|
|
273
294
|
"origins": {
|
|
274
295
|
"type": "array",
|
|
275
|
-
"minItems": 1,
|
|
276
296
|
"uniqueItems": true,
|
|
277
297
|
"items": {
|
|
278
298
|
"type": "string",
|