@ai-ecoverse/slicc-browsers 1.25.0 → 1.26.1
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 +1 -0
- package/fixture-server.mjs +11 -0
- package/guard-runner.mjs +30 -1
- package/guard-vectors.json +564 -5
- package/package.json +3 -2
- package/protected-parent-iframes.mjs +370 -88
- package/schema/guard-vectors.schema.json +28 -1
- package/sign-in-hold.mjs +703 -0
package/guard-vectors.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"setVersion": "1.
|
|
3
|
+
"setVersion": "1.26.1",
|
|
4
4
|
"sources": [
|
|
5
5
|
{
|
|
6
6
|
"repo": "ai-ecoverse/slicc-cli",
|
|
@@ -106,7 +106,8 @@
|
|
|
106
106
|
"stockSetup": "the guard admits stock clients' setup calls: init scripts with no code (the no-code regex is matched on the whole string without the multiline flag), the four display emulation calls, bindings scoped to an isolated world, Page.createIsolatedWorld on an ordinary frame with grantUniveralAccess and contentSecurityPolicy stripped and no executionContextId for any other frame, and Target.setAutoAttach that either narrows to tab targets or hides per target so no protected-origin page, iframe or worker reaches the client (pages under the tab held like pages, with the same URL redaction in targetInfo)",
|
|
107
107
|
"syntheticAutoAttach": "the transport has no native Target.setAutoAttach, so the guard attaches new tabs, pages and their children itself and synthesizes Target.attachedToTarget, with the same placement and holds",
|
|
108
108
|
"secureOrigin": "the fixture and page origins are secure contexts (HTTPS), so service worker registration is available",
|
|
109
|
-
"closeProtected": "the guard lets Target.closeTarget close a protected tab"
|
|
109
|
+
"closeProtected": "the guard lets Target.closeTarget close a protected tab",
|
|
110
|
+
"signInHold": "the guard runs seven's sign-in hold: holds about:blank#slicc-sign-in-<marker> popups (and keeps them held after they move to an ordinary URL), and keeps callback-only authorize tabs that name seven's callback out of /json/list, Target.getTargets, discovery events, attach and title/body reads; announcing only the target id with empty URL/title while a Puppeteer-style connect still completes is acceptable"
|
|
110
111
|
},
|
|
111
112
|
"placeholders": {
|
|
112
113
|
"target": "the target's origin; {plain} on the control",
|
|
@@ -26725,7 +26726,7 @@
|
|
|
26725
26726
|
{
|
|
26726
26727
|
"cdp": "Page.addScriptToEvaluateOnNewDocument",
|
|
26727
26728
|
"params": {
|
|
26728
|
-
"source": "// slicc
|
|
26729
|
+
"source": "// slicc
fetch(new URL('/doc?n=bound-ls-{tag}', location.href)).catch(()=>{})\n//# sourceURL=slicc-ls-{tag}\n",
|
|
26729
26730
|
"worldName": "slicc-bound-ls-{tag}"
|
|
26730
26731
|
},
|
|
26731
26732
|
"as": "boundLs",
|
|
@@ -26737,7 +26738,7 @@
|
|
|
26737
26738
|
{
|
|
26738
26739
|
"cdp": "Page.addScriptToEvaluateOnNewDocument",
|
|
26739
26740
|
"params": {
|
|
26740
|
-
"source": "// slicc
|
|
26741
|
+
"source": "// slicc
fetch(new URL('/doc?n=bound-ps-{tag}', location.href)).catch(()=>{})\n//# sourceURL=slicc-ps-{tag}\n",
|
|
26741
26742
|
"worldName": "slicc-bound-ps-{tag}"
|
|
26742
26743
|
},
|
|
26743
26744
|
"as": "boundPs",
|
|
@@ -26773,7 +26774,7 @@
|
|
|
26773
26774
|
{
|
|
26774
26775
|
"cdp": "Page.addScriptToEvaluateOnNewDocument",
|
|
26775
26776
|
"params": {
|
|
26776
|
-
"source": "
|
|
26777
|
+
"source": "fetch(new URL('/doc?n=bound-bom-{tag}', location.href)).catch(()=>{})\n//# sourceURL=slicc-bom-{tag}\n",
|
|
26777
26778
|
"worldName": "slicc-bound-bom-{tag}"
|
|
26778
26779
|
},
|
|
26779
26780
|
"as": "boundBom",
|
|
@@ -31784,6 +31785,7 @@
|
|
|
31784
31785
|
}
|
|
31785
31786
|
],
|
|
31786
31787
|
"targets": ["seven", "vault"],
|
|
31788
|
+
"requires": ["autoAttach"],
|
|
31787
31789
|
"observe": {
|
|
31788
31790
|
"frameTree": {
|
|
31789
31791
|
"means": "C3.protected-parent-iframes.page: Page.getFrameTree through the page session shows the ordinary grandchild under the middle frame by frameId, URL, or parentId",
|
|
@@ -31946,6 +31948,7 @@
|
|
|
31946
31948
|
}
|
|
31947
31949
|
],
|
|
31948
31950
|
"targets": ["seven"],
|
|
31951
|
+
"requires": ["autoAttach"],
|
|
31949
31952
|
"observe": {
|
|
31950
31953
|
"frameTree": {
|
|
31951
31954
|
"means": "C3.protected-parent-srcdoc.page: Page.getFrameTree through the page session shows the ordinary grandchild under the middle frame by frameId, URL, or parentId",
|
|
@@ -32096,6 +32099,7 @@
|
|
|
32096
32099
|
}
|
|
32097
32100
|
],
|
|
32098
32101
|
"targets": ["seven"],
|
|
32102
|
+
"requires": ["autoAttach"],
|
|
32099
32103
|
"observe": {
|
|
32100
32104
|
"frameTree": {
|
|
32101
32105
|
"means": "C3.ordinary-parent-iframes.page: Page.getFrameTree through the page session shows the ordinary grandchild under the middle frame by frameId, URL, or parentId",
|
|
@@ -32222,6 +32226,561 @@
|
|
|
32222
32226
|
"targetEvents": "either"
|
|
32223
32227
|
},
|
|
32224
32228
|
"designDependent": ["targetInfo", "childAttach", "targetEvents"]
|
|
32229
|
+
},
|
|
32230
|
+
{
|
|
32231
|
+
"id": "C7.sign-in-hold.held-popup",
|
|
32232
|
+
"family": "C",
|
|
32233
|
+
"kind": "cdp",
|
|
32234
|
+
"scope": "any",
|
|
32235
|
+
"defaultContext": true,
|
|
32236
|
+
"requires": ["signInHold", "browserSession"],
|
|
32237
|
+
"setup": [
|
|
32238
|
+
{
|
|
32239
|
+
"text": "seven's page opens about:blank#slicc-sign-in-<marker>, asks the slicc-held hold, then moves the popup to an ordinary URL; a guarded client must not list it in /json/list or Target.getTargets with URL/title, must not discover those, must not attach or read title/body; announcing only the id with empty URL/title while connect still completes is acceptable; an ordinary page's ordinary popup stays reachable on the control"
|
|
32240
|
+
},
|
|
32241
|
+
{
|
|
32242
|
+
"page": "tab",
|
|
32243
|
+
"url": "{ordinary}/blank"
|
|
32244
|
+
}
|
|
32245
|
+
],
|
|
32246
|
+
"trigger": [
|
|
32247
|
+
{
|
|
32248
|
+
"signInHold": "held-popup",
|
|
32249
|
+
"as": "probe",
|
|
32250
|
+
"requires": ["signInHold", "browserSession"]
|
|
32251
|
+
}
|
|
32252
|
+
],
|
|
32253
|
+
"targets": ["seven"],
|
|
32254
|
+
"observe": {
|
|
32255
|
+
"jsonListed": {
|
|
32256
|
+
"means": "C7.sign-in-hold.held-popup: /json/list through the client shows the sign-in or held tab by id, URL or title",
|
|
32257
|
+
"check": {
|
|
32258
|
+
"result": "probe",
|
|
32259
|
+
"path": "result.jsonListed",
|
|
32260
|
+
"equals": true,
|
|
32261
|
+
"observer": "client"
|
|
32262
|
+
},
|
|
32263
|
+
"absencePoll": true
|
|
32264
|
+
},
|
|
32265
|
+
"targetsListed": {
|
|
32266
|
+
"means": "C7.sign-in-hold.held-popup: Target.getTargets through the client shows the sign-in or held tab with a non-empty URL or title",
|
|
32267
|
+
"check": {
|
|
32268
|
+
"result": "probe",
|
|
32269
|
+
"path": "result.targetsListed",
|
|
32270
|
+
"equals": true,
|
|
32271
|
+
"observer": "client"
|
|
32272
|
+
},
|
|
32273
|
+
"absencePoll": true
|
|
32274
|
+
},
|
|
32275
|
+
"eventsSeen": {
|
|
32276
|
+
"means": "C7.sign-in-hold.held-popup: a discovery event carries the sign-in or held tab with a non-empty URL or title",
|
|
32277
|
+
"requires": ["discovery"],
|
|
32278
|
+
"check": {
|
|
32279
|
+
"result": "probe",
|
|
32280
|
+
"path": "result.eventsSeen",
|
|
32281
|
+
"equals": true,
|
|
32282
|
+
"observer": "client"
|
|
32283
|
+
},
|
|
32284
|
+
"absencePoll": true
|
|
32285
|
+
},
|
|
32286
|
+
"idAnnounced": {
|
|
32287
|
+
"means": "C7.sign-in-hold.held-popup: the client learned the tab's target id with empty URL and title (announce-only)",
|
|
32288
|
+
"check": {
|
|
32289
|
+
"result": "probe",
|
|
32290
|
+
"path": "result.idAnnounced",
|
|
32291
|
+
"equals": true,
|
|
32292
|
+
"observer": "client"
|
|
32293
|
+
},
|
|
32294
|
+
"absencePoll": true
|
|
32295
|
+
},
|
|
32296
|
+
"attachSession": {
|
|
32297
|
+
"means": "C7.sign-in-hold.held-popup: Target.attachToTarget on the raw tab id returned a session",
|
|
32298
|
+
"check": {
|
|
32299
|
+
"result": "probe",
|
|
32300
|
+
"path": "result.attachSession",
|
|
32301
|
+
"equals": true,
|
|
32302
|
+
"observer": "client"
|
|
32303
|
+
}
|
|
32304
|
+
},
|
|
32305
|
+
"attachRefused": {
|
|
32306
|
+
"means": "C7.sign-in-hold.held-popup: Target.attachToTarget on the raw tab id was refused with a slicc refusal",
|
|
32307
|
+
"check": {
|
|
32308
|
+
"result": "probe",
|
|
32309
|
+
"path": "result.attachRefused",
|
|
32310
|
+
"equals": true,
|
|
32311
|
+
"observer": "client"
|
|
32312
|
+
}
|
|
32313
|
+
},
|
|
32314
|
+
"contentRead": {
|
|
32315
|
+
"means": "C7.sign-in-hold.held-popup: the client read the tab's title or body mark through the guard",
|
|
32316
|
+
"check": {
|
|
32317
|
+
"result": "probe",
|
|
32318
|
+
"path": "result.contentRead",
|
|
32319
|
+
"equals": true,
|
|
32320
|
+
"observer": "client"
|
|
32321
|
+
}
|
|
32322
|
+
},
|
|
32323
|
+
"held": {
|
|
32324
|
+
"means": "C7.sign-in-hold.held-popup: the slicc-held BroadcastChannel hold was acknowledged",
|
|
32325
|
+
"check": {
|
|
32326
|
+
"result": "probe",
|
|
32327
|
+
"path": "result.held",
|
|
32328
|
+
"equals": true,
|
|
32329
|
+
"observer": "client"
|
|
32330
|
+
}
|
|
32331
|
+
},
|
|
32332
|
+
"connectCompletes": {
|
|
32333
|
+
"means": "C7.sign-in-hold.held-popup: a Puppeteer-style Browser.getVersion plus Target.getTargets connect through the guard completed",
|
|
32334
|
+
"check": {
|
|
32335
|
+
"result": "probe",
|
|
32336
|
+
"path": "result.connectCompletes",
|
|
32337
|
+
"equals": true,
|
|
32338
|
+
"observer": "client"
|
|
32339
|
+
}
|
|
32340
|
+
}
|
|
32341
|
+
},
|
|
32342
|
+
"live": "the unguarded observer opened the sign-in or held tab and read its body mark",
|
|
32343
|
+
"liveCheck": {
|
|
32344
|
+
"result": "probe",
|
|
32345
|
+
"path": "result.live",
|
|
32346
|
+
"equals": true,
|
|
32347
|
+
"observer": "client"
|
|
32348
|
+
},
|
|
32349
|
+
"designDependent": ["idAnnounced"],
|
|
32350
|
+
"control": {
|
|
32351
|
+
"origin": "ordinary",
|
|
32352
|
+
"via": "unguarded",
|
|
32353
|
+
"expected": {
|
|
32354
|
+
"jsonListed": true,
|
|
32355
|
+
"targetsListed": true,
|
|
32356
|
+
"eventsSeen": true,
|
|
32357
|
+
"idAnnounced": false,
|
|
32358
|
+
"attachSession": true,
|
|
32359
|
+
"attachRefused": false,
|
|
32360
|
+
"contentRead": true,
|
|
32361
|
+
"connectCompletes": true,
|
|
32362
|
+
"held": false
|
|
32363
|
+
}
|
|
32364
|
+
},
|
|
32365
|
+
"expected": {
|
|
32366
|
+
"jsonListed": false,
|
|
32367
|
+
"targetsListed": false,
|
|
32368
|
+
"eventsSeen": false,
|
|
32369
|
+
"idAnnounced": "either",
|
|
32370
|
+
"attachSession": false,
|
|
32371
|
+
"attachRefused": true,
|
|
32372
|
+
"contentRead": false,
|
|
32373
|
+
"connectCompletes": true,
|
|
32374
|
+
"held": true
|
|
32375
|
+
}
|
|
32376
|
+
},
|
|
32377
|
+
{
|
|
32378
|
+
"id": "C7.sign-in-hold.callback",
|
|
32379
|
+
"family": "C",
|
|
32380
|
+
"kind": "cdp",
|
|
32381
|
+
"scope": "any",
|
|
32382
|
+
"defaultContext": true,
|
|
32383
|
+
"requires": ["signInHold", "browserSession"],
|
|
32384
|
+
"setup": [
|
|
32385
|
+
{
|
|
32386
|
+
"text": "a tab at an authorize URL with client_id=any and redirect_uri naming seven's callback (percent-encoded once) must stay out of /json/list, Target.getTargets with URL/title, discovery, attach and title/body reads"
|
|
32387
|
+
},
|
|
32388
|
+
{
|
|
32389
|
+
"page": "tab",
|
|
32390
|
+
"url": "{ordinary}/blank"
|
|
32391
|
+
}
|
|
32392
|
+
],
|
|
32393
|
+
"trigger": [
|
|
32394
|
+
{
|
|
32395
|
+
"signInHold": "callback",
|
|
32396
|
+
"as": "probe",
|
|
32397
|
+
"requires": ["signInHold", "browserSession"]
|
|
32398
|
+
}
|
|
32399
|
+
],
|
|
32400
|
+
"targets": ["seven"],
|
|
32401
|
+
"observe": {
|
|
32402
|
+
"jsonListed": {
|
|
32403
|
+
"means": "C7.sign-in-hold.callback: /json/list through the client shows the sign-in or held tab by id, URL or title",
|
|
32404
|
+
"check": {
|
|
32405
|
+
"result": "probe",
|
|
32406
|
+
"path": "result.jsonListed",
|
|
32407
|
+
"equals": true,
|
|
32408
|
+
"observer": "client"
|
|
32409
|
+
},
|
|
32410
|
+
"absencePoll": true
|
|
32411
|
+
},
|
|
32412
|
+
"targetsListed": {
|
|
32413
|
+
"means": "C7.sign-in-hold.callback: Target.getTargets through the client shows the sign-in or held tab with a non-empty URL or title",
|
|
32414
|
+
"check": {
|
|
32415
|
+
"result": "probe",
|
|
32416
|
+
"path": "result.targetsListed",
|
|
32417
|
+
"equals": true,
|
|
32418
|
+
"observer": "client"
|
|
32419
|
+
},
|
|
32420
|
+
"absencePoll": true
|
|
32421
|
+
},
|
|
32422
|
+
"eventsSeen": {
|
|
32423
|
+
"means": "C7.sign-in-hold.callback: a discovery event carries the sign-in or held tab with a non-empty URL or title",
|
|
32424
|
+
"requires": ["discovery"],
|
|
32425
|
+
"check": {
|
|
32426
|
+
"result": "probe",
|
|
32427
|
+
"path": "result.eventsSeen",
|
|
32428
|
+
"equals": true,
|
|
32429
|
+
"observer": "client"
|
|
32430
|
+
},
|
|
32431
|
+
"absencePoll": true
|
|
32432
|
+
},
|
|
32433
|
+
"idAnnounced": {
|
|
32434
|
+
"means": "C7.sign-in-hold.callback: the client learned the tab's target id with empty URL and title (announce-only)",
|
|
32435
|
+
"check": {
|
|
32436
|
+
"result": "probe",
|
|
32437
|
+
"path": "result.idAnnounced",
|
|
32438
|
+
"equals": true,
|
|
32439
|
+
"observer": "client"
|
|
32440
|
+
},
|
|
32441
|
+
"absencePoll": true
|
|
32442
|
+
},
|
|
32443
|
+
"attachSession": {
|
|
32444
|
+
"means": "C7.sign-in-hold.callback: Target.attachToTarget on the raw tab id returned a session",
|
|
32445
|
+
"check": {
|
|
32446
|
+
"result": "probe",
|
|
32447
|
+
"path": "result.attachSession",
|
|
32448
|
+
"equals": true,
|
|
32449
|
+
"observer": "client"
|
|
32450
|
+
}
|
|
32451
|
+
},
|
|
32452
|
+
"attachRefused": {
|
|
32453
|
+
"means": "C7.sign-in-hold.callback: Target.attachToTarget on the raw tab id was refused with a slicc refusal",
|
|
32454
|
+
"check": {
|
|
32455
|
+
"result": "probe",
|
|
32456
|
+
"path": "result.attachRefused",
|
|
32457
|
+
"equals": true,
|
|
32458
|
+
"observer": "client"
|
|
32459
|
+
}
|
|
32460
|
+
},
|
|
32461
|
+
"contentRead": {
|
|
32462
|
+
"means": "C7.sign-in-hold.callback: the client read the tab's title or body mark through the guard",
|
|
32463
|
+
"check": {
|
|
32464
|
+
"result": "probe",
|
|
32465
|
+
"path": "result.contentRead",
|
|
32466
|
+
"equals": true,
|
|
32467
|
+
"observer": "client"
|
|
32468
|
+
}
|
|
32469
|
+
},
|
|
32470
|
+
"connectCompletes": {
|
|
32471
|
+
"means": "C7.sign-in-hold.callback: a Puppeteer-style Browser.getVersion plus Target.getTargets connect through the guard completed",
|
|
32472
|
+
"check": {
|
|
32473
|
+
"result": "probe",
|
|
32474
|
+
"path": "result.connectCompletes",
|
|
32475
|
+
"equals": true,
|
|
32476
|
+
"observer": "client"
|
|
32477
|
+
}
|
|
32478
|
+
}
|
|
32479
|
+
},
|
|
32480
|
+
"live": "the unguarded observer opened the sign-in or held tab and read its body mark",
|
|
32481
|
+
"liveCheck": {
|
|
32482
|
+
"result": "probe",
|
|
32483
|
+
"path": "result.live",
|
|
32484
|
+
"equals": true,
|
|
32485
|
+
"observer": "client"
|
|
32486
|
+
},
|
|
32487
|
+
"designDependent": ["idAnnounced"],
|
|
32488
|
+
"control": {
|
|
32489
|
+
"origin": "ordinary",
|
|
32490
|
+
"via": "unguarded",
|
|
32491
|
+
"expected": {
|
|
32492
|
+
"jsonListed": true,
|
|
32493
|
+
"targetsListed": true,
|
|
32494
|
+
"eventsSeen": true,
|
|
32495
|
+
"idAnnounced": false,
|
|
32496
|
+
"attachSession": true,
|
|
32497
|
+
"attachRefused": false,
|
|
32498
|
+
"contentRead": true,
|
|
32499
|
+
"connectCompletes": true
|
|
32500
|
+
}
|
|
32501
|
+
},
|
|
32502
|
+
"expected": {
|
|
32503
|
+
"jsonListed": false,
|
|
32504
|
+
"targetsListed": false,
|
|
32505
|
+
"eventsSeen": false,
|
|
32506
|
+
"idAnnounced": "either",
|
|
32507
|
+
"attachSession": false,
|
|
32508
|
+
"attachRefused": true,
|
|
32509
|
+
"contentRead": false,
|
|
32510
|
+
"connectCompletes": true
|
|
32511
|
+
}
|
|
32512
|
+
},
|
|
32513
|
+
{
|
|
32514
|
+
"id": "C7.sign-in-hold.callback-encoded",
|
|
32515
|
+
"family": "C",
|
|
32516
|
+
"kind": "cdp",
|
|
32517
|
+
"scope": "any",
|
|
32518
|
+
"defaultContext": true,
|
|
32519
|
+
"requires": ["signInHold", "browserSession"],
|
|
32520
|
+
"setup": [
|
|
32521
|
+
{
|
|
32522
|
+
"text": "a tab at an authorize URL with client_id=any and redirect_uri naming seven's callback percent-encoded twice must stay out of reach the same way"
|
|
32523
|
+
},
|
|
32524
|
+
{
|
|
32525
|
+
"page": "tab",
|
|
32526
|
+
"url": "{ordinary}/blank"
|
|
32527
|
+
}
|
|
32528
|
+
],
|
|
32529
|
+
"trigger": [
|
|
32530
|
+
{
|
|
32531
|
+
"signInHold": "callback-encoded",
|
|
32532
|
+
"as": "probe",
|
|
32533
|
+
"requires": ["signInHold", "browserSession"]
|
|
32534
|
+
}
|
|
32535
|
+
],
|
|
32536
|
+
"targets": ["seven"],
|
|
32537
|
+
"observe": {
|
|
32538
|
+
"jsonListed": {
|
|
32539
|
+
"means": "C7.sign-in-hold.callback-encoded: /json/list through the client shows the sign-in or held tab by id, URL or title",
|
|
32540
|
+
"check": {
|
|
32541
|
+
"result": "probe",
|
|
32542
|
+
"path": "result.jsonListed",
|
|
32543
|
+
"equals": true,
|
|
32544
|
+
"observer": "client"
|
|
32545
|
+
},
|
|
32546
|
+
"absencePoll": true
|
|
32547
|
+
},
|
|
32548
|
+
"targetsListed": {
|
|
32549
|
+
"means": "C7.sign-in-hold.callback-encoded: Target.getTargets through the client shows the sign-in or held tab with a non-empty URL or title",
|
|
32550
|
+
"check": {
|
|
32551
|
+
"result": "probe",
|
|
32552
|
+
"path": "result.targetsListed",
|
|
32553
|
+
"equals": true,
|
|
32554
|
+
"observer": "client"
|
|
32555
|
+
},
|
|
32556
|
+
"absencePoll": true
|
|
32557
|
+
},
|
|
32558
|
+
"eventsSeen": {
|
|
32559
|
+
"means": "C7.sign-in-hold.callback-encoded: a discovery event carries the sign-in or held tab with a non-empty URL or title",
|
|
32560
|
+
"requires": ["discovery"],
|
|
32561
|
+
"check": {
|
|
32562
|
+
"result": "probe",
|
|
32563
|
+
"path": "result.eventsSeen",
|
|
32564
|
+
"equals": true,
|
|
32565
|
+
"observer": "client"
|
|
32566
|
+
},
|
|
32567
|
+
"absencePoll": true
|
|
32568
|
+
},
|
|
32569
|
+
"idAnnounced": {
|
|
32570
|
+
"means": "C7.sign-in-hold.callback-encoded: the client learned the tab's target id with empty URL and title (announce-only)",
|
|
32571
|
+
"check": {
|
|
32572
|
+
"result": "probe",
|
|
32573
|
+
"path": "result.idAnnounced",
|
|
32574
|
+
"equals": true,
|
|
32575
|
+
"observer": "client"
|
|
32576
|
+
},
|
|
32577
|
+
"absencePoll": true
|
|
32578
|
+
},
|
|
32579
|
+
"attachSession": {
|
|
32580
|
+
"means": "C7.sign-in-hold.callback-encoded: Target.attachToTarget on the raw tab id returned a session",
|
|
32581
|
+
"check": {
|
|
32582
|
+
"result": "probe",
|
|
32583
|
+
"path": "result.attachSession",
|
|
32584
|
+
"equals": true,
|
|
32585
|
+
"observer": "client"
|
|
32586
|
+
}
|
|
32587
|
+
},
|
|
32588
|
+
"attachRefused": {
|
|
32589
|
+
"means": "C7.sign-in-hold.callback-encoded: Target.attachToTarget on the raw tab id was refused with a slicc refusal",
|
|
32590
|
+
"check": {
|
|
32591
|
+
"result": "probe",
|
|
32592
|
+
"path": "result.attachRefused",
|
|
32593
|
+
"equals": true,
|
|
32594
|
+
"observer": "client"
|
|
32595
|
+
}
|
|
32596
|
+
},
|
|
32597
|
+
"contentRead": {
|
|
32598
|
+
"means": "C7.sign-in-hold.callback-encoded: the client read the tab's title or body mark through the guard",
|
|
32599
|
+
"check": {
|
|
32600
|
+
"result": "probe",
|
|
32601
|
+
"path": "result.contentRead",
|
|
32602
|
+
"equals": true,
|
|
32603
|
+
"observer": "client"
|
|
32604
|
+
}
|
|
32605
|
+
},
|
|
32606
|
+
"connectCompletes": {
|
|
32607
|
+
"means": "C7.sign-in-hold.callback-encoded: a Puppeteer-style Browser.getVersion plus Target.getTargets connect through the guard completed",
|
|
32608
|
+
"check": {
|
|
32609
|
+
"result": "probe",
|
|
32610
|
+
"path": "result.connectCompletes",
|
|
32611
|
+
"equals": true,
|
|
32612
|
+
"observer": "client"
|
|
32613
|
+
}
|
|
32614
|
+
}
|
|
32615
|
+
},
|
|
32616
|
+
"live": "the unguarded observer opened the sign-in or held tab and read its body mark",
|
|
32617
|
+
"liveCheck": {
|
|
32618
|
+
"result": "probe",
|
|
32619
|
+
"path": "result.live",
|
|
32620
|
+
"equals": true,
|
|
32621
|
+
"observer": "client"
|
|
32622
|
+
},
|
|
32623
|
+
"designDependent": ["idAnnounced"],
|
|
32624
|
+
"control": {
|
|
32625
|
+
"origin": "ordinary",
|
|
32626
|
+
"via": "unguarded",
|
|
32627
|
+
"expected": {
|
|
32628
|
+
"jsonListed": true,
|
|
32629
|
+
"targetsListed": true,
|
|
32630
|
+
"eventsSeen": true,
|
|
32631
|
+
"idAnnounced": false,
|
|
32632
|
+
"attachSession": true,
|
|
32633
|
+
"attachRefused": false,
|
|
32634
|
+
"contentRead": true,
|
|
32635
|
+
"connectCompletes": true
|
|
32636
|
+
}
|
|
32637
|
+
},
|
|
32638
|
+
"expected": {
|
|
32639
|
+
"jsonListed": false,
|
|
32640
|
+
"targetsListed": false,
|
|
32641
|
+
"eventsSeen": false,
|
|
32642
|
+
"idAnnounced": "either",
|
|
32643
|
+
"attachSession": false,
|
|
32644
|
+
"attachRefused": true,
|
|
32645
|
+
"contentRead": false,
|
|
32646
|
+
"connectCompletes": true
|
|
32647
|
+
}
|
|
32648
|
+
},
|
|
32649
|
+
{
|
|
32650
|
+
"id": "C7.sign-in-hold.callback-origin",
|
|
32651
|
+
"family": "C",
|
|
32652
|
+
"kind": "cdp",
|
|
32653
|
+
"scope": "any",
|
|
32654
|
+
"defaultContext": true,
|
|
32655
|
+
"requires": ["signInHold", "browserSession"],
|
|
32656
|
+
"setup": [
|
|
32657
|
+
{
|
|
32658
|
+
"text": "a tab at an authorize URL with client_id=any and redirect_uri cut to https://www.sliccy.ai must stay out of reach the same way"
|
|
32659
|
+
},
|
|
32660
|
+
{
|
|
32661
|
+
"page": "tab",
|
|
32662
|
+
"url": "{ordinary}/blank"
|
|
32663
|
+
}
|
|
32664
|
+
],
|
|
32665
|
+
"trigger": [
|
|
32666
|
+
{
|
|
32667
|
+
"signInHold": "callback-origin",
|
|
32668
|
+
"as": "probe",
|
|
32669
|
+
"requires": ["signInHold", "browserSession"]
|
|
32670
|
+
}
|
|
32671
|
+
],
|
|
32672
|
+
"targets": ["seven"],
|
|
32673
|
+
"observe": {
|
|
32674
|
+
"jsonListed": {
|
|
32675
|
+
"means": "C7.sign-in-hold.callback-origin: /json/list through the client shows the sign-in or held tab by id, URL or title",
|
|
32676
|
+
"check": {
|
|
32677
|
+
"result": "probe",
|
|
32678
|
+
"path": "result.jsonListed",
|
|
32679
|
+
"equals": true,
|
|
32680
|
+
"observer": "client"
|
|
32681
|
+
},
|
|
32682
|
+
"absencePoll": true
|
|
32683
|
+
},
|
|
32684
|
+
"targetsListed": {
|
|
32685
|
+
"means": "C7.sign-in-hold.callback-origin: Target.getTargets through the client shows the sign-in or held tab with a non-empty URL or title",
|
|
32686
|
+
"check": {
|
|
32687
|
+
"result": "probe",
|
|
32688
|
+
"path": "result.targetsListed",
|
|
32689
|
+
"equals": true,
|
|
32690
|
+
"observer": "client"
|
|
32691
|
+
},
|
|
32692
|
+
"absencePoll": true
|
|
32693
|
+
},
|
|
32694
|
+
"eventsSeen": {
|
|
32695
|
+
"means": "C7.sign-in-hold.callback-origin: a discovery event carries the sign-in or held tab with a non-empty URL or title",
|
|
32696
|
+
"requires": ["discovery"],
|
|
32697
|
+
"check": {
|
|
32698
|
+
"result": "probe",
|
|
32699
|
+
"path": "result.eventsSeen",
|
|
32700
|
+
"equals": true,
|
|
32701
|
+
"observer": "client"
|
|
32702
|
+
},
|
|
32703
|
+
"absencePoll": true
|
|
32704
|
+
},
|
|
32705
|
+
"idAnnounced": {
|
|
32706
|
+
"means": "C7.sign-in-hold.callback-origin: the client learned the tab's target id with empty URL and title (announce-only)",
|
|
32707
|
+
"check": {
|
|
32708
|
+
"result": "probe",
|
|
32709
|
+
"path": "result.idAnnounced",
|
|
32710
|
+
"equals": true,
|
|
32711
|
+
"observer": "client"
|
|
32712
|
+
},
|
|
32713
|
+
"absencePoll": true
|
|
32714
|
+
},
|
|
32715
|
+
"attachSession": {
|
|
32716
|
+
"means": "C7.sign-in-hold.callback-origin: Target.attachToTarget on the raw tab id returned a session",
|
|
32717
|
+
"check": {
|
|
32718
|
+
"result": "probe",
|
|
32719
|
+
"path": "result.attachSession",
|
|
32720
|
+
"equals": true,
|
|
32721
|
+
"observer": "client"
|
|
32722
|
+
}
|
|
32723
|
+
},
|
|
32724
|
+
"attachRefused": {
|
|
32725
|
+
"means": "C7.sign-in-hold.callback-origin: Target.attachToTarget on the raw tab id was refused with a slicc refusal",
|
|
32726
|
+
"check": {
|
|
32727
|
+
"result": "probe",
|
|
32728
|
+
"path": "result.attachRefused",
|
|
32729
|
+
"equals": true,
|
|
32730
|
+
"observer": "client"
|
|
32731
|
+
}
|
|
32732
|
+
},
|
|
32733
|
+
"contentRead": {
|
|
32734
|
+
"means": "C7.sign-in-hold.callback-origin: the client read the tab's title or body mark through the guard",
|
|
32735
|
+
"check": {
|
|
32736
|
+
"result": "probe",
|
|
32737
|
+
"path": "result.contentRead",
|
|
32738
|
+
"equals": true,
|
|
32739
|
+
"observer": "client"
|
|
32740
|
+
}
|
|
32741
|
+
},
|
|
32742
|
+
"connectCompletes": {
|
|
32743
|
+
"means": "C7.sign-in-hold.callback-origin: a Puppeteer-style Browser.getVersion plus Target.getTargets connect through the guard completed",
|
|
32744
|
+
"check": {
|
|
32745
|
+
"result": "probe",
|
|
32746
|
+
"path": "result.connectCompletes",
|
|
32747
|
+
"equals": true,
|
|
32748
|
+
"observer": "client"
|
|
32749
|
+
}
|
|
32750
|
+
}
|
|
32751
|
+
},
|
|
32752
|
+
"live": "the unguarded observer opened the sign-in or held tab and read its body mark",
|
|
32753
|
+
"liveCheck": {
|
|
32754
|
+
"result": "probe",
|
|
32755
|
+
"path": "result.live",
|
|
32756
|
+
"equals": true,
|
|
32757
|
+
"observer": "client"
|
|
32758
|
+
},
|
|
32759
|
+
"designDependent": ["idAnnounced"],
|
|
32760
|
+
"control": {
|
|
32761
|
+
"origin": "ordinary",
|
|
32762
|
+
"via": "unguarded",
|
|
32763
|
+
"expected": {
|
|
32764
|
+
"jsonListed": true,
|
|
32765
|
+
"targetsListed": true,
|
|
32766
|
+
"eventsSeen": true,
|
|
32767
|
+
"idAnnounced": false,
|
|
32768
|
+
"attachSession": true,
|
|
32769
|
+
"attachRefused": false,
|
|
32770
|
+
"contentRead": true,
|
|
32771
|
+
"connectCompletes": true
|
|
32772
|
+
}
|
|
32773
|
+
},
|
|
32774
|
+
"expected": {
|
|
32775
|
+
"jsonListed": false,
|
|
32776
|
+
"targetsListed": false,
|
|
32777
|
+
"eventsSeen": false,
|
|
32778
|
+
"idAnnounced": "either",
|
|
32779
|
+
"attachSession": false,
|
|
32780
|
+
"attachRefused": true,
|
|
32781
|
+
"contentRead": false,
|
|
32782
|
+
"connectCompletes": true
|
|
32783
|
+
}
|
|
32225
32784
|
}
|
|
32226
32785
|
]
|
|
32227
32786
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-browsers",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.26.1",
|
|
4
4
|
"description": "SLICC's shared browser catalog, JSON schemas and discovery conformance corpus",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
"close-protected-shape.mjs",
|
|
69
69
|
"protected-worker.mjs",
|
|
70
70
|
"protected-parent-iframes.mjs",
|
|
71
|
+
"sign-in-hold.mjs",
|
|
71
72
|
"fixture-client.mjs"
|
|
72
73
|
],
|
|
73
74
|
"scripts": {
|
|
@@ -76,7 +77,7 @@
|
|
|
76
77
|
"validate": "node scripts/validate.mjs",
|
|
77
78
|
"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",
|
|
78
79
|
"format": "biome check --write . && gofmt -w . && cargo fmt",
|
|
79
|
-
"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-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-protected-parent-iframes.test.mjs test/integration/guard-protected-parent-iframes-chrome.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/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 && node --test --test-concurrency=2 test/integration/guard-lifecycle.test.mjs test/integration/chromium-launch.test.mjs test/integration/guard-fit.test.mjs test/integration/guard-chain.test.mjs test/integration/guard-validation.test.mjs test/integration/guard-liveness.test.mjs test/integration/guard-observations.test.mjs test/integration/guard-child-latency.test.mjs test/integration/guard-adoption.test.mjs test/integration/guard-scoping.test.mjs test/integration/guard-late-pause.test.mjs test/integration/guard-legs.test.mjs test/integration/guard-fetch-enable.test.mjs test/integration/guard-diagnostics.test.mjs test/integration/guard-chrome.test.mjs test/integration/guard-worlds.test.mjs test/integration/guard-world-discovery.test.mjs test/integration/guard-world-guesses.test.mjs test/integration/guard-unparseable.test.mjs test/integration/guard-redirect-secret.test.mjs test/integration/guard-error-page.test.mjs test/integration/guard-discovery.test.mjs test/integration/guard-bfcache-chrome.test.mjs test/integration/guard-browser-page.test.mjs test/integration/guard-scales.test.mjs test/integration/guard-shared-log.test.mjs test/integration/guard-pre-beacon.test.mjs test/integration/guard-world-pause.test.mjs test/integration/guard-reveal-overlap.test.mjs test/integration/guard-extension-frame-cast.test.mjs test/integration/guard-extension-frame-mouse.test.mjs test/integration/guard-extension-frames.test.mjs test/integration/guard-stock-setup.test.mjs test/integration/guard-stock-attack.test.mjs test/integration/guard-parallel.test.mjs test/integration/guard-client-exit.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-others.test.mjs",
|
|
80
|
+
"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-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-protected-parent-iframes.test.mjs test/integration/guard-protected-parent-iframes-chrome.test.mjs test/integration/guard-sign-in-hold.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/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 && node --test --test-concurrency=2 test/integration/guard-lifecycle.test.mjs test/integration/chromium-launch.test.mjs test/integration/guard-fit.test.mjs test/integration/guard-chain.test.mjs test/integration/guard-validation.test.mjs test/integration/guard-liveness.test.mjs test/integration/guard-observations.test.mjs test/integration/guard-child-latency.test.mjs test/integration/guard-adoption.test.mjs test/integration/guard-scoping.test.mjs test/integration/guard-late-pause.test.mjs test/integration/guard-legs.test.mjs test/integration/guard-fetch-enable.test.mjs test/integration/guard-diagnostics.test.mjs test/integration/guard-chrome.test.mjs test/integration/guard-worlds.test.mjs test/integration/guard-world-discovery.test.mjs test/integration/guard-world-guesses.test.mjs test/integration/guard-unparseable.test.mjs test/integration/guard-redirect-secret.test.mjs test/integration/guard-error-page.test.mjs test/integration/guard-discovery.test.mjs test/integration/guard-bfcache-chrome.test.mjs test/integration/guard-browser-page.test.mjs test/integration/guard-scales.test.mjs test/integration/guard-shared-log.test.mjs test/integration/guard-pre-beacon.test.mjs test/integration/guard-world-pause.test.mjs test/integration/guard-reveal-overlap.test.mjs test/integration/guard-extension-frame-cast.test.mjs test/integration/guard-extension-frame-mouse.test.mjs test/integration/guard-extension-frames.test.mjs test/integration/guard-stock-setup.test.mjs test/integration/guard-stock-attack.test.mjs test/integration/guard-parallel.test.mjs test/integration/guard-client-exit.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-others.test.mjs",
|
|
80
81
|
"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 ./...",
|
|
81
82
|
"build": "go build ./... && cargo build --all-features && cargo build --target wasm32-wasip1 --all-features && npm pack --dry-run",
|
|
82
83
|
"prepublishOnly": "node scripts/set-crate-version.mjs \"$npm_package_version\"",
|