Skip to content

Commit

Permalink
update chromium revision
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmood committed Dec 1, 2022
1 parent b7f9c86 commit b5d1eeb
Show file tree
Hide file tree
Showing 16 changed files with 683 additions and 459 deletions.
2 changes: 1 addition & 1 deletion browser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ func TestBinarySize(t *testing.T) {
stat, err := os.Stat("tmp/translator")
g.E(err)

g.Lte(float64(stat.Size())/1024/1024, 10.4) // mb
g.Lte(float64(stat.Size())/1024/1024, 10.5) // mb
}

func TestBrowserCookies(t *testing.T) {
Expand Down
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 = 1065323
const RevisionDefault = 1075642

// RevisionPlaywright for arm linux
const RevisionPlaywright = 1028
const RevisionPlaywright = 1033
3 changes: 3 additions & 0 deletions lib/proto/audits.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ const (

// AuditsCookieExclusionReasonExcludeDomainNonASCII enum const
AuditsCookieExclusionReasonExcludeDomainNonASCII AuditsCookieExclusionReason = "ExcludeDomainNonASCII"

// AuditsCookieExclusionReasonExcludeThirdPartyCookieBlockedInFirstPartySet enum const
AuditsCookieExclusionReasonExcludeThirdPartyCookieBlockedInFirstPartySet AuditsCookieExclusionReason = "ExcludeThirdPartyCookieBlockedInFirstPartySet"
)

// AuditsCookieWarningReason ...
Expand Down
3 changes: 3 additions & 0 deletions lib/proto/background_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ type BackgroundServiceBackgroundServiceEvent struct {

// EventMetadata A list of event-specific information.
EventMetadata []*BackgroundServiceEventMetadata `json:"eventMetadata"`

// StorageKey Storage key this event belongs to.
StorageKey string `json:"storageKey"`
}

// BackgroundServiceStartObserving Enables event updates for the service.
Expand Down
18 changes: 12 additions & 6 deletions lib/proto/browser.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ const (
// BrowserPermissionTypeGeolocation enum const
BrowserPermissionTypeGeolocation BrowserPermissionType = "geolocation"

// BrowserPermissionTypeIdleDetection enum const
BrowserPermissionTypeIdleDetection BrowserPermissionType = "idleDetection"

// BrowserPermissionTypeLocalFonts enum const
BrowserPermissionTypeLocalFonts BrowserPermissionType = "localFonts"

// BrowserPermissionTypeMidi enum const
BrowserPermissionTypeMidi BrowserPermissionType = "midi"

Expand All @@ -110,20 +116,23 @@ const (
// BrowserPermissionTypeSensors enum const
BrowserPermissionTypeSensors BrowserPermissionType = "sensors"

// BrowserPermissionTypeStorageAccess enum const
BrowserPermissionTypeStorageAccess BrowserPermissionType = "storageAccess"

// BrowserPermissionTypeVideoCapture enum const
BrowserPermissionTypeVideoCapture BrowserPermissionType = "videoCapture"

// BrowserPermissionTypeVideoCapturePanTiltZoom enum const
BrowserPermissionTypeVideoCapturePanTiltZoom BrowserPermissionType = "videoCapturePanTiltZoom"

// BrowserPermissionTypeIdleDetection enum const
BrowserPermissionTypeIdleDetection BrowserPermissionType = "idleDetection"

// BrowserPermissionTypeWakeLockScreen enum const
BrowserPermissionTypeWakeLockScreen BrowserPermissionType = "wakeLockScreen"

// BrowserPermissionTypeWakeLockSystem enum const
BrowserPermissionTypeWakeLockSystem BrowserPermissionType = "wakeLockSystem"

// BrowserPermissionTypeWindowManagement enum const
BrowserPermissionTypeWindowManagement BrowserPermissionType = "windowManagement"
)

// BrowserPermissionSetting (experimental) ...
Expand All @@ -135,9 +144,6 @@ const (

// BrowserPermissionSettingDenied enum const
BrowserPermissionSettingDenied BrowserPermissionSetting = "denied"

// BrowserPermissionSettingPrompt enum const
BrowserPermissionSettingPrompt BrowserPermissionSetting = "prompt"
)

// BrowserPermissionDescriptor (experimental) Definition of PermissionDescriptor defined in the Permissions API:
Expand Down
11 changes: 9 additions & 2 deletions lib/proto/cache_storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ type CacheStorageCache struct {
// SecurityOrigin Security origin of the cache.
SecurityOrigin string `json:"securityOrigin"`

// StorageKey Storage key of the cache.
StorageKey string `json:"storageKey"`

// CacheName The name of the cache.
CacheName string `json:"cacheName"`
}
Expand Down Expand Up @@ -128,8 +131,12 @@ func (m CacheStorageDeleteEntry) Call(c Client) error {
// CacheStorageRequestCacheNames Requests cache names.
type CacheStorageRequestCacheNames struct {

// SecurityOrigin Security origin.
SecurityOrigin string `json:"securityOrigin"`
// SecurityOrigin (optional) At least and at most one of securityOrigin, storageKey must be specified.
// Security origin.
SecurityOrigin string `json:"securityOrigin,omitempty"`

// StorageKey (optional) Storage key.
StorageKey string `json:"storageKey,omitempty"`
}

// ProtoReq name
Expand Down
6 changes: 6 additions & 0 deletions lib/proto/css.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,12 @@ type CSSCSSContainerQuery struct {

// Name (optional) Optional name for the container.
Name string `json:"name,omitempty"`

// PhysicalAxes (optional) Optional physical axes queried for the container.
PhysicalAxes DOMPhysicalAxes `json:"physicalAxes,omitempty"`

// LogicalAxes (optional) Optional logical axes queried for the container.
LogicalAxes DOMLogicalAxes `json:"logicalAxes,omitempty"`
}

// CSSCSSSupports (experimental) CSS Supports at-rule descriptor.
Expand Down
7 changes: 5 additions & 2 deletions lib/proto/debugger.go
Original file line number Diff line number Diff line change
Expand Up @@ -886,15 +886,18 @@ const (
// DebuggerSetPauseOnExceptionsStateNone enum const
DebuggerSetPauseOnExceptionsStateNone DebuggerSetPauseOnExceptionsState = "none"

// DebuggerSetPauseOnExceptionsStateCaught enum const
DebuggerSetPauseOnExceptionsStateCaught DebuggerSetPauseOnExceptionsState = "caught"

// DebuggerSetPauseOnExceptionsStateUncaught enum const
DebuggerSetPauseOnExceptionsStateUncaught DebuggerSetPauseOnExceptionsState = "uncaught"

// DebuggerSetPauseOnExceptionsStateAll enum const
DebuggerSetPauseOnExceptionsStateAll DebuggerSetPauseOnExceptionsState = "all"
)

// DebuggerSetPauseOnExceptions Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or
// no exceptions. Initial pause on exceptions state is `none`.
// DebuggerSetPauseOnExceptions Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions,
// or caught exceptions, no exceptions. Initial pause on exceptions state is `none`.
type DebuggerSetPauseOnExceptions struct {

// State Pause on exceptions mode.
Expand Down
Loading

0 comments on commit b5d1eeb

Please sign in to comment.