@ai-ecoverse/slicc-browsers 1.26.4 → 1.27.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.
@@ -81,6 +81,11 @@ function route(req, url, send, html, redirects) {
81
81
  'blob-nav',
82
82
  `<p>blob-nav ${escape(p.get('n') ?? '')}</p><script>const b=URL.createObjectURL(new Blob(['<!doctype html><title>blob</title><p>blob ${escape(p.get('n') ?? '')}</p>'],{type:'text/html'}));location.replace(b);</script>`
83
83
  ),
84
+ '/credential': () =>
85
+ html(
86
+ 'credential',
87
+ `<p>credential ${escape(p.get('n') ?? '')}</p><form><input name="u" /><button type="button">go</button></form>`
88
+ ),
84
89
  '/blank': () => html('blank', `<p>blank ${escape(p.get('n') ?? '')}</p>`),
85
90
  '/blank-open': () => html('blank-open', `<p>blank-open ${escape(p.get('n') ?? '')}</p>`),
86
91
  '/os/': () => html('os', `<p>os ${escape(p.get('n') ?? '')}</p>`),
package/guard-driver.mjs CHANGED
@@ -18,6 +18,8 @@ export const knownOrigins = [
18
18
  'plain',
19
19
  'cross',
20
20
  'log',
21
+ 'idp',
22
+ 'idp-stg',
21
23
  ];
22
24
 
23
25
  export const beacon = (log, tag) =>
package/guard-runner.mjs CHANGED
@@ -4,6 +4,7 @@ export { fixtureClient };
4
4
 
5
5
  import { bfcacheRestore } from './bfcache-restore.mjs';
6
6
  import { closeProtectedShape } from './close-protected-shape.mjs';
7
+ import { credentialExport } from './credential-export.mjs';
7
8
  import { extensionFrame } from './extension-frame.mjs';
8
9
  import { DEFAULT_EXTENSION_WORLD_ID, extensionWorld } from './extension-world.mjs';
9
10
  import { frameRead } from './frame-read.mjs';
