Skip to content

Commit

Permalink
update chromium revision
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmood committed Mar 1, 2023
1 parent f525037 commit 3a88bf4
Show file tree
Hide file tree
Showing 8 changed files with 81 additions and 36 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 = 1095419
const RevisionDefault = 1101464

// RevisionPlaywright for arm linux
const RevisionPlaywright = 1045
const RevisionPlaywright = 1048
21 changes: 21 additions & 0 deletions lib/proto/audits.go
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,24 @@ const (

// 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"
)

// AuditsGenericIssueDetails Depending on the concrete errorType, different properties are set.
Expand Down Expand Up @@ -776,6 +794,9 @@ const (
// AuditsDeprecationIssueTypePrefixedVideoSupportsFullscreen enum const
AuditsDeprecationIssueTypePrefixedVideoSupportsFullscreen AuditsDeprecationIssueType = "PrefixedVideoSupportsFullscreen"

// AuditsDeprecationIssueTypePrivacySandboxExtensionsAPI enum const
AuditsDeprecationIssueTypePrivacySandboxExtensionsAPI AuditsDeprecationIssueType = "PrivacySandboxExtensionsAPI"

// AuditsDeprecationIssueTypeRangeExpand enum const
AuditsDeprecationIssueTypeRangeExpand AuditsDeprecationIssueType = "RangeExpand"

Expand Down
4 changes: 2 additions & 2 deletions lib/proto/browser.go
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ type BrowserGetHistograms struct {
// all histograms.
Query string `json:"query,omitempty"`

// Delta (optional) If true, retrieve delta since last call.
// Delta (optional) If true, retrieve delta since last delta call.
Delta bool `json:"delta,omitempty"`
}

Expand All @@ -459,7 +459,7 @@ type BrowserGetHistogram struct {
// Name Requested histogram name.
Name string `json:"name"`

// Delta (optional) If true, retrieve delta since last call.
// Delta (optional) If true, retrieve delta since last delta call.
Delta bool `json:"delta,omitempty"`
}

Expand Down
3 changes: 1 addition & 2 deletions lib/proto/definitions.go
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,7 @@ var types = map[string]reflect.Type{
"Page.addCompilationCache": reflect.TypeOf(PageAddCompilationCache{}),
"Page.clearCompilationCache": reflect.TypeOf(PageClearCompilationCache{}),
"Page.setSPCTransactionMode": reflect.TypeOf(PageSetSPCTransactionMode{}),
"Page.setRPHRegistrationMode": reflect.TypeOf(PageSetRPHRegistrationMode{}),
"Page.generateTestReport": reflect.TypeOf(PageGenerateTestReport{}),
"Page.waitForDebugger": reflect.TypeOf(PageWaitForDebugger{}),
"Page.setInterceptFileChooserDialog": reflect.TypeOf(PageSetInterceptFileChooserDialog{}),
Expand Down Expand Up @@ -879,8 +880,6 @@ var types = map[string]reflect.Type{
"Storage.untrackIndexedDBForStorageKey": reflect.TypeOf(StorageUntrackIndexedDBForStorageKey{}),
"Storage.getTrustTokens": reflect.TypeOf(StorageGetTrustTokens{}),
"Storage.getTrustTokensResult": reflect.TypeOf(StorageGetTrustTokensResult{}),
"Storage.clearTrustTokens": reflect.TypeOf(StorageClearTrustTokens{}),
"Storage.clearTrustTokensResult": reflect.TypeOf(StorageClearTrustTokensResult{}),
"Storage.getInterestGroupDetails": reflect.TypeOf(StorageGetInterestGroupDetails{}),
"Storage.getInterestGroupDetailsResult": reflect.TypeOf(StorageGetInterestGroupDetailsResult{}),
"Storage.setInterestGroupTracking": reflect.TypeOf(StorageSetInterestGroupTracking{}),
Expand Down
12 changes: 6 additions & 6 deletions lib/proto/definitions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2555,6 +2555,12 @@ func (t T) PageSetSPCTransactionMode() {
t.Nil(err)
}

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

func (t T) PageGenerateTestReport() {
c := &Client{}
err := proto.PageGenerateTestReport{}.Call(c)
Expand Down Expand Up @@ -2988,12 +2994,6 @@ func (t T) StorageGetTrustTokens() {
t.Nil(err)
}

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

func (t T) StorageGetInterestGroupDetails() {
c := &Client{}
_, err := proto.StorageGetInterestGroupDetails{}.Call(c)
Expand Down
7 changes: 7 additions & 0 deletions lib/proto/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -2813,6 +2813,13 @@ type NetworkResponseReceivedExtraInfo struct {
// HeadersText (optional) Raw response header text as it was received over the wire. The raw text may not always be
// available, such as in the case of HTTP/2 or QUIC.
HeadersText string `json:"headersText,omitempty"`

// CookiePartitionKey (optional) The cookie partition key that will be used to store partitioned cookies set in this response.
// Only sent when partitioned cookies are enabled.
CookiePartitionKey string `json:"cookiePartitionKey,omitempty"`

// CookiePartitionKeyOpaque (optional) True if partitioned cookies are enabled, but the partition key is not serializeable to string.
CookiePartitionKeyOpaque bool `json:"cookiePartitionKeyOpaque,omitempty"`
}

// ProtoEvent name
Expand Down
42 changes: 42 additions & 0 deletions lib/proto/page.go
Original file line number Diff line number Diff line change
Expand Up @@ -1541,6 +1541,18 @@ const (

// PagePrerenderFinalStatusActivationFramePolicyNotCompatible enum const
PagePrerenderFinalStatusActivationFramePolicyNotCompatible PagePrerenderFinalStatus = "ActivationFramePolicyNotCompatible"

// PagePrerenderFinalStatusPreloadingDisabled enum const
PagePrerenderFinalStatusPreloadingDisabled PagePrerenderFinalStatus = "PreloadingDisabled"

// PagePrerenderFinalStatusBatterySaverEnabled enum const
PagePrerenderFinalStatusBatterySaverEnabled PagePrerenderFinalStatus = "BatterySaverEnabled"

// PagePrerenderFinalStatusActivatedDuringMainFrameNavigation enum const
PagePrerenderFinalStatusActivatedDuringMainFrameNavigation PagePrerenderFinalStatus = "ActivatedDuringMainFrameNavigation"

// PagePrerenderFinalStatusPreloadingUnsupportedByWebContents enum const
PagePrerenderFinalStatusPreloadingUnsupportedByWebContents PagePrerenderFinalStatus = "PreloadingUnsupportedByWebContents"
)

// PageAddScriptToEvaluateOnLoad (deprecated) (experimental) Deprecated, please use addScriptToEvaluateOnNewDocument instead.
Expand Down Expand Up @@ -2856,6 +2868,36 @@ func (m PageSetSPCTransactionMode) Call(c Client) error {
return call(m.ProtoReq(), m, nil, c)
}

// PageSetRPHRegistrationModeMode enum
type PageSetRPHRegistrationModeMode string

const (
// PageSetRPHRegistrationModeModeNone enum const
PageSetRPHRegistrationModeModeNone PageSetRPHRegistrationModeMode = "none"

// PageSetRPHRegistrationModeModeAutoaccept enum const
PageSetRPHRegistrationModeModeAutoaccept PageSetRPHRegistrationModeMode = "autoaccept"

// PageSetRPHRegistrationModeModeAutoreject enum const
PageSetRPHRegistrationModeModeAutoreject PageSetRPHRegistrationModeMode = "autoreject"
)

// PageSetRPHRegistrationMode (experimental) Extensions for Custom Handlers API:
// https://html.spec.whatwg.org/multipage/system-state.html#rph-automation
type PageSetRPHRegistrationMode struct {

// Mode ...
Mode PageSetRPHRegistrationModeMode `json:"mode"`
}

// ProtoReq name
func (m PageSetRPHRegistrationMode) ProtoReq() string { return "Page.setRPHRegistrationMode" }

// Call sends the request
func (m PageSetRPHRegistrationMode) Call(c Client) error {
return call(m.ProtoReq(), m, nil, c)
}

// PageGenerateTestReport (experimental) Generates a report for testing.
type PageGenerateTestReport struct {

Expand Down
24 changes: 0 additions & 24 deletions lib/proto/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -616,30 +616,6 @@ type StorageGetTrustTokensResult struct {
Tokens []*StorageTrustTokens `json:"tokens"`
}

// StorageClearTrustTokens (experimental) Removes all Trust Tokens issued by the provided issuerOrigin.
// Leaves other stored data, including the issuer's Redemption Records, intact.
type StorageClearTrustTokens struct {

// IssuerOrigin ...
IssuerOrigin string `json:"issuerOrigin"`
}

// ProtoReq name
func (m StorageClearTrustTokens) ProtoReq() string { return "Storage.clearTrustTokens" }

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

// StorageClearTrustTokensResult (experimental) ...
type StorageClearTrustTokensResult struct {

// DidDeleteTokens True if any tokens were deleted, false otherwise.
DidDeleteTokens bool `json:"didDeleteTokens"`
}

// StorageGetInterestGroupDetails (experimental) Gets details for a named interest group.
type StorageGetInterestGroupDetails struct {

Expand Down

0 comments on commit 3a88bf4

Please sign in to comment.