-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathprotocol.json
4256 lines (4256 loc) · 138 KB
/
protocol.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"version": {
"major": "1",
"minor": "2"
},
"domains": [
{
"domain": "Page",
"description": "Actions and events related to the inspected page belong to the page domain.",
"dependencies": [
"Debugger",
"DOM"
],
"types": [
{
"id": "ResourceType",
"type": "string",
"enum": [
"Document",
"Stylesheet",
"Image",
"Media",
"Font",
"Script",
"TextTrack",
"XHR",
"Fetch",
"EventSource",
"WebSocket",
"Manifest",
"Other"
],
"description": "Resource type as it was perceived by the rendering engine."
},
{
"id": "FrameId",
"type": "string",
"description": "Unique frame identifier."
},
{
"id": "Frame",
"type": "object",
"description": "Information about the Frame on the page.",
"properties": [
{
"name": "id",
"type": "string",
"description": "Frame unique identifier."
},
{
"name": "parentId",
"type": "string",
"optional": true,
"description": "Parent frame identifier."
},
{
"name": "loaderId",
"$ref": "Network.LoaderId",
"description": "Identifier of the loader associated with this frame."
},
{
"name": "name",
"type": "string",
"optional": true,
"description": "Frame's name as specified in the tag."
},
{
"name": "url",
"type": "string",
"description": "Frame document's URL."
},
{
"name": "securityOrigin",
"type": "string",
"description": "Frame document's security origin."
},
{
"name": "mimeType",
"type": "string",
"description": "Frame document's mimeType as determined by the browser."
}
]
}
],
"commands": [
{
"name": "enable",
"description": "Enables page domain notifications."
},
{
"name": "disable",
"description": "Disables page domain notifications."
},
{
"name": "reload",
"parameters": [
{
"name": "ignoreCache",
"type": "boolean",
"optional": true,
"description": "If true, browser cache is ignored (as if the user pressed Shift+refresh)."
},
{
"name": "scriptToEvaluateOnLoad",
"type": "string",
"optional": true,
"description": "If set, the script will be injected into all frames of the inspected page after reload."
}
],
"description": "Reloads given page optionally ignoring the cache."
},
{
"name": "navigate",
"parameters": [
{
"name": "url",
"type": "string",
"description": "URL to navigate the page to."
}
],
"returns": [
{
"name": "frameId",
"$ref": "FrameId",
"experimental": true,
"description": "Frame id that will be navigated."
}
],
"description": "Navigates current page to the given URL."
},
{
"name": "setGeolocationOverride",
"description": "Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable.",
"parameters": [
{
"name": "latitude",
"type": "number",
"optional": true,
"description": "Mock latitude"
},
{
"name": "longitude",
"type": "number",
"optional": true,
"description": "Mock longitude"
},
{
"name": "accuracy",
"type": "number",
"optional": true,
"description": "Mock accuracy"
}
],
"redirect": "Emulation"
},
{
"name": "clearGeolocationOverride",
"description": "Clears the overriden Geolocation Position and Error.",
"redirect": "Emulation"
},
{
"name": "handleJavaScriptDialog",
"description": "Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).",
"parameters": [
{
"name": "accept",
"type": "boolean",
"description": "Whether to accept or dismiss the dialog."
},
{
"name": "promptText",
"type": "string",
"optional": true,
"description": "The text to enter into the dialog prompt before accepting. Used only if this is a prompt dialog."
}
]
}
],
"events": [
{
"name": "domContentEventFired",
"parameters": [
{
"name": "timestamp",
"type": "number"
}
]
},
{
"name": "loadEventFired",
"parameters": [
{
"name": "timestamp",
"type": "number"
}
]
},
{
"name": "frameAttached",
"description": "Fired when frame has been attached to its parent.",
"parameters": [
{
"name": "frameId",
"$ref": "FrameId",
"description": "Id of the frame that has been attached."
},
{
"name": "parentFrameId",
"$ref": "FrameId",
"description": "Parent frame identifier."
}
]
},
{
"name": "frameNavigated",
"description": "Fired once navigation of the frame has completed. Frame is now associated with the new loader.",
"parameters": [
{
"name": "frame",
"$ref": "Frame",
"description": "Frame object."
}
]
},
{
"name": "frameDetached",
"description": "Fired when frame has been detached from its parent.",
"parameters": [
{
"name": "frameId",
"$ref": "FrameId",
"description": "Id of the frame that has been detached."
}
]
},
{
"name": "javascriptDialogOpening",
"description": "Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.",
"parameters": [
{
"name": "message",
"type": "string",
"description": "Message that will be displayed by the dialog."
},
{
"name": "type",
"$ref": "DialogType",
"description": "Dialog type."
}
]
},
{
"name": "javascriptDialogClosed",
"description": "Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been closed.",
"parameters": [
{
"name": "result",
"type": "boolean",
"description": "Whether dialog was confirmed."
}
]
},
{
"name": "interstitialShown",
"description": "Fired when interstitial page was shown"
},
{
"name": "interstitialHidden",
"description": "Fired when interstitial page was hidden"
},
{
"name": "navigationRequested",
"description": "Fired when a navigation is started if navigation throttles are enabled. The navigation will be deferred until processNavigation is called.",
"parameters": [
{
"name": "isInMainFrame",
"type": "boolean",
"description": "Whether the navigation is taking place in the main frame or in a subframe."
},
{
"name": "isRedirect",
"type": "boolean",
"description": "Whether the navigation has encountered a server redirect or not."
},
{
"name": "navigationId",
"type": "integer"
},
{
"name": "url",
"type": "string",
"description": "URL of requested navigation."
}
]
}
]
},
{
"domain": "Emulation",
"description": "This domain emulates different environments for the page.",
"types": [
{
"id": "ScreenOrientation",
"type": "object",
"description": "Screen orientation.",
"properties": [
{
"name": "type",
"type": "string",
"enum": [
"portraitPrimary",
"portraitSecondary",
"landscapePrimary",
"landscapeSecondary"
],
"description": "Orientation type."
},
{
"name": "angle",
"type": "integer",
"description": "Orientation angle."
}
]
}
],
"commands": [
{
"name": "setDeviceMetricsOverride",
"description": "Overrides the values of device screen dimensions (window.screen.width, window.screen.height, window.innerWidth, window.innerHeight, and \"device-width\"/\"device-height\"-related CSS media query results).",
"parameters": [
{
"name": "width",
"type": "integer",
"description": "Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override."
},
{
"name": "height",
"type": "integer",
"description": "Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override."
},
{
"name": "deviceScaleFactor",
"type": "number",
"description": "Overriding device scale factor value. 0 disables the override."
},
{
"name": "mobile",
"type": "boolean",
"description": "Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more."
},
{
"name": "fitWindow",
"type": "boolean",
"description": "Whether a view that exceeds the available browser window area should be scaled down to fit."
},
{
"name": "scale",
"type": "number",
"optional": true,
"experimental": true,
"description": "Scale to apply to resulting view image. Ignored in |fitWindow| mode."
},
{
"name": "offsetX",
"type": "number",
"optional": true,
"deprecated": true,
"experimental": true,
"description": "Not used."
},
{
"name": "offsetY",
"type": "number",
"optional": true,
"deprecated": true,
"experimental": true,
"description": "Not used."
},
{
"name": "screenWidth",
"type": "integer",
"optional": true,
"experimental": true,
"description": "Overriding screen width value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|."
},
{
"name": "screenHeight",
"type": "integer",
"optional": true,
"experimental": true,
"description": "Overriding screen height value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|."
},
{
"name": "positionX",
"type": "integer",
"optional": true,
"experimental": true,
"description": "Overriding view X position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|."
},
{
"name": "positionY",
"type": "integer",
"optional": true,
"experimental": true,
"description": "Overriding view Y position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|."
},
{
"name": "screenOrientation",
"$ref": "ScreenOrientation",
"optional": true,
"description": "Screen orientation override."
}
]
},
{
"name": "clearDeviceMetricsOverride",
"description": "Clears the overriden device metrics."
},
{
"name": "setTouchEmulationEnabled",
"parameters": [
{
"name": "enabled",
"type": "boolean",
"description": "Whether the touch event emulation should be enabled."
},
{
"name": "configuration",
"type": "string",
"enum": [
"mobile",
"desktop"
],
"optional": true,
"description": "Touch/gesture events configuration. Default: current platform."
}
],
"description": "Toggles mouse event-based touch event emulation."
},
{
"name": "setEmulatedMedia",
"parameters": [
{
"name": "media",
"type": "string",
"description": "Media type to emulate. Empty string disables the override."
}
],
"description": "Emulates the given media for CSS media queries."
}
],
"events": []
},
{
"domain": "Network",
"description": "Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers, bodies, timing, etc.",
"dependencies": [
"Runtime",
"Security"
],
"types": [
{
"id": "LoaderId",
"type": "string",
"description": "Unique loader identifier."
},
{
"id": "RequestId",
"type": "string",
"description": "Unique request identifier."
},
{
"id": "Timestamp",
"type": "number",
"description": "Number of seconds since epoch."
},
{
"id": "Headers",
"type": "object",
"description": "Request / response headers as keys / values of JSON object."
},
{
"id": "ConnectionType",
"type": "string",
"enum": [
"none",
"cellular2g",
"cellular3g",
"cellular4g",
"bluetooth",
"ethernet",
"wifi",
"wimax",
"other"
],
"description": "Loading priority of a resource request."
},
{
"id": "CookieSameSite",
"type": "string",
"enum": [
"Strict",
"Lax"
],
"description": "Represents the cookie's 'SameSite' status: https://tools.ietf.org/html/draft-west-first-party-cookies"
},
{
"id": "ResourceTiming",
"type": "object",
"description": "Timing information for the request.",
"properties": [
{
"name": "requestTime",
"type": "number",
"description": "Timing's requestTime is a baseline in seconds, while the other numbers are ticks in milliseconds relatively to this requestTime."
},
{
"name": "proxyStart",
"type": "number",
"description": "Started resolving proxy."
},
{
"name": "proxyEnd",
"type": "number",
"description": "Finished resolving proxy."
},
{
"name": "dnsStart",
"type": "number",
"description": "Started DNS address resolve."
},
{
"name": "dnsEnd",
"type": "number",
"description": "Finished DNS address resolve."
},
{
"name": "connectStart",
"type": "number",
"description": "Started connecting to the remote host."
},
{
"name": "connectEnd",
"type": "number",
"description": "Connected to the remote host."
},
{
"name": "sslStart",
"type": "number",
"description": "Started SSL handshake."
},
{
"name": "sslEnd",
"type": "number",
"description": "Finished SSL handshake."
},
{
"name": "workerStart",
"type": "number",
"description": "Started running ServiceWorker.",
"experimental": true
},
{
"name": "workerReady",
"type": "number",
"description": "Finished Starting ServiceWorker.",
"experimental": true
},
{
"name": "sendStart",
"type": "number",
"description": "Started sending request."
},
{
"name": "sendEnd",
"type": "number",
"description": "Finished sending request."
},
{
"name": "pushStart",
"type": "number",
"description": "Time the server started pushing request.",
"experimental": true
},
{
"name": "pushEnd",
"type": "number",
"description": "Time the server finished pushing request.",
"experimental": true
},
{
"name": "receiveHeadersEnd",
"type": "number",
"description": "Finished receiving response headers."
}
]
},
{
"id": "ResourcePriority",
"type": "string",
"enum": [
"VeryLow",
"Low",
"Medium",
"High",
"VeryHigh"
],
"description": "Loading priority of a resource request."
},
{
"id": "Request",
"type": "object",
"description": "HTTP request data.",
"properties": [
{
"name": "url",
"type": "string",
"description": "Request URL."
},
{
"name": "method",
"type": "string",
"description": "HTTP request method."
},
{
"name": "headers",
"$ref": "Headers",
"description": "HTTP request headers."
},
{
"name": "postData",
"type": "string",
"optional": true,
"description": "HTTP POST request data."
},
{
"name": "mixedContentType",
"optional": true,
"type": "string",
"enum": [
"blockable",
"optionally-blockable",
"none"
],
"description": "The mixed content status of the request, as defined in http://www.w3.org/TR/mixed-content/"
},
{
"name": "initialPriority",
"$ref": "ResourcePriority",
"description": "Priority of the resource request at the time request is sent."
}
]
},
{
"id": "SignedCertificateTimestamp",
"type": "object",
"description": "Details of a signed certificate timestamp (SCT).",
"properties": [
{
"name": "status",
"type": "string",
"description": "Validation status."
},
{
"name": "origin",
"type": "string",
"description": "Origin."
},
{
"name": "logDescription",
"type": "string",
"description": "Log name / description."
},
{
"name": "logId",
"type": "string",
"description": "Log ID."
},
{
"name": "timestamp",
"$ref": "Timestamp",
"description": "Issuance date."
},
{
"name": "hashAlgorithm",
"type": "string",
"description": "Hash algorithm."
},
{
"name": "signatureAlgorithm",
"type": "string",
"description": "Signature algorithm."
},
{
"name": "signatureData",
"type": "string",
"description": "Signature data."
}
]
},
{
"id": "SecurityDetails",
"type": "object",
"description": "Security details about a request.",
"properties": [
{
"name": "protocol",
"type": "string",
"description": "Protocol name (e.g. \"TLS 1.2\" or \"QUIC\")."
},
{
"name": "keyExchange",
"type": "string",
"description": "Key Exchange used by the connection, or the empty string if not applicable."
},
{
"name": "keyExchangeGroup",
"type": "string",
"optional": true,
"description": "(EC)DH group used by the connection, if applicable."
},
{
"name": "cipher",
"type": "string",
"description": "Cipher name."
},
{
"name": "mac",
"type": "string",
"optional": true,
"description": "TLS MAC. Note that AEAD ciphers do not have separate MACs."
},
{
"name": "certificateId",
"$ref": "Security.CertificateId",
"description": "Certificate ID value."
},
{
"name": "subjectName",
"type": "string",
"description": "Certificate subject name."
},
{
"name": "sanList",
"type": "array",
"items": {
"type": "string"
},
"description": "Subject Alternative Name (SAN) DNS names and IP addresses."
},
{
"name": "issuer",
"type": "string",
"description": "Name of the issuing CA."
},
{
"name": "validFrom",
"$ref": "Timestamp",
"description": "Certificate valid from date."
},
{
"name": "validTo",
"$ref": "Timestamp",
"description": "Certificate valid to (expiration) date"
},
{
"name": "signedCertificateTimestampList",
"type": "array",
"items": {
"$ref": "SignedCertificateTimestamp"
},
"description": "List of signed certificate timestamps (SCTs)."
}
]
},
{
"id": "Response",
"type": "object",
"description": "HTTP response data.",
"properties": [
{
"name": "url",
"type": "string",
"description": "Response URL. This URL can be different from CachedResource.url in case of redirect."
},
{
"name": "status",
"type": "number",
"description": "HTTP response status code."
},
{
"name": "statusText",
"type": "string",
"description": "HTTP response status text."
},
{
"name": "headers",
"$ref": "Headers",
"description": "HTTP response headers."
},
{
"name": "headersText",
"type": "string",
"optional": true,
"description": "HTTP response headers text."
},
{
"name": "mimeType",
"type": "string",
"description": "Resource mimeType as determined by the browser."
},
{
"name": "requestHeaders",
"$ref": "Headers",
"optional": true,
"description": "Refined HTTP request headers that were actually transmitted over the network."
},
{
"name": "requestHeadersText",
"type": "string",
"optional": true,
"description": "HTTP request headers text."
},
{
"name": "connectionReused",
"type": "boolean",
"description": "Specifies whether physical connection was actually reused for this request."
},
{
"name": "connectionId",
"type": "number",
"description": "Physical connection id that was actually used for this request."
},
{
"name": "remoteIPAddress",
"type": "string",
"optional": true,
"experimental": true,
"description": "Remote IP address."
},
{
"name": "remotePort",
"type": "integer",
"optional": true,
"experimental": true,
"description": "Remote port."
},
{
"name": "fromDiskCache",
"type": "boolean",
"optional": true,
"description": "Specifies that the request was served from the disk cache."
},
{
"name": "fromServiceWorker",
"type": "boolean",
"optional": true,
"description": "Specifies that the request was served from the ServiceWorker."
},
{
"name": "encodedDataLength",
"type": "number",
"optional": false,
"description": "Total number of bytes received for this request so far."
},
{
"name": "timing",
"$ref": "ResourceTiming",
"optional": true,
"description": "Timing information for the given request."
},
{
"name": "protocol",
"type": "string",
"optional": true,
"description": "Protocol used to fetch this request."
},
{
"name": "securityState",
"$ref": "Security.SecurityState",
"description": "Security state of the request resource."
},
{
"name": "securityDetails",
"$ref": "SecurityDetails",
"optional": true,
"description": "Security details for the request."
}
]
},
{
"id": "CachedResource",
"type": "object",
"description": "Information about the cached resource.",
"properties": [
{
"name": "url",
"type": "string",
"description": "Resource URL. This is the url of the original network request."
},
{
"name": "type",
"$ref": "Page.ResourceType",
"description": "Type of this resource."
},
{
"name": "response",
"$ref": "Response",
"optional": true,
"description": "Cached response data."
},
{
"name": "bodySize",
"type": "number",
"description": "Cached response body size."
}
]
},
{
"id": "Initiator",
"type": "object",
"description": "Information about the request initiator.",
"properties": [
{
"name": "type",
"type": "string",
"enum": [
"parser",
"script",
"other"
],
"description": "Type of this initiator."
},
{
"name": "stack",
"$ref": "Runtime.StackTrace",
"optional": true,
"description": "Initiator JavaScript stack trace, set for Script only."
},
{
"name": "url",
"type": "string",
"optional": true,
"description": "Initiator URL, set for Parser type only."
},
{
"name": "lineNumber",
"type": "number",
"optional": true,
"description": "Initiator line number, set for Parser type only (0-based)."
}
]
}
],
"commands": [
{
"name": "enable",
"description": "Enables network tracking, network events will now be delivered to the client.",
"parameters": [
{
"name": "maxTotalBufferSize",
"type": "integer",
"optional": true,
"experimental": true,
"description": "Buffer size in bytes to use when preserving network payloads (XHRs, etc)."
},
{
"name": "maxResourceBufferSize",
"type": "integer",
"optional": true,
"experimental": true,
"description": "Per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc)."
}
]
},
{
"name": "disable",
"description": "Disables network tracking, prevents network events from being sent to the client."
},
{
"name": "setUserAgentOverride",
"description": "Allows overriding user agent with the given string.",
"parameters": [
{
"name": "userAgent",
"type": "string",
"description": "User agent to use."
}
]
},
{
"name": "setExtraHTTPHeaders",
"description": "Specifies whether to always send extra HTTP headers with the requests from this page.",
"parameters": [
{
"name": "headers",
"$ref": "Headers",
"description": "Map with extra HTTP headers."
}
]