Skip to content

Commit

Permalink
update chromium revision
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmood committed May 17, 2022
1 parent f6d19fe commit c5f43d8
Show file tree
Hide file tree
Showing 9 changed files with 158 additions and 29 deletions.
4 changes: 2 additions & 2 deletions lib/launcher/revision.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package launcher

// RevisionDefault for chromium
const RevisionDefault = 1000832
const RevisionDefault = 1003583

// RevisionPlaywright for arm linux
const RevisionPlaywright = 1000
const RevisionPlaywright = 1005
25 changes: 2 additions & 23 deletions lib/proto/audits.go
Original file line number Diff line number Diff line change
Expand Up @@ -525,20 +525,14 @@ const (
// AuditsAttributionReportingIssueTypePermissionPolicyDisabled enum const
AuditsAttributionReportingIssueTypePermissionPolicyDisabled AuditsAttributionReportingIssueType = "PermissionPolicyDisabled"

// AuditsAttributionReportingIssueTypeInvalidAttributionSourceEventID enum const
AuditsAttributionReportingIssueTypeInvalidAttributionSourceEventID AuditsAttributionReportingIssueType = "InvalidAttributionSourceEventId"

// AuditsAttributionReportingIssueTypeAttributionSourceUntrustworthyOrigin enum const
AuditsAttributionReportingIssueTypeAttributionSourceUntrustworthyOrigin AuditsAttributionReportingIssueType = "AttributionSourceUntrustworthyOrigin"

// AuditsAttributionReportingIssueTypeAttributionUntrustworthyOrigin enum const
AuditsAttributionReportingIssueTypeAttributionUntrustworthyOrigin AuditsAttributionReportingIssueType = "AttributionUntrustworthyOrigin"

// AuditsAttributionReportingIssueTypeInvalidAttributionSourceExpiry enum const
AuditsAttributionReportingIssueTypeInvalidAttributionSourceExpiry AuditsAttributionReportingIssueType = "InvalidAttributionSourceExpiry"

// AuditsAttributionReportingIssueTypeInvalidAttributionSourcePriority enum const
AuditsAttributionReportingIssueTypeInvalidAttributionSourcePriority AuditsAttributionReportingIssueType = "InvalidAttributionSourcePriority"
// AuditsAttributionReportingIssueTypeInvalidHeader enum const
AuditsAttributionReportingIssueTypeInvalidHeader AuditsAttributionReportingIssueType = "InvalidHeader"
)

