Skip to content

Commit

Permalink
Merge pull request #60 from wirepair/update_20220904
Browse files Browse the repository at this point in the history
fix apigen bug, update to chrome 105.0.5195.102
  • Loading branch information
wirepair committed Sep 5, 2022
2 parents 4bcadcb + f67d4cd commit deb0da3
Show file tree
Hide file tree
Showing 25 changed files with 680 additions and 161 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
@@ -1,4 +1,6 @@
# Changelog (2022)
- 2.2.6 (Sept 5th) Fixes a bug where new types that were just arrays to another ref type were not being output correctly
- Updates to chrome 105.0.5195.102
- 2.2.5 (March 31st) Upgrade protocol.json to 100.0.4896.60

# Changelog (2021)
Expand Down
2 changes: 1 addition & 1 deletion v2/gcd.go
Expand Up @@ -45,7 +45,7 @@ import (

var json = jsoniter.ConfigCompatibleWithStandardLibrary

var GCDVERSION = "v2.2.5"
var GCDVERSION = "v2.2.6"

var (
ErrNoTabAvailable = errors.New("no available tab found")
Expand Down
1 change: 1 addition & 0 deletions v2/gcdapi/accessibility.go
Expand Up @@ -49,6 +49,7 @@ type AccessibilityAXNode struct {
Ignored bool `json:"ignored"` // Whether this node is ignored for accessibility
IgnoredReasons []*AccessibilityAXProperty `json:"ignoredReasons,omitempty"` // Collection of reasons why this node is hidden.
Role *AccessibilityAXValue `json:"role,omitempty"` // This `Node`'s role, whether explicit or implicit.
ChromeRole *AccessibilityAXValue `json:"chromeRole,omitempty"` // This `Node`'s Chrome raw role.
Name *AccessibilityAXValue `json:"name,omitempty"` // The accessible name for this `Node`.
Description *AccessibilityAXValue `json:"description,omitempty"` // The accessible description for this `Node`.
Value *AccessibilityAXValue `json:"value,omitempty"` // The value for this `Node`.
Expand Down
16 changes: 7 additions & 9 deletions v2/gcdapi/audits.go
Expand Up @@ -31,8 +31,8 @@ type AuditsAffectedFrame struct {
type AuditsCookieIssueDetails struct {
Cookie *AuditsAffectedCookie `json:"cookie,omitempty"` // 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.
RawCookieLine string `json:"rawCookieLine,omitempty"` //
CookieWarningReasons []string `json:"cookieWarningReasons"` // enum values: WarnSameSiteUnspecifiedCrossSiteContext, WarnSameSiteNoneInsecure, WarnSameSiteUnspecifiedLaxAllowUnsafe, WarnSameSiteStrictLaxDowngradeStrict, WarnSameSiteStrictCrossDowngradeStrict, WarnSameSiteStrictCrossDowngradeLax, WarnSameSiteLaxCrossDowngradeStrict, WarnSameSiteLaxCrossDowngradeLax, WarnAttributeValueExceedsMaxSize
CookieExclusionReasons []string `json:"cookieExclusionReasons"` // enum values: ExcludeSameSiteUnspecifiedTreatedAsLax, ExcludeSameSiteNoneInsecure, ExcludeSameSiteLax, ExcludeSameSiteStrict, ExcludeInvalidSameParty, ExcludeSamePartyCrossPartyContext
CookieWarningReasons []string `json:"cookieWarningReasons"` // enum values: WarnSameSiteUnspecifiedCrossSiteContext, WarnSameSiteNoneInsecure, WarnSameSiteUnspecifiedLaxAllowUnsafe, WarnSameSiteStrictLaxDowngradeStrict, WarnSameSiteStrictCrossDowngradeStrict, WarnSameSiteStrictCrossDowngradeLax, WarnSameSiteLaxCrossDowngradeStrict, WarnSameSiteLaxCrossDowngradeLax, WarnAttributeValueExceedsMaxSize, WarnDomainNonASCII
CookieExclusionReasons []string `json:"cookieExclusionReasons"` // enum values: ExcludeSameSiteUnspecifiedTreatedAsLax, ExcludeSameSiteNoneInsecure, ExcludeSameSiteLax, ExcludeSameSiteStrict, ExcludeInvalidSameParty, ExcludeSamePartyCrossPartyContext, ExcludeDomainNonASCII
Operation string `json:"operation"` // Optionally identifies the site-for-cookies and the cookie url, which may be used by the front-end as additional context. enum values: SetCookie, ReadCookie
SiteForCookies string `json:"siteForCookies,omitempty"` //
CookieUrl string `json:"cookieUrl,omitempty"` //
Expand Down Expand Up @@ -121,10 +121,9 @@ type AuditsCorsIssueDetails struct {
ClientSecurityState *NetworkClientSecurityState `json:"clientSecurityState,omitempty"` //
}

// Details for issues around "Attribution Reporting API" usage. Explainer: https://github.com/WICG/conversion-measurement-api
// 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, InvalidAttributionSourceEventId, InvalidAttributionData, AttributionSourceUntrustworthyOrigin, AttributionUntrustworthyOrigin, AttributionTriggerDataTooLarge, AttributionEventSourceTriggerDataTooLarge, InvalidAttributionSourceExpiry, InvalidAttributionSourcePriority, InvalidEventSourceTriggerData, InvalidTriggerPriority, InvalidTriggerDedupKey
Frame *AuditsAffectedFrame `json:"frame,omitempty"` //
ViolationType string `json:"violationType"` // enum values: PermissionPolicyDisabled, UntrustworthyReportingOrigin, InsecureContext, InvalidHeader, InvalidRegisterTriggerHeader, InvalidEligibleHeader, TooManyConcurrentRequests, SourceAndTriggerHeaders, SourceIgnored, TriggerIgnored
Request *AuditsAffectedRequest `json:"request,omitempty"` //
ViolatingNodeId int `json:"violatingNodeId,omitempty"` //
InvalidParameter string `json:"invalidParameter,omitempty"` //
Expand All @@ -151,17 +150,16 @@ type AuditsGenericIssueDetails struct {
FrameId string `json:"frameId,omitempty"` //
}

// This issue tracks information needed to print a deprecation message. The formatting is inherited from the old console.log version, see more at: https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/frame/deprecation.cc TODO(crbug.com/1264960): Re-work format to add i18n support per: https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/public/devtools_protocol/README.md
// 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 *AuditsAffectedFrame `json:"affectedFrame,omitempty"` //
SourceCodeLocation *AuditsSourceCodeLocation `json:"sourceCodeLocation"` //
Message string `json:"message,omitempty"` // The content of an untranslated deprecation issue, e.g. "window.inefficientLegacyStorageMethod will be removed in M97, around January 2022. Please use Web Storage or Indexed Database instead. This standard was abandoned in January, 1970. See https://www.chromestatus.com/feature/5684870116278272 for more details."
DeprecationType string `json:"deprecationType"` // The id of an untranslated deprecation issue e.g. PrefixedStorageInfo.
Type string `json:"type"` // enum values: AuthorizationCoveredByWildcard, CanRequestURLHTTPContainingNewline, ChromeLoadTimesConnectionInfo, ChromeLoadTimesFirstPaintAfterLoadTime, ChromeLoadTimesWasAlternateProtocolAvailable, CookieWithTruncatingChar, CrossOriginAccessBasedOnDocumentDomain, CrossOriginWindowAlert, CrossOriginWindowConfirm, CSSSelectorInternalMediaControlsOverlayCastButton, DeprecationExample, DocumentDomainSettingWithoutOriginAgentClusterHeader, EventPath, ExpectCTHeader, GeolocationInsecureOrigin, GeolocationInsecureOriginDeprecatedNotRemoved, GetUserMediaInsecureOrigin, HostCandidateAttributeGetter, IdentityInCanMakePaymentEvent, InsecurePrivateNetworkSubresourceRequest, LegacyConstraintGoogIPv6, LocalCSSFileExtensionRejected, MediaSourceAbortRemove, MediaSourceDurationTruncatingBuffered, NavigateEventRestoreScroll, NavigateEventTransitionWhile, NoSysexWebMIDIWithoutPermission, NotificationInsecureOrigin, NotificationPermissionRequestedIframe, ObsoleteWebRtcCipherSuite, OpenWebDatabaseInsecureContext, OverflowVisibleOnReplacedElement, PersistentQuotaType, PictureSourceSrc, PrefixedCancelAnimationFrame, PrefixedRequestAnimationFrame, PrefixedStorageInfo, PrefixedVideoDisplayingFullscreen, PrefixedVideoEnterFullscreen, PrefixedVideoEnterFullScreen, PrefixedVideoExitFullscreen, PrefixedVideoExitFullScreen, PrefixedVideoSupportsFullscreen, RangeExpand, RequestedSubresourceWithEmbeddedCredentials, RTCConstraintEnableDtlsSrtpFalse, RTCConstraintEnableDtlsSrtpTrue, RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics, RTCPeerConnectionSdpSemanticsPlanB, RtcpMuxPolicyNegotiate, SharedArrayBufferConstructedWithoutIsolation, TextToSpeech_DisallowedByAutoplay, V8SharedArrayBufferConstructedInExtensionWithoutIsolation, XHRJSONEncodingDetection, XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload, XRSupportsSession
}

// No Description.
type AuditsFederatedAuthRequestIssueDetails struct {
FederatedAuthRequestIssueReason string `json:"federatedAuthRequestIssueReason"` // enum values: ApprovalDeclined, TooManyRequests, ManifestHttpNotFound, ManifestNoResponse, ManifestInvalidResponse, ClientMetadataHttpNotFound, ClientMetadataNoResponse, ClientMetadataInvalidResponse, ClientMetadataMissingPrivacyPolicyUrl, DisabledInSettings, ErrorFetchingSignin, InvalidSigninResponse, AccountsHttpNotFound, AccountsNoResponse, AccountsInvalidResponse, IdTokenHttpNotFound, IdTokenNoResponse, IdTokenInvalidResponse, IdTokenInvalidRequest, ErrorIdToken, Canceled
FederatedAuthRequestIssueReason string `json:"federatedAuthRequestIssueReason"` // enum values: ShouldEmbargo, TooManyRequests, ManifestListHttpNotFound, ManifestListNoResponse, ManifestListInvalidResponse, ManifestNotInManifestList, ManifestListTooBig, ManifestHttpNotFound, ManifestNoResponse, ManifestInvalidResponse, ClientMetadataHttpNotFound, ClientMetadataNoResponse, ClientMetadataInvalidResponse, DisabledInSettings, ErrorFetchingSignin, InvalidSigninResponse, AccountsHttpNotFound, AccountsNoResponse, AccountsInvalidResponse, IdTokenHttpNotFound, IdTokenNoResponse, IdTokenInvalidResponse, IdTokenInvalidRequest, 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 Down

0 comments on commit deb0da3

Please sign in to comment.