@ai-ecoverse/slicc-browsers 1.49.0 → 1.51.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.
@@ -0,0 +1,2124 @@
1
+ {
2
+ "schema": 1,
3
+ "pages": {
4
+ "mixed": {
5
+ "frames": [
6
+ { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
7
+ {
8
+ "id": "child",
9
+ "parentId": "top",
10
+ "loaderId": "L2",
11
+ "url": "about:srcdoc",
12
+ "securityOrigin": "://",
13
+ "defaultContext": {
14
+ "frameId": "child",
15
+ "loaderId": "L2",
16
+ "origin": "https://vault.sliccy.ai"
17
+ },
18
+ "box": { "x": 15.5, "y": 20, "width": 80, "height": 40 }
19
+ },
20
+ {
21
+ "id": "seven",
22
+ "parentId": "child",
23
+ "loaderId": "L3",
24
+ "url": "https://seven.sliccy.ai/path"
25
+ },
26
+ {
27
+ "id": "leaf",
28
+ "parentId": "child",
29
+ "loaderId": "L4",
30
+ "url": "https://echo.sliccy.ai/path"
31
+ }
32
+ ],
33
+ "revision": "r1"
34
+ },
35
+ "plain": {
36
+ "frames": [{ "id": "top", "loaderId": "L1", "url": "https://example.test/page" }],
37
+ "revision": "r1"
38
+ },
39
+ "unobserved": { "frames": [] },
40
+ "seven": {
41
+ "frames": [
42
+ { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
43
+ {
44
+ "id": "child",
45
+ "parentId": "top",
46
+ "loaderId": "L2",
47
+ "url": "https://seven.sliccy.ai/private"
48
+ }
49
+ ],
50
+ "revision": "r1"
51
+ },
52
+ "protectedTop": {
53
+ "frames": [
54
+ { "id": "top", "loaderId": "L1", "url": "https://vault.sliccy.ai/" },
55
+ {
56
+ "id": "child",
57
+ "parentId": "top",
58
+ "loaderId": "L2",
59
+ "url": "about:blank",
60
+ "securityOrigin": "https://example.test"
61
+ }
62
+ ],
63
+ "revision": "r1"
64
+ },
65
+ "noGeometry": {
66
+ "frames": [
67
+ { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
68
+ { "id": "child", "parentId": "top", "loaderId": "L2", "url": "file:///path" }
69
+ ],
70
+ "revision": "r1"
71
+ },
72
+ "emptyBox": {
73
+ "frames": [
74
+ { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
75
+ {
76
+ "id": "child",
77
+ "parentId": "top",
78
+ "loaderId": "L2",
79
+ "url": "http://seven.sliccy.ai/",
80
+ "box": { "x": 7, "y": -1, "width": 0, "height": 17 }
81
+ }
82
+ ],
83
+ "revision": "r1"
84
+ },
85
+ "badBox": {
86
+ "frames": [
87
+ { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
88
+ {
89
+ "id": "child",
90
+ "parentId": "top",
91
+ "loaderId": "L2",
92
+ "url": "http://seven.sliccy.ai/",
93
+ "box": { "x": 7, "y": -1, "width": -1, "height": 17 }
94
+ }
95
+ ],
96
+ "revision": "r1"
97
+ },
98
+ "foreignShown": {
99
+ "frames": [
100
+ { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
101
+ {
102
+ "id": "child",
103
+ "parentId": "top",
104
+ "loaderId": "L2",
105
+ "url": "chrome-extension://other/frame",
106
+ "shown": true
107
+ }
108
+ ],
109
+ "revision": "r1"
110
+ },
111
+ "foreignUnmeasured": {
112
+ "frames": [
113
+ { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
114
+ {
115
+ "id": "child",
116
+ "parentId": "top",
117
+ "loaderId": "L2",
118
+ "url": "chrome-extension://other/frame"
119
+ }
120
+ ],
121
+ "revision": "r1"
122
+ },
123
+ "foreignHidden": {
124
+ "frames": [
125
+ { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
126
+ {
127
+ "id": "child",
128
+ "parentId": "top",
129
+ "loaderId": "L2",
130
+ "url": "chrome-extension://other/frame",
131
+ "shown": false
132
+ }
133
+ ],
134
+ "revision": "r1"
135
+ },
136
+ "partial": {
137
+ "frames": [
138
+ {
139
+ "id": "unplaced",
140
+ "parentId": "unseen",
141
+ "url": "about:blank",
142
+ "previous": true,
143
+ "opener": "protected"
144
+ }
145
+ ],
146
+ "revision": "r1"
147
+ },
148
+ "contexts": {
149
+ "frames": [
150
+ {
151
+ "id": "top",
152
+ "loaderId": "L1",
153
+ "url": "https://example.test/page",
154
+ "defaultContext": {
155
+ "frameId": "child",
156
+ "loaderId": "L2",
157
+ "origin": "https://vault.sliccy.ai"
158
+ }
159
+ },
160
+ {
161
+ "id": "child",
162
+ "parentId": "top",
163
+ "loaderId": "L2",
164
+ "url": "about:blank",
165
+ "defaultContext": {
166
+ "frameId": "child",
167
+ "loaderId": "old",
168
+ "origin": "https://vault.sliccy.ai"
169
+ }
170
+ },
171
+ { "id": "orphan", "parentId": "absent", "url": "about:srcdoc" }
172
+ ],
173
+ "revision": "r1"
174
+ },
175
+ "error": {
176
+ "frames": [
177
+ { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
178
+ {
179
+ "id": "child",
180
+ "parentId": "top",
181
+ "loaderId": "L2",
182
+ "url": "chrome-error://chromewebdata/",
183
+ "unreachableUrl": "https://vault.sliccy.ai/private",
184
+ "previous": true
185
+ }
186
+ ],
187
+ "revision": "r1"
188
+ },
189
+ "errorMixed": {
190
+ "frames": [
191
+ { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
192
+ {
193
+ "id": "child",
194
+ "parentId": "top",
195
+ "loaderId": "L2",
196
+ "url": "chrome-error://chromewebdata/",
197
+ "unreachableUrl": "https://vault.sliccy.ai/private"
198
+ },
199
+ {
200
+ "id": "seven",
201
+ "parentId": "top",
202
+ "loaderId": "L3",
203
+ "url": "https://seven.sliccy.ai/path"
204
+ }
205
+ ],
206
+ "revision": "r1"
207
+ },
208
+ "masks": {
209
+ "frames": [
210
+ { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
211
+ {
212
+ "id": "child",
213
+ "parentId": "top",
214
+ "loaderId": "L2",
215
+ "url": "about:srcdoc",
216
+ "securityOrigin": "://",
217
+ "defaultContext": {
218
+ "frameId": "child",
219
+ "loaderId": "L2",
220
+ "origin": "https://vault.sliccy.ai"
221
+ },
222
+ "box": { "x": 15.5, "y": 20, "width": 80, "height": 40 }
223
+ },
224
+ {
225
+ "id": "seven",
226
+ "parentId": "top",
227
+ "loaderId": "L3",
228
+ "url": "https://seven.sliccy.ai/path"
229
+ },
230
+ {
231
+ "id": "http",
232
+ "parentId": "top",
233
+ "loaderId": "L2",
234
+ "url": "http://seven.sliccy.ai/",
235
+ "box": { "x": 7, "y": -1, "width": 120, "height": 17 }
236
+ },
237
+ {
238
+ "id": "local",
239
+ "parentId": "top",
240
+ "loaderId": "L2",
241
+ "url": "file:///local",
242
+ "box": { "x": 0, "y": 0, "width": 30, "height": 12 }
243
+ },
244
+ {
245
+ "id": "ui",
246
+ "parentId": "top",
247
+ "loaderId": "L2",
248
+ "url": "chrome://settings/",
249
+ "box": { "x": 17, "y": 6, "width": 29, "height": 33 }
250
+ }
251
+ ],
252
+ "revision": "r1"
253
+ },
254
+ "foreignParent": {
255
+ "frames": [
256
+ { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
257
+ {
258
+ "id": "child",
259
+ "parentId": "top",
260
+ "loaderId": "L2",
261
+ "url": "chrome-extension://other/frame",
262
+ "shown": false
263
+ },
264
+ { "id": "leaf", "loaderId": "L3", "parentId": "child", "url": "https://example.test/leaf" }
265
+ ]
266
+ },
267
+ "sandboxAndVault": {
268
+ "frames": [
269
+ { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
270
+ {
271
+ "id": "sandbox",
272
+ "parentId": "top",
273
+ "loaderId": "LS",
274
+ "url": "https://seven.sliccy.ai/opaque",
275
+ "securityOrigin": "null"
276
+ },
277
+ {
278
+ "id": "child",
279
+ "parentId": "top",
280
+ "loaderId": "L2",
281
+ "url": "about:srcdoc",
282
+ "securityOrigin": "://",
283
+ "defaultContext": {
284
+ "frameId": "child",
285
+ "loaderId": "L2",
286
+ "origin": "https://vault.sliccy.ai"
287
+ },
288
+ "box": { "x": 15.5, "y": 20, "width": 80, "height": 40 }
289
+ }
290
+ ]
291
+ },
292
+ "ordinaryFailedURL": {
293
+ "frames": [
294
+ { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
295
+ {
296
+ "id": "error",
297
+ "parentId": "top",
298
+ "loaderId": "E",
299
+ "url": "chrome-error://chromewebdata/",
300
+ "unreachableUrl": "https://example.test/kept"
301
+ },
302
+ {
303
+ "id": "child",
304
+ "parentId": "top",
305
+ "loaderId": "L2",
306
+ "url": "about:srcdoc",
307
+ "securityOrigin": "://",
308
+ "defaultContext": {
309
+ "frameId": "child",
310
+ "loaderId": "L2",
311
+ "origin": "https://vault.sliccy.ai"
312
+ },
313
+ "box": { "x": 15.5, "y": 20, "width": 80, "height": 40 }
314
+ }
315
+ ]
316
+ },
317
+ "about-lookalike": {
318
+ "frames": [
319
+ { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
320
+ {
321
+ "id": "child",
322
+ "parentId": "top",
323
+ "loaderId": "L2",
324
+ "url": "about:blank",
325
+ "defaultContext": { "frameId": "child", "loaderId": "L2", "origin": "about://x" }
326
+ }
327
+ ],
328
+ "revision": "r1"
329
+ },
330
+ "unparseable": {
331
+ "frames": [
332
+ { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
333
+ { "id": "child", "parentId": "top", "loaderId": "L2", "url": "invalid frame URL" }
334
+ ],
335
+ "revision": "r1"
336
+ },
337
+ "vault-about-origin": {
338
+ "frames": [
339
+ { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
340
+ {
341
+ "id": "child",
342
+ "parentId": "top",
343
+ "loaderId": "L2",
344
+ "url": "https://vault.sliccy.ai/private",
345
+ "securityOrigin": "about:blank"
346
+ }
347
+ ],
348
+ "revision": "r1"
349
+ },
350
+ "vault-ordinary-context": {
351
+ "frames": [
352
+ { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
353
+ {
354
+ "id": "child",
355
+ "parentId": "top",
356
+ "loaderId": "L2",
357
+ "url": "https://example.test/carrier",
358
+ "securityOrigin": "https://vault.sliccy.ai",
359
+ "defaultContext": {
360
+ "frameId": "child",
361
+ "loaderId": "L2",
362
+ "origin": "https://example.test"
363
+ }
364
+ }
365
+ ],
366
+ "revision": "r1"
367
+ },
368
+ "nestedVaults": {
369
+ "frames": [
370
+ { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
371
+ { "id": "child", "parentId": "top", "loaderId": "L2", "url": "https://seven.sliccy.ai" },
372
+ {
373
+ "id": "inner",
374
+ "parentId": "child",
375
+ "loaderId": "L3",
376
+ "url": "https://vault.sliccy.ai",
377
+ "box": { "x": 10, "y": 17, "width": 55, "height": 45 }
378
+ },
379
+ {
380
+ "id": "nested",
381
+ "parentId": "inner",
382
+ "loaderId": "L4",
383
+ "url": "https://vault-demo.sliccy.ai",
384
+ "box": { "x": 15, "y": 20, "width": 5, "height": 4 }
385
+ }
386
+ ],
387
+ "revision": "r1"
388
+ }
389
+ },
390
+ "rows": [
391
+ {
392
+ "id": "page.mixed",
393
+ "op": "page",
394
+ "page": "mixed",
395
+ "expect": {
396
+ "mixed": true,
397
+ "frames": {
398
+ "top": { "role": "ordinary", "protected": false, "capture": "allow" },
399
+ "child": { "role": "slicc", "protected": true, "capture": "blank" },
400
+ "seven": { "role": "seven", "protected": true, "capture": "allow" },
401
+ "leaf": { "role": "ordinary", "protected": false, "capture": "allow" }
402
+ }
403
+ }
404
+ },
405
+ {
406
+ "id": "page.plain",
407
+ "op": "page",
408
+ "page": "plain",
409
+ "expect": {
410
+ "mixed": false,
411
+ "frames": { "top": { "role": "ordinary", "protected": false, "capture": "allow" } }
412
+ }
413
+ },
414
+ {
415
+ "id": "page.partial",
416
+ "op": "page",
417
+ "page": "partial",
418
+ "expect": {
419
+ "mixed": false,
420
+ "frames": { "unplaced": { "role": "ordinary", "protected": false, "capture": "allow" } }
421
+ }
422
+ },
423
+ {
424
+ "id": "page.contexts",
425
+ "op": "page",
426
+ "page": "contexts",
427
+ "expect": {
428
+ "mixed": false,
429
+ "frames": {
430
+ "top": { "role": "ordinary", "protected": false, "capture": "allow" },
431
+ "child": { "role": "ordinary", "protected": false, "capture": "allow" },
432
+ "orphan": { "role": "ordinary", "protected": false, "capture": "allow" }
433
+ }
434
+ }
435
+ },
436
+ {
437
+ "id": "page.error",
438
+ "op": "page",
439
+ "page": "error",
440
+ "expect": {
441
+ "mixed": false,
442
+ "frames": {
443
+ "top": { "role": "ordinary", "protected": false, "capture": "allow" },
444
+ "child": { "role": "ordinary", "protected": false, "capture": "allow" }
445
+ }
446
+ }
447
+ },
448
+ {
449
+ "id": "page.protectedTop",
450
+ "op": "page",
451
+ "page": "protectedTop",
452
+ "expect": {
453
+ "mixed": false,
454
+ "frames": {
455
+ "top": { "role": "slicc", "protected": true, "capture": "blank" },
456
+ "child": { "role": "ordinary", "protected": false, "capture": "allow" }
457
+ }
458
+ }
459
+ },
460
+ {
461
+ "id": "page.unobserved",
462
+ "op": "page",
463
+ "page": "unobserved",
464
+ "expect": { "mixed": false, "frames": {} }
465
+ },
466
+ {
467
+ "id": "capture.seven",
468
+ "op": "capture",
469
+ "frame": { "url": "https://seven.sliccy.ai/doc" },
470
+ "expect": "allow"
471
+ },
472
+ {
473
+ "id": "capture.preview",
474
+ "op": "capture",
475
+ "frame": { "url": "https://main--seven.sliccy.ai/doc" },
476
+ "expect": "allow"
477
+ },
478
+ {
479
+ "id": "capture.vault",
480
+ "op": "capture",
481
+ "frame": { "url": "https://vault.sliccy.ai/doc" },
482
+ "expect": "blank"
483
+ },
484
+ {
485
+ "id": "capture.vault-preview",
486
+ "op": "capture",
487
+ "frame": { "url": "https://vault-preview.sliccy.ai/doc" },
488
+ "expect": "blank"
489
+ },
490
+ {
491
+ "id": "capture.vault-feature",
492
+ "op": "capture",
493
+ "frame": { "url": "https://vault-example.sliccy.ai/doc" },
494
+ "expect": "blank"
495
+ },
496
+ {
497
+ "id": "capture.plain-http",
498
+ "op": "capture",
499
+ "frame": { "url": "http://seven.sliccy.ai/doc" },
500
+ "expect": "blank"
501
+ },
502
+ {
503
+ "id": "capture.local-file",
504
+ "op": "capture",
505
+ "frame": { "url": "file:///private" },
506
+ "expect": "blank"
507
+ },
508
+ {
509
+ "id": "capture.browser-ui",
510
+ "op": "capture",
511
+ "frame": { "url": "chrome://settings/" },
512
+ "expect": "blank"
513
+ },
514
+ {
515
+ "id": "capture.unknown",
516
+ "op": "capture",
517
+ "frame": { "url": "about:srcdoc", "creator": "https://vault.sliccy.ai" },
518
+ "expect": "allow"
519
+ },
520
+ {
521
+ "id": "capture.inherited",
522
+ "op": "capture",
523
+ "frame": { "url": "about:blank", "securityOrigin": "https://vault.sliccy.ai" },
524
+ "expect": "blank"
525
+ },
526
+ {
527
+ "id": "capture.opaque",
528
+ "op": "capture",
529
+ "frame": { "url": "https://vault.sliccy.ai/public", "securityOrigin": "null" },
530
+ "expect": "blank"
531
+ },
532
+ {
533
+ "id": "capture.newtab",
534
+ "op": "capture",
535
+ "frame": { "url": "chrome://newtab" },
536
+ "expect": "allow"
537
+ },
538
+ {
539
+ "id": "capture.type",
540
+ "op": "capture",
541
+ "frame": { "url": "about:blank", "type": "browser_ui" },
542
+ "expect": "blank"
543
+ },
544
+ {
545
+ "id": "capture.invalid",
546
+ "op": "capture",
547
+ "frame": { "url": "invalid document URL", "securityOrigin": "https://example.test" },
548
+ "expect": "blank"
549
+ },
550
+ {
551
+ "id": "capture.error-invalid",
552
+ "op": "capture",
553
+ "frame": { "url": "chrome-error://chromewebdata/", "unreachableUrl": "invalid failed URL" },
554
+ "expect": "blank"
555
+ },
556
+ {
557
+ "id": "capture.worker-creator",
558
+ "op": "capture",
559
+ "frame": { "url": "data:,document", "type": "worker", "creator": "https://seven.sliccy.ai" },
560
+ "expect": "allow"
561
+ },
562
+ {
563
+ "id": "capture.worker-own-origin",
564
+ "op": "capture",
565
+ "frame": {
566
+ "url": "data:,document",
567
+ "type": "worker",
568
+ "securityOrigin": "https://vault.sliccy.ai"
569
+ },
570
+ "expect": "blank"
571
+ },
572
+ {
573
+ "id": "capture.wrapper-own-origin",
574
+ "op": "capture",
575
+ "frame": {
576
+ "url": "blob:https://seven.sliccy.ai/id",
577
+ "securityOrigin": "https://seven.sliccy.ai"
578
+ },
579
+ "expect": "allow"
580
+ },
581
+ {
582
+ "id": "capture.about-lookalike",
583
+ "op": "capture",
584
+ "frame": { "url": "about:srcdoc", "securityOrigin": "ABOUT://x" },
585
+ "expect": "allow"
586
+ },
587
+ {
588
+ "id": "capture.extension-hidden",
589
+ "op": "capture",
590
+ "frame": { "url": "chrome-extension://other/frame", "shown": false },
591
+ "expect": "allow"
592
+ },
593
+ {
594
+ "id": "capture.extension-shown",
595
+ "op": "capture",
596
+ "frame": { "url": "chrome-extension://other/frame", "shown": true },
597
+ "expect": "blank"
598
+ },
599
+ {
600
+ "id": "tree.frames.nested",
601
+ "op": "reply",
602
+ "page": "mixed",
603
+ "method": "Page.getFrameTree",
604
+ "result": {
605
+ "frameTree": {
606
+ "frame": {
607
+ "id": "top",
608
+ "loaderId": "L1",
609
+ "url": "https://example.test/page",
610
+ "name": "ordinary",
611
+ "mimeType": "text/html"
612
+ },
613
+ "childFrames": [
614
+ {
615
+ "frame": {
616
+ "id": "child",
617
+ "parentId": "top",
618
+ "loaderId": "L2",
619
+ "url": "about:srcdoc",
620
+ "securityOrigin": "://",
621
+ "name": "private-name",
622
+ "title": "withheld",
623
+ "urlFragment": "#private",
624
+ "mimeType": "text/html",
625
+ "securityOriginDetails": { "isLocalhost": false },
626
+ "unreachableUrl": "https://vault.sliccy.ai/unreachable?private",
627
+ "domainAndRegistry": "sliccy.ai",
628
+ "secureContextType": "Secure",
629
+ "crossOriginIsolatedContextType": "NotIsolated",
630
+ "gatedAPIFeatures": ["SharedArrayBuffers"],
631
+ "adFrameStatus": { "adFrameType": "root" }
632
+ },
633
+ "childFrames": [
634
+ {
635
+ "frame": {
636
+ "id": "seven",
637
+ "parentId": "child",
638
+ "loaderId": "L3",
639
+ "url": "https://seven.sliccy.ai/path",
640
+ "name": "private-grandchild",
641
+ "securityOrigin": "https://seven.sliccy.ai",
642
+ "urlFragment": "#private",
643
+ "unreachableUrl": "https://vault.sliccy.ai/unreachable?private",
644
+ "domainAndRegistry": "sliccy.ai",
645
+ "secureContextType": "Secure",
646
+ "crossOriginIsolatedContextType": "NotIsolated",
647
+ "gatedAPIFeatures": ["SharedArrayBuffers"],
648
+ "adFrameStatus": { "adFrameType": "root" },
649
+ "mimeType": "text/html",
650
+ "title": "withheld",
651
+ "securityOriginDetails": { "isLocalhost": false }
652
+ }
653
+ },
654
+ {
655
+ "frame": {
656
+ "id": "leaf",
657
+ "parentId": "child",
658
+ "loaderId": "L4",
659
+ "url": "https://echo.sliccy.ai/path",
660
+ "name": "ordinary grandchild"
661
+ }
662
+ }
663
+ ]
664
+ }
665
+ ]
666
+ }
667
+ },
668
+ "expect": {
669
+ "result": {
670
+ "frameTree": {
671
+ "frame": {
672
+ "id": "top",
673
+ "loaderId": "L1",
674
+ "url": "https://example.test/page",
675
+ "name": "ordinary",
676
+ "mimeType": "text/html"
677
+ },
678
+ "childFrames": [
679
+ {
680
+ "frame": {
681
+ "id": "child",
682
+ "parentId": "top",
683
+ "loaderId": "L2",
684
+ "url": "https://vault.sliccy.ai",
685
+ "securityOrigin": "https://vault.sliccy.ai"
686
+ },
687
+ "childFrames": [
688
+ {
689
+ "frame": {
690
+ "id": "seven",
691
+ "parentId": "child",
692
+ "loaderId": "L3",
693
+ "url": "https://seven.sliccy.ai",
694
+ "securityOrigin": "https://seven.sliccy.ai"
695
+ }
696
+ },
697
+ {
698
+ "frame": {
699
+ "id": "leaf",
700
+ "parentId": "child",
701
+ "loaderId": "L4",
702
+ "url": "https://echo.sliccy.ai/path",
703
+ "name": "ordinary grandchild"
704
+ }
705
+ }
706
+ ]
707
+ }
708
+ ]
709
+ }
710
+ }
711
+ }
712
+ },
713
+ {
714
+ "id": "tree.resources.nested",
715
+ "op": "reply",
716
+ "page": "mixed",
717
+ "method": "Page.getResourceTree",
718
+ "result": {
719
+ "frameTree": {
720
+ "frame": {
721
+ "id": "top",
722
+ "loaderId": "L1",
723
+ "url": "https://example.test/page",
724
+ "name": "ordinary",
725
+ "mimeType": "text/html"
726
+ },
727
+ "resources": [
728
+ { "url": "https://example.test/main.js", "type": "Script" },
729
+ { "type": "Document", "url": "https://seven.sliccy.ai/path" },
730
+ { "type": "Document", "url": "about:srcdoc" }
731
+ ],
732
+ "childFrames": [
733
+ {
734
+ "frame": {
735
+ "id": "child",
736
+ "parentId": "top",
737
+ "loaderId": "L2",
738
+ "url": "about:srcdoc",
739
+ "securityOrigin": "://",
740
+ "name": "private-name",
741
+ "title": "withheld",
742
+ "urlFragment": "#private",
743
+ "mimeType": "text/html",
744
+ "securityOriginDetails": { "isLocalhost": false },
745
+ "unreachableUrl": "https://vault.sliccy.ai/unreachable?private",
746
+ "domainAndRegistry": "sliccy.ai",
747
+ "secureContextType": "Secure",
748
+ "crossOriginIsolatedContextType": "NotIsolated",
749
+ "gatedAPIFeatures": ["SharedArrayBuffers"],
750
+ "adFrameStatus": { "adFrameType": "root" }
751
+ },
752
+ "resources": [{ "url": "https://vault.sliccy.ai/private.js", "type": "Script" }],
753
+ "childFrames": [
754
+ {
755
+ "frame": {
756
+ "id": "seven",
757
+ "parentId": "child",
758
+ "loaderId": "L3",
759
+ "url": "https://seven.sliccy.ai/path",
760
+ "name": "private-grandchild",
761
+ "securityOrigin": "https://seven.sliccy.ai",
762
+ "urlFragment": "#private",
763
+ "unreachableUrl": "https://vault.sliccy.ai/unreachable?private",
764
+ "domainAndRegistry": "sliccy.ai",
765
+ "secureContextType": "Secure",
766
+ "crossOriginIsolatedContextType": "NotIsolated",
767
+ "gatedAPIFeatures": ["SharedArrayBuffers"],
768
+ "adFrameStatus": { "adFrameType": "root" },
769
+ "mimeType": "text/html",
770
+ "title": "withheld",
771
+ "securityOriginDetails": { "isLocalhost": false }
772
+ },
773
+ "resources": [{ "url": "https://seven.sliccy.ai/private.js", "type": "Script" }]
774
+ },
775
+ {
776
+ "frame": {
777
+ "id": "leaf",
778
+ "parentId": "child",
779
+ "loaderId": "L4",
780
+ "url": "https://echo.sliccy.ai/path",
781
+ "name": "ordinary grandchild"
782
+ },
783
+ "resources": [{ "url": "https://echo.sliccy.ai/public.js", "type": "Script" }]
784
+ }
785
+ ]
786
+ }
787
+ ]
788
+ }
789
+ },
790
+ "expect": {
791
+ "result": {
792
+ "frameTree": {
793
+ "frame": {
794
+ "id": "top",
795
+ "loaderId": "L1",
796
+ "url": "https://example.test/page",
797
+ "name": "ordinary",
798
+ "mimeType": "text/html"
799
+ },
800
+ "resources": [{ "url": "https://example.test/main.js", "type": "Script" }],
801
+ "childFrames": [
802
+ {
803
+ "frame": {
804
+ "id": "child",
805
+ "parentId": "top",
806
+ "loaderId": "L2",
807
+ "url": "https://vault.sliccy.ai",
808
+ "securityOrigin": "https://vault.sliccy.ai"
809
+ },
810
+ "resources": [],
811
+ "childFrames": [
812
+ {
813
+ "frame": {
814
+ "id": "seven",
815
+ "parentId": "child",
816
+ "loaderId": "L3",
817
+ "url": "https://seven.sliccy.ai",
818
+ "securityOrigin": "https://seven.sliccy.ai"
819
+ },
820
+ "resources": []
821
+ },
822
+ {
823
+ "frame": {
824
+ "id": "leaf",
825
+ "parentId": "child",
826
+ "loaderId": "L4",
827
+ "url": "https://echo.sliccy.ai/path",
828
+ "name": "ordinary grandchild"
829
+ },
830
+ "resources": [{ "url": "https://echo.sliccy.ai/public.js", "type": "Script" }]
831
+ }
832
+ ]
833
+ }
834
+ ]
835
+ }
836
+ }
837
+ }
838
+ },
839
+ {
840
+ "id": "tree.loader-changed",
841
+ "op": "reply",
842
+ "page": "mixed",
843
+ "method": "Page.getFrameTree",
844
+ "result": {
845
+ "frameTree": {
846
+ "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
847
+ "childFrames": [
848
+ {
849
+ "frame": {
850
+ "id": "child",
851
+ "parentId": "top",
852
+ "loaderId": "old",
853
+ "url": "about:srcdoc",
854
+ "securityOrigin": "://",
855
+ "name": "private-name",
856
+ "title": "private-title",
857
+ "urlFragment": "#private",
858
+ "mimeType": "text/html",
859
+ "securityOriginDetails": { "isLocalhost": true }
860
+ }
861
+ }
862
+ ]
863
+ }
864
+ },
865
+ "expect": { "action": "refuse", "reason": "reply.unprojectable" }
866
+ },
867
+ {
868
+ "id": "tree.frame-unplaced",
869
+ "op": "reply",
870
+ "page": "mixed",
871
+ "method": "Page.getFrameTree",
872
+ "result": {
873
+ "frameTree": {
874
+ "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
875
+ "childFrames": [
876
+ {
877
+ "frame": {
878
+ "id": "old",
879
+ "parentId": "top",
880
+ "loaderId": "L2",
881
+ "url": "about:srcdoc",
882
+ "securityOrigin": "://",
883
+ "name": "private-name",
884
+ "title": "private-title",
885
+ "urlFragment": "#private",
886
+ "mimeType": "text/html",
887
+ "securityOriginDetails": { "isLocalhost": true }
888
+ }
889
+ }
890
+ ]
891
+ }
892
+ },
893
+ "expect": { "action": "refuse", "reason": "reply.unprojectable" }
894
+ },
895
+ {
896
+ "id": "tree.duplicate",
897
+ "op": "reply",
898
+ "page": "mixed",
899
+ "method": "Page.getFrameTree",
900
+ "result": {
901
+ "frameTree": {
902
+ "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
903
+ "childFrames": [
904
+ {
905
+ "frame": {
906
+ "id": "child",
907
+ "parentId": "top",
908
+ "loaderId": "L2",
909
+ "url": "about:srcdoc",
910
+ "securityOrigin": "://",
911
+ "name": "private-name",
912
+ "title": "private-title",
913
+ "urlFragment": "#private",
914
+ "mimeType": "text/html",
915
+ "securityOriginDetails": { "isLocalhost": true }
916
+ }
917
+ },
918
+ {
919
+ "frame": {
920
+ "id": "child",
921
+ "parentId": "top",
922
+ "loaderId": "L2",
923
+ "url": "about:srcdoc",
924
+ "securityOrigin": "://",
925
+ "name": "private-name",
926
+ "title": "private-title",
927
+ "urlFragment": "#private",
928
+ "mimeType": "text/html",
929
+ "securityOriginDetails": { "isLocalhost": true }
930
+ }
931
+ }
932
+ ]
933
+ }
934
+ },
935
+ "expect": { "action": "refuse", "reason": "reply.unprojectable" }
936
+ },
937
+ {
938
+ "id": "tree.wrong-parent",
939
+ "op": "reply",
940
+ "page": "mixed",
941
+ "method": "Page.getFrameTree",
942
+ "result": {
943
+ "frameTree": {
944
+ "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
945
+ "childFrames": [
946
+ {
947
+ "frame": {
948
+ "id": "seven",
949
+ "parentId": "child",
950
+ "loaderId": "L3",
951
+ "url": "https://seven.sliccy.ai/path",
952
+ "name": "private-grandchild",
953
+ "securityOrigin": "https://seven.sliccy.ai",
954
+ "urlFragment": "#private"
955
+ }
956
+ }
957
+ ]
958
+ }
959
+ },
960
+ "expect": { "action": "refuse", "reason": "reply.unprojectable" }
961
+ },
962
+ {
963
+ "id": "tree.learned-at-delivery",
964
+ "op": "reply",
965
+ "page": "plain",
966
+ "method": "Page.getFrameTree",
967
+ "result": {
968
+ "frameTree": {
969
+ "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
970
+ "childFrames": [
971
+ {
972
+ "frame": {
973
+ "id": "seven",
974
+ "parentId": "top",
975
+ "loaderId": "L3",
976
+ "url": "https://seven.sliccy.ai/path",
977
+ "name": "private-grandchild",
978
+ "securityOrigin": "https://seven.sliccy.ai",
979
+ "urlFragment": "#private"
980
+ }
981
+ }
982
+ ]
983
+ }
984
+ },
985
+ "expect": { "action": "refuse", "reason": "reply.unprojectable" }
986
+ },
987
+ {
988
+ "id": "tree.error-url",
989
+ "op": "reply",
990
+ "page": "errorMixed",
991
+ "method": "Page.getFrameTree",
992
+ "result": {
993
+ "frameTree": {
994
+ "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
995
+ "childFrames": [
996
+ {
997
+ "frame": {
998
+ "id": "child",
999
+ "parentId": "top",
1000
+ "loaderId": "L2",
1001
+ "url": "chrome-error://chromewebdata/",
1002
+ "unreachableUrl": "https://vault.sliccy.ai/private"
1003
+ }
1004
+ }
1005
+ ]
1006
+ }
1007
+ },
1008
+ "expect": {
1009
+ "result": {
1010
+ "frameTree": {
1011
+ "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
1012
+ "childFrames": [
1013
+ {
1014
+ "frame": {
1015
+ "id": "child",
1016
+ "parentId": "top",
1017
+ "loaderId": "L2",
1018
+ "url": "chrome-error://chromewebdata/",
1019
+ "unreachableUrl": "https://vault.sliccy.ai"
1020
+ }
1021
+ }
1022
+ ]
1023
+ }
1024
+ }
1025
+ }
1026
+ },
1027
+ {
1028
+ "id": "tree.foreign-extension",
1029
+ "op": "reply",
1030
+ "page": "foreignShown",
1031
+ "method": "Page.getFrameTree",
1032
+ "result": {
1033
+ "frameTree": {
1034
+ "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
1035
+ "childFrames": [
1036
+ {
1037
+ "frame": {
1038
+ "id": "child",
1039
+ "parentId": "top",
1040
+ "loaderId": "L2",
1041
+ "url": "chrome-extension://other/frame"
1042
+ }
1043
+ }
1044
+ ]
1045
+ }
1046
+ },
1047
+ "expect": {
1048
+ "result": {
1049
+ "frameTree": {
1050
+ "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
1051
+ "childFrames": []
1052
+ }
1053
+ }
1054
+ }
1055
+ },
1056
+ {
1057
+ "id": "clean.unknown-method",
1058
+ "op": "reply",
1059
+ "page": "plain",
1060
+ "method": "Example.unlisted",
1061
+ "result": { "value": "untouched" },
1062
+ "expect": { "result": { "value": "untouched" } }
1063
+ },
1064
+ {
1065
+ "id": "clean.no-placement",
1066
+ "op": "reply",
1067
+ "page": "unobserved",
1068
+ "method": "DOM.getDocument",
1069
+ "result": { "root": { "nodeId": 1 } },
1070
+ "expect": { "result": { "root": { "nodeId": 1 } } }
1071
+ },
1072
+ {
1073
+ "id": "clean.error",
1074
+ "op": "reply",
1075
+ "page": "error",
1076
+ "method": "Page.windowOpen",
1077
+ "result": { "url": "ordinary" },
1078
+ "expect": { "result": { "url": "ordinary" } }
1079
+ },
1080
+ {
1081
+ "id": "mixed.unknown-method",
1082
+ "op": "reply",
1083
+ "page": "mixed",
1084
+ "method": "Example.unlisted",
1085
+ "result": { "value": "private" },
1086
+ "expect": { "action": "refuse", "reason": "reply.unprojectable" }
1087
+ },
1088
+ {
1089
+ "id": "root.protected",
1090
+ "op": "reply",
1091
+ "page": "protectedTop",
1092
+ "method": "Page.getFrameTree",
1093
+ "result": {
1094
+ "frameTree": {
1095
+ "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
1096
+ "childFrames": []
1097
+ }
1098
+ },
1099
+ "expect": { "action": "refuse", "reason": "surface.protected" }
1100
+ },
1101
+ {
1102
+ "id": "pixels.screen.mixed",
1103
+ "op": "reply",
1104
+ "page": "masks",
1105
+ "method": "Page.captureScreenshot",
1106
+ "result": { "data": "raw-image" },
1107
+ "expect": {
1108
+ "result": {
1109
+ "rects": [
1110
+ { "x": 15.5, "y": 20, "width": 80, "height": 40 },
1111
+ { "x": 7, "y": -1, "width": 120, "height": 17 },
1112
+ { "x": 0, "y": 0, "width": 30, "height": 12 },
1113
+ { "x": 17, "y": 6, "width": 29, "height": 33 }
1114
+ ]
1115
+ }
1116
+ },
1117
+ "observed": { "revision": "r1", "mixed": true }
1118
+ },
1119
+ {
1120
+ "id": "pixels.screen.seven",
1121
+ "op": "reply",
1122
+ "page": "seven",
1123
+ "method": "Page.captureScreenshot",
1124
+ "result": { "data": "raw-image" },
1125
+ "expect": { "result": { "rects": [] } },
1126
+ "observed": { "revision": "r1", "mixed": true }
1127
+ },
1128
+ {
1129
+ "id": "pixels.pdf.mixed",
1130
+ "op": "reply",
1131
+ "page": "masks",
1132
+ "method": "Page.printToPDF",
1133
+ "result": { "data": "raw-pdf" },
1134
+ "expect": { "action": "refuse", "reason": "resource.protected" },
1135
+ "observed": { "revision": "r1", "mixed": true }
1136
+ },
1137
+ {
1138
+ "id": "pixels.pdf.seven",
1139
+ "op": "reply",
1140
+ "page": "seven",
1141
+ "method": "Page.printToPDF",
1142
+ "result": { "data": "raw-pdf" },
1143
+ "expect": { "result": { "rects": [] } },
1144
+ "observed": { "revision": "r1", "mixed": true }
1145
+ },
1146
+ {
1147
+ "id": "pixels.pdf-stream.mixed",
1148
+ "op": "reply",
1149
+ "page": "masks",
1150
+ "method": "Page.printToPDF",
1151
+ "result": { "stream": "unfiltered", "data": "" },
1152
+ "expect": { "action": "refuse", "reason": "resource.protected" },
1153
+ "observed": { "revision": "r1", "mixed": true }
1154
+ },
1155
+ {
1156
+ "id": "pixels.pdf-stream.seven",
1157
+ "op": "reply",
1158
+ "page": "seven",
1159
+ "method": "Page.printToPDF",
1160
+ "result": { "stream": "unfiltered", "data": "" },
1161
+ "expect": { "result": { "rects": [] } },
1162
+ "observed": { "revision": "r1", "mixed": true }
1163
+ },
1164
+ {
1165
+ "id": "pixels.start.mixed",
1166
+ "op": "reply",
1167
+ "page": "masks",
1168
+ "method": "Page.startScreencast",
1169
+ "result": {},
1170
+ "expect": {
1171
+ "result": {
1172
+ "rects": [
1173
+ { "x": 15.5, "y": 20, "width": 80, "height": 40 },
1174
+ { "x": 7, "y": -1, "width": 120, "height": 17 },
1175
+ { "x": 0, "y": 0, "width": 30, "height": 12 },
1176
+ { "x": 17, "y": 6, "width": 29, "height": 33 }
1177
+ ]
1178
+ }
1179
+ },
1180
+ "observed": { "revision": "r1", "mixed": true }
1181
+ },
1182
+ {
1183
+ "id": "pixels.start.seven",
1184
+ "op": "reply",
1185
+ "page": "seven",
1186
+ "method": "Page.startScreencast",
1187
+ "result": {},
1188
+ "expect": { "result": { "rects": [] } },
1189
+ "observed": { "revision": "r1", "mixed": true }
1190
+ },
1191
+ {
1192
+ "id": "pixels.cast.mixed",
1193
+ "op": "reply",
1194
+ "page": "masks",
1195
+ "method": "Page.screencastFrame",
1196
+ "result": { "data": "raw-image", "sessionId": 4 },
1197
+ "expect": {
1198
+ "result": {
1199
+ "rects": [
1200
+ { "x": 15.5, "y": 20, "width": 80, "height": 40 },
1201
+ { "x": 7, "y": -1, "width": 120, "height": 17 },
1202
+ { "x": 0, "y": 0, "width": 30, "height": 12 },
1203
+ { "x": 17, "y": 6, "width": 29, "height": 33 }
1204
+ ]
1205
+ }
1206
+ },
1207
+ "observed": { "revision": "r1", "mixed": true }
1208
+ },
1209
+ {
1210
+ "id": "pixels.cast.seven",
1211
+ "op": "reply",
1212
+ "page": "seven",
1213
+ "method": "Page.screencastFrame",
1214
+ "result": { "data": "raw-image", "sessionId": 4 },
1215
+ "expect": { "result": { "rects": [] } },
1216
+ "observed": { "revision": "r1", "mixed": true }
1217
+ },
1218
+ {
1219
+ "id": "pixels.empty-box",
1220
+ "op": "reply",
1221
+ "page": "emptyBox",
1222
+ "method": "Page.captureScreenshot",
1223
+ "result": { "data": "raw-image" },
1224
+ "expect": { "result": { "rects": [] } },
1225
+ "observed": { "revision": "r1", "mixed": true }
1226
+ },
1227
+ {
1228
+ "id": "pixels.missing-box",
1229
+ "op": "reply",
1230
+ "page": "noGeometry",
1231
+ "method": "Page.captureScreenshot",
1232
+ "result": { "data": "raw-image" },
1233
+ "expect": { "action": "refuse", "reason": "reply.unprojectable" },
1234
+ "observed": { "revision": "r1", "mixed": true }
1235
+ },
1236
+ {
1237
+ "id": "pixels.invalid-box",
1238
+ "op": "reply",
1239
+ "page": "badBox",
1240
+ "method": "Page.captureScreenshot",
1241
+ "result": { "data": "raw-image" },
1242
+ "expect": { "action": "refuse", "reason": "reply.unprojectable" },
1243
+ "observed": { "revision": "r1", "mixed": true }
1244
+ },
1245
+ {
1246
+ "id": "pixels.no-observation",
1247
+ "op": "reply",
1248
+ "page": "seven",
1249
+ "method": "Page.captureScreenshot",
1250
+ "result": { "data": "raw-image" },
1251
+ "expect": { "action": "refuse", "reason": "reply.unprojectable" }
1252
+ },
1253
+ {
1254
+ "id": "pixels.changed-revision",
1255
+ "op": "reply",
1256
+ "page": "mixed",
1257
+ "method": "Page.printToPDF",
1258
+ "result": { "stream": "old", "data": "" },
1259
+ "expect": { "action": "refuse", "reason": "reply.unprojectable" },
1260
+ "observed": { "revision": "previous", "mixed": true }
1261
+ },
1262
+ {
1263
+ "id": "pixels.appeared",
1264
+ "op": "reply",
1265
+ "page": "mixed",
1266
+ "method": "Page.captureScreenshot",
1267
+ "result": { "data": "raw-image" },
1268
+ "expect": { "action": "refuse", "reason": "reply.unprojectable" },
1269
+ "observed": { "revision": "r0", "mixed": false }
1270
+ },
1271
+ {
1272
+ "id": "pixels.retired",
1273
+ "op": "reply",
1274
+ "page": "plain",
1275
+ "method": "Page.captureScreenshot",
1276
+ "result": { "data": "raw-image" },
1277
+ "expect": { "action": "refuse", "reason": "reply.unprojectable" },
1278
+ "observed": { "revision": "r1", "mixed": true }
1279
+ },
1280
+ {
1281
+ "id": "pixels.never-mixed",
1282
+ "op": "reply",
1283
+ "page": "plain",
1284
+ "method": "Page.captureScreenshot",
1285
+ "result": { "data": "raw-image" },
1286
+ "expect": { "result": { "data": "raw-image" } },
1287
+ "observed": { "revision": "old", "mixed": false }
1288
+ },
1289
+ {
1290
+ "id": "extension.visible",
1291
+ "op": "reply",
1292
+ "page": "foreignShown",
1293
+ "method": "Page.captureScreenshot",
1294
+ "result": { "data": "raw-image" },
1295
+ "expect": { "action": "refuse", "reason": "extension.shown" },
1296
+ "observed": { "revision": "r1", "mixed": false }
1297
+ },
1298
+ {
1299
+ "id": "extension.unknown",
1300
+ "op": "reply",
1301
+ "page": "foreignUnmeasured",
1302
+ "method": "Page.captureScreenshot",
1303
+ "result": { "data": "raw-image" },
1304
+ "expect": { "action": "refuse", "reason": "extension.shown" },
1305
+ "observed": { "revision": "r1", "mixed": false }
1306
+ },
1307
+ {
1308
+ "id": "extension.hidden",
1309
+ "op": "reply",
1310
+ "page": "foreignHidden",
1311
+ "method": "Page.captureScreenshot",
1312
+ "result": { "data": "raw-image" },
1313
+ "expect": { "result": { "data": "raw-image" } },
1314
+ "observed": { "revision": "r1", "mixed": false }
1315
+ },
1316
+ {
1317
+ "id": "extension.pdf",
1318
+ "op": "reply",
1319
+ "page": "foreignHidden",
1320
+ "method": "Page.printToPDF",
1321
+ "result": { "data": "raw-image" },
1322
+ "expect": { "action": "refuse", "reason": "extension.present" },
1323
+ "observed": { "revision": "r1", "mixed": false }
1324
+ },
1325
+ {
1326
+ "id": "extension.cast",
1327
+ "op": "reply",
1328
+ "page": "foreignHidden",
1329
+ "method": "Page.screencastFrame",
1330
+ "result": { "data": "raw-image" },
1331
+ "expect": { "action": "refuse", "reason": "extension.present" },
1332
+ "observed": { "revision": "r1", "mixed": false }
1333
+ },
1334
+ {
1335
+ "id": "pixels.missing-result",
1336
+ "op": "reply",
1337
+ "page": "seven",
1338
+ "method": "Page.captureScreenshot",
1339
+ "result": {},
1340
+ "expect": { "action": "refuse", "reason": "reply.unprojectable" },
1341
+ "observed": { "revision": "r1", "mixed": true }
1342
+ },
1343
+ {
1344
+ "id": "tree.file-origin",
1345
+ "op": "reply",
1346
+ "page": "noGeometry",
1347
+ "method": "Page.getFrameTree",
1348
+ "result": {
1349
+ "frameTree": {
1350
+ "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
1351
+ "childFrames": [
1352
+ {
1353
+ "frame": { "id": "child", "parentId": "top", "loaderId": "L2", "url": "file:///path" }
1354
+ }
1355
+ ]
1356
+ }
1357
+ },
1358
+ "expect": {
1359
+ "result": {
1360
+ "frameTree": {
1361
+ "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
1362
+ "childFrames": [
1363
+ {
1364
+ "frame": {
1365
+ "id": "child",
1366
+ "parentId": "top",
1367
+ "loaderId": "L2",
1368
+ "url": "file://",
1369
+ "securityOrigin": "file://"
1370
+ }
1371
+ }
1372
+ ]
1373
+ }
1374
+ }
1375
+ }
1376
+ },
1377
+ {
1378
+ "id": "tree.conflicting-origin",
1379
+ "op": "reply",
1380
+ "page": "mixed",
1381
+ "method": "Page.getFrameTree",
1382
+ "result": {
1383
+ "frameTree": {
1384
+ "frame": {
1385
+ "id": "top",
1386
+ "loaderId": "L1",
1387
+ "url": "https://example.test/page",
1388
+ "securityOrigin": "https://vault.sliccy.ai"
1389
+ }
1390
+ }
1391
+ },
1392
+ "expect": { "action": "refuse", "reason": "reply.unprojectable" }
1393
+ },
1394
+ {
1395
+ "id": "tree.foreign-parent-ordinary-child",
1396
+ "op": "reply",
1397
+ "page": "foreignParent",
1398
+ "method": "Page.getFrameTree",
1399
+ "result": {
1400
+ "frameTree": {
1401
+ "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
1402
+ "childFrames": [
1403
+ {
1404
+ "frame": {
1405
+ "id": "child",
1406
+ "parentId": "top",
1407
+ "loaderId": "L2",
1408
+ "url": "chrome-extension://other/frame",
1409
+ "shown": false
1410
+ },
1411
+ "childFrames": [
1412
+ {
1413
+ "frame": {
1414
+ "id": "leaf",
1415
+ "loaderId": "L3",
1416
+ "parentId": "child",
1417
+ "url": "https://example.test/leaf"
1418
+ }
1419
+ }
1420
+ ]
1421
+ }
1422
+ ]
1423
+ }
1424
+ },
1425
+ "expect": {
1426
+ "result": {
1427
+ "frameTree": {
1428
+ "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
1429
+ "childFrames": [
1430
+ {
1431
+ "frame": {
1432
+ "id": "leaf",
1433
+ "loaderId": "L3",
1434
+ "parentId": "top",
1435
+ "url": "https://example.test/leaf"
1436
+ }
1437
+ }
1438
+ ]
1439
+ }
1440
+ }
1441
+ }
1442
+ },
1443
+ {
1444
+ "id": "tree.protected-url-with-opaque-origin",
1445
+ "op": "reply",
1446
+ "page": "sandboxAndVault",
1447
+ "method": "Page.getResourceTree",
1448
+ "result": {
1449
+ "frameTree": {
1450
+ "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
1451
+ "resources": [{ "type": "Document", "url": "https://seven.sliccy.ai/opaque" }],
1452
+ "childFrames": [
1453
+ {
1454
+ "frame": {
1455
+ "id": "sandbox",
1456
+ "parentId": "top",
1457
+ "loaderId": "LS",
1458
+ "url": "https://seven.sliccy.ai/opaque",
1459
+ "securityOrigin": "null"
1460
+ },
1461
+ "resources": []
1462
+ }
1463
+ ]
1464
+ }
1465
+ },
1466
+ "expect": {
1467
+ "result": {
1468
+ "frameTree": {
1469
+ "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
1470
+ "resources": [],
1471
+ "childFrames": [
1472
+ {
1473
+ "frame": {
1474
+ "id": "sandbox",
1475
+ "parentId": "top",
1476
+ "loaderId": "LS",
1477
+ "url": "https://seven.sliccy.ai",
1478
+ "securityOrigin": "https://seven.sliccy.ai"
1479
+ },
1480
+ "resources": []
1481
+ }
1482
+ ]
1483
+ }
1484
+ }
1485
+ }
1486
+ },
1487
+ {
1488
+ "id": "capture.error-no-failed-url",
1489
+ "op": "capture",
1490
+ "frame": { "url": "chrome-error://chromewebdata/", "previous": true },
1491
+ "expect": "allow"
1492
+ },
1493
+ {
1494
+ "id": "clean.tree.ordinary",
1495
+ "op": "reply",
1496
+ "page": "plain",
1497
+ "method": "Page.getFrameTree",
1498
+ "result": {
1499
+ "frameTree": {
1500
+ "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
1501
+ "childFrames": [{ "frame": { "id": "other", "parentId": "top", "url": "about:blank" } }]
1502
+ }
1503
+ },
1504
+ "expect": {
1505
+ "result": {
1506
+ "frameTree": {
1507
+ "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
1508
+ "childFrames": [{ "frame": { "id": "other", "parentId": "top", "url": "about:blank" } }]
1509
+ }
1510
+ }
1511
+ }
1512
+ },
1513
+ {
1514
+ "id": "clean.tree.empty",
1515
+ "op": "reply",
1516
+ "page": "plain",
1517
+ "method": "Page.getFrameTree",
1518
+ "result": { "frameTree": {} },
1519
+ "expect": { "result": { "frameTree": {} } }
1520
+ },
1521
+ {
1522
+ "id": "tree.ordinary-failed-url-kept",
1523
+ "op": "reply",
1524
+ "page": "ordinaryFailedURL",
1525
+ "method": "Page.getFrameTree",
1526
+ "result": {
1527
+ "frameTree": {
1528
+ "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
1529
+ "childFrames": [
1530
+ {
1531
+ "frame": {
1532
+ "id": "error",
1533
+ "parentId": "top",
1534
+ "loaderId": "E",
1535
+ "url": "chrome-error://chromewebdata/",
1536
+ "unreachableUrl": "https://example.test/kept"
1537
+ }
1538
+ }
1539
+ ]
1540
+ }
1541
+ },
1542
+ "expect": {
1543
+ "result": {
1544
+ "frameTree": {
1545
+ "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
1546
+ "childFrames": [
1547
+ {
1548
+ "frame": {
1549
+ "id": "error",
1550
+ "parentId": "top",
1551
+ "loaderId": "E",
1552
+ "url": "chrome-error://chromewebdata/",
1553
+ "unreachableUrl": "https://example.test/kept"
1554
+ }
1555
+ }
1556
+ ]
1557
+ }
1558
+ }
1559
+ }
1560
+ },
1561
+ {
1562
+ "id": "page.extension-hidden",
1563
+ "op": "page",
1564
+ "page": "foreignHidden",
1565
+ "expect": {
1566
+ "mixed": false,
1567
+ "frames": {
1568
+ "top": { "role": "ordinary", "protected": false, "capture": "allow" },
1569
+ "child": { "protected": true, "role": "extension", "capture": "allow" }
1570
+ }
1571
+ }
1572
+ },
1573
+ {
1574
+ "id": "extension.hidden.eval",
1575
+ "op": "reply",
1576
+ "page": "foreignHidden",
1577
+ "method": "Runtime.evaluate",
1578
+ "result": { "result": { "type": "string", "value": "ordinary page" } },
1579
+ "expect": { "result": { "result": { "type": "string", "value": "ordinary page" } } }
1580
+ },
1581
+ {
1582
+ "id": "extension.hidden.dom",
1583
+ "op": "reply",
1584
+ "page": "foreignHidden",
1585
+ "method": "DOM.getDocument",
1586
+ "result": { "root": { "nodeId": 1, "nodeName": "#document" } },
1587
+ "expect": { "result": { "root": { "nodeId": 1, "nodeName": "#document" } } }
1588
+ },
1589
+ {
1590
+ "id": "extension.hidden.snapshot",
1591
+ "op": "reply",
1592
+ "page": "foreignHidden",
1593
+ "method": "DOMSnapshot.captureSnapshot",
1594
+ "result": { "documents": [{ "frameId": 0 }], "strings": ["top"] },
1595
+ "expect": { "result": { "documents": [{ "frameId": 0 }], "strings": ["top"] } }
1596
+ },
1597
+ {
1598
+ "id": "page.extension-shown",
1599
+ "op": "page",
1600
+ "page": "foreignShown",
1601
+ "expect": {
1602
+ "mixed": false,
1603
+ "frames": {
1604
+ "top": { "role": "ordinary", "protected": false, "capture": "allow" },
1605
+ "child": { "protected": true, "role": "extension", "capture": "blank" }
1606
+ }
1607
+ }
1608
+ },
1609
+ {
1610
+ "id": "extension.shown.eval",
1611
+ "op": "reply",
1612
+ "page": "foreignShown",
1613
+ "method": "Runtime.evaluate",
1614
+ "result": { "result": { "type": "string", "value": "ordinary page" } },
1615
+ "expect": { "result": { "result": { "type": "string", "value": "ordinary page" } } }
1616
+ },
1617
+ {
1618
+ "id": "extension.shown.dom",
1619
+ "op": "reply",
1620
+ "page": "foreignShown",
1621
+ "method": "DOM.getDocument",
1622
+ "result": { "root": { "nodeId": 1, "nodeName": "#document" } },
1623
+ "expect": { "result": { "root": { "nodeId": 1, "nodeName": "#document" } } }
1624
+ },
1625
+ {
1626
+ "id": "extension.shown.snapshot",
1627
+ "op": "reply",
1628
+ "page": "foreignShown",
1629
+ "method": "DOMSnapshot.captureSnapshot",
1630
+ "result": { "documents": [{ "frameId": 0 }], "strings": ["top"] },
1631
+ "expect": { "result": { "documents": [{ "frameId": 0 }], "strings": ["top"] } }
1632
+ },
1633
+ {
1634
+ "id": "extension.hidden-resources",
1635
+ "op": "reply",
1636
+ "page": "foreignHidden",
1637
+ "method": "Page.getResourceTree",
1638
+ "result": {
1639
+ "frameTree": {
1640
+ "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
1641
+ "resources": [{ "url": "chrome-extension://other/frame", "type": "Document" }],
1642
+ "childFrames": [
1643
+ {
1644
+ "frame": {
1645
+ "id": "child",
1646
+ "parentId": "top",
1647
+ "loaderId": "L2",
1648
+ "url": "chrome-extension://other/frame",
1649
+ "shown": false
1650
+ },
1651
+ "resources": [{ "url": "chrome-extension://other/frame/secret.js", "type": "Script" }]
1652
+ }
1653
+ ]
1654
+ }
1655
+ },
1656
+ "expect": {
1657
+ "result": {
1658
+ "frameTree": {
1659
+ "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
1660
+ "resources": [],
1661
+ "childFrames": []
1662
+ }
1663
+ }
1664
+ }
1665
+ },
1666
+ {
1667
+ "id": "page.about-lookalike",
1668
+ "op": "page",
1669
+ "page": "about-lookalike",
1670
+ "expect": {
1671
+ "mixed": false,
1672
+ "frames": {
1673
+ "top": { "role": "ordinary", "protected": false, "capture": "allow" },
1674
+ "child": { "role": "ordinary", "protected": false, "capture": "allow" }
1675
+ }
1676
+ }
1677
+ },
1678
+ {
1679
+ "id": "tree.about-lookalike",
1680
+ "op": "reply",
1681
+ "page": "about-lookalike",
1682
+ "method": "Page.getFrameTree",
1683
+ "result": {
1684
+ "frameTree": {
1685
+ "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
1686
+ "childFrames": [
1687
+ {
1688
+ "frame": {
1689
+ "id": "child",
1690
+ "parentId": "top",
1691
+ "loaderId": "L2",
1692
+ "url": "about:blank",
1693
+ "securityOrigin": "://",
1694
+ "name": "withheld"
1695
+ }
1696
+ }
1697
+ ]
1698
+ }
1699
+ },
1700
+ "expect": {
1701
+ "result": {
1702
+ "frameTree": {
1703
+ "frame": {
1704
+ "id": "top",
1705
+ "loaderId": "L1",
1706
+ "url": "https://example.test/page"
1707
+ },
1708
+ "childFrames": [
1709
+ {
1710
+ "frame": {
1711
+ "id": "child",
1712
+ "parentId": "top",
1713
+ "loaderId": "L2",
1714
+ "url": "about:blank",
1715
+ "securityOrigin": "://",
1716
+ "name": "withheld"
1717
+ }
1718
+ }
1719
+ ]
1720
+ }
1721
+ }
1722
+ }
1723
+ },
1724
+ {
1725
+ "id": "page.unparseable",
1726
+ "op": "page",
1727
+ "page": "unparseable",
1728
+ "expect": {
1729
+ "mixed": true,
1730
+ "frames": {
1731
+ "top": { "role": "ordinary", "protected": false, "capture": "allow" },
1732
+ "child": { "role": "unparseable", "protected": true, "capture": "blank" }
1733
+ }
1734
+ }
1735
+ },
1736
+ {
1737
+ "id": "tree.unparseable",
1738
+ "op": "reply",
1739
+ "page": "unparseable",
1740
+ "method": "Page.getFrameTree",
1741
+ "result": {
1742
+ "frameTree": {
1743
+ "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
1744
+ "childFrames": [
1745
+ {
1746
+ "frame": {
1747
+ "id": "child",
1748
+ "parentId": "top",
1749
+ "loaderId": "L2",
1750
+ "url": "invalid frame URL",
1751
+ "securityOrigin": "://",
1752
+ "name": "withheld"
1753
+ }
1754
+ }
1755
+ ]
1756
+ }
1757
+ },
1758
+ "expect": {
1759
+ "result": {
1760
+ "frameTree": {
1761
+ "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
1762
+ "childFrames": [
1763
+ {
1764
+ "frame": {
1765
+ "id": "child",
1766
+ "parentId": "top",
1767
+ "loaderId": "L2",
1768
+ "url": "",
1769
+ "securityOrigin": ""
1770
+ }
1771
+ }
1772
+ ]
1773
+ }
1774
+ }
1775
+ }
1776
+ },
1777
+ {
1778
+ "id": "page.vault-about-origin",
1779
+ "op": "page",
1780
+ "page": "vault-about-origin",
1781
+ "expect": {
1782
+ "mixed": true,
1783
+ "frames": {
1784
+ "top": { "role": "ordinary", "protected": false, "capture": "allow" },
1785
+ "child": { "role": "slicc", "protected": true, "capture": "blank" }
1786
+ }
1787
+ }
1788
+ },
1789
+ {
1790
+ "id": "tree.vault-about-origin",
1791
+ "op": "reply",
1792
+ "page": "vault-about-origin",
1793
+ "method": "Page.getFrameTree",
1794
+ "result": {
1795
+ "frameTree": {
1796
+ "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
1797
+ "childFrames": [
1798
+ {
1799
+ "frame": {
1800
+ "id": "child",
1801
+ "parentId": "top",
1802
+ "loaderId": "L2",
1803
+ "url": "https://vault.sliccy.ai/private",
1804
+ "securityOrigin": "about:blank",
1805
+ "name": "withheld"
1806
+ }
1807
+ }
1808
+ ]
1809
+ }
1810
+ },
1811
+ "expect": {
1812
+ "result": {
1813
+ "frameTree": {
1814
+ "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
1815
+ "childFrames": [
1816
+ {
1817
+ "frame": {
1818
+ "id": "child",
1819
+ "parentId": "top",
1820
+ "loaderId": "L2",
1821
+ "url": "https://vault.sliccy.ai",
1822
+ "securityOrigin": "https://vault.sliccy.ai"
1823
+ }
1824
+ }
1825
+ ]
1826
+ }
1827
+ }
1828
+ }
1829
+ },
1830
+ {
1831
+ "id": "page.vault-ordinary-context",
1832
+ "op": "page",
1833
+ "page": "vault-ordinary-context",
1834
+ "expect": {
1835
+ "mixed": true,
1836
+ "frames": {
1837
+ "top": { "role": "ordinary", "protected": false, "capture": "allow" },
1838
+ "child": { "role": "slicc", "protected": true, "capture": "blank" }
1839
+ }
1840
+ }
1841
+ },
1842
+ {
1843
+ "id": "tree.vault-ordinary-context",
1844
+ "op": "reply",
1845
+ "page": "vault-ordinary-context",
1846
+ "method": "Page.getFrameTree",
1847
+ "result": {
1848
+ "frameTree": {
1849
+ "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
1850
+ "childFrames": [
1851
+ {
1852
+ "frame": {
1853
+ "id": "child",
1854
+ "parentId": "top",
1855
+ "loaderId": "L2",
1856
+ "url": "https://example.test/carrier",
1857
+ "securityOrigin": "https://vault.sliccy.ai",
1858
+ "name": "withheld"
1859
+ }
1860
+ }
1861
+ ]
1862
+ }
1863
+ },
1864
+ "expect": {
1865
+ "result": {
1866
+ "frameTree": {
1867
+ "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
1868
+ "childFrames": [
1869
+ {
1870
+ "frame": {
1871
+ "id": "child",
1872
+ "parentId": "top",
1873
+ "loaderId": "L2",
1874
+ "url": "https://vault.sliccy.ai",
1875
+ "securityOrigin": "https://vault.sliccy.ai"
1876
+ }
1877
+ }
1878
+ ]
1879
+ }
1880
+ }
1881
+ }
1882
+ },
1883
+ {
1884
+ "id": "capture.www",
1885
+ "op": "capture",
1886
+ "frame": { "url": "https://www.sliccy.ai/path" },
1887
+ "expect": "allow"
1888
+ },
1889
+ {
1890
+ "id": "capture.vault-about",
1891
+ "op": "capture",
1892
+ "frame": {
1893
+ "id": "child",
1894
+ "parentId": "top",
1895
+ "loaderId": "L2",
1896
+ "url": "https://vault.sliccy.ai/private",
1897
+ "securityOrigin": "about:blank"
1898
+ },
1899
+ "expect": "blank"
1900
+ },
1901
+ {
1902
+ "id": "capture.context-does-not-clear-vault",
1903
+ "op": "capture",
1904
+ "frame": {
1905
+ "id": "child",
1906
+ "parentId": "top",
1907
+ "loaderId": "L2",
1908
+ "url": "https://example.test/carrier",
1909
+ "securityOrigin": "https://vault.sliccy.ai",
1910
+ "defaultContext": { "frameId": "child", "loaderId": "L2", "origin": "https://example.test" }
1911
+ },
1912
+ "expect": "blank"
1913
+ },
1914
+ {
1915
+ "id": "capture.exact-about",
1916
+ "op": "capture",
1917
+ "frame": { "url": "about:blank", "securityOrigin": "about://" },
1918
+ "expect": "allow"
1919
+ },
1920
+ {
1921
+ "id": "capture.uppercase-about",
1922
+ "op": "capture",
1923
+ "frame": { "url": "about:srcdoc", "securityOrigin": "ABOUT://" },
1924
+ "expect": "allow"
1925
+ },
1926
+ {
1927
+ "id": "capture.ordinary-url-vault-context",
1928
+ "op": "capture",
1929
+ "frame": {
1930
+ "id": "child",
1931
+ "parentId": "top",
1932
+ "loaderId": "L2",
1933
+ "url": "https://example.test",
1934
+ "defaultContext": {
1935
+ "frameId": "child",
1936
+ "loaderId": "L2",
1937
+ "origin": "https://vault.sliccy.ai"
1938
+ }
1939
+ },
1940
+ "expect": "blank"
1941
+ },
1942
+ {
1943
+ "id": "capture.seven-url-vault-origin",
1944
+ "op": "capture",
1945
+ "frame": { "url": "https://seven.sliccy.ai", "securityOrigin": "https://vault.sliccy.ai" },
1946
+ "expect": "blank"
1947
+ },
1948
+ {
1949
+ "id": "capture.vault-url-seven-origin",
1950
+ "op": "capture",
1951
+ "frame": { "url": "https://vault.sliccy.ai", "securityOrigin": "https://seven.sliccy.ai" },
1952
+ "expect": "blank"
1953
+ },
1954
+ {
1955
+ "id": "capture.error-reported-vault",
1956
+ "op": "capture",
1957
+ "frame": {
1958
+ "url": "chrome-error://chromewebdata/",
1959
+ "unreachableUrl": "https://example.test",
1960
+ "securityOrigin": "https://vault.sliccy.ai"
1961
+ },
1962
+ "expect": "blank"
1963
+ },
1964
+ {
1965
+ "id": "capture.error-invalid-origin",
1966
+ "op": "capture",
1967
+ "frame": { "url": "chrome-error://chromewebdata/", "securityOrigin": "not-an-origin" },
1968
+ "expect": "blank"
1969
+ },
1970
+ {
1971
+ "id": "tree.failed-url-on-clean-page",
1972
+ "op": "reply",
1973
+ "page": "error",
1974
+ "method": "Page.getFrameTree",
1975
+ "result": {
1976
+ "frameTree": {
1977
+ "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
1978
+ "childFrames": [
1979
+ {
1980
+ "frame": {
1981
+ "id": "child",
1982
+ "parentId": "top",
1983
+ "loaderId": "L2",
1984
+ "url": "chrome-error://chromewebdata/",
1985
+ "unreachableUrl": "https://vault.sliccy.ai/private",
1986
+ "previous": true
1987
+ }
1988
+ }
1989
+ ]
1990
+ }
1991
+ },
1992
+ "expect": {
1993
+ "result": {
1994
+ "frameTree": {
1995
+ "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
1996
+ "childFrames": [
1997
+ {
1998
+ "frame": {
1999
+ "id": "child",
2000
+ "parentId": "top",
2001
+ "loaderId": "L2",
2002
+ "url": "chrome-error://chromewebdata/",
2003
+ "unreachableUrl": "https://vault.sliccy.ai",
2004
+ "previous": true
2005
+ }
2006
+ }
2007
+ ]
2008
+ }
2009
+ }
2010
+ }
2011
+ },
2012
+ {
2013
+ "id": "tree.contexts-not-latched",
2014
+ "op": "reply",
2015
+ "page": "contexts",
2016
+ "method": "Page.getFrameTree",
2017
+ "result": {
2018
+ "frameTree": {
2019
+ "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
2020
+ "childFrames": [
2021
+ {
2022
+ "frame": {
2023
+ "id": "child",
2024
+ "parentId": "top",
2025
+ "loaderId": "L2",
2026
+ "url": "about:blank",
2027
+ "name": "retained"
2028
+ }
2029
+ }
2030
+ ]
2031
+ }
2032
+ },
2033
+ "expect": {
2034
+ "result": {
2035
+ "frameTree": {
2036
+ "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
2037
+ "childFrames": [
2038
+ {
2039
+ "frame": {
2040
+ "id": "child",
2041
+ "parentId": "top",
2042
+ "loaderId": "L2",
2043
+ "url": "about:blank",
2044
+ "name": "retained"
2045
+ }
2046
+ }
2047
+ ]
2048
+ }
2049
+ }
2050
+ }
2051
+ },
2052
+ {
2053
+ "id": "pixels.no-observation-clean",
2054
+ "op": "reply",
2055
+ "page": "plain",
2056
+ "method": "Page.captureScreenshot",
2057
+ "result": { "data": "ordinary" },
2058
+ "expect": { "result": { "data": "ordinary" } }
2059
+ },
2060
+ {
2061
+ "id": "pixels.transient-vault-between-clean-endpoints",
2062
+ "op": "reply",
2063
+ "page": "plain",
2064
+ "method": "Page.captureScreenshot",
2065
+ "result": { "data": "unreleasable" },
2066
+ "expect": { "action": "refuse", "reason": "reply.unprojectable" },
2067
+ "observed": { "revision": "before-attach", "mixed": true }
2068
+ },
2069
+ {
2070
+ "id": "pixels.nested-vaults",
2071
+ "op": "reply",
2072
+ "page": "nestedVaults",
2073
+ "method": "Page.captureScreenshot",
2074
+ "result": { "data": "raw" },
2075
+ "expect": {
2076
+ "result": {
2077
+ "rects": [
2078
+ { "x": 10, "y": 17, "width": 55, "height": 45 },
2079
+ { "x": 15, "y": 20, "width": 5, "height": 4 }
2080
+ ]
2081
+ }
2082
+ },
2083
+ "observed": { "mixed": true, "revision": "r1" }
2084
+ },
2085
+ {
2086
+ "id": "pixels.pdf-zero-box",
2087
+ "op": "reply",
2088
+ "page": "emptyBox",
2089
+ "method": "Page.printToPDF",
2090
+ "result": { "data": "pdf" },
2091
+ "expect": { "action": "refuse", "reason": "resource.protected" },
2092
+ "observed": { "mixed": true, "revision": "r1" }
2093
+ }
2094
+ ],
2095
+ "invalidPages": [
2096
+ { "id": "missing-id", "page": { "frames": [{}] }, "error": "missing or duplicate frame id" },
2097
+ {
2098
+ "id": "duplicate-id",
2099
+ "page": { "frames": [{ "id": "a" }, { "id": "a", "parentId": "p" }] },
2100
+ "error": "missing or duplicate frame id"
2101
+ },
2102
+ {
2103
+ "id": "ambiguous-root",
2104
+ "page": { "frames": [{ "id": "a" }, { "id": "b" }] },
2105
+ "error": "ambiguous page root"
2106
+ },
2107
+ {
2108
+ "id": "self-parent",
2109
+ "page": { "frames": [{ "id": "a", "parentId": "a" }] },
2110
+ "error": "cyclic frame parents"
2111
+ },
2112
+ {
2113
+ "id": "cycle",
2114
+ "page": {
2115
+ "frames": [
2116
+ { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
2117
+ { "id": "a", "parentId": "b" },
2118
+ { "id": "b", "parentId": "a" }
2119
+ ]
2120
+ },
2121
+ "error": "cyclic frame parents"
2122
+ }
2123
+ ]
2124
+ }