forked from go-rod/rod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
audits.go
1164 lines (811 loc) · 51.5 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"
)
// 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"
)
// 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"
// 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"
// 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"`
}
// AuditsTwaQualityEnforcementViolationType ...
type AuditsTwaQualityEnforcementViolationType string
const (
// AuditsTwaQualityEnforcementViolationTypeKHTTPError enum const
AuditsTwaQualityEnforcementViolationTypeKHTTPError AuditsTwaQualityEnforcementViolationType = "kHttpError"
// AuditsTwaQualityEnforcementViolationTypeKUnavailableOffline enum const
AuditsTwaQualityEnforcementViolationTypeKUnavailableOffline AuditsTwaQualityEnforcementViolationType = "kUnavailableOffline"
// AuditsTwaQualityEnforcementViolationTypeKDigitalAssetLinks enum const
AuditsTwaQualityEnforcementViolationTypeKDigitalAssetLinks AuditsTwaQualityEnforcementViolationType = "kDigitalAssetLinks"
)
// AuditsTrustedWebActivityIssueDetails ...
type AuditsTrustedWebActivityIssueDetails struct {
// URL The url that triggers the violation.
URL string `json:"url"`
// ViolationType ...
ViolationType AuditsTwaQualityEnforcementViolationType `json:"violationType"`
// HTTPStatusCode (optional) ...
HTTPStatusCode *int `json:"httpStatusCode,omitempty"`
// PackageName (optional) The package name of the Trusted Web Activity client app. This field is
// only used when violation type is kDigitalAssetLinks.
PackageName string `json:"packageName,omitempty"`
// Signature (optional) The signature of the Trusted Web Activity client app. This field is only
// used when violation type is kDigitalAssetLinks.
Signature string `json:"signature,omitempty"`
}
// 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"
// AuditsAttributionReportingIssueTypePermissionPolicyNotDelegated enum const
AuditsAttributionReportingIssueTypePermissionPolicyNotDelegated AuditsAttributionReportingIssueType = "PermissionPolicyNotDelegated"
// AuditsAttributionReportingIssueTypeUntrustworthyReportingOrigin enum const
AuditsAttributionReportingIssueTypeUntrustworthyReportingOrigin AuditsAttributionReportingIssueType = "UntrustworthyReportingOrigin"
// AuditsAttributionReportingIssueTypeInsecureContext enum const
AuditsAttributionReportingIssueTypeInsecureContext AuditsAttributionReportingIssueType = "InsecureContext"
// AuditsAttributionReportingIssueTypeInvalidHeader enum const
AuditsAttributionReportingIssueTypeInvalidHeader AuditsAttributionReportingIssueType = "InvalidHeader"
// AuditsAttributionReportingIssueTypeInvalidRegisterTriggerHeader enum const
AuditsAttributionReportingIssueTypeInvalidRegisterTriggerHeader AuditsAttributionReportingIssueType = "InvalidRegisterTriggerHeader"
// AuditsAttributionReportingIssueTypeInvalidEligibleHeader enum const
AuditsAttributionReportingIssueTypeInvalidEligibleHeader AuditsAttributionReportingIssueType = "InvalidEligibleHeader"
// AuditsAttributionReportingIssueTypeTooManyConcurrentRequests enum const
AuditsAttributionReportingIssueTypeTooManyConcurrentRequests AuditsAttributionReportingIssueType = "TooManyConcurrentRequests"
// AuditsAttributionReportingIssueTypeSourceAndTriggerHeaders enum const
AuditsAttributionReportingIssueTypeSourceAndTriggerHeaders AuditsAttributionReportingIssueType = "SourceAndTriggerHeaders"
// AuditsAttributionReportingIssueTypeSourceIgnored enum const
AuditsAttributionReportingIssueTypeSourceIgnored AuditsAttributionReportingIssueType = "SourceIgnored"
// AuditsAttributionReportingIssueTypeTriggerIgnored enum const
AuditsAttributionReportingIssueTypeTriggerIgnored AuditsAttributionReportingIssueType = "TriggerIgnored"
)
// 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 ...
type AuditsNavigatorUserAgentIssueDetails struct {
// URL ...
URL string `json:"url"`
// Location (optional) ...
Location *AuditsSourceCodeLocation `json:"location,omitempty"`
}
// AuditsGenericIssueErrorType ...
type AuditsGenericIssueErrorType string
const (
// AuditsGenericIssueErrorTypeCrossOriginPortalPostMessageError enum const
AuditsGenericIssueErrorTypeCrossOriginPortalPostMessageError AuditsGenericIssueErrorType = "CrossOriginPortalPostMessageError"
)
// 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"`
}
// AuditsDeprecationIssueType ...
type AuditsDeprecationIssueType string
const (
// AuditsDeprecationIssueTypeAuthorizationCoveredByWildcard enum const
AuditsDeprecationIssueTypeAuthorizationCoveredByWildcard AuditsDeprecationIssueType = "AuthorizationCoveredByWildcard"
// AuditsDeprecationIssueTypeCanRequestURLHTTPContainingNewline enum const
AuditsDeprecationIssueTypeCanRequestURLHTTPContainingNewline AuditsDeprecationIssueType = "CanRequestURLHTTPContainingNewline"
// AuditsDeprecationIssueTypeChromeLoadTimesConnectionInfo enum const
AuditsDeprecationIssueTypeChromeLoadTimesConnectionInfo AuditsDeprecationIssueType = "ChromeLoadTimesConnectionInfo"
// AuditsDeprecationIssueTypeChromeLoadTimesFirstPaintAfterLoadTime enum const
AuditsDeprecationIssueTypeChromeLoadTimesFirstPaintAfterLoadTime AuditsDeprecationIssueType = "ChromeLoadTimesFirstPaintAfterLoadTime"
// AuditsDeprecationIssueTypeChromeLoadTimesWasAlternateProtocolAvailable enum const
AuditsDeprecationIssueTypeChromeLoadTimesWasAlternateProtocolAvailable AuditsDeprecationIssueType = "ChromeLoadTimesWasAlternateProtocolAvailable"
// AuditsDeprecationIssueTypeCookieWithTruncatingChar enum const
AuditsDeprecationIssueTypeCookieWithTruncatingChar AuditsDeprecationIssueType = "CookieWithTruncatingChar"
// AuditsDeprecationIssueTypeCrossOriginAccessBasedOnDocumentDomain enum const
AuditsDeprecationIssueTypeCrossOriginAccessBasedOnDocumentDomain AuditsDeprecationIssueType = "CrossOriginAccessBasedOnDocumentDomain"
// AuditsDeprecationIssueTypeCrossOriginWindowAlert enum const
AuditsDeprecationIssueTypeCrossOriginWindowAlert AuditsDeprecationIssueType = "CrossOriginWindowAlert"
// AuditsDeprecationIssueTypeCrossOriginWindowConfirm enum const
AuditsDeprecationIssueTypeCrossOriginWindowConfirm AuditsDeprecationIssueType = "CrossOriginWindowConfirm"
// AuditsDeprecationIssueTypeCSSSelectorInternalMediaControlsOverlayCastButton enum const
AuditsDeprecationIssueTypeCSSSelectorInternalMediaControlsOverlayCastButton AuditsDeprecationIssueType = "CSSSelectorInternalMediaControlsOverlayCastButton"
// AuditsDeprecationIssueTypeDeprecationExample enum const
AuditsDeprecationIssueTypeDeprecationExample AuditsDeprecationIssueType = "DeprecationExample"
// AuditsDeprecationIssueTypeDocumentDomainSettingWithoutOriginAgentClusterHeader enum const
AuditsDeprecationIssueTypeDocumentDomainSettingWithoutOriginAgentClusterHeader AuditsDeprecationIssueType = "DocumentDomainSettingWithoutOriginAgentClusterHeader"
// AuditsDeprecationIssueTypeEventPath enum const
AuditsDeprecationIssueTypeEventPath AuditsDeprecationIssueType = "EventPath"
// AuditsDeprecationIssueTypeExpectCTHeader enum const
AuditsDeprecationIssueTypeExpectCTHeader AuditsDeprecationIssueType = "ExpectCTHeader"
// AuditsDeprecationIssueTypeGeolocationInsecureOrigin enum const
AuditsDeprecationIssueTypeGeolocationInsecureOrigin AuditsDeprecationIssueType = "GeolocationInsecureOrigin"
// AuditsDeprecationIssueTypeGeolocationInsecureOriginDeprecatedNotRemoved enum const
AuditsDeprecationIssueTypeGeolocationInsecureOriginDeprecatedNotRemoved AuditsDeprecationIssueType = "GeolocationInsecureOriginDeprecatedNotRemoved"
// AuditsDeprecationIssueTypeGetUserMediaInsecureOrigin enum const
AuditsDeprecationIssueTypeGetUserMediaInsecureOrigin AuditsDeprecationIssueType = "GetUserMediaInsecureOrigin"
// AuditsDeprecationIssueTypeHostCandidateAttributeGetter enum const
AuditsDeprecationIssueTypeHostCandidateAttributeGetter AuditsDeprecationIssueType = "HostCandidateAttributeGetter"
// AuditsDeprecationIssueTypeIdentityInCanMakePaymentEvent enum const
AuditsDeprecationIssueTypeIdentityInCanMakePaymentEvent AuditsDeprecationIssueType = "IdentityInCanMakePaymentEvent"
// AuditsDeprecationIssueTypeInsecurePrivateNetworkSubresourceRequest enum const
AuditsDeprecationIssueTypeInsecurePrivateNetworkSubresourceRequest AuditsDeprecationIssueType = "InsecurePrivateNetworkSubresourceRequest"
// AuditsDeprecationIssueTypeLocalCSSFileExtensionRejected enum const
AuditsDeprecationIssueTypeLocalCSSFileExtensionRejected AuditsDeprecationIssueType = "LocalCSSFileExtensionRejected"
// AuditsDeprecationIssueTypeMediaSourceAbortRemove enum const
AuditsDeprecationIssueTypeMediaSourceAbortRemove AuditsDeprecationIssueType = "MediaSourceAbortRemove"
// AuditsDeprecationIssueTypeMediaSourceDurationTruncatingBuffered enum const
AuditsDeprecationIssueTypeMediaSourceDurationTruncatingBuffered AuditsDeprecationIssueType = "MediaSourceDurationTruncatingBuffered"
// AuditsDeprecationIssueTypeNoSysexWebMIDIWithoutPermission enum const
AuditsDeprecationIssueTypeNoSysexWebMIDIWithoutPermission AuditsDeprecationIssueType = "NoSysexWebMIDIWithoutPermission"
// AuditsDeprecationIssueTypeNotificationInsecureOrigin enum const
AuditsDeprecationIssueTypeNotificationInsecureOrigin AuditsDeprecationIssueType = "NotificationInsecureOrigin"
// AuditsDeprecationIssueTypeNotificationPermissionRequestedIframe enum const
AuditsDeprecationIssueTypeNotificationPermissionRequestedIframe AuditsDeprecationIssueType = "NotificationPermissionRequestedIframe"
// AuditsDeprecationIssueTypeObsoleteWebRtcCipherSuite enum const
AuditsDeprecationIssueTypeObsoleteWebRtcCipherSuite AuditsDeprecationIssueType = "ObsoleteWebRtcCipherSuite"
// AuditsDeprecationIssueTypeOpenWebDatabaseInsecureContext enum const
AuditsDeprecationIssueTypeOpenWebDatabaseInsecureContext AuditsDeprecationIssueType = "OpenWebDatabaseInsecureContext"
// AuditsDeprecationIssueTypeOverflowVisibleOnReplacedElement enum const
AuditsDeprecationIssueTypeOverflowVisibleOnReplacedElement AuditsDeprecationIssueType = "OverflowVisibleOnReplacedElement"
// AuditsDeprecationIssueTypePaymentInstruments enum const
AuditsDeprecationIssueTypePaymentInstruments AuditsDeprecationIssueType = "PaymentInstruments"
// AuditsDeprecationIssueTypePaymentRequestCSPViolation enum const
AuditsDeprecationIssueTypePaymentRequestCSPViolation AuditsDeprecationIssueType = "PaymentRequestCSPViolation"
// AuditsDeprecationIssueTypePersistentQuotaType enum const
AuditsDeprecationIssueTypePersistentQuotaType AuditsDeprecationIssueType = "PersistentQuotaType"
// AuditsDeprecationIssueTypePictureSourceSrc enum const
AuditsDeprecationIssueTypePictureSourceSrc AuditsDeprecationIssueType = "PictureSourceSrc"
// AuditsDeprecationIssueTypePrefixedCancelAnimationFrame enum const
AuditsDeprecationIssueTypePrefixedCancelAnimationFrame AuditsDeprecationIssueType = "PrefixedCancelAnimationFrame"
// AuditsDeprecationIssueTypePrefixedRequestAnimationFrame enum const
AuditsDeprecationIssueTypePrefixedRequestAnimationFrame AuditsDeprecationIssueType = "PrefixedRequestAnimationFrame"
// AuditsDeprecationIssueTypePrefixedStorageInfo enum const
AuditsDeprecationIssueTypePrefixedStorageInfo AuditsDeprecationIssueType = "PrefixedStorageInfo"
// AuditsDeprecationIssueTypePrefixedVideoDisplayingFullscreen enum const
AuditsDeprecationIssueTypePrefixedVideoDisplayingFullscreen AuditsDeprecationIssueType = "PrefixedVideoDisplayingFullscreen"
// AuditsDeprecationIssueTypePrefixedVideoEnterFullscreen enum const
AuditsDeprecationIssueTypePrefixedVideoEnterFullscreen AuditsDeprecationIssueType = "PrefixedVideoEnterFullscreen"
// AuditsDeprecationIssueTypePrefixedVideoEnterFullScreen enum const
AuditsDeprecationIssueTypePrefixedVideoEnterFullScreen AuditsDeprecationIssueType = "PrefixedVideoEnterFullScreen"
// AuditsDeprecationIssueTypePrefixedVideoExitFullscreen enum const
AuditsDeprecationIssueTypePrefixedVideoExitFullscreen AuditsDeprecationIssueType = "PrefixedVideoExitFullscreen"
// AuditsDeprecationIssueTypePrefixedVideoExitFullScreen enum const
AuditsDeprecationIssueTypePrefixedVideoExitFullScreen AuditsDeprecationIssueType = "PrefixedVideoExitFullScreen"
// AuditsDeprecationIssueTypePrefixedVideoSupportsFullscreen enum const
AuditsDeprecationIssueTypePrefixedVideoSupportsFullscreen AuditsDeprecationIssueType = "PrefixedVideoSupportsFullscreen"
// AuditsDeprecationIssueTypeRangeExpand enum const
AuditsDeprecationIssueTypeRangeExpand AuditsDeprecationIssueType = "RangeExpand"
// AuditsDeprecationIssueTypeRequestedSubresourceWithEmbeddedCredentials enum const
AuditsDeprecationIssueTypeRequestedSubresourceWithEmbeddedCredentials AuditsDeprecationIssueType = "RequestedSubresourceWithEmbeddedCredentials"
// AuditsDeprecationIssueTypeRTCConstraintEnableDtlsSrtpFalse enum const
AuditsDeprecationIssueTypeRTCConstraintEnableDtlsSrtpFalse AuditsDeprecationIssueType = "RTCConstraintEnableDtlsSrtpFalse"
// AuditsDeprecationIssueTypeRTCConstraintEnableDtlsSrtpTrue enum const
AuditsDeprecationIssueTypeRTCConstraintEnableDtlsSrtpTrue AuditsDeprecationIssueType = "RTCConstraintEnableDtlsSrtpTrue"
// AuditsDeprecationIssueTypeRTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics enum const
AuditsDeprecationIssueTypeRTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics AuditsDeprecationIssueType = "RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics"
// AuditsDeprecationIssueTypeRTCPeerConnectionSdpSemanticsPlanB enum const
AuditsDeprecationIssueTypeRTCPeerConnectionSdpSemanticsPlanB AuditsDeprecationIssueType = "RTCPeerConnectionSdpSemanticsPlanB"
// AuditsDeprecationIssueTypeRtcpMuxPolicyNegotiate enum const
AuditsDeprecationIssueTypeRtcpMuxPolicyNegotiate AuditsDeprecationIssueType = "RtcpMuxPolicyNegotiate"
// AuditsDeprecationIssueTypeSharedArrayBufferConstructedWithoutIsolation enum const
AuditsDeprecationIssueTypeSharedArrayBufferConstructedWithoutIsolation AuditsDeprecationIssueType = "SharedArrayBufferConstructedWithoutIsolation"
// AuditsDeprecationIssueTypeTextToSpeechDisallowedByAutoplay enum const
AuditsDeprecationIssueTypeTextToSpeechDisallowedByAutoplay AuditsDeprecationIssueType = "TextToSpeech_DisallowedByAutoplay"
// AuditsDeprecationIssueTypeV8SharedArrayBufferConstructedInExtensionWithoutIsolation enum const
AuditsDeprecationIssueTypeV8SharedArrayBufferConstructedInExtensionWithoutIsolation AuditsDeprecationIssueType = "V8SharedArrayBufferConstructedInExtensionWithoutIsolation"
// AuditsDeprecationIssueTypeXHRJSONEncodingDetection enum const
AuditsDeprecationIssueTypeXHRJSONEncodingDetection AuditsDeprecationIssueType = "XHRJSONEncodingDetection"
// AuditsDeprecationIssueTypeXMLHTTPRequestSynchronousInNonWorkerOutsideBeforeUnload enum const
AuditsDeprecationIssueTypeXMLHTTPRequestSynchronousInNonWorkerOutsideBeforeUnload AuditsDeprecationIssueType = "XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload"
// AuditsDeprecationIssueTypeXRSupportsSession enum const
AuditsDeprecationIssueTypeXRSupportsSession AuditsDeprecationIssueType = "XRSupportsSession"
)
// 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 ...
Type AuditsDeprecationIssueType `json:"type"`
}
// 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"
// AuditsFederatedAuthRequestIssueReasonManifestListHTTPNotFound enum const
AuditsFederatedAuthRequestIssueReasonManifestListHTTPNotFound AuditsFederatedAuthRequestIssueReason = "ManifestListHttpNotFound"
// AuditsFederatedAuthRequestIssueReasonManifestListNoResponse enum const
AuditsFederatedAuthRequestIssueReasonManifestListNoResponse AuditsFederatedAuthRequestIssueReason = "ManifestListNoResponse"
// AuditsFederatedAuthRequestIssueReasonManifestListInvalidResponse enum const
AuditsFederatedAuthRequestIssueReasonManifestListInvalidResponse AuditsFederatedAuthRequestIssueReason = "ManifestListInvalidResponse"
// AuditsFederatedAuthRequestIssueReasonManifestNotInManifestList enum const
AuditsFederatedAuthRequestIssueReasonManifestNotInManifestList AuditsFederatedAuthRequestIssueReason = "ManifestNotInManifestList"
// AuditsFederatedAuthRequestIssueReasonManifestListTooBig enum const
AuditsFederatedAuthRequestIssueReasonManifestListTooBig AuditsFederatedAuthRequestIssueReason = "ManifestListTooBig"
// AuditsFederatedAuthRequestIssueReasonManifestHTTPNotFound enum const
AuditsFederatedAuthRequestIssueReasonManifestHTTPNotFound AuditsFederatedAuthRequestIssueReason = "ManifestHttpNotFound"
// AuditsFederatedAuthRequestIssueReasonManifestNoResponse enum const
AuditsFederatedAuthRequestIssueReasonManifestNoResponse AuditsFederatedAuthRequestIssueReason = "ManifestNoResponse"
// AuditsFederatedAuthRequestIssueReasonManifestInvalidResponse enum const
AuditsFederatedAuthRequestIssueReasonManifestInvalidResponse AuditsFederatedAuthRequestIssueReason = "ManifestInvalidResponse"
// AuditsFederatedAuthRequestIssueReasonClientMetadataHTTPNotFound enum const
AuditsFederatedAuthRequestIssueReasonClientMetadataHTTPNotFound AuditsFederatedAuthRequestIssueReason = "ClientMetadataHttpNotFound"
// AuditsFederatedAuthRequestIssueReasonClientMetadataNoResponse enum const
AuditsFederatedAuthRequestIssueReasonClientMetadataNoResponse AuditsFederatedAuthRequestIssueReason = "ClientMetadataNoResponse"
// AuditsFederatedAuthRequestIssueReasonClientMetadataInvalidResponse enum const
AuditsFederatedAuthRequestIssueReasonClientMetadataInvalidResponse AuditsFederatedAuthRequestIssueReason = "ClientMetadataInvalidResponse"
// 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"
// AuditsFederatedAuthRequestIssueReasonIDTokenHTTPNotFound enum const
AuditsFederatedAuthRequestIssueReasonIDTokenHTTPNotFound AuditsFederatedAuthRequestIssueReason = "IdTokenHttpNotFound"
// AuditsFederatedAuthRequestIssueReasonIDTokenNoResponse enum const
AuditsFederatedAuthRequestIssueReasonIDTokenNoResponse AuditsFederatedAuthRequestIssueReason = "IdTokenNoResponse"
// AuditsFederatedAuthRequestIssueReasonIDTokenInvalidResponse enum const
AuditsFederatedAuthRequestIssueReasonIDTokenInvalidResponse AuditsFederatedAuthRequestIssueReason = "IdTokenInvalidResponse"
// AuditsFederatedAuthRequestIssueReasonIDTokenInvalidRequest enum const
AuditsFederatedAuthRequestIssueReasonIDTokenInvalidRequest AuditsFederatedAuthRequestIssueReason = "IdTokenInvalidRequest"
// AuditsFederatedAuthRequestIssueReasonErrorIDToken enum const
AuditsFederatedAuthRequestIssueReasonErrorIDToken AuditsFederatedAuthRequestIssueReason = "ErrorIdToken"
// AuditsFederatedAuthRequestIssueReasonCanceled enum const
AuditsFederatedAuthRequestIssueReasonCanceled AuditsFederatedAuthRequestIssueReason = "Canceled"
// AuditsFederatedAuthRequestIssueReasonRpPageNotVisible enum const
AuditsFederatedAuthRequestIssueReasonRpPageNotVisible AuditsFederatedAuthRequestIssueReason = "RpPageNotVisible"
)
// 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"`
}
// AuditsInspectorIssueCode A unique identifier for the type of issue. Each type may use one of the
// optional fields in InspectorIssueDetails to convey more specific
// information about the kind of issue.
type AuditsInspectorIssueCode string
const (
// AuditsInspectorIssueCodeCookieIssue enum const
AuditsInspectorIssueCodeCookieIssue AuditsInspectorIssueCode = "CookieIssue"
// AuditsInspectorIssueCodeMixedContentIssue enum const
AuditsInspectorIssueCodeMixedContentIssue AuditsInspectorIssueCode = "MixedContentIssue"
// AuditsInspectorIssueCodeBlockedByResponseIssue enum const
AuditsInspectorIssueCodeBlockedByResponseIssue AuditsInspectorIssueCode = "BlockedByResponseIssue"
// AuditsInspectorIssueCodeHeavyAdIssue enum const
AuditsInspectorIssueCodeHeavyAdIssue AuditsInspectorIssueCode = "HeavyAdIssue"
// AuditsInspectorIssueCodeContentSecurityPolicyIssue enum const
AuditsInspectorIssueCodeContentSecurityPolicyIssue AuditsInspectorIssueCode = "ContentSecurityPolicyIssue"
// AuditsInspectorIssueCodeSharedArrayBufferIssue enum const
AuditsInspectorIssueCodeSharedArrayBufferIssue AuditsInspectorIssueCode = "SharedArrayBufferIssue"
// AuditsInspectorIssueCodeTrustedWebActivityIssue enum const
AuditsInspectorIssueCodeTrustedWebActivityIssue AuditsInspectorIssueCode = "TrustedWebActivityIssue"
// AuditsInspectorIssueCodeLowTextContrastIssue enum const
AuditsInspectorIssueCodeLowTextContrastIssue AuditsInspectorIssueCode = "LowTextContrastIssue"
// AuditsInspectorIssueCodeCorsIssue enum const
AuditsInspectorIssueCodeCorsIssue AuditsInspectorIssueCode = "CorsIssue"
// AuditsInspectorIssueCodeAttributionReportingIssue enum const
AuditsInspectorIssueCodeAttributionReportingIssue AuditsInspectorIssueCode = "AttributionReportingIssue"
// AuditsInspectorIssueCodeQuirksModeIssue enum const
AuditsInspectorIssueCodeQuirksModeIssue AuditsInspectorIssueCode = "QuirksModeIssue"
// AuditsInspectorIssueCodeNavigatorUserAgentIssue enum const
AuditsInspectorIssueCodeNavigatorUserAgentIssue AuditsInspectorIssueCode = "NavigatorUserAgentIssue"
// AuditsInspectorIssueCodeGenericIssue enum const
AuditsInspectorIssueCodeGenericIssue AuditsInspectorIssueCode = "GenericIssue"
// AuditsInspectorIssueCodeDeprecationIssue enum const
AuditsInspectorIssueCodeDeprecationIssue AuditsInspectorIssueCode = "DeprecationIssue"
// AuditsInspectorIssueCodeClientHintIssue enum const
AuditsInspectorIssueCodeClientHintIssue AuditsInspectorIssueCode = "ClientHintIssue"
// AuditsInspectorIssueCodeFederatedAuthRequestIssue enum const
AuditsInspectorIssueCodeFederatedAuthRequestIssue AuditsInspectorIssueCode = "FederatedAuthRequestIssue"
)
// AuditsInspectorIssueDetails This struct holds a list of optional fields with additional information
// specific to the kind of issue. When adding a new issue code, please also
// add a new optional field to this type.
type AuditsInspectorIssueDetails struct {
// CookieIssueDetails (optional) ...
CookieIssueDetails *AuditsCookieIssueDetails `json:"cookieIssueDetails,omitempty"`
// MixedContentIssueDetails (optional) ...
MixedContentIssueDetails *AuditsMixedContentIssueDetails `json:"mixedContentIssueDetails,omitempty"`
// BlockedByResponseIssueDetails (optional) ...
BlockedByResponseIssueDetails *AuditsBlockedByResponseIssueDetails `json:"blockedByResponseIssueDetails,omitempty"`