@ai-ecoverse/slicc-browsers 1.29.1 → 1.30.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 +9 -8
- package/guard-driver.mjs +5 -1
- package/guard-runner.mjs +494 -9
- package/guard-vectors.json +704 -3
- package/package.json +3 -3
- package/schema/guard-vectors.schema.json +74 -1
package/guard-vectors.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"setVersion": "1.
|
|
3
|
+
"setVersion": "1.30.1",
|
|
4
4
|
"sources": [
|
|
5
5
|
{
|
|
6
6
|
"repo": "ai-ecoverse/slicc-cli",
|
|
@@ -121,7 +121,8 @@
|
|
|
121
121
|
"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; client.signInHold.ask({marker,hostLabel}) may answer the hold when the page-side BroadcastChannel cannot; redirect_uri cut to https://www.sliccy.ai (callback-origin) is hidden like other callback shapes",
|
|
122
122
|
"requestInterception": "the transport admits Fetch.enable with Fetch.fulfillRequest / Fetch.continueResponse, or Network.setRequestInterception with Network.continueInterceptedRequest",
|
|
123
123
|
"fetchInterception": "Fetch.enable and response-writing Fetch.fulfillRequest / Fetch.continueResponse",
|
|
124
|
-
"legacyInterception": "Network.setRequestInterception and Network.continueInterceptedRequest (headers or rawResponse)"
|
|
124
|
+
"legacyInterception": "Network.setRequestInterception and Network.continueInterceptedRequest (headers or rawResponse)",
|
|
125
|
+
"explicitAttach": "the guard refuses Target.setAutoAttach and Target.autoAttachRelated and exposes targets only through session-less Target.setDiscoverTargets / Target.getTargets and explicit Target.attachToTarget {flatten:true}; it hides or redacts protected pages, tabs, iframes, workers and popups in the listing and the discovery events, and refuses attach to them by raw targetId; a run declares it without stockSetup or syntheticAutoAttach; the popup's first document is not measured for init-script effects on this setup"
|
|
125
126
|
},
|
|
126
127
|
"placeholders": {
|
|
127
128
|
"target": "the target's origin; {plain} on the control",
|
|
@@ -147,7 +148,8 @@
|
|
|
147
148
|
"pageTarget": "the current page target id",
|
|
148
149
|
"responseOrigin": "the fixture response CORS origin",
|
|
149
150
|
"browserUi": "the id of one of Chrome's own browser_ui targets, which the runner looks up with its own CDP",
|
|
150
|
-
"workerTarget": "the id of the protected-origin worker the unguarded spawnWorker step created"
|
|
151
|
+
"workerTarget": "the id of the protected-origin worker the unguarded spawnWorker step created",
|
|
152
|
+
"rawTarget": "the real target id the unguarded observer found for the rawTarget step"
|
|
151
153
|
},
|
|
152
154
|
"vectors": [
|
|
153
155
|
{
|
|
@@ -31386,6 +31388,705 @@
|
|
|
31386
31388
|
"driven": true
|
|
31387
31389
|
}
|
|
31388
31390
|
},
|
|
31391
|
+
{
|
|
31392
|
+
"id": "C3.tab-attach.explicit",
|
|
31393
|
+
"family": "C",
|
|
31394
|
+
"kind": "cdp",
|
|
31395
|
+
"scope": "any",
|
|
31396
|
+
"setup": [
|
|
31397
|
+
{
|
|
31398
|
+
"cdp": "Target.setDiscoverTargets",
|
|
31399
|
+
"params": {
|
|
31400
|
+
"discover": true,
|
|
31401
|
+
"filter": [
|
|
31402
|
+
{}
|
|
31403
|
+
]
|
|
31404
|
+
},
|
|
31405
|
+
"session": "browser",
|
|
31406
|
+
"as": "discover",
|
|
31407
|
+
"requires": [
|
|
31408
|
+
"explicitAttach",
|
|
31409
|
+
"browserSession",
|
|
31410
|
+
"discovery"
|
|
31411
|
+
]
|
|
31412
|
+
}
|
|
31413
|
+
],
|
|
31414
|
+
"trigger": [
|
|
31415
|
+
{
|
|
31416
|
+
"cdp": "Target.createTarget",
|
|
31417
|
+
"params": {
|
|
31418
|
+
"url": "{target}/doc?n={tag}",
|
|
31419
|
+
"browserContextId": "{context}"
|
|
31420
|
+
},
|
|
31421
|
+
"session": "browser",
|
|
31422
|
+
"via": "unguarded",
|
|
31423
|
+
"as": "created",
|
|
31424
|
+
"requires": [
|
|
31425
|
+
"explicitAttach"
|
|
31426
|
+
]
|
|
31427
|
+
},
|
|
31428
|
+
{
|
|
31429
|
+
"settle": {
|
|
31430
|
+
"served": "{target}/doc?n={tag}",
|
|
31431
|
+
"ms": 5000,
|
|
31432
|
+
"required": true
|
|
31433
|
+
}
|
|
31434
|
+
},
|
|
31435
|
+
{
|
|
31436
|
+
"rawTarget": {
|
|
31437
|
+
"type": "page",
|
|
31438
|
+
"urlPrefix": "{target}/doc?n={tag}",
|
|
31439
|
+
"ms": 5000
|
|
31440
|
+
},
|
|
31441
|
+
"as": "raw",
|
|
31442
|
+
"requires": [
|
|
31443
|
+
"explicitAttach"
|
|
31444
|
+
]
|
|
31445
|
+
},
|
|
31446
|
+
{
|
|
31447
|
+
"cdp": "Target.getTargets",
|
|
31448
|
+
"params": {},
|
|
31449
|
+
"session": "browser",
|
|
31450
|
+
"as": "listed",
|
|
31451
|
+
"requires": [
|
|
31452
|
+
"explicitAttach",
|
|
31453
|
+
"browserSession",
|
|
31454
|
+
"discovery"
|
|
31455
|
+
]
|
|
31456
|
+
},
|
|
31457
|
+
{
|
|
31458
|
+
"cdp": "Target.getTargetInfo",
|
|
31459
|
+
"params": {
|
|
31460
|
+
"targetId": "{rawTarget}"
|
|
31461
|
+
},
|
|
31462
|
+
"session": "browser",
|
|
31463
|
+
"as": "info",
|
|
31464
|
+
"requires": [
|
|
31465
|
+
"explicitAttach",
|
|
31466
|
+
"browserSession",
|
|
31467
|
+
"discovery"
|
|
31468
|
+
]
|
|
31469
|
+
},
|
|
31470
|
+
{
|
|
31471
|
+
"cdp": "Target.attachToTarget",
|
|
31472
|
+
"params": {
|
|
31473
|
+
"targetId": "{rawTarget}",
|
|
31474
|
+
"flatten": true
|
|
31475
|
+
},
|
|
31476
|
+
"session": "browser",
|
|
31477
|
+
"as": "attach",
|
|
31478
|
+
"bindSession": "child",
|
|
31479
|
+
"requires": [
|
|
31480
|
+
"explicitAttach",
|
|
31481
|
+
"browserSession",
|
|
31482
|
+
"discovery"
|
|
31483
|
+
]
|
|
31484
|
+
},
|
|
31485
|
+
{
|
|
31486
|
+
"cdp": "Page.enable",
|
|
31487
|
+
"params": {},
|
|
31488
|
+
"session": "child",
|
|
31489
|
+
"as": "childPage",
|
|
31490
|
+
"requires": [
|
|
31491
|
+
"explicitAttach"
|
|
31492
|
+
]
|
|
31493
|
+
},
|
|
31494
|
+
{
|
|
31495
|
+
"cdp": "Runtime.enable",
|
|
31496
|
+
"params": {},
|
|
31497
|
+
"session": "child",
|
|
31498
|
+
"as": "childRuntime",
|
|
31499
|
+
"requires": [
|
|
31500
|
+
"explicitAttach"
|
|
31501
|
+
]
|
|
31502
|
+
},
|
|
31503
|
+
{
|
|
31504
|
+
"cdp": "Page.navigate",
|
|
31505
|
+
"params": {
|
|
31506
|
+
"url": "{target}/doc?n=child-{tag}"
|
|
31507
|
+
},
|
|
31508
|
+
"session": "child",
|
|
31509
|
+
"as": "childNavigate",
|
|
31510
|
+
"requires": [
|
|
31511
|
+
"explicitAttach"
|
|
31512
|
+
]
|
|
31513
|
+
},
|
|
31514
|
+
{
|
|
31515
|
+
"settle": {
|
|
31516
|
+
"served": "{target}/doc?n=child-{tag}",
|
|
31517
|
+
"ms": 5000,
|
|
31518
|
+
"required": true
|
|
31519
|
+
}
|
|
31520
|
+
},
|
|
31521
|
+
{
|
|
31522
|
+
"cdp": "Runtime.evaluate",
|
|
31523
|
+
"params": {
|
|
31524
|
+
"expression": "self.location.href",
|
|
31525
|
+
"returnByValue": true
|
|
31526
|
+
},
|
|
31527
|
+
"session": "child",
|
|
31528
|
+
"as": "reach",
|
|
31529
|
+
"requires": [
|
|
31530
|
+
"explicitAttach"
|
|
31531
|
+
]
|
|
31532
|
+
},
|
|
31533
|
+
{
|
|
31534
|
+
"settle": {
|
|
31535
|
+
"ms": 1000
|
|
31536
|
+
}
|
|
31537
|
+
},
|
|
31538
|
+
{
|
|
31539
|
+
"cdp": "Target.getTargets",
|
|
31540
|
+
"params": {},
|
|
31541
|
+
"session": "browser",
|
|
31542
|
+
"as": "relisted",
|
|
31543
|
+
"requires": [
|
|
31544
|
+
"explicitAttach",
|
|
31545
|
+
"browserSession",
|
|
31546
|
+
"discovery"
|
|
31547
|
+
]
|
|
31548
|
+
}
|
|
31549
|
+
],
|
|
31550
|
+
"targets": [
|
|
31551
|
+
"ordinary"
|
|
31552
|
+
],
|
|
31553
|
+
"requires": [
|
|
31554
|
+
"explicitAttach",
|
|
31555
|
+
"browserSession",
|
|
31556
|
+
"discovery"
|
|
31557
|
+
],
|
|
31558
|
+
"observe": {
|
|
31559
|
+
"admitted": {
|
|
31560
|
+
"means": "the guard answered discover, listed, info, attach, childPage, childRuntime, childNavigate, relisted without an error",
|
|
31561
|
+
"check": {
|
|
31562
|
+
"all": [
|
|
31563
|
+
{
|
|
31564
|
+
"result": "discover",
|
|
31565
|
+
"path": "ok",
|
|
31566
|
+
"equals": true,
|
|
31567
|
+
"observer": "client"
|
|
31568
|
+
},
|
|
31569
|
+
{
|
|
31570
|
+
"result": "listed",
|
|
31571
|
+
"path": "ok",
|
|
31572
|
+
"equals": true,
|
|
31573
|
+
"observer": "client"
|
|
31574
|
+
},
|
|
31575
|
+
{
|
|
31576
|
+
"result": "info",
|
|
31577
|
+
"path": "ok",
|
|
31578
|
+
"equals": true,
|
|
31579
|
+
"observer": "client"
|
|
31580
|
+
},
|
|
31581
|
+
{
|
|
31582
|
+
"result": "attach",
|
|
31583
|
+
"path": "ok",
|
|
31584
|
+
"equals": true,
|
|
31585
|
+
"observer": "client"
|
|
31586
|
+
},
|
|
31587
|
+
{
|
|
31588
|
+
"result": "childPage",
|
|
31589
|
+
"path": "ok",
|
|
31590
|
+
"equals": true,
|
|
31591
|
+
"observer": "client"
|
|
31592
|
+
},
|
|
31593
|
+
{
|
|
31594
|
+
"result": "childRuntime",
|
|
31595
|
+
"path": "ok",
|
|
31596
|
+
"equals": true,
|
|
31597
|
+
"observer": "client"
|
|
31598
|
+
},
|
|
31599
|
+
{
|
|
31600
|
+
"result": "childNavigate",
|
|
31601
|
+
"path": "ok",
|
|
31602
|
+
"equals": true,
|
|
31603
|
+
"observer": "client"
|
|
31604
|
+
},
|
|
31605
|
+
{
|
|
31606
|
+
"result": "relisted",
|
|
31607
|
+
"path": "ok",
|
|
31608
|
+
"equals": true,
|
|
31609
|
+
"observer": "client"
|
|
31610
|
+
}
|
|
31611
|
+
],
|
|
31612
|
+
"observer": "client"
|
|
31613
|
+
}
|
|
31614
|
+
},
|
|
31615
|
+
"discovered": {
|
|
31616
|
+
"means": "the client got Target.targetCreated or Target.targetInfoChanged for the raw target id",
|
|
31617
|
+
"check": {
|
|
31618
|
+
"any": [
|
|
31619
|
+
{
|
|
31620
|
+
"event": "Target.targetCreated",
|
|
31621
|
+
"where": {
|
|
31622
|
+
"params": {
|
|
31623
|
+
"targetInfo": {
|
|
31624
|
+
"targetId": "{rawTarget}"
|
|
31625
|
+
}
|
|
31626
|
+
}
|
|
31627
|
+
},
|
|
31628
|
+
"observer": "client"
|
|
31629
|
+
},
|
|
31630
|
+
{
|
|
31631
|
+
"event": "Target.targetInfoChanged",
|
|
31632
|
+
"where": {
|
|
31633
|
+
"params": {
|
|
31634
|
+
"targetInfo": {
|
|
31635
|
+
"targetId": "{rawTarget}"
|
|
31636
|
+
}
|
|
31637
|
+
}
|
|
31638
|
+
},
|
|
31639
|
+
"observer": "client"
|
|
31640
|
+
}
|
|
31641
|
+
],
|
|
31642
|
+
"observer": "client"
|
|
31643
|
+
}
|
|
31644
|
+
},
|
|
31645
|
+
"listed": {
|
|
31646
|
+
"means": "Target.getTargets lists the raw target id",
|
|
31647
|
+
"check": {
|
|
31648
|
+
"result": "listed",
|
|
31649
|
+
"path": "result.targetInfos",
|
|
31650
|
+
"equals": {
|
|
31651
|
+
"$some": {
|
|
31652
|
+
"targetId": "{rawTarget}"
|
|
31653
|
+
}
|
|
31654
|
+
},
|
|
31655
|
+
"observer": "client"
|
|
31656
|
+
}
|
|
31657
|
+
},
|
|
31658
|
+
"attachSession": {
|
|
31659
|
+
"means": "Target.attachToTarget by the raw target id answered a sessionId, or the client got Target.attachedToTarget for that id on any session",
|
|
31660
|
+
"check": {
|
|
31661
|
+
"attached": "{target}",
|
|
31662
|
+
"session": "child",
|
|
31663
|
+
"observer": "client"
|
|
31664
|
+
}
|
|
31665
|
+
},
|
|
31666
|
+
"attachRefused": {
|
|
31667
|
+
"means": "the guard refused Target.attachToTarget by the raw target id with slicc: refused:; no answer is incomplete",
|
|
31668
|
+
"check": {
|
|
31669
|
+
"refused": [
|
|
31670
|
+
"attach"
|
|
31671
|
+
],
|
|
31672
|
+
"refusal": {
|
|
31673
|
+
"match": "^slicc: refused"
|
|
31674
|
+
},
|
|
31675
|
+
"observer": "client"
|
|
31676
|
+
}
|
|
31677
|
+
},
|
|
31678
|
+
"cut": {
|
|
31679
|
+
"means": "the client got Target.detachedFromTarget for the raw target or its bound session",
|
|
31680
|
+
"check": {
|
|
31681
|
+
"detached": "child",
|
|
31682
|
+
"observer": "client"
|
|
31683
|
+
}
|
|
31684
|
+
},
|
|
31685
|
+
"reachable": {
|
|
31686
|
+
"means": "Runtime.evaluate of self.location.href on the bound session returned the target URL",
|
|
31687
|
+
"check": {
|
|
31688
|
+
"result": "reach",
|
|
31689
|
+
"path": "result.result.value",
|
|
31690
|
+
"equals": {
|
|
31691
|
+
"$contains": "{target}/doc"
|
|
31692
|
+
},
|
|
31693
|
+
"observer": "client"
|
|
31694
|
+
}
|
|
31695
|
+
},
|
|
31696
|
+
"driven": {
|
|
31697
|
+
"means": "the unguarded observer finds the tab at the URL the client navigated it to through its explicitly attached session",
|
|
31698
|
+
"check": {
|
|
31699
|
+
"expression": "location.href",
|
|
31700
|
+
"equals": "{target}/doc?n=child-{tag}",
|
|
31701
|
+
"via": "unguarded",
|
|
31702
|
+
"session": "child",
|
|
31703
|
+
"observer": "unguarded"
|
|
31704
|
+
}
|
|
31705
|
+
},
|
|
31706
|
+
"listRedacted": {
|
|
31707
|
+
"means": "Target.getTargets (listed and relisted) shows the raw target, and any entry under any target id whose url or title names its origin, if at all, with that origin only as url and title (or none, or about:blank), and no url or title carries the row's tag, path, query or fragment",
|
|
31708
|
+
"check": {
|
|
31709
|
+
"redacted": [
|
|
31710
|
+
"listed",
|
|
31711
|
+
"relisted"
|
|
31712
|
+
],
|
|
31713
|
+
"observer": "client"
|
|
31714
|
+
}
|
|
31715
|
+
}
|
|
31716
|
+
},
|
|
31717
|
+
"live": "the stand-in served the first document of the tab the unguarded observer created. The redaction property covers the Target.getTargets listing, the discovery events carrying targetInfo and the Target.getTargetInfo replies; base64 data: payloads are not decoded, Unicode beyond NFKC folding and leading format, control and combining marks is not normalised, and issue #372 tracks both and other events",
|
|
31718
|
+
"liveCheck": {
|
|
31719
|
+
"loaded": "{target}/doc?n={tag}",
|
|
31720
|
+
"observer": "fixture"
|
|
31721
|
+
},
|
|
31722
|
+
"control": {
|
|
31723
|
+
"origin": "ordinary",
|
|
31724
|
+
"via": "unguarded",
|
|
31725
|
+
"expected": {
|
|
31726
|
+
"admitted": true,
|
|
31727
|
+
"discovered": true,
|
|
31728
|
+
"listed": true,
|
|
31729
|
+
"attachSession": true,
|
|
31730
|
+
"attachRefused": false,
|
|
31731
|
+
"cut": false,
|
|
31732
|
+
"reachable": true,
|
|
31733
|
+
"driven": true,
|
|
31734
|
+
"listRedacted": false
|
|
31735
|
+
}
|
|
31736
|
+
},
|
|
31737
|
+
"expected": {
|
|
31738
|
+
"admitted": true,
|
|
31739
|
+
"discovered": true,
|
|
31740
|
+
"listed": true,
|
|
31741
|
+
"attachSession": true,
|
|
31742
|
+
"attachRefused": false,
|
|
31743
|
+
"cut": false,
|
|
31744
|
+
"reachable": true,
|
|
31745
|
+
"driven": true,
|
|
31746
|
+
"listRedacted": false
|
|
31747
|
+
}
|
|
31748
|
+
},
|
|
31749
|
+
{
|
|
31750
|
+
"id": "C3.tab-protected.explicit",
|
|
31751
|
+
"family": "C",
|
|
31752
|
+
"kind": "cdp",
|
|
31753
|
+
"scope": "any",
|
|
31754
|
+
"setup": [
|
|
31755
|
+
{
|
|
31756
|
+
"cdp": "Target.setDiscoverTargets",
|
|
31757
|
+
"params": {
|
|
31758
|
+
"discover": true,
|
|
31759
|
+
"filter": [
|
|
31760
|
+
{}
|
|
31761
|
+
]
|
|
31762
|
+
},
|
|
31763
|
+
"session": "browser",
|
|
31764
|
+
"as": "discover",
|
|
31765
|
+
"requires": [
|
|
31766
|
+
"explicitAttach",
|
|
31767
|
+
"browserSession",
|
|
31768
|
+
"discovery"
|
|
31769
|
+
]
|
|
31770
|
+
}
|
|
31771
|
+
],
|
|
31772
|
+
"trigger": [
|
|
31773
|
+
{
|
|
31774
|
+
"cdp": "Target.createTarget",
|
|
31775
|
+
"params": {
|
|
31776
|
+
"url": "{target}/doc?n={tag}",
|
|
31777
|
+
"browserContextId": "{context}"
|
|
31778
|
+
},
|
|
31779
|
+
"session": "browser",
|
|
31780
|
+
"via": "unguarded",
|
|
31781
|
+
"as": "created",
|
|
31782
|
+
"requires": [
|
|
31783
|
+
"explicitAttach"
|
|
31784
|
+
]
|
|
31785
|
+
},
|
|
31786
|
+
{
|
|
31787
|
+
"settle": {
|
|
31788
|
+
"served": "{target}/doc?n={tag}",
|
|
31789
|
+
"ms": 5000,
|
|
31790
|
+
"required": true
|
|
31791
|
+
}
|
|
31792
|
+
},
|
|
31793
|
+
{
|
|
31794
|
+
"rawTarget": {
|
|
31795
|
+
"type": "page",
|
|
31796
|
+
"urlPrefix": "{target}/doc?n={tag}",
|
|
31797
|
+
"ms": 5000
|
|
31798
|
+
},
|
|
31799
|
+
"as": "raw",
|
|
31800
|
+
"requires": [
|
|
31801
|
+
"explicitAttach"
|
|
31802
|
+
]
|
|
31803
|
+
},
|
|
31804
|
+
{
|
|
31805
|
+
"cdp": "Target.getTargets",
|
|
31806
|
+
"params": {},
|
|
31807
|
+
"session": "browser",
|
|
31808
|
+
"as": "listed",
|
|
31809
|
+
"requires": [
|
|
31810
|
+
"explicitAttach",
|
|
31811
|
+
"browserSession",
|
|
31812
|
+
"discovery"
|
|
31813
|
+
]
|
|
31814
|
+
},
|
|
31815
|
+
{
|
|
31816
|
+
"cdp": "Target.getTargetInfo",
|
|
31817
|
+
"params": {
|
|
31818
|
+
"targetId": "{rawTarget}"
|
|
31819
|
+
},
|
|
31820
|
+
"session": "browser",
|
|
31821
|
+
"as": "info",
|
|
31822
|
+
"refusable": true,
|
|
31823
|
+
"refusal": {
|
|
31824
|
+
"match": "^slicc: refused",
|
|
31825
|
+
"onlyProtected": true
|
|
31826
|
+
},
|
|
31827
|
+
"requires": [
|
|
31828
|
+
"explicitAttach",
|
|
31829
|
+
"browserSession",
|
|
31830
|
+
"discovery"
|
|
31831
|
+
]
|
|
31832
|
+
},
|
|
31833
|
+
{
|
|
31834
|
+
"cdp": "Target.attachToTarget",
|
|
31835
|
+
"params": {
|
|
31836
|
+
"targetId": "{rawTarget}",
|
|
31837
|
+
"flatten": true
|
|
31838
|
+
},
|
|
31839
|
+
"session": "browser",
|
|
31840
|
+
"as": "attach",
|
|
31841
|
+
"bindSession": "child",
|
|
31842
|
+
"refusable": true,
|
|
31843
|
+
"refusal": {
|
|
31844
|
+
"match": "^slicc: refused",
|
|
31845
|
+
"onlyProtected": true
|
|
31846
|
+
},
|
|
31847
|
+
"requires": [
|
|
31848
|
+
"explicitAttach",
|
|
31849
|
+
"browserSession",
|
|
31850
|
+
"discovery"
|
|
31851
|
+
]
|
|
31852
|
+
},
|
|
31853
|
+
{
|
|
31854
|
+
"cdp": "Page.enable",
|
|
31855
|
+
"params": {},
|
|
31856
|
+
"session": "child",
|
|
31857
|
+
"as": "childPage",
|
|
31858
|
+
"requires": [
|
|
31859
|
+
"explicitAttach"
|
|
31860
|
+
]
|
|
31861
|
+
},
|
|
31862
|
+
{
|
|
31863
|
+
"cdp": "Runtime.enable",
|
|
31864
|
+
"params": {},
|
|
31865
|
+
"session": "child",
|
|
31866
|
+
"as": "childRuntime",
|
|
31867
|
+
"requires": [
|
|
31868
|
+
"explicitAttach"
|
|
31869
|
+
]
|
|
31870
|
+
},
|
|
31871
|
+
{
|
|
31872
|
+
"cdp": "Runtime.evaluate",
|
|
31873
|
+
"params": {
|
|
31874
|
+
"expression": "self.location.href",
|
|
31875
|
+
"returnByValue": true
|
|
31876
|
+
},
|
|
31877
|
+
"session": "child",
|
|
31878
|
+
"as": "reach",
|
|
31879
|
+
"requires": [
|
|
31880
|
+
"explicitAttach"
|
|
31881
|
+
]
|
|
31882
|
+
},
|
|
31883
|
+
{
|
|
31884
|
+
"settle": {
|
|
31885
|
+
"ms": 1000
|
|
31886
|
+
}
|
|
31887
|
+
},
|
|
31888
|
+
{
|
|
31889
|
+
"cdp": "Target.getTargets",
|
|
31890
|
+
"params": {},
|
|
31891
|
+
"session": "browser",
|
|
31892
|
+
"as": "relisted",
|
|
31893
|
+
"requires": [
|
|
31894
|
+
"explicitAttach",
|
|
31895
|
+
"browserSession",
|
|
31896
|
+
"discovery"
|
|
31897
|
+
]
|
|
31898
|
+
}
|
|
31899
|
+
],
|
|
31900
|
+
"targets": [
|
|
31901
|
+
"seven",
|
|
31902
|
+
"vault"
|
|
31903
|
+
],
|
|
31904
|
+
"requires": [
|
|
31905
|
+
"explicitAttach",
|
|
31906
|
+
"browserSession",
|
|
31907
|
+
"discovery"
|
|
31908
|
+
],
|
|
31909
|
+
"observe": {
|
|
31910
|
+
"admitted": {
|
|
31911
|
+
"means": "the guard answered discover, listed, relisted without an error",
|
|
31912
|
+
"check": {
|
|
31913
|
+
"all": [
|
|
31914
|
+
{
|
|
31915
|
+
"result": "discover",
|
|
31916
|
+
"path": "ok",
|
|
31917
|
+
"equals": true,
|
|
31918
|
+
"observer": "client"
|
|
31919
|
+
},
|
|
31920
|
+
{
|
|
31921
|
+
"result": "listed",
|
|
31922
|
+
"path": "ok",
|
|
31923
|
+
"equals": true,
|
|
31924
|
+
"observer": "client"
|
|
31925
|
+
},
|
|
31926
|
+
{
|
|
31927
|
+
"result": "relisted",
|
|
31928
|
+
"path": "ok",
|
|
31929
|
+
"equals": true,
|
|
31930
|
+
"observer": "client"
|
|
31931
|
+
}
|
|
31932
|
+
],
|
|
31933
|
+
"observer": "client"
|
|
31934
|
+
},
|
|
31935
|
+
"dependsOn": []
|
|
31936
|
+
},
|
|
31937
|
+
"discovered": {
|
|
31938
|
+
"means": "the client got Target.targetCreated or Target.targetInfoChanged for the raw target id",
|
|
31939
|
+
"check": {
|
|
31940
|
+
"any": [
|
|
31941
|
+
{
|
|
31942
|
+
"event": "Target.targetCreated",
|
|
31943
|
+
"where": {
|
|
31944
|
+
"params": {
|
|
31945
|
+
"targetInfo": {
|
|
31946
|
+
"targetId": "{rawTarget}"
|
|
31947
|
+
}
|
|
31948
|
+
}
|
|
31949
|
+
},
|
|
31950
|
+
"observer": "client"
|
|
31951
|
+
},
|
|
31952
|
+
{
|
|
31953
|
+
"event": "Target.targetInfoChanged",
|
|
31954
|
+
"where": {
|
|
31955
|
+
"params": {
|
|
31956
|
+
"targetInfo": {
|
|
31957
|
+
"targetId": "{rawTarget}"
|
|
31958
|
+
}
|
|
31959
|
+
}
|
|
31960
|
+
},
|
|
31961
|
+
"observer": "client"
|
|
31962
|
+
}
|
|
31963
|
+
],
|
|
31964
|
+
"observer": "client"
|
|
31965
|
+
},
|
|
31966
|
+
"dependsOn": []
|
|
31967
|
+
},
|
|
31968
|
+
"listed": {
|
|
31969
|
+
"means": "Target.getTargets lists the raw target id",
|
|
31970
|
+
"check": {
|
|
31971
|
+
"result": "listed",
|
|
31972
|
+
"path": "result.targetInfos",
|
|
31973
|
+
"equals": {
|
|
31974
|
+
"$some": {
|
|
31975
|
+
"targetId": "{rawTarget}"
|
|
31976
|
+
}
|
|
31977
|
+
},
|
|
31978
|
+
"observer": "client"
|
|
31979
|
+
}
|
|
31980
|
+
},
|
|
31981
|
+
"attachSession": {
|
|
31982
|
+
"means": "Target.attachToTarget by the raw target id answered a sessionId, or the client got Target.attachedToTarget for that id on any session",
|
|
31983
|
+
"check": {
|
|
31984
|
+
"attached": "{target}",
|
|
31985
|
+
"session": "child",
|
|
31986
|
+
"observer": "client"
|
|
31987
|
+
}
|
|
31988
|
+
},
|
|
31989
|
+
"attachRefused": {
|
|
31990
|
+
"means": "the guard refused Target.attachToTarget by the raw target id with slicc: refused:; no answer is incomplete",
|
|
31991
|
+
"check": {
|
|
31992
|
+
"refused": [
|
|
31993
|
+
"attach"
|
|
31994
|
+
],
|
|
31995
|
+
"refusal": {
|
|
31996
|
+
"match": "^slicc: refused"
|
|
31997
|
+
},
|
|
31998
|
+
"observer": "client"
|
|
31999
|
+
},
|
|
32000
|
+
"dependsOn": []
|
|
32001
|
+
},
|
|
32002
|
+
"reachable": {
|
|
32003
|
+
"means": "Runtime.evaluate of self.location.href on the bound session returned the target URL",
|
|
32004
|
+
"check": {
|
|
32005
|
+
"result": "reach",
|
|
32006
|
+
"path": "result.result.value",
|
|
32007
|
+
"equals": {
|
|
32008
|
+
"$contains": "{target}/doc"
|
|
32009
|
+
},
|
|
32010
|
+
"observer": "client"
|
|
32011
|
+
}
|
|
32012
|
+
},
|
|
32013
|
+
"infoRedacted": {
|
|
32014
|
+
"means": "the Target.getTargetInfo reply shows the raw target, and any entry under any target id whose url or title names its origin, if at all, with that origin only as url and title (or none, or about:blank), and no url or title carries the row's tag, path, query or fragment",
|
|
32015
|
+
"check": {
|
|
32016
|
+
"redacted": [
|
|
32017
|
+
"info"
|
|
32018
|
+
],
|
|
32019
|
+
"observer": "client"
|
|
32020
|
+
},
|
|
32021
|
+
"dependsOn": []
|
|
32022
|
+
},
|
|
32023
|
+
"listRedacted": {
|
|
32024
|
+
"means": "Target.getTargets (listed and relisted) shows the raw target, and any entry under any target id whose url or title names its origin, if at all, with that origin only as url and title (or none, or about:blank), and no url or title carries the row's tag, path, query or fragment",
|
|
32025
|
+
"check": {
|
|
32026
|
+
"redacted": [
|
|
32027
|
+
"listed",
|
|
32028
|
+
"relisted"
|
|
32029
|
+
],
|
|
32030
|
+
"observer": "client"
|
|
32031
|
+
},
|
|
32032
|
+
"dependsOn": []
|
|
32033
|
+
},
|
|
32034
|
+
"eventsRedacted": {
|
|
32035
|
+
"means": "every Target.targetCreated, Target.targetInfoChanged and Target.attachedToTarget the client got shows the raw target, and any entry under any target id whose url or title names its origin, if at all, with that origin only as url and title (or none, or about:blank), and no url or title carries the row's tag, path, query or fragment",
|
|
32036
|
+
"check": {
|
|
32037
|
+
"redacted": "events",
|
|
32038
|
+
"observer": "client"
|
|
32039
|
+
},
|
|
32040
|
+
"dependsOn": []
|
|
32041
|
+
}
|
|
32042
|
+
},
|
|
32043
|
+
"live": "the unguarded observer found the {target} tab it created by its raw target id, or the stand-in served {target}/doc?n={tag}. The redaction property covers the Target.getTargets listing, the discovery events carrying targetInfo and the Target.getTargetInfo replies; base64 data: payloads are not decoded, Unicode beyond NFKC folding and leading format, control and combining marks is not normalised, and issue #372 tracks both and other events",
|
|
32044
|
+
"liveCheck": {
|
|
32045
|
+
"any": [
|
|
32046
|
+
{
|
|
32047
|
+
"result": "raw",
|
|
32048
|
+
"path": "result.found",
|
|
32049
|
+
"equals": true,
|
|
32050
|
+
"observer": "client"
|
|
32051
|
+
},
|
|
32052
|
+
{
|
|
32053
|
+
"loaded": "{target}/doc?n={tag}",
|
|
32054
|
+
"observer": "fixture"
|
|
32055
|
+
}
|
|
32056
|
+
],
|
|
32057
|
+
"observer": "client"
|
|
32058
|
+
},
|
|
32059
|
+
"control": {
|
|
32060
|
+
"origin": "ordinary",
|
|
32061
|
+
"via": "unguarded",
|
|
32062
|
+
"expected": {
|
|
32063
|
+
"admitted": true,
|
|
32064
|
+
"discovered": true,
|
|
32065
|
+
"listed": true,
|
|
32066
|
+
"attachSession": true,
|
|
32067
|
+
"attachRefused": false,
|
|
32068
|
+
"reachable": true,
|
|
32069
|
+
"infoRedacted": false,
|
|
32070
|
+
"listRedacted": false,
|
|
32071
|
+
"eventsRedacted": false
|
|
32072
|
+
}
|
|
32073
|
+
},
|
|
32074
|
+
"expected": {
|
|
32075
|
+
"admitted": true,
|
|
32076
|
+
"discovered": "either",
|
|
32077
|
+
"listed": "either",
|
|
32078
|
+
"attachSession": false,
|
|
32079
|
+
"attachRefused": true,
|
|
32080
|
+
"reachable": false,
|
|
32081
|
+
"infoRedacted": true,
|
|
32082
|
+
"listRedacted": true,
|
|
32083
|
+
"eventsRedacted": true
|
|
32084
|
+
},
|
|
32085
|
+
"designDependent": [
|
|
32086
|
+
"discovered",
|
|
32087
|
+
"listed"
|
|
32088
|
+
]
|
|
32089
|
+
},
|
|
31389
32090
|
{
|
|
31390
32091
|
"id": "C3.tab-worker-leak",
|
|
31391
32092
|
"family": "C",
|