Skip to content

Commit

Permalink
update chrome revision
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmood committed Feb 8, 2022
1 parent e0d0a7e commit ca36fa5
Show file tree
Hide file tree
Showing 11 changed files with 282 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/launcher/revision.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
package launcher

// DefaultRevision for chrome
const DefaultRevision = 950341
const DefaultRevision = 961656
31 changes: 31 additions & 0 deletions lib/proto/audits.go
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,31 @@ type AuditsDeprecationIssueDetails struct {
// instead. This standard was abandoned in January, 1970. See
// https://www.chromestatus.com/feature/5684870116278272 for more details."
Message string `json:"message,omitempty"`

// DeprecationType ...
DeprecationType string `json:"deprecationType"`
}

// AuditsClientHintIssueReason ...
type AuditsClientHintIssueReason string

const (
// AuditsClientHintIssueReasonMetaTagAllowListInvalidOrigin enum const
AuditsClientHintIssueReasonMetaTagAllowListInvalidOrigin AuditsClientHintIssueReason = "MetaTagAllowListInvalidOrigin"

// AuditsClientHintIssueReasonMetaTagModifiedHTML enum const
AuditsClientHintIssueReasonMetaTagModifiedHTML AuditsClientHintIssueReason = "MetaTagModifiedHTML"
)

// 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
Expand Down Expand Up @@ -709,6 +734,9 @@ const (

// AuditsInspectorIssueCodeDeprecationIssue enum const
AuditsInspectorIssueCodeDeprecationIssue AuditsInspectorIssueCode = "DeprecationIssue"

// AuditsInspectorIssueCodeClientHintIssue enum const
AuditsInspectorIssueCodeClientHintIssue AuditsInspectorIssueCode = "ClientHintIssue"
)

// AuditsInspectorIssueDetails This struct holds a list of optional fields with additional information
Expand Down Expand Up @@ -760,6 +788,9 @@ type AuditsInspectorIssueDetails struct {

// DeprecationIssueDetails (optional) ...
DeprecationIssueDetails *AuditsDeprecationIssueDetails `json:"deprecationIssueDetails,omitempty"`

// ClientHintIssueDetails (optional) ...
ClientHintIssueDetails *AuditsClientHintIssueDetails `json:"clientHintIssueDetails,omitempty"`
}

