Skip to content

Commit

Permalink
Merge pull request #69 from wirepair/update_chrome_112_0_5615_138
Browse files Browse the repository at this point in the history
update to chrome 112.0.5615.138
  • Loading branch information
wirepair authored Apr 30, 2023
2 parents 3743e40 + ff0f9e0 commit cc04920
Show file tree
Hide file tree
Showing 13 changed files with 277 additions and 86 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Changelog (2023)
- 2.3.1 (May 30)
- Applied patch from @camswords to expose dev tools version
- Updates to chrome 112.0.5615.138
- 2.3.0 (Mar 28) Updated JSON endpoint calls to use PUT instead of GET as GET returns an error since 111.
- Updates to chrome 111.0.5563.147 protocol
- gcdapigen updated to handle different revisions thanks to @eatdrinksleepcode
Expand Down
2 changes: 1 addition & 1 deletion v2/gcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import (

var json = jsoniter.ConfigCompatibleWithStandardLibrary

var GCDVERSION = "v2.3.0"
var GCDVERSION = "v2.3.1"

var (
ErrNoTabAvailable = errors.New("no available tab found")
Expand Down
19 changes: 13 additions & 6 deletions v2/gcdapi/audits.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ type AuditsCorsIssueDetails struct {

// Details for issues around "Attribution Reporting API" usage. Explainer: https://github.com/WICG/attribution-reporting-api
type AuditsAttributionReportingIssueDetails struct {
ViolationType string `json:"violationType"` // enum values: PermissionPolicyDisabled, UntrustworthyReportingOrigin, InsecureContext, InvalidHeader, InvalidRegisterTriggerHeader, InvalidEligibleHeader, TooManyConcurrentRequests, SourceAndTriggerHeaders, SourceIgnored, TriggerIgnored, OsSourceIgnored, OsTriggerIgnored, InvalidRegisterOsSourceHeader, InvalidRegisterOsTriggerHeader, WebAndOsHeaders
ViolationType string `json:"violationType"` // enum values: PermissionPolicyDisabled, UntrustworthyReportingOrigin, InsecureContext, InvalidHeader, InvalidRegisterTriggerHeader, InvalidEligibleHeader, SourceAndTriggerHeaders, SourceIgnored, TriggerIgnored, OsSourceIgnored, OsTriggerIgnored, InvalidRegisterOsSourceHeader, InvalidRegisterOsTriggerHeader, WebAndOsHeaders, NoWebOrOsSupport
Request *AuditsAffectedRequest `json:"request,omitempty"` //
ViolatingNodeId int `json:"violatingNodeId,omitempty"` //
InvalidParameter string `json:"invalidParameter,omitempty"` //
Expand All @@ -146,9 +146,10 @@ type AuditsNavigatorUserAgentIssueDetails struct {

// Depending on the concrete errorType, different properties are set.
type AuditsGenericIssueDetails struct {
ErrorType string `json:"errorType"` // Issues with the same errorType are aggregated in the frontend. enum values: CrossOriginPortalPostMessageError, FormLabelForNameError, FormDuplicateIdForInputError, FormInputWithNoLabelError, FormAutocompleteAttributeEmptyError, FormEmptyIdAndNameAttributesForInputError, FormAriaLabelledByToNonExistingId, FormInputAssignedAutocompleteValueToIdOrNameAttributeError, FormLabelHasNeitherForNorNestedInput, FormLabelForMatchesNonExistingIdError
FrameId string `json:"frameId,omitempty"` //
ViolatingNodeId int `json:"violatingNodeId,omitempty"` //
ErrorType string `json:"errorType"` // Issues with the same errorType are aggregated in the frontend. enum values: CrossOriginPortalPostMessageError, FormLabelForNameError, FormDuplicateIdForInputError, FormInputWithNoLabelError, FormAutocompleteAttributeEmptyError, FormEmptyIdAndNameAttributesForInputError, FormAriaLabelledByToNonExistingId, FormInputAssignedAutocompleteValueToIdOrNameAttributeError, FormLabelHasNeitherForNorNestedInput, FormLabelForMatchesNonExistingIdError, FormInputHasWrongButWellIntendedAutocompleteValueError
FrameId string `json:"frameId,omitempty"` //
ViolatingNodeId int `json:"violatingNodeId,omitempty"` //
ViolatingNodeAttribute string `json:"violatingNodeAttribute,omitempty"` //
}

// 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
Expand All @@ -158,9 +159,14 @@ type AuditsDeprecationIssueDetails struct {
Type string `json:"type"` // One of the deprecation names from third_party/blink/renderer/core/frame/deprecation/deprecation.json5
}

// 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 []string `json:"trackingSites"` //
}

// No Description.
type AuditsFederatedAuthRequestIssueDetails struct {
FederatedAuthRequestIssueReason string `json:"federatedAuthRequestIssueReason"` // enum values: ShouldEmbargo, TooManyRequests, WellKnownHttpNotFound, WellKnownNoResponse, WellKnownInvalidResponse, WellKnownListEmpty, ConfigNotInWellKnown, WellKnownTooBig, ConfigHttpNotFound, ConfigNoResponse, ConfigInvalidResponse, ClientMetadataHttpNotFound, ClientMetadataNoResponse, ClientMetadataInvalidResponse, DisabledInSettings, ErrorFetchingSignin, InvalidSigninResponse, AccountsHttpNotFound, AccountsNoResponse, AccountsInvalidResponse, AccountsListEmpty, IdTokenHttpNotFound, IdTokenNoResponse, IdTokenInvalidResponse, IdTokenInvalidRequest, ErrorIdToken, Canceled, RpPageNotVisible
FederatedAuthRequestIssueReason string `json:"federatedAuthRequestIssueReason"` // enum values: ShouldEmbargo, TooManyRequests, WellKnownHttpNotFound, WellKnownNoResponse, WellKnownInvalidResponse, WellKnownListEmpty, WellKnownInvalidContentType, ConfigNotInWellKnown, WellKnownTooBig, ConfigHttpNotFound, ConfigNoResponse, ConfigInvalidResponse, ConfigInvalidContentType, ClientMetadataHttpNotFound, ClientMetadataNoResponse, ClientMetadataInvalidResponse, ClientMetadataInvalidContentType, DisabledInSettings, ErrorFetchingSignin, InvalidSigninResponse, AccountsHttpNotFound, AccountsNoResponse, AccountsInvalidResponse, AccountsListEmpty, AccountsInvalidContentType, IdTokenHttpNotFound, IdTokenNoResponse, IdTokenInvalidResponse, IdTokenInvalidRequest, IdTokenInvalidContentType, ErrorIdToken, Canceled, RpPageNotVisible
}

// This issue tracks client hints related issues. It's used to deprecate old features, encourage the use of new ones, and provide general guidance.
Expand All @@ -187,11 +193,12 @@ type AuditsInspectorIssueDetails struct {
DeprecationIssueDetails *AuditsDeprecationIssueDetails `json:"deprecationIssueDetails,omitempty"` //
ClientHintIssueDetails *AuditsClientHintIssueDetails `json:"clientHintIssueDetails,omitempty"` //
FederatedAuthRequestIssueDetails *AuditsFederatedAuthRequestIssueDetails `json:"federatedAuthRequestIssueDetails,omitempty"` //
BounceTrackingIssueDetails *AuditsBounceTrackingIssueDetails `json:"bounceTrackingIssueDetails,omitempty"` //
}

// An inspector issue reported from the back-end.
type AuditsInspectorIssue struct {
Code string `json:"code"` // enum values: CookieIssue, MixedContentIssue, BlockedByResponseIssue, HeavyAdIssue, ContentSecurityPolicyIssue, SharedArrayBufferIssue, TrustedWebActivityIssue, LowTextContrastIssue, CorsIssue, AttributionReportingIssue, QuirksModeIssue, NavigatorUserAgentIssue, GenericIssue, DeprecationIssue, ClientHintIssue, FederatedAuthRequestIssue
Code string `json:"code"` // enum values: CookieIssue, MixedContentIssue, BlockedByResponseIssue, HeavyAdIssue, ContentSecurityPolicyIssue, SharedArrayBufferIssue, TrustedWebActivityIssue, LowTextContrastIssue, CorsIssue, AttributionReportingIssue, QuirksModeIssue, NavigatorUserAgentIssue, GenericIssue, DeprecationIssue, ClientHintIssue, FederatedAuthRequestIssue, BounceTrackingIssue
Details *AuditsInspectorIssueDetails `json:"details"` //
IssueId string `json:"issueId,omitempty"` // A unique id for this issue. May be omitted if no other entity (e.g. exception, CDP message, etc.) is referencing this issue.
}
Expand Down
Loading

0 comments on commit cc04920

Please sign in to comment.