@ai-ecoverse/slicc-browsers 1.8.4 → 1.9.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 +45 -8
- package/catalog.json +7 -0
- package/extension-world.mjs +316 -0
- package/guard-runner.mjs +17 -0
- package/guard-vectors.json +1149 -238
- package/package.json +7 -6
- package/protected.json +220 -0
- package/schema/guard-vectors.schema.json +34 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-browsers",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.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",
|
|
@@ -50,7 +50,8 @@
|
|
|
50
50
|
"seven.mjs",
|
|
51
51
|
"schema",
|
|
52
52
|
"guard-runner.mjs",
|
|
53
|
-
"fixture-server.mjs"
|
|
53
|
+
"fixture-server.mjs",
|
|
54
|
+
"extension-world.mjs"
|
|
54
55
|
],
|
|
55
56
|
"scripts": {
|
|
56
57
|
"prepare": "lefthook install",
|
|
@@ -65,19 +66,19 @@
|
|
|
65
66
|
"trust:dry": "npx fledgling sync --dry-run -y --skip-publish",
|
|
66
67
|
"release": "semantic-release",
|
|
67
68
|
"test:guard": "npm run test:guard-integration && npm run test:guard-sweep",
|
|
68
|
-
"test:guard-integration": "node --test 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-scales.test.mjs",
|
|
69
|
+
"test:guard-integration": "node --test --test-concurrency=2 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-scales.test.mjs",
|
|
69
70
|
"test:guard-sweep": "node scripts/test-guards.mjs",
|
|
70
71
|
"test:gates": "node --test test/integration/gates.test.mjs",
|
|
71
72
|
"test:guard-target": "node --test test/integration/guard-runner.test.mjs",
|
|
72
73
|
"test:unit:guard": "node --experimental-test-coverage --test --test-coverage-include=guard-runner.mjs --test-coverage-include=fixture-server.mjs --test-coverage-lines=100 test/unit/guard-*.test.mjs"
|
|
73
74
|
},
|
|
74
75
|
"devDependencies": {
|
|
75
|
-
"@ai-ecoverse/slicc-shared-web": "1.
|
|
76
|
+
"@ai-ecoverse/slicc-shared-web": "1.25.1",
|
|
76
77
|
"@biomejs/biome": "2.5.15",
|
|
77
78
|
"ajv": "8.20.0",
|
|
78
79
|
"ajv-formats": "3.0.1",
|
|
79
80
|
"lefthook": "2.2.1",
|
|
80
|
-
"
|
|
81
|
-
"
|
|
81
|
+
"playwright-core": "1.64.1",
|
|
82
|
+
"semantic-release": "25.0.9"
|
|
82
83
|
}
|
|
83
84
|
}
|
package/protected.json
CHANGED
|
@@ -326,6 +326,146 @@
|
|
|
326
326
|
"url": "chrome://settings/",
|
|
327
327
|
"protected": true
|
|
328
328
|
},
|
|
329
|
+
{
|
|
330
|
+
"url": "chrome-search://local-ntp/",
|
|
331
|
+
"protected": true
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"url": "view-source:chrome-search://local-ntp/",
|
|
335
|
+
"protected": true
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"url": "https://ordinary.example.test/?next=chrome-search%3A%2F%2Flocal-ntp%2F",
|
|
339
|
+
"protected": false
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"url": "chrome-search://most-visited/",
|
|
343
|
+
"protected": true
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"url": "view-source:chrome-search://most-visited/",
|
|
347
|
+
"protected": true
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"url": "https://ordinary.example.test/?next=chrome-search%3A%2F%2Fmost-visited%2F",
|
|
351
|
+
"protected": false
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"url": "chrome-search://remote-ntp/",
|
|
355
|
+
"protected": true
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"url": "view-source:chrome-search://remote-ntp/",
|
|
359
|
+
"protected": true
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"url": "https://ordinary.example.test/?next=chrome-search%3A%2F%2Fremote-ntp%2F",
|
|
363
|
+
"protected": false
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"url": "chrome-search://new-tab-page/",
|
|
367
|
+
"protected": true
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"url": "view-source:chrome-search://new-tab-page/",
|
|
371
|
+
"protected": true
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"url": "https://ordinary.example.test/?next=chrome-search%3A%2F%2Fnew-tab-page%2F",
|
|
375
|
+
"protected": false
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"url": "chrome-native://newtab/",
|
|
379
|
+
"protected": true
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"url": "view-source:chrome-native://newtab/",
|
|
383
|
+
"protected": true
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"url": "https://ordinary.example.test/?next=chrome-native%3A%2F%2Fnewtab%2F",
|
|
387
|
+
"protected": false
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"url": "chrome-distiller://reader/?url=https://example.test/",
|
|
391
|
+
"protected": true
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"url": "view-source:chrome-distiller://reader/?url=https://example.test/",
|
|
395
|
+
"protected": true
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"url": "https://ordinary.example.test/?next=chrome-distiller%3A%2F%2Freader%2F%3Furl%3Dhttps%3A%2F%2Fexample.test%2F",
|
|
399
|
+
"protected": false
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"url": "chrome-error://chromewebdata/",
|
|
403
|
+
"protected": false
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"url": "view-source:chrome-error://chromewebdata/",
|
|
407
|
+
"protected": false
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"url": "https://ordinary.example.test/?next=chrome-error%3A%2F%2Fchromewebdata%2F",
|
|
411
|
+
"protected": false
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"url": "chrome-experimental-site-token-provider://token/",
|
|
415
|
+
"protected": true
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"url": "view-source:chrome-experimental-site-token-provider://token/",
|
|
419
|
+
"protected": true
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"url": "https://ordinary.example.test/?next=chrome-experimental-site-token-provider%3A%2F%2Ftoken%2F",
|
|
423
|
+
"protected": false
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"url": "isolated-app://app-id/",
|
|
427
|
+
"protected": true
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"url": "view-source:isolated-app://app-id/",
|
|
431
|
+
"protected": true
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"url": "https://ordinary.example.test/?next=isolated-app%3A%2F%2Fapp-id%2F",
|
|
435
|
+
"protected": false
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"url": "externalfile://downloads/private.txt",
|
|
439
|
+
"protected": true
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"url": "view-source:externalfile://downloads/private.txt",
|
|
443
|
+
"protected": true
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"url": "https://ordinary.example.test/?next=externalfile%3A%2F%2Fdownloads%2Fprivate.txt",
|
|
447
|
+
"protected": false
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"url": "content://provider/private.txt",
|
|
451
|
+
"protected": true
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"url": "view-source:content://provider/private.txt",
|
|
455
|
+
"protected": true
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"url": "https://ordinary.example.test/?next=content%3A%2F%2Fprovider%2Fprivate.txt",
|
|
459
|
+
"protected": false
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"url": "android-app://com.example/https/example.test/",
|
|
463
|
+
"protected": false
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"url": "googlechrome://example.test/",
|
|
467
|
+
"protected": false
|
|
468
|
+
},
|
|
329
469
|
{
|
|
330
470
|
"url": "chrome://settings/passwords",
|
|
331
471
|
"protected": true
|
|
@@ -516,6 +656,86 @@
|
|
|
516
656
|
}
|
|
517
657
|
],
|
|
518
658
|
"targets": [
|
|
659
|
+
{
|
|
660
|
+
"url": "chrome-search://private/",
|
|
661
|
+
"type": "iframe",
|
|
662
|
+
"protected": true
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
"url": "https://ordinary.example.test/chrome-search",
|
|
666
|
+
"type": "page",
|
|
667
|
+
"protected": false
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
"url": "chrome-native://private/",
|
|
671
|
+
"type": "iframe",
|
|
672
|
+
"protected": true
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
"url": "https://ordinary.example.test/chrome-native",
|
|
676
|
+
"type": "page",
|
|
677
|
+
"protected": false
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
"url": "chrome-distiller://private/",
|
|
681
|
+
"type": "iframe",
|
|
682
|
+
"protected": true
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
"url": "https://ordinary.example.test/chrome-distiller",
|
|
686
|
+
"type": "page",
|
|
687
|
+
"protected": false
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
"url": "chrome-error://private/",
|
|
691
|
+
"type": "iframe",
|
|
692
|
+
"protected": false
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
"url": "https://ordinary.example.test/chrome-error",
|
|
696
|
+
"type": "page",
|
|
697
|
+
"protected": false
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
"url": "chrome-experimental-site-token-provider://private/",
|
|
701
|
+
"type": "iframe",
|
|
702
|
+
"protected": true
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
"url": "https://ordinary.example.test/chrome-experimental-site-token-provider",
|
|
706
|
+
"type": "page",
|
|
707
|
+
"protected": false
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"url": "isolated-app://private/",
|
|
711
|
+
"type": "iframe",
|
|
712
|
+
"protected": true
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
"url": "https://ordinary.example.test/isolated-app",
|
|
716
|
+
"type": "page",
|
|
717
|
+
"protected": false
|
|
718
|
+
},
|
|
719
|
+
{
|
|
720
|
+
"url": "externalfile://private/",
|
|
721
|
+
"type": "iframe",
|
|
722
|
+
"protected": true
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
"url": "https://ordinary.example.test/externalfile",
|
|
726
|
+
"type": "page",
|
|
727
|
+
"protected": false
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
"url": "content://private/",
|
|
731
|
+
"type": "iframe",
|
|
732
|
+
"protected": true
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
"url": "https://ordinary.example.test/content",
|
|
736
|
+
"type": "page",
|
|
737
|
+
"protected": false
|
|
738
|
+
},
|
|
519
739
|
{
|
|
520
740
|
"url": "https://seven.sliccy.ai/",
|
|
521
741
|
"protected": true
|
|
@@ -81,7 +81,13 @@
|
|
|
81
81
|
"capabilities": {
|
|
82
82
|
"type": "object",
|
|
83
83
|
"additionalProperties": false,
|
|
84
|
-
"required": [
|
|
84
|
+
"required": [
|
|
85
|
+
"autoAttach",
|
|
86
|
+
"browserSession",
|
|
87
|
+
"browserContexts",
|
|
88
|
+
"chromeUrlsAttach",
|
|
89
|
+
"extensionWorld"
|
|
90
|
+
],
|
|
85
91
|
"properties": {
|
|
86
92
|
"autoAttach": {
|
|
87
93
|
"type": "string",
|
|
@@ -95,6 +101,7 @@
|
|
|
95
101
|
"type": "string",
|
|
96
102
|
"minLength": 1
|
|
97
103
|
},
|
|
104
|
+
"extensionWorld": { "type": "string", "minLength": 1 },
|
|
98
105
|
"chromeUrlsAttach": {
|
|
99
106
|
"type": "string",
|
|
100
107
|
"minLength": 1
|
|
@@ -121,7 +128,13 @@
|
|
|
121
128
|
},
|
|
122
129
|
"$defs": {
|
|
123
130
|
"capability": {
|
|
124
|
-
"enum": [
|
|
131
|
+
"enum": [
|
|
132
|
+
"autoAttach",
|
|
133
|
+
"browserSession",
|
|
134
|
+
"browserContexts",
|
|
135
|
+
"chromeUrlsAttach",
|
|
136
|
+
"extensionWorld"
|
|
137
|
+
]
|
|
125
138
|
},
|
|
126
139
|
"requires": {
|
|
127
140
|
"type": "array",
|
|
@@ -161,6 +174,7 @@
|
|
|
161
174
|
},
|
|
162
175
|
"target": {
|
|
163
176
|
"enum": [
|
|
177
|
+
"ordinary",
|
|
164
178
|
"seven",
|
|
165
179
|
"vault",
|
|
166
180
|
"vault-x",
|
|
@@ -170,6 +184,8 @@
|
|
|
170
184
|
"chrome-new-tab-page",
|
|
171
185
|
"chrome-settings",
|
|
172
186
|
"chrome-passwords",
|
|
187
|
+
"chrome-search",
|
|
188
|
+
"network-error",
|
|
173
189
|
"chrome-extension-page",
|
|
174
190
|
"file-root"
|
|
175
191
|
]
|
|
@@ -411,6 +427,22 @@
|
|
|
411
427
|
},
|
|
412
428
|
"step": {
|
|
413
429
|
"oneOf": [
|
|
430
|
+
{
|
|
431
|
+
"type": "object",
|
|
432
|
+
"additionalProperties": false,
|
|
433
|
+
"required": ["extensionWorld", "as", "requires"],
|
|
434
|
+
"properties": {
|
|
435
|
+
"extensionWorld": {
|
|
436
|
+
"enum": ["hidden", "select", "debugger", "drivable"]
|
|
437
|
+
},
|
|
438
|
+
"as": {
|
|
439
|
+
"$ref": "#/$defs/name"
|
|
440
|
+
},
|
|
441
|
+
"requires": {
|
|
442
|
+
"$ref": "#/$defs/requires"
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
},
|
|
414
446
|
{
|
|
415
447
|
"type": "object",
|
|
416
448
|
"additionalProperties": false,
|