// AuditsIssueID A unique id for a DevTools inspector issue. Allows other entities (e.g.
Expand Down
4 changes: 3 additions & 1 deletion lib/proto/debugger.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ type DebuggerCallFrame struct {
// Location Location in the source code.
Location *DebuggerLocation `json:"location"`

// URL JavaScript script name or url.
// URL (deprecated) JavaScript script name or url.
// Deprecated in favor of using the `location.scriptId` to resolve the URL via a previously
// sent `Debugger.scriptParsed` event.
URL string `json:"url"`

// ScopeChain Scope chain for this call frame.
Expand Down
11 changes: 11 additions & 0 deletions lib/proto/definitions.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ var types = map[string]reflect.Type{
"Audits.WasmCrossOriginModuleSharingIssueDetails": reflect.TypeOf(AuditsWasmCrossOriginModuleSharingIssueDetails{}),
"Audits.GenericIssueDetails": reflect.TypeOf(AuditsGenericIssueDetails{}),
"Audits.DeprecationIssueDetails": reflect.TypeOf(AuditsDeprecationIssueDetails{}),
"Audits.ClientHintIssueDetails": reflect.TypeOf(AuditsClientHintIssueDetails{}),
"Audits.InspectorIssueDetails": reflect.TypeOf(AuditsInspectorIssueDetails{}),
"Audits.InspectorIssue": reflect.TypeOf(AuditsInspectorIssue{}),
"Audits.getEncodedResponse": reflect.TypeOf(AuditsGetEncodedResponse{}),
Expand Down Expand Up @@ -673,11 +674,13 @@ var types = map[string]reflect.Type{
"Page.VisualViewport": reflect.TypeOf(PageVisualViewport{}),
"Page.Viewport": reflect.TypeOf(PageViewport{}),
"Page.FontFamilies": reflect.TypeOf(PageFontFamilies{}),
"Page.ScriptFontFamilies": reflect.TypeOf(PageScriptFontFamilies{}),
"Page.FontSizes": reflect.TypeOf(PageFontSizes{}),
"Page.InstallabilityErrorArgument": reflect.TypeOf(PageInstallabilityErrorArgument{}),
"Page.InstallabilityError": reflect.TypeOf(PageInstallabilityError{}),
"Page.CompilationCacheParams": reflect.TypeOf(PageCompilationCacheParams{}),
"Page.BackForwardCacheNotRestoredExplanation": reflect.TypeOf(PageBackForwardCacheNotRestoredExplanation{}),
"Page.BackForwardCacheNotRestoredExplanationTree": reflect.TypeOf(PageBackForwardCacheNotRestoredExplanationTree{}),
"Page.addScriptToEvaluateOnLoad": reflect.TypeOf(PageAddScriptToEvaluateOnLoad{}),
"Page.addScriptToEvaluateOnLoadResult": reflect.TypeOf(PageAddScriptToEvaluateOnLoadResult{}),
"Page.addScriptToEvaluateOnNewDocument": reflect.TypeOf(PageAddScriptToEvaluateOnNewDocument{}),
Expand Down Expand Up @@ -829,6 +832,8 @@ var types = map[string]reflect.Type{
"ServiceWorker.workerVersionUpdated": reflect.TypeOf(ServiceWorkerWorkerVersionUpdated{}),
"Storage.UsageForType": reflect.TypeOf(StorageUsageForType{}),
"Storage.TrustTokens": reflect.TypeOf(StorageTrustTokens{}),
"Storage.InterestGroupAd": reflect.TypeOf(StorageInterestGroupAd{}),
"Storage.InterestGroupDetails": reflect.TypeOf(StorageInterestGroupDetails{}),
"Storage.clearDataForOrigin": reflect.TypeOf(StorageClearDataForOrigin{}),
"Storage.getCookies": reflect.TypeOf(StorageGetCookies{}),
"Storage.getCookiesResult": reflect.TypeOf(StorageGetCookiesResult{}),
Expand All @@ -845,10 +850,14 @@ var types = map[string]reflect.Type{
"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{}),
"Storage.cacheStorageContentUpdated": reflect.TypeOf(StorageCacheStorageContentUpdated{}),
"Storage.cacheStorageListUpdated": reflect.TypeOf(StorageCacheStorageListUpdated{}),
"Storage.indexedDBContentUpdated": reflect.TypeOf(StorageIndexedDBContentUpdated{}),
"Storage.indexedDBListUpdated": reflect.TypeOf(StorageIndexedDBListUpdated{}),
"Storage.interestGroupAccessed": reflect.TypeOf(StorageInterestGroupAccessed{}),
"SystemInfo.GPUDevice": reflect.TypeOf(SystemInfoGPUDevice{}),
"SystemInfo.Size": reflect.TypeOf(SystemInfoSize{}),
"SystemInfo.VideoDecodeAcceleratorCapability": reflect.TypeOf(SystemInfoVideoDecodeAcceleratorCapability{}),
Expand Down Expand Up @@ -1134,6 +1143,8 @@ var types = map[string]reflect.Type{
"Runtime.terminateExecution": reflect.TypeOf(RuntimeTerminateExecution{}),
"Runtime.addBinding": reflect.TypeOf(RuntimeAddBinding{}),
"Runtime.removeBinding": reflect.TypeOf(RuntimeRemoveBinding{}),
"Runtime.getExceptionDetails": reflect.TypeOf(RuntimeGetExceptionDetails{}),
"Runtime.getExceptionDetailsResult": reflect.TypeOf(RuntimeGetExceptionDetailsResult{}),
"Runtime.bindingCalled": reflect.TypeOf(RuntimeBindingCalled{}),
"Runtime.consoleAPICalled": reflect.TypeOf(RuntimeConsoleAPICalled{}),
"Runtime.exceptionRevoked": reflect.TypeOf(RuntimeExceptionRevoked{}),
Expand Down
23 changes: 23 additions & 0 deletions lib/proto/definitions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2911,6 +2911,18 @@ func (t T) StorageClearTrustTokens() {
t.Nil(err)
}

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

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

func (t T) StorageCacheStorageContentUpdated() {
e := proto.StorageCacheStorageContentUpdated{}
e.ProtoEvent()
Expand All @@ -2931,6 +2943,11 @@ func (t T) StorageIndexedDBListUpdated() {
e.ProtoEvent()
}

func (t T) StorageInterestGroupAccessed() {
e := proto.StorageInterestGroupAccessed{}
e.ProtoEvent()
}

func (t T) SystemInfoGetInfo() {
c := &Client{}
_, err := proto.SystemInfoGetInfo{}.Call(c)
Expand Down Expand Up @@ -3936,6 +3953,12 @@ func (t T) RuntimeRemoveBinding() {
t.Nil(err)
}

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

func (t T) RuntimeBindingCalled() {
e := proto.RuntimeBindingCalled{}
e.ProtoEvent()
Expand Down
12 changes: 12 additions & 0 deletions lib/proto/dom.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,18 @@ const (

// DOMPseudoTypeInputListButton enum const
DOMPseudoTypeInputListButton DOMPseudoType = "input-list-button"

// DOMPseudoTypeTransition enum const
DOMPseudoTypeTransition DOMPseudoType = "transition"

// DOMPseudoTypeTransitionContainer enum const
DOMPseudoTypeTransitionContainer DOMPseudoType = "transition-container"

// DOMPseudoTypeTransitionOldContent enum const
DOMPseudoTypeTransitionOldContent DOMPseudoType = "transition-old-content"

// DOMPseudoTypeTransitionNewContent enum const
DOMPseudoTypeTransitionNewContent DOMPseudoType = "transition-new-content"
)

// DOMShadowRootType Shadow root type.
Expand Down
2 changes: 1 addition & 1 deletion lib/proto/overlay.go
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ func (m OverlaySetShowScrollBottleneckRects) Call(c Client) error {
return call(m.ProtoReq(), m, nil, c)
}

// OverlaySetShowHitTestBorders Requests that backend shows hit-test borders on layers
// OverlaySetShowHitTestBorders (deprecated) Deprecated, no longer has any effect.
type OverlaySetShowHitTestBorders struct {

// Show True for showing hit-test borders
Expand Down
32 changes: 32 additions & 0 deletions lib/proto/page.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,9 @@ const (

// PagePermissionsPolicyBlockReasonIframeAttribute enum const
PagePermissionsPolicyBlockReasonIframeAttribute PagePermissionsPolicyBlockReason = "IframeAttribute"

// PagePermissionsPolicyBlockReasonInFencedFrameTree enum const
PagePermissionsPolicyBlockReasonInFencedFrameTree PagePermissionsPolicyBlockReason = "InFencedFrameTree"
)

// PagePermissionsPolicyBlockLocator (experimental) ...
Expand Down Expand Up @@ -763,6 +766,16 @@ type PageFontFamilies struct {
Pictograph string `json:"pictograph,omitempty"`
}

// PageScriptFontFamilies (experimental) Font families collection for a script.
type PageScriptFontFamilies struct {

// Script Name of the script which these font families are defined for.
Script string `json:"script"`

// FontFamilies Generic font families collection for the script.
FontFamilies *PageFontFamilies `json:"fontFamilies"`
}

// PageFontSizes (experimental) Default font sizes.
type PageFontSizes struct {

Expand Down Expand Up @@ -1288,6 +1301,19 @@ type PageBackForwardCacheNotRestoredExplanation struct {
Reason PageBackForwardCacheNotRestoredReason `json:"reason"`
}

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

// URL URL of each frame
URL string `json:"url"`

// Explanations Not restored reasons of each frame
Explanations []*PageBackForwardCacheNotRestoredExplanation `json:"explanations"`

// Children Array of children frame
Children []*PageBackForwardCacheNotRestoredExplanationTree `json:"children"`
}

// PageAddScriptToEvaluateOnLoad (deprecated) (experimental) Deprecated, please use addScriptToEvaluateOnNewDocument instead.
type PageAddScriptToEvaluateOnLoad struct {

Expand Down Expand Up @@ -2230,6 +2256,9 @@ type PageSetFontFamilies struct {

// FontFamilies Specifies font families to set. If a font family is not specified, it won't be changed.
FontFamilies *PageFontFamilies `json:"fontFamilies"`

// ForScripts (optional) Specifies font families to set for individual scripts.
ForScripts []*PageScriptFontFamilies `json:"forScripts,omitempty"`
}

// ProtoReq name
Expand Down Expand Up @@ -3006,6 +3035,9 @@ type PageBackForwardCacheNotUsed struct {

// NotRestoredExplanations Array of reasons why the page could not be cached. This must not be empty.
NotRestoredExplanations []*PageBackForwardCacheNotRestoredExplanation `json:"notRestoredExplanations"`

// NotRestoredExplanationsTree (optional) Tree structure of reasons why the page could not be cached for each frame.
NotRestoredExplanationsTree *PageBackForwardCacheNotRestoredExplanationTree `json:"notRestoredExplanationsTree,omitempty"`
}

// ProtoEvent name
Expand Down
31 changes: 31 additions & 0 deletions lib/proto/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -1204,6 +1204,37 @@ func (m RuntimeRemoveBinding) Call(c Client) error {
return call(m.ProtoReq(), m, nil, c)
}

// RuntimeGetExceptionDetails (experimental) This method tries to lookup and populate exception details for a
// JavaScript Error object.
// Note that the stackTrace portion of the resulting exceptionDetails will
// only be populated if the Runtime domain was enabled at the time when the
// Error was thrown.
type RuntimeGetExceptionDetails struct {

// ErrorObjectID The error object for which to resolve the exception details.
ErrorObjectID RuntimeRemoteObjectID `json:"errorObjectId"`
}

// ProtoReq name
func (m RuntimeGetExceptionDetails) ProtoReq() string { return "Runtime.getExceptionDetails" }

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

// RuntimeGetExceptionDetailsResult (experimental) This method tries to lookup and populate exception details for a
// JavaScript Error object.
// Note that the stackTrace portion of the resulting exceptionDetails will
// only be populated if the Runtime domain was enabled at the time when the
// Error was thrown.
type RuntimeGetExceptionDetailsResult struct {

// ExceptionDetails (optional) ...
ExceptionDetails *RuntimeExceptionDetails `json:"exceptionDetails,omitempty"`
}

// RuntimeBindingCalled (experimental) Notification is issued every time when binding is called.
type RuntimeBindingCalled struct {

Expand Down
Loading

0 comments on commit ca36fa5

Please sign in to comment.