-
-
Notifications
You must be signed in to change notification settings - Fork 352
/
audits.go
1315 lines (941 loc) · 61.1 KB
/
audits.go
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
// This file is generated by "./lib/proto/generate"
package proto
/*
Audits
Audits domain allows investigation of page violations and possible improvements.
*/
// AuditsAffectedCookie Information about a cookie that is affected by an inspector issue.
type AuditsAffectedCookie struct {
// Name The following three properties uniquely identify a cookie
Name string `json:"name"`
// Path ...
Path string `json:"path"`
// Domain ...
Domain string `json:"domain"`
}
// AuditsAffectedRequest Information about a request that is affected by an inspector issue.
type AuditsAffectedRequest struct {
// RequestID The unique request id.
RequestID NetworkRequestID `json:"requestId"`
// URL (optional) ...
URL string `json:"url,omitempty"`
}
// AuditsAffectedFrame Information about the frame affected by an inspector issue.
type AuditsAffectedFrame struct {
// FrameID ...
FrameID PageFrameID `json:"frameId"`
}
// AuditsCookieExclusionReason ...
type AuditsCookieExclusionReason string
const (
// AuditsCookieExclusionReasonExcludeSameSiteUnspecifiedTreatedAsLax enum const.
AuditsCookieExclusionReasonExcludeSameSiteUnspecifiedTreatedAsLax AuditsCookieExclusionReason = "ExcludeSameSiteUnspecifiedTreatedAsLax"
// AuditsCookieExclusionReasonExcludeSameSiteNoneInsecure enum const.
AuditsCookieExclusionReasonExcludeSameSiteNoneInsecure AuditsCookieExclusionReason = "ExcludeSameSiteNoneInsecure"
// AuditsCookieExclusionReasonExcludeSameSiteLax enum const.
AuditsCookieExclusionReasonExcludeSameSiteLax AuditsCookieExclusionReason = "ExcludeSameSiteLax"
// AuditsCookieExclusionReasonExcludeSameSiteStrict enum const.
AuditsCookieExclusionReasonExcludeSameSiteStrict AuditsCookieExclusionReason = "ExcludeSameSiteStrict"
// AuditsCookieExclusionReasonExcludeInvalidSameParty enum const.
AuditsCookieExclusionReasonExcludeInvalidSameParty AuditsCookieExclusionReason = "ExcludeInvalidSameParty"
// AuditsCookieExclusionReasonExcludeSamePartyCrossPartyContext enum const.
AuditsCookieExclusionReasonExcludeSamePartyCrossPartyContext AuditsCookieExclusionReason = "ExcludeSamePartyCrossPartyContext"
// AuditsCookieExclusionReasonExcludeDomainNonASCII enum const.
AuditsCookieExclusionReasonExcludeDomainNonASCII AuditsCookieExclusionReason = "ExcludeDomainNonASCII"
// AuditsCookieExclusionReasonExcludeThirdPartyCookieBlockedInFirstPartySet enum const.
AuditsCookieExclusionReasonExcludeThirdPartyCookieBlockedInFirstPartySet AuditsCookieExclusionReason = "ExcludeThirdPartyCookieBlockedInFirstPartySet"
// AuditsCookieExclusionReasonExcludeThirdPartyPhaseout enum const.
AuditsCookieExclusionReasonExcludeThirdPartyPhaseout AuditsCookieExclusionReason = "ExcludeThirdPartyPhaseout"
)
// AuditsCookieWarningReason ...
type AuditsCookieWarningReason string
const (
// AuditsCookieWarningReasonWarnSameSiteUnspecifiedCrossSiteContext enum const.
AuditsCookieWarningReasonWarnSameSiteUnspecifiedCrossSiteContext AuditsCookieWarningReason = "WarnSameSiteUnspecifiedCrossSiteContext"
// AuditsCookieWarningReasonWarnSameSiteNoneInsecure enum const.
AuditsCookieWarningReasonWarnSameSiteNoneInsecure AuditsCookieWarningReason = "WarnSameSiteNoneInsecure"
// AuditsCookieWarningReasonWarnSameSiteUnspecifiedLaxAllowUnsafe enum const.
AuditsCookieWarningReasonWarnSameSiteUnspecifiedLaxAllowUnsafe AuditsCookieWarningReason = "WarnSameSiteUnspecifiedLaxAllowUnsafe"
// AuditsCookieWarningReasonWarnSameSiteStrictLaxDowngradeStrict enum const.
AuditsCookieWarningReasonWarnSameSiteStrictLaxDowngradeStrict AuditsCookieWarningReason = "WarnSameSiteStrictLaxDowngradeStrict"
// AuditsCookieWarningReasonWarnSameSiteStrictCrossDowngradeStrict enum const.
AuditsCookieWarningReasonWarnSameSiteStrictCrossDowngradeStrict AuditsCookieWarningReason = "WarnSameSiteStrictCrossDowngradeStrict"
// AuditsCookieWarningReasonWarnSameSiteStrictCrossDowngradeLax enum const.
AuditsCookieWarningReasonWarnSameSiteStrictCrossDowngradeLax AuditsCookieWarningReason = "WarnSameSiteStrictCrossDowngradeLax"
// AuditsCookieWarningReasonWarnSameSiteLaxCrossDowngradeStrict enum const.
AuditsCookieWarningReasonWarnSameSiteLaxCrossDowngradeStrict AuditsCookieWarningReason = "WarnSameSiteLaxCrossDowngradeStrict"
// AuditsCookieWarningReasonWarnSameSiteLaxCrossDowngradeLax enum const.
AuditsCookieWarningReasonWarnSameSiteLaxCrossDowngradeLax AuditsCookieWarningReason = "WarnSameSiteLaxCrossDowngradeLax"
// AuditsCookieWarningReasonWarnAttributeValueExceedsMaxSize enum const.
AuditsCookieWarningReasonWarnAttributeValueExceedsMaxSize AuditsCookieWarningReason = "WarnAttributeValueExceedsMaxSize"
// AuditsCookieWarningReasonWarnDomainNonASCII enum const.
AuditsCookieWarningReasonWarnDomainNonASCII AuditsCookieWarningReason = "WarnDomainNonASCII"
// AuditsCookieWarningReasonWarnThirdPartyPhaseout enum const.
AuditsCookieWarningReasonWarnThirdPartyPhaseout AuditsCookieWarningReason = "WarnThirdPartyPhaseout"
// AuditsCookieWarningReasonWarnCrossSiteRedirectDowngradeChangesInclusion enum const.
AuditsCookieWarningReasonWarnCrossSiteRedirectDowngradeChangesInclusion AuditsCookieWarningReason = "WarnCrossSiteRedirectDowngradeChangesInclusion"
)
// AuditsCookieOperation ...
type AuditsCookieOperation string
const (
// AuditsCookieOperationSetCookie enum const.
AuditsCookieOperationSetCookie AuditsCookieOperation = "SetCookie"
// AuditsCookieOperationReadCookie enum const.
AuditsCookieOperationReadCookie AuditsCookieOperation = "ReadCookie"
)
// AuditsCookieIssueDetails This information is currently necessary, as the front-end has a difficult
// time finding a specific cookie. With this, we can convey specific error
// information without the cookie.
type AuditsCookieIssueDetails struct {
// Cookie (optional) If AffectedCookie is not set then rawCookieLine contains the raw
// Set-Cookie header string. This hints at a problem where the
// cookie line is syntactically or semantically malformed in a way
// that no valid cookie could be created.
Cookie *AuditsAffectedCookie `json:"cookie,omitempty"`
// RawCookieLine (optional) ...
RawCookieLine string `json:"rawCookieLine,omitempty"`
// CookieWarningReasons ...
CookieWarningReasons []AuditsCookieWarningReason `json:"cookieWarningReasons"`
// CookieExclusionReasons ...
CookieExclusionReasons []AuditsCookieExclusionReason `json:"cookieExclusionReasons"`
// Operation Optionally identifies the site-for-cookies and the cookie url, which
// may be used by the front-end as additional context.
Operation AuditsCookieOperation `json:"operation"`
// SiteForCookies (optional) ...
SiteForCookies string `json:"siteForCookies,omitempty"`
// CookieURL (optional) ...
CookieURL string `json:"cookieUrl,omitempty"`
// Request (optional) ...
Request *AuditsAffectedRequest `json:"request,omitempty"`
}
// AuditsMixedContentResolutionStatus ...
type AuditsMixedContentResolutionStatus string
const (
// AuditsMixedContentResolutionStatusMixedContentBlocked enum const.
AuditsMixedContentResolutionStatusMixedContentBlocked AuditsMixedContentResolutionStatus = "MixedContentBlocked"
// AuditsMixedContentResolutionStatusMixedContentAutomaticallyUpgraded enum const.
AuditsMixedContentResolutionStatusMixedContentAutomaticallyUpgraded AuditsMixedContentResolutionStatus = "MixedContentAutomaticallyUpgraded"
// AuditsMixedContentResolutionStatusMixedContentWarning enum const.
AuditsMixedContentResolutionStatusMixedContentWarning AuditsMixedContentResolutionStatus = "MixedContentWarning"
)
// AuditsMixedContentResourceType ...
type AuditsMixedContentResourceType string
const (
// AuditsMixedContentResourceTypeAttributionSrc enum const.
AuditsMixedContentResourceTypeAttributionSrc AuditsMixedContentResourceType = "AttributionSrc"
// AuditsMixedContentResourceTypeAudio enum const.
AuditsMixedContentResourceTypeAudio AuditsMixedContentResourceType = "Audio"
// AuditsMixedContentResourceTypeBeacon enum const.
AuditsMixedContentResourceTypeBeacon AuditsMixedContentResourceType = "Beacon"
// AuditsMixedContentResourceTypeCSPReport enum const.
AuditsMixedContentResourceTypeCSPReport AuditsMixedContentResourceType = "CSPReport"
// AuditsMixedContentResourceTypeDownload enum const.
AuditsMixedContentResourceTypeDownload AuditsMixedContentResourceType = "Download"
// AuditsMixedContentResourceTypeEventSource enum const.
AuditsMixedContentResourceTypeEventSource AuditsMixedContentResourceType = "EventSource"
// AuditsMixedContentResourceTypeFavicon enum const.
AuditsMixedContentResourceTypeFavicon AuditsMixedContentResourceType = "Favicon"
// AuditsMixedContentResourceTypeFont enum const.
AuditsMixedContentResourceTypeFont AuditsMixedContentResourceType = "Font"
// AuditsMixedContentResourceTypeForm enum const.
AuditsMixedContentResourceTypeForm AuditsMixedContentResourceType = "Form"
// AuditsMixedContentResourceTypeFrame enum const.
AuditsMixedContentResourceTypeFrame AuditsMixedContentResourceType = "Frame"
// AuditsMixedContentResourceTypeImage enum const.
AuditsMixedContentResourceTypeImage AuditsMixedContentResourceType = "Image"
// AuditsMixedContentResourceTypeImport enum const.
AuditsMixedContentResourceTypeImport AuditsMixedContentResourceType = "Import"
// AuditsMixedContentResourceTypeJSON enum const.
AuditsMixedContentResourceTypeJSON AuditsMixedContentResourceType = "JSON"
// AuditsMixedContentResourceTypeManifest enum const.
AuditsMixedContentResourceTypeManifest AuditsMixedContentResourceType = "Manifest"
// AuditsMixedContentResourceTypePing enum const.
AuditsMixedContentResourceTypePing AuditsMixedContentResourceType = "Ping"
// AuditsMixedContentResourceTypePluginData enum const.
AuditsMixedContentResourceTypePluginData AuditsMixedContentResourceType = "PluginData"
// AuditsMixedContentResourceTypePluginResource enum const.
AuditsMixedContentResourceTypePluginResource AuditsMixedContentResourceType = "PluginResource"
// AuditsMixedContentResourceTypePrefetch enum const.
AuditsMixedContentResourceTypePrefetch AuditsMixedContentResourceType = "Prefetch"
// AuditsMixedContentResourceTypeResource enum const.
AuditsMixedContentResourceTypeResource AuditsMixedContentResourceType = "Resource"
// AuditsMixedContentResourceTypeScript enum const.
AuditsMixedContentResourceTypeScript AuditsMixedContentResourceType = "Script"
// AuditsMixedContentResourceTypeServiceWorker enum const.
AuditsMixedContentResourceTypeServiceWorker AuditsMixedContentResourceType = "ServiceWorker"
// AuditsMixedContentResourceTypeSharedWorker enum const.
AuditsMixedContentResourceTypeSharedWorker AuditsMixedContentResourceType = "SharedWorker"
// AuditsMixedContentResourceTypeSpeculationRules enum const.
AuditsMixedContentResourceTypeSpeculationRules AuditsMixedContentResourceType = "SpeculationRules"
// AuditsMixedContentResourceTypeStylesheet enum const.
AuditsMixedContentResourceTypeStylesheet AuditsMixedContentResourceType = "Stylesheet"
// AuditsMixedContentResourceTypeTrack enum const.
AuditsMixedContentResourceTypeTrack AuditsMixedContentResourceType = "Track"
// AuditsMixedContentResourceTypeVideo enum const.
AuditsMixedContentResourceTypeVideo AuditsMixedContentResourceType = "Video"
// AuditsMixedContentResourceTypeWorker enum const.
AuditsMixedContentResourceTypeWorker AuditsMixedContentResourceType = "Worker"
// AuditsMixedContentResourceTypeXMLHTTPRequest enum const.
AuditsMixedContentResourceTypeXMLHTTPRequest AuditsMixedContentResourceType = "XMLHttpRequest"
// AuditsMixedContentResourceTypeXSLT enum const.
AuditsMixedContentResourceTypeXSLT AuditsMixedContentResourceType = "XSLT"
)
// AuditsMixedContentIssueDetails ...
type AuditsMixedContentIssueDetails struct {
// ResourceType (optional) The type of resource causing the mixed content issue (css, js, iframe,
// form,...). Marked as optional because it is mapped to from
// blink::mojom::RequestContextType, which will be replaced
// by network::mojom::RequestDestination
ResourceType AuditsMixedContentResourceType `json:"resourceType,omitempty"`
// ResolutionStatus The way the mixed content issue is being resolved.
ResolutionStatus AuditsMixedContentResolutionStatus `json:"resolutionStatus"`
// InsecureURL The unsafe http url causing the mixed content issue.
InsecureURL string `json:"insecureURL"`
// MainResourceURL The url responsible for the call to an unsafe url.
MainResourceURL string `json:"mainResourceURL"`
// Request (optional) The mixed content request.
// Does not always exist (e.g. for unsafe form submission urls).
Request *AuditsAffectedRequest `json:"request,omitempty"`
// Frame (optional) Optional because not every mixed content issue is necessarily linked to a frame.
Frame *AuditsAffectedFrame `json:"frame,omitempty"`
}
// AuditsBlockedByResponseReason Enum indicating the reason a response has been blocked. These reasons are
// refinements of the net error BLOCKED_BY_RESPONSE.
type AuditsBlockedByResponseReason string
const (
// AuditsBlockedByResponseReasonCoepFrameResourceNeedsCoepHeader enum const.
AuditsBlockedByResponseReasonCoepFrameResourceNeedsCoepHeader AuditsBlockedByResponseReason = "CoepFrameResourceNeedsCoepHeader"
// AuditsBlockedByResponseReasonCoopSandboxedIFrameCannotNavigateToCoopPage enum const.
AuditsBlockedByResponseReasonCoopSandboxedIFrameCannotNavigateToCoopPage AuditsBlockedByResponseReason = "CoopSandboxedIFrameCannotNavigateToCoopPage"
// AuditsBlockedByResponseReasonCorpNotSameOrigin enum const.
AuditsBlockedByResponseReasonCorpNotSameOrigin AuditsBlockedByResponseReason = "CorpNotSameOrigin"
// AuditsBlockedByResponseReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoep enum const.
AuditsBlockedByResponseReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoep AuditsBlockedByResponseReason = "CorpNotSameOriginAfterDefaultedToSameOriginByCoep"
// AuditsBlockedByResponseReasonCorpNotSameSite enum const.
AuditsBlockedByResponseReasonCorpNotSameSite AuditsBlockedByResponseReason = "CorpNotSameSite"
)
// AuditsBlockedByResponseIssueDetails Details for a request that has been blocked with the BLOCKED_BY_RESPONSE
// code. Currently only used for COEP/COOP, but may be extended to include
// some CSP errors in the future.
type AuditsBlockedByResponseIssueDetails struct {
// Request ...
Request *AuditsAffectedRequest `json:"request"`
// ParentFrame (optional) ...
ParentFrame *AuditsAffectedFrame `json:"parentFrame,omitempty"`
// BlockedFrame (optional) ...
BlockedFrame *AuditsAffectedFrame `json:"blockedFrame,omitempty"`
// Reason ...
Reason AuditsBlockedByResponseReason `json:"reason"`
}
// AuditsHeavyAdResolutionStatus ...
type AuditsHeavyAdResolutionStatus string
const (
// AuditsHeavyAdResolutionStatusHeavyAdBlocked enum const.
AuditsHeavyAdResolutionStatusHeavyAdBlocked AuditsHeavyAdResolutionStatus = "HeavyAdBlocked"
// AuditsHeavyAdResolutionStatusHeavyAdWarning enum const.
AuditsHeavyAdResolutionStatusHeavyAdWarning AuditsHeavyAdResolutionStatus = "HeavyAdWarning"
)
// AuditsHeavyAdReason ...
type AuditsHeavyAdReason string
const (
// AuditsHeavyAdReasonNetworkTotalLimit enum const.
AuditsHeavyAdReasonNetworkTotalLimit AuditsHeavyAdReason = "NetworkTotalLimit"
// AuditsHeavyAdReasonCPUTotalLimit enum const.
AuditsHeavyAdReasonCPUTotalLimit AuditsHeavyAdReason = "CpuTotalLimit"
// AuditsHeavyAdReasonCPUPeakLimit enum const.
AuditsHeavyAdReasonCPUPeakLimit AuditsHeavyAdReason = "CpuPeakLimit"
)
// AuditsHeavyAdIssueDetails ...
type AuditsHeavyAdIssueDetails struct {
// Resolution The resolution status, either blocking the content or warning.
Resolution AuditsHeavyAdResolutionStatus `json:"resolution"`
// Reason The reason the ad was blocked, total network or cpu or peak cpu.
Reason AuditsHeavyAdReason `json:"reason"`
// Frame The frame that was blocked.
Frame *AuditsAffectedFrame `json:"frame"`
}
// AuditsContentSecurityPolicyViolationType ...
type AuditsContentSecurityPolicyViolationType string
const (
// AuditsContentSecurityPolicyViolationTypeKInlineViolation enum const.
AuditsContentSecurityPolicyViolationTypeKInlineViolation AuditsContentSecurityPolicyViolationType = "kInlineViolation"
// AuditsContentSecurityPolicyViolationTypeKEvalViolation enum const.
AuditsContentSecurityPolicyViolationTypeKEvalViolation AuditsContentSecurityPolicyViolationType = "kEvalViolation"
// AuditsContentSecurityPolicyViolationTypeKURLViolation enum const.
AuditsContentSecurityPolicyViolationTypeKURLViolation AuditsContentSecurityPolicyViolationType = "kURLViolation"
// AuditsContentSecurityPolicyViolationTypeKTrustedTypesSinkViolation enum const.
AuditsContentSecurityPolicyViolationTypeKTrustedTypesSinkViolation AuditsContentSecurityPolicyViolationType = "kTrustedTypesSinkViolation"
// AuditsContentSecurityPolicyViolationTypeKTrustedTypesPolicyViolation enum const.
AuditsContentSecurityPolicyViolationTypeKTrustedTypesPolicyViolation AuditsContentSecurityPolicyViolationType = "kTrustedTypesPolicyViolation"
// AuditsContentSecurityPolicyViolationTypeKWasmEvalViolation enum const.
AuditsContentSecurityPolicyViolationTypeKWasmEvalViolation AuditsContentSecurityPolicyViolationType = "kWasmEvalViolation"
)
// AuditsSourceCodeLocation ...
type AuditsSourceCodeLocation struct {
// ScriptID (optional) ...
ScriptID RuntimeScriptID `json:"scriptId,omitempty"`
// URL ...
URL string `json:"url"`
// LineNumber ...
LineNumber int `json:"lineNumber"`
// ColumnNumber ...
ColumnNumber int `json:"columnNumber"`
}
// AuditsContentSecurityPolicyIssueDetails ...
type AuditsContentSecurityPolicyIssueDetails struct {
// BlockedURL (optional) The url not included in allowed sources.
BlockedURL string `json:"blockedURL,omitempty"`
// ViolatedDirective Specific directive that is violated, causing the CSP issue.
ViolatedDirective string `json:"violatedDirective"`
// IsReportOnly ...
IsReportOnly bool `json:"isReportOnly"`
// ContentSecurityPolicyViolationType ...
ContentSecurityPolicyViolationType AuditsContentSecurityPolicyViolationType `json:"contentSecurityPolicyViolationType"`
// FrameAncestor (optional) ...
FrameAncestor *AuditsAffectedFrame `json:"frameAncestor,omitempty"`
// SourceCodeLocation (optional) ...
SourceCodeLocation *AuditsSourceCodeLocation `json:"sourceCodeLocation,omitempty"`
// ViolatingNodeID (optional) ...
ViolatingNodeID DOMBackendNodeID `json:"violatingNodeId,omitempty"`
}
// AuditsSharedArrayBufferIssueType ...
type AuditsSharedArrayBufferIssueType string
const (
// AuditsSharedArrayBufferIssueTypeTransferIssue enum const.
AuditsSharedArrayBufferIssueTypeTransferIssue AuditsSharedArrayBufferIssueType = "TransferIssue"
// AuditsSharedArrayBufferIssueTypeCreationIssue enum const.
AuditsSharedArrayBufferIssueTypeCreationIssue AuditsSharedArrayBufferIssueType = "CreationIssue"
)
// AuditsSharedArrayBufferIssueDetails Details for a issue arising from an SAB being instantiated in, or
// transferred to a context that is not cross-origin isolated.
type AuditsSharedArrayBufferIssueDetails struct {
// SourceCodeLocation ...
SourceCodeLocation *AuditsSourceCodeLocation `json:"sourceCodeLocation"`
// IsWarning ...
IsWarning bool `json:"isWarning"`
// Type ...
Type AuditsSharedArrayBufferIssueType `json:"type"`
}
// AuditsLowTextContrastIssueDetails ...
type AuditsLowTextContrastIssueDetails struct {
// ViolatingNodeID ...
ViolatingNodeID DOMBackendNodeID `json:"violatingNodeId"`
// ViolatingNodeSelector ...
ViolatingNodeSelector string `json:"violatingNodeSelector"`
// ContrastRatio ...
ContrastRatio float64 `json:"contrastRatio"`
// ThresholdAA ...
ThresholdAA float64 `json:"thresholdAA"`
// ThresholdAAA ...
ThresholdAAA float64 `json:"thresholdAAA"`
// FontSize ...
FontSize string `json:"fontSize"`
// FontWeight ...
FontWeight string `json:"fontWeight"`
}
// AuditsCorsIssueDetails Details for a CORS related issue, e.g. a warning or error related to
// CORS RFC1918 enforcement.
type AuditsCorsIssueDetails struct {
// CorsErrorStatus ...
CorsErrorStatus *NetworkCorsErrorStatus `json:"corsErrorStatus"`
// IsWarning ...
IsWarning bool `json:"isWarning"`
// Request ...
Request *AuditsAffectedRequest `json:"request"`
// Location (optional) ...
Location *AuditsSourceCodeLocation `json:"location,omitempty"`
// InitiatorOrigin (optional) ...
InitiatorOrigin string `json:"initiatorOrigin,omitempty"`
// ResourceIPAddressSpace (optional) ...
ResourceIPAddressSpace NetworkIPAddressSpace `json:"resourceIPAddressSpace,omitempty"`
// ClientSecurityState (optional) ...
ClientSecurityState *NetworkClientSecurityState `json:"clientSecurityState,omitempty"`
}
// AuditsAttributionReportingIssueType ...
type AuditsAttributionReportingIssueType string
const (
// AuditsAttributionReportingIssueTypePermissionPolicyDisabled enum const.
AuditsAttributionReportingIssueTypePermissionPolicyDisabled AuditsAttributionReportingIssueType = "PermissionPolicyDisabled"
// AuditsAttributionReportingIssueTypeUntrustworthyReportingOrigin enum const.
AuditsAttributionReportingIssueTypeUntrustworthyReportingOrigin AuditsAttributionReportingIssueType = "UntrustworthyReportingOrigin"
// AuditsAttributionReportingIssueTypeInsecureContext enum const.
AuditsAttributionReportingIssueTypeInsecureContext AuditsAttributionReportingIssueType = "InsecureContext"
// AuditsAttributionReportingIssueTypeInvalidHeader enum const.
AuditsAttributionReportingIssueTypeInvalidHeader AuditsAttributionReportingIssueType = "InvalidHeader"
// AuditsAttributionReportingIssueTypeInvalidRegisterTriggerHeader enum const.
AuditsAttributionReportingIssueTypeInvalidRegisterTriggerHeader AuditsAttributionReportingIssueType = "InvalidRegisterTriggerHeader"
// AuditsAttributionReportingIssueTypeSourceAndTriggerHeaders enum const.
AuditsAttributionReportingIssueTypeSourceAndTriggerHeaders AuditsAttributionReportingIssueType = "SourceAndTriggerHeaders"
// AuditsAttributionReportingIssueTypeSourceIgnored enum const.
AuditsAttributionReportingIssueTypeSourceIgnored AuditsAttributionReportingIssueType = "SourceIgnored"
// AuditsAttributionReportingIssueTypeTriggerIgnored enum const.
AuditsAttributionReportingIssueTypeTriggerIgnored AuditsAttributionReportingIssueType = "TriggerIgnored"
// AuditsAttributionReportingIssueTypeOsSourceIgnored enum const.
AuditsAttributionReportingIssueTypeOsSourceIgnored AuditsAttributionReportingIssueType = "OsSourceIgnored"
// AuditsAttributionReportingIssueTypeOsTriggerIgnored enum const.
AuditsAttributionReportingIssueTypeOsTriggerIgnored AuditsAttributionReportingIssueType = "OsTriggerIgnored"
// AuditsAttributionReportingIssueTypeInvalidRegisterOsSourceHeader enum const.
AuditsAttributionReportingIssueTypeInvalidRegisterOsSourceHeader AuditsAttributionReportingIssueType = "InvalidRegisterOsSourceHeader"
// AuditsAttributionReportingIssueTypeInvalidRegisterOsTriggerHeader enum const.
AuditsAttributionReportingIssueTypeInvalidRegisterOsTriggerHeader AuditsAttributionReportingIssueType = "InvalidRegisterOsTriggerHeader"
// AuditsAttributionReportingIssueTypeWebAndOsHeaders enum const.
AuditsAttributionReportingIssueTypeWebAndOsHeaders AuditsAttributionReportingIssueType = "WebAndOsHeaders"
// AuditsAttributionReportingIssueTypeNoWebOrOsSupport enum const.
AuditsAttributionReportingIssueTypeNoWebOrOsSupport AuditsAttributionReportingIssueType = "NoWebOrOsSupport"
// AuditsAttributionReportingIssueTypeNavigationRegistrationWithoutTransientUserActivation enum const.
AuditsAttributionReportingIssueTypeNavigationRegistrationWithoutTransientUserActivation AuditsAttributionReportingIssueType = "NavigationRegistrationWithoutTransientUserActivation"
// AuditsAttributionReportingIssueTypeInvalidInfoHeader enum const.
AuditsAttributionReportingIssueTypeInvalidInfoHeader AuditsAttributionReportingIssueType = "InvalidInfoHeader"
// AuditsAttributionReportingIssueTypeNoRegisterSourceHeader enum const.
AuditsAttributionReportingIssueTypeNoRegisterSourceHeader AuditsAttributionReportingIssueType = "NoRegisterSourceHeader"
// AuditsAttributionReportingIssueTypeNoRegisterTriggerHeader enum const.
AuditsAttributionReportingIssueTypeNoRegisterTriggerHeader AuditsAttributionReportingIssueType = "NoRegisterTriggerHeader"
// AuditsAttributionReportingIssueTypeNoRegisterOsSourceHeader enum const.
AuditsAttributionReportingIssueTypeNoRegisterOsSourceHeader AuditsAttributionReportingIssueType = "NoRegisterOsSourceHeader"
// AuditsAttributionReportingIssueTypeNoRegisterOsTriggerHeader enum const.
AuditsAttributionReportingIssueTypeNoRegisterOsTriggerHeader AuditsAttributionReportingIssueType = "NoRegisterOsTriggerHeader"
)
// AuditsSharedDictionaryError ...
type AuditsSharedDictionaryError string
const (
// AuditsSharedDictionaryErrorUseErrorCrossOriginNoCorsRequest enum const.
AuditsSharedDictionaryErrorUseErrorCrossOriginNoCorsRequest AuditsSharedDictionaryError = "UseErrorCrossOriginNoCorsRequest"
// AuditsSharedDictionaryErrorUseErrorDictionaryLoadFailure enum const.
AuditsSharedDictionaryErrorUseErrorDictionaryLoadFailure AuditsSharedDictionaryError = "UseErrorDictionaryLoadFailure"
// AuditsSharedDictionaryErrorUseErrorMatchingDictionaryNotUsed enum const.
AuditsSharedDictionaryErrorUseErrorMatchingDictionaryNotUsed AuditsSharedDictionaryError = "UseErrorMatchingDictionaryNotUsed"
// AuditsSharedDictionaryErrorUseErrorUnexpectedContentDictionaryHeader enum const.
AuditsSharedDictionaryErrorUseErrorUnexpectedContentDictionaryHeader AuditsSharedDictionaryError = "UseErrorUnexpectedContentDictionaryHeader"
// AuditsSharedDictionaryErrorWriteErrorCossOriginNoCorsRequest enum const.
AuditsSharedDictionaryErrorWriteErrorCossOriginNoCorsRequest AuditsSharedDictionaryError = "WriteErrorCossOriginNoCorsRequest"
// AuditsSharedDictionaryErrorWriteErrorDisallowedBySettings enum const.
AuditsSharedDictionaryErrorWriteErrorDisallowedBySettings AuditsSharedDictionaryError = "WriteErrorDisallowedBySettings"
// AuditsSharedDictionaryErrorWriteErrorExpiredResponse enum const.
AuditsSharedDictionaryErrorWriteErrorExpiredResponse AuditsSharedDictionaryError = "WriteErrorExpiredResponse"
// AuditsSharedDictionaryErrorWriteErrorFeatureDisabled enum const.
AuditsSharedDictionaryErrorWriteErrorFeatureDisabled AuditsSharedDictionaryError = "WriteErrorFeatureDisabled"
// AuditsSharedDictionaryErrorWriteErrorInsufficientResources enum const.
AuditsSharedDictionaryErrorWriteErrorInsufficientResources AuditsSharedDictionaryError = "WriteErrorInsufficientResources"
// AuditsSharedDictionaryErrorWriteErrorInvalidMatchField enum const.
AuditsSharedDictionaryErrorWriteErrorInvalidMatchField AuditsSharedDictionaryError = "WriteErrorInvalidMatchField"
// AuditsSharedDictionaryErrorWriteErrorInvalidStructuredHeader enum const.
AuditsSharedDictionaryErrorWriteErrorInvalidStructuredHeader AuditsSharedDictionaryError = "WriteErrorInvalidStructuredHeader"
// AuditsSharedDictionaryErrorWriteErrorNavigationRequest enum const.
AuditsSharedDictionaryErrorWriteErrorNavigationRequest AuditsSharedDictionaryError = "WriteErrorNavigationRequest"
// AuditsSharedDictionaryErrorWriteErrorNoMatchField enum const.
AuditsSharedDictionaryErrorWriteErrorNoMatchField AuditsSharedDictionaryError = "WriteErrorNoMatchField"
// AuditsSharedDictionaryErrorWriteErrorNonListMatchDestField enum const.
AuditsSharedDictionaryErrorWriteErrorNonListMatchDestField AuditsSharedDictionaryError = "WriteErrorNonListMatchDestField"
// AuditsSharedDictionaryErrorWriteErrorNonSecureContext enum const.
AuditsSharedDictionaryErrorWriteErrorNonSecureContext AuditsSharedDictionaryError = "WriteErrorNonSecureContext"
// AuditsSharedDictionaryErrorWriteErrorNonStringIDField enum const.
AuditsSharedDictionaryErrorWriteErrorNonStringIDField AuditsSharedDictionaryError = "WriteErrorNonStringIdField"
// AuditsSharedDictionaryErrorWriteErrorNonStringInMatchDestList enum const.
AuditsSharedDictionaryErrorWriteErrorNonStringInMatchDestList AuditsSharedDictionaryError = "WriteErrorNonStringInMatchDestList"
// AuditsSharedDictionaryErrorWriteErrorNonStringMatchField enum const.
AuditsSharedDictionaryErrorWriteErrorNonStringMatchField AuditsSharedDictionaryError = "WriteErrorNonStringMatchField"
// AuditsSharedDictionaryErrorWriteErrorNonTokenTypeField enum const.
AuditsSharedDictionaryErrorWriteErrorNonTokenTypeField AuditsSharedDictionaryError = "WriteErrorNonTokenTypeField"
// AuditsSharedDictionaryErrorWriteErrorRequestAborted enum const.
AuditsSharedDictionaryErrorWriteErrorRequestAborted AuditsSharedDictionaryError = "WriteErrorRequestAborted"
// AuditsSharedDictionaryErrorWriteErrorShuttingDown enum const.
AuditsSharedDictionaryErrorWriteErrorShuttingDown AuditsSharedDictionaryError = "WriteErrorShuttingDown"
// AuditsSharedDictionaryErrorWriteErrorTooLongIDField enum const.
AuditsSharedDictionaryErrorWriteErrorTooLongIDField AuditsSharedDictionaryError = "WriteErrorTooLongIdField"
// AuditsSharedDictionaryErrorWriteErrorUnsupportedType enum const.
AuditsSharedDictionaryErrorWriteErrorUnsupportedType AuditsSharedDictionaryError = "WriteErrorUnsupportedType"
)
// AuditsAttributionReportingIssueDetails Details for issues around "Attribution Reporting API" usage.
// Explainer: https://github.com/WICG/attribution-reporting-api
type AuditsAttributionReportingIssueDetails struct {
// ViolationType ...
ViolationType AuditsAttributionReportingIssueType `json:"violationType"`
// Request (optional) ...
Request *AuditsAffectedRequest `json:"request,omitempty"`
// ViolatingNodeID (optional) ...
ViolatingNodeID DOMBackendNodeID `json:"violatingNodeId,omitempty"`
// InvalidParameter (optional) ...
InvalidParameter string `json:"invalidParameter,omitempty"`
}
// AuditsQuirksModeIssueDetails Details for issues about documents in Quirks Mode
// or Limited Quirks Mode that affects page layouting.
type AuditsQuirksModeIssueDetails struct {
// IsLimitedQuirksMode If false, it means the document's mode is "quirks"
// instead of "limited-quirks".
IsLimitedQuirksMode bool `json:"isLimitedQuirksMode"`
// DocumentNodeID ...
DocumentNodeID DOMBackendNodeID `json:"documentNodeId"`
// URL ...
URL string `json:"url"`
// FrameID ...
FrameID PageFrameID `json:"frameId"`
// LoaderID ...
LoaderID NetworkLoaderID `json:"loaderId"`
}
// AuditsNavigatorUserAgentIssueDetails (deprecated) ...
type AuditsNavigatorUserAgentIssueDetails struct {
// URL ...
URL string `json:"url"`
// Location (optional) ...
Location *AuditsSourceCodeLocation `json:"location,omitempty"`
}
// AuditsSharedDictionaryIssueDetails ...
type AuditsSharedDictionaryIssueDetails struct {
// SharedDictionaryError ...
SharedDictionaryError AuditsSharedDictionaryError `json:"sharedDictionaryError"`
// Request ...
Request *AuditsAffectedRequest `json:"request"`
}
// AuditsGenericIssueErrorType ...
type AuditsGenericIssueErrorType string
const (
// AuditsGenericIssueErrorTypeCrossOriginPortalPostMessageError enum const.
AuditsGenericIssueErrorTypeCrossOriginPortalPostMessageError AuditsGenericIssueErrorType = "CrossOriginPortalPostMessageError"
// AuditsGenericIssueErrorTypeFormLabelForNameError enum const.
AuditsGenericIssueErrorTypeFormLabelForNameError AuditsGenericIssueErrorType = "FormLabelForNameError"
// AuditsGenericIssueErrorTypeFormDuplicateIDForInputError enum const.
AuditsGenericIssueErrorTypeFormDuplicateIDForInputError AuditsGenericIssueErrorType = "FormDuplicateIdForInputError"
// AuditsGenericIssueErrorTypeFormInputWithNoLabelError enum const.
AuditsGenericIssueErrorTypeFormInputWithNoLabelError AuditsGenericIssueErrorType = "FormInputWithNoLabelError"
// AuditsGenericIssueErrorTypeFormAutocompleteAttributeEmptyError enum const.
AuditsGenericIssueErrorTypeFormAutocompleteAttributeEmptyError AuditsGenericIssueErrorType = "FormAutocompleteAttributeEmptyError"
// AuditsGenericIssueErrorTypeFormEmptyIDAndNameAttributesForInputError enum const.
AuditsGenericIssueErrorTypeFormEmptyIDAndNameAttributesForInputError AuditsGenericIssueErrorType = "FormEmptyIdAndNameAttributesForInputError"
// AuditsGenericIssueErrorTypeFormAriaLabelledByToNonExistingID enum const.
AuditsGenericIssueErrorTypeFormAriaLabelledByToNonExistingID AuditsGenericIssueErrorType = "FormAriaLabelledByToNonExistingId"
// AuditsGenericIssueErrorTypeFormInputAssignedAutocompleteValueToIDOrNameAttributeError enum const.
AuditsGenericIssueErrorTypeFormInputAssignedAutocompleteValueToIDOrNameAttributeError AuditsGenericIssueErrorType = "FormInputAssignedAutocompleteValueToIdOrNameAttributeError"
// AuditsGenericIssueErrorTypeFormLabelHasNeitherForNorNestedInput enum const.
AuditsGenericIssueErrorTypeFormLabelHasNeitherForNorNestedInput AuditsGenericIssueErrorType = "FormLabelHasNeitherForNorNestedInput"
// AuditsGenericIssueErrorTypeFormLabelForMatchesNonExistingIDError enum const.
AuditsGenericIssueErrorTypeFormLabelForMatchesNonExistingIDError AuditsGenericIssueErrorType = "FormLabelForMatchesNonExistingIdError"
// AuditsGenericIssueErrorTypeFormInputHasWrongButWellIntendedAutocompleteValueError enum const.
AuditsGenericIssueErrorTypeFormInputHasWrongButWellIntendedAutocompleteValueError AuditsGenericIssueErrorType = "FormInputHasWrongButWellIntendedAutocompleteValueError"
// AuditsGenericIssueErrorTypeResponseWasBlockedByORB enum const.
AuditsGenericIssueErrorTypeResponseWasBlockedByORB AuditsGenericIssueErrorType = "ResponseWasBlockedByORB"
)
// AuditsGenericIssueDetails Depending on the concrete errorType, different properties are set.
type AuditsGenericIssueDetails struct {
// ErrorType Issues with the same errorType are aggregated in the frontend.
ErrorType AuditsGenericIssueErrorType `json:"errorType"`
// FrameID (optional) ...
FrameID PageFrameID `json:"frameId,omitempty"`
// ViolatingNodeID (optional) ...
ViolatingNodeID DOMBackendNodeID `json:"violatingNodeId,omitempty"`
// ViolatingNodeAttribute (optional) ...
ViolatingNodeAttribute string `json:"violatingNodeAttribute,omitempty"`
// Request (optional) ...
Request *AuditsAffectedRequest `json:"request,omitempty"`
}
// AuditsDeprecationIssueDetails This issue tracks information needed to print a deprecation message.
// https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/frame/third_party/blink/renderer/core/frame/deprecation/README.md
type AuditsDeprecationIssueDetails struct {
// AffectedFrame (optional) ...
AffectedFrame *AuditsAffectedFrame `json:"affectedFrame,omitempty"`
// SourceCodeLocation ...
SourceCodeLocation *AuditsSourceCodeLocation `json:"sourceCodeLocation"`
// Type One of the deprecation names from third_party/blink/renderer/core/frame/deprecation/deprecation.json5
Type string `json:"type"`
}
// AuditsBounceTrackingIssueDetails This issue warns about sites in the redirect chain of a finished navigation
// that may be flagged as trackers and have their state cleared if they don't
// receive a user interaction. Note that in this context 'site' means eTLD+1.
// For example, if the URL `https://example.test:80/bounce` was in the
// redirect chain, the site reported would be `example.test`.
type AuditsBounceTrackingIssueDetails struct {
// TrackingSites ...
TrackingSites []string `json:"trackingSites"`
}
// AuditsCookieDeprecationMetadataIssueDetails This issue warns about third-party sites that are accessing cookies on the
// current page, and have been permitted due to having a global metadata grant.
// Note that in this context 'site' means eTLD+1. For example, if the URL
// `https://example.test:80/web_page` was accessing cookies, the site reported
// would be `example.test`.
type AuditsCookieDeprecationMetadataIssueDetails struct {
// AllowedSites ...
AllowedSites []string `json:"allowedSites"`
}
// AuditsClientHintIssueReason ...
type AuditsClientHintIssueReason string
const (
// AuditsClientHintIssueReasonMetaTagAllowListInvalidOrigin enum const.
AuditsClientHintIssueReasonMetaTagAllowListInvalidOrigin AuditsClientHintIssueReason = "MetaTagAllowListInvalidOrigin"
// AuditsClientHintIssueReasonMetaTagModifiedHTML enum const.
AuditsClientHintIssueReasonMetaTagModifiedHTML AuditsClientHintIssueReason = "MetaTagModifiedHTML"
)
// AuditsFederatedAuthRequestIssueDetails ...
type AuditsFederatedAuthRequestIssueDetails struct {
// FederatedAuthRequestIssueReason ...
FederatedAuthRequestIssueReason AuditsFederatedAuthRequestIssueReason `json:"federatedAuthRequestIssueReason"`
}
// AuditsFederatedAuthRequestIssueReason Represents the failure reason when a federated authentication reason fails.
// Should be updated alongside RequestIdTokenStatus in
// third_party/blink/public/mojom/devtools/inspector_issue.mojom to include
// all cases except for success.
type AuditsFederatedAuthRequestIssueReason string
const (
// AuditsFederatedAuthRequestIssueReasonShouldEmbargo enum const.
AuditsFederatedAuthRequestIssueReasonShouldEmbargo AuditsFederatedAuthRequestIssueReason = "ShouldEmbargo"
// AuditsFederatedAuthRequestIssueReasonTooManyRequests enum const.
AuditsFederatedAuthRequestIssueReasonTooManyRequests AuditsFederatedAuthRequestIssueReason = "TooManyRequests"
// AuditsFederatedAuthRequestIssueReasonWellKnownHTTPNotFound enum const.
AuditsFederatedAuthRequestIssueReasonWellKnownHTTPNotFound AuditsFederatedAuthRequestIssueReason = "WellKnownHttpNotFound"
// AuditsFederatedAuthRequestIssueReasonWellKnownNoResponse enum const.
AuditsFederatedAuthRequestIssueReasonWellKnownNoResponse AuditsFederatedAuthRequestIssueReason = "WellKnownNoResponse"
// AuditsFederatedAuthRequestIssueReasonWellKnownInvalidResponse enum const.
AuditsFederatedAuthRequestIssueReasonWellKnownInvalidResponse AuditsFederatedAuthRequestIssueReason = "WellKnownInvalidResponse"
// AuditsFederatedAuthRequestIssueReasonWellKnownListEmpty enum const.
AuditsFederatedAuthRequestIssueReasonWellKnownListEmpty AuditsFederatedAuthRequestIssueReason = "WellKnownListEmpty"
// AuditsFederatedAuthRequestIssueReasonWellKnownInvalidContentType enum const.
AuditsFederatedAuthRequestIssueReasonWellKnownInvalidContentType AuditsFederatedAuthRequestIssueReason = "WellKnownInvalidContentType"
// AuditsFederatedAuthRequestIssueReasonConfigNotInWellKnown enum const.
AuditsFederatedAuthRequestIssueReasonConfigNotInWellKnown AuditsFederatedAuthRequestIssueReason = "ConfigNotInWellKnown"
// AuditsFederatedAuthRequestIssueReasonWellKnownTooBig enum const.
AuditsFederatedAuthRequestIssueReasonWellKnownTooBig AuditsFederatedAuthRequestIssueReason = "WellKnownTooBig"
// AuditsFederatedAuthRequestIssueReasonConfigHTTPNotFound enum const.
AuditsFederatedAuthRequestIssueReasonConfigHTTPNotFound AuditsFederatedAuthRequestIssueReason = "ConfigHttpNotFound"
// AuditsFederatedAuthRequestIssueReasonConfigNoResponse enum const.
AuditsFederatedAuthRequestIssueReasonConfigNoResponse AuditsFederatedAuthRequestIssueReason = "ConfigNoResponse"
// AuditsFederatedAuthRequestIssueReasonConfigInvalidResponse enum const.
AuditsFederatedAuthRequestIssueReasonConfigInvalidResponse AuditsFederatedAuthRequestIssueReason = "ConfigInvalidResponse"
// AuditsFederatedAuthRequestIssueReasonConfigInvalidContentType enum const.
AuditsFederatedAuthRequestIssueReasonConfigInvalidContentType AuditsFederatedAuthRequestIssueReason = "ConfigInvalidContentType"
// AuditsFederatedAuthRequestIssueReasonClientMetadataHTTPNotFound enum const.
AuditsFederatedAuthRequestIssueReasonClientMetadataHTTPNotFound AuditsFederatedAuthRequestIssueReason = "ClientMetadataHttpNotFound"
// AuditsFederatedAuthRequestIssueReasonClientMetadataNoResponse enum const.
AuditsFederatedAuthRequestIssueReasonClientMetadataNoResponse AuditsFederatedAuthRequestIssueReason = "ClientMetadataNoResponse"
// AuditsFederatedAuthRequestIssueReasonClientMetadataInvalidResponse enum const.
AuditsFederatedAuthRequestIssueReasonClientMetadataInvalidResponse AuditsFederatedAuthRequestIssueReason = "ClientMetadataInvalidResponse"
// AuditsFederatedAuthRequestIssueReasonClientMetadataInvalidContentType enum const.
AuditsFederatedAuthRequestIssueReasonClientMetadataInvalidContentType AuditsFederatedAuthRequestIssueReason = "ClientMetadataInvalidContentType"
// AuditsFederatedAuthRequestIssueReasonDisabledInSettings enum const.
AuditsFederatedAuthRequestIssueReasonDisabledInSettings AuditsFederatedAuthRequestIssueReason = "DisabledInSettings"
// AuditsFederatedAuthRequestIssueReasonErrorFetchingSignin enum const.
AuditsFederatedAuthRequestIssueReasonErrorFetchingSignin AuditsFederatedAuthRequestIssueReason = "ErrorFetchingSignin"
// AuditsFederatedAuthRequestIssueReasonInvalidSigninResponse enum const.
AuditsFederatedAuthRequestIssueReasonInvalidSigninResponse AuditsFederatedAuthRequestIssueReason = "InvalidSigninResponse"
// AuditsFederatedAuthRequestIssueReasonAccountsHTTPNotFound enum const.
AuditsFederatedAuthRequestIssueReasonAccountsHTTPNotFound AuditsFederatedAuthRequestIssueReason = "AccountsHttpNotFound"
// AuditsFederatedAuthRequestIssueReasonAccountsNoResponse enum const.
AuditsFederatedAuthRequestIssueReasonAccountsNoResponse AuditsFederatedAuthRequestIssueReason = "AccountsNoResponse"
// AuditsFederatedAuthRequestIssueReasonAccountsInvalidResponse enum const.
AuditsFederatedAuthRequestIssueReasonAccountsInvalidResponse AuditsFederatedAuthRequestIssueReason = "AccountsInvalidResponse"
// AuditsFederatedAuthRequestIssueReasonAccountsListEmpty enum const.
AuditsFederatedAuthRequestIssueReasonAccountsListEmpty AuditsFederatedAuthRequestIssueReason = "AccountsListEmpty"
// AuditsFederatedAuthRequestIssueReasonAccountsInvalidContentType enum const.
AuditsFederatedAuthRequestIssueReasonAccountsInvalidContentType AuditsFederatedAuthRequestIssueReason = "AccountsInvalidContentType"
// AuditsFederatedAuthRequestIssueReasonIDTokenHTTPNotFound enum const.
AuditsFederatedAuthRequestIssueReasonIDTokenHTTPNotFound AuditsFederatedAuthRequestIssueReason = "IdTokenHttpNotFound"
// AuditsFederatedAuthRequestIssueReasonIDTokenNoResponse enum const.
AuditsFederatedAuthRequestIssueReasonIDTokenNoResponse AuditsFederatedAuthRequestIssueReason = "IdTokenNoResponse"
// AuditsFederatedAuthRequestIssueReasonIDTokenInvalidResponse enum const.
AuditsFederatedAuthRequestIssueReasonIDTokenInvalidResponse AuditsFederatedAuthRequestIssueReason = "IdTokenInvalidResponse"
// AuditsFederatedAuthRequestIssueReasonIDTokenIdpErrorResponse enum const.
AuditsFederatedAuthRequestIssueReasonIDTokenIdpErrorResponse AuditsFederatedAuthRequestIssueReason = "IdTokenIdpErrorResponse"
// AuditsFederatedAuthRequestIssueReasonIDTokenCrossSiteIdpErrorResponse enum const.
AuditsFederatedAuthRequestIssueReasonIDTokenCrossSiteIdpErrorResponse AuditsFederatedAuthRequestIssueReason = "IdTokenCrossSiteIdpErrorResponse"
// AuditsFederatedAuthRequestIssueReasonIDTokenInvalidRequest enum const.
AuditsFederatedAuthRequestIssueReasonIDTokenInvalidRequest AuditsFederatedAuthRequestIssueReason = "IdTokenInvalidRequest"
// AuditsFederatedAuthRequestIssueReasonIDTokenInvalidContentType enum const.
AuditsFederatedAuthRequestIssueReasonIDTokenInvalidContentType AuditsFederatedAuthRequestIssueReason = "IdTokenInvalidContentType"
// AuditsFederatedAuthRequestIssueReasonErrorIDToken enum const.
AuditsFederatedAuthRequestIssueReasonErrorIDToken AuditsFederatedAuthRequestIssueReason = "ErrorIdToken"
// AuditsFederatedAuthRequestIssueReasonCanceled enum const.
AuditsFederatedAuthRequestIssueReasonCanceled AuditsFederatedAuthRequestIssueReason = "Canceled"
// AuditsFederatedAuthRequestIssueReasonRpPageNotVisible enum const.
AuditsFederatedAuthRequestIssueReasonRpPageNotVisible AuditsFederatedAuthRequestIssueReason = "RpPageNotVisible"
// AuditsFederatedAuthRequestIssueReasonSilentMediationFailure enum const.
AuditsFederatedAuthRequestIssueReasonSilentMediationFailure AuditsFederatedAuthRequestIssueReason = "SilentMediationFailure"
// AuditsFederatedAuthRequestIssueReasonThirdPartyCookiesBlocked enum const.
AuditsFederatedAuthRequestIssueReasonThirdPartyCookiesBlocked AuditsFederatedAuthRequestIssueReason = "ThirdPartyCookiesBlocked"
// AuditsFederatedAuthRequestIssueReasonNotSignedInWithIdp enum const.
AuditsFederatedAuthRequestIssueReasonNotSignedInWithIdp AuditsFederatedAuthRequestIssueReason = "NotSignedInWithIdp"
// AuditsFederatedAuthRequestIssueReasonMissingTransientUserActivation enum const.
AuditsFederatedAuthRequestIssueReasonMissingTransientUserActivation AuditsFederatedAuthRequestIssueReason = "MissingTransientUserActivation"
// AuditsFederatedAuthRequestIssueReasonReplacedByButtonMode enum const.
AuditsFederatedAuthRequestIssueReasonReplacedByButtonMode AuditsFederatedAuthRequestIssueReason = "ReplacedByButtonMode"
)
// AuditsFederatedAuthUserInfoRequestIssueDetails ...
type AuditsFederatedAuthUserInfoRequestIssueDetails struct {
// FederatedAuthUserInfoRequestIssueReason ...
FederatedAuthUserInfoRequestIssueReason AuditsFederatedAuthUserInfoRequestIssueReason `json:"federatedAuthUserInfoRequestIssueReason"`
}
// AuditsFederatedAuthUserInfoRequestIssueReason Represents the failure reason when a getUserInfo() call fails.
// Should be updated alongside FederatedAuthUserInfoRequestResult in
// third_party/blink/public/mojom/devtools/inspector_issue.mojom.
type AuditsFederatedAuthUserInfoRequestIssueReason string
const (
// AuditsFederatedAuthUserInfoRequestIssueReasonNotSameOrigin enum const.
AuditsFederatedAuthUserInfoRequestIssueReasonNotSameOrigin AuditsFederatedAuthUserInfoRequestIssueReason = "NotSameOrigin"
// AuditsFederatedAuthUserInfoRequestIssueReasonNotIframe enum const.
AuditsFederatedAuthUserInfoRequestIssueReasonNotIframe AuditsFederatedAuthUserInfoRequestIssueReason = "NotIframe"
// AuditsFederatedAuthUserInfoRequestIssueReasonNotPotentiallyTrustworthy enum const.
AuditsFederatedAuthUserInfoRequestIssueReasonNotPotentiallyTrustworthy AuditsFederatedAuthUserInfoRequestIssueReason = "NotPotentiallyTrustworthy"
// AuditsFederatedAuthUserInfoRequestIssueReasonNoAPIPermission enum const.
AuditsFederatedAuthUserInfoRequestIssueReasonNoAPIPermission AuditsFederatedAuthUserInfoRequestIssueReason = "NoApiPermission"
// AuditsFederatedAuthUserInfoRequestIssueReasonNotSignedInWithIdp enum const.
AuditsFederatedAuthUserInfoRequestIssueReasonNotSignedInWithIdp AuditsFederatedAuthUserInfoRequestIssueReason = "NotSignedInWithIdp"
// AuditsFederatedAuthUserInfoRequestIssueReasonNoAccountSharingPermission enum const.
AuditsFederatedAuthUserInfoRequestIssueReasonNoAccountSharingPermission AuditsFederatedAuthUserInfoRequestIssueReason = "NoAccountSharingPermission"
// AuditsFederatedAuthUserInfoRequestIssueReasonInvalidConfigOrWellKnown enum const.
AuditsFederatedAuthUserInfoRequestIssueReasonInvalidConfigOrWellKnown AuditsFederatedAuthUserInfoRequestIssueReason = "InvalidConfigOrWellKnown"
// AuditsFederatedAuthUserInfoRequestIssueReasonInvalidAccountsResponse enum const.
AuditsFederatedAuthUserInfoRequestIssueReasonInvalidAccountsResponse AuditsFederatedAuthUserInfoRequestIssueReason = "InvalidAccountsResponse"
// AuditsFederatedAuthUserInfoRequestIssueReasonNoReturningUserFromFetchedAccounts enum const.
AuditsFederatedAuthUserInfoRequestIssueReasonNoReturningUserFromFetchedAccounts AuditsFederatedAuthUserInfoRequestIssueReason = "NoReturningUserFromFetchedAccounts"
)
// AuditsClientHintIssueDetails This issue tracks client hints related issues. It's used to deprecate old
// features, encourage the use of new ones, and provide general guidance.
type AuditsClientHintIssueDetails struct {
// SourceCodeLocation ...
SourceCodeLocation *AuditsSourceCodeLocation `json:"sourceCodeLocation"`
// ClientHintIssueReason ...
ClientHintIssueReason AuditsClientHintIssueReason `json:"clientHintIssueReason"`
}
// AuditsFailedRequestInfo ...
type AuditsFailedRequestInfo struct {
// URL The URL that failed to load.
URL string `json:"url"`
// FailureMessage The failure message for the failed request.
FailureMessage string `json:"failureMessage"`
// RequestID (optional) ...
RequestID NetworkRequestID `json:"requestId,omitempty"`
}
// AuditsStyleSheetLoadingIssueReason ...
type AuditsStyleSheetLoadingIssueReason string
const (
// AuditsStyleSheetLoadingIssueReasonLateImportRule enum const.
AuditsStyleSheetLoadingIssueReasonLateImportRule AuditsStyleSheetLoadingIssueReason = "LateImportRule"
// AuditsStyleSheetLoadingIssueReasonRequestFailed enum const.
AuditsStyleSheetLoadingIssueReasonRequestFailed AuditsStyleSheetLoadingIssueReason = "RequestFailed"
)