// AuditsAttributionReportingIssueDetails Details for issues around "Attribution Reporting API" usage.
Expand Down Expand Up @@ -671,18 +665,9 @@ const (
// AuditsDeprecationIssueTypeInsecurePrivateNetworkSubresourceRequest enum const
AuditsDeprecationIssueTypeInsecurePrivateNetworkSubresourceRequest AuditsDeprecationIssueType = "InsecurePrivateNetworkSubresourceRequest"

// AuditsDeprecationIssueTypeLegacyConstraintGoogCPUOveruseDetection enum const
AuditsDeprecationIssueTypeLegacyConstraintGoogCPUOveruseDetection AuditsDeprecationIssueType = "LegacyConstraintGoogCpuOveruseDetection"

// AuditsDeprecationIssueTypeLegacyConstraintGoogIPv6 enum const
AuditsDeprecationIssueTypeLegacyConstraintGoogIPv6 AuditsDeprecationIssueType = "LegacyConstraintGoogIPv6"

// AuditsDeprecationIssueTypeLegacyConstraintGoogScreencastMinBitrate enum const
AuditsDeprecationIssueTypeLegacyConstraintGoogScreencastMinBitrate AuditsDeprecationIssueType = "LegacyConstraintGoogScreencastMinBitrate"

// AuditsDeprecationIssueTypeLegacyConstraintGoogSuspendBelowMinBitrate enum const
AuditsDeprecationIssueTypeLegacyConstraintGoogSuspendBelowMinBitrate AuditsDeprecationIssueType = "LegacyConstraintGoogSuspendBelowMinBitrate"

// AuditsDeprecationIssueTypeLocalCSSFileExtensionRejected enum const
AuditsDeprecationIssueTypeLocalCSSFileExtensionRejected AuditsDeprecationIssueType = "LocalCSSFileExtensionRejected"

Expand Down Expand Up @@ -758,9 +743,6 @@ const (
// AuditsDeprecationIssueTypeRTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics enum const
AuditsDeprecationIssueTypeRTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics AuditsDeprecationIssueType = "RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics"

// AuditsDeprecationIssueTypeRTCPeerConnectionLegacyCreateWithMediaConstraints enum const
AuditsDeprecationIssueTypeRTCPeerConnectionLegacyCreateWithMediaConstraints AuditsDeprecationIssueType = "RTCPeerConnectionLegacyCreateWithMediaConstraints"

// AuditsDeprecationIssueTypeRTCPeerConnectionSdpSemanticsPlanB enum const
AuditsDeprecationIssueTypeRTCPeerConnectionSdpSemanticsPlanB AuditsDeprecationIssueType = "RTCPeerConnectionSdpSemanticsPlanB"

Expand All @@ -770,9 +752,6 @@ const (
// AuditsDeprecationIssueTypeRTPDataChannel enum const
AuditsDeprecationIssueTypeRTPDataChannel AuditsDeprecationIssueType = "RTPDataChannel"

// AuditsDeprecationIssueTypeSelectionAddRangeIntersect enum const
AuditsDeprecationIssueTypeSelectionAddRangeIntersect AuditsDeprecationIssueType = "SelectionAddRangeIntersect"

// AuditsDeprecationIssueTypeSharedArrayBufferConstructedWithoutIsolation enum const
AuditsDeprecationIssueTypeSharedArrayBufferConstructedWithoutIsolation AuditsDeprecationIssueType = "SharedArrayBufferConstructedWithoutIsolation"

Expand Down
2 changes: 2 additions & 0 deletions lib/proto/definitions.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,8 @@ var types = map[string]reflect.Type{
"DOMStorage.getDOMStorageItemsResult": reflect.TypeOf(DOMStorageGetDOMStorageItemsResult{}),
"DOMStorage.removeDOMStorageItem": reflect.TypeOf(DOMStorageRemoveDOMStorageItem{}),
"DOMStorage.setDOMStorageItem": reflect.TypeOf(DOMStorageSetDOMStorageItem{}),
"DOMStorage.getStorageKeyForFrame": reflect.TypeOf(DOMStorageGetStorageKeyForFrame{}),
"DOMStorage.getStorageKeyForFrameResult": reflect.TypeOf(DOMStorageGetStorageKeyForFrameResult{}),
"DOMStorage.domStorageItemAdded": reflect.TypeOf(DOMStorageDomStorageItemAdded{}),
"DOMStorage.domStorageItemRemoved": reflect.TypeOf(DOMStorageDomStorageItemRemoved{}),
"DOMStorage.domStorageItemUpdated": reflect.TypeOf(DOMStorageDomStorageItemUpdated{}),
Expand Down
6 changes: 6 additions & 0 deletions lib/proto/definitions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1073,6 +1073,12 @@ func (t T) DOMStorageSetDOMStorageItem() {
t.Nil(err)
}

func (t T) DOMStorageGetStorageKeyForFrame() {
c := &Client{}
_, err := proto.DOMStorageGetStorageKeyForFrame{}.Call(c)
t.Nil(err)
}

func (t T) DOMStorageDomStorageItemAdded() {
e := proto.DOMStorageDomStorageItemAdded{}
e.ProtoEvent()
Expand Down
33 changes: 31 additions & 2 deletions lib/proto/dom_storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@ Query and modify DOM storage.
*/

// DOMStorageSerializedStorageKey ...
type DOMStorageSerializedStorageKey string

// DOMStorageStorageID DOM Storage identifier.
type DOMStorageStorageID struct {

// SecurityOrigin Security origin for the storage.
SecurityOrigin string `json:"securityOrigin"`
// SecurityOrigin (optional) Security origin for the storage.
SecurityOrigin string `json:"securityOrigin,omitempty"`

// StorageKey (optional) Represents a key by which DOM Storage keys its CachedStorageAreas
StorageKey DOMStorageSerializedStorageKey `json:"storageKey,omitempty"`

// IsLocalStorage Whether the storage is local storage (not session storage).
IsLocalStorage bool `json:"isLocalStorage"`
Expand Down Expand Up @@ -124,6 +130,29 @@ func (m DOMStorageSetDOMStorageItem) Call(c Client) error {
return call(m.ProtoReq(), m, nil, c)
}

// DOMStorageGetStorageKeyForFrame ...
type DOMStorageGetStorageKeyForFrame struct {

// FrameID ...
FrameID PageFrameID `json:"frameId"`
}

// ProtoReq name
func (m DOMStorageGetStorageKeyForFrame) ProtoReq() string { return "DOMStorage.getStorageKeyForFrame" }

// Call the request
func (m DOMStorageGetStorageKeyForFrame) Call(c Client) (*DOMStorageGetStorageKeyForFrameResult, error) {
var res DOMStorageGetStorageKeyForFrameResult
return &res, call(m.ProtoReq(), m, &res, c)
}

// DOMStorageGetStorageKeyForFrameResult ...
type DOMStorageGetStorageKeyForFrameResult struct {

// StorageKey ...
StorageKey DOMStorageSerializedStorageKey `json:"storageKey"`
}

// DOMStorageDomStorageItemAdded ...
type DOMStorageDomStorageItemAdded struct {

Expand Down
11 changes: 9 additions & 2 deletions lib/proto/heap_profiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,14 @@ type HeapProfilerStopTrackingHeapObjects struct {
// when the tracking is stopped.
ReportProgress bool `json:"reportProgress,omitempty"`

// TreatGlobalObjectsAsRoots (optional) ...
// TreatGlobalObjectsAsRoots (deprecated) (optional) Deprecated in favor of `exposeInternals`.
TreatGlobalObjectsAsRoots bool `json:"treatGlobalObjectsAsRoots,omitempty"`

// CaptureNumericValue (optional) If true, numerical values are included in the snapshot
CaptureNumericValue bool `json:"captureNumericValue,omitempty"`

// ExposeInternals (experimental) (optional) If true, exposes internals of the snapshot.
ExposeInternals bool `json:"exposeInternals,omitempty"`
}

// ProtoReq name
Expand All @@ -259,11 +262,15 @@ type HeapProfilerTakeHeapSnapshot struct {
// ReportProgress (optional) If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken.
ReportProgress bool `json:"reportProgress,omitempty"`

// TreatGlobalObjectsAsRoots (optional) If true, a raw snapshot without artificial roots will be generated
// TreatGlobalObjectsAsRoots (deprecated) (optional) If true, a raw snapshot without artificial roots will be generated.
// Deprecated in favor of `exposeInternals`.
TreatGlobalObjectsAsRoots bool `json:"treatGlobalObjectsAsRoots,omitempty"`

// CaptureNumericValue (optional) If true, numerical values are included in the snapshot
CaptureNumericValue bool `json:"captureNumericValue,omitempty"`

// ExposeInternals (experimental) (optional) If true, exposes internals of the snapshot.
ExposeInternals bool `json:"exposeInternals,omitempty"`
}

// ProtoReq name
Expand Down
96 changes: 96 additions & 0 deletions lib/proto/page.go
Original file line number Diff line number Diff line change
Expand Up @@ -1343,6 +1343,102 @@ type PagePrerenderFinalStatus string
const (
// PagePrerenderFinalStatusActivated enum const
PagePrerenderFinalStatusActivated PagePrerenderFinalStatus = "Activated"

// PagePrerenderFinalStatusDestroyed enum const
PagePrerenderFinalStatusDestroyed PagePrerenderFinalStatus = "Destroyed"

// PagePrerenderFinalStatusLowEndDevice enum const
PagePrerenderFinalStatusLowEndDevice PagePrerenderFinalStatus = "LowEndDevice"

// PagePrerenderFinalStatusCrossOriginRedirect enum const
PagePrerenderFinalStatusCrossOriginRedirect PagePrerenderFinalStatus = "CrossOriginRedirect"

// PagePrerenderFinalStatusCrossOriginNavigation enum const
PagePrerenderFinalStatusCrossOriginNavigation PagePrerenderFinalStatus = "CrossOriginNavigation"

// PagePrerenderFinalStatusInvalidSchemeRedirect enum const
PagePrerenderFinalStatusInvalidSchemeRedirect PagePrerenderFinalStatus = "InvalidSchemeRedirect"

// PagePrerenderFinalStatusInvalidSchemeNavigation enum const
PagePrerenderFinalStatusInvalidSchemeNavigation PagePrerenderFinalStatus = "InvalidSchemeNavigation"

// PagePrerenderFinalStatusInProgressNavigation enum const
PagePrerenderFinalStatusInProgressNavigation PagePrerenderFinalStatus = "InProgressNavigation"

// PagePrerenderFinalStatusNavigationRequestBlockedByCsp enum const
PagePrerenderFinalStatusNavigationRequestBlockedByCsp PagePrerenderFinalStatus = "NavigationRequestBlockedByCsp"

// PagePrerenderFinalStatusMainFrameNavigation enum const
PagePrerenderFinalStatusMainFrameNavigation PagePrerenderFinalStatus = "MainFrameNavigation"

// PagePrerenderFinalStatusMojoBinderPolicy enum const
PagePrerenderFinalStatusMojoBinderPolicy PagePrerenderFinalStatus = "MojoBinderPolicy"

// PagePrerenderFinalStatusRendererProcessCrashed enum const
PagePrerenderFinalStatusRendererProcessCrashed PagePrerenderFinalStatus = "RendererProcessCrashed"

// PagePrerenderFinalStatusRendererProcessKilled enum const
PagePrerenderFinalStatusRendererProcessKilled PagePrerenderFinalStatus = "RendererProcessKilled"

// PagePrerenderFinalStatusDownload enum const
PagePrerenderFinalStatusDownload PagePrerenderFinalStatus = "Download"

// PagePrerenderFinalStatusTriggerDestroyed enum const
PagePrerenderFinalStatusTriggerDestroyed PagePrerenderFinalStatus = "TriggerDestroyed"

// PagePrerenderFinalStatusNavigationNotCommitted enum const
PagePrerenderFinalStatusNavigationNotCommitted PagePrerenderFinalStatus = "NavigationNotCommitted"

// PagePrerenderFinalStatusNavigationBadHTTPStatus enum const
PagePrerenderFinalStatusNavigationBadHTTPStatus PagePrerenderFinalStatus = "NavigationBadHttpStatus"

// PagePrerenderFinalStatusClientCertRequested enum const
PagePrerenderFinalStatusClientCertRequested PagePrerenderFinalStatus = "ClientCertRequested"

// PagePrerenderFinalStatusNavigationRequestNetworkError enum const
PagePrerenderFinalStatusNavigationRequestNetworkError PagePrerenderFinalStatus = "NavigationRequestNetworkError"

// PagePrerenderFinalStatusMaxNumOfRunningPrerendersExceeded enum const
PagePrerenderFinalStatusMaxNumOfRunningPrerendersExceeded PagePrerenderFinalStatus = "MaxNumOfRunningPrerendersExceeded"

// PagePrerenderFinalStatusCancelAllHostsForTesting enum const
PagePrerenderFinalStatusCancelAllHostsForTesting PagePrerenderFinalStatus = "CancelAllHostsForTesting"

// PagePrerenderFinalStatusDidFailLoad enum const
PagePrerenderFinalStatusDidFailLoad PagePrerenderFinalStatus = "DidFailLoad"

// PagePrerenderFinalStatusStop enum const
PagePrerenderFinalStatusStop PagePrerenderFinalStatus = "Stop"

// PagePrerenderFinalStatusSslCertificateError enum const
PagePrerenderFinalStatusSslCertificateError PagePrerenderFinalStatus = "SslCertificateError"

// PagePrerenderFinalStatusLoginAuthRequested enum const
PagePrerenderFinalStatusLoginAuthRequested PagePrerenderFinalStatus = "LoginAuthRequested"

// PagePrerenderFinalStatusUaChangeRequiresReload enum const
PagePrerenderFinalStatusUaChangeRequiresReload PagePrerenderFinalStatus = "UaChangeRequiresReload"

// PagePrerenderFinalStatusBlockedByClient enum const
PagePrerenderFinalStatusBlockedByClient PagePrerenderFinalStatus = "BlockedByClient"

// PagePrerenderFinalStatusAudioOutputDeviceRequested enum const
PagePrerenderFinalStatusAudioOutputDeviceRequested PagePrerenderFinalStatus = "AudioOutputDeviceRequested"

// PagePrerenderFinalStatusMixedContent enum const
PagePrerenderFinalStatusMixedContent PagePrerenderFinalStatus = "MixedContent"

// PagePrerenderFinalStatusTriggerBackgrounded enum const
PagePrerenderFinalStatusTriggerBackgrounded PagePrerenderFinalStatus = "TriggerBackgrounded"

// PagePrerenderFinalStatusEmbedderTriggeredAndSameOriginRedirected enum const
PagePrerenderFinalStatusEmbedderTriggeredAndSameOriginRedirected PagePrerenderFinalStatus = "EmbedderTriggeredAndSameOriginRedirected"

// PagePrerenderFinalStatusEmbedderTriggeredAndCrossOriginRedirected enum const
PagePrerenderFinalStatusEmbedderTriggeredAndCrossOriginRedirected PagePrerenderFinalStatus = "EmbedderTriggeredAndCrossOriginRedirected"

// PagePrerenderFinalStatusEmbedderTriggeredAndDestroyed enum const
PagePrerenderFinalStatusEmbedderTriggeredAndDestroyed PagePrerenderFinalStatus = "EmbedderTriggeredAndDestroyed"
)

// PageAddScriptToEvaluateOnLoad (deprecated) (experimental) Deprecated, please use addScriptToEvaluateOnNewDocument instead.
Expand Down
3 changes: 3 additions & 0 deletions lib/proto/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ Storage
*/

// StorageSerializedStorageKey ...
type StorageSerializedStorageKey string

// StorageStorageType Enum of possible storage types.
type StorageStorageType string

Expand Down
7 changes: 7 additions & 0 deletions lib/proto/web_authn.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,13 @@ type WebAuthnCredential struct {
// WebAuthnEnable Enable the WebAuthn domain and start intercepting credential storage and
// retrieval with a virtual authenticator.
type WebAuthnEnable struct {

// EnableUI (optional) Whether to enable the WebAuthn user interface. Enabling the UI is
// recommended for debugging and demo purposes, as it is closer to the real
// experience. Disabling the UI is recommended for automated testing.
// Supported at the embedder's discretion if UI is available.
// Defaults to false.
EnableUI bool `json:"enableUI,omitempty"`
}

// ProtoReq name
Expand Down

0 comments on commit c5f43d8

Please sign in to comment.