@@ -904,6 +905,7 @@ class Execution {
904
905
  'errorPage',
905
906
  'closeProtectedShape',
906
907
  'protectedParentIframes',
908
+ 'credentialExport',
907
909
  'signInHold',
908
910
  'extensionWorld',
909
911
  'extensionFrame',
@@ -917,6 +919,7 @@ class Execution {
917
919
  'errorPage',
918
920
  'closeProtectedShape',
919
921
  'protectedParentIframes',
922
+ 'credentialExport',
920
923
  'signInHold',
921
924
  'redirectSecret',
922
925
  'extensionFrame',
@@ -1023,6 +1026,7 @@ class Execution {
1023
1026
  step.errorPage ||
1024
1027
  step.closeProtectedShape ||
1025
1028
  step.protectedParentIframes ||
1029
+ step.credentialExport ||
1026
1030
  step.signInHold ||
1027
1031
  step.spawnWorker ||
1028
1032
  step.probeSessions
@@ -1172,6 +1176,7 @@ class Execution {
1172
1176
  if (step.redirectSecret || step.errorPage) return this.originProbe(step, session);
1173
1177
  if (step.closeProtectedShape) return this.runCloseProtectedShape(step);
1174
1178
  if (step.protectedParentIframes) return this.runProtectedParentIframes(step);
1179
+ if (step.credentialExport) return this.runCredentialExport(step);
1175
1180
  if (step.signInHold) return this.runSignInHold(step);
1176
1181
  if (step.spawnWorker) return this.spawnWorker(step);
1177
1182
  return this.probeSessions(step);
@@ -1259,6 +1264,25 @@ class Execution {
1259
1264
  return out;
1260
1265
  }
1261
1266
 
1267
+ runCredentialExport(step) {
1268
+ return outcome(
1269
+ credentialExport({
1270
+ client: this.client,
1271
+ reader: this.reader,
1272
+ credentialOrigin: this.vars.idp ?? this.options.targets?.idp ?? this.vars.target,
1273
+ ordinary: this.vars.plain ?? this.vars.ordinary,
1274
+ tag: this.vars.tag,
1275
+ internalSessions: this.internalSessions,
1276
+ notes: this.notes,
1277
+ budget: this.bound(8000),
1278
+ refusalPrefix:
1279
+ this.options.credentialOrigins?.refusal ??
1280
+ this.options.catalog?.credentialOrigins?.refusal ??
1281
+ 'slicc: refused:',
1282
+ })
1283
+ );
1284
+ }
1285
+
1262
1286
  async runSignInHold(step) {
1263
1287
  const out = await outcome(
1264
1288
  signInHold({
@@ -1793,11 +1817,19 @@ class Execution {
1793
1817
  if (name === 'workerReachable' && this.probeStep())
1794
1818
  return this.observeProbeReachable(want, check);
1795
1819
  if (check?.forwarded) return this.forwardedCheck(name, check, want);
1796
- if (
1797
- check?.result &&
1798
- (at(this.calls[check.result], check.path) === 'incomplete' || this.unmeasured(check))
1799
- )
1820
+ if (!check?.result) return undefined;
1821
+ const out = this.calls[check.result];
1822
+ const value = at(out, check.path);
1823
+ if (value === 'incomplete') {
1824
+ const skips = out?.result?.skips ?? [];
1825
+ const hint = skips.find(
1826
+ (entry) => typeof entry === 'string' && (entry === name || entry.startsWith(`${name}:`))
1827
+ );
1828
+ if (hint && !this.incomplete.some((reason) => reason.startsWith(`${name}:`)))
1829
+ this.incomplete.push(hint.includes(': ') ? hint : `${name}: ${hint}`);
1800
1830
  return 'incomplete';
1831
+ }
1832
+ if (this.unmeasured(check)) return 'incomplete';
1801
1833
  return undefined;
1802
1834
  }
1803
1835
 
@@ -2275,6 +2307,7 @@ const needsObserver = (vector) =>
2275
2307
  step.spawnWorker ||
2276
2308
  step.closeProtectedShape ||
2277
2309
  step.protectedParentIframes ||
2310
+ step.credentialExport ||
2278
2311
  step.signInHold
2279
2312
  ) ||
2280
2313
  vector.control.via === 'unguarded' ||
@@ -2376,6 +2409,9 @@ function variables(targets, target, side, slot, index) {
2376
2409
  vars.protectedTarget = targets[target];
2377
2410
  vars.target = side === 'control' ? vars.plain : targets[target];
2378
2411
  vars.targetHost = new URL(vars.target).hostname;
2412
+ vars.idp = ['idp', 'idp-stg'].includes(target)
2413
+ ? targets[target]
2414
+ : (targets.idp ?? targets[target]);
2379
2415
  vars.responseOrigin = vars.target === vars.ordinary ? '*' : vars.ordinary;
2380
2416
  vars.own ??= vars.client;
2381
2417
  vars.beacon = beacon(vars.log, tag);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "setVersion": "1.26.4",
3
+ "setVersion": "1.27.0",
4
4
  "sources": [
5
5
  {
6
6
  "repo": "ai-ecoverse/slicc-cli",
@@ -85,6 +85,14 @@
85
85
  "file-root": {
86
86
  "url": "file:///",
87
87
  "description": "the local file system's root, standing in for any file: page"
88
+ },
89
+ "idp": {
90
+ "host": "ims-na1.adobelogin.com",
91
+ "description": "Adobe IMS IdP credential origin"
92
+ },
93
+ "idp-stg": {
94
+ "host": "ims-na1-stg1.adobelogin.com",
95
+ "description": "Adobe IMS staging IdP credential origin"
88
96
  }
89
97
  },
90
98
  "variants": {
@@ -32281,6 +32289,16 @@
32281
32289
  "observer": "client"
32282
32290
  },
32283
32291
  "absencePoll": true
32292
+ },
32293
+ "overBlocked": {
32294
+ "means": "C3.ordinary-parent-iframes.page: the ordinary mid document was BlockedByClient after attach during the live nest rebuild (protection by over-blocking)",
32295
+ "check": {
32296
+ "result": "probe",
32297
+ "path": "result.overBlocked",
32298
+ "equals": true,
32299
+ "observer": "client"
32300
+ },
32301
+ "absencePoll": true
32284
32302
  }
32285
32303
  },
32286
32304
  "live": "the unguarded reader opened the ordinary top page and saw the grandchild frame",
@@ -32302,7 +32320,8 @@
32302
32320
  "midFrameAttached": true,
32303
32321
  "targetInfo": "either",
32304
32322
  "childAttach": "either",
32305
- "targetEvents": "either"
32323
+ "targetEvents": "either",
32324
+ "overBlocked": false
32306
32325
  }
32307
32326
  },
32308
32327
  "expected": {
@@ -32314,10 +32333,384 @@
32314
32333
  "midFrameAttached": true,
32315
32334
  "targetInfo": "either",
32316
32335
  "childAttach": "either",
32317
- "targetEvents": "either"
32336
+ "targetEvents": "either",
32337
+ "overBlocked": false
32318
32338
  },
32319
32339
  "designDependent": ["targetInfo", "childAttach", "targetEvents"]
32320
32340
  },
32341
+ {
32342
+ "id": "C7.credential-export",
32343
+ "family": "C",
32344
+ "kind": "cdp",
32345
+ "scope": "any",
32346
+ "defaultContext": true,
32347
+ "setup": [
32348
+ {
32349
+ "page": "tab",
32350
+ "url": "{ordinary}/blank"
32351
+ }
32352
+ ],
32353
+ "trigger": [
32354
+ {
32355
+ "credentialExport": true,
32356
+ "as": "probe"
32357
+ }
32358
+ ],
32359
+ "targets": ["idp", "idp-stg"],
32360
+ "observe": {
32361
+ "live": {
32362
+ "means": "unguarded reader planted IdP cookies and storage and could read them back",
32363
+ "check": {
32364
+ "result": "probe",
32365
+ "path": "result.live",
32366
+ "equals": true,
32367
+ "observer": "client"
32368
+ }
32369
+ },
32370
+ "getCookiesFiltered": {
32371
+ "means": "Network.getCookies drops or refuses credential-origin cookies",
32372
+ "check": {
32373
+ "result": "probe",
32374
+ "path": "result.getCookiesFiltered",
32375
+ "equals": true,
32376
+ "observer": "client"
32377
+ }
32378
+ },
32379
+ "getAllCookiesFiltered": {
32380
+ "means": "Network.getAllCookies drops or refuses credential-origin cookies",
32381
+ "check": {
32382
+ "result": "probe",
32383
+ "path": "result.getAllCookiesFiltered",
32384
+ "equals": true,
32385
+ "observer": "client"
32386
+ }
32387
+ },
32388
+ "storageGetCookiesFiltered": {
32389
+ "means": "Storage.getCookies drops or refuses credential-origin cookies",
32390
+ "check": {
32391
+ "result": "probe",
32392
+ "path": "result.storageGetCookiesFiltered",
32393
+ "equals": true,
32394
+ "observer": "client"
32395
+ }
32396
+ },
32397
+ "pageGetCookiesFiltered": {
32398
+ "means": "Page.getCookies drops or refuses credential-origin cookies",
32399
+ "check": {
32400
+ "result": "probe",
32401
+ "path": "result.pageGetCookiesFiltered",
32402
+ "equals": true,
32403
+ "observer": "client"
32404
+ }
32405
+ },
32406
+ "partitionedCookieFiltered": {
32407
+ "means": "a cookie on the ordinary host partitioned under the credential site (partitionKey.topLevelSite) is dropped or refused by every cookie read",
32408
+ "check": {
32409
+ "result": "probe",
32410
+ "path": "result.partitionedCookieFiltered",
32411
+ "equals": true,
32412
+ "observer": "client"
32413
+ }
32414
+ },
32415
+ "setCookieRefused": {
32416
+ "means": "Network.setCookie for a credential origin is refused",
32417
+ "check": {
32418
+ "result": "probe",
32419
+ "path": "result.setCookieRefused",
32420
+ "equals": true,
32421
+ "observer": "client"
32422
+ }
32423
+ },
32424
+ "setCookiesRefused": {
32425
+ "means": "Network.setCookies for a credential origin is refused",
32426
+ "check": {
32427
+ "result": "probe",
32428
+ "path": "result.setCookiesRefused",
32429
+ "equals": true,
32430
+ "observer": "client"
32431
+ }
32432
+ },
32433
+ "deleteCookiesRefused": {
32434
+ "means": "Network.deleteCookies for a credential origin is refused",
32435
+ "check": {
32436
+ "result": "probe",
32437
+ "path": "result.deleteCookiesRefused",
32438
+ "equals": true,
32439
+ "observer": "client"
32440
+ }
32441
+ },
32442
+ "pageDeleteCookieRefused": {
32443
+ "means": "Page.deleteCookie for a credential origin is refused",
32444
+ "check": {
32445
+ "result": "probe",
32446
+ "path": "result.pageDeleteCookieRefused",
32447
+ "equals": true,
32448
+ "observer": "client"
32449
+ }
32450
+ },
32451
+ "storageSetCookiesRefused": {
32452
+ "means": "Storage.setCookies for a credential origin is refused",
32453
+ "check": {
32454
+ "result": "probe",
32455
+ "path": "result.storageSetCookiesRefused",
32456
+ "equals": true,
32457
+ "observer": "client"
32458
+ }
32459
+ },
32460
+ "clearBrowserCookiesSurvived": {
32461
+ "means": "after Network.clearBrowserCookies on the guarded client the unguarded reader still sees the credential-origin and Domain= parent cookies",
32462
+ "check": {
32463
+ "result": "probe",
32464
+ "path": "result.clearBrowserCookiesSurvived",
32465
+ "equals": true,
32466
+ "observer": "client"
32467
+ }
32468
+ },
32469
+ "storageClearCookiesSurvived": {
32470
+ "means": "after Storage.clearCookies on the guarded client the unguarded reader still sees the credential-origin and Domain= parent cookies",
32471
+ "check": {
32472
+ "result": "probe",
32473
+ "path": "result.storageClearCookiesSurvived",
32474
+ "equals": true,
32475
+ "observer": "client"
32476
+ }
32477
+ },
32478
+ "clearDataForOriginSurvived": {
32479
+ "means": "after Storage.clearDataForOrigin on the guarded client the unguarded reader still sees planted credential-origin cookies and storage",
32480
+ "check": {
32481
+ "result": "probe",
32482
+ "path": "result.clearDataForOriginSurvived",
32483
+ "equals": true,
32484
+ "observer": "client"
32485
+ }
32486
+ },
32487
+ "headersStripped": {
32488
+ "means": "Cookie and Set-Cookie headers for credential-origin traffic are stripped from ExtraInfo events",
32489
+ "check": {
32490
+ "result": "probe",
32491
+ "path": "result.headersStripped",
32492
+ "equals": true,
32493
+ "observer": "client"
32494
+ }
32495
+ },
32496
+ "associatedCookiesStripped": {
32497
+ "means": "associatedCookies for credential-origin ExtraInfo events are stripped",
32498
+ "check": {
32499
+ "result": "probe",
32500
+ "path": "result.associatedCookiesStripped",
32501
+ "equals": true,
32502
+ "observer": "client"
32503
+ }
32504
+ },
32505
+ "domStorageRefused": {
32506
+ "means": "DOMStorage.getDOMStorageItems for a credential origin is refused or empty of planted keys",
32507
+ "check": {
32508
+ "result": "probe",
32509
+ "path": "result.domStorageRefused",
32510
+ "equals": true,
32511
+ "observer": "client"
32512
+ }
32513
+ },
32514
+ "domStorageSetRefused": {
32515
+ "means": "DOMStorage.setDOMStorageItem on the credential origin and on the partitioned credential storageKey is refused or leaves no item",
32516
+ "check": {
32517
+ "result": "probe",
32518
+ "path": "result.domStorageSetRefused",
32519
+ "equals": true,
32520
+ "observer": "client"
32521
+ }
32522
+ },
32523
+ "domStorageRemoveRefused": {
32524
+ "means": "DOMStorage.removeDOMStorageItem on the credential origin and on the partitioned credential storageKey is refused or leaves the planted item",
32525
+ "check": {
32526
+ "result": "probe",
32527
+ "path": "result.domStorageRemoveRefused",
32528
+ "equals": true,
32529
+ "observer": "client"
32530
+ }
32531
+ },
32532
+ "indexedDBRefused": {
32533
+ "means": "IndexedDB.requestDatabaseNames for a credential origin is refused or omits the planted DB",
32534
+ "check": {
32535
+ "result": "probe",
32536
+ "path": "result.indexedDBRefused",
32537
+ "equals": true,
32538
+ "observer": "client"
32539
+ }
32540
+ },
32541
+ "indexedDBDeleteRefused": {
32542
+ "means": "IndexedDB.deleteDatabase on the credential origin is refused or leaves the planted DB",
32543
+ "check": {
32544
+ "result": "probe",
32545
+ "path": "result.indexedDBDeleteRefused",
32546
+ "equals": true,
32547
+ "observer": "client"
32548
+ }
32549
+ },
32550
+ "cacheStorageRefused": {
32551
+ "means": "CacheStorage.requestCacheNames for a credential origin is refused or omits the planted cache",
32552
+ "check": {
32553
+ "result": "probe",
32554
+ "path": "result.cacheStorageRefused",
32555
+ "equals": true,
32556
+ "observer": "client"
32557
+ }
32558
+ },
32559
+ "cacheStorageDeleteRefused": {
32560
+ "means": "CacheStorage.deleteCache of the credential origin cache is refused or leaves the planted cache",
32561
+ "check": {
32562
+ "result": "probe",
32563
+ "path": "result.cacheStorageDeleteRefused",
32564
+ "equals": true,
32565
+ "observer": "client"
32566
+ }
32567
+ },
32568
+ "ordinaryCookiesExportable": {
32569
+ "means": "ordinary-origin cookies remain exportable through the guard",
32570
+ "check": {
32571
+ "result": "probe",
32572
+ "path": "result.ordinaryCookiesExportable",
32573
+ "equals": true,
32574
+ "observer": "client"
32575
+ }
32576
+ },
32577
+ "adobeComCookiesExportable": {
32578
+ "means": "a cookie with Domain=.adobe.com remains exportable through the guard",
32579
+ "check": {
32580
+ "result": "probe",
32581
+ "path": "result.adobeComCookiesExportable",
32582
+ "equals": true,
32583
+ "observer": "client"
32584
+ }
32585
+ },
32586
+ "adobeComPartitionedCookieExportable": {
32587
+ "means": "a cookie on the ordinary host partitioned under adobe.com remains exportable through the guard",
32588
+ "check": {
32589
+ "result": "probe",
32590
+ "path": "result.adobeComPartitionedCookieExportable",
32591
+ "equals": true,
32592
+ "observer": "client"
32593
+ }
32594
+ },
32595
+ "partitionedStorageKeyFiltered": {
32596
+ "means": "DOMStorage.getDOMStorageItems for a partitioned storageKey under adobelogin.com is refused or empty of planted keys",
32597
+ "check": {
32598
+ "result": "probe",
32599
+ "path": "result.partitionedStorageKeyFiltered",
32600
+ "equals": true,
32601
+ "observer": "client"
32602
+ }
32603
+ },
32604
+ "adobeComStorageKeyExportable": {
32605
+ "means": "a partitioned storageKey with ^0 under adobe.com remains exportable through the guard",
32606
+ "check": {
32607
+ "result": "probe",
32608
+ "path": "result.adobeComStorageKeyExportable",
32609
+ "equals": true,
32610
+ "observer": "client"
32611
+ }
32612
+ },
32613
+ "pageDrivable": {
32614
+ "means": "the IdP page stays attachable and fillable through the guard",
32615
+ "check": {
32616
+ "result": "probe",
32617
+ "path": "result.pageDrivable",
32618
+ "equals": true,
32619
+ "observer": "client"
32620
+ }
32621
+ },
32622
+ "evaluateOk": {
32623
+ "means": "Runtime.evaluate of a harmless expression on the IdP page succeeds",
32624
+ "check": {
32625
+ "result": "probe",
32626
+ "path": "result.evaluateOk",
32627
+ "equals": true,
32628
+ "observer": "client"
32629
+ }
32630
+ },
32631
+ "subHostNotCredential": {
32632
+ "means": "a sub-host of an entry host is not treated as credential by the catalog matcher contract",
32633
+ "check": {
32634
+ "result": "probe",
32635
+ "path": "result.subHostNotCredential",
32636
+ "equals": true,
32637
+ "observer": "client"
32638
+ }
32639
+ }
32640
+ },
32641
+ "live": "the unguarded reader planted IdP cookies and storage and read them back",
32642
+ "liveCheck": {
32643
+ "result": "probe",
32644
+ "path": "result.live",
32645
+ "equals": true,
32646
+ "observer": "client"
32647
+ },
32648
+ "control": {
32649
+ "origin": "ordinary",
32650
+ "via": "unguarded",
32651
+ "expected": {
32652
+ "live": true,
32653
+ "ordinaryCookiesExportable": true,
32654
+ "adobeComCookiesExportable": true,
32655
+ "adobeComPartitionedCookieExportable": true,
32656
+ "adobeComStorageKeyExportable": true,
32657
+ "pageDrivable": true,
32658
+ "evaluateOk": true,
32659
+ "subHostNotCredential": true
32660
+ }
32661
+ },
32662
+ "expected": {
32663
+ "live": true,
32664
+ "getCookiesFiltered": true,
32665
+ "getAllCookiesFiltered": true,
32666
+ "storageGetCookiesFiltered": true,
32667
+ "pageGetCookiesFiltered": true,
32668
+ "partitionedCookieFiltered": true,
32669
+ "setCookieRefused": true,
32670
+ "setCookiesRefused": true,
32671
+ "deleteCookiesRefused": true,
32672
+ "pageDeleteCookieRefused": true,
32673
+ "storageSetCookiesRefused": true,
32674
+ "clearBrowserCookiesSurvived": true,
32675
+ "storageClearCookiesSurvived": true,
32676
+ "clearDataForOriginSurvived": true,
32677
+ "headersStripped": true,
32678
+ "associatedCookiesStripped": true,
32679
+ "domStorageRefused": true,
32680
+ "domStorageSetRefused": true,
32681
+ "domStorageRemoveRefused": true,
32682
+ "indexedDBRefused": true,
32683
+ "indexedDBDeleteRefused": true,
32684
+ "cacheStorageRefused": true,
32685
+ "cacheStorageDeleteRefused": true,
32686
+ "ordinaryCookiesExportable": true,
32687
+ "adobeComCookiesExportable": true,
32688
+ "adobeComPartitionedCookieExportable": true,
32689
+ "partitionedStorageKeyFiltered": true,
32690
+ "adobeComStorageKeyExportable": true,
32691
+ "pageDrivable": true,
32692
+ "evaluateOk": true,
32693
+ "subHostNotCredential": true
32694
+ },
32695
+ "notes": [
32696
+ "residual only (not a fail): on a drivable IdP page Runtime.evaluate can read document.cookie (non-HttpOnly) and localStorage",
32697
+ "residual only (not a fail): response bodies are not redacted; Network.getResponseBody is refused only for protected URLs as today, not for credential origins",
32698
+ "residual only (not a fail): OAuth codes/tokens in URLs and Authorization headers on drivable IdP pages are not withheld",
32699
+ "Network.loadNetworkResource is not measured in this row",
32700
+ "NOT covered: Adobe login-UI hosts auth.services.adobe.com and adobeid-na1.services.adobe.com (pages drivable, cookies and storage exportable)",
32701
+ "NOT covered: federated SSO/MFA/consent hosts (pages drivable, cookies and storage exportable)",
32702
+ "cookie Domain=.adobe.com is not covered (does not cover an entry host); Domain=.adobelogin.com is covered",
32703
+ "control: a Domain=.adobe.com cookie stays exportable",
32704
+ "storageKey ^0 site part uses the same covering rule as partitionKey.topLevelSite; origin part before ^0 is exact host EQUALS",
32705
+ "probe: partitioned storageKey under adobelogin.com is refused or empty of planted keys",
32706
+ "control: partitioned storageKey ^0 under adobe.com stays exportable",
32707
+ "probe: a Domain=.adobelogin.com cookie and a cookie partitioned under adobelogin.com count as credential cookies for every read, header and delete check",
32708
+ "control: a cookie partitioned under adobe.com stays exportable",
32709
+ "probe: global Network.clearBrowserCookies and Storage.clearCookies must leave credential cookies in place (refused or filtered)",
32710
+ "probe: the partitioned storageKey is the one Chrome reports for the planted cross-site iframe, proven by read-back; a guessed key never counts",
32711
+ "the staging IdP ims-na1-stg1.adobelogin.com runs the same row as idp-stg"
32712
+ ]
32713
+ },
32321
32714
  {
32322
32715
  "id": "C7.sign-in-hold.held-popup",
32323
32716
  "family": "C",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-browsers",
3
- "version": "1.26.4",
3
+ "version": "1.27.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",
@@ -66,6 +66,7 @@
66
66
  "frame-read.mjs",
67
67
  "bfcache-restore.mjs",
68
68
  "close-protected-shape.mjs",
69
+ "credential-export.mjs",
69
70
  "protected-worker.mjs",
70
71
  "protected-parent-iframes.mjs",
71
72
  "sign-in-hold.mjs",
@@ -77,7 +78,7 @@
77
78
  "validate": "node scripts/validate.mjs",
78
79
  "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",
79
80
  "format": "biome check --write . && gofmt -w . && cargo fmt",
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",
81
+ "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-credential-export.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-idp.test.mjs test/integration/guard-sweep-others.test.mjs",
81
82
  "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 ./...",
82
83
  "build": "go build ./... && cargo build --all-features && cargo build --target wasm32-wasip1 --all-features && npm pack --dry-run",
83
84
  "prepublishOnly": "node scripts/set-crate-version.mjs \"$npm_package_version\"",
@@ -88,7 +89,7 @@
88
89
  "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"
89
90
  },
90
91
  "devDependencies": {
91
- "@ai-ecoverse/slicc-cdp": "1.52.2",
92
+ "@ai-ecoverse/slicc-cdp": "1.52.3",
92
93
  "@ai-ecoverse/slicc-shared-web": "2.14.4",
93
94
  "@biomejs/biome": "2.6.6",
94
95
  "ajv": "8.20.0",
@@ -2580,6 +2580,7 @@ async function measurePageClient({
2580
2580
  midHint,
2581
2581
  innerHint,
2582
2582
  innerKind,
2583
+ preferMidLive,
2583
2584
  raw,
2584
2585
  contexts,
2585
2586
  liveContexts,
@@ -2598,6 +2599,11 @@ async function measurePageClient({
2598
2599
  return result;
2599
2600
  }
2600
2601
 
2602
+ function failOrdinaryLiveBlocked(result, notes) {
2603
+ result.overBlocked = true;
2604
+ notes.push('protection by over-blocking');
2605
+ }
2606
+
2601
2607
  async function continueAfterLive({
2602
2608
  client,
2603
2609
  reader,
@@ -2609,6 +2615,7 @@ async function continueAfterLive({
2609
2615
  midHint,
2610
2616
  innerHint,
2611
2617
  innerKind,
2618
+ preferMidLive,
2612
2619
  raw,
2613
2620
  contexts,
2614
2621
  liveContexts,
@@ -2624,7 +2631,8 @@ async function continueAfterLive({
2624
2631
  }) {
2625
2632
  const skipEvaluate = innerKind === 'srcdoc';
2626
2633
  if (raw.liveBlocked) {
2627
- protectLiveChannels(result, skipEvaluate);
2634
+ if (preferMidLive) protectLiveChannels(result, skipEvaluate);
2635
+ else failOrdinaryLiveBlocked(result, notes);
2628
2636
  if (!liveContexts.length) liveContexts = contexts;
2629
2637
  } else {
2630
2638
  await probeRawGrandchildTarget(client, raw, childSessions, internalSessions, result, missing);