diff --git a/CHANGELOG.md b/CHANGELOG.md index 9dd7447..4486764 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# Changelog (2022) +- 2.2.5 (March 31st) Upgrade protocol.json to 100.0.4896.60 + # Changelog (2021) - 2.2.4 (November 27th) Upgrade protocol.json to 96.0.4664.45 - 2.2.3 (August 23rd) Applied patch from @camswords to allow using custom output writer for chrome process to aid in debugging. diff --git a/v2/chrome_target.go b/v2/chrome_target.go index 77a43d8..6f42494 100644 --- a/v2/chrome_target.go +++ b/v2/chrome_target.go @@ -74,7 +74,6 @@ type ChromeTarget struct { // Chrome Debugger Domains Accessibility *gcdapi.Accessibility Animation *gcdapi.Animation - ApplicationCache *gcdapi.ApplicationCache // application cache API Audits *gcdapi.Audits BackgroundService *gcdapi.BackgroundService Browser *gcdapi.Browser @@ -163,7 +162,6 @@ func openChromeTarget(debugger *Gcd, target *TargetInfo, observer observer.Messa func (c *ChromeTarget) Init() { c.Accessibility = gcdapi.NewAccessibility(c) c.Animation = gcdapi.NewAnimation(c) - c.ApplicationCache = gcdapi.NewApplicationCache(c) c.Audits = gcdapi.NewAudits(c) c.Browser = gcdapi.NewBrowser(c) c.BackgroundService = gcdapi.NewBackgroundService(c) diff --git a/v2/examples/events/events.go b/v2/examples/events/events.go index cb86776..1d8230b 100644 --- a/v2/examples/events/events.go +++ b/v2/examples/events/events.go @@ -136,7 +136,7 @@ func startTarget(debugger *gcd.Gcd) *gcd.ChromeTarget { log.Fatalf("error getting new tab: %s\n", err) } ctx := context.Background() - target.DOM.Enable(ctx) + target.DOM.Enable(ctx, "false") target.Console.Enable(ctx) target.Page.Enable(ctx) //target.Debugger.Enable() diff --git a/v2/gcd.go b/v2/gcd.go index 3c22edc..31ef289 100644 --- a/v2/gcd.go +++ b/v2/gcd.go @@ -45,7 +45,7 @@ import ( var json = jsoniter.ConfigCompatibleWithStandardLibrary -var GCDVERSION = "v2.2.4" +var GCDVERSION = "v2.2.5" var ( ErrNoTabAvailable = errors.New("no available tab found") diff --git a/v2/gcd_test.go b/v2/gcd_test.go index 0ba0c17..fc03ae8 100644 --- a/v2/gcd_test.go +++ b/v2/gcd_test.go @@ -308,6 +308,48 @@ func TestSimpleReturnReturnsGoError(t *testing.T) { } } +func TestDOMEnableWithWhiteSpace(t *testing.T) { + testDefaultStartup(t) + defer debugger.ExitProcess() + ctx := context.Background() + target, err := debugger.NewTab() + if err != nil { + t.Fatalf("error getting new tab: %s\n", err) + } + + page := target.Page + if _, err := page.Enable(ctx); err != nil { + t.Fatalf("failed to enable page: %s\n", err) + } + + dom := target.DOM + if _, err := dom.EnableWithParams(ctx, &gcdapi.DOMEnableParams{}); err != nil { + t.Fatalf("got error enabling DOM: %s\n", err) + } + + doneCh := make(chan struct{}) + target.Subscribe("Page.loadEventFired", func(target *ChromeTarget, payload []byte) { + + doc, err := target.DOM.GetDocument(context.Background(), -1, true) + if err != nil { + t.Fatalf("failed to get doc: %s\n", err) + } + + if doc.ChildNodeCount != 2 { + t.Fatalf("failed to get 2 child nodes, got %d\n", doc.ChildNodeCount) + } + doneCh <- struct{}{} + }) + + navParams := &gcdapi.PageNavigateParams{Url: testServerAddr + "cookie.html", TransitionType: "typed"} + _, _, _, err = target.Page.NavigateWithParams(testCtx, navParams) + if err != nil { + t.Fatalf("failed to load test page: %s\n", err) + } + + <-doneCh +} + // Tests that the ctx canceled doesn't cause the wsconn to get stuck in a loop in windows func TestCtxCancel(t *testing.T) { testDefaultStartup(t, WithEventDebugging(), WithEventDebugging()) diff --git a/v2/gcdapi/accessibility.go b/v2/gcdapi/accessibility.go index 32475e7..a4b2de7 100644 --- a/v2/gcdapi/accessibility.go +++ b/v2/gcdapi/accessibility.go @@ -155,8 +155,6 @@ func (c *Accessibility) GetPartialAXTree(ctx context.Context, nodeId int, backen type AccessibilityGetFullAXTreeParams struct { // The maximum depth at which descendants of the root node should be retrieved. If omitted, the full tree is returned. Depth int `json:"depth,omitempty"` - // Deprecated. This parameter has been renamed to `depth`. If depth is not provided, max_depth will be used. - Max_depth int `json:"max_depth,omitempty"` // The frame for whose document the AX tree should be retrieved. If omited, the root frame is used. FrameId string `json:"frameId,omitempty"` } @@ -195,13 +193,11 @@ func (c *Accessibility) GetFullAXTreeWithParams(ctx context.Context, v *Accessib // GetFullAXTree - Fetches the entire accessibility tree for the root Document // depth - The maximum depth at which descendants of the root node should be retrieved. If omitted, the full tree is returned. -// max_depth - Deprecated. This parameter has been renamed to `depth`. If depth is not provided, max_depth will be used. // frameId - The frame for whose document the AX tree should be retrieved. If omited, the root frame is used. // Returns - nodes - -func (c *Accessibility) GetFullAXTree(ctx context.Context, depth int, max_depth int, frameId string) ([]*AccessibilityAXNode, error) { +func (c *Accessibility) GetFullAXTree(ctx context.Context, depth int, frameId string) ([]*AccessibilityAXNode, error) { var v AccessibilityGetFullAXTreeParams v.Depth = depth - v.Max_depth = max_depth v.FrameId = frameId return c.GetFullAXTreeWithParams(ctx, &v) } diff --git a/v2/gcdapi/applicationcache.go b/v2/gcdapi/applicationcache.go deleted file mode 100644 index 3de8ec2..0000000 --- a/v2/gcdapi/applicationcache.go +++ /dev/null @@ -1,189 +0,0 @@ -// AUTO-GENERATED Chrome Remote Debugger Protocol API Client -// This file contains ApplicationCache functionality. -// API Version: 1.3 - -package gcdapi - -import ( - "context" - "github.com/wirepair/gcd/v2/gcdmessage" -) - -// Detailed application cache resource information. -type ApplicationCacheApplicationCacheResource struct { - Url string `json:"url"` // Resource url. - Size int `json:"size"` // Resource size. - Type string `json:"type"` // Resource type. -} - -// Detailed application cache information. -type ApplicationCacheApplicationCache struct { - ManifestURL string `json:"manifestURL"` // Manifest URL. - Size float64 `json:"size"` // Application cache size. - CreationTime float64 `json:"creationTime"` // Application cache creation time. - UpdateTime float64 `json:"updateTime"` // Application cache update time. - Resources []*ApplicationCacheApplicationCacheResource `json:"resources"` // Application cache resources. -} - -// Frame identifier - manifest URL pair. -type ApplicationCacheFrameWithManifest struct { - FrameId string `json:"frameId"` // Frame identifier. - ManifestURL string `json:"manifestURL"` // Manifest URL. - Status int `json:"status"` // Application cache status. -} - -// -type ApplicationCacheApplicationCacheStatusUpdatedEvent struct { - Method string `json:"method"` - Params struct { - FrameId string `json:"frameId"` // Identifier of the frame containing document whose application cache updated status. - ManifestURL string `json:"manifestURL"` // Manifest URL. - Status int `json:"status"` // Updated application cache status. - } `json:"Params,omitempty"` -} - -// -type ApplicationCacheNetworkStateUpdatedEvent struct { - Method string `json:"method"` - Params struct { - IsNowOnline bool `json:"isNowOnline"` // - } `json:"Params,omitempty"` -} - -type ApplicationCache struct { - target gcdmessage.ChromeTargeter -} - -func NewApplicationCache(target gcdmessage.ChromeTargeter) *ApplicationCache { - c := &ApplicationCache{target: target} - return c -} - -// Enables application cache domain notifications. -func (c *ApplicationCache) Enable(ctx context.Context) (*gcdmessage.ChromeResponse, error) { - return c.target.SendDefaultRequest(ctx, &gcdmessage.ParamRequest{Id: c.target.GetId(), Method: "ApplicationCache.enable"}) -} - -type ApplicationCacheGetApplicationCacheForFrameParams struct { - // Identifier of the frame containing document whose application cache is retrieved. - FrameId string `json:"frameId"` -} - -// GetApplicationCacheForFrameWithParams - Returns relevant application cache data for the document in given frame. -// Returns - applicationCache - Relevant application cache data for the document in given frame. -func (c *ApplicationCache) GetApplicationCacheForFrameWithParams(ctx context.Context, v *ApplicationCacheGetApplicationCacheForFrameParams) (*ApplicationCacheApplicationCache, error) { - resp, err := c.target.SendCustomReturn(ctx, &gcdmessage.ParamRequest{Id: c.target.GetId(), Method: "ApplicationCache.getApplicationCacheForFrame", Params: v}) - if err != nil { - return nil, err - } - - var chromeData struct { - Result struct { - ApplicationCache *ApplicationCacheApplicationCache - } - } - - if resp == nil { - return nil, &gcdmessage.ChromeEmptyResponseErr{} - } - - // test if error first - cerr := &gcdmessage.ChromeErrorResponse{} - json.Unmarshal(resp.Data, cerr) - if cerr != nil && cerr.Error != nil { - return nil, &gcdmessage.ChromeRequestErr{Resp: cerr} - } - - if err := json.Unmarshal(resp.Data, &chromeData); err != nil { - return nil, err - } - - return chromeData.Result.ApplicationCache, nil -} - -// GetApplicationCacheForFrame - Returns relevant application cache data for the document in given frame. -// frameId - Identifier of the frame containing document whose application cache is retrieved. -// Returns - applicationCache - Relevant application cache data for the document in given frame. -func (c *ApplicationCache) GetApplicationCacheForFrame(ctx context.Context, frameId string) (*ApplicationCacheApplicationCache, error) { - var v ApplicationCacheGetApplicationCacheForFrameParams - v.FrameId = frameId - return c.GetApplicationCacheForFrameWithParams(ctx, &v) -} - -// GetFramesWithManifests - Returns array of frame identifiers with manifest urls for each frame containing a document associated with some application cache. -// Returns - frameIds - Array of frame identifiers with manifest urls for each frame containing a document associated with some application cache. -func (c *ApplicationCache) GetFramesWithManifests(ctx context.Context) ([]*ApplicationCacheFrameWithManifest, error) { - resp, err := c.target.SendCustomReturn(ctx, &gcdmessage.ParamRequest{Id: c.target.GetId(), Method: "ApplicationCache.getFramesWithManifests"}) - if err != nil { - return nil, err - } - - var chromeData struct { - Result struct { - FrameIds []*ApplicationCacheFrameWithManifest - } - } - - if resp == nil { - return nil, &gcdmessage.ChromeEmptyResponseErr{} - } - - // test if error first - cerr := &gcdmessage.ChromeErrorResponse{} - json.Unmarshal(resp.Data, cerr) - if cerr != nil && cerr.Error != nil { - return nil, &gcdmessage.ChromeRequestErr{Resp: cerr} - } - - if err := json.Unmarshal(resp.Data, &chromeData); err != nil { - return nil, err - } - - return chromeData.Result.FrameIds, nil -} - -type ApplicationCacheGetManifestForFrameParams struct { - // Identifier of the frame containing document whose manifest is retrieved. - FrameId string `json:"frameId"` -} - -// GetManifestForFrameWithParams - Returns manifest URL for document in the given frame. -// Returns - manifestURL - Manifest URL for document in the given frame. -func (c *ApplicationCache) GetManifestForFrameWithParams(ctx context.Context, v *ApplicationCacheGetManifestForFrameParams) (string, error) { - resp, err := c.target.SendCustomReturn(ctx, &gcdmessage.ParamRequest{Id: c.target.GetId(), Method: "ApplicationCache.getManifestForFrame", Params: v}) - if err != nil { - return "", err - } - - var chromeData struct { - Result struct { - ManifestURL string - } - } - - if resp == nil { - return "", &gcdmessage.ChromeEmptyResponseErr{} - } - - // test if error first - cerr := &gcdmessage.ChromeErrorResponse{} - json.Unmarshal(resp.Data, cerr) - if cerr != nil && cerr.Error != nil { - return "", &gcdmessage.ChromeRequestErr{Resp: cerr} - } - - if err := json.Unmarshal(resp.Data, &chromeData); err != nil { - return "", err - } - - return chromeData.Result.ManifestURL, nil -} - -// GetManifestForFrame - Returns manifest URL for document in the given frame. -// frameId - Identifier of the frame containing document whose manifest is retrieved. -// Returns - manifestURL - Manifest URL for document in the given frame. -func (c *ApplicationCache) GetManifestForFrame(ctx context.Context, frameId string) (string, error) { - var v ApplicationCacheGetManifestForFrameParams - v.FrameId = frameId - return c.GetManifestForFrameWithParams(ctx, &v) -} diff --git a/v2/gcdapi/audits.go b/v2/gcdapi/audits.go index 73baf14..eddfbd7 100644 --- a/v2/gcdapi/audits.go +++ b/v2/gcdapi/audits.go @@ -28,10 +28,10 @@ type AuditsAffectedFrame struct { } // This information is currently necessary, as the front-end has a difficult time finding a specific cookie. With this, we can convey specific error information without the cookie. -type AuditsSameSiteCookieIssueDetails 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 + 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 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"` // @@ -41,7 +41,7 @@ type AuditsSameSiteCookieIssueDetails struct { // No Description. type AuditsMixedContentIssueDetails struct { - ResourceType string `json:"resourceType,omitempty"` // The type of resource causing the mixed content issue (css, js, iframe, form,...). Marked as optional because it is mapped to from blink::mojom::RequestContextType, which will be replaced by network::mojom::RequestDestination enum values: Audio, Beacon, CSPReport, Download, EventSource, Favicon, Font, Form, Frame, Image, Import, Manifest, Ping, PluginData, PluginResource, Prefetch, Resource, Script, ServiceWorker, SharedWorker, Stylesheet, Track, Video, Worker, XMLHttpRequest, XSLT + ResourceType string `json:"resourceType,omitempty"` // The type of resource causing the mixed content issue (css, js, iframe, form,...). Marked as optional because it is mapped to from blink::mojom::RequestContextType, which will be replaced by network::mojom::RequestDestination enum values: AttributionSrc, Audio, Beacon, CSPReport, Download, EventSource, Favicon, Font, Form, Frame, Image, Import, Manifest, Ping, PluginData, PluginResource, Prefetch, Resource, Script, ServiceWorker, SharedWorker, Stylesheet, Track, Video, Worker, XMLHttpRequest, XSLT ResolutionStatus string `json:"resolutionStatus"` // The way the mixed content issue is being resolved. enum values: MixedContentBlocked, MixedContentAutomaticallyUpgraded, MixedContentWarning InsecureURL string `json:"insecureURL"` // The unsafe http url causing the mixed content issue. MainResourceURL string `json:"mainResourceURL"` // The url responsible for the call to an unsafe url. @@ -123,7 +123,7 @@ type AuditsCorsIssueDetails struct { // Details for issues around "Attribution Reporting API" usage. Explainer: https://github.com/WICG/conversion-measurement-api type AuditsAttributionReportingIssueDetails struct { - ViolationType string `json:"violationType"` // enum values: PermissionPolicyDisabled, InvalidAttributionSourceEventId, InvalidAttributionData, AttributionSourceUntrustworthyOrigin, AttributionUntrustworthyOrigin, AttributionTriggerDataTooLarge, AttributionEventSourceTriggerDataTooLarge + ViolationType string `json:"violationType"` // enum values: PermissionPolicyDisabled, InvalidAttributionSourceEventId, InvalidAttributionData, AttributionSourceUntrustworthyOrigin, AttributionUntrustworthyOrigin, AttributionTriggerDataTooLarge, AttributionEventSourceTriggerDataTooLarge, InvalidAttributionSourceExpiry, InvalidAttributionSourcePriority, InvalidEventSourceTriggerData, InvalidTriggerPriority, InvalidTriggerDedupKey Frame *AuditsAffectedFrame `json:"frame,omitempty"` // Request *AuditsAffectedRequest `json:"request,omitempty"` // ViolatingNodeId int `json:"violatingNodeId,omitempty"` // @@ -145,14 +145,6 @@ type AuditsNavigatorUserAgentIssueDetails struct { Location *AuditsSourceCodeLocation `json:"location,omitempty"` // } -// No Description. -type AuditsWasmCrossOriginModuleSharingIssueDetails struct { - WasmModuleUrl string `json:"wasmModuleUrl"` // - SourceOrigin string `json:"sourceOrigin"` // - TargetOrigin string `json:"targetOrigin"` // - IsWarning bool `json:"isWarning"` // -} - // Depending on the concrete errorType, different properties are set. type AuditsGenericIssueDetails struct { ErrorType string `json:"errorType"` // Issues with the same errorType are aggregated in the frontend. enum values: CrossOriginPortalPostMessageError @@ -163,31 +155,44 @@ type AuditsGenericIssueDetails struct { type AuditsDeprecationIssueDetails struct { AffectedFrame *AuditsAffectedFrame `json:"affectedFrame,omitempty"` // SourceCodeLocation *AuditsSourceCodeLocation `json:"sourceCodeLocation"` // - Message string `json:"message,omitempty"` // The content of the deprecation issue (this won't be translated), 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." + 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. +} + +// 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 +} + +// 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 *AuditsSourceCodeLocation `json:"sourceCodeLocation"` // + ClientHintIssueReason string `json:"clientHintIssueReason"` // enum values: MetaTagAllowListInvalidOrigin, MetaTagModifiedHTML } // This struct holds a list of optional fields with additional information specific to the kind of issue. When adding a new issue code, please also add a new optional field to this type. type AuditsInspectorIssueDetails struct { - SameSiteCookieIssueDetails *AuditsSameSiteCookieIssueDetails `json:"sameSiteCookieIssueDetails,omitempty"` // - MixedContentIssueDetails *AuditsMixedContentIssueDetails `json:"mixedContentIssueDetails,omitempty"` // - BlockedByResponseIssueDetails *AuditsBlockedByResponseIssueDetails `json:"blockedByResponseIssueDetails,omitempty"` // - HeavyAdIssueDetails *AuditsHeavyAdIssueDetails `json:"heavyAdIssueDetails,omitempty"` // - ContentSecurityPolicyIssueDetails *AuditsContentSecurityPolicyIssueDetails `json:"contentSecurityPolicyIssueDetails,omitempty"` // - SharedArrayBufferIssueDetails *AuditsSharedArrayBufferIssueDetails `json:"sharedArrayBufferIssueDetails,omitempty"` // - TwaQualityEnforcementDetails *AuditsTrustedWebActivityIssueDetails `json:"twaQualityEnforcementDetails,omitempty"` // - LowTextContrastIssueDetails *AuditsLowTextContrastIssueDetails `json:"lowTextContrastIssueDetails,omitempty"` // - CorsIssueDetails *AuditsCorsIssueDetails `json:"corsIssueDetails,omitempty"` // - AttributionReportingIssueDetails *AuditsAttributionReportingIssueDetails `json:"attributionReportingIssueDetails,omitempty"` // - QuirksModeIssueDetails *AuditsQuirksModeIssueDetails `json:"quirksModeIssueDetails,omitempty"` // - NavigatorUserAgentIssueDetails *AuditsNavigatorUserAgentIssueDetails `json:"navigatorUserAgentIssueDetails,omitempty"` // - WasmCrossOriginModuleSharingIssue *AuditsWasmCrossOriginModuleSharingIssueDetails `json:"wasmCrossOriginModuleSharingIssue,omitempty"` // - GenericIssueDetails *AuditsGenericIssueDetails `json:"genericIssueDetails,omitempty"` // - DeprecationIssueDetails *AuditsDeprecationIssueDetails `json:"deprecationIssueDetails,omitempty"` // + CookieIssueDetails *AuditsCookieIssueDetails `json:"cookieIssueDetails,omitempty"` // + MixedContentIssueDetails *AuditsMixedContentIssueDetails `json:"mixedContentIssueDetails,omitempty"` // + BlockedByResponseIssueDetails *AuditsBlockedByResponseIssueDetails `json:"blockedByResponseIssueDetails,omitempty"` // + HeavyAdIssueDetails *AuditsHeavyAdIssueDetails `json:"heavyAdIssueDetails,omitempty"` // + ContentSecurityPolicyIssueDetails *AuditsContentSecurityPolicyIssueDetails `json:"contentSecurityPolicyIssueDetails,omitempty"` // + SharedArrayBufferIssueDetails *AuditsSharedArrayBufferIssueDetails `json:"sharedArrayBufferIssueDetails,omitempty"` // + TwaQualityEnforcementDetails *AuditsTrustedWebActivityIssueDetails `json:"twaQualityEnforcementDetails,omitempty"` // + LowTextContrastIssueDetails *AuditsLowTextContrastIssueDetails `json:"lowTextContrastIssueDetails,omitempty"` // + CorsIssueDetails *AuditsCorsIssueDetails `json:"corsIssueDetails,omitempty"` // + AttributionReportingIssueDetails *AuditsAttributionReportingIssueDetails `json:"attributionReportingIssueDetails,omitempty"` // + QuirksModeIssueDetails *AuditsQuirksModeIssueDetails `json:"quirksModeIssueDetails,omitempty"` // + NavigatorUserAgentIssueDetails *AuditsNavigatorUserAgentIssueDetails `json:"navigatorUserAgentIssueDetails,omitempty"` // + GenericIssueDetails *AuditsGenericIssueDetails `json:"genericIssueDetails,omitempty"` // + DeprecationIssueDetails *AuditsDeprecationIssueDetails `json:"deprecationIssueDetails,omitempty"` // + ClientHintIssueDetails *AuditsClientHintIssueDetails `json:"clientHintIssueDetails,omitempty"` // + FederatedAuthRequestIssueDetails *AuditsFederatedAuthRequestIssueDetails `json:"federatedAuthRequestIssueDetails,omitempty"` // } // An inspector issue reported from the back-end. type AuditsInspectorIssue struct { - Code string `json:"code"` // enum values: SameSiteCookieIssue, MixedContentIssue, BlockedByResponseIssue, HeavyAdIssue, ContentSecurityPolicyIssue, SharedArrayBufferIssue, TrustedWebActivityIssue, LowTextContrastIssue, CorsIssue, AttributionReportingIssue, QuirksModeIssue, NavigatorUserAgentIssue, WasmCrossOriginModuleSharingIssue, GenericIssue, DeprecationIssue + Code string `json:"code"` // enum values: CookieIssue, MixedContentIssue, BlockedByResponseIssue, HeavyAdIssue, ContentSecurityPolicyIssue, SharedArrayBufferIssue, TrustedWebActivityIssue, LowTextContrastIssue, CorsIssue, AttributionReportingIssue, QuirksModeIssue, NavigatorUserAgentIssue, GenericIssue, DeprecationIssue, ClientHintIssue, FederatedAuthRequestIssue Details *AuditsInspectorIssueDetails `json:"details"` // IssueId string `json:"issueId,omitempty"` // A unique id for this issue. May be omitted if no other entity (e.g. exception, CDP message, etc.) is referencing this issue. } diff --git a/v2/gcdapi/cast.go b/v2/gcdapi/cast.go index 77186f6..9e1931c 100644 --- a/v2/gcdapi/cast.go +++ b/v2/gcdapi/cast.go @@ -82,6 +82,24 @@ func (c *Cast) SetSinkToUse(ctx context.Context, sinkName string) (*gcdmessage.C return c.SetSinkToUseWithParams(ctx, &v) } +type CastStartDesktopMirroringParams struct { + // + SinkName string `json:"sinkName"` +} + +// StartDesktopMirroringWithParams - Starts mirroring the desktop to the sink. +func (c *Cast) StartDesktopMirroringWithParams(ctx context.Context, v *CastStartDesktopMirroringParams) (*gcdmessage.ChromeResponse, error) { + return c.target.SendDefaultRequest(ctx, &gcdmessage.ParamRequest{Id: c.target.GetId(), Method: "Cast.startDesktopMirroring", Params: v}) +} + +// StartDesktopMirroring - Starts mirroring the desktop to the sink. +// sinkName - +func (c *Cast) StartDesktopMirroring(ctx context.Context, sinkName string) (*gcdmessage.ChromeResponse, error) { + var v CastStartDesktopMirroringParams + v.SinkName = sinkName + return c.StartDesktopMirroringWithParams(ctx, &v) +} + type CastStartTabMirroringParams struct { // SinkName string `json:"sinkName"` diff --git a/v2/gcdapi/css.go b/v2/gcdapi/css.go index 2c5e9bc..de30549 100644 --- a/v2/gcdapi/css.go +++ b/v2/gcdapi/css.go @@ -11,7 +11,7 @@ import ( // CSS rule collection for a single pseudo style. type CSSPseudoElementMatches struct { - PseudoType string `json:"pseudoType"` // Pseudo element type. enum values: first-line, first-letter, before, after, marker, backdrop, selection, target-text, spelling-error, grammar-error, highlight, first-line-inherited, scrollbar, scrollbar-thumb, scrollbar-button, scrollbar-track, scrollbar-track-piece, scrollbar-corner, resizer, input-list-button + PseudoType string `json:"pseudoType"` // Pseudo element type. enum values: first-line, first-letter, before, after, marker, backdrop, selection, target-text, spelling-error, grammar-error, highlight, first-line-inherited, scrollbar, scrollbar-thumb, scrollbar-button, scrollbar-track, scrollbar-track-piece, scrollbar-corner, resizer, input-list-button, page-transition, page-transition-container, page-transition-image-wrapper, page-transition-outgoing-image, page-transition-incoming-image Matches []*CSSRuleMatch `json:"matches"` // Matches of CSS rules applicable to the pseudo style. } @@ -21,6 +21,11 @@ type CSSInheritedStyleEntry struct { MatchedCSSRules []*CSSRuleMatch `json:"matchedCSSRules"` // Matches of CSS rules matching the ancestor node in the style inheritance chain. } +// Inherited pseudo element matches from pseudos of an ancestor node. +type CSSInheritedPseudoElementMatches struct { + PseudoElements []*CSSPseudoElementMatches `json:"pseudoElements"` // Matches of pseudo styles from the pseudos of an ancestor node. +} + // Match data for a CSS rule. type CSSRuleMatch struct { Rule *CSSCSSRule `json:"rule"` // CSS rule in the match. @@ -68,6 +73,8 @@ type CSSCSSRule struct { Style *CSSCSSStyle `json:"style"` // Associated style declaration. Media []*CSSCSSMedia `json:"media,omitempty"` // Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards. ContainerQueries []*CSSCSSContainerQuery `json:"containerQueries,omitempty"` // Container query list array (for rules involving container queries). The array enumerates container queries starting with the innermost one, going outwards. + Supports []*CSSCSSSupports `json:"supports,omitempty"` // @supports CSS at-rule array. The array enumerates @supports at-rules starting with the innermost one, going outwards. + Layers []*CSSCSSLayer `json:"layers,omitempty"` // Cascade layer array. Contains the layer hierarchy that this rule belongs to starting with the innermost layer and going outwards. } // CSS coverage information. @@ -153,6 +160,28 @@ type CSSCSSContainerQuery struct { Name string `json:"name,omitempty"` // Optional name for the container. } +// CSS Supports at-rule descriptor. +type CSSCSSSupports struct { + Text string `json:"text"` // Supports rule text. + Active bool `json:"active"` // Whether the supports condition is satisfied. + Range *CSSSourceRange `json:"range,omitempty"` // The associated rule header range in the enclosing stylesheet (if available). + StyleSheetId string `json:"styleSheetId,omitempty"` // Identifier of the stylesheet containing this object (if exists). +} + +// CSS Layer at-rule descriptor. +type CSSCSSLayer struct { + Text string `json:"text"` // Layer name. + Range *CSSSourceRange `json:"range,omitempty"` // The associated rule header range in the enclosing stylesheet (if available). + StyleSheetId string `json:"styleSheetId,omitempty"` // Identifier of the stylesheet containing this object (if exists). +} + +// CSS Layer data. +type CSSCSSLayerData struct { + Name string `json:"name"` // Layer name. + SubLayers []*CSSCSSLayerData `json:"subLayers,omitempty"` // Direct sub-layers + Order float64 `json:"order"` // Layer order. The order determines the order of the layer in the cascade order. A higher number has higher priority in the cascade order. +} + // Information about amount of glyphs that were rendered with given font. type CSSPlatformFontUsage struct { FamilyName string `json:"familyName"` // Font's family name reported by platform. @@ -569,46 +598,47 @@ type CSSGetMatchedStylesForNodeParams struct { } // GetMatchedStylesForNodeWithParams - Returns requested styles for a DOM node identified by `nodeId`. -// Returns - inlineStyle - Inline style for the specified DOM node. attributesStyle - Attribute-defined element style (e.g. resulting from "width=20 height=100%"). matchedCSSRules - CSS rules matching this node, from all applicable stylesheets. pseudoElements - Pseudo style matches for this node. inherited - A chain of inherited styles (from the immediate node parent up to the DOM tree root). cssKeyframesRules - A list of CSS keyframed animations matching this node. -func (c *CSS) GetMatchedStylesForNodeWithParams(ctx context.Context, v *CSSGetMatchedStylesForNodeParams) (*CSSCSSStyle, *CSSCSSStyle, []*CSSRuleMatch, []*CSSPseudoElementMatches, []*CSSInheritedStyleEntry, []*CSSCSSKeyframesRule, error) { +// Returns - inlineStyle - Inline style for the specified DOM node. attributesStyle - Attribute-defined element style (e.g. resulting from "width=20 height=100%"). matchedCSSRules - CSS rules matching this node, from all applicable stylesheets. pseudoElements - Pseudo style matches for this node. inherited - A chain of inherited styles (from the immediate node parent up to the DOM tree root). inheritedPseudoElements - A chain of inherited pseudo element styles (from the immediate node parent up to the DOM tree root). cssKeyframesRules - A list of CSS keyframed animations matching this node. +func (c *CSS) GetMatchedStylesForNodeWithParams(ctx context.Context, v *CSSGetMatchedStylesForNodeParams) (*CSSCSSStyle, *CSSCSSStyle, []*CSSRuleMatch, []*CSSPseudoElementMatches, []*CSSInheritedStyleEntry, []*CSSInheritedPseudoElementMatches, []*CSSCSSKeyframesRule, error) { resp, err := c.target.SendCustomReturn(ctx, &gcdmessage.ParamRequest{Id: c.target.GetId(), Method: "CSS.getMatchedStylesForNode", Params: v}) if err != nil { - return nil, nil, nil, nil, nil, nil, err + return nil, nil, nil, nil, nil, nil, nil, err } var chromeData struct { Result struct { - InlineStyle *CSSCSSStyle - AttributesStyle *CSSCSSStyle - MatchedCSSRules []*CSSRuleMatch - PseudoElements []*CSSPseudoElementMatches - Inherited []*CSSInheritedStyleEntry - CssKeyframesRules []*CSSCSSKeyframesRule + InlineStyle *CSSCSSStyle + AttributesStyle *CSSCSSStyle + MatchedCSSRules []*CSSRuleMatch + PseudoElements []*CSSPseudoElementMatches + Inherited []*CSSInheritedStyleEntry + InheritedPseudoElements []*CSSInheritedPseudoElementMatches + CssKeyframesRules []*CSSCSSKeyframesRule } } if resp == nil { - return nil, nil, nil, nil, nil, nil, &gcdmessage.ChromeEmptyResponseErr{} + return nil, nil, nil, nil, nil, nil, nil, &gcdmessage.ChromeEmptyResponseErr{} } // test if error first cerr := &gcdmessage.ChromeErrorResponse{} json.Unmarshal(resp.Data, cerr) if cerr != nil && cerr.Error != nil { - return nil, nil, nil, nil, nil, nil, &gcdmessage.ChromeRequestErr{Resp: cerr} + return nil, nil, nil, nil, nil, nil, nil, &gcdmessage.ChromeRequestErr{Resp: cerr} } if err := json.Unmarshal(resp.Data, &chromeData); err != nil { - return nil, nil, nil, nil, nil, nil, err + return nil, nil, nil, nil, nil, nil, nil, err } - return chromeData.Result.InlineStyle, chromeData.Result.AttributesStyle, chromeData.Result.MatchedCSSRules, chromeData.Result.PseudoElements, chromeData.Result.Inherited, chromeData.Result.CssKeyframesRules, nil + return chromeData.Result.InlineStyle, chromeData.Result.AttributesStyle, chromeData.Result.MatchedCSSRules, chromeData.Result.PseudoElements, chromeData.Result.Inherited, chromeData.Result.InheritedPseudoElements, chromeData.Result.CssKeyframesRules, nil } // GetMatchedStylesForNode - Returns requested styles for a DOM node identified by `nodeId`. // nodeId - -// Returns - inlineStyle - Inline style for the specified DOM node. attributesStyle - Attribute-defined element style (e.g. resulting from "width=20 height=100%"). matchedCSSRules - CSS rules matching this node, from all applicable stylesheets. pseudoElements - Pseudo style matches for this node. inherited - A chain of inherited styles (from the immediate node parent up to the DOM tree root). cssKeyframesRules - A list of CSS keyframed animations matching this node. -func (c *CSS) GetMatchedStylesForNode(ctx context.Context, nodeId int) (*CSSCSSStyle, *CSSCSSStyle, []*CSSRuleMatch, []*CSSPseudoElementMatches, []*CSSInheritedStyleEntry, []*CSSCSSKeyframesRule, error) { +// Returns - inlineStyle - Inline style for the specified DOM node. attributesStyle - Attribute-defined element style (e.g. resulting from "width=20 height=100%"). matchedCSSRules - CSS rules matching this node, from all applicable stylesheets. pseudoElements - Pseudo style matches for this node. inherited - A chain of inherited styles (from the immediate node parent up to the DOM tree root). inheritedPseudoElements - A chain of inherited pseudo element styles (from the immediate node parent up to the DOM tree root). cssKeyframesRules - A list of CSS keyframed animations matching this node. +func (c *CSS) GetMatchedStylesForNode(ctx context.Context, nodeId int) (*CSSCSSStyle, *CSSCSSStyle, []*CSSRuleMatch, []*CSSPseudoElementMatches, []*CSSInheritedStyleEntry, []*CSSInheritedPseudoElementMatches, []*CSSCSSKeyframesRule, error) { var v CSSGetMatchedStylesForNodeParams v.NodeId = nodeId return c.GetMatchedStylesForNodeWithParams(ctx, &v) @@ -738,6 +768,52 @@ func (c *CSS) GetStyleSheetText(ctx context.Context, styleSheetId string) (strin return c.GetStyleSheetTextWithParams(ctx, &v) } +type CSSGetLayersForNodeParams struct { + // + NodeId int `json:"nodeId"` +} + +// GetLayersForNodeWithParams - Returns all layers parsed by the rendering engine for the tree scope of a node. Given a DOM element identified by nodeId, getLayersForNode returns the root layer for the nearest ancestor document or shadow root. The layer root contains the full layer tree for the tree scope and their ordering. +// Returns - rootLayer - +func (c *CSS) GetLayersForNodeWithParams(ctx context.Context, v *CSSGetLayersForNodeParams) (*CSSCSSLayerData, error) { + resp, err := c.target.SendCustomReturn(ctx, &gcdmessage.ParamRequest{Id: c.target.GetId(), Method: "CSS.getLayersForNode", Params: v}) + if err != nil { + return nil, err + } + + var chromeData struct { + Result struct { + RootLayer *CSSCSSLayerData + } + } + + if resp == nil { + return nil, &gcdmessage.ChromeEmptyResponseErr{} + } + + // test if error first + cerr := &gcdmessage.ChromeErrorResponse{} + json.Unmarshal(resp.Data, cerr) + if cerr != nil && cerr.Error != nil { + return nil, &gcdmessage.ChromeRequestErr{Resp: cerr} + } + + if err := json.Unmarshal(resp.Data, &chromeData); err != nil { + return nil, err + } + + return chromeData.Result.RootLayer, nil +} + +// GetLayersForNode - Returns all layers parsed by the rendering engine for the tree scope of a node. Given a DOM element identified by nodeId, getLayersForNode returns the root layer for the nearest ancestor document or shadow root. The layer root contains the full layer tree for the tree scope and their ordering. +// nodeId - +// Returns - rootLayer - +func (c *CSS) GetLayersForNode(ctx context.Context, nodeId int) (*CSSCSSLayerData, error) { + var v CSSGetLayersForNodeParams + v.NodeId = nodeId + return c.GetLayersForNodeWithParams(ctx, &v) +} + type CSSTrackComputedStyleUpdatesParams struct { // PropertiesToTrack []*CSSCSSComputedStyleProperty `json:"propertiesToTrack"` @@ -976,6 +1052,60 @@ func (c *CSS) SetContainerQueryText(ctx context.Context, styleSheetId string, th return c.SetContainerQueryTextWithParams(ctx, &v) } +type CSSSetSupportsTextParams struct { + // + StyleSheetId string `json:"styleSheetId"` + // + TheRange *CSSSourceRange `json:"range"` + // + Text string `json:"text"` +} + +// SetSupportsTextWithParams - Modifies the expression of a supports at-rule. +// Returns - supports - The resulting CSS Supports rule after modification. +func (c *CSS) SetSupportsTextWithParams(ctx context.Context, v *CSSSetSupportsTextParams) (*CSSCSSSupports, error) { + resp, err := c.target.SendCustomReturn(ctx, &gcdmessage.ParamRequest{Id: c.target.GetId(), Method: "CSS.setSupportsText", Params: v}) + if err != nil { + return nil, err + } + + var chromeData struct { + Result struct { + Supports *CSSCSSSupports + } + } + + if resp == nil { + return nil, &gcdmessage.ChromeEmptyResponseErr{} + } + + // test if error first + cerr := &gcdmessage.ChromeErrorResponse{} + json.Unmarshal(resp.Data, cerr) + if cerr != nil && cerr.Error != nil { + return nil, &gcdmessage.ChromeRequestErr{Resp: cerr} + } + + if err := json.Unmarshal(resp.Data, &chromeData); err != nil { + return nil, err + } + + return chromeData.Result.Supports, nil +} + +// SetSupportsText - Modifies the expression of a supports at-rule. +// styleSheetId - +// range - +// text - +// Returns - supports - The resulting CSS Supports rule after modification. +func (c *CSS) SetSupportsText(ctx context.Context, styleSheetId string, theRange *CSSSourceRange, text string) (*CSSCSSSupports, error) { + var v CSSSetSupportsTextParams + v.StyleSheetId = styleSheetId + v.TheRange = theRange + v.Text = text + return c.SetSupportsTextWithParams(ctx, &v) +} + type CSSSetRuleSelectorParams struct { // StyleSheetId string `json:"styleSheetId"` diff --git a/v2/gcdapi/dom.go b/v2/gcdapi/dom.go index 8cc6d2a..a56222a 100644 --- a/v2/gcdapi/dom.go +++ b/v2/gcdapi/dom.go @@ -36,7 +36,7 @@ type DOMNode struct { XmlVersion string `json:"xmlVersion,omitempty"` // `Document`'s XML version in case of XML documents. Name string `json:"name,omitempty"` // `Attr`'s name. Value string `json:"value,omitempty"` // `Attr`'s value. - PseudoType string `json:"pseudoType,omitempty"` // Pseudo element type for this node. enum values: first-line, first-letter, before, after, marker, backdrop, selection, target-text, spelling-error, grammar-error, highlight, first-line-inherited, scrollbar, scrollbar-thumb, scrollbar-button, scrollbar-track, scrollbar-track-piece, scrollbar-corner, resizer, input-list-button + PseudoType string `json:"pseudoType,omitempty"` // Pseudo element type for this node. enum values: first-line, first-letter, before, after, marker, backdrop, selection, target-text, spelling-error, grammar-error, highlight, first-line-inherited, scrollbar, scrollbar-thumb, scrollbar-button, scrollbar-track, scrollbar-track-piece, scrollbar-corner, resizer, input-list-button, page-transition, page-transition-container, page-transition-image-wrapper, page-transition-outgoing-image, page-transition-incoming-image ShadowRootType string `json:"shadowRootType,omitempty"` // Shadow root type. enum values: user-agent, open, closed FrameId string `json:"frameId,omitempty"` // Frame ID for frame owner elements. ContentDocument *DOMNode `json:"contentDocument,omitempty"` // Content document for frame owner elements. @@ -431,9 +431,22 @@ func (c *DOM) DiscardSearchResults(ctx context.Context, searchId string) (*gcdme return c.DiscardSearchResultsWithParams(ctx, &v) } -// Enables DOM agent for the given page. -func (c *DOM) Enable(ctx context.Context) (*gcdmessage.ChromeResponse, error) { - return c.target.SendDefaultRequest(ctx, &gcdmessage.ParamRequest{Id: c.target.GetId(), Method: "DOM.enable"}) +type DOMEnableParams struct { + // Whether to include whitespaces in the children array of returned Nodes. + IncludeWhitespace string `json:"includeWhitespace,omitempty"` +} + +// EnableWithParams - Enables DOM agent for the given page. +func (c *DOM) EnableWithParams(ctx context.Context, v *DOMEnableParams) (*gcdmessage.ChromeResponse, error) { + return c.target.SendDefaultRequest(ctx, &gcdmessage.ParamRequest{Id: c.target.GetId(), Method: "DOM.enable", Params: v}) +} + +// Enable - Enables DOM agent for the given page. +// includeWhitespace - Whether to include whitespaces in the children array of returned Nodes. +func (c *DOM) Enable(ctx context.Context, includeWhitespace string) (*gcdmessage.ChromeResponse, error) { + var v DOMEnableParams + v.IncludeWhitespace = includeWhitespace + return c.EnableWithParams(ctx, &v) } type DOMFocusParams struct { diff --git a/v2/gcdapi/domsnapshot.go b/v2/gcdapi/domsnapshot.go index 164afdf..4fbc2e8 100644 --- a/v2/gcdapi/domsnapshot.go +++ b/v2/gcdapi/domsnapshot.go @@ -31,7 +31,7 @@ type DOMSnapshotDOMNode struct { SystemId string `json:"systemId,omitempty"` // `DocumentType` node's systemId. FrameId string `json:"frameId,omitempty"` // Frame ID for frame owner elements and also for the document node. ContentDocumentIndex int `json:"contentDocumentIndex,omitempty"` // The index of a frame owner element's content document in the `domNodes` array returned by `getSnapshot`, if any. - PseudoType string `json:"pseudoType,omitempty"` // Type of a pseudo element node. enum values: first-line, first-letter, before, after, marker, backdrop, selection, target-text, spelling-error, grammar-error, highlight, first-line-inherited, scrollbar, scrollbar-thumb, scrollbar-button, scrollbar-track, scrollbar-track-piece, scrollbar-corner, resizer, input-list-button + PseudoType string `json:"pseudoType,omitempty"` // Type of a pseudo element node. enum values: first-line, first-letter, before, after, marker, backdrop, selection, target-text, spelling-error, grammar-error, highlight, first-line-inherited, scrollbar, scrollbar-thumb, scrollbar-button, scrollbar-track, scrollbar-track-piece, scrollbar-corner, resizer, input-list-button, page-transition, page-transition-container, page-transition-image-wrapper, page-transition-outgoing-image, page-transition-incoming-image ShadowRootType string `json:"shadowRootType,omitempty"` // Shadow root type. enum values: user-agent, open, closed IsClickable bool `json:"isClickable,omitempty"` // Whether this DOM node responds to mouse clicks. This includes nodes that have had click event listeners attached via JavaScript as well as anchor tags that naturally navigate when clicked. EventListeners []*DOMDebuggerEventListener `json:"eventListeners,omitempty"` // Details of the node's event listeners, if any. diff --git a/v2/gcdapi/emulation.go b/v2/gcdapi/emulation.go index e760d93..65bd10a 100644 --- a/v2/gcdapi/emulation.go +++ b/v2/gcdapi/emulation.go @@ -474,8 +474,6 @@ type EmulationSetVirtualTimePolicyParams struct { Budget float64 `json:"budget,omitempty"` // If set this specifies the maximum number of tasks that can be run before virtual is forced forwards to prevent deadlock. MaxVirtualTimeTaskStarvationCount int `json:"maxVirtualTimeTaskStarvationCount,omitempty"` - // If set the virtual time policy change should be deferred until any frame starts navigating. Note any previous deferred policy change is superseded. - WaitForNavigation bool `json:"waitForNavigation,omitempty"` // If set, base::Time::Now will be overridden to initially return this value. InitialVirtualTime float64 `json:"initialVirtualTime,omitempty"` } @@ -516,15 +514,13 @@ func (c *Emulation) SetVirtualTimePolicyWithParams(ctx context.Context, v *Emula // policy - enum values: advance, pause, pauseIfNetworkFetchesPending // budget - If set, after this many virtual milliseconds have elapsed virtual time will be paused and a virtualTimeBudgetExpired event is sent. // maxVirtualTimeTaskStarvationCount - If set this specifies the maximum number of tasks that can be run before virtual is forced forwards to prevent deadlock. -// waitForNavigation - If set the virtual time policy change should be deferred until any frame starts navigating. Note any previous deferred policy change is superseded. // initialVirtualTime - If set, base::Time::Now will be overridden to initially return this value. // Returns - virtualTimeTicksBase - Absolute timestamp at which virtual time was first enabled (up time in milliseconds). -func (c *Emulation) SetVirtualTimePolicy(ctx context.Context, policy string, budget float64, maxVirtualTimeTaskStarvationCount int, waitForNavigation bool, initialVirtualTime float64) (float64, error) { +func (c *Emulation) SetVirtualTimePolicy(ctx context.Context, policy string, budget float64, maxVirtualTimeTaskStarvationCount int, initialVirtualTime float64) (float64, error) { var v EmulationSetVirtualTimePolicyParams v.Policy = policy v.Budget = budget v.MaxVirtualTimeTaskStarvationCount = maxVirtualTimeTaskStarvationCount - v.WaitForNavigation = waitForNavigation v.InitialVirtualTime = initialVirtualTime return c.SetVirtualTimePolicyWithParams(ctx, &v) } @@ -634,3 +630,21 @@ func (c *Emulation) SetUserAgentOverride(ctx context.Context, userAgent string, v.UserAgentMetadata = userAgentMetadata return c.SetUserAgentOverrideWithParams(ctx, &v) } + +type EmulationSetAutomationOverrideParams struct { + // Whether the override should be enabled. + Enabled bool `json:"enabled"` +} + +// SetAutomationOverrideWithParams - Allows overriding the automation flag. +func (c *Emulation) SetAutomationOverrideWithParams(ctx context.Context, v *EmulationSetAutomationOverrideParams) (*gcdmessage.ChromeResponse, error) { + return c.target.SendDefaultRequest(ctx, &gcdmessage.ParamRequest{Id: c.target.GetId(), Method: "Emulation.setAutomationOverride", Params: v}) +} + +// SetAutomationOverride - Allows overriding the automation flag. +// enabled - Whether the override should be enabled. +func (c *Emulation) SetAutomationOverride(ctx context.Context, enabled bool) (*gcdmessage.ChromeResponse, error) { + var v EmulationSetAutomationOverrideParams + v.Enabled = enabled + return c.SetAutomationOverrideWithParams(ctx, &v) +} diff --git a/v2/gcdapi/input.go b/v2/gcdapi/input.go index 66020f3..79d08fb 100644 --- a/v2/gcdapi/input.go +++ b/v2/gcdapi/input.go @@ -119,7 +119,7 @@ type InputDispatchKeyEventParams struct { IsSystemKey bool `json:"isSystemKey,omitempty"` // Whether the event was from the left or right side of the keyboard. 1=Left, 2=Right (default: 0). Location int `json:"location,omitempty"` - // Editing commands to send with the key event (e.g., 'selectAll') (default: []). These are related to but not equal the command names used in `document.execCommand` and NSStandardKeyBindingResponding. See https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/editing/commands/editor_command_names.h for valid command names. + // Editing commands to send with the key event (e.g., 'selectAll') (default: []). These are related to but not equal the command names used in `document.execCommand` and NSStandardKeyBindingResponding. See https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/editing/commands/editor_command_names.h for valid command names. Commands []string `json:"commands,omitempty"` } @@ -143,7 +143,7 @@ func (c *Input) DispatchKeyEventWithParams(ctx context.Context, v *InputDispatch // isKeypad - Whether the event was generated from the keypad (default: false). // isSystemKey - Whether the event was a system key event (default: false). // location - Whether the event was from the left or right side of the keyboard. 1=Left, 2=Right (default: 0). -// commands - Editing commands to send with the key event (e.g., 'selectAll') (default: []). These are related to but not equal the command names used in `document.execCommand` and NSStandardKeyBindingResponding. See https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/editing/commands/editor_command_names.h for valid command names. +// commands - Editing commands to send with the key event (e.g., 'selectAll') (default: []). These are related to but not equal the command names used in `document.execCommand` and NSStandardKeyBindingResponding. See https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/editing/commands/editor_command_names.h for valid command names. func (c *Input) DispatchKeyEvent(ctx context.Context, theType string, modifiers int, timestamp float64, text string, unmodifiedText string, keyIdentifier string, code string, key string, windowsVirtualKeyCode int, nativeVirtualKeyCode int, autoRepeat bool, isKeypad bool, isSystemKey bool, location int, commands []string) (*gcdmessage.ChromeResponse, error) { var v InputDispatchKeyEventParams v.TheType = theType diff --git a/v2/gcdapi/network.go b/v2/gcdapi/network.go index 79543da..59c4e26 100644 --- a/v2/gcdapi/network.go +++ b/v2/gcdapi/network.go @@ -84,7 +84,7 @@ type NetworkSecurityDetails struct { // No Description. type NetworkCorsErrorStatus struct { - CorsError string `json:"corsError"` // enum values: DisallowedByMode, InvalidResponse, WildcardOriginNotAllowed, MissingAllowOriginHeader, MultipleAllowOriginValues, InvalidAllowOriginValue, AllowOriginMismatch, InvalidAllowCredentials, CorsDisabledScheme, PreflightInvalidStatus, PreflightDisallowedRedirect, PreflightWildcardOriginNotAllowed, PreflightMissingAllowOriginHeader, PreflightMultipleAllowOriginValues, PreflightInvalidAllowOriginValue, PreflightAllowOriginMismatch, PreflightInvalidAllowCredentials, PreflightMissingAllowExternal, PreflightInvalidAllowExternal, InvalidAllowMethodsPreflightResponse, InvalidAllowHeadersPreflightResponse, MethodDisallowedByPreflightResponse, HeaderDisallowedByPreflightResponse, RedirectContainsCredentials, InsecurePrivateNetwork, InvalidPrivateNetworkAccess, UnexpectedPrivateNetworkAccess, NoCorsRedirectModeNotFollow + CorsError string `json:"corsError"` // enum values: DisallowedByMode, InvalidResponse, WildcardOriginNotAllowed, MissingAllowOriginHeader, MultipleAllowOriginValues, InvalidAllowOriginValue, AllowOriginMismatch, InvalidAllowCredentials, CorsDisabledScheme, PreflightInvalidStatus, PreflightDisallowedRedirect, PreflightWildcardOriginNotAllowed, PreflightMissingAllowOriginHeader, PreflightMultipleAllowOriginValues, PreflightInvalidAllowOriginValue, PreflightAllowOriginMismatch, PreflightInvalidAllowCredentials, PreflightMissingAllowExternal, PreflightInvalidAllowExternal, PreflightMissingAllowPrivateNetwork, PreflightInvalidAllowPrivateNetwork, InvalidAllowMethodsPreflightResponse, InvalidAllowHeadersPreflightResponse, MethodDisallowedByPreflightResponse, HeaderDisallowedByPreflightResponse, RedirectContainsCredentials, InsecurePrivateNetwork, InvalidPrivateNetworkAccess, UnexpectedPrivateNetworkAccess, NoCorsRedirectModeNotFollow FailedParameter string `json:"failedParameter"` // } @@ -286,8 +286,8 @@ type NetworkClientSecurityState struct { // No Description. type NetworkCrossOriginOpenerPolicyStatus struct { - Value string `json:"value"` // enum values: SameOrigin, SameOriginAllowPopups, UnsafeNone, SameOriginPlusCoep - ReportOnlyValue string `json:"reportOnlyValue"` // enum values: SameOrigin, SameOriginAllowPopups, UnsafeNone, SameOriginPlusCoep + Value string `json:"value"` // enum values: SameOrigin, SameOriginAllowPopups, UnsafeNone, SameOriginPlusCoep, SameOriginAllowPopupsPlusCoep + ReportOnlyValue string `json:"reportOnlyValue"` // enum values: SameOrigin, SameOriginAllowPopups, UnsafeNone, SameOriginPlusCoep, SameOriginAllowPopupsPlusCoep ReportingEndpoint string `json:"reportingEndpoint,omitempty"` // ReportOnlyReportingEndpoint string `json:"reportOnlyReportingEndpoint,omitempty"` // } diff --git a/v2/gcdapi/overlay.go b/v2/gcdapi/overlay.go index 37c421d..9ca5fbd 100644 --- a/v2/gcdapi/overlay.go +++ b/v2/gcdapi/overlay.go @@ -85,7 +85,7 @@ type OverlayHighlightConfig struct { ShapeColor *DOMRGBA `json:"shapeColor,omitempty"` // The shape outside fill color (default: transparent). ShapeMarginColor *DOMRGBA `json:"shapeMarginColor,omitempty"` // The shape margin fill color (default: transparent). CssGridColor *DOMRGBA `json:"cssGridColor,omitempty"` // The grid layout color (default: transparent). - ColorFormat string `json:"colorFormat,omitempty"` // The color format used to format color styles (default: hex). enum values: rgb, hsl, hex + ColorFormat string `json:"colorFormat,omitempty"` // The color format used to format color styles (default: hex). enum values: rgb, hsl, hwb, hex GridHighlightConfig *OverlayGridHighlightConfig `json:"gridHighlightConfig,omitempty"` // The grid layout highlight configuration (default: all transparent). FlexContainerHighlightConfig *OverlayFlexContainerHighlightConfig `json:"flexContainerHighlightConfig,omitempty"` // The flex container highlight configuration (default: all transparent). FlexItemHighlightConfig *OverlayFlexItemHighlightConfig `json:"flexItemHighlightConfig,omitempty"` // The flex item highlight configuration (default: all transparent). @@ -201,7 +201,7 @@ type OverlayGetHighlightObjectForTestParams struct { IncludeDistance bool `json:"includeDistance,omitempty"` // Whether to include style info. IncludeStyle bool `json:"includeStyle,omitempty"` - // The color format to get config with (default: hex). enum values: rgb, hsl, hex + // The color format to get config with (default: hex). enum values: rgb, hsl, hwb, hex ColorFormat string `json:"colorFormat,omitempty"` // Whether to show accessibility info (default: true). ShowAccessibilityInfo bool `json:"showAccessibilityInfo,omitempty"` @@ -243,7 +243,7 @@ func (c *Overlay) GetHighlightObjectForTestWithParams(ctx context.Context, v *Ov // nodeId - Id of the node to get highlight object for. // includeDistance - Whether to include distance info. // includeStyle - Whether to include style info. -// colorFormat - The color format to get config with (default: hex). enum values: rgb, hsl, hex +// colorFormat - The color format to get config with (default: hex). enum values: rgb, hsl, hwb, hex // showAccessibilityInfo - Whether to show accessibility info (default: true). // Returns - highlight - Highlight data for the node. func (c *Overlay) GetHighlightObjectForTest(ctx context.Context, nodeId int, includeDistance bool, includeStyle bool, colorFormat string, showAccessibilityInfo bool) (map[string]interface{}, error) { @@ -732,12 +732,12 @@ type OverlaySetShowHitTestBordersParams struct { Show bool `json:"show"` } -// SetShowHitTestBordersWithParams - Requests that backend shows hit-test borders on layers +// SetShowHitTestBordersWithParams - Deprecated, no longer has any effect. func (c *Overlay) SetShowHitTestBordersWithParams(ctx context.Context, v *OverlaySetShowHitTestBordersParams) (*gcdmessage.ChromeResponse, error) { return c.target.SendDefaultRequest(ctx, &gcdmessage.ParamRequest{Id: c.target.GetId(), Method: "Overlay.setShowHitTestBorders", Params: v}) } -// SetShowHitTestBorders - Requests that backend shows hit-test borders on layers +// SetShowHitTestBorders - Deprecated, no longer has any effect. // show - True for showing hit-test borders func (c *Overlay) SetShowHitTestBorders(ctx context.Context, show bool) (*gcdmessage.ChromeResponse, error) { var v OverlaySetShowHitTestBordersParams diff --git a/v2/gcdapi/page.go b/v2/gcdapi/page.go index e39616b..cdd4c60 100644 --- a/v2/gcdapi/page.go +++ b/v2/gcdapi/page.go @@ -18,12 +18,12 @@ type PageAdFrameStatus struct { // No Description. type PagePermissionsPolicyBlockLocator struct { FrameId string `json:"frameId"` // - BlockReason string `json:"blockReason"` // enum values: Header, IframeAttribute + BlockReason string `json:"blockReason"` // enum values: Header, IframeAttribute, InFencedFrameTree } // No Description. type PagePermissionsPolicyFeatureState struct { - Feature string `json:"feature"` // enum values: accelerometer, ambient-light-sensor, attribution-reporting, autoplay, camera, ch-dpr, ch-device-memory, ch-downlink, ch-ect, ch-prefers-color-scheme, ch-rtt, ch-ua, ch-ua-arch, ch-ua-bitness, ch-ua-platform, ch-ua-model, ch-ua-mobile, ch-ua-full-version, ch-ua-full-version-list, ch-ua-platform-version, ch-ua-reduced, ch-viewport-height, ch-viewport-width, ch-width, clipboard-read, clipboard-write, cross-origin-isolated, direct-sockets, display-capture, document-domain, encrypted-media, execution-while-out-of-viewport, execution-while-not-rendered, focus-without-user-activation, fullscreen, frobulate, gamepad, geolocation, gyroscope, hid, idle-detection, interest-cohort, join-ad-interest-group, keyboard-map, magnetometer, microphone, midi, otp-credentials, payment, picture-in-picture, publickey-credentials-get, run-ad-auction, screen-wake-lock, serial, shared-autofill, storage-access-api, sync-xhr, trust-token-redemption, usb, vertical-scroll, web-share, window-placement, xr-spatial-tracking + Feature string `json:"feature"` // enum values: accelerometer, ambient-light-sensor, attribution-reporting, autoplay, browsing-topics, camera, ch-dpr, ch-device-memory, ch-downlink, ch-ect, ch-prefers-color-scheme, ch-rtt, ch-ua, ch-ua-arch, ch-ua-bitness, ch-ua-platform, ch-ua-model, ch-ua-mobile, ch-ua-full, ch-ua-full-version, ch-ua-full-version-list, ch-ua-platform-version, ch-ua-reduced, ch-ua-wow64, ch-viewport-height, ch-viewport-width, ch-width, ch-partitioned-cookies, clipboard-read, clipboard-write, cross-origin-isolated, direct-sockets, display-capture, document-domain, encrypted-media, execution-while-out-of-viewport, execution-while-not-rendered, focus-without-user-activation, fullscreen, frobulate, gamepad, geolocation, gyroscope, hid, idle-detection, interest-cohort, join-ad-interest-group, keyboard-map, magnetometer, microphone, midi, otp-credentials, payment, picture-in-picture, publickey-credentials-get, run-ad-auction, screen-wake-lock, serial, shared-autofill, storage-access-api, sync-xhr, trust-token-redemption, usb, vertical-scroll, web-share, window-placement, xr-spatial-tracking Allowed bool `json:"allowed"` // Locator *PagePermissionsPolicyBlockLocator `json:"locator,omitempty"` // } @@ -167,6 +167,12 @@ type PageFontFamilies struct { Pictograph string `json:"pictograph,omitempty"` // The pictograph font-family. } +// Font families collection for a script. +type PageScriptFontFamilies struct { + Script string `json:"script"` // Name of the script which these font families are defined for. + FontFamilies *PageFontFamilies `json:"fontFamilies"` // Generic font families collection for the script. +} + // Default font sizes. type PageFontSizes struct { Standard int `json:"standard,omitempty"` // Default standard font size. @@ -193,8 +199,16 @@ type PageCompilationCacheParams struct { // No Description. type PageBackForwardCacheNotRestoredExplanation struct { - Type string `json:"type"` // Type of the reason enum values: SupportPending, PageSupportNeeded, Circumstantial - Reason string `json:"reason"` // Not restored reason enum values: NotMainFrame, BackForwardCacheDisabled, RelatedActiveContentsExist, HTTPStatusNotOK, SchemeNotHTTPOrHTTPS, Loading, WasGrantedMediaAccess, DisableForRenderFrameHostCalled, DomainNotAllowed, HTTPMethodNotGET, SubframeIsNavigating, Timeout, CacheLimit, JavaScriptExecution, RendererProcessKilled, RendererProcessCrashed, GrantedMediaStreamAccess, SchedulerTrackedFeatureUsed, ConflictingBrowsingInstance, CacheFlushed, ServiceWorkerVersionActivation, SessionRestored, ServiceWorkerPostMessage, EnteredBackForwardCacheBeforeServiceWorkerHostAdded, RenderFrameHostReused_SameSite, RenderFrameHostReused_CrossSite, ServiceWorkerClaim, IgnoreEventAndEvict, HaveInnerContents, TimeoutPuttingInCache, BackForwardCacheDisabledByLowMemory, BackForwardCacheDisabledByCommandLine, NetworkRequestDatapipeDrainedAsBytesConsumer, NetworkRequestRedirected, NetworkRequestTimeout, NetworkExceedsBufferLimit, NavigationCancelledWhileRestoring, NotMostRecentNavigationEntry, BackForwardCacheDisabledForPrerender, UserAgentOverrideDiffers, ForegroundCacheLimit, BrowsingInstanceNotSwapped, BackForwardCacheDisabledForDelegate, OptInUnloadHeaderNotPresent, UnloadHandlerExistsInMainFrame, UnloadHandlerExistsInSubFrame, ServiceWorkerUnregistration, CacheControlNoStore, CacheControlNoStoreCookieModified, CacheControlNoStoreHTTPOnlyCookieModified, NoResponseHead, Unknown, ActivationNavigationsDisallowedForBug1234857, WebSocket, WebTransport, WebRTC, MainResourceHasCacheControlNoStore, MainResourceHasCacheControlNoCache, SubresourceHasCacheControlNoStore, SubresourceHasCacheControlNoCache, ContainsPlugins, DocumentLoaded, DedicatedWorkerOrWorklet, OutstandingNetworkRequestOthers, OutstandingIndexedDBTransaction, RequestedNotificationsPermission, RequestedMIDIPermission, RequestedAudioCapturePermission, RequestedVideoCapturePermission, RequestedBackForwardCacheBlockedSensors, RequestedBackgroundWorkPermission, BroadcastChannel, IndexedDBConnection, WebXR, SharedWorker, WebLocks, WebHID, WebShare, RequestedStorageAccessGrant, WebNfc, OutstandingNetworkRequestFetch, OutstandingNetworkRequestXHR, AppBanner, Printing, WebDatabase, PictureInPicture, Portal, SpeechRecognizer, IdleManager, PaymentManager, SpeechSynthesis, KeyboardLock, WebOTPService, OutstandingNetworkRequestDirectSocket, InjectedJavascript, InjectedStyleSheet, Dummy, ContentSecurityHandler, ContentWebAuthenticationAPI, ContentFileChooser, ContentSerial, ContentFileSystemAccess, ContentMediaDevicesDispatcherHost, ContentWebBluetooth, ContentWebUSB, ContentMediaSession, ContentMediaSessionService, EmbedderPopupBlockerTabHelper, EmbedderSafeBrowsingTriggeredPopupBlocker, EmbedderSafeBrowsingThreatDetails, EmbedderAppBannerManager, EmbedderDomDistillerViewerSource, EmbedderDomDistillerSelfDeletingRequestDelegate, EmbedderOomInterventionTabHelper, EmbedderOfflinePage, EmbedderChromePasswordManagerClientBindCredentialManager, EmbedderPermissionRequestManager, EmbedderModalDialog, EmbedderExtensions, EmbedderExtensionMessaging, EmbedderExtensionMessagingForOpenPort, EmbedderExtensionSentMessageToCachedFrame + Type string `json:"type"` // Type of the reason enum values: SupportPending, PageSupportNeeded, Circumstantial + Reason string `json:"reason"` // Not restored reason enum values: NotPrimaryMainFrame, BackForwardCacheDisabled, RelatedActiveContentsExist, HTTPStatusNotOK, SchemeNotHTTPOrHTTPS, Loading, WasGrantedMediaAccess, DisableForRenderFrameHostCalled, DomainNotAllowed, HTTPMethodNotGET, SubframeIsNavigating, Timeout, CacheLimit, JavaScriptExecution, RendererProcessKilled, RendererProcessCrashed, GrantedMediaStreamAccess, SchedulerTrackedFeatureUsed, ConflictingBrowsingInstance, CacheFlushed, ServiceWorkerVersionActivation, SessionRestored, ServiceWorkerPostMessage, EnteredBackForwardCacheBeforeServiceWorkerHostAdded, RenderFrameHostReused_SameSite, RenderFrameHostReused_CrossSite, ServiceWorkerClaim, IgnoreEventAndEvict, HaveInnerContents, TimeoutPuttingInCache, BackForwardCacheDisabledByLowMemory, BackForwardCacheDisabledByCommandLine, NetworkRequestDatapipeDrainedAsBytesConsumer, NetworkRequestRedirected, NetworkRequestTimeout, NetworkExceedsBufferLimit, NavigationCancelledWhileRestoring, NotMostRecentNavigationEntry, BackForwardCacheDisabledForPrerender, UserAgentOverrideDiffers, ForegroundCacheLimit, BrowsingInstanceNotSwapped, BackForwardCacheDisabledForDelegate, OptInUnloadHeaderNotPresent, UnloadHandlerExistsInMainFrame, UnloadHandlerExistsInSubFrame, ServiceWorkerUnregistration, CacheControlNoStore, CacheControlNoStoreCookieModified, CacheControlNoStoreHTTPOnlyCookieModified, NoResponseHead, Unknown, ActivationNavigationsDisallowedForBug1234857, ErrorDocument, WebSocket, WebTransport, WebRTC, MainResourceHasCacheControlNoStore, MainResourceHasCacheControlNoCache, SubresourceHasCacheControlNoStore, SubresourceHasCacheControlNoCache, ContainsPlugins, DocumentLoaded, DedicatedWorkerOrWorklet, OutstandingNetworkRequestOthers, OutstandingIndexedDBTransaction, RequestedNotificationsPermission, RequestedMIDIPermission, RequestedAudioCapturePermission, RequestedVideoCapturePermission, RequestedBackForwardCacheBlockedSensors, RequestedBackgroundWorkPermission, BroadcastChannel, IndexedDBConnection, WebXR, SharedWorker, WebLocks, WebHID, WebShare, RequestedStorageAccessGrant, WebNfc, OutstandingNetworkRequestFetch, OutstandingNetworkRequestXHR, AppBanner, Printing, WebDatabase, PictureInPicture, Portal, SpeechRecognizer, IdleManager, PaymentManager, SpeechSynthesis, KeyboardLock, WebOTPService, OutstandingNetworkRequestDirectSocket, InjectedJavascript, InjectedStyleSheet, Dummy, ContentSecurityHandler, ContentWebAuthenticationAPI, ContentFileChooser, ContentSerial, ContentFileSystemAccess, ContentMediaDevicesDispatcherHost, ContentWebBluetooth, ContentWebUSB, ContentMediaSession, ContentMediaSessionService, ContentScreenReader, EmbedderPopupBlockerTabHelper, EmbedderSafeBrowsingTriggeredPopupBlocker, EmbedderSafeBrowsingThreatDetails, EmbedderAppBannerManager, EmbedderDomDistillerViewerSource, EmbedderDomDistillerSelfDeletingRequestDelegate, EmbedderOomInterventionTabHelper, EmbedderOfflinePage, EmbedderChromePasswordManagerClientBindCredentialManager, EmbedderPermissionRequestManager, EmbedderModalDialog, EmbedderExtensions, EmbedderExtensionMessaging, EmbedderExtensionMessagingForOpenPort, EmbedderExtensionSentMessageToCachedFrame + Context string `json:"context,omitempty"` // Context associated with the reason. The meaning of this context is dependent on the reason: - EmbedderExtensionSentMessageToCachedFrame: the extension ID. +} + +// No Description. +type PageBackForwardCacheNotRestoredExplanationTree struct { + Url string `json:"url"` // URL of each frame + Explanations []*PageBackForwardCacheNotRestoredExplanation `json:"explanations"` // Not restored reasons of each frame + Children []*PageBackForwardCacheNotRestoredExplanationTree `json:"children"` // Array of children frame } // @@ -355,9 +369,10 @@ type PageLifecycleEventEvent struct { type PageBackForwardCacheNotUsedEvent struct { Method string `json:"method"` Params struct { - LoaderId string `json:"loaderId"` // The loader id for the associated navgation. - FrameId string `json:"frameId"` // The frame id of the associated frame. - NotRestoredExplanations []*PageBackForwardCacheNotRestoredExplanation `json:"notRestoredExplanations"` // Array of reasons why the page could not be cached. This must not be empty. + LoaderId string `json:"loaderId"` // The loader id for the associated navgation. + FrameId string `json:"frameId"` // The frame id of the associated frame. + NotRestoredExplanations []*PageBackForwardCacheNotRestoredExplanation `json:"notRestoredExplanations"` // Array of reasons why the page could not be cached. This must not be empty. + NotRestoredExplanationsTree *PageBackForwardCacheNotRestoredExplanationTree `json:"notRestoredExplanationsTree,omitempty"` // Tree structure of reasons why the page could not be cached for each frame. } `json:"Params,omitempty"` } @@ -1661,6 +1676,8 @@ func (c *Page) SetDeviceOrientationOverride(ctx context.Context, alpha float64, type PageSetFontFamiliesParams struct { // Specifies font families to set. If a font family is not specified, it won't be changed. FontFamilies *PageFontFamilies `json:"fontFamilies"` + // Specifies font families to set for individual scripts. + ForScripts []*PageScriptFontFamilies `json:"forScripts,omitempty"` } // SetFontFamiliesWithParams - Set generic font families. @@ -1670,9 +1687,11 @@ func (c *Page) SetFontFamiliesWithParams(ctx context.Context, v *PageSetFontFami // SetFontFamilies - Set generic font families. // fontFamilies - Specifies font families to set. If a font family is not specified, it won't be changed. -func (c *Page) SetFontFamilies(ctx context.Context, fontFamilies *PageFontFamilies) (*gcdmessage.ChromeResponse, error) { +// forScripts - Specifies font families to set for individual scripts. +func (c *Page) SetFontFamilies(ctx context.Context, fontFamilies *PageFontFamilies, forScripts []*PageScriptFontFamilies) (*gcdmessage.ChromeResponse, error) { var v PageSetFontFamiliesParams v.FontFamilies = fontFamilies + v.ForScripts = forScripts return c.SetFontFamiliesWithParams(ctx, &v) } diff --git a/v2/gcdapi/storage.go b/v2/gcdapi/storage.go index 899e086..003ad85 100644 --- a/v2/gcdapi/storage.go +++ b/v2/gcdapi/storage.go @@ -11,7 +11,7 @@ import ( // Usage for a storage type. type StorageUsageForType struct { - StorageType string `json:"storageType"` // Name of storage type. enum values: appcache, cookies, file_systems, indexeddb, local_storage, shader_cache, websql, service_workers, cache_storage, all, other + StorageType string `json:"storageType"` // Name of storage type. enum values: appcache, cookies, file_systems, indexeddb, local_storage, shader_cache, websql, service_workers, cache_storage, interest_groups, all, other Usage float64 `json:"usage"` // Storage usage (bytes). } @@ -21,6 +21,28 @@ type StorageTrustTokens struct { Count float64 `json:"count"` // } +// Ad advertising element inside an interest group. +type StorageInterestGroupAd struct { + RenderUrl string `json:"renderUrl"` // + Metadata string `json:"metadata,omitempty"` // +} + +// The full details of an interest group. +type StorageInterestGroupDetails struct { + OwnerOrigin string `json:"ownerOrigin"` // + Name string `json:"name"` // + ExpirationTime float64 `json:"expirationTime"` // + JoiningOrigin string `json:"joiningOrigin"` // + BiddingUrl string `json:"biddingUrl,omitempty"` // + BiddingWasmHelperUrl string `json:"biddingWasmHelperUrl,omitempty"` // + UpdateUrl string `json:"updateUrl,omitempty"` // + TrustedBiddingSignalsUrl string `json:"trustedBiddingSignalsUrl,omitempty"` // + TrustedBiddingSignalsKeys []string `json:"trustedBiddingSignalsKeys"` // + UserBiddingSignals string `json:"userBiddingSignals,omitempty"` // + Ads []*StorageInterestGroupAd `json:"ads"` // + AdComponents []*StorageInterestGroupAd `json:"adComponents"` // +} + // A cache's contents have been modified. type StorageCacheStorageContentUpdatedEvent struct { Method string `json:"method"` @@ -56,6 +78,17 @@ type StorageIndexedDBListUpdatedEvent struct { } `json:"Params,omitempty"` } +// One of the interest groups was accessed by the associated page. +type StorageInterestGroupAccessedEvent struct { + Method string `json:"method"` + Params struct { + AccessTime float64 `json:"accessTime"` // + Type string `json:"type"` // enum values: join, leave, update, bid, win + OwnerOrigin string `json:"ownerOrigin"` // + Name string `json:"name"` // + } `json:"Params,omitempty"` +} + type Storage struct { target gcdmessage.ChromeTargeter } @@ -393,3 +426,71 @@ func (c *Storage) ClearTrustTokens(ctx context.Context, issuerOrigin string) (bo v.IssuerOrigin = issuerOrigin return c.ClearTrustTokensWithParams(ctx, &v) } + +type StorageGetInterestGroupDetailsParams struct { + // + OwnerOrigin string `json:"ownerOrigin"` + // + Name string `json:"name"` +} + +// GetInterestGroupDetailsWithParams - Gets details for a named interest group. +// Returns - details - +func (c *Storage) GetInterestGroupDetailsWithParams(ctx context.Context, v *StorageGetInterestGroupDetailsParams) (*StorageInterestGroupDetails, error) { + resp, err := c.target.SendCustomReturn(ctx, &gcdmessage.ParamRequest{Id: c.target.GetId(), Method: "Storage.getInterestGroupDetails", Params: v}) + if err != nil { + return nil, err + } + + var chromeData struct { + Result struct { + Details *StorageInterestGroupDetails + } + } + + if resp == nil { + return nil, &gcdmessage.ChromeEmptyResponseErr{} + } + + // test if error first + cerr := &gcdmessage.ChromeErrorResponse{} + json.Unmarshal(resp.Data, cerr) + if cerr != nil && cerr.Error != nil { + return nil, &gcdmessage.ChromeRequestErr{Resp: cerr} + } + + if err := json.Unmarshal(resp.Data, &chromeData); err != nil { + return nil, err + } + + return chromeData.Result.Details, nil +} + +// GetInterestGroupDetails - Gets details for a named interest group. +// ownerOrigin - +// name - +// Returns - details - +func (c *Storage) GetInterestGroupDetails(ctx context.Context, ownerOrigin string, name string) (*StorageInterestGroupDetails, error) { + var v StorageGetInterestGroupDetailsParams + v.OwnerOrigin = ownerOrigin + v.Name = name + return c.GetInterestGroupDetailsWithParams(ctx, &v) +} + +type StorageSetInterestGroupTrackingParams struct { + // + Enable bool `json:"enable"` +} + +// SetInterestGroupTrackingWithParams - Enables/Disables issuing of interestGroupAccessed events. +func (c *Storage) SetInterestGroupTrackingWithParams(ctx context.Context, v *StorageSetInterestGroupTrackingParams) (*gcdmessage.ChromeResponse, error) { + return c.target.SendDefaultRequest(ctx, &gcdmessage.ParamRequest{Id: c.target.GetId(), Method: "Storage.setInterestGroupTracking", Params: v}) +} + +// SetInterestGroupTracking - Enables/Disables issuing of interestGroupAccessed events. +// enable - +func (c *Storage) SetInterestGroupTracking(ctx context.Context, enable bool) (*gcdmessage.ChromeResponse, error) { + var v StorageSetInterestGroupTrackingParams + v.Enable = enable + return c.SetInterestGroupTrackingWithParams(ctx, &v) +} diff --git a/v2/gcdapi/version.go b/v2/gcdapi/version.go index b7d69b1..0bc3a64 100644 --- a/v2/gcdapi/version.go +++ b/v2/gcdapi/version.go @@ -8,4 +8,4 @@ var json = jsoniter.ConfigCompatibleWithStandardLibrary // Chrome Channel information const CHROME_CHANNEL = "stable" // Chrome Version information -const CHROME_VERSION = "96.0.4664.45" \ No newline at end of file +const CHROME_VERSION = "100.0.4896.60" \ No newline at end of file diff --git a/v2/gcdapi/webauthn.go b/v2/gcdapi/webauthn.go index d7aca4d..39c57ac 100644 --- a/v2/gcdapi/webauthn.go +++ b/v2/gcdapi/webauthn.go @@ -18,6 +18,7 @@ type WebAuthnVirtualAuthenticatorOptions struct { HasUserVerification bool `json:"hasUserVerification,omitempty"` // Defaults to false. HasLargeBlob bool `json:"hasLargeBlob,omitempty"` // If set to true, the authenticator will support the largeBlob extension. https://w3c.github.io/webauthn#largeBlob Defaults to false. HasCredBlob bool `json:"hasCredBlob,omitempty"` // If set to true, the authenticator will support the credBlob extension. https://fidoalliance.org/specs/fido-v2.1-rd-20201208/fido-client-to-authenticator-protocol-v2.1-rd-20201208.html#sctn-credBlob-extension Defaults to false. + HasMinPinLength bool `json:"hasMinPinLength,omitempty"` // If set to true, the authenticator will support the minPinLength extension. https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#sctn-minpinlength-extension Defaults to false. AutomaticPresenceSimulation bool `json:"automaticPresenceSimulation,omitempty"` // If set to true, tests of user presence will succeed immediately. Otherwise, they will not be resolved. Defaults to true. IsUserVerified bool `json:"isUserVerified,omitempty"` // Sets whether User Verification succeeds or fails for an authenticator. Defaults to false. } diff --git a/v2/gcdapigen/protocol.json b/v2/gcdapigen/protocol.json index fc2b1d5..ecd06d5 100644 --- a/v2/gcdapigen/protocol.json +++ b/v2/gcdapigen/protocol.json @@ -1 +1 @@ -{"version":{"major":"1","minor":"3"},"domains":[{"domain":"Accessibility","types":[{"id":"AXNodeId","type":"string","description":"Unique accessibility node identifier."},{"id":"AXValueType","type":"string","description":"Enum of possible property types.","enum":["boolean","tristate","booleanOrUndefined","idref","idrefList","integer","node","nodeList","number","string","computedString","token","tokenList","domRelation","role","internalRole","valueUndefined"]},{"id":"AXValueSourceType","type":"string","description":"Enum of possible property sources.","enum":["attribute","implicit","style","contents","placeholder","relatedElement"]},{"id":"AXValueNativeSourceType","type":"string","description":"Enum of possible native property sources (as a subtype of a particular AXValueSourceType).","enum":["description","figcaption","label","labelfor","labelwrapped","legend","rubyannotation","tablecaption","title","other"]},{"id":"AXValueSource","type":"object","description":"A single source for a computed AX property.","properties":[{"name":"type","description":"What type of source this is.","$ref":"AXValueSourceType"},{"name":"value","description":"The value of this property source.","$ref":"AXValue","optional":true},{"name":"attribute","type":"string","description":"The name of the relevant attribute, if any.","optional":true},{"name":"attributeValue","description":"The value of the relevant attribute, if any.","$ref":"AXValue","optional":true},{"name":"superseded","type":"boolean","description":"Whether this source is superseded by a higher priority source.","optional":true},{"name":"nativeSource","description":"The native markup source for this value, e.g. a \u003clabel\u003e element.","$ref":"AXValueNativeSourceType","optional":true},{"name":"nativeSourceValue","description":"The value, such as a node or node list, of the native source.","$ref":"AXValue","optional":true},{"name":"invalid","type":"boolean","description":"Whether the value for this property is invalid.","optional":true},{"name":"invalidReason","type":"string","description":"Reason for the value being invalid, if it is.","optional":true}]},{"id":"AXRelatedNode","type":"object","properties":[{"name":"backendDOMNodeId","description":"The BackendNodeId of the related DOM node.","$ref":"DOM.BackendNodeId"},{"name":"idref","type":"string","description":"The IDRef value provided, if any.","optional":true},{"name":"text","type":"string","description":"The text alternative of this node in the current context.","optional":true}]},{"id":"AXProperty","type":"object","properties":[{"name":"name","description":"The name of this property.","$ref":"AXPropertyName"},{"name":"value","description":"The value of this property.","$ref":"AXValue"}]},{"id":"AXValue","type":"object","description":"A single computed AX property.","properties":[{"name":"type","description":"The type of this value.","$ref":"AXValueType"},{"name":"value","type":"any","description":"The computed value of this property.","optional":true},{"name":"relatedNodes","type":"array","description":"One or more related nodes, if applicable.","optional":true,"items":{"$ref":"AXRelatedNode"}},{"name":"sources","type":"array","description":"The sources which contributed to the computation of this property.","optional":true,"items":{"$ref":"AXValueSource"}}]},{"id":"AXPropertyName","type":"string","description":"Values of AXProperty name: - from 'busy' to 'roledescription': states which apply to every AX node - from 'live' to 'root': attributes which apply to nodes in live regions - from 'autocomplete' to 'valuetext': attributes which apply to widgets - from 'checked' to 'selected': states which apply to widgets - from 'activedescendant' to 'owns' - relationships between elements other than parent/child/sibling.","enum":["busy","disabled","editable","focusable","focused","hidden","hiddenRoot","invalid","keyshortcuts","settable","roledescription","live","atomic","relevant","root","autocomplete","hasPopup","level","multiselectable","orientation","multiline","readonly","required","valuemin","valuemax","valuetext","checked","expanded","modal","pressed","selected","activedescendant","controls","describedby","details","errormessage","flowto","labelledby","owns"]},{"id":"AXNode","type":"object","description":"A node in the accessibility tree.","properties":[{"name":"nodeId","description":"Unique identifier for this node.","$ref":"AXNodeId"},{"name":"ignored","type":"boolean","description":"Whether this node is ignored for accessibility"},{"name":"ignoredReasons","type":"array","description":"Collection of reasons why this node is hidden.","optional":true,"items":{"$ref":"AXProperty"}},{"name":"role","description":"This `Node`'s role, whether explicit or implicit.","$ref":"AXValue","optional":true},{"name":"name","description":"The accessible name for this `Node`.","$ref":"AXValue","optional":true},{"name":"description","description":"The accessible description for this `Node`.","$ref":"AXValue","optional":true},{"name":"value","description":"The value for this `Node`.","$ref":"AXValue","optional":true},{"name":"properties","type":"array","description":"All other properties","optional":true,"items":{"$ref":"AXProperty"}},{"name":"parentId","description":"ID for this node's parent.","$ref":"AXNodeId","optional":true},{"name":"childIds","type":"array","description":"IDs for each of this node's child nodes.","optional":true,"items":{"$ref":"AXNodeId"}},{"name":"backendDOMNodeId","description":"The backend ID for the associated DOM node, if any.","$ref":"DOM.BackendNodeId","optional":true},{"name":"frameId","description":"The frame ID for the frame associated with this nodes document.","$ref":"Page.FrameId","optional":true}]}],"commands":[{"name":"disable","description":"Disables the accessibility domain."},{"name":"enable","description":"Enables the accessibility domain which causes `AXNodeId`s to remain consistent between method calls. This turns on accessibility for the page, which can impact performance until accessibility is disabled."},{"name":"getPartialAXTree","description":"Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists.","parameters":[{"name":"nodeId","description":"Identifier of the node to get the partial accessibility tree for.","$ref":"DOM.NodeId","optional":true},{"name":"backendNodeId","description":"Identifier of the backend node to get the partial accessibility tree for.","$ref":"DOM.BackendNodeId","optional":true},{"name":"objectId","description":"JavaScript object id of the node wrapper to get the partial accessibility tree for.","$ref":"Runtime.RemoteObjectId","optional":true},{"name":"fetchRelatives","type":"boolean","description":"Whether to fetch this nodes ancestors, siblings and children. Defaults to true.","optional":true}],"returns":[{"name":"nodes","type":"array","items":{"$ref":"AXNode"},"description":"The `Accessibility.AXNode` for this DOM node, if it exists, plus its ancestors, siblings and children, if requested."}]},{"name":"getFullAXTree","description":"Fetches the entire accessibility tree for the root Document","parameters":[{"name":"depth","type":"integer","description":"The maximum depth at which descendants of the root node should be retrieved. If omitted, the full tree is returned.","optional":true},{"name":"max_depth","type":"integer","description":"Deprecated. This parameter has been renamed to `depth`. If depth is not provided, max_depth will be used.","optional":true},{"name":"frameId","description":"The frame for whose document the AX tree should be retrieved. If omited, the root frame is used.","$ref":"Page.FrameId","optional":true}],"returns":[{"name":"nodes","type":"array","items":{"$ref":"AXNode"}}]},{"name":"getRootAXNode","description":"Fetches the root node. Requires `enable()` to have been called previously.","parameters":[{"name":"frameId","description":"The frame in whose document the node resides. If omitted, the root frame is used.","$ref":"Page.FrameId","optional":true}],"returns":[{"name":"node","$ref":"AXNode"}]},{"name":"getAXNodeAndAncestors","description":"Fetches a node and all ancestors up to and including the root. Requires `enable()` to have been called previously.","parameters":[{"name":"nodeId","description":"Identifier of the node to get.","$ref":"DOM.NodeId","optional":true},{"name":"backendNodeId","description":"Identifier of the backend node to get.","$ref":"DOM.BackendNodeId","optional":true},{"name":"objectId","description":"JavaScript object id of the node wrapper to get.","$ref":"Runtime.RemoteObjectId","optional":true}],"returns":[{"name":"nodes","type":"array","items":{"$ref":"AXNode"}}]},{"name":"getChildAXNodes","description":"Fetches a particular accessibility node by AXNodeId. Requires `enable()` to have been called previously.","parameters":[{"name":"id","$ref":"AXNodeId"},{"name":"frameId","description":"The frame in whose document the node resides. If omitted, the root frame is used.","$ref":"Page.FrameId","optional":true}],"returns":[{"name":"nodes","type":"array","items":{"$ref":"AXNode"}}]},{"name":"queryAXTree","description":"Query a DOM node's accessibility subtree for accessible name and role. This command computes the name and role for all nodes in the subtree, including those that are ignored for accessibility, and returns those that mactch the specified name and role. If no DOM node is specified, or the DOM node does not exist, the command returns an error. If neither `accessibleName` or `role` is specified, it returns all the accessibility nodes in the subtree.","parameters":[{"name":"nodeId","description":"Identifier of the node for the root to query.","$ref":"DOM.NodeId","optional":true},{"name":"backendNodeId","description":"Identifier of the backend node for the root to query.","$ref":"DOM.BackendNodeId","optional":true},{"name":"objectId","description":"JavaScript object id of the node wrapper for the root to query.","$ref":"Runtime.RemoteObjectId","optional":true},{"name":"accessibleName","type":"string","description":"Find nodes with this computed name.","optional":true},{"name":"role","type":"string","description":"Find nodes with this computed role.","optional":true}],"returns":[{"name":"nodes","type":"array","items":{"$ref":"AXNode"},"description":"A list of `Accessibility.AXNode` matching the specified attributes, including nodes that are ignored for accessibility."}]}],"events":[{"name":"loadComplete","description":"The loadComplete event mirrors the load complete event sent by the browser to assistive technology when the web page has finished loading.","parameters":[{"name":"root","description":"New document root node.","$ref":"AXNode"}]},{"name":"nodesUpdated","description":"The nodesUpdated event is sent every time a previously requested node has changed the in tree.","parameters":[{"name":"nodes","type":"array","description":"Updated node data.","items":{"$ref":"AXNode"}}]}]},{"domain":"Animation","types":[{"id":"Animation","type":"object","description":"Animation instance.","properties":[{"name":"id","type":"string","description":"`Animation`'s id."},{"name":"name","type":"string","description":"`Animation`'s name."},{"name":"pausedState","type":"boolean","description":"`Animation`'s internal paused state."},{"name":"playState","type":"string","description":"`Animation`'s play state."},{"name":"playbackRate","type":"number","description":"`Animation`'s playback rate."},{"name":"startTime","type":"number","description":"`Animation`'s start time."},{"name":"currentTime","type":"number","description":"`Animation`'s current time."},{"name":"type","type":"string","description":"Animation type of `Animation`.","enum":["CSSTransition","CSSAnimation","WebAnimation"]},{"name":"source","description":"`Animation`'s source animation node.","$ref":"AnimationEffect","optional":true},{"name":"cssId","type":"string","description":"A unique ID for `Animation` representing the sources that triggered this CSS animation/transition.","optional":true}]},{"id":"AnimationEffect","type":"object","description":"AnimationEffect instance","properties":[{"name":"delay","type":"number","description":"`AnimationEffect`'s delay."},{"name":"endDelay","type":"number","description":"`AnimationEffect`'s end delay."},{"name":"iterationStart","type":"number","description":"`AnimationEffect`'s iteration start."},{"name":"iterations","type":"number","description":"`AnimationEffect`'s iterations."},{"name":"duration","type":"number","description":"`AnimationEffect`'s iteration duration."},{"name":"direction","type":"string","description":"`AnimationEffect`'s playback direction."},{"name":"fill","type":"string","description":"`AnimationEffect`'s fill mode."},{"name":"backendNodeId","description":"`AnimationEffect`'s target node.","$ref":"DOM.BackendNodeId","optional":true},{"name":"keyframesRule","description":"`AnimationEffect`'s keyframes.","$ref":"KeyframesRule","optional":true},{"name":"easing","type":"string","description":"`AnimationEffect`'s timing function."}]},{"id":"KeyframesRule","type":"object","description":"Keyframes Rule","properties":[{"name":"name","type":"string","description":"CSS keyframed animation's name.","optional":true},{"name":"keyframes","type":"array","description":"List of animation keyframes.","items":{"$ref":"KeyframeStyle"}}]},{"id":"KeyframeStyle","type":"object","description":"Keyframe Style","properties":[{"name":"offset","type":"string","description":"Keyframe's time offset."},{"name":"easing","type":"string","description":"`AnimationEffect`'s timing function."}]}],"commands":[{"name":"disable","description":"Disables animation domain notifications."},{"name":"enable","description":"Enables animation domain notifications."},{"name":"getCurrentTime","description":"Returns the current time of the an animation.","parameters":[{"name":"id","type":"string","description":"Id of animation."}],"returns":[{"name":"currentTime","type":"number","description":"Current time of the page."}]},{"name":"getPlaybackRate","description":"Gets the playback rate of the document timeline.","returns":[{"name":"playbackRate","type":"number","description":"Playback rate for animations on page."}]},{"name":"releaseAnimations","description":"Releases a set of animations to no longer be manipulated.","parameters":[{"name":"animations","type":"array","description":"List of animation ids to seek.","items":{"type":"string"}}]},{"name":"resolveAnimation","description":"Gets the remote object of the Animation.","parameters":[{"name":"animationId","type":"string","description":"Animation id."}],"returns":[{"name":"remoteObject","$ref":"Runtime.RemoteObject","description":"Corresponding remote object."}]},{"name":"seekAnimations","description":"Seek a set of animations to a particular time within each animation.","parameters":[{"name":"animations","type":"array","description":"List of animation ids to seek.","items":{"type":"string"}},{"name":"currentTime","type":"number","description":"Set the current time of each animation."}]},{"name":"setPaused","description":"Sets the paused state of a set of animations.","parameters":[{"name":"animations","type":"array","description":"Animations to set the pause state of.","items":{"type":"string"}},{"name":"paused","type":"boolean","description":"Paused state to set to."}]},{"name":"setPlaybackRate","description":"Sets the playback rate of the document timeline.","parameters":[{"name":"playbackRate","type":"number","description":"Playback rate for animations on page"}]},{"name":"setTiming","description":"Sets the timing of an animation node.","parameters":[{"name":"animationId","type":"string","description":"Animation id."},{"name":"duration","type":"number","description":"Duration of the animation."},{"name":"delay","type":"number","description":"Delay of the animation."}]}],"events":[{"name":"animationCanceled","description":"Event for when an animation has been cancelled.","parameters":[{"name":"id","type":"string","description":"Id of the animation that was cancelled."}]},{"name":"animationCreated","description":"Event for each animation that has been created.","parameters":[{"name":"id","type":"string","description":"Id of the animation that was created."}]},{"name":"animationStarted","description":"Event for animation that has been started.","parameters":[{"name":"animation","description":"Animation that was started.","$ref":"Animation"}]}]},{"domain":"Audits","description":"Audits domain allows investigation of page violations and possible improvements.","types":[{"id":"AffectedCookie","type":"object","description":"Information about a cookie that is affected by an inspector issue.","properties":[{"name":"name","type":"string","description":"The following three properties uniquely identify a cookie"},{"name":"path","type":"string"},{"name":"domain","type":"string"}]},{"id":"AffectedRequest","type":"object","description":"Information about a request that is affected by an inspector issue.","properties":[{"name":"requestId","description":"The unique request id.","$ref":"Network.RequestId"},{"name":"url","type":"string","optional":true}]},{"id":"AffectedFrame","type":"object","description":"Information about the frame affected by an inspector issue.","properties":[{"name":"frameId","$ref":"Page.FrameId"}]},{"id":"SameSiteCookieExclusionReason","type":"string","enum":["ExcludeSameSiteUnspecifiedTreatedAsLax","ExcludeSameSiteNoneInsecure","ExcludeSameSiteLax","ExcludeSameSiteStrict","ExcludeInvalidSameParty","ExcludeSamePartyCrossPartyContext"]},{"id":"SameSiteCookieWarningReason","type":"string","enum":["WarnSameSiteUnspecifiedCrossSiteContext","WarnSameSiteNoneInsecure","WarnSameSiteUnspecifiedLaxAllowUnsafe","WarnSameSiteStrictLaxDowngradeStrict","WarnSameSiteStrictCrossDowngradeStrict","WarnSameSiteStrictCrossDowngradeLax","WarnSameSiteLaxCrossDowngradeStrict","WarnSameSiteLaxCrossDowngradeLax"]},{"id":"SameSiteCookieOperation","type":"string","enum":["SetCookie","ReadCookie"]},{"id":"SameSiteCookieIssueDetails","type":"object","description":"This information is currently necessary, as the front-end has a difficult time finding a specific cookie. With this, we can convey specific error information without the cookie.","properties":[{"name":"cookie","description":"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.","$ref":"AffectedCookie","optional":true},{"name":"rawCookieLine","type":"string","optional":true},{"name":"cookieWarningReasons","type":"array","items":{"$ref":"SameSiteCookieWarningReason"}},{"name":"cookieExclusionReasons","type":"array","items":{"$ref":"SameSiteCookieExclusionReason"}},{"name":"operation","description":"Optionally identifies the site-for-cookies and the cookie url, which may be used by the front-end as additional context.","$ref":"SameSiteCookieOperation"},{"name":"siteForCookies","type":"string","optional":true},{"name":"cookieUrl","type":"string","optional":true},{"name":"request","$ref":"AffectedRequest","optional":true}]},{"id":"MixedContentResolutionStatus","type":"string","enum":["MixedContentBlocked","MixedContentAutomaticallyUpgraded","MixedContentWarning"]},{"id":"MixedContentResourceType","type":"string","enum":["Audio","Beacon","CSPReport","Download","EventSource","Favicon","Font","Form","Frame","Image","Import","Manifest","Ping","PluginData","PluginResource","Prefetch","Resource","Script","ServiceWorker","SharedWorker","Stylesheet","Track","Video","Worker","XMLHttpRequest","XSLT"]},{"id":"MixedContentIssueDetails","type":"object","properties":[{"name":"resourceType","description":"The type of resource causing the mixed content issue (css, js, iframe, form,...). Marked as optional because it is mapped to from blink::mojom::RequestContextType, which will be replaced by network::mojom::RequestDestination","$ref":"MixedContentResourceType","optional":true},{"name":"resolutionStatus","description":"The way the mixed content issue is being resolved.","$ref":"MixedContentResolutionStatus"},{"name":"insecureURL","type":"string","description":"The unsafe http url causing the mixed content issue."},{"name":"mainResourceURL","type":"string","description":"The url responsible for the call to an unsafe url."},{"name":"request","description":"The mixed content request. Does not always exist (e.g. for unsafe form submission urls).","$ref":"AffectedRequest","optional":true},{"name":"frame","description":"Optional because not every mixed content issue is necessarily linked to a frame.","$ref":"AffectedFrame","optional":true}]},{"id":"BlockedByResponseReason","type":"string","description":"Enum indicating the reason a response has been blocked. These reasons are refinements of the net error BLOCKED_BY_RESPONSE.","enum":["CoepFrameResourceNeedsCoepHeader","CoopSandboxedIFrameCannotNavigateToCoopPage","CorpNotSameOrigin","CorpNotSameOriginAfterDefaultedToSameOriginByCoep","CorpNotSameSite"]},{"id":"BlockedByResponseIssueDetails","type":"object","description":"Details for a request that has been blocked with the BLOCKED_BY_RESPONSE code. Currently only used for COEP/COOP, but may be extended to include some CSP errors in the future.","properties":[{"name":"request","$ref":"AffectedRequest"},{"name":"parentFrame","$ref":"AffectedFrame","optional":true},{"name":"blockedFrame","$ref":"AffectedFrame","optional":true},{"name":"reason","$ref":"BlockedByResponseReason"}]},{"id":"HeavyAdResolutionStatus","type":"string","enum":["HeavyAdBlocked","HeavyAdWarning"]},{"id":"HeavyAdReason","type":"string","enum":["NetworkTotalLimit","CpuTotalLimit","CpuPeakLimit"]},{"id":"HeavyAdIssueDetails","type":"object","properties":[{"name":"resolution","description":"The resolution status, either blocking the content or warning.","$ref":"HeavyAdResolutionStatus"},{"name":"reason","description":"The reason the ad was blocked, total network or cpu or peak cpu.","$ref":"HeavyAdReason"},{"name":"frame","description":"The frame that was blocked.","$ref":"AffectedFrame"}]},{"id":"ContentSecurityPolicyViolationType","type":"string","enum":["kInlineViolation","kEvalViolation","kURLViolation","kTrustedTypesSinkViolation","kTrustedTypesPolicyViolation","kWasmEvalViolation"]},{"id":"SourceCodeLocation","type":"object","properties":[{"name":"scriptId","$ref":"Runtime.ScriptId","optional":true},{"name":"url","type":"string"},{"name":"lineNumber","type":"integer"},{"name":"columnNumber","type":"integer"}]},{"id":"ContentSecurityPolicyIssueDetails","type":"object","properties":[{"name":"blockedURL","type":"string","description":"The url not included in allowed sources.","optional":true},{"name":"violatedDirective","type":"string","description":"Specific directive that is violated, causing the CSP issue."},{"name":"isReportOnly","type":"boolean"},{"name":"contentSecurityPolicyViolationType","$ref":"ContentSecurityPolicyViolationType"},{"name":"frameAncestor","$ref":"AffectedFrame","optional":true},{"name":"sourceCodeLocation","$ref":"SourceCodeLocation","optional":true},{"name":"violatingNodeId","$ref":"DOM.BackendNodeId","optional":true}]},{"id":"SharedArrayBufferIssueType","type":"string","enum":["TransferIssue","CreationIssue"]},{"id":"SharedArrayBufferIssueDetails","type":"object","description":"Details for a issue arising from an SAB being instantiated in, or transferred to a context that is not cross-origin isolated.","properties":[{"name":"sourceCodeLocation","$ref":"SourceCodeLocation"},{"name":"isWarning","type":"boolean"},{"name":"type","$ref":"SharedArrayBufferIssueType"}]},{"id":"TwaQualityEnforcementViolationType","type":"string","enum":["kHttpError","kUnavailableOffline","kDigitalAssetLinks"]},{"id":"TrustedWebActivityIssueDetails","type":"object","properties":[{"name":"url","type":"string","description":"The url that triggers the violation."},{"name":"violationType","$ref":"TwaQualityEnforcementViolationType"},{"name":"httpStatusCode","type":"integer","optional":true},{"name":"packageName","type":"string","description":"The package name of the Trusted Web Activity client app. This field is only used when violation type is kDigitalAssetLinks.","optional":true},{"name":"signature","type":"string","description":"The signature of the Trusted Web Activity client app. This field is only used when violation type is kDigitalAssetLinks.","optional":true}]},{"id":"LowTextContrastIssueDetails","type":"object","properties":[{"name":"violatingNodeId","$ref":"DOM.BackendNodeId"},{"name":"violatingNodeSelector","type":"string"},{"name":"contrastRatio","type":"number"},{"name":"thresholdAA","type":"number"},{"name":"thresholdAAA","type":"number"},{"name":"fontSize","type":"string"},{"name":"fontWeight","type":"string"}]},{"id":"CorsIssueDetails","type":"object","description":"Details for a CORS related issue, e.g. a warning or error related to CORS RFC1918 enforcement.","properties":[{"name":"corsErrorStatus","$ref":"Network.CorsErrorStatus"},{"name":"isWarning","type":"boolean"},{"name":"request","$ref":"AffectedRequest"},{"name":"location","$ref":"SourceCodeLocation","optional":true},{"name":"initiatorOrigin","type":"string","optional":true},{"name":"resourceIPAddressSpace","$ref":"Network.IPAddressSpace","optional":true},{"name":"clientSecurityState","$ref":"Network.ClientSecurityState","optional":true}]},{"id":"AttributionReportingIssueType","type":"string","enum":["PermissionPolicyDisabled","InvalidAttributionSourceEventId","InvalidAttributionData","AttributionSourceUntrustworthyOrigin","AttributionUntrustworthyOrigin","AttributionTriggerDataTooLarge","AttributionEventSourceTriggerDataTooLarge"]},{"id":"AttributionReportingIssueDetails","type":"object","description":"Details for issues around \"Attribution Reporting API\" usage. Explainer: https://github.com/WICG/conversion-measurement-api","properties":[{"name":"violationType","$ref":"AttributionReportingIssueType"},{"name":"frame","$ref":"AffectedFrame","optional":true},{"name":"request","$ref":"AffectedRequest","optional":true},{"name":"violatingNodeId","$ref":"DOM.BackendNodeId","optional":true},{"name":"invalidParameter","type":"string","optional":true}]},{"id":"QuirksModeIssueDetails","type":"object","description":"Details for issues about documents in Quirks Mode or Limited Quirks Mode that affects page layouting.","properties":[{"name":"isLimitedQuirksMode","type":"boolean","description":"If false, it means the document's mode is \"quirks\" instead of \"limited-quirks\"."},{"name":"documentNodeId","$ref":"DOM.BackendNodeId"},{"name":"url","type":"string"},{"name":"frameId","$ref":"Page.FrameId"},{"name":"loaderId","$ref":"Network.LoaderId"}]},{"id":"NavigatorUserAgentIssueDetails","type":"object","properties":[{"name":"url","type":"string"},{"name":"location","$ref":"SourceCodeLocation","optional":true}]},{"id":"WasmCrossOriginModuleSharingIssueDetails","type":"object","properties":[{"name":"wasmModuleUrl","type":"string"},{"name":"sourceOrigin","type":"string"},{"name":"targetOrigin","type":"string"},{"name":"isWarning","type":"boolean"}]},{"id":"GenericIssueErrorType","type":"string","enum":["CrossOriginPortalPostMessageError"]},{"id":"GenericIssueDetails","type":"object","description":"Depending on the concrete errorType, different properties are set.","properties":[{"name":"errorType","description":"Issues with the same errorType are aggregated in the frontend.","$ref":"GenericIssueErrorType"},{"name":"frameId","$ref":"Page.FrameId","optional":true}]},{"id":"DeprecationIssueDetails","type":"object","description":"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","properties":[{"name":"affectedFrame","$ref":"AffectedFrame","optional":true},{"name":"sourceCodeLocation","$ref":"SourceCodeLocation"},{"name":"message","type":"string","description":"The content of the deprecation issue (this won't be translated), 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.\"","optional":true}]},{"id":"InspectorIssueCode","type":"string","description":"A unique identifier for the type of issue. Each type may use one of the optional fields in InspectorIssueDetails to convey more specific information about the kind of issue.","enum":["SameSiteCookieIssue","MixedContentIssue","BlockedByResponseIssue","HeavyAdIssue","ContentSecurityPolicyIssue","SharedArrayBufferIssue","TrustedWebActivityIssue","LowTextContrastIssue","CorsIssue","AttributionReportingIssue","QuirksModeIssue","NavigatorUserAgentIssue","WasmCrossOriginModuleSharingIssue","GenericIssue","DeprecationIssue"]},{"id":"InspectorIssueDetails","type":"object","description":"This struct holds a list of optional fields with additional information specific to the kind of issue. When adding a new issue code, please also add a new optional field to this type.","properties":[{"name":"sameSiteCookieIssueDetails","$ref":"SameSiteCookieIssueDetails","optional":true},{"name":"mixedContentIssueDetails","$ref":"MixedContentIssueDetails","optional":true},{"name":"blockedByResponseIssueDetails","$ref":"BlockedByResponseIssueDetails","optional":true},{"name":"heavyAdIssueDetails","$ref":"HeavyAdIssueDetails","optional":true},{"name":"contentSecurityPolicyIssueDetails","$ref":"ContentSecurityPolicyIssueDetails","optional":true},{"name":"sharedArrayBufferIssueDetails","$ref":"SharedArrayBufferIssueDetails","optional":true},{"name":"twaQualityEnforcementDetails","$ref":"TrustedWebActivityIssueDetails","optional":true},{"name":"lowTextContrastIssueDetails","$ref":"LowTextContrastIssueDetails","optional":true},{"name":"corsIssueDetails","$ref":"CorsIssueDetails","optional":true},{"name":"attributionReportingIssueDetails","$ref":"AttributionReportingIssueDetails","optional":true},{"name":"quirksModeIssueDetails","$ref":"QuirksModeIssueDetails","optional":true},{"name":"navigatorUserAgentIssueDetails","$ref":"NavigatorUserAgentIssueDetails","optional":true},{"name":"wasmCrossOriginModuleSharingIssue","$ref":"WasmCrossOriginModuleSharingIssueDetails","optional":true},{"name":"genericIssueDetails","$ref":"GenericIssueDetails","optional":true},{"name":"deprecationIssueDetails","$ref":"DeprecationIssueDetails","optional":true}]},{"id":"IssueId","type":"string","description":"A unique id for a DevTools inspector issue. Allows other entities (e.g. exceptions, CDP message, console messages, etc.) to reference an issue."},{"id":"InspectorIssue","type":"object","description":"An inspector issue reported from the back-end.","properties":[{"name":"code","$ref":"InspectorIssueCode"},{"name":"details","$ref":"InspectorIssueDetails"},{"name":"issueId","description":"A unique id for this issue. May be omitted if no other entity (e.g. exception, CDP message, etc.) is referencing this issue.","$ref":"IssueId","optional":true}]}],"commands":[{"name":"getEncodedResponse","description":"Returns the response body and size if it were re-encoded with the specified settings. Only applies to images.","parameters":[{"name":"requestId","description":"Identifier of the network request to get content for.","$ref":"Network.RequestId"},{"name":"encoding","type":"string","description":"The encoding to use.","enum":["webp","jpeg","png"]},{"name":"quality","type":"number","description":"The quality of the encoding (0-1). (defaults to 1)","optional":true},{"name":"sizeOnly","type":"boolean","description":"Whether to only return the size information (defaults to false).","optional":true}],"returns":[{"name":"body","type":"string","description":"The encoded body as a base64 string. Omitted if sizeOnly is true. (Encoded as a base64 string when passed over JSON)"},{"name":"originalSize","type":"integer","description":"Size before re-encoding."},{"name":"encodedSize","type":"integer","description":"Size after re-encoding."}]},{"name":"disable","description":"Disables issues domain, prevents further issues from being reported to the client."},{"name":"enable","description":"Enables issues domain, sends the issues collected so far to the client by means of the `issueAdded` event."},{"name":"checkContrast","description":"Runs the contrast check for the target page. Found issues are reported using Audits.issueAdded event.","parameters":[{"name":"reportAAA","type":"boolean","description":"Whether to report WCAG AAA level issues. Default is false.","optional":true}]}],"events":[{"name":"issueAdded","parameters":[{"name":"issue","$ref":"InspectorIssue"}]}]},{"domain":"BackgroundService","description":"Defines events for background web platform features.","types":[{"id":"ServiceName","type":"string","description":"The Background Service that will be associated with the commands/events. Every Background Service operates independently, but they share the same API.","enum":["backgroundFetch","backgroundSync","pushMessaging","notifications","paymentHandler","periodicBackgroundSync"]},{"id":"EventMetadata","type":"object","description":"A key-value pair for additional event information to pass along.","properties":[{"name":"key","type":"string"},{"name":"value","type":"string"}]},{"id":"BackgroundServiceEvent","type":"object","properties":[{"name":"timestamp","description":"Timestamp of the event (in seconds).","$ref":"Network.TimeSinceEpoch"},{"name":"origin","type":"string","description":"The origin this event belongs to."},{"name":"serviceWorkerRegistrationId","description":"The Service Worker ID that initiated the event.","$ref":"ServiceWorker.RegistrationID"},{"name":"service","description":"The Background Service this event belongs to.","$ref":"ServiceName"},{"name":"eventName","type":"string","description":"A description of the event."},{"name":"instanceId","type":"string","description":"An identifier that groups related events together."},{"name":"eventMetadata","type":"array","description":"A list of event-specific information.","items":{"$ref":"EventMetadata"}}]}],"commands":[{"name":"startObserving","description":"Enables event updates for the service.","parameters":[{"name":"service","$ref":"ServiceName"}]},{"name":"stopObserving","description":"Disables event updates for the service.","parameters":[{"name":"service","$ref":"ServiceName"}]},{"name":"setRecording","description":"Set the recording state for the service.","parameters":[{"name":"shouldRecord","type":"boolean"},{"name":"service","$ref":"ServiceName"}]},{"name":"clearEvents","description":"Clears all stored data for the service.","parameters":[{"name":"service","$ref":"ServiceName"}]}],"events":[{"name":"recordingStateChanged","description":"Called when the recording state for the service has been updated.","parameters":[{"name":"isRecording","type":"boolean"},{"name":"service","$ref":"ServiceName"}]},{"name":"backgroundServiceEventReceived","description":"Called with all existing backgroundServiceEvents when enabled, and all new events afterwards if enabled and recording.","parameters":[{"name":"backgroundServiceEvent","$ref":"BackgroundServiceEvent"}]}]},{"domain":"Browser","description":"The Browser domain defines methods and events for browser managing.","types":[{"id":"BrowserContextID","type":"string"},{"id":"WindowID","type":"integer"},{"id":"WindowState","type":"string","description":"The state of the browser window.","enum":["normal","minimized","maximized","fullscreen"]},{"id":"Bounds","type":"object","description":"Browser window bounds information","properties":[{"name":"left","type":"integer","description":"The offset from the left edge of the screen to the window in pixels.","optional":true},{"name":"top","type":"integer","description":"The offset from the top edge of the screen to the window in pixels.","optional":true},{"name":"width","type":"integer","description":"The window width in pixels.","optional":true},{"name":"height","type":"integer","description":"The window height in pixels.","optional":true},{"name":"windowState","description":"The window state. Default to normal.","$ref":"WindowState","optional":true}]},{"id":"PermissionType","type":"string","enum":["accessibilityEvents","audioCapture","backgroundSync","backgroundFetch","clipboardReadWrite","clipboardSanitizedWrite","displayCapture","durableStorage","flash","geolocation","midi","midiSysex","nfc","notifications","paymentHandler","periodicBackgroundSync","protectedMediaIdentifier","sensors","videoCapture","videoCapturePanTiltZoom","idleDetection","wakeLockScreen","wakeLockSystem"]},{"id":"PermissionSetting","type":"string","enum":["granted","denied","prompt"]},{"id":"PermissionDescriptor","type":"object","description":"Definition of PermissionDescriptor defined in the Permissions API: https://w3c.github.io/permissions/#dictdef-permissiondescriptor.","properties":[{"name":"name","type":"string","description":"Name of permission. See https://cs.chromium.org/chromium/src/third_party/blink/renderer/modules/permissions/permission_descriptor.idl for valid permission names."},{"name":"sysex","type":"boolean","description":"For \"midi\" permission, may also specify sysex control.","optional":true},{"name":"userVisibleOnly","type":"boolean","description":"For \"push\" permission, may specify userVisibleOnly. Note that userVisibleOnly = true is the only currently supported type.","optional":true},{"name":"allowWithoutSanitization","type":"boolean","description":"For \"clipboard\" permission, may specify allowWithoutSanitization.","optional":true},{"name":"panTiltZoom","type":"boolean","description":"For \"camera\" permission, may specify panTiltZoom.","optional":true}]},{"id":"BrowserCommandId","type":"string","description":"Browser command ids used by executeBrowserCommand.","enum":["openTabSearch","closeTabSearch"]},{"id":"Bucket","type":"object","description":"Chrome histogram bucket.","properties":[{"name":"low","type":"integer","description":"Minimum value (inclusive)."},{"name":"high","type":"integer","description":"Maximum value (exclusive)."},{"name":"count","type":"integer","description":"Number of samples."}]},{"id":"Histogram","type":"object","description":"Chrome histogram.","properties":[{"name":"name","type":"string","description":"Name."},{"name":"sum","type":"integer","description":"Sum of sample values."},{"name":"count","type":"integer","description":"Total number of samples."},{"name":"buckets","type":"array","description":"Buckets.","items":{"$ref":"Bucket"}}]}],"commands":[{"name":"setPermission","description":"Set permission settings for given origin.","parameters":[{"name":"permission","description":"Descriptor of permission to override.","$ref":"PermissionDescriptor"},{"name":"setting","description":"Setting of the permission.","$ref":"PermissionSetting"},{"name":"origin","type":"string","description":"Origin the permission applies to, all origins if not specified.","optional":true},{"name":"browserContextId","description":"Context to override. When omitted, default browser context is used.","$ref":"BrowserContextID","optional":true}]},{"name":"grantPermissions","description":"Grant specific permissions to the given origin and reject all others.","parameters":[{"name":"permissions","type":"array","items":{"$ref":"PermissionType"}},{"name":"origin","type":"string","description":"Origin the permission applies to, all origins if not specified.","optional":true},{"name":"browserContextId","description":"BrowserContext to override permissions. When omitted, default browser context is used.","$ref":"BrowserContextID","optional":true}]},{"name":"resetPermissions","description":"Reset all permission management for all origins.","parameters":[{"name":"browserContextId","description":"BrowserContext to reset permissions. When omitted, default browser context is used.","$ref":"BrowserContextID","optional":true}]},{"name":"setDownloadBehavior","description":"Set the behavior when downloading a file.","parameters":[{"name":"behavior","type":"string","description":"Whether to allow all or deny all download requests, or use default Chrome behavior if available (otherwise deny). |allowAndName| allows download and names files according to their dowmload guids.","enum":["deny","allow","allowAndName","default"]},{"name":"browserContextId","description":"BrowserContext to set download behavior. When omitted, default browser context is used.","$ref":"BrowserContextID","optional":true},{"name":"downloadPath","type":"string","description":"The default path to save downloaded files to. This is required if behavior is set to 'allow' or 'allowAndName'.","optional":true},{"name":"eventsEnabled","type":"boolean","description":"Whether to emit download events (defaults to false).","optional":true}]},{"name":"cancelDownload","description":"Cancel a download if in progress","parameters":[{"name":"guid","type":"string","description":"Global unique identifier of the download."},{"name":"browserContextId","description":"BrowserContext to perform the action in. When omitted, default browser context is used.","$ref":"BrowserContextID","optional":true}]},{"name":"close","description":"Close browser gracefully."},{"name":"crash","description":"Crashes browser on the main thread."},{"name":"crashGpuProcess","description":"Crashes GPU process."},{"name":"getVersion","description":"Returns version information.","returns":[{"name":"protocolVersion","type":"string","description":"Protocol version."},{"name":"product","type":"string","description":"Product name."},{"name":"revision","type":"string","description":"Product revision."},{"name":"userAgent","type":"string","description":"User-Agent."},{"name":"jsVersion","type":"string","description":"V8 version."}]},{"name":"getBrowserCommandLine","description":"Returns the command line switches for the browser process if, and only if --enable-automation is on the commandline.","returns":[{"name":"arguments","type":"array","items":{"type":"string"},"description":"Commandline parameters"}]},{"name":"getHistograms","description":"Get Chrome histograms.","parameters":[{"name":"query","type":"string","description":"Requested substring in name. Only histograms which have query as a substring in their name are extracted. An empty or absent query returns all histograms.","optional":true},{"name":"delta","type":"boolean","description":"If true, retrieve delta since last call.","optional":true}],"returns":[{"name":"histograms","type":"array","items":{"$ref":"Histogram"},"description":"Histograms."}]},{"name":"getHistogram","description":"Get a Chrome histogram by name.","parameters":[{"name":"name","type":"string","description":"Requested histogram name."},{"name":"delta","type":"boolean","description":"If true, retrieve delta since last call.","optional":true}],"returns":[{"name":"histogram","$ref":"Histogram","description":"Histogram."}]},{"name":"getWindowBounds","description":"Get position and size of the browser window.","parameters":[{"name":"windowId","description":"Browser window id.","$ref":"WindowID"}],"returns":[{"name":"bounds","$ref":"Bounds","description":"Bounds information of the window. When window state is 'minimized', the restored window position and size are returned."}]},{"name":"getWindowForTarget","description":"Get the browser window that contains the devtools target.","parameters":[{"name":"targetId","description":"Devtools agent host id. If called as a part of the session, associated targetId is used.","$ref":"Target.TargetID","optional":true}],"returns":[{"name":"windowId","$ref":"WindowID","description":"Browser window id."},{"name":"bounds","$ref":"Bounds","description":"Bounds information of the window. When window state is 'minimized', the restored window position and size are returned."}]},{"name":"setWindowBounds","description":"Set position and/or size of the browser window.","parameters":[{"name":"windowId","description":"Browser window id.","$ref":"WindowID"},{"name":"bounds","description":"New window bounds. The 'minimized', 'maximized' and 'fullscreen' states cannot be combined with 'left', 'top', 'width' or 'height'. Leaves unspecified fields unchanged.","$ref":"Bounds"}]},{"name":"setDockTile","description":"Set dock tile details, platform-specific.","parameters":[{"name":"badgeLabel","type":"string","optional":true},{"name":"image","type":"string","description":"Png encoded image. (Encoded as a base64 string when passed over JSON)","optional":true}]},{"name":"executeBrowserCommand","description":"Invoke custom browser commands used by telemetry.","parameters":[{"name":"commandId","$ref":"BrowserCommandId"}]}],"events":[{"name":"downloadWillBegin","description":"Fired when page is about to start a download.","parameters":[{"name":"frameId","description":"Id of the frame that caused the download to begin.","$ref":"Page.FrameId"},{"name":"guid","type":"string","description":"Global unique identifier of the download."},{"name":"url","type":"string","description":"URL of the resource being downloaded."},{"name":"suggestedFilename","type":"string","description":"Suggested file name of the resource (the actual name of the file saved on disk may differ)."}]},{"name":"downloadProgress","description":"Fired when download makes progress. Last call has |done| == true.","parameters":[{"name":"guid","type":"string","description":"Global unique identifier of the download."},{"name":"totalBytes","type":"number","description":"Total expected bytes to download."},{"name":"receivedBytes","type":"number","description":"Total bytes received."},{"name":"state","type":"string","description":"Download status.","enum":["inProgress","completed","canceled"]}]}]},{"domain":"CSS","description":"This domain exposes CSS read/write operations. All CSS objects (stylesheets, rules, and styles) have an associated `id` used in subsequent operations on the related object. Each object type has a specific `id` structure, and those are not interchangeable between objects of different kinds. CSS objects can be loaded using the `get*ForNode()` calls (which accept a DOM node id). A client can also keep track of stylesheets via the `styleSheetAdded`/`styleSheetRemoved` events and subsequently load the required stylesheet contents using the `getStyleSheet[Text]()` methods.","types":[{"id":"StyleSheetId","type":"string"},{"id":"StyleSheetOrigin","type":"string","description":"Stylesheet type: \"injected\" for stylesheets injected via extension, \"user-agent\" for user-agent stylesheets, \"inspector\" for stylesheets created by the inspector (i.e. those holding the \"via inspector\" rules), \"regular\" for regular stylesheets.","enum":["injected","user-agent","inspector","regular"]},{"id":"PseudoElementMatches","type":"object","description":"CSS rule collection for a single pseudo style.","properties":[{"name":"pseudoType","description":"Pseudo element type.","$ref":"DOM.PseudoType"},{"name":"matches","type":"array","description":"Matches of CSS rules applicable to the pseudo style.","items":{"$ref":"RuleMatch"}}]},{"id":"InheritedStyleEntry","type":"object","description":"Inherited CSS rule collection from ancestor node.","properties":[{"name":"inlineStyle","description":"The ancestor node's inline style, if any, in the style inheritance chain.","$ref":"CSSStyle","optional":true},{"name":"matchedCSSRules","type":"array","description":"Matches of CSS rules matching the ancestor node in the style inheritance chain.","items":{"$ref":"RuleMatch"}}]},{"id":"RuleMatch","type":"object","description":"Match data for a CSS rule.","properties":[{"name":"rule","description":"CSS rule in the match.","$ref":"CSSRule"},{"name":"matchingSelectors","type":"array","description":"Matching selector indices in the rule's selectorList selectors (0-based).","items":{"type":"integer"}}]},{"id":"Value","type":"object","description":"Data for a simple selector (these are delimited by commas in a selector list).","properties":[{"name":"text","type":"string","description":"Value text."},{"name":"range","description":"Value range in the underlying resource (if available).","$ref":"SourceRange","optional":true}]},{"id":"SelectorList","type":"object","description":"Selector list data.","properties":[{"name":"selectors","type":"array","description":"Selectors in the list.","items":{"$ref":"Value"}},{"name":"text","type":"string","description":"Rule selector text."}]},{"id":"CSSStyleSheetHeader","type":"object","description":"CSS stylesheet metainformation.","properties":[{"name":"styleSheetId","description":"The stylesheet identifier.","$ref":"StyleSheetId"},{"name":"frameId","description":"Owner frame identifier.","$ref":"Page.FrameId"},{"name":"sourceURL","type":"string","description":"Stylesheet resource URL. Empty if this is a constructed stylesheet created using new CSSStyleSheet() (but non-empty if this is a constructed sylesheet imported as a CSS module script)."},{"name":"sourceMapURL","type":"string","description":"URL of source map associated with the stylesheet (if any).","optional":true},{"name":"origin","description":"Stylesheet origin.","$ref":"StyleSheetOrigin"},{"name":"title","type":"string","description":"Stylesheet title."},{"name":"ownerNode","description":"The backend id for the owner node of the stylesheet.","$ref":"DOM.BackendNodeId","optional":true},{"name":"disabled","type":"boolean","description":"Denotes whether the stylesheet is disabled."},{"name":"hasSourceURL","type":"boolean","description":"Whether the sourceURL field value comes from the sourceURL comment.","optional":true},{"name":"isInline","type":"boolean","description":"Whether this stylesheet is created for STYLE tag by parser. This flag is not set for document.written STYLE tags."},{"name":"isMutable","type":"boolean","description":"Whether this stylesheet is mutable. Inline stylesheets become mutable after they have been modified via CSSOM API. \u003clink\u003e element's stylesheets become mutable only if DevTools modifies them. Constructed stylesheets (new CSSStyleSheet()) are mutable immediately after creation."},{"name":"isConstructed","type":"boolean","description":"True if this stylesheet is created through new CSSStyleSheet() or imported as a CSS module script."},{"name":"startLine","type":"number","description":"Line offset of the stylesheet within the resource (zero based)."},{"name":"startColumn","type":"number","description":"Column offset of the stylesheet within the resource (zero based)."},{"name":"length","type":"number","description":"Size of the content (in characters)."},{"name":"endLine","type":"number","description":"Line offset of the end of the stylesheet within the resource (zero based)."},{"name":"endColumn","type":"number","description":"Column offset of the end of the stylesheet within the resource (zero based)."}]},{"id":"CSSRule","type":"object","description":"CSS rule representation.","properties":[{"name":"styleSheetId","description":"The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.","$ref":"StyleSheetId","optional":true},{"name":"selectorList","description":"Rule selector data.","$ref":"SelectorList"},{"name":"origin","description":"Parent stylesheet's origin.","$ref":"StyleSheetOrigin"},{"name":"style","description":"Associated style declaration.","$ref":"CSSStyle"},{"name":"media","type":"array","description":"Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards.","optional":true,"items":{"$ref":"CSSMedia"}},{"name":"containerQueries","type":"array","description":"Container query list array (for rules involving container queries). The array enumerates container queries starting with the innermost one, going outwards.","optional":true,"items":{"$ref":"CSSContainerQuery"}}]},{"id":"RuleUsage","type":"object","description":"CSS coverage information.","properties":[{"name":"styleSheetId","description":"The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.","$ref":"StyleSheetId"},{"name":"startOffset","type":"number","description":"Offset of the start of the rule (including selector) from the beginning of the stylesheet."},{"name":"endOffset","type":"number","description":"Offset of the end of the rule body from the beginning of the stylesheet."},{"name":"used","type":"boolean","description":"Indicates whether the rule was actually used by some element in the page."}]},{"id":"SourceRange","type":"object","description":"Text range within a resource. All numbers are zero-based.","properties":[{"name":"startLine","type":"integer","description":"Start line of range."},{"name":"startColumn","type":"integer","description":"Start column of range (inclusive)."},{"name":"endLine","type":"integer","description":"End line of range"},{"name":"endColumn","type":"integer","description":"End column of range (exclusive)."}]},{"id":"ShorthandEntry","type":"object","properties":[{"name":"name","type":"string","description":"Shorthand name."},{"name":"value","type":"string","description":"Shorthand value."},{"name":"important","type":"boolean","description":"Whether the property has \"!important\" annotation (implies `false` if absent).","optional":true}]},{"id":"CSSComputedStyleProperty","type":"object","properties":[{"name":"name","type":"string","description":"Computed style property name."},{"name":"value","type":"string","description":"Computed style property value."}]},{"id":"CSSStyle","type":"object","description":"CSS style representation.","properties":[{"name":"styleSheetId","description":"The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.","$ref":"StyleSheetId","optional":true},{"name":"cssProperties","type":"array","description":"CSS properties in the style.","items":{"$ref":"CSSProperty"}},{"name":"shorthandEntries","type":"array","description":"Computed values for all shorthands found in the style.","items":{"$ref":"ShorthandEntry"}},{"name":"cssText","type":"string","description":"Style declaration text (if available).","optional":true},{"name":"range","description":"Style declaration range in the enclosing stylesheet (if available).","$ref":"SourceRange","optional":true}]},{"id":"CSSProperty","type":"object","description":"CSS property declaration data.","properties":[{"name":"name","type":"string","description":"The property name."},{"name":"value","type":"string","description":"The property value."},{"name":"important","type":"boolean","description":"Whether the property has \"!important\" annotation (implies `false` if absent).","optional":true},{"name":"implicit","type":"boolean","description":"Whether the property is implicit (implies `false` if absent).","optional":true},{"name":"text","type":"string","description":"The full property text as specified in the style.","optional":true},{"name":"parsedOk","type":"boolean","description":"Whether the property is understood by the browser (implies `true` if absent).","optional":true},{"name":"disabled","type":"boolean","description":"Whether the property is disabled by the user (present for source-based properties only).","optional":true},{"name":"range","description":"The entire property range in the enclosing style declaration (if available).","$ref":"SourceRange","optional":true}]},{"id":"CSSMedia","type":"object","description":"CSS media rule descriptor.","properties":[{"name":"text","type":"string","description":"Media query text."},{"name":"source","type":"string","description":"Source of the media query: \"mediaRule\" if specified by a @media rule, \"importRule\" if specified by an @import rule, \"linkedSheet\" if specified by a \"media\" attribute in a linked stylesheet's LINK tag, \"inlineSheet\" if specified by a \"media\" attribute in an inline stylesheet's STYLE tag.","enum":["mediaRule","importRule","linkedSheet","inlineSheet"]},{"name":"sourceURL","type":"string","description":"URL of the document containing the media query description.","optional":true},{"name":"range","description":"The associated rule (@media or @import) header range in the enclosing stylesheet (if available).","$ref":"SourceRange","optional":true},{"name":"styleSheetId","description":"Identifier of the stylesheet containing this object (if exists).","$ref":"StyleSheetId","optional":true},{"name":"mediaList","type":"array","description":"Array of media queries.","optional":true,"items":{"$ref":"MediaQuery"}}]},{"id":"MediaQuery","type":"object","description":"Media query descriptor.","properties":[{"name":"expressions","type":"array","description":"Array of media query expressions.","items":{"$ref":"MediaQueryExpression"}},{"name":"active","type":"boolean","description":"Whether the media query condition is satisfied."}]},{"id":"MediaQueryExpression","type":"object","description":"Media query expression descriptor.","properties":[{"name":"value","type":"number","description":"Media query expression value."},{"name":"unit","type":"string","description":"Media query expression units."},{"name":"feature","type":"string","description":"Media query expression feature."},{"name":"valueRange","description":"The associated range of the value text in the enclosing stylesheet (if available).","$ref":"SourceRange","optional":true},{"name":"computedLength","type":"number","description":"Computed length of media query expression (if applicable).","optional":true}]},{"id":"CSSContainerQuery","type":"object","description":"CSS container query rule descriptor.","properties":[{"name":"text","type":"string","description":"Container query text."},{"name":"range","description":"The associated rule header range in the enclosing stylesheet (if available).","$ref":"SourceRange","optional":true},{"name":"styleSheetId","description":"Identifier of the stylesheet containing this object (if exists).","$ref":"StyleSheetId","optional":true},{"name":"name","type":"string","description":"Optional name for the container.","optional":true}]},{"id":"PlatformFontUsage","type":"object","description":"Information about amount of glyphs that were rendered with given font.","properties":[{"name":"familyName","type":"string","description":"Font's family name reported by platform."},{"name":"isCustomFont","type":"boolean","description":"Indicates if the font was downloaded or resolved locally."},{"name":"glyphCount","type":"number","description":"Amount of glyphs that were rendered with this font."}]},{"id":"FontVariationAxis","type":"object","description":"Information about font variation axes for variable fonts","properties":[{"name":"tag","type":"string","description":"The font-variation-setting tag (a.k.a. \"axis tag\")."},{"name":"name","type":"string","description":"Human-readable variation name in the default language (normally, \"en\")."},{"name":"minValue","type":"number","description":"The minimum value (inclusive) the font supports for this tag."},{"name":"maxValue","type":"number","description":"The maximum value (inclusive) the font supports for this tag."},{"name":"defaultValue","type":"number","description":"The default value."}]},{"id":"FontFace","type":"object","description":"Properties of a web font: https://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html#font-descriptions and additional information such as platformFontFamily and fontVariationAxes.","properties":[{"name":"fontFamily","type":"string","description":"The font-family."},{"name":"fontStyle","type":"string","description":"The font-style."},{"name":"fontVariant","type":"string","description":"The font-variant."},{"name":"fontWeight","type":"string","description":"The font-weight."},{"name":"fontStretch","type":"string","description":"The font-stretch."},{"name":"unicodeRange","type":"string","description":"The unicode-range."},{"name":"src","type":"string","description":"The src."},{"name":"platformFontFamily","type":"string","description":"The resolved platform font family"},{"name":"fontVariationAxes","type":"array","description":"Available variation settings (a.k.a. \"axes\").","optional":true,"items":{"$ref":"FontVariationAxis"}}]},{"id":"CSSKeyframesRule","type":"object","description":"CSS keyframes rule representation.","properties":[{"name":"animationName","description":"Animation name.","$ref":"Value"},{"name":"keyframes","type":"array","description":"List of keyframes.","items":{"$ref":"CSSKeyframeRule"}}]},{"id":"CSSKeyframeRule","type":"object","description":"CSS keyframe rule representation.","properties":[{"name":"styleSheetId","description":"The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.","$ref":"StyleSheetId","optional":true},{"name":"origin","description":"Parent stylesheet's origin.","$ref":"StyleSheetOrigin"},{"name":"keyText","description":"Associated key text.","$ref":"Value"},{"name":"style","description":"Associated style declaration.","$ref":"CSSStyle"}]},{"id":"StyleDeclarationEdit","type":"object","description":"A descriptor of operation to mutate style declaration text.","properties":[{"name":"styleSheetId","description":"The css style sheet identifier.","$ref":"StyleSheetId"},{"name":"range","description":"The range of the style text in the enclosing stylesheet.","$ref":"SourceRange"},{"name":"text","type":"string","description":"New style text."}]}],"commands":[{"name":"addRule","description":"Inserts a new rule with the given `ruleText` in a stylesheet with given `styleSheetId`, at the position specified by `location`.","parameters":[{"name":"styleSheetId","description":"The css style sheet identifier where a new rule should be inserted.","$ref":"StyleSheetId"},{"name":"ruleText","type":"string","description":"The text of a new rule."},{"name":"location","description":"Text position of a new rule in the target style sheet.","$ref":"SourceRange"}],"returns":[{"name":"rule","$ref":"CSSRule","description":"The newly created rule."}]},{"name":"collectClassNames","description":"Returns all class names from specified stylesheet.","parameters":[{"name":"styleSheetId","$ref":"StyleSheetId"}],"returns":[{"name":"classNames","type":"array","items":{"type":"string"},"description":"Class name list."}]},{"name":"createStyleSheet","description":"Creates a new special \"via-inspector\" stylesheet in the frame with given `frameId`.","parameters":[{"name":"frameId","description":"Identifier of the frame where \"via-inspector\" stylesheet should be created.","$ref":"Page.FrameId"}],"returns":[{"name":"styleSheetId","$ref":"StyleSheetId","description":"Identifier of the created \"via-inspector\" stylesheet."}]},{"name":"disable","description":"Disables the CSS agent for the given page."},{"name":"enable","description":"Enables the CSS agent for the given page. Clients should not assume that the CSS agent has been enabled until the result of this command is received."},{"name":"forcePseudoState","description":"Ensures that the given node will have specified pseudo-classes whenever its style is computed by the browser.","parameters":[{"name":"nodeId","description":"The element id for which to force the pseudo state.","$ref":"DOM.NodeId"},{"name":"forcedPseudoClasses","type":"array","description":"Element pseudo classes to force when computing the element's style.","items":{"type":"string"}}]},{"name":"getBackgroundColors","parameters":[{"name":"nodeId","description":"Id of the node to get background colors for.","$ref":"DOM.NodeId"}],"returns":[{"name":"backgroundColors","type":"array","items":{"type":"string"},"description":"The range of background colors behind this element, if it contains any visible text. If no visible text is present, this will be undefined. In the case of a flat background color, this will consist of simply that color. In the case of a gradient, this will consist of each of the color stops. For anything more complicated, this will be an empty array. Images will be ignored (as if the image had failed to load)."},{"name":"computedFontSize","type":"string","description":"The computed font size for this node, as a CSS computed value string (e.g. '12px')."},{"name":"computedFontWeight","type":"string","description":"The computed font weight for this node, as a CSS computed value string (e.g. 'normal' or '100')."}]},{"name":"getComputedStyleForNode","description":"Returns the computed style for a DOM node identified by `nodeId`.","parameters":[{"name":"nodeId","$ref":"DOM.NodeId"}],"returns":[{"name":"computedStyle","type":"array","items":{"$ref":"CSSComputedStyleProperty"},"description":"Computed style for the specified DOM node."}]},{"name":"getInlineStylesForNode","description":"Returns the styles defined inline (explicitly in the \"style\" attribute and implicitly, using DOM attributes) for a DOM node identified by `nodeId`.","parameters":[{"name":"nodeId","$ref":"DOM.NodeId"}],"returns":[{"name":"inlineStyle","$ref":"CSSStyle","description":"Inline style for the specified DOM node."},{"name":"attributesStyle","$ref":"CSSStyle","description":"Attribute-defined element style (e.g. resulting from \"width=20 height=100%\")."}]},{"name":"getMatchedStylesForNode","description":"Returns requested styles for a DOM node identified by `nodeId`.","parameters":[{"name":"nodeId","$ref":"DOM.NodeId"}],"returns":[{"name":"inlineStyle","$ref":"CSSStyle","description":"Inline style for the specified DOM node."},{"name":"attributesStyle","$ref":"CSSStyle","description":"Attribute-defined element style (e.g. resulting from \"width=20 height=100%\")."},{"name":"matchedCSSRules","type":"array","items":{"$ref":"RuleMatch"},"description":"CSS rules matching this node, from all applicable stylesheets."},{"name":"pseudoElements","type":"array","items":{"$ref":"PseudoElementMatches"},"description":"Pseudo style matches for this node."},{"name":"inherited","type":"array","items":{"$ref":"InheritedStyleEntry"},"description":"A chain of inherited styles (from the immediate node parent up to the DOM tree root)."},{"name":"cssKeyframesRules","type":"array","items":{"$ref":"CSSKeyframesRule"},"description":"A list of CSS keyframed animations matching this node."}]},{"name":"getMediaQueries","description":"Returns all media queries parsed by the rendering engine.","returns":[{"name":"medias","type":"array","items":{"$ref":"CSSMedia"}}]},{"name":"getPlatformFontsForNode","description":"Requests information about platform fonts which we used to render child TextNodes in the given node.","parameters":[{"name":"nodeId","$ref":"DOM.NodeId"}],"returns":[{"name":"fonts","type":"array","items":{"$ref":"PlatformFontUsage"},"description":"Usage statistics for every employed platform font."}]},{"name":"getStyleSheetText","description":"Returns the current textual content for a stylesheet.","parameters":[{"name":"styleSheetId","$ref":"StyleSheetId"}],"returns":[{"name":"text","type":"string","description":"The stylesheet text."}]},{"name":"trackComputedStyleUpdates","description":"Starts tracking the given computed styles for updates. The specified array of properties replaces the one previously specified. Pass empty array to disable tracking. Use takeComputedStyleUpdates to retrieve the list of nodes that had properties modified. The changes to computed style properties are only tracked for nodes pushed to the front-end by the DOM agent. If no changes to the tracked properties occur after the node has been pushed to the front-end, no updates will be issued for the node.","parameters":[{"name":"propertiesToTrack","type":"array","items":{"$ref":"CSSComputedStyleProperty"}}]},{"name":"takeComputedStyleUpdates","description":"Polls the next batch of computed style updates.","returns":[{"name":"nodeIds","type":"array","items":{"$ref":"DOM.NodeId"},"description":"The list of node Ids that have their tracked computed styles updated"}]},{"name":"setEffectivePropertyValueForNode","description":"Find a rule with the given active property for the given node and set the new value for this property","parameters":[{"name":"nodeId","description":"The element id for which to set property.","$ref":"DOM.NodeId"},{"name":"propertyName","type":"string"},{"name":"value","type":"string"}]},{"name":"setKeyframeKey","description":"Modifies the keyframe rule key text.","parameters":[{"name":"styleSheetId","$ref":"StyleSheetId"},{"name":"range","$ref":"SourceRange"},{"name":"keyText","type":"string"}],"returns":[{"name":"keyText","$ref":"Value","description":"The resulting key text after modification."}]},{"name":"setMediaText","description":"Modifies the rule selector.","parameters":[{"name":"styleSheetId","$ref":"StyleSheetId"},{"name":"range","$ref":"SourceRange"},{"name":"text","type":"string"}],"returns":[{"name":"media","$ref":"CSSMedia","description":"The resulting CSS media rule after modification."}]},{"name":"setContainerQueryText","description":"Modifies the expression of a container query.","parameters":[{"name":"styleSheetId","$ref":"StyleSheetId"},{"name":"range","$ref":"SourceRange"},{"name":"text","type":"string"}],"returns":[{"name":"containerQuery","$ref":"CSSContainerQuery","description":"The resulting CSS container query rule after modification."}]},{"name":"setRuleSelector","description":"Modifies the rule selector.","parameters":[{"name":"styleSheetId","$ref":"StyleSheetId"},{"name":"range","$ref":"SourceRange"},{"name":"selector","type":"string"}],"returns":[{"name":"selectorList","$ref":"SelectorList","description":"The resulting selector list after modification."}]},{"name":"setStyleSheetText","description":"Sets the new stylesheet text.","parameters":[{"name":"styleSheetId","$ref":"StyleSheetId"},{"name":"text","type":"string"}],"returns":[{"name":"sourceMapURL","type":"string","description":"URL of source map associated with script (if any)."}]},{"name":"setStyleTexts","description":"Applies specified style edits one after another in the given order.","parameters":[{"name":"edits","type":"array","items":{"$ref":"StyleDeclarationEdit"}}],"returns":[{"name":"styles","type":"array","items":{"$ref":"CSSStyle"},"description":"The resulting styles after modification."}]},{"name":"startRuleUsageTracking","description":"Enables the selector recording."},{"name":"stopRuleUsageTracking","description":"Stop tracking rule usage and return the list of rules that were used since last call to `takeCoverageDelta` (or since start of coverage instrumentation)","returns":[{"name":"ruleUsage","type":"array","items":{"$ref":"RuleUsage"}}]},{"name":"takeCoverageDelta","description":"Obtain list of rules that became used since last call to this method (or since start of coverage instrumentation)","returns":[{"name":"coverage","type":"array","items":{"$ref":"RuleUsage"}},{"name":"timestamp","type":"number","description":"Monotonically increasing time, in seconds."}]},{"name":"setLocalFontsEnabled","description":"Enables/disables rendering of local CSS fonts (enabled by default).","parameters":[{"name":"enabled","type":"boolean","description":"Whether rendering of local fonts is enabled."}]}],"events":[{"name":"fontsUpdated","description":"Fires whenever a web font is updated. A non-empty font parameter indicates a successfully loaded web font","parameters":[{"name":"font","description":"The web font that has loaded.","$ref":"FontFace","optional":true}]},{"name":"mediaQueryResultChanged","description":"Fires whenever a MediaQuery result changes (for example, after a browser window has been resized.) The current implementation considers only viewport-dependent media features."},{"name":"styleSheetAdded","description":"Fired whenever an active document stylesheet is added.","parameters":[{"name":"header","description":"Added stylesheet metainfo.","$ref":"CSSStyleSheetHeader"}]},{"name":"styleSheetChanged","description":"Fired whenever a stylesheet is changed as a result of the client operation.","parameters":[{"name":"styleSheetId","$ref":"StyleSheetId"}]},{"name":"styleSheetRemoved","description":"Fired whenever an active document stylesheet is removed.","parameters":[{"name":"styleSheetId","description":"Identifier of the removed stylesheet.","$ref":"StyleSheetId"}]}]},{"domain":"CacheStorage","types":[{"id":"CacheId","type":"string","description":"Unique identifier of the Cache object."},{"id":"CachedResponseType","type":"string","description":"type of HTTP response cached","enum":["basic","cors","default","error","opaqueResponse","opaqueRedirect"]},{"id":"DataEntry","type":"object","description":"Data entry.","properties":[{"name":"requestURL","type":"string","description":"Request URL."},{"name":"requestMethod","type":"string","description":"Request method."},{"name":"requestHeaders","type":"array","description":"Request headers","items":{"$ref":"Header"}},{"name":"responseTime","type":"number","description":"Number of seconds since epoch."},{"name":"responseStatus","type":"integer","description":"HTTP response status code."},{"name":"responseStatusText","type":"string","description":"HTTP response status text."},{"name":"responseType","description":"HTTP response type","$ref":"CachedResponseType"},{"name":"responseHeaders","type":"array","description":"Response headers","items":{"$ref":"Header"}}]},{"id":"Cache","type":"object","description":"Cache identifier.","properties":[{"name":"cacheId","description":"An opaque unique id of the cache.","$ref":"CacheId"},{"name":"securityOrigin","type":"string","description":"Security origin of the cache."},{"name":"cacheName","type":"string","description":"The name of the cache."}]},{"id":"Header","type":"object","properties":[{"name":"name","type":"string"},{"name":"value","type":"string"}]},{"id":"CachedResponse","type":"object","description":"Cached response","properties":[{"name":"body","type":"string","description":"Entry content, base64-encoded. (Encoded as a base64 string when passed over JSON)"}]}],"commands":[{"name":"deleteCache","description":"Deletes a cache.","parameters":[{"name":"cacheId","description":"Id of cache for deletion.","$ref":"CacheId"}]},{"name":"deleteEntry","description":"Deletes a cache entry.","parameters":[{"name":"cacheId","description":"Id of cache where the entry will be deleted.","$ref":"CacheId"},{"name":"request","type":"string","description":"URL spec of the request."}]},{"name":"requestCacheNames","description":"Requests cache names.","parameters":[{"name":"securityOrigin","type":"string","description":"Security origin."}],"returns":[{"name":"caches","type":"array","items":{"$ref":"Cache"},"description":"Caches for the security origin."}]},{"name":"requestCachedResponse","description":"Fetches cache entry.","parameters":[{"name":"cacheId","description":"Id of cache that contains the entry.","$ref":"CacheId"},{"name":"requestURL","type":"string","description":"URL spec of the request."},{"name":"requestHeaders","type":"array","description":"headers of the request.","items":{"$ref":"Header"}}],"returns":[{"name":"response","$ref":"CachedResponse","description":"Response read from the cache."}]},{"name":"requestEntries","description":"Requests data from cache.","parameters":[{"name":"cacheId","description":"ID of cache to get entries from.","$ref":"CacheId"},{"name":"skipCount","type":"integer","description":"Number of records to skip.","optional":true},{"name":"pageSize","type":"integer","description":"Number of records to fetch.","optional":true},{"name":"pathFilter","type":"string","description":"If present, only return the entries containing this substring in the path","optional":true}],"returns":[{"name":"cacheDataEntries","type":"array","items":{"$ref":"DataEntry"},"description":"Array of object store data entries."},{"name":"returnCount","type":"number","description":"Count of returned entries from this storage. If pathFilter is empty, it is the count of all entries from this storage."}]}]},{"domain":"Cast","description":"A domain for interacting with Cast, Presentation API, and Remote Playback API functionalities.","types":[{"id":"Sink","type":"object","properties":[{"name":"name","type":"string"},{"name":"id","type":"string"},{"name":"session","type":"string","description":"Text describing the current session. Present only if there is an active session on the sink.","optional":true}]}],"commands":[{"name":"enable","description":"Starts observing for sinks that can be used for tab mirroring, and if set, sinks compatible with |presentationUrl| as well. When sinks are found, a |sinksUpdated| event is fired. Also starts observing for issue messages. When an issue is added or removed, an |issueUpdated| event is fired.","parameters":[{"name":"presentationUrl","type":"string","optional":true}]},{"name":"disable","description":"Stops observing for sinks and issues."},{"name":"setSinkToUse","description":"Sets a sink to be used when the web page requests the browser to choose a sink via Presentation API, Remote Playback API, or Cast SDK.","parameters":[{"name":"sinkName","type":"string"}]},{"name":"startTabMirroring","description":"Starts mirroring the tab to the sink.","parameters":[{"name":"sinkName","type":"string"}]},{"name":"stopCasting","description":"Stops the active Cast session on the sink.","parameters":[{"name":"sinkName","type":"string"}]}],"events":[{"name":"sinksUpdated","description":"This is fired whenever the list of available sinks changes. A sink is a device or a software surface that you can cast to.","parameters":[{"name":"sinks","type":"array","items":{"$ref":"Sink"}}]},{"name":"issueUpdated","description":"This is fired whenever the outstanding issue/error message changes. |issueMessage| is empty if there is no issue.","parameters":[{"name":"issueMessage","type":"string"}]}]},{"domain":"DOM","description":"This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object that has an `id`. This `id` can be used to get additional information on the Node, resolve it into the JavaScript object wrapper, etc. It is important that client receives DOM events only for the nodes that are known to the client. Backend keeps track of the nodes that were sent to the client and never sends the same node twice. It is client's responsibility to collect information about the nodes that were sent to the client.\u003cp\u003eNote that `iframe` owner elements will return corresponding document elements as their child nodes.\u003c/p\u003e","types":[{"id":"NodeId","type":"integer","description":"Unique DOM node identifier."},{"id":"BackendNodeId","type":"integer","description":"Unique DOM node identifier used to reference a node that may not have been pushed to the front-end."},{"id":"BackendNode","type":"object","description":"Backend node with a friendly name.","properties":[{"name":"nodeType","type":"integer","description":"`Node`'s nodeType."},{"name":"nodeName","type":"string","description":"`Node`'s nodeName."},{"name":"backendNodeId","$ref":"BackendNodeId"}]},{"id":"PseudoType","type":"string","description":"Pseudo element type.","enum":["first-line","first-letter","before","after","marker","backdrop","selection","target-text","spelling-error","grammar-error","highlight","first-line-inherited","scrollbar","scrollbar-thumb","scrollbar-button","scrollbar-track","scrollbar-track-piece","scrollbar-corner","resizer","input-list-button"]},{"id":"ShadowRootType","type":"string","description":"Shadow root type.","enum":["user-agent","open","closed"]},{"id":"CompatibilityMode","type":"string","description":"Document compatibility mode.","enum":["QuirksMode","LimitedQuirksMode","NoQuirksMode"]},{"id":"Node","type":"object","description":"DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type.","properties":[{"name":"nodeId","description":"Node identifier that is passed into the rest of the DOM messages as the `nodeId`. Backend will only push node with given `id` once. It is aware of all requested nodes and will only fire DOM events for nodes known to the client.","$ref":"NodeId"},{"name":"parentId","description":"The id of the parent node if any.","$ref":"NodeId","optional":true},{"name":"backendNodeId","description":"The BackendNodeId for this node.","$ref":"BackendNodeId"},{"name":"nodeType","type":"integer","description":"`Node`'s nodeType."},{"name":"nodeName","type":"string","description":"`Node`'s nodeName."},{"name":"localName","type":"string","description":"`Node`'s localName."},{"name":"nodeValue","type":"string","description":"`Node`'s nodeValue."},{"name":"childNodeCount","type":"integer","description":"Child count for `Container` nodes.","optional":true},{"name":"children","type":"array","description":"Child nodes of this node when requested with children.","optional":true,"items":{"$ref":"Node"}},{"name":"attributes","type":"array","description":"Attributes of the `Element` node in the form of flat array `[name1, value1, name2, value2]`.","optional":true,"items":{"type":"string"}},{"name":"documentURL","type":"string","description":"Document URL that `Document` or `FrameOwner` node points to.","optional":true},{"name":"baseURL","type":"string","description":"Base URL that `Document` or `FrameOwner` node uses for URL completion.","optional":true},{"name":"publicId","type":"string","description":"`DocumentType`'s publicId.","optional":true},{"name":"systemId","type":"string","description":"`DocumentType`'s systemId.","optional":true},{"name":"internalSubset","type":"string","description":"`DocumentType`'s internalSubset.","optional":true},{"name":"xmlVersion","type":"string","description":"`Document`'s XML version in case of XML documents.","optional":true},{"name":"name","type":"string","description":"`Attr`'s name.","optional":true},{"name":"value","type":"string","description":"`Attr`'s value.","optional":true},{"name":"pseudoType","description":"Pseudo element type for this node.","$ref":"PseudoType","optional":true},{"name":"shadowRootType","description":"Shadow root type.","$ref":"ShadowRootType","optional":true},{"name":"frameId","description":"Frame ID for frame owner elements.","$ref":"Page.FrameId","optional":true},{"name":"contentDocument","description":"Content document for frame owner elements.","$ref":"Node","optional":true},{"name":"shadowRoots","type":"array","description":"Shadow root list for given element host.","optional":true,"items":{"$ref":"Node"}},{"name":"templateContent","description":"Content document fragment for template elements.","$ref":"Node","optional":true},{"name":"pseudoElements","type":"array","description":"Pseudo elements associated with this node.","optional":true,"items":{"$ref":"Node"}},{"name":"importedDocument","description":"Deprecated, as the HTML Imports API has been removed (crbug.com/937746). This property used to return the imported document for the HTMLImport links. The property is always undefined now.","$ref":"Node","optional":true},{"name":"distributedNodes","type":"array","description":"Distributed nodes for given insertion point.","optional":true,"items":{"$ref":"BackendNode"}},{"name":"isSVG","type":"boolean","description":"Whether the node is SVG.","optional":true},{"name":"compatibilityMode","$ref":"CompatibilityMode","optional":true}]},{"id":"RGBA","type":"object","description":"A structure holding an RGBA color.","properties":[{"name":"r","type":"integer","description":"The red component, in the [0-255] range."},{"name":"g","type":"integer","description":"The green component, in the [0-255] range."},{"name":"b","type":"integer","description":"The blue component, in the [0-255] range."},{"name":"a","type":"number","description":"The alpha component, in the [0-1] range (default: 1).","optional":true}]},{"id":"Quad","type":"array","description":"An array of quad vertices, x immediately followed by y for each point, points clock-wise.","items":{"type":"number"}},{"id":"BoxModel","type":"object","description":"Box model.","properties":[{"name":"content","description":"Content box","$ref":"Quad"},{"name":"padding","description":"Padding box","$ref":"Quad"},{"name":"border","description":"Border box","$ref":"Quad"},{"name":"margin","description":"Margin box","$ref":"Quad"},{"name":"width","type":"integer","description":"Node width"},{"name":"height","type":"integer","description":"Node height"},{"name":"shapeOutside","description":"Shape outside coordinates","$ref":"ShapeOutsideInfo","optional":true}]},{"id":"ShapeOutsideInfo","type":"object","description":"CSS Shape Outside details.","properties":[{"name":"bounds","description":"Shape bounds","$ref":"Quad"},{"name":"shape","type":"array","description":"Shape coordinate details","items":{"type":"any"}},{"name":"marginShape","type":"array","description":"Margin shape bounds","items":{"type":"any"}}]},{"id":"Rect","type":"object","description":"Rectangle.","properties":[{"name":"x","type":"number","description":"X coordinate"},{"name":"y","type":"number","description":"Y coordinate"},{"name":"width","type":"number","description":"Rectangle width"},{"name":"height","type":"number","description":"Rectangle height"}]},{"id":"CSSComputedStyleProperty","type":"object","properties":[{"name":"name","type":"string","description":"Computed style property name."},{"name":"value","type":"string","description":"Computed style property value."}]}],"commands":[{"name":"collectClassNamesFromSubtree","description":"Collects class names for the node with given id and all of it's child nodes.","parameters":[{"name":"nodeId","description":"Id of the node to collect class names.","$ref":"NodeId"}],"returns":[{"name":"classNames","type":"array","items":{"type":"string"},"description":"Class name list."}]},{"name":"copyTo","description":"Creates a deep copy of the specified node and places it into the target container before the given anchor.","parameters":[{"name":"nodeId","description":"Id of the node to copy.","$ref":"NodeId"},{"name":"targetNodeId","description":"Id of the element to drop the copy into.","$ref":"NodeId"},{"name":"insertBeforeNodeId","description":"Drop the copy before this node (if absent, the copy becomes the last child of `targetNodeId`).","$ref":"NodeId","optional":true}],"returns":[{"name":"nodeId","$ref":"NodeId","description":"Id of the node clone."}]},{"name":"describeNode","description":"Describes node given its id, does not require domain to be enabled. Does not start tracking any objects, can be used for automation.","parameters":[{"name":"nodeId","description":"Identifier of the node.","$ref":"NodeId","optional":true},{"name":"backendNodeId","description":"Identifier of the backend node.","$ref":"BackendNodeId","optional":true},{"name":"objectId","description":"JavaScript object id of the node wrapper.","$ref":"Runtime.RemoteObjectId","optional":true},{"name":"depth","type":"integer","description":"The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.","optional":true},{"name":"pierce","type":"boolean","description":"Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).","optional":true}],"returns":[{"name":"node","$ref":"Node","description":"Node description."}]},{"name":"scrollIntoViewIfNeeded","description":"Scrolls the specified rect of the given node into view if not already visible. Note: exactly one between nodeId, backendNodeId and objectId should be passed to identify the node.","parameters":[{"name":"nodeId","description":"Identifier of the node.","$ref":"NodeId","optional":true},{"name":"backendNodeId","description":"Identifier of the backend node.","$ref":"BackendNodeId","optional":true},{"name":"objectId","description":"JavaScript object id of the node wrapper.","$ref":"Runtime.RemoteObjectId","optional":true},{"name":"rect","description":"The rect to be scrolled into view, relative to the node's border box, in CSS pixels. When omitted, center of the node will be used, similar to Element.scrollIntoView.","$ref":"Rect","optional":true}]},{"name":"disable","description":"Disables DOM agent for the given page."},{"name":"discardSearchResults","description":"Discards search results from the session with the given id. `getSearchResults` should no longer be called for that search.","parameters":[{"name":"searchId","type":"string","description":"Unique search session identifier."}]},{"name":"enable","description":"Enables DOM agent for the given page."},{"name":"focus","description":"Focuses the given element.","parameters":[{"name":"nodeId","description":"Identifier of the node.","$ref":"NodeId","optional":true},{"name":"backendNodeId","description":"Identifier of the backend node.","$ref":"BackendNodeId","optional":true},{"name":"objectId","description":"JavaScript object id of the node wrapper.","$ref":"Runtime.RemoteObjectId","optional":true}]},{"name":"getAttributes","description":"Returns attributes for the specified node.","parameters":[{"name":"nodeId","description":"Id of the node to retrieve attibutes for.","$ref":"NodeId"}],"returns":[{"name":"attributes","type":"array","items":{"type":"string"},"description":"An interleaved array of node attribute names and values."}]},{"name":"getBoxModel","description":"Returns boxes for the given node.","parameters":[{"name":"nodeId","description":"Identifier of the node.","$ref":"NodeId","optional":true},{"name":"backendNodeId","description":"Identifier of the backend node.","$ref":"BackendNodeId","optional":true},{"name":"objectId","description":"JavaScript object id of the node wrapper.","$ref":"Runtime.RemoteObjectId","optional":true}],"returns":[{"name":"model","$ref":"BoxModel","description":"Box model for the node."}]},{"name":"getContentQuads","description":"Returns quads that describe node position on the page. This method might return multiple quads for inline nodes.","parameters":[{"name":"nodeId","description":"Identifier of the node.","$ref":"NodeId","optional":true},{"name":"backendNodeId","description":"Identifier of the backend node.","$ref":"BackendNodeId","optional":true},{"name":"objectId","description":"JavaScript object id of the node wrapper.","$ref":"Runtime.RemoteObjectId","optional":true}],"returns":[{"name":"quads","type":"array","items":{"$ref":"Quad"},"description":"Quads that describe node layout relative to viewport."}]},{"name":"getDocument","description":"Returns the root DOM node (and optionally the subtree) to the caller.","parameters":[{"name":"depth","type":"integer","description":"The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.","optional":true},{"name":"pierce","type":"boolean","description":"Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).","optional":true}],"returns":[{"name":"root","$ref":"Node","description":"Resulting node."}]},{"name":"getFlattenedDocument","description":"Returns the root DOM node (and optionally the subtree) to the caller. Deprecated, as it is not designed to work well with the rest of the DOM agent. Use DOMSnapshot.captureSnapshot instead.","parameters":[{"name":"depth","type":"integer","description":"The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.","optional":true},{"name":"pierce","type":"boolean","description":"Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).","optional":true}],"returns":[{"name":"nodes","type":"array","items":{"$ref":"Node"},"description":"Resulting node."}]},{"name":"getNodesForSubtreeByStyle","description":"Finds nodes with a given computed style in a subtree.","parameters":[{"name":"nodeId","description":"Node ID pointing to the root of a subtree.","$ref":"NodeId"},{"name":"computedStyles","type":"array","description":"The style to filter nodes by (includes nodes if any of properties matches).","items":{"$ref":"CSSComputedStyleProperty"}},{"name":"pierce","type":"boolean","description":"Whether or not iframes and shadow roots in the same target should be traversed when returning the results (default is false).","optional":true}],"returns":[{"name":"nodeIds","type":"array","items":{"$ref":"NodeId"},"description":"Resulting nodes."}]},{"name":"getNodeForLocation","description":"Returns node id at given location. Depending on whether DOM domain is enabled, nodeId is either returned or not.","parameters":[{"name":"x","type":"integer","description":"X coordinate."},{"name":"y","type":"integer","description":"Y coordinate."},{"name":"includeUserAgentShadowDOM","type":"boolean","description":"False to skip to the nearest non-UA shadow root ancestor (default: false).","optional":true},{"name":"ignorePointerEventsNone","type":"boolean","description":"Whether to ignore pointer-events: none on elements and hit test them.","optional":true}],"returns":[{"name":"backendNodeId","$ref":"BackendNodeId","description":"Resulting node."},{"name":"frameId","$ref":"Page.FrameId","description":"Frame this node belongs to."},{"name":"nodeId","$ref":"NodeId","description":"Id of the node at given coordinates, only when enabled and requested document."}]},{"name":"getOuterHTML","description":"Returns node's HTML markup.","parameters":[{"name":"nodeId","description":"Identifier of the node.","$ref":"NodeId","optional":true},{"name":"backendNodeId","description":"Identifier of the backend node.","$ref":"BackendNodeId","optional":true},{"name":"objectId","description":"JavaScript object id of the node wrapper.","$ref":"Runtime.RemoteObjectId","optional":true}],"returns":[{"name":"outerHTML","type":"string","description":"Outer HTML markup."}]},{"name":"getRelayoutBoundary","description":"Returns the id of the nearest ancestor that is a relayout boundary.","parameters":[{"name":"nodeId","description":"Id of the node.","$ref":"NodeId"}],"returns":[{"name":"nodeId","$ref":"NodeId","description":"Relayout boundary node id for the given node."}]},{"name":"getSearchResults","description":"Returns search results from given `fromIndex` to given `toIndex` from the search with the given identifier.","parameters":[{"name":"searchId","type":"string","description":"Unique search session identifier."},{"name":"fromIndex","type":"integer","description":"Start index of the search result to be returned."},{"name":"toIndex","type":"integer","description":"End index of the search result to be returned."}],"returns":[{"name":"nodeIds","type":"array","items":{"$ref":"NodeId"},"description":"Ids of the search result nodes."}]},{"name":"hideHighlight","description":"Hides any highlight.","redirect":"Overlay"},{"name":"highlightNode","description":"Highlights DOM node.","redirect":"Overlay"},{"name":"highlightRect","description":"Highlights given rectangle.","redirect":"Overlay"},{"name":"markUndoableState","description":"Marks last undoable state."},{"name":"moveTo","description":"Moves node into the new container, places it before the given anchor.","parameters":[{"name":"nodeId","description":"Id of the node to move.","$ref":"NodeId"},{"name":"targetNodeId","description":"Id of the element to drop the moved node into.","$ref":"NodeId"},{"name":"insertBeforeNodeId","description":"Drop node before this one (if absent, the moved node becomes the last child of `targetNodeId`).","$ref":"NodeId","optional":true}],"returns":[{"name":"nodeId","$ref":"NodeId","description":"New id of the moved node."}]},{"name":"performSearch","description":"Searches for a given string in the DOM tree. Use `getSearchResults` to access search results or `cancelSearch` to end this search session.","parameters":[{"name":"query","type":"string","description":"Plain text or query selector or XPath search query."},{"name":"includeUserAgentShadowDOM","type":"boolean","description":"True to search in user agent shadow DOM.","optional":true}],"returns":[{"name":"searchId","type":"string","description":"Unique search session identifier."},{"name":"resultCount","type":"integer","description":"Number of search results."}]},{"name":"pushNodeByPathToFrontend","description":"Requests that the node is sent to the caller given its path. // FIXME, use XPath","parameters":[{"name":"path","type":"string","description":"Path to node in the proprietary format."}],"returns":[{"name":"nodeId","$ref":"NodeId","description":"Id of the node for given path."}]},{"name":"pushNodesByBackendIdsToFrontend","description":"Requests that a batch of nodes is sent to the caller given their backend node ids.","parameters":[{"name":"backendNodeIds","type":"array","description":"The array of backend node ids.","items":{"$ref":"BackendNodeId"}}],"returns":[{"name":"nodeIds","type":"array","items":{"$ref":"NodeId"},"description":"The array of ids of pushed nodes that correspond to the backend ids specified in backendNodeIds."}]},{"name":"querySelector","description":"Executes `querySelector` on a given node.","parameters":[{"name":"nodeId","description":"Id of the node to query upon.","$ref":"NodeId"},{"name":"selector","type":"string","description":"Selector string."}],"returns":[{"name":"nodeId","$ref":"NodeId","description":"Query selector result."}]},{"name":"querySelectorAll","description":"Executes `querySelectorAll` on a given node.","parameters":[{"name":"nodeId","description":"Id of the node to query upon.","$ref":"NodeId"},{"name":"selector","type":"string","description":"Selector string."}],"returns":[{"name":"nodeIds","type":"array","items":{"$ref":"NodeId"},"description":"Query selector result."}]},{"name":"redo","description":"Re-does the last undone action."},{"name":"removeAttribute","description":"Removes attribute with given name from an element with given id.","parameters":[{"name":"nodeId","description":"Id of the element to remove attribute from.","$ref":"NodeId"},{"name":"name","type":"string","description":"Name of the attribute to remove."}]},{"name":"removeNode","description":"Removes node with given id.","parameters":[{"name":"nodeId","description":"Id of the node to remove.","$ref":"NodeId"}]},{"name":"requestChildNodes","description":"Requests that children of the node with given id are returned to the caller in form of `setChildNodes` events where not only immediate children are retrieved, but all children down to the specified depth.","parameters":[{"name":"nodeId","description":"Id of the node to get children for.","$ref":"NodeId"},{"name":"depth","type":"integer","description":"The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.","optional":true},{"name":"pierce","type":"boolean","description":"Whether or not iframes and shadow roots should be traversed when returning the sub-tree (default is false).","optional":true}]},{"name":"requestNode","description":"Requests that the node is sent to the caller given the JavaScript node object reference. All nodes that form the path from the node to the root are also sent to the client as a series of `setChildNodes` notifications.","parameters":[{"name":"objectId","description":"JavaScript object id to convert into node.","$ref":"Runtime.RemoteObjectId"}],"returns":[{"name":"nodeId","$ref":"NodeId","description":"Node id for given object."}]},{"name":"resolveNode","description":"Resolves the JavaScript node object for a given NodeId or BackendNodeId.","parameters":[{"name":"nodeId","description":"Id of the node to resolve.","$ref":"NodeId","optional":true},{"name":"backendNodeId","description":"Backend identifier of the node to resolve.","$ref":"DOM.BackendNodeId","optional":true},{"name":"objectGroup","type":"string","description":"Symbolic group name that can be used to release multiple objects.","optional":true},{"name":"executionContextId","description":"Execution context in which to resolve the node.","$ref":"Runtime.ExecutionContextId","optional":true}],"returns":[{"name":"object","$ref":"Runtime.RemoteObject","description":"JavaScript object wrapper for given node."}]},{"name":"setAttributeValue","description":"Sets attribute for an element with given id.","parameters":[{"name":"nodeId","description":"Id of the element to set attribute for.","$ref":"NodeId"},{"name":"name","type":"string","description":"Attribute name."},{"name":"value","type":"string","description":"Attribute value."}]},{"name":"setAttributesAsText","description":"Sets attributes on element with given id. This method is useful when user edits some existing attribute value and types in several attribute name/value pairs.","parameters":[{"name":"nodeId","description":"Id of the element to set attributes for.","$ref":"NodeId"},{"name":"text","type":"string","description":"Text with a number of attributes. Will parse this text using HTML parser."},{"name":"name","type":"string","description":"Attribute name to replace with new attributes derived from text in case text parsed successfully.","optional":true}]},{"name":"setFileInputFiles","description":"Sets files for the given file input element.","parameters":[{"name":"files","type":"array","description":"Array of file paths to set.","items":{"type":"string"}},{"name":"nodeId","description":"Identifier of the node.","$ref":"NodeId","optional":true},{"name":"backendNodeId","description":"Identifier of the backend node.","$ref":"BackendNodeId","optional":true},{"name":"objectId","description":"JavaScript object id of the node wrapper.","$ref":"Runtime.RemoteObjectId","optional":true}]},{"name":"setNodeStackTracesEnabled","description":"Sets if stack traces should be captured for Nodes. See `Node.getNodeStackTraces`. Default is disabled.","parameters":[{"name":"enable","type":"boolean","description":"Enable or disable."}]},{"name":"getNodeStackTraces","description":"Gets stack traces associated with a Node. As of now, only provides stack trace for Node creation.","parameters":[{"name":"nodeId","description":"Id of the node to get stack traces for.","$ref":"NodeId"}],"returns":[{"name":"creation","$ref":"Runtime.StackTrace","description":"Creation stack trace, if available."}]},{"name":"getFileInfo","description":"Returns file information for the given File wrapper.","parameters":[{"name":"objectId","description":"JavaScript object id of the node wrapper.","$ref":"Runtime.RemoteObjectId"}],"returns":[{"name":"path","type":"string"}]},{"name":"setInspectedNode","description":"Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).","parameters":[{"name":"nodeId","description":"DOM node id to be accessible by means of $x command line API.","$ref":"NodeId"}]},{"name":"setNodeName","description":"Sets node name for a node with given id.","parameters":[{"name":"nodeId","description":"Id of the node to set name for.","$ref":"NodeId"},{"name":"name","type":"string","description":"New node's name."}],"returns":[{"name":"nodeId","$ref":"NodeId","description":"New node's id."}]},{"name":"setNodeValue","description":"Sets node value for a node with given id.","parameters":[{"name":"nodeId","description":"Id of the node to set value for.","$ref":"NodeId"},{"name":"value","type":"string","description":"New node's value."}]},{"name":"setOuterHTML","description":"Sets node HTML markup, returns new node id.","parameters":[{"name":"nodeId","description":"Id of the node to set markup for.","$ref":"NodeId"},{"name":"outerHTML","type":"string","description":"Outer HTML markup to set."}]},{"name":"undo","description":"Undoes the last performed action."},{"name":"getFrameOwner","description":"Returns iframe node that owns iframe with the given domain.","parameters":[{"name":"frameId","$ref":"Page.FrameId"}],"returns":[{"name":"backendNodeId","$ref":"BackendNodeId","description":"Resulting node."},{"name":"nodeId","$ref":"NodeId","description":"Id of the node at given coordinates, only when enabled and requested document."}]},{"name":"getContainerForNode","description":"Returns the container of the given node based on container query conditions. If containerName is given, it will find the nearest container with a matching name; otherwise it will find the nearest container regardless of its container name.","parameters":[{"name":"nodeId","$ref":"NodeId"},{"name":"containerName","type":"string","optional":true}],"returns":[{"name":"nodeId","$ref":"NodeId","description":"The container node for the given node, or null if not found."}]},{"name":"getQueryingDescendantsForContainer","description":"Returns the descendants of a container query container that have container queries against this container.","parameters":[{"name":"nodeId","description":"Id of the container node to find querying descendants from.","$ref":"NodeId"}],"returns":[{"name":"nodeIds","type":"array","items":{"$ref":"NodeId"},"description":"Descendant nodes with container queries against the given container."}]}],"events":[{"name":"attributeModified","description":"Fired when `Element`'s attribute is modified.","parameters":[{"name":"nodeId","description":"Id of the node that has changed.","$ref":"NodeId"},{"name":"name","type":"string","description":"Attribute name."},{"name":"value","type":"string","description":"Attribute value."}]},{"name":"attributeRemoved","description":"Fired when `Element`'s attribute is removed.","parameters":[{"name":"nodeId","description":"Id of the node that has changed.","$ref":"NodeId"},{"name":"name","type":"string","description":"A ttribute name."}]},{"name":"characterDataModified","description":"Mirrors `DOMCharacterDataModified` event.","parameters":[{"name":"nodeId","description":"Id of the node that has changed.","$ref":"NodeId"},{"name":"characterData","type":"string","description":"New text value."}]},{"name":"childNodeCountUpdated","description":"Fired when `Container`'s child node count has changed.","parameters":[{"name":"nodeId","description":"Id of the node that has changed.","$ref":"NodeId"},{"name":"childNodeCount","type":"integer","description":"New node count."}]},{"name":"childNodeInserted","description":"Mirrors `DOMNodeInserted` event.","parameters":[{"name":"parentNodeId","description":"Id of the node that has changed.","$ref":"NodeId"},{"name":"previousNodeId","description":"If of the previous siblint.","$ref":"NodeId"},{"name":"node","description":"Inserted node data.","$ref":"Node"}]},{"name":"childNodeRemoved","description":"Mirrors `DOMNodeRemoved` event.","parameters":[{"name":"parentNodeId","description":"Parent id.","$ref":"NodeId"},{"name":"nodeId","description":"Id of the node that has been removed.","$ref":"NodeId"}]},{"name":"distributedNodesUpdated","description":"Called when distribution is changed.","parameters":[{"name":"insertionPointId","description":"Insertion point where distributed nodes were updated.","$ref":"NodeId"},{"name":"distributedNodes","type":"array","description":"Distributed nodes for given insertion point.","items":{"$ref":"BackendNode"}}]},{"name":"documentUpdated","description":"Fired when `Document` has been totally updated. Node ids are no longer valid."},{"name":"inlineStyleInvalidated","description":"Fired when `Element`'s inline style is modified via a CSS property modification.","parameters":[{"name":"nodeIds","type":"array","description":"Ids of the nodes for which the inline styles have been invalidated.","items":{"$ref":"NodeId"}}]},{"name":"pseudoElementAdded","description":"Called when a pseudo element is added to an element.","parameters":[{"name":"parentId","description":"Pseudo element's parent element id.","$ref":"NodeId"},{"name":"pseudoElement","description":"The added pseudo element.","$ref":"Node"}]},{"name":"pseudoElementRemoved","description":"Called when a pseudo element is removed from an element.","parameters":[{"name":"parentId","description":"Pseudo element's parent element id.","$ref":"NodeId"},{"name":"pseudoElementId","description":"The removed pseudo element id.","$ref":"NodeId"}]},{"name":"setChildNodes","description":"Fired when backend wants to provide client with the missing DOM structure. This happens upon most of the calls requesting node ids.","parameters":[{"name":"parentId","description":"Parent node id to populate with children.","$ref":"NodeId"},{"name":"nodes","type":"array","description":"Child nodes array.","items":{"$ref":"Node"}}]},{"name":"shadowRootPopped","description":"Called when shadow root is popped from the element.","parameters":[{"name":"hostId","description":"Host element id.","$ref":"NodeId"},{"name":"rootId","description":"Shadow root id.","$ref":"NodeId"}]},{"name":"shadowRootPushed","description":"Called when shadow root is pushed into the element.","parameters":[{"name":"hostId","description":"Host element id.","$ref":"NodeId"},{"name":"root","description":"Shadow root.","$ref":"Node"}]}]},{"domain":"DOMDebugger","description":"DOM debugging allows setting breakpoints on particular DOM operations and events. JavaScript execution will stop on these operations as if there was a regular breakpoint set.","types":[{"id":"DOMBreakpointType","type":"string","description":"DOM breakpoint type.","enum":["subtree-modified","attribute-modified","node-removed"]},{"id":"CSPViolationType","type":"string","description":"CSP Violation type.","enum":["trustedtype-sink-violation","trustedtype-policy-violation"]},{"id":"EventListener","type":"object","description":"Object event listener.","properties":[{"name":"type","type":"string","description":"`EventListener`'s type."},{"name":"useCapture","type":"boolean","description":"`EventListener`'s useCapture."},{"name":"passive","type":"boolean","description":"`EventListener`'s passive flag."},{"name":"once","type":"boolean","description":"`EventListener`'s once flag."},{"name":"scriptId","description":"Script id of the handler code.","$ref":"Runtime.ScriptId"},{"name":"lineNumber","type":"integer","description":"Line number in the script (0-based)."},{"name":"columnNumber","type":"integer","description":"Column number in the script (0-based)."},{"name":"handler","description":"Event handler function value.","$ref":"Runtime.RemoteObject","optional":true},{"name":"originalHandler","description":"Event original handler function value.","$ref":"Runtime.RemoteObject","optional":true},{"name":"backendNodeId","description":"Node the listener is added to (if any).","$ref":"DOM.BackendNodeId","optional":true}]}],"commands":[{"name":"getEventListeners","description":"Returns event listeners of the given object.","parameters":[{"name":"objectId","description":"Identifier of the object to return listeners for.","$ref":"Runtime.RemoteObjectId"},{"name":"depth","type":"integer","description":"The maximum depth at which Node children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.","optional":true},{"name":"pierce","type":"boolean","description":"Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false). Reports listeners for all contexts if pierce is enabled.","optional":true}],"returns":[{"name":"listeners","type":"array","items":{"$ref":"EventListener"},"description":"Array of relevant listeners."}]},{"name":"removeDOMBreakpoint","description":"Removes DOM breakpoint that was set using `setDOMBreakpoint`.","parameters":[{"name":"nodeId","description":"Identifier of the node to remove breakpoint from.","$ref":"DOM.NodeId"},{"name":"type","description":"Type of the breakpoint to remove.","$ref":"DOMBreakpointType"}]},{"name":"removeEventListenerBreakpoint","description":"Removes breakpoint on particular DOM event.","parameters":[{"name":"eventName","type":"string","description":"Event name."},{"name":"targetName","type":"string","description":"EventTarget interface name.","optional":true}]},{"name":"removeInstrumentationBreakpoint","description":"Removes breakpoint on particular native event.","parameters":[{"name":"eventName","type":"string","description":"Instrumentation name to stop on."}]},{"name":"removeXHRBreakpoint","description":"Removes breakpoint from XMLHttpRequest.","parameters":[{"name":"url","type":"string","description":"Resource URL substring."}]},{"name":"setBreakOnCSPViolation","description":"Sets breakpoint on particular CSP violations.","parameters":[{"name":"violationTypes","type":"array","description":"CSP Violations to stop upon.","items":{"$ref":"CSPViolationType"}}]},{"name":"setDOMBreakpoint","description":"Sets breakpoint on particular operation with DOM.","parameters":[{"name":"nodeId","description":"Identifier of the node to set breakpoint on.","$ref":"DOM.NodeId"},{"name":"type","description":"Type of the operation to stop upon.","$ref":"DOMBreakpointType"}]},{"name":"setEventListenerBreakpoint","description":"Sets breakpoint on particular DOM event.","parameters":[{"name":"eventName","type":"string","description":"DOM Event name to stop on (any DOM event will do)."},{"name":"targetName","type":"string","description":"EventTarget interface name to stop on. If equal to `\"*\"` or not provided, will stop on any EventTarget.","optional":true}]},{"name":"setInstrumentationBreakpoint","description":"Sets breakpoint on particular native event.","parameters":[{"name":"eventName","type":"string","description":"Instrumentation name to stop on."}]},{"name":"setXHRBreakpoint","description":"Sets breakpoint on XMLHttpRequest.","parameters":[{"name":"url","type":"string","description":"Resource URL substring. All XHRs having this substring in the URL will get stopped upon."}]}]},{"domain":"EventBreakpoints","description":"EventBreakpoints permits setting breakpoints on particular operations and events in targets that run JavaScript but do not have a DOM. JavaScript execution will stop on these operations as if there was a regular breakpoint set.","commands":[{"name":"setInstrumentationBreakpoint","description":"Sets breakpoint on particular native event.","parameters":[{"name":"eventName","type":"string","description":"Instrumentation name to stop on."}]},{"name":"removeInstrumentationBreakpoint","description":"Removes breakpoint on particular native event.","parameters":[{"name":"eventName","type":"string","description":"Instrumentation name to stop on."}]}]},{"domain":"DOMSnapshot","description":"This domain facilitates obtaining document snapshots with DOM, layout, and style information.","types":[{"id":"DOMNode","type":"object","description":"A Node in the DOM tree.","properties":[{"name":"nodeType","type":"integer","description":"`Node`'s nodeType."},{"name":"nodeName","type":"string","description":"`Node`'s nodeName."},{"name":"nodeValue","type":"string","description":"`Node`'s nodeValue."},{"name":"textValue","type":"string","description":"Only set for textarea elements, contains the text value.","optional":true},{"name":"inputValue","type":"string","description":"Only set for input elements, contains the input's associated text value.","optional":true},{"name":"inputChecked","type":"boolean","description":"Only set for radio and checkbox input elements, indicates if the element has been checked","optional":true},{"name":"optionSelected","type":"boolean","description":"Only set for option elements, indicates if the element has been selected","optional":true},{"name":"backendNodeId","description":"`Node`'s id, corresponds to DOM.Node.backendNodeId.","$ref":"DOM.BackendNodeId"},{"name":"childNodeIndexes","type":"array","description":"The indexes of the node's child nodes in the `domNodes` array returned by `getSnapshot`, if any.","optional":true,"items":{"type":"integer"}},{"name":"attributes","type":"array","description":"Attributes of an `Element` node.","optional":true,"items":{"$ref":"NameValue"}},{"name":"pseudoElementIndexes","type":"array","description":"Indexes of pseudo elements associated with this node in the `domNodes` array returned by `getSnapshot`, if any.","optional":true,"items":{"type":"integer"}},{"name":"layoutNodeIndex","type":"integer","description":"The index of the node's related layout tree node in the `layoutTreeNodes` array returned by `getSnapshot`, if any.","optional":true},{"name":"documentURL","type":"string","description":"Document URL that `Document` or `FrameOwner` node points to.","optional":true},{"name":"baseURL","type":"string","description":"Base URL that `Document` or `FrameOwner` node uses for URL completion.","optional":true},{"name":"contentLanguage","type":"string","description":"Only set for documents, contains the document's content language.","optional":true},{"name":"documentEncoding","type":"string","description":"Only set for documents, contains the document's character set encoding.","optional":true},{"name":"publicId","type":"string","description":"`DocumentType` node's publicId.","optional":true},{"name":"systemId","type":"string","description":"`DocumentType` node's systemId.","optional":true},{"name":"frameId","description":"Frame ID for frame owner elements and also for the document node.","$ref":"Page.FrameId","optional":true},{"name":"contentDocumentIndex","type":"integer","description":"The index of a frame owner element's content document in the `domNodes` array returned by `getSnapshot`, if any.","optional":true},{"name":"pseudoType","description":"Type of a pseudo element node.","$ref":"DOM.PseudoType","optional":true},{"name":"shadowRootType","description":"Shadow root type.","$ref":"DOM.ShadowRootType","optional":true},{"name":"isClickable","type":"boolean","description":"Whether this DOM node responds to mouse clicks. This includes nodes that have had click event listeners attached via JavaScript as well as anchor tags that naturally navigate when clicked.","optional":true},{"name":"eventListeners","type":"array","description":"Details of the node's event listeners, if any.","optional":true,"items":{"$ref":"DOMDebugger.EventListener"}},{"name":"currentSourceURL","type":"string","description":"The selected url for nodes with a srcset attribute.","optional":true},{"name":"originURL","type":"string","description":"The url of the script (if any) that generates this node.","optional":true},{"name":"scrollOffsetX","type":"number","description":"Scroll offsets, set when this node is a Document.","optional":true},{"name":"scrollOffsetY","type":"number","optional":true}]},{"id":"InlineTextBox","type":"object","description":"Details of post layout rendered text positions. The exact layout should not be regarded as stable and may change between versions.","properties":[{"name":"boundingBox","description":"The bounding box in document coordinates. Note that scroll offset of the document is ignored.","$ref":"DOM.Rect"},{"name":"startCharacterIndex","type":"integer","description":"The starting index in characters, for this post layout textbox substring. Characters that would be represented as a surrogate pair in UTF-16 have length 2."},{"name":"numCharacters","type":"integer","description":"The number of characters in this post layout textbox substring. Characters that would be represented as a surrogate pair in UTF-16 have length 2."}]},{"id":"LayoutTreeNode","type":"object","description":"Details of an element in the DOM tree with a LayoutObject.","properties":[{"name":"domNodeIndex","type":"integer","description":"The index of the related DOM node in the `domNodes` array returned by `getSnapshot`."},{"name":"boundingBox","description":"The bounding box in document coordinates. Note that scroll offset of the document is ignored.","$ref":"DOM.Rect"},{"name":"layoutText","type":"string","description":"Contents of the LayoutText, if any.","optional":true},{"name":"inlineTextNodes","type":"array","description":"The post-layout inline text nodes, if any.","optional":true,"items":{"$ref":"InlineTextBox"}},{"name":"styleIndex","type":"integer","description":"Index into the `computedStyles` array returned by `getSnapshot`.","optional":true},{"name":"paintOrder","type":"integer","description":"Global paint order index, which is determined by the stacking order of the nodes. Nodes that are painted together will have the same index. Only provided if includePaintOrder in getSnapshot was true.","optional":true},{"name":"isStackingContext","type":"boolean","description":"Set to true to indicate the element begins a new stacking context.","optional":true}]},{"id":"ComputedStyle","type":"object","description":"A subset of the full ComputedStyle as defined by the request whitelist.","properties":[{"name":"properties","type":"array","description":"Name/value pairs of computed style properties.","items":{"$ref":"NameValue"}}]},{"id":"NameValue","type":"object","description":"A name/value pair.","properties":[{"name":"name","type":"string","description":"Attribute/property name."},{"name":"value","type":"string","description":"Attribute/property value."}]},{"id":"StringIndex","type":"integer","description":"Index of the string in the strings table."},{"id":"ArrayOfStrings","type":"array","description":"Index of the string in the strings table.","items":{"$ref":"StringIndex"}},{"id":"RareStringData","type":"object","description":"Data that is only present on rare nodes.","properties":[{"name":"index","type":"array","items":{"type":"integer"}},{"name":"value","type":"array","items":{"$ref":"StringIndex"}}]},{"id":"RareBooleanData","type":"object","properties":[{"name":"index","type":"array","items":{"type":"integer"}}]},{"id":"RareIntegerData","type":"object","properties":[{"name":"index","type":"array","items":{"type":"integer"}},{"name":"value","type":"array","items":{"type":"integer"}}]},{"id":"Rectangle","type":"array","items":{"type":"number"}},{"id":"DocumentSnapshot","type":"object","description":"Document snapshot.","properties":[{"name":"documentURL","description":"Document URL that `Document` or `FrameOwner` node points to.","$ref":"StringIndex"},{"name":"title","description":"Document title.","$ref":"StringIndex"},{"name":"baseURL","description":"Base URL that `Document` or `FrameOwner` node uses for URL completion.","$ref":"StringIndex"},{"name":"contentLanguage","description":"Contains the document's content language.","$ref":"StringIndex"},{"name":"encodingName","description":"Contains the document's character set encoding.","$ref":"StringIndex"},{"name":"publicId","description":"`DocumentType` node's publicId.","$ref":"StringIndex"},{"name":"systemId","description":"`DocumentType` node's systemId.","$ref":"StringIndex"},{"name":"frameId","description":"Frame ID for frame owner elements and also for the document node.","$ref":"StringIndex"},{"name":"nodes","description":"A table with dom nodes.","$ref":"NodeTreeSnapshot"},{"name":"layout","description":"The nodes in the layout tree.","$ref":"LayoutTreeSnapshot"},{"name":"textBoxes","description":"The post-layout inline text nodes.","$ref":"TextBoxSnapshot"},{"name":"scrollOffsetX","type":"number","description":"Horizontal scroll offset.","optional":true},{"name":"scrollOffsetY","type":"number","description":"Vertical scroll offset.","optional":true},{"name":"contentWidth","type":"number","description":"Document content width.","optional":true},{"name":"contentHeight","type":"number","description":"Document content height.","optional":true}]},{"id":"NodeTreeSnapshot","type":"object","description":"Table containing nodes.","properties":[{"name":"parentIndex","type":"array","description":"Parent node index.","optional":true,"items":{"type":"integer"}},{"name":"nodeType","type":"array","description":"`Node`'s nodeType.","optional":true,"items":{"type":"integer"}},{"name":"shadowRootType","description":"Type of the shadow root the `Node` is in. String values are equal to the `ShadowRootType` enum.","$ref":"RareStringData","optional":true},{"name":"nodeName","type":"array","description":"`Node`'s nodeName.","optional":true,"items":{"$ref":"StringIndex"}},{"name":"nodeValue","type":"array","description":"`Node`'s nodeValue.","optional":true,"items":{"$ref":"StringIndex"}},{"name":"backendNodeId","type":"array","description":"`Node`'s id, corresponds to DOM.Node.backendNodeId.","optional":true,"items":{"$ref":"DOM.BackendNodeId"}},{"name":"attributes","type":"array","description":"Attributes of an `Element` node. Flatten name, value pairs.","optional":true,"items":{"$ref":"ArrayOfStrings"}},{"name":"textValue","description":"Only set for textarea elements, contains the text value.","$ref":"RareStringData","optional":true},{"name":"inputValue","description":"Only set for input elements, contains the input's associated text value.","$ref":"RareStringData","optional":true},{"name":"inputChecked","description":"Only set for radio and checkbox input elements, indicates if the element has been checked","$ref":"RareBooleanData","optional":true},{"name":"optionSelected","description":"Only set for option elements, indicates if the element has been selected","$ref":"RareBooleanData","optional":true},{"name":"contentDocumentIndex","description":"The index of the document in the list of the snapshot documents.","$ref":"RareIntegerData","optional":true},{"name":"pseudoType","description":"Type of a pseudo element node.","$ref":"RareStringData","optional":true},{"name":"isClickable","description":"Whether this DOM node responds to mouse clicks. This includes nodes that have had click event listeners attached via JavaScript as well as anchor tags that naturally navigate when clicked.","$ref":"RareBooleanData","optional":true},{"name":"currentSourceURL","description":"The selected url for nodes with a srcset attribute.","$ref":"RareStringData","optional":true},{"name":"originURL","description":"The url of the script (if any) that generates this node.","$ref":"RareStringData","optional":true}]},{"id":"LayoutTreeSnapshot","type":"object","description":"Table of details of an element in the DOM tree with a LayoutObject.","properties":[{"name":"nodeIndex","type":"array","description":"Index of the corresponding node in the `NodeTreeSnapshot` array returned by `captureSnapshot`.","items":{"type":"integer"}},{"name":"styles","type":"array","description":"Array of indexes specifying computed style strings, filtered according to the `computedStyles` parameter passed to `captureSnapshot`.","items":{"$ref":"ArrayOfStrings"}},{"name":"bounds","type":"array","description":"The absolute position bounding box.","items":{"$ref":"Rectangle"}},{"name":"text","type":"array","description":"Contents of the LayoutText, if any.","items":{"$ref":"StringIndex"}},{"name":"stackingContexts","description":"Stacking context information.","$ref":"RareBooleanData"},{"name":"paintOrders","type":"array","description":"Global paint order index, which is determined by the stacking order of the nodes. Nodes that are painted together will have the same index. Only provided if includePaintOrder in captureSnapshot was true.","optional":true,"items":{"type":"integer"}},{"name":"offsetRects","type":"array","description":"The offset rect of nodes. Only available when includeDOMRects is set to true","optional":true,"items":{"$ref":"Rectangle"}},{"name":"scrollRects","type":"array","description":"The scroll rect of nodes. Only available when includeDOMRects is set to true","optional":true,"items":{"$ref":"Rectangle"}},{"name":"clientRects","type":"array","description":"The client rect of nodes. Only available when includeDOMRects is set to true","optional":true,"items":{"$ref":"Rectangle"}},{"name":"blendedBackgroundColors","type":"array","description":"The list of background colors that are blended with colors of overlapping elements.","optional":true,"items":{"$ref":"StringIndex"}},{"name":"textColorOpacities","type":"array","description":"The list of computed text opacities.","optional":true,"items":{"type":"number"}}]},{"id":"TextBoxSnapshot","type":"object","description":"Table of details of the post layout rendered text positions. The exact layout should not be regarded as stable and may change between versions.","properties":[{"name":"layoutIndex","type":"array","description":"Index of the layout tree node that owns this box collection.","items":{"type":"integer"}},{"name":"bounds","type":"array","description":"The absolute position bounding box.","items":{"$ref":"Rectangle"}},{"name":"start","type":"array","description":"The starting index in characters, for this post layout textbox substring. Characters that would be represented as a surrogate pair in UTF-16 have length 2.","items":{"type":"integer"}},{"name":"length","type":"array","description":"The number of characters in this post layout textbox substring. Characters that would be represented as a surrogate pair in UTF-16 have length 2.","items":{"type":"integer"}}]}],"commands":[{"name":"disable","description":"Disables DOM snapshot agent for the given page."},{"name":"enable","description":"Enables DOM snapshot agent for the given page."},{"name":"getSnapshot","description":"Returns a document snapshot, including the full DOM tree of the root node (including iframes, template contents, and imported documents) in a flattened array, as well as layout and white-listed computed style information for the nodes. Shadow DOM in the returned DOM tree is flattened.","parameters":[{"name":"computedStyleWhitelist","type":"array","description":"Whitelist of computed styles to return.","items":{"type":"string"}},{"name":"includeEventListeners","type":"boolean","description":"Whether or not to retrieve details of DOM listeners (default false).","optional":true},{"name":"includePaintOrder","type":"boolean","description":"Whether to determine and include the paint order index of LayoutTreeNodes (default false).","optional":true},{"name":"includeUserAgentShadowTree","type":"boolean","description":"Whether to include UA shadow tree in the snapshot (default false).","optional":true}],"returns":[{"name":"domNodes","type":"array","items":{"$ref":"DOMNode"},"description":"The nodes in the DOM tree. The DOMNode at index 0 corresponds to the root document."},{"name":"layoutTreeNodes","type":"array","items":{"$ref":"LayoutTreeNode"},"description":"The nodes in the layout tree."},{"name":"computedStyles","type":"array","items":{"$ref":"ComputedStyle"},"description":"Whitelisted ComputedStyle properties for each node in the layout tree."}]},{"name":"captureSnapshot","description":"Returns a document snapshot, including the full DOM tree of the root node (including iframes, template contents, and imported documents) in a flattened array, as well as layout and white-listed computed style information for the nodes. Shadow DOM in the returned DOM tree is flattened.","parameters":[{"name":"computedStyles","type":"array","description":"Whitelist of computed styles to return.","items":{"type":"string"}},{"name":"includePaintOrder","type":"boolean","description":"Whether to include layout object paint orders into the snapshot.","optional":true},{"name":"includeDOMRects","type":"boolean","description":"Whether to include DOM rectangles (offsetRects, clientRects, scrollRects) into the snapshot","optional":true},{"name":"includeBlendedBackgroundColors","type":"boolean","description":"Whether to include blended background colors in the snapshot (default: false). Blended background color is achieved by blending background colors of all elements that overlap with the current element.","optional":true},{"name":"includeTextColorOpacities","type":"boolean","description":"Whether to include text color opacity in the snapshot (default: false). An element might have the opacity property set that affects the text color of the element. The final text color opacity is computed based on the opacity of all overlapping elements.","optional":true}],"returns":[{"name":"documents","type":"array","items":{"$ref":"DocumentSnapshot"},"description":"The nodes in the DOM tree. The DOMNode at index 0 corresponds to the root document."},{"name":"strings","type":"array","items":{"type":"string"},"description":"Shared string table that all string properties refer to with indexes."}]}]},{"domain":"DOMStorage","description":"Query and modify DOM storage.","types":[{"id":"StorageId","type":"object","description":"DOM Storage identifier.","properties":[{"name":"securityOrigin","type":"string","description":"Security origin for the storage."},{"name":"isLocalStorage","type":"boolean","description":"Whether the storage is local storage (not session storage)."}]},{"id":"Item","type":"array","description":"DOM Storage item.","items":{"type":"string"}}],"commands":[{"name":"clear","parameters":[{"name":"storageId","$ref":"StorageId"}]},{"name":"disable","description":"Disables storage tracking, prevents storage events from being sent to the client."},{"name":"enable","description":"Enables storage tracking, storage events will now be delivered to the client."},{"name":"getDOMStorageItems","parameters":[{"name":"storageId","$ref":"StorageId"}],"returns":[{"name":"entries","type":"array","items":{"$ref":"Item"}}]},{"name":"removeDOMStorageItem","parameters":[{"name":"storageId","$ref":"StorageId"},{"name":"key","type":"string"}]},{"name":"setDOMStorageItem","parameters":[{"name":"storageId","$ref":"StorageId"},{"name":"key","type":"string"},{"name":"value","type":"string"}]}],"events":[{"name":"domStorageItemAdded","parameters":[{"name":"storageId","$ref":"StorageId"},{"name":"key","type":"string"},{"name":"newValue","type":"string"}]},{"name":"domStorageItemRemoved","parameters":[{"name":"storageId","$ref":"StorageId"},{"name":"key","type":"string"}]},{"name":"domStorageItemUpdated","parameters":[{"name":"storageId","$ref":"StorageId"},{"name":"key","type":"string"},{"name":"oldValue","type":"string"},{"name":"newValue","type":"string"}]},{"name":"domStorageItemsCleared","parameters":[{"name":"storageId","$ref":"StorageId"}]}]},{"domain":"Database","types":[{"id":"DatabaseId","type":"string","description":"Unique identifier of Database object."},{"id":"Database","type":"object","description":"Database object.","properties":[{"name":"id","description":"Database ID.","$ref":"DatabaseId"},{"name":"domain","type":"string","description":"Database domain."},{"name":"name","type":"string","description":"Database name."},{"name":"version","type":"string","description":"Database version."}]},{"id":"Error","type":"object","description":"Database error.","properties":[{"name":"message","type":"string","description":"Error message."},{"name":"code","type":"integer","description":"Error code."}]}],"commands":[{"name":"disable","description":"Disables database tracking, prevents database events from being sent to the client."},{"name":"enable","description":"Enables database tracking, database events will now be delivered to the client."},{"name":"executeSQL","parameters":[{"name":"databaseId","$ref":"DatabaseId"},{"name":"query","type":"string"}],"returns":[{"name":"columnNames","type":"array","items":{"type":"string"}},{"name":"values","type":"array","items":{"type":"any"}},{"name":"sqlError","$ref":"Error"}]},{"name":"getDatabaseTableNames","parameters":[{"name":"databaseId","$ref":"DatabaseId"}],"returns":[{"name":"tableNames","type":"array","items":{"type":"string"}}]}],"events":[{"name":"addDatabase","parameters":[{"name":"database","$ref":"Database"}]}]},{"domain":"DeviceOrientation","commands":[{"name":"clearDeviceOrientationOverride","description":"Clears the overridden Device Orientation."},{"name":"setDeviceOrientationOverride","description":"Overrides the Device Orientation.","parameters":[{"name":"alpha","type":"number","description":"Mock alpha"},{"name":"beta","type":"number","description":"Mock beta"},{"name":"gamma","type":"number","description":"Mock gamma"}]}]},{"domain":"Emulation","description":"This domain emulates different environments for the page.","types":[{"id":"ScreenOrientation","type":"object","description":"Screen orientation.","properties":[{"name":"type","type":"string","description":"Orientation type.","enum":["portraitPrimary","portraitSecondary","landscapePrimary","landscapeSecondary"]},{"name":"angle","type":"integer","description":"Orientation angle."}]},{"id":"DisplayFeature","type":"object","properties":[{"name":"orientation","type":"string","description":"Orientation of a display feature in relation to screen","enum":["vertical","horizontal"]},{"name":"offset","type":"integer","description":"The offset from the screen origin in either the x (for vertical orientation) or y (for horizontal orientation) direction."},{"name":"maskLength","type":"integer","description":"A display feature may mask content such that it is not physically displayed - this length along with the offset describes this area. A display feature that only splits content will have a 0 mask_length."}]},{"id":"MediaFeature","type":"object","properties":[{"name":"name","type":"string"},{"name":"value","type":"string"}]},{"id":"VirtualTimePolicy","type":"string","description":"advance: If the scheduler runs out of immediate work, the virtual time base may fast forward to allow the next delayed task (if any) to run; pause: The virtual time base may not advance; pauseIfNetworkFetchesPending: The virtual time base may not advance if there are any pending resource fetches.","enum":["advance","pause","pauseIfNetworkFetchesPending"]},{"id":"UserAgentBrandVersion","type":"object","description":"Used to specify User Agent Cient Hints to emulate. See https://wicg.github.io/ua-client-hints","properties":[{"name":"brand","type":"string"},{"name":"version","type":"string"}]},{"id":"UserAgentMetadata","type":"object","description":"Used to specify User Agent Cient Hints to emulate. See https://wicg.github.io/ua-client-hints Missing optional values will be filled in by the target with what it would normally use.","properties":[{"name":"brands","type":"array","optional":true,"items":{"$ref":"UserAgentBrandVersion"}},{"name":"fullVersionList","type":"array","optional":true,"items":{"$ref":"UserAgentBrandVersion"}},{"name":"fullVersion","type":"string","optional":true},{"name":"platform","type":"string"},{"name":"platformVersion","type":"string"},{"name":"architecture","type":"string"},{"name":"model","type":"string"},{"name":"mobile","type":"boolean"}]},{"id":"DisabledImageType","type":"string","description":"Enum of image types that can be disabled.","enum":["avif","jxl","webp"]}],"commands":[{"name":"canEmulate","description":"Tells whether emulation is supported.","returns":[{"name":"result","type":"boolean","description":"True if emulation is supported."}]},{"name":"clearDeviceMetricsOverride","description":"Clears the overridden device metrics."},{"name":"clearGeolocationOverride","description":"Clears the overridden Geolocation Position and Error."},{"name":"resetPageScaleFactor","description":"Requests that page scale factor is reset to initial values."},{"name":"setFocusEmulationEnabled","description":"Enables or disables simulating a focused and active page.","parameters":[{"name":"enabled","type":"boolean","description":"Whether to enable to disable focus emulation."}]},{"name":"setAutoDarkModeOverride","description":"Automatically render all web contents using a dark theme.","parameters":[{"name":"enabled","type":"boolean","description":"Whether to enable or disable automatic dark mode. If not specified, any existing override will be cleared.","optional":true}]},{"name":"setCPUThrottlingRate","description":"Enables CPU throttling to emulate slow CPUs.","parameters":[{"name":"rate","type":"number","description":"Throttling rate as a slowdown factor (1 is no throttle, 2 is 2x slowdown, etc)."}]},{"name":"setDefaultBackgroundColorOverride","description":"Sets or clears an override of the default background color of the frame. This override is used if the content does not specify one.","parameters":[{"name":"color","description":"RGBA of the default background color. If not specified, any existing override will be cleared.","$ref":"DOM.RGBA","optional":true}]},{"name":"setDeviceMetricsOverride","description":"Overrides the values of device screen dimensions (window.screen.width, window.screen.height, window.innerWidth, window.innerHeight, and \"device-width\"/\"device-height\"-related CSS media query results).","parameters":[{"name":"width","type":"integer","description":"Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override."},{"name":"height","type":"integer","description":"Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override."},{"name":"deviceScaleFactor","type":"number","description":"Overriding device scale factor value. 0 disables the override."},{"name":"mobile","type":"boolean","description":"Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more."},{"name":"scale","type":"number","description":"Scale to apply to resulting view image.","optional":true},{"name":"screenWidth","type":"integer","description":"Overriding screen width value in pixels (minimum 0, maximum 10000000).","optional":true},{"name":"screenHeight","type":"integer","description":"Overriding screen height value in pixels (minimum 0, maximum 10000000).","optional":true},{"name":"positionX","type":"integer","description":"Overriding view X position on screen in pixels (minimum 0, maximum 10000000).","optional":true},{"name":"positionY","type":"integer","description":"Overriding view Y position on screen in pixels (minimum 0, maximum 10000000).","optional":true},{"name":"dontSetVisibleSize","type":"boolean","description":"Do not set visible view size, rely upon explicit setVisibleSize call.","optional":true},{"name":"screenOrientation","description":"Screen orientation override.","$ref":"ScreenOrientation","optional":true},{"name":"viewport","description":"If set, the visible area of the page will be overridden to this viewport. This viewport change is not observed by the page, e.g. viewport-relative elements do not change positions.","$ref":"Page.Viewport","optional":true},{"name":"displayFeature","description":"If set, the display feature of a multi-segment screen. If not set, multi-segment support is turned-off.","$ref":"DisplayFeature","optional":true}]},{"name":"setScrollbarsHidden","parameters":[{"name":"hidden","type":"boolean","description":"Whether scrollbars should be always hidden."}]},{"name":"setDocumentCookieDisabled","parameters":[{"name":"disabled","type":"boolean","description":"Whether document.coookie API should be disabled."}]},{"name":"setEmitTouchEventsForMouse","parameters":[{"name":"enabled","type":"boolean","description":"Whether touch emulation based on mouse input should be enabled."},{"name":"configuration","type":"string","description":"Touch/gesture events configuration. Default: current platform.","optional":true,"enum":["mobile","desktop"]}]},{"name":"setEmulatedMedia","description":"Emulates the given media type or media feature for CSS media queries.","parameters":[{"name":"media","type":"string","description":"Media type to emulate. Empty string disables the override.","optional":true},{"name":"features","type":"array","description":"Media features to emulate.","optional":true,"items":{"$ref":"MediaFeature"}}]},{"name":"setEmulatedVisionDeficiency","description":"Emulates the given vision deficiency.","parameters":[{"name":"type","type":"string","description":"Vision deficiency to emulate.","enum":["none","achromatopsia","blurredVision","deuteranopia","protanopia","tritanopia"]}]},{"name":"setGeolocationOverride","description":"Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable.","parameters":[{"name":"latitude","type":"number","description":"Mock latitude","optional":true},{"name":"longitude","type":"number","description":"Mock longitude","optional":true},{"name":"accuracy","type":"number","description":"Mock accuracy","optional":true}]},{"name":"setIdleOverride","description":"Overrides the Idle state.","parameters":[{"name":"isUserActive","type":"boolean","description":"Mock isUserActive"},{"name":"isScreenUnlocked","type":"boolean","description":"Mock isScreenUnlocked"}]},{"name":"clearIdleOverride","description":"Clears Idle state overrides."},{"name":"setNavigatorOverrides","description":"Overrides value returned by the javascript navigator object.","parameters":[{"name":"platform","type":"string","description":"The platform navigator.platform should return."}]},{"name":"setPageScaleFactor","description":"Sets a specified page scale factor.","parameters":[{"name":"pageScaleFactor","type":"number","description":"Page scale factor."}]},{"name":"setScriptExecutionDisabled","description":"Switches script execution in the page.","parameters":[{"name":"value","type":"boolean","description":"Whether script execution should be disabled in the page."}]},{"name":"setTouchEmulationEnabled","description":"Enables touch on platforms which do not support them.","parameters":[{"name":"enabled","type":"boolean","description":"Whether the touch event emulation should be enabled."},{"name":"maxTouchPoints","type":"integer","description":"Maximum touch points supported. Defaults to one.","optional":true}]},{"name":"setVirtualTimePolicy","description":"Turns on virtual time for all frames (replacing real-time with a synthetic time source) and sets the current virtual time policy. Note this supersedes any previous time budget.","parameters":[{"name":"policy","$ref":"VirtualTimePolicy"},{"name":"budget","type":"number","description":"If set, after this many virtual milliseconds have elapsed virtual time will be paused and a virtualTimeBudgetExpired event is sent.","optional":true},{"name":"maxVirtualTimeTaskStarvationCount","type":"integer","description":"If set this specifies the maximum number of tasks that can be run before virtual is forced forwards to prevent deadlock.","optional":true},{"name":"waitForNavigation","type":"boolean","description":"If set the virtual time policy change should be deferred until any frame starts navigating. Note any previous deferred policy change is superseded.","optional":true},{"name":"initialVirtualTime","description":"If set, base::Time::Now will be overridden to initially return this value.","$ref":"Network.TimeSinceEpoch","optional":true}],"returns":[{"name":"virtualTimeTicksBase","type":"number","description":"Absolute timestamp at which virtual time was first enabled (up time in milliseconds)."}]},{"name":"setLocaleOverride","description":"Overrides default host system locale with the specified one.","parameters":[{"name":"locale","type":"string","description":"ICU style C locale (e.g. \"en_US\"). If not specified or empty, disables the override and restores default host system locale.","optional":true}]},{"name":"setTimezoneOverride","description":"Overrides default host system timezone with the specified one.","parameters":[{"name":"timezoneId","type":"string","description":"The timezone identifier. If empty, disables the override and restores default host system timezone."}]},{"name":"setVisibleSize","description":"Resizes the frame/viewport of the page. Note that this does not affect the frame's container (e.g. browser window). Can be used to produce screenshots of the specified size. Not supported on Android.","parameters":[{"name":"width","type":"integer","description":"Frame width (DIP)."},{"name":"height","type":"integer","description":"Frame height (DIP)."}]},{"name":"setDisabledImageTypes","parameters":[{"name":"imageTypes","type":"array","description":"Image types to disable.","items":{"$ref":"DisabledImageType"}}]},{"name":"setUserAgentOverride","description":"Allows overriding user agent with the given string.","parameters":[{"name":"userAgent","type":"string","description":"User agent to use."},{"name":"acceptLanguage","type":"string","description":"Browser langugage to emulate.","optional":true},{"name":"platform","type":"string","description":"The platform navigator.platform should return.","optional":true},{"name":"userAgentMetadata","description":"To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData","$ref":"UserAgentMetadata","optional":true}]}],"events":[{"name":"virtualTimeBudgetExpired","description":"Notification sent after the virtual time budget for the current VirtualTimePolicy has run out."}]},{"domain":"HeadlessExperimental","description":"This domain provides experimental commands only supported in headless mode.","types":[{"id":"ScreenshotParams","type":"object","description":"Encoding options for a screenshot.","properties":[{"name":"format","type":"string","description":"Image compression format (defaults to png).","optional":true,"enum":["jpeg","png"]},{"name":"quality","type":"integer","description":"Compression quality from range [0..100] (jpeg only).","optional":true}]}],"commands":[{"name":"beginFrame","description":"Sends a BeginFrame to the target and returns when the frame was completed. Optionally captures a screenshot from the resulting frame. Requires that the target was created with enabled BeginFrameControl. Designed for use with --run-all-compositor-stages-before-draw, see also https://goo.gl/3zHXhB for more background.","parameters":[{"name":"frameTimeTicks","type":"number","description":"Timestamp of this BeginFrame in Renderer TimeTicks (milliseconds of uptime). If not set, the current time will be used.","optional":true},{"name":"interval","type":"number","description":"The interval between BeginFrames that is reported to the compositor, in milliseconds. Defaults to a 60 frames/second interval, i.e. about 16.666 milliseconds.","optional":true},{"name":"noDisplayUpdates","type":"boolean","description":"Whether updates should not be committed and drawn onto the display. False by default. If true, only side effects of the BeginFrame will be run, such as layout and animations, but any visual updates may not be visible on the display or in screenshots.","optional":true},{"name":"screenshot","description":"If set, a screenshot of the frame will be captured and returned in the response. Otherwise, no screenshot will be captured. Note that capturing a screenshot can fail, for example, during renderer initialization. In such a case, no screenshot data will be returned.","$ref":"ScreenshotParams","optional":true}],"returns":[{"name":"hasDamage","type":"boolean","description":"Whether the BeginFrame resulted in damage and, thus, a new frame was committed to the display. Reported for diagnostic uses, may be removed in the future."},{"name":"screenshotData","type":"string","description":"Base64-encoded image data of the screenshot, if one was requested and successfully taken. (Encoded as a base64 string when passed over JSON)"}]},{"name":"disable","description":"Disables headless events for the target."},{"name":"enable","description":"Enables headless events for the target."}],"events":[{"name":"needsBeginFramesChanged","description":"Issued when the target starts or stops needing BeginFrames. Deprecated. Issue beginFrame unconditionally instead and use result from beginFrame to detect whether the frames were suppressed.","parameters":[{"name":"needsBeginFrames","type":"boolean","description":"True if BeginFrames are needed, false otherwise."}]}]},{"domain":"IO","description":"Input/Output operations for streams produced by DevTools.","types":[{"id":"StreamHandle","type":"string","description":"This is either obtained from another method or specified as `blob:\u0026lt;uuid\u0026gt;` where `\u0026lt;uuid\u0026gt` is an UUID of a Blob."}],"commands":[{"name":"close","description":"Close the stream, discard any temporary backing storage.","parameters":[{"name":"handle","description":"Handle of the stream to close.","$ref":"StreamHandle"}]},{"name":"read","description":"Read a chunk of the stream","parameters":[{"name":"handle","description":"Handle of the stream to read.","$ref":"StreamHandle"},{"name":"offset","type":"integer","description":"Seek to the specified offset before reading (if not specificed, proceed with offset following the last read). Some types of streams may only support sequential reads.","optional":true},{"name":"size","type":"integer","description":"Maximum number of bytes to read (left upon the agent discretion if not specified).","optional":true}],"returns":[{"name":"base64Encoded","type":"boolean","description":"Set if the data is base64-encoded"},{"name":"data","type":"string","description":"Data that were read."},{"name":"eof","type":"boolean","description":"Set if the end-of-file condition occurred while reading."}]},{"name":"resolveBlob","description":"Return UUID of Blob object specified by a remote object id.","parameters":[{"name":"objectId","description":"Object id of a Blob object wrapper.","$ref":"Runtime.RemoteObjectId"}],"returns":[{"name":"uuid","type":"string","description":"UUID of the specified Blob."}]}]},{"domain":"IndexedDB","types":[{"id":"DatabaseWithObjectStores","type":"object","description":"Database with an array of object stores.","properties":[{"name":"name","type":"string","description":"Database name."},{"name":"version","type":"number","description":"Database version (type is not 'integer', as the standard requires the version number to be 'unsigned long long')"},{"name":"objectStores","type":"array","description":"Object stores in this database.","items":{"$ref":"ObjectStore"}}]},{"id":"ObjectStore","type":"object","description":"Object store.","properties":[{"name":"name","type":"string","description":"Object store name."},{"name":"keyPath","description":"Object store key path.","$ref":"KeyPath"},{"name":"autoIncrement","type":"boolean","description":"If true, object store has auto increment flag set."},{"name":"indexes","type":"array","description":"Indexes in this object store.","items":{"$ref":"ObjectStoreIndex"}}]},{"id":"ObjectStoreIndex","type":"object","description":"Object store index.","properties":[{"name":"name","type":"string","description":"Index name."},{"name":"keyPath","description":"Index key path.","$ref":"KeyPath"},{"name":"unique","type":"boolean","description":"If true, index is unique."},{"name":"multiEntry","type":"boolean","description":"If true, index allows multiple entries for a key."}]},{"id":"Key","type":"object","description":"Key.","properties":[{"name":"type","type":"string","description":"Key type.","enum":["number","string","date","array"]},{"name":"number","type":"number","description":"Number value.","optional":true},{"name":"string","type":"string","description":"String value.","optional":true},{"name":"date","type":"number","description":"Date value.","optional":true},{"name":"array","type":"array","description":"Array value.","optional":true,"items":{"$ref":"Key"}}]},{"id":"KeyRange","type":"object","description":"Key range.","properties":[{"name":"lower","description":"Lower bound.","$ref":"Key","optional":true},{"name":"upper","description":"Upper bound.","$ref":"Key","optional":true},{"name":"lowerOpen","type":"boolean","description":"If true lower bound is open."},{"name":"upperOpen","type":"boolean","description":"If true upper bound is open."}]},{"id":"DataEntry","type":"object","description":"Data entry.","properties":[{"name":"key","description":"Key object.","$ref":"Runtime.RemoteObject"},{"name":"primaryKey","description":"Primary key object.","$ref":"Runtime.RemoteObject"},{"name":"value","description":"Value object.","$ref":"Runtime.RemoteObject"}]},{"id":"KeyPath","type":"object","description":"Key path.","properties":[{"name":"type","type":"string","description":"Key path type.","enum":["null","string","array"]},{"name":"string","type":"string","description":"String value.","optional":true},{"name":"array","type":"array","description":"Array value.","optional":true,"items":{"type":"string"}}]}],"commands":[{"name":"clearObjectStore","description":"Clears all entries from an object store.","parameters":[{"name":"securityOrigin","type":"string","description":"Security origin."},{"name":"databaseName","type":"string","description":"Database name."},{"name":"objectStoreName","type":"string","description":"Object store name."}]},{"name":"deleteDatabase","description":"Deletes a database.","parameters":[{"name":"securityOrigin","type":"string","description":"Security origin."},{"name":"databaseName","type":"string","description":"Database name."}]},{"name":"deleteObjectStoreEntries","description":"Delete a range of entries from an object store","parameters":[{"name":"securityOrigin","type":"string"},{"name":"databaseName","type":"string"},{"name":"objectStoreName","type":"string"},{"name":"keyRange","description":"Range of entry keys to delete","$ref":"KeyRange"}]},{"name":"disable","description":"Disables events from backend."},{"name":"enable","description":"Enables events from backend."},{"name":"requestData","description":"Requests data from object store or index.","parameters":[{"name":"securityOrigin","type":"string","description":"Security origin."},{"name":"databaseName","type":"string","description":"Database name."},{"name":"objectStoreName","type":"string","description":"Object store name."},{"name":"indexName","type":"string","description":"Index name, empty string for object store data requests."},{"name":"skipCount","type":"integer","description":"Number of records to skip."},{"name":"pageSize","type":"integer","description":"Number of records to fetch."},{"name":"keyRange","description":"Key range.","$ref":"KeyRange","optional":true}],"returns":[{"name":"objectStoreDataEntries","type":"array","items":{"$ref":"DataEntry"},"description":"Array of object store data entries."},{"name":"hasMore","type":"boolean","description":"If true, there are more entries to fetch in the given range."}]},{"name":"getMetadata","description":"Gets metadata of an object store","parameters":[{"name":"securityOrigin","type":"string","description":"Security origin."},{"name":"databaseName","type":"string","description":"Database name."},{"name":"objectStoreName","type":"string","description":"Object store name."}],"returns":[{"name":"entriesCount","type":"number","description":"the entries count"},{"name":"keyGeneratorValue","type":"number","description":"the current value of key generator, to become the next inserted key into the object store. Valid if objectStore.autoIncrement is true."}]},{"name":"requestDatabase","description":"Requests database with given name in given frame.","parameters":[{"name":"securityOrigin","type":"string","description":"Security origin."},{"name":"databaseName","type":"string","description":"Database name."}],"returns":[{"name":"databaseWithObjectStores","$ref":"DatabaseWithObjectStores","description":"Database with an array of object stores."}]},{"name":"requestDatabaseNames","description":"Requests database names for given security origin.","parameters":[{"name":"securityOrigin","type":"string","description":"Security origin."}],"returns":[{"name":"databaseNames","type":"array","items":{"type":"string"},"description":"Database names for origin."}]}]},{"domain":"Input","types":[{"id":"TouchPoint","type":"object","properties":[{"name":"x","type":"number","description":"X coordinate of the event relative to the main frame's viewport in CSS pixels."},{"name":"y","type":"number","description":"Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport."},{"name":"radiusX","type":"number","description":"X radius of the touch area (default: 1.0).","optional":true},{"name":"radiusY","type":"number","description":"Y radius of the touch area (default: 1.0).","optional":true},{"name":"rotationAngle","type":"number","description":"Rotation angle (default: 0.0).","optional":true},{"name":"force","type":"number","description":"Force (default: 1.0).","optional":true},{"name":"tangentialPressure","type":"number","description":"The normalized tangential pressure, which has a range of [-1,1] (default: 0).","optional":true},{"name":"tiltX","type":"integer","description":"The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0)","optional":true},{"name":"tiltY","type":"integer","description":"The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0).","optional":true},{"name":"twist","type":"integer","description":"The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0).","optional":true},{"name":"id","type":"number","description":"Identifier used to track touch sources between events, must be unique within an event.","optional":true}]},{"id":"GestureSourceType","type":"string","enum":["default","touch","mouse"]},{"id":"MouseButton","type":"string","enum":["none","left","middle","right","back","forward"]},{"id":"TimeSinceEpoch","type":"number","description":"UTC time in seconds, counted from January 1, 1970."},{"id":"DragDataItem","type":"object","properties":[{"name":"mimeType","type":"string","description":"Mime type of the dragged data."},{"name":"data","type":"string","description":"Depending of the value of `mimeType`, it contains the dragged link, text, HTML markup or any other data."},{"name":"title","type":"string","description":"Title associated with a link. Only valid when `mimeType` == \"text/uri-list\".","optional":true},{"name":"baseURL","type":"string","description":"Stores the base URL for the contained markup. Only valid when `mimeType` == \"text/html\".","optional":true}]},{"id":"DragData","type":"object","properties":[{"name":"items","type":"array","items":{"$ref":"DragDataItem"}},{"name":"files","type":"array","description":"List of filenames that should be included when dropping","optional":true,"items":{"type":"string"}},{"name":"dragOperationsMask","type":"integer","description":"Bit field representing allowed drag operations. Copy = 1, Link = 2, Move = 16"}]}],"commands":[{"name":"dispatchDragEvent","description":"Dispatches a drag event into the page.","parameters":[{"name":"type","type":"string","description":"Type of the drag event.","enum":["dragEnter","dragOver","drop","dragCancel"]},{"name":"x","type":"number","description":"X coordinate of the event relative to the main frame's viewport in CSS pixels."},{"name":"y","type":"number","description":"Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport."},{"name":"data","$ref":"DragData"},{"name":"modifiers","type":"integer","description":"Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).","optional":true}]},{"name":"dispatchKeyEvent","description":"Dispatches a key event to the page.","parameters":[{"name":"type","type":"string","description":"Type of the key event.","enum":["keyDown","keyUp","rawKeyDown","char"]},{"name":"modifiers","type":"integer","description":"Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).","optional":true},{"name":"timestamp","description":"Time at which the event occurred.","$ref":"TimeSinceEpoch","optional":true},{"name":"text","type":"string","description":"Text as generated by processing a virtual key code with a keyboard layout. Not needed for for `keyUp` and `rawKeyDown` events (default: \"\")","optional":true},{"name":"unmodifiedText","type":"string","description":"Text that would have been generated by the keyboard if no modifiers were pressed (except for shift). Useful for shortcut (accelerator) key handling (default: \"\").","optional":true},{"name":"keyIdentifier","type":"string","description":"Unique key identifier (e.g., 'U+0041') (default: \"\").","optional":true},{"name":"code","type":"string","description":"Unique DOM defined string value for each physical key (e.g., 'KeyA') (default: \"\").","optional":true},{"name":"key","type":"string","description":"Unique DOM defined string value describing the meaning of the key in the context of active modifiers, keyboard layout, etc (e.g., 'AltGr') (default: \"\").","optional":true},{"name":"windowsVirtualKeyCode","type":"integer","description":"Windows virtual key code (default: 0).","optional":true},{"name":"nativeVirtualKeyCode","type":"integer","description":"Native virtual key code (default: 0).","optional":true},{"name":"autoRepeat","type":"boolean","description":"Whether the event was generated from auto repeat (default: false).","optional":true},{"name":"isKeypad","type":"boolean","description":"Whether the event was generated from the keypad (default: false).","optional":true},{"name":"isSystemKey","type":"boolean","description":"Whether the event was a system key event (default: false).","optional":true},{"name":"location","type":"integer","description":"Whether the event was from the left or right side of the keyboard. 1=Left, 2=Right (default: 0).","optional":true},{"name":"commands","type":"array","description":"Editing commands to send with the key event (e.g., 'selectAll') (default: []). These are related to but not equal the command names used in `document.execCommand` and NSStandardKeyBindingResponding. See https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/editing/commands/editor_command_names.h for valid command names.","optional":true,"items":{"type":"string"}}]},{"name":"insertText","description":"This method emulates inserting text that doesn't come from a key press, for example an emoji keyboard or an IME.","parameters":[{"name":"text","type":"string","description":"The text to insert."}]},{"name":"imeSetComposition","description":"This method sets the current candidate text for ime. Use imeCommitComposition to commit the final text. Use imeSetComposition with empty string as text to cancel composition.","parameters":[{"name":"text","type":"string","description":"The text to insert"},{"name":"selectionStart","type":"integer","description":"selection start"},{"name":"selectionEnd","type":"integer","description":"selection end"},{"name":"replacementStart","type":"integer","description":"replacement start","optional":true},{"name":"replacementEnd","type":"integer","description":"replacement end","optional":true}]},{"name":"dispatchMouseEvent","description":"Dispatches a mouse event to the page.","parameters":[{"name":"type","type":"string","description":"Type of the mouse event.","enum":["mousePressed","mouseReleased","mouseMoved","mouseWheel"]},{"name":"x","type":"number","description":"X coordinate of the event relative to the main frame's viewport in CSS pixels."},{"name":"y","type":"number","description":"Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport."},{"name":"modifiers","type":"integer","description":"Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).","optional":true},{"name":"timestamp","description":"Time at which the event occurred.","$ref":"TimeSinceEpoch","optional":true},{"name":"button","description":"Mouse button (default: \"none\").","$ref":"MouseButton","optional":true},{"name":"buttons","type":"integer","description":"A number indicating which buttons are pressed on the mouse when a mouse event is triggered. Left=1, Right=2, Middle=4, Back=8, Forward=16, None=0.","optional":true},{"name":"clickCount","type":"integer","description":"Number of times the mouse button was clicked (default: 0).","optional":true},{"name":"force","type":"number","description":"The normalized pressure, which has a range of [0,1] (default: 0).","optional":true},{"name":"tangentialPressure","type":"number","description":"The normalized tangential pressure, which has a range of [-1,1] (default: 0).","optional":true},{"name":"tiltX","type":"integer","description":"The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0).","optional":true},{"name":"tiltY","type":"integer","description":"The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0).","optional":true},{"name":"twist","type":"integer","description":"The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0).","optional":true},{"name":"deltaX","type":"number","description":"X delta in CSS pixels for mouse wheel event (default: 0).","optional":true},{"name":"deltaY","type":"number","description":"Y delta in CSS pixels for mouse wheel event (default: 0).","optional":true},{"name":"pointerType","type":"string","description":"Pointer type (default: \"mouse\").","optional":true,"enum":["mouse","pen"]}]},{"name":"dispatchTouchEvent","description":"Dispatches a touch event to the page.","parameters":[{"name":"type","type":"string","description":"Type of the touch event. TouchEnd and TouchCancel must not contain any touch points, while TouchStart and TouchMove must contains at least one.","enum":["touchStart","touchEnd","touchMove","touchCancel"]},{"name":"touchPoints","type":"array","description":"Active touch points on the touch device. One event per any changed point (compared to previous touch event in a sequence) is generated, emulating pressing/moving/releasing points one by one.","items":{"$ref":"TouchPoint"}},{"name":"modifiers","type":"integer","description":"Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).","optional":true},{"name":"timestamp","description":"Time at which the event occurred.","$ref":"TimeSinceEpoch","optional":true}]},{"name":"emulateTouchFromMouseEvent","description":"Emulates touch event from the mouse event parameters.","parameters":[{"name":"type","type":"string","description":"Type of the mouse event.","enum":["mousePressed","mouseReleased","mouseMoved","mouseWheel"]},{"name":"x","type":"integer","description":"X coordinate of the mouse pointer in DIP."},{"name":"y","type":"integer","description":"Y coordinate of the mouse pointer in DIP."},{"name":"button","description":"Mouse button. Only \"none\", \"left\", \"right\" are supported.","$ref":"MouseButton"},{"name":"timestamp","description":"Time at which the event occurred (default: current time).","$ref":"TimeSinceEpoch","optional":true},{"name":"deltaX","type":"number","description":"X delta in DIP for mouse wheel event (default: 0).","optional":true},{"name":"deltaY","type":"number","description":"Y delta in DIP for mouse wheel event (default: 0).","optional":true},{"name":"modifiers","type":"integer","description":"Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).","optional":true},{"name":"clickCount","type":"integer","description":"Number of times the mouse button was clicked (default: 0).","optional":true}]},{"name":"setIgnoreInputEvents","description":"Ignores input events (useful while auditing page).","parameters":[{"name":"ignore","type":"boolean","description":"Ignores input events processing when set to true."}]},{"name":"setInterceptDrags","description":"Prevents default drag and drop behavior and instead emits `Input.dragIntercepted` events. Drag and drop behavior can be directly controlled via `Input.dispatchDragEvent`.","parameters":[{"name":"enabled","type":"boolean"}]},{"name":"synthesizePinchGesture","description":"Synthesizes a pinch gesture over a time period by issuing appropriate touch events.","parameters":[{"name":"x","type":"number","description":"X coordinate of the start of the gesture in CSS pixels."},{"name":"y","type":"number","description":"Y coordinate of the start of the gesture in CSS pixels."},{"name":"scaleFactor","type":"number","description":"Relative scale factor after zooming (\u003e1.0 zooms in, \u003c1.0 zooms out)."},{"name":"relativeSpeed","type":"integer","description":"Relative pointer speed in pixels per second (default: 800).","optional":true},{"name":"gestureSourceType","description":"Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type).","$ref":"GestureSourceType","optional":true}]},{"name":"synthesizeScrollGesture","description":"Synthesizes a scroll gesture over a time period by issuing appropriate touch events.","parameters":[{"name":"x","type":"number","description":"X coordinate of the start of the gesture in CSS pixels."},{"name":"y","type":"number","description":"Y coordinate of the start of the gesture in CSS pixels."},{"name":"xDistance","type":"number","description":"The distance to scroll along the X axis (positive to scroll left).","optional":true},{"name":"yDistance","type":"number","description":"The distance to scroll along the Y axis (positive to scroll up).","optional":true},{"name":"xOverscroll","type":"number","description":"The number of additional pixels to scroll back along the X axis, in addition to the given distance.","optional":true},{"name":"yOverscroll","type":"number","description":"The number of additional pixels to scroll back along the Y axis, in addition to the given distance.","optional":true},{"name":"preventFling","type":"boolean","description":"Prevent fling (default: true).","optional":true},{"name":"speed","type":"integer","description":"Swipe speed in pixels per second (default: 800).","optional":true},{"name":"gestureSourceType","description":"Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type).","$ref":"GestureSourceType","optional":true},{"name":"repeatCount","type":"integer","description":"The number of times to repeat the gesture (default: 0).","optional":true},{"name":"repeatDelayMs","type":"integer","description":"The number of milliseconds delay between each repeat. (default: 250).","optional":true},{"name":"interactionMarkerName","type":"string","description":"The name of the interaction markers to generate, if not empty (default: \"\").","optional":true}]},{"name":"synthesizeTapGesture","description":"Synthesizes a tap gesture over a time period by issuing appropriate touch events.","parameters":[{"name":"x","type":"number","description":"X coordinate of the start of the gesture in CSS pixels."},{"name":"y","type":"number","description":"Y coordinate of the start of the gesture in CSS pixels."},{"name":"duration","type":"integer","description":"Duration between touchdown and touchup events in ms (default: 50).","optional":true},{"name":"tapCount","type":"integer","description":"Number of times to perform the tap (e.g. 2 for double tap, default: 1).","optional":true},{"name":"gestureSourceType","description":"Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type).","$ref":"GestureSourceType","optional":true}]}],"events":[{"name":"dragIntercepted","description":"Emitted only when `Input.setInterceptDrags` is enabled. Use this data with `Input.dispatchDragEvent` to restore normal drag and drop behavior.","parameters":[{"name":"data","$ref":"DragData"}]}]},{"domain":"Inspector","commands":[{"name":"disable","description":"Disables inspector domain notifications."},{"name":"enable","description":"Enables inspector domain notifications."}],"events":[{"name":"detached","description":"Fired when remote debugging connection is about to be terminated. Contains detach reason.","parameters":[{"name":"reason","type":"string","description":"The reason why connection has been terminated."}]},{"name":"targetCrashed","description":"Fired when debugging target has crashed"},{"name":"targetReloadedAfterCrash","description":"Fired when debugging target has reloaded after crash"}]},{"domain":"LayerTree","types":[{"id":"LayerId","type":"string","description":"Unique Layer identifier."},{"id":"SnapshotId","type":"string","description":"Unique snapshot identifier."},{"id":"ScrollRect","type":"object","description":"Rectangle where scrolling happens on the main thread.","properties":[{"name":"rect","description":"Rectangle itself.","$ref":"DOM.Rect"},{"name":"type","type":"string","description":"Reason for rectangle to force scrolling on the main thread","enum":["RepaintsOnScroll","TouchEventHandler","WheelEventHandler"]}]},{"id":"StickyPositionConstraint","type":"object","description":"Sticky position constraints.","properties":[{"name":"stickyBoxRect","description":"Layout rectangle of the sticky element before being shifted","$ref":"DOM.Rect"},{"name":"containingBlockRect","description":"Layout rectangle of the containing block of the sticky element","$ref":"DOM.Rect"},{"name":"nearestLayerShiftingStickyBox","description":"The nearest sticky layer that shifts the sticky box","$ref":"LayerId","optional":true},{"name":"nearestLayerShiftingContainingBlock","description":"The nearest sticky layer that shifts the containing block","$ref":"LayerId","optional":true}]},{"id":"PictureTile","type":"object","description":"Serialized fragment of layer picture along with its offset within the layer.","properties":[{"name":"x","type":"number","description":"Offset from owning layer left boundary"},{"name":"y","type":"number","description":"Offset from owning layer top boundary"},{"name":"picture","type":"string","description":"Base64-encoded snapshot data. (Encoded as a base64 string when passed over JSON)"}]},{"id":"Layer","type":"object","description":"Information about a compositing layer.","properties":[{"name":"layerId","description":"The unique id for this layer.","$ref":"LayerId"},{"name":"parentLayerId","description":"The id of parent (not present for root).","$ref":"LayerId","optional":true},{"name":"backendNodeId","description":"The backend id for the node associated with this layer.","$ref":"DOM.BackendNodeId","optional":true},{"name":"offsetX","type":"number","description":"Offset from parent layer, X coordinate."},{"name":"offsetY","type":"number","description":"Offset from parent layer, Y coordinate."},{"name":"width","type":"number","description":"Layer width."},{"name":"height","type":"number","description":"Layer height."},{"name":"transform","type":"array","description":"Transformation matrix for layer, default is identity matrix","optional":true,"items":{"type":"number"}},{"name":"anchorX","type":"number","description":"Transform anchor point X, absent if no transform specified","optional":true},{"name":"anchorY","type":"number","description":"Transform anchor point Y, absent if no transform specified","optional":true},{"name":"anchorZ","type":"number","description":"Transform anchor point Z, absent if no transform specified","optional":true},{"name":"paintCount","type":"integer","description":"Indicates how many time this layer has painted."},{"name":"drawsContent","type":"boolean","description":"Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only."},{"name":"invisible","type":"boolean","description":"Set if layer is not visible.","optional":true},{"name":"scrollRects","type":"array","description":"Rectangles scrolling on main thread only.","optional":true,"items":{"$ref":"ScrollRect"}},{"name":"stickyPositionConstraint","description":"Sticky position constraint information","$ref":"StickyPositionConstraint","optional":true}]},{"id":"PaintProfile","type":"array","description":"Array of timings, one per paint step.","items":{"type":"number"}}],"commands":[{"name":"compositingReasons","description":"Provides the reasons why the given layer was composited.","parameters":[{"name":"layerId","description":"The id of the layer for which we want to get the reasons it was composited.","$ref":"LayerId"}],"returns":[{"name":"compositingReasons","type":"array","items":{"type":"string"},"description":"A list of strings specifying reasons for the given layer to become composited."},{"name":"compositingReasonIds","type":"array","items":{"type":"string"},"description":"A list of strings specifying reason IDs for the given layer to become composited."}]},{"name":"disable","description":"Disables compositing tree inspection."},{"name":"enable","description":"Enables compositing tree inspection."},{"name":"loadSnapshot","description":"Returns the snapshot identifier.","parameters":[{"name":"tiles","type":"array","description":"An array of tiles composing the snapshot.","items":{"$ref":"PictureTile"}}],"returns":[{"name":"snapshotId","$ref":"SnapshotId","description":"The id of the snapshot."}]},{"name":"makeSnapshot","description":"Returns the layer snapshot identifier.","parameters":[{"name":"layerId","description":"The id of the layer.","$ref":"LayerId"}],"returns":[{"name":"snapshotId","$ref":"SnapshotId","description":"The id of the layer snapshot."}]},{"name":"profileSnapshot","parameters":[{"name":"snapshotId","description":"The id of the layer snapshot.","$ref":"SnapshotId"},{"name":"minRepeatCount","type":"integer","description":"The maximum number of times to replay the snapshot (1, if not specified).","optional":true},{"name":"minDuration","type":"number","description":"The minimum duration (in seconds) to replay the snapshot.","optional":true},{"name":"clipRect","description":"The clip rectangle to apply when replaying the snapshot.","$ref":"DOM.Rect","optional":true}],"returns":[{"name":"timings","type":"array","items":{"$ref":"PaintProfile"},"description":"The array of paint profiles, one per run."}]},{"name":"releaseSnapshot","description":"Releases layer snapshot captured by the back-end.","parameters":[{"name":"snapshotId","description":"The id of the layer snapshot.","$ref":"SnapshotId"}]},{"name":"replaySnapshot","description":"Replays the layer snapshot and returns the resulting bitmap.","parameters":[{"name":"snapshotId","description":"The id of the layer snapshot.","$ref":"SnapshotId"},{"name":"fromStep","type":"integer","description":"The first step to replay from (replay from the very start if not specified).","optional":true},{"name":"toStep","type":"integer","description":"The last step to replay to (replay till the end if not specified).","optional":true},{"name":"scale","type":"number","description":"The scale to apply while replaying (defaults to 1).","optional":true}],"returns":[{"name":"dataURL","type":"string","description":"A data: URL for resulting image."}]},{"name":"snapshotCommandLog","description":"Replays the layer snapshot and returns canvas log.","parameters":[{"name":"snapshotId","description":"The id of the layer snapshot.","$ref":"SnapshotId"}],"returns":[{"name":"commandLog","type":"array","items":{"type":"object"},"description":"The array of canvas function calls."}]}],"events":[{"name":"layerPainted","parameters":[{"name":"layerId","description":"The id of the painted layer.","$ref":"LayerId"},{"name":"clip","description":"Clip rectangle.","$ref":"DOM.Rect"}]},{"name":"layerTreeDidChange","parameters":[{"name":"layers","type":"array","description":"Layer tree, absent if not in the comspositing mode.","optional":true,"items":{"$ref":"Layer"}}]}]},{"domain":"Log","description":"Provides access to log entries.","types":[{"id":"LogEntry","type":"object","description":"Log entry.","properties":[{"name":"source","type":"string","description":"Log entry source.","enum":["xml","javascript","network","storage","appcache","rendering","security","deprecation","worker","violation","intervention","recommendation","other"]},{"name":"level","type":"string","description":"Log entry severity.","enum":["verbose","info","warning","error"]},{"name":"text","type":"string","description":"Logged text."},{"name":"category","type":"string","optional":true,"enum":["cors"]},{"name":"timestamp","description":"Timestamp when this entry was added.","$ref":"Runtime.Timestamp"},{"name":"url","type":"string","description":"URL of the resource if known.","optional":true},{"name":"lineNumber","type":"integer","description":"Line number in the resource.","optional":true},{"name":"stackTrace","description":"JavaScript stack trace.","$ref":"Runtime.StackTrace","optional":true},{"name":"networkRequestId","description":"Identifier of the network request associated with this entry.","$ref":"Network.RequestId","optional":true},{"name":"workerId","type":"string","description":"Identifier of the worker associated with this entry.","optional":true},{"name":"args","type":"array","description":"Call arguments.","optional":true,"items":{"$ref":"Runtime.RemoteObject"}}]},{"id":"ViolationSetting","type":"object","description":"Violation configuration setting.","properties":[{"name":"name","type":"string","description":"Violation type.","enum":["longTask","longLayout","blockedEvent","blockedParser","discouragedAPIUse","handler","recurringHandler"]},{"name":"threshold","type":"number","description":"Time threshold to trigger upon."}]}],"commands":[{"name":"clear","description":"Clears the log."},{"name":"disable","description":"Disables log domain, prevents further log entries from being reported to the client."},{"name":"enable","description":"Enables log domain, sends the entries collected so far to the client by means of the `entryAdded` notification."},{"name":"startViolationsReport","description":"start violation reporting.","parameters":[{"name":"config","type":"array","description":"Configuration for violations.","items":{"$ref":"ViolationSetting"}}]},{"name":"stopViolationsReport","description":"Stop violation reporting."}],"events":[{"name":"entryAdded","description":"Issued when new message was logged.","parameters":[{"name":"entry","description":"The entry.","$ref":"LogEntry"}]}]},{"domain":"Memory","types":[{"id":"PressureLevel","type":"string","description":"Memory pressure level.","enum":["moderate","critical"]},{"id":"SamplingProfileNode","type":"object","description":"Heap profile sample.","properties":[{"name":"size","type":"number","description":"Size of the sampled allocation."},{"name":"total","type":"number","description":"Total bytes attributed to this sample."},{"name":"stack","type":"array","description":"Execution stack at the point of allocation.","items":{"type":"string"}}]},{"id":"SamplingProfile","type":"object","description":"Array of heap profile samples.","properties":[{"name":"samples","type":"array","items":{"$ref":"SamplingProfileNode"}},{"name":"modules","type":"array","items":{"$ref":"Module"}}]},{"id":"Module","type":"object","description":"Executable module information","properties":[{"name":"name","type":"string","description":"Name of the module."},{"name":"uuid","type":"string","description":"UUID of the module."},{"name":"baseAddress","type":"string","description":"Base address where the module is loaded into memory. Encoded as a decimal or hexadecimal (0x prefixed) string."},{"name":"size","type":"number","description":"Size of the module in bytes."}]}],"commands":[{"name":"getDOMCounters","returns":[{"name":"documents","type":"integer"},{"name":"nodes","type":"integer"},{"name":"jsEventListeners","type":"integer"}]},{"name":"prepareForLeakDetection"},{"name":"forciblyPurgeJavaScriptMemory","description":"Simulate OomIntervention by purging V8 memory."},{"name":"setPressureNotificationsSuppressed","description":"Enable/disable suppressing memory pressure notifications in all processes.","parameters":[{"name":"suppressed","type":"boolean","description":"If true, memory pressure notifications will be suppressed."}]},{"name":"simulatePressureNotification","description":"Simulate a memory pressure notification in all processes.","parameters":[{"name":"level","description":"Memory pressure level of the notification.","$ref":"PressureLevel"}]},{"name":"startSampling","description":"Start collecting native memory profile.","parameters":[{"name":"samplingInterval","type":"integer","description":"Average number of bytes between samples.","optional":true},{"name":"suppressRandomness","type":"boolean","description":"Do not randomize intervals between samples.","optional":true}]},{"name":"stopSampling","description":"Stop collecting native memory profile."},{"name":"getAllTimeSamplingProfile","description":"Retrieve native memory allocations profile collected since renderer process startup.","returns":[{"name":"profile","$ref":"SamplingProfile"}]},{"name":"getBrowserSamplingProfile","description":"Retrieve native memory allocations profile collected since browser process startup.","returns":[{"name":"profile","$ref":"SamplingProfile"}]},{"name":"getSamplingProfile","description":"Retrieve native memory allocations profile collected since last `startSampling` call.","returns":[{"name":"profile","$ref":"SamplingProfile"}]}]},{"domain":"Network","description":"Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers, bodies, timing, etc.","types":[{"id":"ResourceType","type":"string","description":"Resource type as it was perceived by the rendering engine.","enum":["Document","Stylesheet","Image","Media","Font","Script","TextTrack","XHR","Fetch","EventSource","WebSocket","Manifest","SignedExchange","Ping","CSPViolationReport","Preflight","Other"]},{"id":"LoaderId","type":"string","description":"Unique loader identifier."},{"id":"RequestId","type":"string","description":"Unique request identifier."},{"id":"InterceptionId","type":"string","description":"Unique intercepted request identifier."},{"id":"ErrorReason","type":"string","description":"Network level fetch failure reason.","enum":["Failed","Aborted","TimedOut","AccessDenied","ConnectionClosed","ConnectionReset","ConnectionRefused","ConnectionAborted","ConnectionFailed","NameNotResolved","InternetDisconnected","AddressUnreachable","BlockedByClient","BlockedByResponse"]},{"id":"TimeSinceEpoch","type":"number","description":"UTC time in seconds, counted from January 1, 1970."},{"id":"MonotonicTime","type":"number","description":"Monotonically increasing time in seconds since an arbitrary point in the past."},{"id":"Headers","type":"object","description":"Request / response headers as keys / values of JSON object."},{"id":"ConnectionType","type":"string","description":"The underlying connection technology that the browser is supposedly using.","enum":["none","cellular2g","cellular3g","cellular4g","bluetooth","ethernet","wifi","wimax","other"]},{"id":"CookieSameSite","type":"string","description":"Represents the cookie's 'SameSite' status: https://tools.ietf.org/html/draft-west-first-party-cookies","enum":["Strict","Lax","None"]},{"id":"CookiePriority","type":"string","description":"Represents the cookie's 'Priority' status: https://tools.ietf.org/html/draft-west-cookie-priority-00","enum":["Low","Medium","High"]},{"id":"CookieSourceScheme","type":"string","description":"Represents the source scheme of the origin that originally set the cookie. A value of \"Unset\" allows protocol clients to emulate legacy cookie scope for the scheme. This is a temporary ability and it will be removed in the future.","enum":["Unset","NonSecure","Secure"]},{"id":"ResourceTiming","type":"object","description":"Timing information for the request.","properties":[{"name":"requestTime","type":"number","description":"Timing's requestTime is a baseline in seconds, while the other numbers are ticks in milliseconds relatively to this requestTime."},{"name":"proxyStart","type":"number","description":"Started resolving proxy."},{"name":"proxyEnd","type":"number","description":"Finished resolving proxy."},{"name":"dnsStart","type":"number","description":"Started DNS address resolve."},{"name":"dnsEnd","type":"number","description":"Finished DNS address resolve."},{"name":"connectStart","type":"number","description":"Started connecting to the remote host."},{"name":"connectEnd","type":"number","description":"Connected to the remote host."},{"name":"sslStart","type":"number","description":"Started SSL handshake."},{"name":"sslEnd","type":"number","description":"Finished SSL handshake."},{"name":"workerStart","type":"number","description":"Started running ServiceWorker."},{"name":"workerReady","type":"number","description":"Finished Starting ServiceWorker."},{"name":"workerFetchStart","type":"number","description":"Started fetch event."},{"name":"workerRespondWithSettled","type":"number","description":"Settled fetch event respondWith promise."},{"name":"sendStart","type":"number","description":"Started sending request."},{"name":"sendEnd","type":"number","description":"Finished sending request."},{"name":"pushStart","type":"number","description":"Time the server started pushing request."},{"name":"pushEnd","type":"number","description":"Time the server finished pushing request."},{"name":"receiveHeadersEnd","type":"number","description":"Finished receiving response headers."}]},{"id":"ResourcePriority","type":"string","description":"Loading priority of a resource request.","enum":["VeryLow","Low","Medium","High","VeryHigh"]},{"id":"PostDataEntry","type":"object","description":"Post data entry for HTTP request","properties":[{"name":"bytes","type":"string","optional":true}]},{"id":"Request","type":"object","description":"HTTP request data.","properties":[{"name":"url","type":"string","description":"Request URL (without fragment)."},{"name":"urlFragment","type":"string","description":"Fragment of the requested URL starting with hash, if present.","optional":true},{"name":"method","type":"string","description":"HTTP request method."},{"name":"headers","description":"HTTP request headers.","$ref":"Headers"},{"name":"postData","type":"string","description":"HTTP POST request data.","optional":true},{"name":"hasPostData","type":"boolean","description":"True when the request has POST data. Note that postData might still be omitted when this flag is true when the data is too long.","optional":true},{"name":"postDataEntries","type":"array","description":"Request body elements. This will be converted from base64 to binary","optional":true,"items":{"$ref":"PostDataEntry"}},{"name":"mixedContentType","description":"The mixed content type of the request.","$ref":"Security.MixedContentType","optional":true},{"name":"initialPriority","description":"Priority of the resource request at the time request is sent.","$ref":"ResourcePriority"},{"name":"referrerPolicy","type":"string","description":"The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/","enum":["unsafe-url","no-referrer-when-downgrade","no-referrer","origin","origin-when-cross-origin","same-origin","strict-origin","strict-origin-when-cross-origin"]},{"name":"isLinkPreload","type":"boolean","description":"Whether is loaded via link preload.","optional":true},{"name":"trustTokenParams","description":"Set for requests when the TrustToken API is used. Contains the parameters passed by the developer (e.g. via \"fetch\") as understood by the backend.","$ref":"TrustTokenParams","optional":true},{"name":"isSameSite","type":"boolean","description":"True if this resource request is considered to be the 'same site' as the request correspondinfg to the main frame.","optional":true}]},{"id":"SignedCertificateTimestamp","type":"object","description":"Details of a signed certificate timestamp (SCT).","properties":[{"name":"status","type":"string","description":"Validation status."},{"name":"origin","type":"string","description":"Origin."},{"name":"logDescription","type":"string","description":"Log name / description."},{"name":"logId","type":"string","description":"Log ID."},{"name":"timestamp","type":"number","description":"Issuance date. Unlike TimeSinceEpoch, this contains the number of milliseconds since January 1, 1970, UTC, not the number of seconds."},{"name":"hashAlgorithm","type":"string","description":"Hash algorithm."},{"name":"signatureAlgorithm","type":"string","description":"Signature algorithm."},{"name":"signatureData","type":"string","description":"Signature data."}]},{"id":"SecurityDetails","type":"object","description":"Security details about a request.","properties":[{"name":"protocol","type":"string","description":"Protocol name (e.g. \"TLS 1.2\" or \"QUIC\")."},{"name":"keyExchange","type":"string","description":"Key Exchange used by the connection, or the empty string if not applicable."},{"name":"keyExchangeGroup","type":"string","description":"(EC)DH group used by the connection, if applicable.","optional":true},{"name":"cipher","type":"string","description":"Cipher name."},{"name":"mac","type":"string","description":"TLS MAC. Note that AEAD ciphers do not have separate MACs.","optional":true},{"name":"certificateId","description":"Certificate ID value.","$ref":"Security.CertificateId"},{"name":"subjectName","type":"string","description":"Certificate subject name."},{"name":"sanList","type":"array","description":"Subject Alternative Name (SAN) DNS names and IP addresses.","items":{"type":"string"}},{"name":"issuer","type":"string","description":"Name of the issuing CA."},{"name":"validFrom","description":"Certificate valid from date.","$ref":"TimeSinceEpoch"},{"name":"validTo","description":"Certificate valid to (expiration) date","$ref":"TimeSinceEpoch"},{"name":"signedCertificateTimestampList","type":"array","description":"List of signed certificate timestamps (SCTs).","items":{"$ref":"SignedCertificateTimestamp"}},{"name":"certificateTransparencyCompliance","description":"Whether the request complied with Certificate Transparency policy","$ref":"CertificateTransparencyCompliance"}]},{"id":"CertificateTransparencyCompliance","type":"string","description":"Whether the request complied with Certificate Transparency policy.","enum":["unknown","not-compliant","compliant"]},{"id":"BlockedReason","type":"string","description":"The reason why request was blocked.","enum":["other","csp","mixed-content","origin","inspector","subresource-filter","content-type","coep-frame-resource-needs-coep-header","coop-sandboxed-iframe-cannot-navigate-to-coop-page","corp-not-same-origin","corp-not-same-origin-after-defaulted-to-same-origin-by-coep","corp-not-same-site"]},{"id":"CorsError","type":"string","description":"The reason why request was blocked.","enum":["DisallowedByMode","InvalidResponse","WildcardOriginNotAllowed","MissingAllowOriginHeader","MultipleAllowOriginValues","InvalidAllowOriginValue","AllowOriginMismatch","InvalidAllowCredentials","CorsDisabledScheme","PreflightInvalidStatus","PreflightDisallowedRedirect","PreflightWildcardOriginNotAllowed","PreflightMissingAllowOriginHeader","PreflightMultipleAllowOriginValues","PreflightInvalidAllowOriginValue","PreflightAllowOriginMismatch","PreflightInvalidAllowCredentials","PreflightMissingAllowExternal","PreflightInvalidAllowExternal","InvalidAllowMethodsPreflightResponse","InvalidAllowHeadersPreflightResponse","MethodDisallowedByPreflightResponse","HeaderDisallowedByPreflightResponse","RedirectContainsCredentials","InsecurePrivateNetwork","InvalidPrivateNetworkAccess","UnexpectedPrivateNetworkAccess","NoCorsRedirectModeNotFollow"]},{"id":"CorsErrorStatus","type":"object","properties":[{"name":"corsError","$ref":"CorsError"},{"name":"failedParameter","type":"string"}]},{"id":"ServiceWorkerResponseSource","type":"string","description":"Source of serviceworker response.","enum":["cache-storage","http-cache","fallback-code","network"]},{"id":"TrustTokenParams","type":"object","description":"Determines what type of Trust Token operation is executed and depending on the type, some additional parameters. The values are specified in third_party/blink/renderer/core/fetch/trust_token.idl.","properties":[{"name":"type","$ref":"TrustTokenOperationType"},{"name":"refreshPolicy","type":"string","description":"Only set for \"token-redemption\" type and determine whether to request a fresh SRR or use a still valid cached SRR.","enum":["UseCached","Refresh"]},{"name":"issuers","type":"array","description":"Origins of issuers from whom to request tokens or redemption records.","optional":true,"items":{"type":"string"}}]},{"id":"TrustTokenOperationType","type":"string","enum":["Issuance","Redemption","Signing"]},{"id":"Response","type":"object","description":"HTTP response data.","properties":[{"name":"url","type":"string","description":"Response URL. This URL can be different from CachedResource.url in case of redirect."},{"name":"status","type":"integer","description":"HTTP response status code."},{"name":"statusText","type":"string","description":"HTTP response status text."},{"name":"headers","description":"HTTP response headers.","$ref":"Headers"},{"name":"headersText","type":"string","description":"HTTP response headers text. This has been replaced by the headers in Network.responseReceivedExtraInfo.","optional":true},{"name":"mimeType","type":"string","description":"Resource mimeType as determined by the browser."},{"name":"requestHeaders","description":"Refined HTTP request headers that were actually transmitted over the network.","$ref":"Headers","optional":true},{"name":"requestHeadersText","type":"string","description":"HTTP request headers text. This has been replaced by the headers in Network.requestWillBeSentExtraInfo.","optional":true},{"name":"connectionReused","type":"boolean","description":"Specifies whether physical connection was actually reused for this request."},{"name":"connectionId","type":"number","description":"Physical connection id that was actually used for this request."},{"name":"remoteIPAddress","type":"string","description":"Remote IP address.","optional":true},{"name":"remotePort","type":"integer","description":"Remote port.","optional":true},{"name":"fromDiskCache","type":"boolean","description":"Specifies that the request was served from the disk cache.","optional":true},{"name":"fromServiceWorker","type":"boolean","description":"Specifies that the request was served from the ServiceWorker.","optional":true},{"name":"fromPrefetchCache","type":"boolean","description":"Specifies that the request was served from the prefetch cache.","optional":true},{"name":"encodedDataLength","type":"number","description":"Total number of bytes received for this request so far."},{"name":"timing","description":"Timing information for the given request.","$ref":"ResourceTiming","optional":true},{"name":"serviceWorkerResponseSource","description":"Response source of response from ServiceWorker.","$ref":"ServiceWorkerResponseSource","optional":true},{"name":"responseTime","description":"The time at which the returned response was generated.","$ref":"TimeSinceEpoch","optional":true},{"name":"cacheStorageCacheName","type":"string","description":"Cache Storage Cache Name.","optional":true},{"name":"protocol","type":"string","description":"Protocol used to fetch this request.","optional":true},{"name":"securityState","description":"Security state of the request resource.","$ref":"Security.SecurityState"},{"name":"securityDetails","description":"Security details for the request.","$ref":"SecurityDetails","optional":true}]},{"id":"WebSocketRequest","type":"object","description":"WebSocket request data.","properties":[{"name":"headers","description":"HTTP request headers.","$ref":"Headers"}]},{"id":"WebSocketResponse","type":"object","description":"WebSocket response data.","properties":[{"name":"status","type":"integer","description":"HTTP response status code."},{"name":"statusText","type":"string","description":"HTTP response status text."},{"name":"headers","description":"HTTP response headers.","$ref":"Headers"},{"name":"headersText","type":"string","description":"HTTP response headers text.","optional":true},{"name":"requestHeaders","description":"HTTP request headers.","$ref":"Headers","optional":true},{"name":"requestHeadersText","type":"string","description":"HTTP request headers text.","optional":true}]},{"id":"WebSocketFrame","type":"object","description":"WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests.","properties":[{"name":"opcode","type":"number","description":"WebSocket message opcode."},{"name":"mask","type":"boolean","description":"WebSocket message mask."},{"name":"payloadData","type":"string","description":"WebSocket message payload data. If the opcode is 1, this is a text message and payloadData is a UTF-8 string. If the opcode isn't 1, then payloadData is a base64 encoded string representing binary data."}]},{"id":"CachedResource","type":"object","description":"Information about the cached resource.","properties":[{"name":"url","type":"string","description":"Resource URL. This is the url of the original network request."},{"name":"type","description":"Type of this resource.","$ref":"ResourceType"},{"name":"response","description":"Cached response data.","$ref":"Response","optional":true},{"name":"bodySize","type":"number","description":"Cached response body size."}]},{"id":"Initiator","type":"object","description":"Information about the request initiator.","properties":[{"name":"type","type":"string","description":"Type of this initiator.","enum":["parser","script","preload","SignedExchange","preflight","other"]},{"name":"stack","description":"Initiator JavaScript stack trace, set for Script only.","$ref":"Runtime.StackTrace","optional":true},{"name":"url","type":"string","description":"Initiator URL, set for Parser type or for Script type (when script is importing module) or for SignedExchange type.","optional":true},{"name":"lineNumber","type":"number","description":"Initiator line number, set for Parser type or for Script type (when script is importing module) (0-based).","optional":true},{"name":"columnNumber","type":"number","description":"Initiator column number, set for Parser type or for Script type (when script is importing module) (0-based).","optional":true},{"name":"requestId","description":"Set if another request triggered this request (e.g. preflight).","$ref":"RequestId","optional":true}]},{"id":"Cookie","type":"object","description":"Cookie object","properties":[{"name":"name","type":"string","description":"Cookie name."},{"name":"value","type":"string","description":"Cookie value."},{"name":"domain","type":"string","description":"Cookie domain."},{"name":"path","type":"string","description":"Cookie path."},{"name":"expires","type":"number","description":"Cookie expiration date as the number of seconds since the UNIX epoch."},{"name":"size","type":"integer","description":"Cookie size."},{"name":"httpOnly","type":"boolean","description":"True if cookie is http-only."},{"name":"secure","type":"boolean","description":"True if cookie is secure."},{"name":"session","type":"boolean","description":"True in case of session cookie."},{"name":"sameSite","description":"Cookie SameSite type.","$ref":"CookieSameSite","optional":true},{"name":"priority","description":"Cookie Priority","$ref":"CookiePriority"},{"name":"sameParty","type":"boolean","description":"True if cookie is SameParty."},{"name":"sourceScheme","description":"Cookie source scheme type.","$ref":"CookieSourceScheme"},{"name":"sourcePort","type":"integer","description":"Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future."},{"name":"partitionKey","type":"string","description":"Cookie partition key. The site of the top-level URL the browser was visiting at the start of the request to the endpoint that set the cookie.","optional":true},{"name":"partitionKeyOpaque","type":"boolean","description":"True if cookie partition key is opaque.","optional":true}]},{"id":"SetCookieBlockedReason","type":"string","description":"Types of reasons why a cookie may not be stored from a response.","enum":["SecureOnly","SameSiteStrict","SameSiteLax","SameSiteUnspecifiedTreatedAsLax","SameSiteNoneInsecure","UserPreferences","SyntaxError","SchemeNotSupported","OverwriteSecure","InvalidDomain","InvalidPrefix","UnknownError","SchemefulSameSiteStrict","SchemefulSameSiteLax","SchemefulSameSiteUnspecifiedTreatedAsLax","SamePartyFromCrossPartyContext","SamePartyConflictsWithOtherAttributes","NameValuePairExceedsMaxSize"]},{"id":"CookieBlockedReason","type":"string","description":"Types of reasons why a cookie may not be sent with a request.","enum":["SecureOnly","NotOnPath","DomainMismatch","SameSiteStrict","SameSiteLax","SameSiteUnspecifiedTreatedAsLax","SameSiteNoneInsecure","UserPreferences","UnknownError","SchemefulSameSiteStrict","SchemefulSameSiteLax","SchemefulSameSiteUnspecifiedTreatedAsLax","SamePartyFromCrossPartyContext","NameValuePairExceedsMaxSize"]},{"id":"BlockedSetCookieWithReason","type":"object","description":"A cookie which was not stored from a response with the corresponding reason.","properties":[{"name":"blockedReasons","type":"array","description":"The reason(s) this cookie was blocked.","items":{"$ref":"SetCookieBlockedReason"}},{"name":"cookieLine","type":"string","description":"The string representing this individual cookie as it would appear in the header. This is not the entire \"cookie\" or \"set-cookie\" header which could have multiple cookies."},{"name":"cookie","description":"The cookie object which represents the cookie which was not stored. It is optional because sometimes complete cookie information is not available, such as in the case of parsing errors.","$ref":"Cookie","optional":true}]},{"id":"BlockedCookieWithReason","type":"object","description":"A cookie with was not sent with a request with the corresponding reason.","properties":[{"name":"blockedReasons","type":"array","description":"The reason(s) the cookie was blocked.","items":{"$ref":"CookieBlockedReason"}},{"name":"cookie","description":"The cookie object representing the cookie which was not sent.","$ref":"Cookie"}]},{"id":"CookieParam","type":"object","description":"Cookie parameter object","properties":[{"name":"name","type":"string","description":"Cookie name."},{"name":"value","type":"string","description":"Cookie value."},{"name":"url","type":"string","description":"The request-URI to associate with the setting of the cookie. This value can affect the default domain, path, source port, and source scheme values of the created cookie.","optional":true},{"name":"domain","type":"string","description":"Cookie domain.","optional":true},{"name":"path","type":"string","description":"Cookie path.","optional":true},{"name":"secure","type":"boolean","description":"True if cookie is secure.","optional":true},{"name":"httpOnly","type":"boolean","description":"True if cookie is http-only.","optional":true},{"name":"sameSite","description":"Cookie SameSite type.","$ref":"CookieSameSite","optional":true},{"name":"expires","description":"Cookie expiration date, session cookie if not set","$ref":"TimeSinceEpoch","optional":true},{"name":"priority","description":"Cookie Priority.","$ref":"CookiePriority","optional":true},{"name":"sameParty","type":"boolean","description":"True if cookie is SameParty.","optional":true},{"name":"sourceScheme","description":"Cookie source scheme type.","$ref":"CookieSourceScheme","optional":true},{"name":"sourcePort","type":"integer","description":"Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future.","optional":true},{"name":"partitionKey","type":"string","description":"Cookie partition key. The site of the top-level URL the browser was visiting at the start of the request to the endpoint that set the cookie. If not set, the cookie will be set as not partitioned.","optional":true}]},{"id":"AuthChallenge","type":"object","description":"Authorization challenge for HTTP status code 401 or 407.","properties":[{"name":"source","type":"string","description":"Source of the authentication challenge.","optional":true,"enum":["Server","Proxy"]},{"name":"origin","type":"string","description":"Origin of the challenger."},{"name":"scheme","type":"string","description":"The authentication scheme used, such as basic or digest"},{"name":"realm","type":"string","description":"The realm of the challenge. May be empty."}]},{"id":"AuthChallengeResponse","type":"object","description":"Response to an AuthChallenge.","properties":[{"name":"response","type":"string","description":"The decision on what to do in response to the authorization challenge. Default means deferring to the default behavior of the net stack, which will likely either the Cancel authentication or display a popup dialog box.","enum":["Default","CancelAuth","ProvideCredentials"]},{"name":"username","type":"string","description":"The username to provide, possibly empty. Should only be set if response is ProvideCredentials.","optional":true},{"name":"password","type":"string","description":"The password to provide, possibly empty. Should only be set if response is ProvideCredentials.","optional":true}]},{"id":"InterceptionStage","type":"string","description":"Stages of the interception to begin intercepting. Request will intercept before the request is sent. Response will intercept after the response is received.","enum":["Request","HeadersReceived"]},{"id":"RequestPattern","type":"object","description":"Request pattern for interception.","properties":[{"name":"urlPattern","type":"string","description":"Wildcards (`'*'` -\u003e zero or more, `'?'` -\u003e exactly one) are allowed. Escape character is backslash. Omitting is equivalent to `\"*\"`.","optional":true},{"name":"resourceType","description":"If set, only requests for matching resource types will be intercepted.","$ref":"ResourceType","optional":true},{"name":"interceptionStage","description":"Stage at which to begin intercepting requests. Default is Request.","$ref":"InterceptionStage","optional":true}]},{"id":"SignedExchangeSignature","type":"object","description":"Information about a signed exchange signature. https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#rfc.section.3.1","properties":[{"name":"label","type":"string","description":"Signed exchange signature label."},{"name":"signature","type":"string","description":"The hex string of signed exchange signature."},{"name":"integrity","type":"string","description":"Signed exchange signature integrity."},{"name":"certUrl","type":"string","description":"Signed exchange signature cert Url.","optional":true},{"name":"certSha256","type":"string","description":"The hex string of signed exchange signature cert sha256.","optional":true},{"name":"validityUrl","type":"string","description":"Signed exchange signature validity Url."},{"name":"date","type":"integer","description":"Signed exchange signature date."},{"name":"expires","type":"integer","description":"Signed exchange signature expires."},{"name":"certificates","type":"array","description":"The encoded certificates.","optional":true,"items":{"type":"string"}}]},{"id":"SignedExchangeHeader","type":"object","description":"Information about a signed exchange header. https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#cbor-representation","properties":[{"name":"requestUrl","type":"string","description":"Signed exchange request URL."},{"name":"responseCode","type":"integer","description":"Signed exchange response code."},{"name":"responseHeaders","description":"Signed exchange response headers.","$ref":"Headers"},{"name":"signatures","type":"array","description":"Signed exchange response signature.","items":{"$ref":"SignedExchangeSignature"}},{"name":"headerIntegrity","type":"string","description":"Signed exchange header integrity hash in the form of \"sha256-\u003cbase64-hash-value\u003e\"."}]},{"id":"SignedExchangeErrorField","type":"string","description":"Field type for a signed exchange related error.","enum":["signatureSig","signatureIntegrity","signatureCertUrl","signatureCertSha256","signatureValidityUrl","signatureTimestamps"]},{"id":"SignedExchangeError","type":"object","description":"Information about a signed exchange response.","properties":[{"name":"message","type":"string","description":"Error message."},{"name":"signatureIndex","type":"integer","description":"The index of the signature which caused the error.","optional":true},{"name":"errorField","description":"The field which caused the error.","$ref":"SignedExchangeErrorField","optional":true}]},{"id":"SignedExchangeInfo","type":"object","description":"Information about a signed exchange response.","properties":[{"name":"outerResponse","description":"The outer response of signed HTTP exchange which was received from network.","$ref":"Response"},{"name":"header","description":"Information about the signed exchange header.","$ref":"SignedExchangeHeader","optional":true},{"name":"securityDetails","description":"Security details for the signed exchange header.","$ref":"SecurityDetails","optional":true},{"name":"errors","type":"array","description":"Errors occurred while handling the signed exchagne.","optional":true,"items":{"$ref":"SignedExchangeError"}}]},{"id":"ContentEncoding","type":"string","description":"List of content encodings supported by the backend.","enum":["deflate","gzip","br"]},{"id":"PrivateNetworkRequestPolicy","type":"string","enum":["Allow","BlockFromInsecureToMorePrivate","WarnFromInsecureToMorePrivate","PreflightBlock","PreflightWarn"]},{"id":"IPAddressSpace","type":"string","enum":["Local","Private","Public","Unknown"]},{"id":"ConnectTiming","type":"object","properties":[{"name":"requestTime","type":"number","description":"Timing's requestTime is a baseline in seconds, while the other numbers are ticks in milliseconds relatively to this requestTime. Matches ResourceTiming's requestTime for the same request (but not for redirected requests)."}]},{"id":"ClientSecurityState","type":"object","properties":[{"name":"initiatorIsSecureContext","type":"boolean"},{"name":"initiatorIPAddressSpace","$ref":"IPAddressSpace"},{"name":"privateNetworkRequestPolicy","$ref":"PrivateNetworkRequestPolicy"}]},{"id":"CrossOriginOpenerPolicyValue","type":"string","enum":["SameOrigin","SameOriginAllowPopups","UnsafeNone","SameOriginPlusCoep"]},{"id":"CrossOriginOpenerPolicyStatus","type":"object","properties":[{"name":"value","$ref":"CrossOriginOpenerPolicyValue"},{"name":"reportOnlyValue","$ref":"CrossOriginOpenerPolicyValue"},{"name":"reportingEndpoint","type":"string","optional":true},{"name":"reportOnlyReportingEndpoint","type":"string","optional":true}]},{"id":"CrossOriginEmbedderPolicyValue","type":"string","enum":["None","Credentialless","RequireCorp"]},{"id":"CrossOriginEmbedderPolicyStatus","type":"object","properties":[{"name":"value","$ref":"CrossOriginEmbedderPolicyValue"},{"name":"reportOnlyValue","$ref":"CrossOriginEmbedderPolicyValue"},{"name":"reportingEndpoint","type":"string","optional":true},{"name":"reportOnlyReportingEndpoint","type":"string","optional":true}]},{"id":"SecurityIsolationStatus","type":"object","properties":[{"name":"coop","$ref":"CrossOriginOpenerPolicyStatus","optional":true},{"name":"coep","$ref":"CrossOriginEmbedderPolicyStatus","optional":true}]},{"id":"ReportStatus","type":"string","description":"The status of a Reporting API report.","enum":["Queued","Pending","MarkedForRemoval","Success"]},{"id":"ReportId","type":"string"},{"id":"ReportingApiReport","type":"object","description":"An object representing a report generated by the Reporting API.","properties":[{"name":"id","$ref":"ReportId"},{"name":"initiatorUrl","type":"string","description":"The URL of the document that triggered the report."},{"name":"destination","type":"string","description":"The name of the endpoint group that should be used to deliver the report."},{"name":"type","type":"string","description":"The type of the report (specifies the set of data that is contained in the report body)."},{"name":"timestamp","description":"When the report was generated.","$ref":"Network.TimeSinceEpoch"},{"name":"depth","type":"integer","description":"How many uploads deep the related request was."},{"name":"completedAttempts","type":"integer","description":"The number of delivery attempts made so far, not including an active attempt."},{"name":"body","type":"object"},{"name":"status","$ref":"ReportStatus"}]},{"id":"ReportingApiEndpoint","type":"object","properties":[{"name":"url","type":"string","description":"The URL of the endpoint to which reports may be delivered."},{"name":"groupName","type":"string","description":"Name of the endpoint group."}]},{"id":"LoadNetworkResourcePageResult","type":"object","description":"An object providing the result of a network resource load.","properties":[{"name":"success","type":"boolean"},{"name":"netError","type":"number","description":"Optional values used for error reporting.","optional":true},{"name":"netErrorName","type":"string","optional":true},{"name":"httpStatusCode","type":"number","optional":true},{"name":"stream","description":"If successful, one of the following two fields holds the result.","$ref":"IO.StreamHandle","optional":true},{"name":"headers","description":"Response headers.","$ref":"Network.Headers","optional":true}]},{"id":"LoadNetworkResourceOptions","type":"object","description":"An options object that may be extended later to better support CORS, CORB and streaming.","properties":[{"name":"disableCache","type":"boolean"},{"name":"includeCredentials","type":"boolean"}]}],"commands":[{"name":"setAcceptedEncodings","description":"Sets a list of content encodings that will be accepted. Empty list means no encoding is accepted.","parameters":[{"name":"encodings","type":"array","description":"List of accepted content encodings.","items":{"$ref":"ContentEncoding"}}]},{"name":"clearAcceptedEncodingsOverride","description":"Clears accepted encodings set by setAcceptedEncodings"},{"name":"canClearBrowserCache","description":"Tells whether clearing browser cache is supported.","returns":[{"name":"result","type":"boolean","description":"True if browser cache can be cleared."}]},{"name":"canClearBrowserCookies","description":"Tells whether clearing browser cookies is supported.","returns":[{"name":"result","type":"boolean","description":"True if browser cookies can be cleared."}]},{"name":"canEmulateNetworkConditions","description":"Tells whether emulation of network conditions is supported.","returns":[{"name":"result","type":"boolean","description":"True if emulation of network conditions is supported."}]},{"name":"clearBrowserCache","description":"Clears browser cache."},{"name":"clearBrowserCookies","description":"Clears browser cookies."},{"name":"continueInterceptedRequest","description":"Response to Network.requestIntercepted which either modifies the request to continue with any modifications, or blocks it, or completes it with the provided response bytes. If a network fetch occurs as a result which encounters a redirect an additional Network.requestIntercepted event will be sent with the same InterceptionId. Deprecated, use Fetch.continueRequest, Fetch.fulfillRequest and Fetch.failRequest instead.","parameters":[{"name":"interceptionId","$ref":"InterceptionId"},{"name":"errorReason","description":"If set this causes the request to fail with the given reason. Passing `Aborted` for requests marked with `isNavigationRequest` also cancels the navigation. Must not be set in response to an authChallenge.","$ref":"ErrorReason","optional":true},{"name":"rawResponse","type":"string","description":"If set the requests completes using with the provided base64 encoded raw response, including HTTP status line and headers etc... Must not be set in response to an authChallenge. (Encoded as a base64 string when passed over JSON)","optional":true},{"name":"url","type":"string","description":"If set the request url will be modified in a way that's not observable by page. Must not be set in response to an authChallenge.","optional":true},{"name":"method","type":"string","description":"If set this allows the request method to be overridden. Must not be set in response to an authChallenge.","optional":true},{"name":"postData","type":"string","description":"If set this allows postData to be set. Must not be set in response to an authChallenge.","optional":true},{"name":"headers","description":"If set this allows the request headers to be changed. Must not be set in response to an authChallenge.","$ref":"Headers","optional":true},{"name":"authChallengeResponse","description":"Response to a requestIntercepted with an authChallenge. Must not be set otherwise.","$ref":"AuthChallengeResponse","optional":true}]},{"name":"deleteCookies","description":"Deletes browser cookies with matching name and url or domain/path pair.","parameters":[{"name":"name","type":"string","description":"Name of the cookies to remove."},{"name":"url","type":"string","description":"If specified, deletes all the cookies with the given name where domain and path match provided URL.","optional":true},{"name":"domain","type":"string","description":"If specified, deletes only cookies with the exact domain.","optional":true},{"name":"path","type":"string","description":"If specified, deletes only cookies with the exact path.","optional":true}]},{"name":"disable","description":"Disables network tracking, prevents network events from being sent to the client."},{"name":"emulateNetworkConditions","description":"Activates emulation of network conditions.","parameters":[{"name":"offline","type":"boolean","description":"True to emulate internet disconnection."},{"name":"latency","type":"number","description":"Minimum latency from request sent to response headers received (ms)."},{"name":"downloadThroughput","type":"number","description":"Maximal aggregated download throughput (bytes/sec). -1 disables download throttling."},{"name":"uploadThroughput","type":"number","description":"Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling."},{"name":"connectionType","description":"Connection type if known.","$ref":"ConnectionType","optional":true}]},{"name":"enable","description":"Enables network tracking, network events will now be delivered to the client.","parameters":[{"name":"maxTotalBufferSize","type":"integer","description":"Buffer size in bytes to use when preserving network payloads (XHRs, etc).","optional":true},{"name":"maxResourceBufferSize","type":"integer","description":"Per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc).","optional":true},{"name":"maxPostDataSize","type":"integer","description":"Longest post body size (in bytes) that would be included in requestWillBeSent notification","optional":true}]},{"name":"getAllCookies","description":"Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the `cookies` field.","returns":[{"name":"cookies","type":"array","items":{"$ref":"Cookie"},"description":"Array of cookie objects."}]},{"name":"getCertificate","description":"Returns the DER-encoded certificate.","parameters":[{"name":"origin","type":"string","description":"Origin to get certificate for."}],"returns":[{"name":"tableNames","type":"array","items":{"type":"string"}}]},{"name":"getCookies","description":"Returns all browser cookies for the current URL. Depending on the backend support, will return detailed cookie information in the `cookies` field.","parameters":[{"name":"urls","type":"array","description":"The list of URLs for which applicable cookies will be fetched. If not specified, it's assumed to be set to the list containing the URLs of the page and all of its subframes.","optional":true,"items":{"type":"string"}}],"returns":[{"name":"cookies","type":"array","items":{"$ref":"Cookie"},"description":"Array of cookie objects."}]},{"name":"getResponseBody","description":"Returns content served for the given request.","parameters":[{"name":"requestId","description":"Identifier of the network request to get content for.","$ref":"RequestId"}],"returns":[{"name":"body","type":"string","description":"Response body."},{"name":"base64Encoded","type":"boolean","description":"True, if content was sent as base64."}]},{"name":"getRequestPostData","description":"Returns post data sent with the request. Returns an error when no data was sent with the request.","parameters":[{"name":"requestId","description":"Identifier of the network request to get content for.","$ref":"RequestId"}],"returns":[{"name":"postData","type":"string","description":"Request body string, omitting files from multipart requests"}]},{"name":"getResponseBodyForInterception","description":"Returns content served for the given currently intercepted request.","parameters":[{"name":"interceptionId","description":"Identifier for the intercepted request to get body for.","$ref":"InterceptionId"}],"returns":[{"name":"body","type":"string","description":"Response body."},{"name":"base64Encoded","type":"boolean","description":"True, if content was sent as base64."}]},{"name":"takeResponseBodyForInterceptionAsStream","description":"Returns a handle to the stream representing the response body. Note that after this command, the intercepted request can't be continued as is -- you either need to cancel it or to provide the response body. The stream only supports sequential read, IO.read will fail if the position is specified.","parameters":[{"name":"interceptionId","$ref":"InterceptionId"}],"returns":[{"name":"stream","$ref":"IO.StreamHandle"}]},{"name":"replayXHR","description":"This method sends a new XMLHttpRequest which is identical to the original one. The following parameters should be identical: method, url, async, request body, extra headers, withCredentials attribute, user, password.","parameters":[{"name":"requestId","description":"Identifier of XHR to replay.","$ref":"RequestId"}]},{"name":"searchInResponseBody","description":"Searches for given string in response content.","parameters":[{"name":"requestId","description":"Identifier of the network response to search.","$ref":"RequestId"},{"name":"query","type":"string","description":"String to search for."},{"name":"caseSensitive","type":"boolean","description":"If true, search is case sensitive.","optional":true},{"name":"isRegex","type":"boolean","description":"If true, treats string parameter as regex.","optional":true}],"returns":[{"name":"result","type":"array","items":{"$ref":"Debugger.SearchMatch"},"description":"List of search matches."}]},{"name":"setBlockedURLs","description":"Blocks URLs from loading.","parameters":[{"name":"urls","type":"array","description":"URL patterns to block. Wildcards ('*') are allowed.","items":{"type":"string"}}]},{"name":"setBypassServiceWorker","description":"Toggles ignoring of service worker for each request.","parameters":[{"name":"bypass","type":"boolean","description":"Bypass service worker and load from network."}]},{"name":"setCacheDisabled","description":"Toggles ignoring cache for each request. If `true`, cache will not be used.","parameters":[{"name":"cacheDisabled","type":"boolean","description":"Cache disabled state."}]},{"name":"setCookie","description":"Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.","parameters":[{"name":"name","type":"string","description":"Cookie name."},{"name":"value","type":"string","description":"Cookie value."},{"name":"url","type":"string","description":"The request-URI to associate with the setting of the cookie. This value can affect the default domain, path, source port, and source scheme values of the created cookie.","optional":true},{"name":"domain","type":"string","description":"Cookie domain.","optional":true},{"name":"path","type":"string","description":"Cookie path.","optional":true},{"name":"secure","type":"boolean","description":"True if cookie is secure.","optional":true},{"name":"httpOnly","type":"boolean","description":"True if cookie is http-only.","optional":true},{"name":"sameSite","description":"Cookie SameSite type.","$ref":"CookieSameSite","optional":true},{"name":"expires","description":"Cookie expiration date, session cookie if not set","$ref":"TimeSinceEpoch","optional":true},{"name":"priority","description":"Cookie Priority type.","$ref":"CookiePriority","optional":true},{"name":"sameParty","type":"boolean","description":"True if cookie is SameParty.","optional":true},{"name":"sourceScheme","description":"Cookie source scheme type.","$ref":"CookieSourceScheme","optional":true},{"name":"sourcePort","type":"integer","description":"Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future.","optional":true},{"name":"partitionKey","type":"string","description":"Cookie partition key. The site of the top-level URL the browser was visiting at the start of the request to the endpoint that set the cookie. If not set, the cookie will be set as not partitioned.","optional":true}],"returns":[{"name":"success","type":"boolean","description":"Always set to true. If an error occurs, the response indicates protocol error."}]},{"name":"setCookies","description":"Sets given cookies.","parameters":[{"name":"cookies","type":"array","description":"Cookies to be set.","items":{"$ref":"CookieParam"}}]},{"name":"setExtraHTTPHeaders","description":"Specifies whether to always send extra HTTP headers with the requests from this page.","parameters":[{"name":"headers","description":"Map with extra HTTP headers.","$ref":"Headers"}]},{"name":"setAttachDebugStack","description":"Specifies whether to attach a page script stack id in requests","parameters":[{"name":"enabled","type":"boolean","description":"Whether to attach a page script stack for debugging purpose."}]},{"name":"setRequestInterception","description":"Sets the requests to intercept that match the provided patterns and optionally resource types. Deprecated, please use Fetch.enable instead.","parameters":[{"name":"patterns","type":"array","description":"Requests matching any of these patterns will be forwarded and wait for the corresponding continueInterceptedRequest call.","items":{"$ref":"RequestPattern"}}]},{"name":"setUserAgentOverride","description":"Allows overriding user agent with the given string.","parameters":[{"name":"userAgent","type":"string","description":"User agent to use."},{"name":"acceptLanguage","type":"string","description":"Browser langugage to emulate.","optional":true},{"name":"platform","type":"string","description":"The platform navigator.platform should return.","optional":true},{"name":"userAgentMetadata","description":"To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData","$ref":"Emulation.UserAgentMetadata","optional":true}],"redirect":"Emulation"},{"name":"getSecurityIsolationStatus","description":"Returns information about the COEP/COOP isolation status.","parameters":[{"name":"frameId","description":"If no frameId is provided, the status of the target is provided.","$ref":"Page.FrameId","optional":true}],"returns":[{"name":"status","$ref":"SecurityIsolationStatus"}]},{"name":"enableReportingApi","description":"Enables tracking for the Reporting API, events generated by the Reporting API will now be delivered to the client. Enabling triggers 'reportingApiReportAdded' for all existing reports.","parameters":[{"name":"enable","type":"boolean","description":"Whether to enable or disable events for the Reporting API"}]},{"name":"loadNetworkResource","description":"Fetches the resource and returns the content.","parameters":[{"name":"frameId","description":"Frame id to get the resource for. Mandatory for frame targets, and should be omitted for worker targets.","$ref":"Page.FrameId","optional":true},{"name":"url","type":"string","description":"URL of the resource to get content for."},{"name":"options","description":"Options for the request.","$ref":"LoadNetworkResourceOptions"}],"returns":[{"name":"resource","$ref":"LoadNetworkResourcePageResult"}]}],"events":[{"name":"dataReceived","description":"Fired when data chunk was received over the network.","parameters":[{"name":"requestId","description":"Request identifier.","$ref":"RequestId"},{"name":"timestamp","description":"Timestamp.","$ref":"MonotonicTime"},{"name":"dataLength","type":"integer","description":"Data chunk length."},{"name":"encodedDataLength","type":"integer","description":"Actual bytes received (might be less than dataLength for compressed encodings)."}]},{"name":"eventSourceMessageReceived","description":"Fired when EventSource message is received.","parameters":[{"name":"requestId","description":"Request identifier.","$ref":"RequestId"},{"name":"timestamp","description":"Timestamp.","$ref":"MonotonicTime"},{"name":"eventName","type":"string","description":"Message type."},{"name":"eventId","type":"string","description":"Message identifier."},{"name":"data","type":"string","description":"Message content."}]},{"name":"loadingFailed","description":"Fired when HTTP request has failed to load.","parameters":[{"name":"requestId","description":"Request identifier.","$ref":"RequestId"},{"name":"timestamp","description":"Timestamp.","$ref":"MonotonicTime"},{"name":"type","description":"Resource type.","$ref":"ResourceType"},{"name":"errorText","type":"string","description":"User friendly error message."},{"name":"canceled","type":"boolean","description":"True if loading was canceled.","optional":true},{"name":"blockedReason","description":"The reason why loading was blocked, if any.","$ref":"BlockedReason","optional":true},{"name":"corsErrorStatus","description":"The reason why loading was blocked by CORS, if any.","$ref":"CorsErrorStatus","optional":true}]},{"name":"loadingFinished","description":"Fired when HTTP request has finished loading.","parameters":[{"name":"requestId","description":"Request identifier.","$ref":"RequestId"},{"name":"timestamp","description":"Timestamp.","$ref":"MonotonicTime"},{"name":"encodedDataLength","type":"number","description":"Total number of bytes received for this request."},{"name":"shouldReportCorbBlocking","type":"boolean","description":"Set when 1) response was blocked by Cross-Origin Read Blocking and also 2) this needs to be reported to the DevTools console.","optional":true}]},{"name":"requestIntercepted","description":"Details of an intercepted HTTP request, which must be either allowed, blocked, modified or mocked. Deprecated, use Fetch.requestPaused instead.","parameters":[{"name":"interceptionId","description":"Each request the page makes will have a unique id, however if any redirects are encountered while processing that fetch, they will be reported with the same id as the original fetch. Likewise if HTTP authentication is needed then the same fetch id will be used.","$ref":"InterceptionId"},{"name":"request","$ref":"Request"},{"name":"frameId","description":"The id of the frame that initiated the request.","$ref":"Page.FrameId"},{"name":"resourceType","description":"How the requested resource will be used.","$ref":"ResourceType"},{"name":"isNavigationRequest","type":"boolean","description":"Whether this is a navigation request, which can abort the navigation completely."},{"name":"isDownload","type":"boolean","description":"Set if the request is a navigation that will result in a download. Only present after response is received from the server (i.e. HeadersReceived stage).","optional":true},{"name":"redirectUrl","type":"string","description":"Redirect location, only sent if a redirect was intercepted.","optional":true},{"name":"authChallenge","description":"Details of the Authorization Challenge encountered. If this is set then continueInterceptedRequest must contain an authChallengeResponse.","$ref":"AuthChallenge","optional":true},{"name":"responseErrorReason","description":"Response error if intercepted at response stage or if redirect occurred while intercepting request.","$ref":"ErrorReason","optional":true},{"name":"responseStatusCode","type":"integer","description":"Response code if intercepted at response stage or if redirect occurred while intercepting request or auth retry occurred.","optional":true},{"name":"responseHeaders","description":"Response headers if intercepted at the response stage or if redirect occurred while intercepting request or auth retry occurred.","$ref":"Headers","optional":true},{"name":"requestId","description":"If the intercepted request had a corresponding requestWillBeSent event fired for it, then this requestId will be the same as the requestId present in the requestWillBeSent event.","$ref":"RequestId","optional":true}]},{"name":"requestServedFromCache","description":"Fired if request ended up loading from cache.","parameters":[{"name":"requestId","description":"Request identifier.","$ref":"RequestId"}]},{"name":"requestWillBeSent","description":"Fired when page is about to send HTTP request.","parameters":[{"name":"requestId","description":"Request identifier.","$ref":"RequestId"},{"name":"loaderId","description":"Loader identifier. Empty string if the request is fetched from worker.","$ref":"LoaderId"},{"name":"documentURL","type":"string","description":"URL of the document this request is loaded for."},{"name":"request","description":"Request data.","$ref":"Request"},{"name":"timestamp","description":"Timestamp.","$ref":"MonotonicTime"},{"name":"wallTime","description":"Timestamp.","$ref":"TimeSinceEpoch"},{"name":"initiator","description":"Request initiator.","$ref":"Initiator"},{"name":"redirectHasExtraInfo","type":"boolean","description":"In the case that redirectResponse is populated, this flag indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted for the request which was just redirected."},{"name":"redirectResponse","description":"Redirect response data.","$ref":"Response","optional":true},{"name":"type","description":"Type of this resource.","$ref":"ResourceType","optional":true},{"name":"frameId","description":"Frame identifier.","$ref":"Page.FrameId","optional":true},{"name":"hasUserGesture","type":"boolean","description":"Whether the request is initiated by a user gesture. Defaults to false.","optional":true}]},{"name":"resourceChangedPriority","description":"Fired when resource loading priority is changed","parameters":[{"name":"requestId","description":"Request identifier.","$ref":"RequestId"},{"name":"newPriority","description":"New priority","$ref":"ResourcePriority"},{"name":"timestamp","description":"Timestamp.","$ref":"MonotonicTime"}]},{"name":"signedExchangeReceived","description":"Fired when a signed exchange was received over the network","parameters":[{"name":"requestId","description":"Request identifier.","$ref":"RequestId"},{"name":"info","description":"Information about the signed exchange response.","$ref":"SignedExchangeInfo"}]},{"name":"responseReceived","description":"Fired when HTTP response is available.","parameters":[{"name":"requestId","description":"Request identifier.","$ref":"RequestId"},{"name":"loaderId","description":"Loader identifier. Empty string if the request is fetched from worker.","$ref":"LoaderId"},{"name":"timestamp","description":"Timestamp.","$ref":"MonotonicTime"},{"name":"type","description":"Resource type.","$ref":"ResourceType"},{"name":"response","description":"Response data.","$ref":"Response"},{"name":"hasExtraInfo","type":"boolean","description":"Indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted for this request."},{"name":"frameId","description":"Frame identifier.","$ref":"Page.FrameId","optional":true}]},{"name":"webSocketClosed","description":"Fired when WebSocket is closed.","parameters":[{"name":"requestId","description":"Request identifier.","$ref":"RequestId"},{"name":"timestamp","description":"Timestamp.","$ref":"MonotonicTime"}]},{"name":"webSocketCreated","description":"Fired upon WebSocket creation.","parameters":[{"name":"requestId","description":"Request identifier.","$ref":"RequestId"},{"name":"url","type":"string","description":"WebSocket request URL."},{"name":"initiator","description":"Request initiator.","$ref":"Initiator","optional":true}]},{"name":"webSocketFrameError","description":"Fired when WebSocket message error occurs.","parameters":[{"name":"requestId","description":"Request identifier.","$ref":"RequestId"},{"name":"timestamp","description":"Timestamp.","$ref":"MonotonicTime"},{"name":"errorMessage","type":"string","description":"WebSocket error message."}]},{"name":"webSocketFrameReceived","description":"Fired when WebSocket message is received.","parameters":[{"name":"requestId","description":"Request identifier.","$ref":"RequestId"},{"name":"timestamp","description":"Timestamp.","$ref":"MonotonicTime"},{"name":"response","description":"WebSocket response data.","$ref":"WebSocketFrame"}]},{"name":"webSocketFrameSent","description":"Fired when WebSocket message is sent.","parameters":[{"name":"requestId","description":"Request identifier.","$ref":"RequestId"},{"name":"timestamp","description":"Timestamp.","$ref":"MonotonicTime"},{"name":"response","description":"WebSocket response data.","$ref":"WebSocketFrame"}]},{"name":"webSocketHandshakeResponseReceived","description":"Fired when WebSocket handshake response becomes available.","parameters":[{"name":"requestId","description":"Request identifier.","$ref":"RequestId"},{"name":"timestamp","description":"Timestamp.","$ref":"MonotonicTime"},{"name":"response","description":"WebSocket response data.","$ref":"WebSocketResponse"}]},{"name":"webSocketWillSendHandshakeRequest","description":"Fired when WebSocket is about to initiate handshake.","parameters":[{"name":"requestId","description":"Request identifier.","$ref":"RequestId"},{"name":"timestamp","description":"Timestamp.","$ref":"MonotonicTime"},{"name":"wallTime","description":"UTC Timestamp.","$ref":"TimeSinceEpoch"},{"name":"request","description":"WebSocket request data.","$ref":"WebSocketRequest"}]},{"name":"webTransportCreated","description":"Fired upon WebTransport creation.","parameters":[{"name":"transportId","description":"WebTransport identifier.","$ref":"RequestId"},{"name":"url","type":"string","description":"WebTransport request URL."},{"name":"timestamp","description":"Timestamp.","$ref":"MonotonicTime"},{"name":"initiator","description":"Request initiator.","$ref":"Initiator","optional":true}]},{"name":"webTransportConnectionEstablished","description":"Fired when WebTransport handshake is finished.","parameters":[{"name":"transportId","description":"WebTransport identifier.","$ref":"RequestId"},{"name":"timestamp","description":"Timestamp.","$ref":"MonotonicTime"}]},{"name":"webTransportClosed","description":"Fired when WebTransport is disposed.","parameters":[{"name":"transportId","description":"WebTransport identifier.","$ref":"RequestId"},{"name":"timestamp","description":"Timestamp.","$ref":"MonotonicTime"}]},{"name":"requestWillBeSentExtraInfo","description":"Fired when additional information about a requestWillBeSent event is available from the network stack. Not every requestWillBeSent event will have an additional requestWillBeSentExtraInfo fired for it, and there is no guarantee whether requestWillBeSent or requestWillBeSentExtraInfo will be fired first for the same request.","parameters":[{"name":"requestId","description":"Request identifier. Used to match this information to an existing requestWillBeSent event.","$ref":"RequestId"},{"name":"associatedCookies","type":"array","description":"A list of cookies potentially associated to the requested URL. This includes both cookies sent with the request and the ones not sent; the latter are distinguished by having blockedReason field set.","items":{"$ref":"BlockedCookieWithReason"}},{"name":"headers","description":"Raw request headers as they will be sent over the wire.","$ref":"Headers"},{"name":"connectTiming","description":"Connection timing information for the request.","$ref":"ConnectTiming"},{"name":"clientSecurityState","description":"The client security state set for the request.","$ref":"ClientSecurityState","optional":true}]},{"name":"responseReceivedExtraInfo","description":"Fired when additional information about a responseReceived event is available from the network stack. Not every responseReceived event will have an additional responseReceivedExtraInfo for it, and responseReceivedExtraInfo may be fired before or after responseReceived.","parameters":[{"name":"requestId","description":"Request identifier. Used to match this information to another responseReceived event.","$ref":"RequestId"},{"name":"blockedCookies","type":"array","description":"A list of cookies which were not stored from the response along with the corresponding reasons for blocking. The cookies here may not be valid due to syntax errors, which are represented by the invalid cookie line string instead of a proper cookie.","items":{"$ref":"BlockedSetCookieWithReason"}},{"name":"headers","description":"Raw response headers as they were received over the wire.","$ref":"Headers"},{"name":"resourceIPAddressSpace","description":"The IP address space of the resource. The address space can only be determined once the transport established the connection, so we can't send it in `requestWillBeSentExtraInfo`.","$ref":"IPAddressSpace"},{"name":"statusCode","type":"integer","description":"The status code of the response. This is useful in cases the request failed and no responseReceived event is triggered, which is the case for, e.g., CORS errors. This is also the correct status code for cached requests, where the status in responseReceived is a 200 and this will be 304."},{"name":"headersText","type":"string","description":"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.","optional":true}]},{"name":"trustTokenOperationDone","description":"Fired exactly once for each Trust Token operation. Depending on the type of the operation and whether the operation succeeded or failed, the event is fired before the corresponding request was sent or after the response was received.","parameters":[{"name":"status","type":"string","description":"Detailed success or error status of the operation. 'AlreadyExists' also signifies a successful operation, as the result of the operation already exists und thus, the operation was abort preemptively (e.g. a cache hit).","enum":["Ok","InvalidArgument","FailedPrecondition","ResourceExhausted","AlreadyExists","Unavailable","BadResponse","InternalError","UnknownError","FulfilledLocally"]},{"name":"type","$ref":"TrustTokenOperationType"},{"name":"requestId","$ref":"RequestId"},{"name":"topLevelOrigin","type":"string","description":"Top level origin. The context in which the operation was attempted.","optional":true},{"name":"issuerOrigin","type":"string","description":"Origin of the issuer in case of a \"Issuance\" or \"Redemption\" operation.","optional":true},{"name":"issuedTokenCount","type":"integer","description":"The number of obtained Trust Tokens on a successful \"Issuance\" operation.","optional":true}]},{"name":"subresourceWebBundleMetadataReceived","description":"Fired once when parsing the .wbn file has succeeded. The event contains the information about the web bundle contents.","parameters":[{"name":"requestId","description":"Request identifier. Used to match this information to another event.","$ref":"RequestId"},{"name":"urls","type":"array","description":"A list of URLs of resources in the subresource Web Bundle.","items":{"type":"string"}}]},{"name":"subresourceWebBundleMetadataError","description":"Fired once when parsing the .wbn file has failed.","parameters":[{"name":"requestId","description":"Request identifier. Used to match this information to another event.","$ref":"RequestId"},{"name":"errorMessage","type":"string","description":"Error message"}]},{"name":"subresourceWebBundleInnerResponseParsed","description":"Fired when handling requests for resources within a .wbn file. Note: this will only be fired for resources that are requested by the webpage.","parameters":[{"name":"innerRequestId","description":"Request identifier of the subresource request","$ref":"RequestId"},{"name":"innerRequestURL","type":"string","description":"URL of the subresource resource."},{"name":"bundleRequestId","description":"Bundle request identifier. Used to match this information to another event. This made be absent in case when the instrumentation was enabled only after webbundle was parsed.","$ref":"RequestId","optional":true}]},{"name":"subresourceWebBundleInnerResponseError","description":"Fired when request for resources within a .wbn file failed.","parameters":[{"name":"innerRequestId","description":"Request identifier of the subresource request","$ref":"RequestId"},{"name":"innerRequestURL","type":"string","description":"URL of the subresource resource."},{"name":"errorMessage","type":"string","description":"Error message"},{"name":"bundleRequestId","description":"Bundle request identifier. Used to match this information to another event. This made be absent in case when the instrumentation was enabled only after webbundle was parsed.","$ref":"RequestId","optional":true}]},{"name":"reportingApiReportAdded","description":"Is sent whenever a new report is added. And after 'enableReportingApi' for all existing reports.","parameters":[{"name":"report","$ref":"ReportingApiReport"}]},{"name":"reportingApiReportUpdated","parameters":[{"name":"report","$ref":"ReportingApiReport"}]},{"name":"reportingApiEndpointsChangedForOrigin","parameters":[{"name":"origin","type":"string","description":"Origin of the document(s) which configured the endpoints."},{"name":"endpoints","type":"array","items":{"$ref":"ReportingApiEndpoint"}}]}]},{"domain":"Overlay","description":"This domain provides various functionality related to drawing atop the inspected page.","types":[{"id":"SourceOrderConfig","type":"object","description":"Configuration data for drawing the source order of an elements children.","properties":[{"name":"parentOutlineColor","description":"the color to outline the givent element in.","$ref":"DOM.RGBA"},{"name":"childOutlineColor","description":"the color to outline the child elements in.","$ref":"DOM.RGBA"}]},{"id":"GridHighlightConfig","type":"object","description":"Configuration data for the highlighting of Grid elements.","properties":[{"name":"showGridExtensionLines","type":"boolean","description":"Whether the extension lines from grid cells to the rulers should be shown (default: false).","optional":true},{"name":"showPositiveLineNumbers","type":"boolean","description":"Show Positive line number labels (default: false).","optional":true},{"name":"showNegativeLineNumbers","type":"boolean","description":"Show Negative line number labels (default: false).","optional":true},{"name":"showAreaNames","type":"boolean","description":"Show area name labels (default: false).","optional":true},{"name":"showLineNames","type":"boolean","description":"Show line name labels (default: false).","optional":true},{"name":"showTrackSizes","type":"boolean","description":"Show track size labels (default: false).","optional":true},{"name":"gridBorderColor","description":"The grid container border highlight color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"cellBorderColor","description":"The cell border color (default: transparent). Deprecated, please use rowLineColor and columnLineColor instead.","$ref":"DOM.RGBA","optional":true},{"name":"rowLineColor","description":"The row line color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"columnLineColor","description":"The column line color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"gridBorderDash","type":"boolean","description":"Whether the grid border is dashed (default: false).","optional":true},{"name":"cellBorderDash","type":"boolean","description":"Whether the cell border is dashed (default: false). Deprecated, please us rowLineDash and columnLineDash instead.","optional":true},{"name":"rowLineDash","type":"boolean","description":"Whether row lines are dashed (default: false).","optional":true},{"name":"columnLineDash","type":"boolean","description":"Whether column lines are dashed (default: false).","optional":true},{"name":"rowGapColor","description":"The row gap highlight fill color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"rowHatchColor","description":"The row gap hatching fill color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"columnGapColor","description":"The column gap highlight fill color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"columnHatchColor","description":"The column gap hatching fill color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"areaBorderColor","description":"The named grid areas border color (Default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"gridBackgroundColor","description":"The grid container background color (Default: transparent).","$ref":"DOM.RGBA","optional":true}]},{"id":"FlexContainerHighlightConfig","type":"object","description":"Configuration data for the highlighting of Flex container elements.","properties":[{"name":"containerBorder","description":"The style of the container border","$ref":"LineStyle","optional":true},{"name":"lineSeparator","description":"The style of the separator between lines","$ref":"LineStyle","optional":true},{"name":"itemSeparator","description":"The style of the separator between items","$ref":"LineStyle","optional":true},{"name":"mainDistributedSpace","description":"Style of content-distribution space on the main axis (justify-content).","$ref":"BoxStyle","optional":true},{"name":"crossDistributedSpace","description":"Style of content-distribution space on the cross axis (align-content).","$ref":"BoxStyle","optional":true},{"name":"rowGapSpace","description":"Style of empty space caused by row gaps (gap/row-gap).","$ref":"BoxStyle","optional":true},{"name":"columnGapSpace","description":"Style of empty space caused by columns gaps (gap/column-gap).","$ref":"BoxStyle","optional":true},{"name":"crossAlignment","description":"Style of the self-alignment line (align-items).","$ref":"LineStyle","optional":true}]},{"id":"FlexItemHighlightConfig","type":"object","description":"Configuration data for the highlighting of Flex item elements.","properties":[{"name":"baseSizeBox","description":"Style of the box representing the item's base size","$ref":"BoxStyle","optional":true},{"name":"baseSizeBorder","description":"Style of the border around the box representing the item's base size","$ref":"LineStyle","optional":true},{"name":"flexibilityArrow","description":"Style of the arrow representing if the item grew or shrank","$ref":"LineStyle","optional":true}]},{"id":"LineStyle","type":"object","description":"Style information for drawing a line.","properties":[{"name":"color","description":"The color of the line (default: transparent)","$ref":"DOM.RGBA","optional":true},{"name":"pattern","type":"string","description":"The line pattern (default: solid)","optional":true,"enum":["dashed","dotted"]}]},{"id":"BoxStyle","type":"object","description":"Style information for drawing a box.","properties":[{"name":"fillColor","description":"The background color for the box (default: transparent)","$ref":"DOM.RGBA","optional":true},{"name":"hatchColor","description":"The hatching color for the box (default: transparent)","$ref":"DOM.RGBA","optional":true}]},{"id":"ContrastAlgorithm","type":"string","enum":["aa","aaa","apca"]},{"id":"HighlightConfig","type":"object","description":"Configuration data for the highlighting of page elements.","properties":[{"name":"showInfo","type":"boolean","description":"Whether the node info tooltip should be shown (default: false).","optional":true},{"name":"showStyles","type":"boolean","description":"Whether the node styles in the tooltip (default: false).","optional":true},{"name":"showRulers","type":"boolean","description":"Whether the rulers should be shown (default: false).","optional":true},{"name":"showAccessibilityInfo","type":"boolean","description":"Whether the a11y info should be shown (default: true).","optional":true},{"name":"showExtensionLines","type":"boolean","description":"Whether the extension lines from node to the rulers should be shown (default: false).","optional":true},{"name":"contentColor","description":"The content box highlight fill color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"paddingColor","description":"The padding highlight fill color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"borderColor","description":"The border highlight fill color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"marginColor","description":"The margin highlight fill color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"eventTargetColor","description":"The event target element highlight fill color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"shapeColor","description":"The shape outside fill color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"shapeMarginColor","description":"The shape margin fill color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"cssGridColor","description":"The grid layout color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"colorFormat","description":"The color format used to format color styles (default: hex).","$ref":"ColorFormat","optional":true},{"name":"gridHighlightConfig","description":"The grid layout highlight configuration (default: all transparent).","$ref":"GridHighlightConfig","optional":true},{"name":"flexContainerHighlightConfig","description":"The flex container highlight configuration (default: all transparent).","$ref":"FlexContainerHighlightConfig","optional":true},{"name":"flexItemHighlightConfig","description":"The flex item highlight configuration (default: all transparent).","$ref":"FlexItemHighlightConfig","optional":true},{"name":"contrastAlgorithm","description":"The contrast algorithm to use for the contrast ratio (default: aa).","$ref":"ContrastAlgorithm","optional":true},{"name":"containerQueryContainerHighlightConfig","description":"The container query container highlight configuration (default: all transparent).","$ref":"ContainerQueryContainerHighlightConfig","optional":true}]},{"id":"ColorFormat","type":"string","enum":["rgb","hsl","hex"]},{"id":"GridNodeHighlightConfig","type":"object","description":"Configurations for Persistent Grid Highlight","properties":[{"name":"gridHighlightConfig","description":"A descriptor for the highlight appearance.","$ref":"GridHighlightConfig"},{"name":"nodeId","description":"Identifier of the node to highlight.","$ref":"DOM.NodeId"}]},{"id":"FlexNodeHighlightConfig","type":"object","properties":[{"name":"flexContainerHighlightConfig","description":"A descriptor for the highlight appearance of flex containers.","$ref":"FlexContainerHighlightConfig"},{"name":"nodeId","description":"Identifier of the node to highlight.","$ref":"DOM.NodeId"}]},{"id":"ScrollSnapContainerHighlightConfig","type":"object","properties":[{"name":"snapportBorder","description":"The style of the snapport border (default: transparent)","$ref":"LineStyle","optional":true},{"name":"snapAreaBorder","description":"The style of the snap area border (default: transparent)","$ref":"LineStyle","optional":true},{"name":"scrollMarginColor","description":"The margin highlight fill color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"scrollPaddingColor","description":"The padding highlight fill color (default: transparent).","$ref":"DOM.RGBA","optional":true}]},{"id":"ScrollSnapHighlightConfig","type":"object","properties":[{"name":"scrollSnapContainerHighlightConfig","description":"A descriptor for the highlight appearance of scroll snap containers.","$ref":"ScrollSnapContainerHighlightConfig"},{"name":"nodeId","description":"Identifier of the node to highlight.","$ref":"DOM.NodeId"}]},{"id":"HingeConfig","type":"object","description":"Configuration for dual screen hinge","properties":[{"name":"rect","description":"A rectangle represent hinge","$ref":"DOM.Rect"},{"name":"contentColor","description":"The content box highlight fill color (default: a dark color).","$ref":"DOM.RGBA","optional":true},{"name":"outlineColor","description":"The content box highlight outline color (default: transparent).","$ref":"DOM.RGBA","optional":true}]},{"id":"ContainerQueryHighlightConfig","type":"object","properties":[{"name":"containerQueryContainerHighlightConfig","description":"A descriptor for the highlight appearance of container query containers.","$ref":"ContainerQueryContainerHighlightConfig"},{"name":"nodeId","description":"Identifier of the container node to highlight.","$ref":"DOM.NodeId"}]},{"id":"ContainerQueryContainerHighlightConfig","type":"object","properties":[{"name":"containerBorder","description":"The style of the container border.","$ref":"LineStyle","optional":true},{"name":"descendantBorder","description":"The style of the descendants' borders.","$ref":"LineStyle","optional":true}]},{"id":"IsolatedElementHighlightConfig","type":"object","properties":[{"name":"isolationModeHighlightConfig","description":"A descriptor for the highlight appearance of an element in isolation mode.","$ref":"IsolationModeHighlightConfig"},{"name":"nodeId","description":"Identifier of the isolated element to highlight.","$ref":"DOM.NodeId"}]},{"id":"IsolationModeHighlightConfig","type":"object","properties":[{"name":"resizerColor","description":"The fill color of the resizers (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"resizerHandleColor","description":"The fill color for resizer handles (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"maskColor","description":"The fill color for the mask covering non-isolated elements (default: transparent).","$ref":"DOM.RGBA","optional":true}]},{"id":"InspectMode","type":"string","enum":["searchForNode","searchForUAShadowDOM","captureAreaScreenshot","showDistances","none"]}],"commands":[{"name":"disable","description":"Disables domain notifications."},{"name":"enable","description":"Enables domain notifications."},{"name":"getHighlightObjectForTest","description":"For testing.","parameters":[{"name":"nodeId","description":"Id of the node to get highlight object for.","$ref":"DOM.NodeId"},{"name":"includeDistance","type":"boolean","description":"Whether to include distance info.","optional":true},{"name":"includeStyle","type":"boolean","description":"Whether to include style info.","optional":true},{"name":"colorFormat","description":"The color format to get config with (default: hex).","$ref":"ColorFormat","optional":true},{"name":"showAccessibilityInfo","type":"boolean","description":"Whether to show accessibility info (default: true).","optional":true}],"returns":[{"name":"highlight","type":"object","description":"Highlight data for the node."}]},{"name":"getGridHighlightObjectsForTest","description":"For Persistent Grid testing.","parameters":[{"name":"nodeIds","type":"array","description":"Ids of the node to get highlight object for.","items":{"$ref":"DOM.NodeId"}}],"returns":[{"name":"highlights","type":"object","description":"Grid Highlight data for the node ids provided."}]},{"name":"getSourceOrderHighlightObjectForTest","description":"For Source Order Viewer testing.","parameters":[{"name":"nodeId","description":"Id of the node to highlight.","$ref":"DOM.NodeId"}],"returns":[{"name":"highlight","type":"object","description":"Source order highlight data for the node id provided."}]},{"name":"hideHighlight","description":"Hides any highlight."},{"name":"highlightFrame","description":"Highlights owner element of the frame with given id. Deprecated: Doesn't work reliablity and cannot be fixed due to process separatation (the owner node might be in a different process). Determine the owner node in the client and use highlightNode.","parameters":[{"name":"frameId","description":"Identifier of the frame to highlight.","$ref":"Page.FrameId"},{"name":"contentColor","description":"The content box highlight fill color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"contentOutlineColor","description":"The content box highlight outline color (default: transparent).","$ref":"DOM.RGBA","optional":true}]},{"name":"highlightNode","description":"Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified.","parameters":[{"name":"highlightConfig","description":"A descriptor for the highlight appearance.","$ref":"HighlightConfig"},{"name":"nodeId","description":"Identifier of the node to highlight.","$ref":"DOM.NodeId","optional":true},{"name":"backendNodeId","description":"Identifier of the backend node to highlight.","$ref":"DOM.BackendNodeId","optional":true},{"name":"objectId","description":"JavaScript object id of the node to be highlighted.","$ref":"Runtime.RemoteObjectId","optional":true},{"name":"selector","type":"string","description":"Selectors to highlight relevant nodes.","optional":true}]},{"name":"highlightQuad","description":"Highlights given quad. Coordinates are absolute with respect to the main frame viewport.","parameters":[{"name":"quad","description":"Quad to highlight","$ref":"DOM.Quad"},{"name":"color","description":"The highlight fill color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"outlineColor","description":"The highlight outline color (default: transparent).","$ref":"DOM.RGBA","optional":true}]},{"name":"highlightRect","description":"Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport.","parameters":[{"name":"x","type":"integer","description":"X coordinate"},{"name":"y","type":"integer","description":"Y coordinate"},{"name":"width","type":"integer","description":"Rectangle width"},{"name":"height","type":"integer","description":"Rectangle height"},{"name":"color","description":"The highlight fill color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"outlineColor","description":"The highlight outline color (default: transparent).","$ref":"DOM.RGBA","optional":true}]},{"name":"highlightSourceOrder","description":"Highlights the source order of the children of the DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified.","parameters":[{"name":"sourceOrderConfig","description":"A descriptor for the appearance of the overlay drawing.","$ref":"SourceOrderConfig"},{"name":"nodeId","description":"Identifier of the node to highlight.","$ref":"DOM.NodeId","optional":true},{"name":"backendNodeId","description":"Identifier of the backend node to highlight.","$ref":"DOM.BackendNodeId","optional":true},{"name":"objectId","description":"JavaScript object id of the node to be highlighted.","$ref":"Runtime.RemoteObjectId","optional":true}]},{"name":"setInspectMode","description":"Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. Backend then generates 'inspectNodeRequested' event upon element selection.","parameters":[{"name":"mode","description":"Set an inspection mode.","$ref":"InspectMode"},{"name":"highlightConfig","description":"A descriptor for the highlight appearance of hovered-over nodes. May be omitted if `enabled == false`.","$ref":"HighlightConfig","optional":true}]},{"name":"setShowAdHighlights","description":"Highlights owner element of all frames detected to be ads.","parameters":[{"name":"show","type":"boolean","description":"True for showing ad highlights"}]},{"name":"setPausedInDebuggerMessage","parameters":[{"name":"message","type":"string","description":"The message to display, also triggers resume and step over controls.","optional":true}]},{"name":"setShowDebugBorders","description":"Requests that backend shows debug borders on layers","parameters":[{"name":"show","type":"boolean","description":"True for showing debug borders"}]},{"name":"setShowFPSCounter","description":"Requests that backend shows the FPS counter","parameters":[{"name":"show","type":"boolean","description":"True for showing the FPS counter"}]},{"name":"setShowGridOverlays","description":"Highlight multiple elements with the CSS Grid overlay.","parameters":[{"name":"gridNodeHighlightConfigs","type":"array","description":"An array of node identifiers and descriptors for the highlight appearance.","items":{"$ref":"GridNodeHighlightConfig"}}]},{"name":"setShowFlexOverlays","parameters":[{"name":"flexNodeHighlightConfigs","type":"array","description":"An array of node identifiers and descriptors for the highlight appearance.","items":{"$ref":"FlexNodeHighlightConfig"}}]},{"name":"setShowScrollSnapOverlays","parameters":[{"name":"scrollSnapHighlightConfigs","type":"array","description":"An array of node identifiers and descriptors for the highlight appearance.","items":{"$ref":"ScrollSnapHighlightConfig"}}]},{"name":"setShowContainerQueryOverlays","parameters":[{"name":"containerQueryHighlightConfigs","type":"array","description":"An array of node identifiers and descriptors for the highlight appearance.","items":{"$ref":"ContainerQueryHighlightConfig"}}]},{"name":"setShowPaintRects","description":"Requests that backend shows paint rectangles","parameters":[{"name":"result","type":"boolean","description":"True for showing paint rectangles"}]},{"name":"setShowLayoutShiftRegions","description":"Requests that backend shows layout shift regions","parameters":[{"name":"result","type":"boolean","description":"True for showing layout shift regions"}]},{"name":"setShowScrollBottleneckRects","description":"Requests that backend shows scroll bottleneck rects","parameters":[{"name":"show","type":"boolean","description":"True for showing scroll bottleneck rects"}]},{"name":"setShowHitTestBorders","description":"Requests that backend shows hit-test borders on layers","parameters":[{"name":"show","type":"boolean","description":"True for showing hit-test borders"}]},{"name":"setShowWebVitals","description":"Request that backend shows an overlay with web vital metrics.","parameters":[{"name":"show","type":"boolean"}]},{"name":"setShowViewportSizeOnResize","description":"Paints viewport size upon main frame resize.","parameters":[{"name":"show","type":"boolean","description":"Whether to paint size or not."}]},{"name":"setShowHinge","description":"Add a dual screen device hinge","parameters":[{"name":"hingeConfig","description":"hinge data, null means hideHinge","$ref":"HingeConfig","optional":true}]},{"name":"setShowIsolatedElements","description":"Show elements in isolation mode with overlays.","parameters":[{"name":"isolatedElementHighlightConfigs","type":"array","description":"An array of node identifiers and descriptors for the highlight appearance.","items":{"$ref":"IsolatedElementHighlightConfig"}}]}],"events":[{"name":"inspectNodeRequested","description":"Fired when the node should be inspected. This happens after call to `setInspectMode` or when user manually inspects an element.","parameters":[{"name":"backendNodeId","description":"Id of the node to inspect.","$ref":"DOM.BackendNodeId"}]},{"name":"nodeHighlightRequested","description":"Fired when the node should be highlighted. This happens after call to `setInspectMode`.","parameters":[{"name":"nodeId","$ref":"DOM.NodeId"}]},{"name":"screenshotRequested","description":"Fired when user asks to capture screenshot of some area on the page.","parameters":[{"name":"viewport","description":"Viewport to capture, in device independent pixels (dip).","$ref":"Page.Viewport"}]},{"name":"inspectModeCanceled","description":"Fired when user cancels the inspect mode."}]},{"domain":"Page","description":"Actions and events related to the inspected page belong to the page domain.","types":[{"id":"FrameId","type":"string","description":"Unique frame identifier."},{"id":"AdFrameType","type":"string","description":"Indicates whether a frame has been identified as an ad.","enum":["none","child","root"]},{"id":"AdFrameExplanation","type":"string","enum":["ParentIsAd","CreatedByAdScript","MatchedBlockingRule"]},{"id":"AdFrameStatus","type":"object","description":"Indicates whether a frame has been identified as an ad and why.","properties":[{"name":"adFrameType","$ref":"AdFrameType"},{"name":"explanations","type":"array","optional":true,"items":{"$ref":"AdFrameExplanation"}}]},{"id":"SecureContextType","type":"string","description":"Indicates whether the frame is a secure context and why it is the case.","enum":["Secure","SecureLocalhost","InsecureScheme","InsecureAncestor"]},{"id":"CrossOriginIsolatedContextType","type":"string","description":"Indicates whether the frame is cross-origin isolated and why it is the case.","enum":["Isolated","NotIsolated","NotIsolatedFeatureDisabled"]},{"id":"GatedAPIFeatures","type":"string","enum":["SharedArrayBuffers","SharedArrayBuffersTransferAllowed","PerformanceMeasureMemory","PerformanceProfile"]},{"id":"PermissionsPolicyFeature","type":"string","description":"All Permissions Policy features. This enum should match the one defined in third_party/blink/renderer/core/permissions_policy/permissions_policy_features.json5.","enum":["accelerometer","ambient-light-sensor","attribution-reporting","autoplay","camera","ch-dpr","ch-device-memory","ch-downlink","ch-ect","ch-prefers-color-scheme","ch-rtt","ch-ua","ch-ua-arch","ch-ua-bitness","ch-ua-platform","ch-ua-model","ch-ua-mobile","ch-ua-full-version","ch-ua-full-version-list","ch-ua-platform-version","ch-ua-reduced","ch-viewport-height","ch-viewport-width","ch-width","clipboard-read","clipboard-write","cross-origin-isolated","direct-sockets","display-capture","document-domain","encrypted-media","execution-while-out-of-viewport","execution-while-not-rendered","focus-without-user-activation","fullscreen","frobulate","gamepad","geolocation","gyroscope","hid","idle-detection","interest-cohort","join-ad-interest-group","keyboard-map","magnetometer","microphone","midi","otp-credentials","payment","picture-in-picture","publickey-credentials-get","run-ad-auction","screen-wake-lock","serial","shared-autofill","storage-access-api","sync-xhr","trust-token-redemption","usb","vertical-scroll","web-share","window-placement","xr-spatial-tracking"]},{"id":"PermissionsPolicyBlockReason","type":"string","description":"Reason for a permissions policy feature to be disabled.","enum":["Header","IframeAttribute"]},{"id":"PermissionsPolicyBlockLocator","type":"object","properties":[{"name":"frameId","$ref":"FrameId"},{"name":"blockReason","$ref":"PermissionsPolicyBlockReason"}]},{"id":"PermissionsPolicyFeatureState","type":"object","properties":[{"name":"feature","$ref":"PermissionsPolicyFeature"},{"name":"allowed","type":"boolean"},{"name":"locator","$ref":"PermissionsPolicyBlockLocator","optional":true}]},{"id":"OriginTrialTokenStatus","type":"string","description":"Origin Trial(https://www.chromium.org/blink/origin-trials) support. Status for an Origin Trial token.","enum":["Success","NotSupported","Insecure","Expired","WrongOrigin","InvalidSignature","Malformed","WrongVersion","FeatureDisabled","TokenDisabled","FeatureDisabledForUser","UnknownTrial"]},{"id":"OriginTrialStatus","type":"string","description":"Status for an Origin Trial.","enum":["Enabled","ValidTokenNotProvided","OSNotSupported","TrialNotAllowed"]},{"id":"OriginTrialUsageRestriction","type":"string","enum":["None","Subset"]},{"id":"OriginTrialToken","type":"object","properties":[{"name":"origin","type":"string"},{"name":"matchSubDomains","type":"boolean"},{"name":"trialName","type":"string"},{"name":"expiryTime","$ref":"Network.TimeSinceEpoch"},{"name":"isThirdParty","type":"boolean"},{"name":"usageRestriction","$ref":"OriginTrialUsageRestriction"}]},{"id":"OriginTrialTokenWithStatus","type":"object","properties":[{"name":"rawTokenText","type":"string"},{"name":"parsedToken","description":"`parsedToken` is present only when the token is extractable and parsable.","$ref":"OriginTrialToken","optional":true},{"name":"status","$ref":"OriginTrialTokenStatus"}]},{"id":"OriginTrial","type":"object","properties":[{"name":"trialName","type":"string"},{"name":"status","$ref":"OriginTrialStatus"},{"name":"tokensWithStatus","type":"array","items":{"$ref":"OriginTrialTokenWithStatus"}}]},{"id":"Frame","type":"object","description":"Information about the Frame on the page.","properties":[{"name":"id","description":"Frame unique identifier.","$ref":"FrameId"},{"name":"parentId","description":"Parent frame identifier.","$ref":"FrameId","optional":true},{"name":"loaderId","description":"Identifier of the loader associated with this frame.","$ref":"Network.LoaderId"},{"name":"name","type":"string","description":"Frame's name as specified in the tag.","optional":true},{"name":"url","type":"string","description":"Frame document's URL without fragment."},{"name":"urlFragment","type":"string","description":"Frame document's URL fragment including the '#'.","optional":true},{"name":"domainAndRegistry","type":"string","description":"Frame document's registered domain, taking the public suffixes list into account. Extracted from the Frame's url. Example URLs: http://www.google.com/file.html -\u003e \"google.com\" http://a.b.co.uk/file.html -\u003e \"b.co.uk\""},{"name":"securityOrigin","type":"string","description":"Frame document's security origin."},{"name":"mimeType","type":"string","description":"Frame document's mimeType as determined by the browser."},{"name":"unreachableUrl","type":"string","description":"If the frame failed to load, this contains the URL that could not be loaded. Note that unlike url above, this URL may contain a fragment.","optional":true},{"name":"adFrameStatus","description":"Indicates whether this frame was tagged as an ad and why.","$ref":"AdFrameStatus","optional":true},{"name":"secureContextType","description":"Indicates whether the main document is a secure context and explains why that is the case.","$ref":"SecureContextType"},{"name":"crossOriginIsolatedContextType","description":"Indicates whether this is a cross origin isolated context.","$ref":"CrossOriginIsolatedContextType"},{"name":"gatedAPIFeatures","type":"array","description":"Indicated which gated APIs / features are available.","items":{"$ref":"GatedAPIFeatures"}}]},{"id":"FrameResource","type":"object","description":"Information about the Resource on the page.","properties":[{"name":"url","type":"string","description":"Resource URL."},{"name":"type","description":"Type of this resource.","$ref":"Network.ResourceType"},{"name":"mimeType","type":"string","description":"Resource mimeType as determined by the browser."},{"name":"lastModified","description":"last-modified timestamp as reported by server.","$ref":"Network.TimeSinceEpoch","optional":true},{"name":"contentSize","type":"number","description":"Resource content size.","optional":true},{"name":"failed","type":"boolean","description":"True if the resource failed to load.","optional":true},{"name":"canceled","type":"boolean","description":"True if the resource was canceled during loading.","optional":true}]},{"id":"FrameResourceTree","type":"object","description":"Information about the Frame hierarchy along with their cached resources.","properties":[{"name":"frame","description":"Frame information for this tree item.","$ref":"Frame"},{"name":"childFrames","type":"array","description":"Child frames.","optional":true,"items":{"$ref":"FrameResourceTree"}},{"name":"resources","type":"array","description":"Information about frame resources.","items":{"$ref":"FrameResource"}}]},{"id":"FrameTree","type":"object","description":"Information about the Frame hierarchy.","properties":[{"name":"frame","description":"Frame information for this tree item.","$ref":"Frame"},{"name":"childFrames","type":"array","description":"Child frames.","optional":true,"items":{"$ref":"FrameTree"}}]},{"id":"ScriptIdentifier","type":"string","description":"Unique script identifier."},{"id":"TransitionType","type":"string","description":"Transition type.","enum":["link","typed","address_bar","auto_bookmark","auto_subframe","manual_subframe","generated","auto_toplevel","form_submit","reload","keyword","keyword_generated","other"]},{"id":"NavigationEntry","type":"object","description":"Navigation history entry.","properties":[{"name":"id","type":"integer","description":"Unique id of the navigation history entry."},{"name":"url","type":"string","description":"URL of the navigation history entry."},{"name":"userTypedURL","type":"string","description":"URL that the user typed in the url bar."},{"name":"title","type":"string","description":"Title of the navigation history entry."},{"name":"transitionType","description":"Transition type.","$ref":"TransitionType"}]},{"id":"ScreencastFrameMetadata","type":"object","description":"Screencast frame metadata.","properties":[{"name":"offsetTop","type":"number","description":"Top offset in DIP."},{"name":"pageScaleFactor","type":"number","description":"Page scale factor."},{"name":"deviceWidth","type":"number","description":"Device screen width in DIP."},{"name":"deviceHeight","type":"number","description":"Device screen height in DIP."},{"name":"scrollOffsetX","type":"number","description":"Position of horizontal scroll in CSS pixels."},{"name":"scrollOffsetY","type":"number","description":"Position of vertical scroll in CSS pixels."},{"name":"timestamp","description":"Frame swap timestamp.","$ref":"Network.TimeSinceEpoch","optional":true}]},{"id":"DialogType","type":"string","description":"Javascript dialog type.","enum":["alert","confirm","prompt","beforeunload"]},{"id":"AppManifestError","type":"object","description":"Error while paring app manifest.","properties":[{"name":"message","type":"string","description":"Error message."},{"name":"critical","type":"integer","description":"If criticial, this is a non-recoverable parse error."},{"name":"line","type":"integer","description":"Error line."},{"name":"column","type":"integer","description":"Error column."}]},{"id":"AppManifestParsedProperties","type":"object","description":"Parsed app manifest properties.","properties":[{"name":"scope","type":"string","description":"Computed scope value"}]},{"id":"LayoutViewport","type":"object","description":"Layout viewport position and dimensions.","properties":[{"name":"pageX","type":"integer","description":"Horizontal offset relative to the document (CSS pixels)."},{"name":"pageY","type":"integer","description":"Vertical offset relative to the document (CSS pixels)."},{"name":"clientWidth","type":"integer","description":"Width (CSS pixels), excludes scrollbar if present."},{"name":"clientHeight","type":"integer","description":"Height (CSS pixels), excludes scrollbar if present."}]},{"id":"VisualViewport","type":"object","description":"Visual viewport position, dimensions, and scale.","properties":[{"name":"offsetX","type":"number","description":"Horizontal offset relative to the layout viewport (CSS pixels)."},{"name":"offsetY","type":"number","description":"Vertical offset relative to the layout viewport (CSS pixels)."},{"name":"pageX","type":"number","description":"Horizontal offset relative to the document (CSS pixels)."},{"name":"pageY","type":"number","description":"Vertical offset relative to the document (CSS pixels)."},{"name":"clientWidth","type":"number","description":"Width (CSS pixels), excludes scrollbar if present."},{"name":"clientHeight","type":"number","description":"Height (CSS pixels), excludes scrollbar if present."},{"name":"scale","type":"number","description":"Scale relative to the ideal viewport (size at width=device-width)."},{"name":"zoom","type":"number","description":"Page zoom factor (CSS to device independent pixels ratio).","optional":true}]},{"id":"Viewport","type":"object","description":"Viewport for capturing screenshot.","properties":[{"name":"x","type":"number","description":"X offset in device independent pixels (dip)."},{"name":"y","type":"number","description":"Y offset in device independent pixels (dip)."},{"name":"width","type":"number","description":"Rectangle width in device independent pixels (dip)."},{"name":"height","type":"number","description":"Rectangle height in device independent pixels (dip)."},{"name":"scale","type":"number","description":"Page scale factor."}]},{"id":"FontFamilies","type":"object","description":"Generic font families collection.","properties":[{"name":"standard","type":"string","description":"The standard font-family.","optional":true},{"name":"fixed","type":"string","description":"The fixed font-family.","optional":true},{"name":"serif","type":"string","description":"The serif font-family.","optional":true},{"name":"sansSerif","type":"string","description":"The sansSerif font-family.","optional":true},{"name":"cursive","type":"string","description":"The cursive font-family.","optional":true},{"name":"fantasy","type":"string","description":"The fantasy font-family.","optional":true},{"name":"pictograph","type":"string","description":"The pictograph font-family.","optional":true}]},{"id":"FontSizes","type":"object","description":"Default font sizes.","properties":[{"name":"standard","type":"integer","description":"Default standard font size.","optional":true},{"name":"fixed","type":"integer","description":"Default fixed font size.","optional":true}]},{"id":"ClientNavigationReason","type":"string","enum":["formSubmissionGet","formSubmissionPost","httpHeaderRefresh","scriptInitiated","metaTagRefresh","pageBlockInterstitial","reload","anchorClick"]},{"id":"ClientNavigationDisposition","type":"string","enum":["currentTab","newTab","newWindow","download"]},{"id":"InstallabilityErrorArgument","type":"object","properties":[{"name":"name","type":"string","description":"Argument name (e.g. name:'minimum-icon-size-in-pixels')."},{"name":"value","type":"string","description":"Argument value (e.g. value:'64')."}]},{"id":"InstallabilityError","type":"object","description":"The installability error","properties":[{"name":"errorId","type":"string","description":"The error id (e.g. 'manifest-missing-suitable-icon')."},{"name":"errorArguments","type":"array","description":"The list of error arguments (e.g. {name:'minimum-icon-size-in-pixels', value:'64'}).","items":{"$ref":"InstallabilityErrorArgument"}}]},{"id":"ReferrerPolicy","type":"string","description":"The referring-policy used for the navigation.","enum":["noReferrer","noReferrerWhenDowngrade","origin","originWhenCrossOrigin","sameOrigin","strictOrigin","strictOriginWhenCrossOrigin","unsafeUrl"]},{"id":"CompilationCacheParams","type":"object","description":"Per-script compilation cache parameters for `Page.produceCompilationCache`","properties":[{"name":"url","type":"string","description":"The URL of the script to produce a compilation cache entry for."},{"name":"eager","type":"boolean","description":"A hint to the backend whether eager compilation is recommended. (the actual compilation mode used is upon backend discretion).","optional":true}]},{"id":"NavigationType","type":"string","description":"The type of a frameNavigated event.","enum":["Navigation","BackForwardCacheRestore"]},{"id":"BackForwardCacheNotRestoredReason","type":"string","description":"List of not restored reasons for back-forward cache.","enum":["NotMainFrame","BackForwardCacheDisabled","RelatedActiveContentsExist","HTTPStatusNotOK","SchemeNotHTTPOrHTTPS","Loading","WasGrantedMediaAccess","DisableForRenderFrameHostCalled","DomainNotAllowed","HTTPMethodNotGET","SubframeIsNavigating","Timeout","CacheLimit","JavaScriptExecution","RendererProcessKilled","RendererProcessCrashed","GrantedMediaStreamAccess","SchedulerTrackedFeatureUsed","ConflictingBrowsingInstance","CacheFlushed","ServiceWorkerVersionActivation","SessionRestored","ServiceWorkerPostMessage","EnteredBackForwardCacheBeforeServiceWorkerHostAdded","RenderFrameHostReused_SameSite","RenderFrameHostReused_CrossSite","ServiceWorkerClaim","IgnoreEventAndEvict","HaveInnerContents","TimeoutPuttingInCache","BackForwardCacheDisabledByLowMemory","BackForwardCacheDisabledByCommandLine","NetworkRequestDatapipeDrainedAsBytesConsumer","NetworkRequestRedirected","NetworkRequestTimeout","NetworkExceedsBufferLimit","NavigationCancelledWhileRestoring","NotMostRecentNavigationEntry","BackForwardCacheDisabledForPrerender","UserAgentOverrideDiffers","ForegroundCacheLimit","BrowsingInstanceNotSwapped","BackForwardCacheDisabledForDelegate","OptInUnloadHeaderNotPresent","UnloadHandlerExistsInMainFrame","UnloadHandlerExistsInSubFrame","ServiceWorkerUnregistration","CacheControlNoStore","CacheControlNoStoreCookieModified","CacheControlNoStoreHTTPOnlyCookieModified","NoResponseHead","Unknown","ActivationNavigationsDisallowedForBug1234857","WebSocket","WebTransport","WebRTC","MainResourceHasCacheControlNoStore","MainResourceHasCacheControlNoCache","SubresourceHasCacheControlNoStore","SubresourceHasCacheControlNoCache","ContainsPlugins","DocumentLoaded","DedicatedWorkerOrWorklet","OutstandingNetworkRequestOthers","OutstandingIndexedDBTransaction","RequestedNotificationsPermission","RequestedMIDIPermission","RequestedAudioCapturePermission","RequestedVideoCapturePermission","RequestedBackForwardCacheBlockedSensors","RequestedBackgroundWorkPermission","BroadcastChannel","IndexedDBConnection","WebXR","SharedWorker","WebLocks","WebHID","WebShare","RequestedStorageAccessGrant","WebNfc","OutstandingNetworkRequestFetch","OutstandingNetworkRequestXHR","AppBanner","Printing","WebDatabase","PictureInPicture","Portal","SpeechRecognizer","IdleManager","PaymentManager","SpeechSynthesis","KeyboardLock","WebOTPService","OutstandingNetworkRequestDirectSocket","InjectedJavascript","InjectedStyleSheet","Dummy","ContentSecurityHandler","ContentWebAuthenticationAPI","ContentFileChooser","ContentSerial","ContentFileSystemAccess","ContentMediaDevicesDispatcherHost","ContentWebBluetooth","ContentWebUSB","ContentMediaSession","ContentMediaSessionService","EmbedderPopupBlockerTabHelper","EmbedderSafeBrowsingTriggeredPopupBlocker","EmbedderSafeBrowsingThreatDetails","EmbedderAppBannerManager","EmbedderDomDistillerViewerSource","EmbedderDomDistillerSelfDeletingRequestDelegate","EmbedderOomInterventionTabHelper","EmbedderOfflinePage","EmbedderChromePasswordManagerClientBindCredentialManager","EmbedderPermissionRequestManager","EmbedderModalDialog","EmbedderExtensions","EmbedderExtensionMessaging","EmbedderExtensionMessagingForOpenPort","EmbedderExtensionSentMessageToCachedFrame"]},{"id":"BackForwardCacheNotRestoredReasonType","type":"string","description":"Types of not restored reasons for back-forward cache.","enum":["SupportPending","PageSupportNeeded","Circumstantial"]},{"id":"BackForwardCacheNotRestoredExplanation","type":"object","properties":[{"name":"type","description":"Type of the reason","$ref":"BackForwardCacheNotRestoredReasonType"},{"name":"reason","description":"Not restored reason","$ref":"BackForwardCacheNotRestoredReason"}]}],"commands":[{"name":"addScriptToEvaluateOnLoad","description":"Deprecated, please use addScriptToEvaluateOnNewDocument instead.","parameters":[{"name":"scriptSource","type":"string"}],"returns":[{"name":"identifier","$ref":"ScriptIdentifier","description":"Identifier of the added script."}]},{"name":"addScriptToEvaluateOnNewDocument","description":"Evaluates given script in every frame upon creation (before loading frame's scripts).","parameters":[{"name":"source","type":"string"},{"name":"worldName","type":"string","description":"If specified, creates an isolated world with the given name and evaluates given script in it. This world name will be used as the ExecutionContextDescription::name when the corresponding event is emitted.","optional":true},{"name":"includeCommandLineAPI","type":"boolean","description":"Specifies whether command line API should be available to the script, defaults to false.","optional":true}],"returns":[{"name":"identifier","$ref":"ScriptIdentifier","description":"Identifier of the added script."}]},{"name":"bringToFront","description":"Brings page to front (activates tab)."},{"name":"captureScreenshot","description":"Capture page screenshot.","parameters":[{"name":"format","type":"string","description":"Image compression format (defaults to png).","optional":true,"enum":["jpeg","png","webp"]},{"name":"quality","type":"integer","description":"Compression quality from range [0..100] (jpeg only).","optional":true},{"name":"clip","description":"Capture the screenshot of a given region only.","$ref":"Viewport","optional":true},{"name":"fromSurface","type":"boolean","description":"Capture the screenshot from the surface, rather than the view. Defaults to true.","optional":true},{"name":"captureBeyondViewport","type":"boolean","description":"Capture the screenshot beyond the viewport. Defaults to false.","optional":true}],"returns":[{"name":"data","type":"string","description":"Base64-encoded image data. (Encoded as a base64 string when passed over JSON)"}]},{"name":"captureSnapshot","description":"Returns a snapshot of the page as a string. For MHTML format, the serialization includes iframes, shadow DOM, external resources, and element-inline styles.","parameters":[{"name":"format","type":"string","description":"Format (defaults to mhtml).","optional":true,"enum":["mhtml"]}],"returns":[{"name":"data","type":"string","description":"Serialized page data."}]},{"name":"clearDeviceMetricsOverride","description":"Clears the overridden device metrics.","redirect":"Emulation"},{"name":"clearDeviceOrientationOverride","description":"Clears the overridden Device Orientation.","redirect":"DeviceOrientation"},{"name":"clearGeolocationOverride","description":"Clears the overridden Geolocation Position and Error.","redirect":"Emulation"},{"name":"createIsolatedWorld","description":"Creates an isolated world for the given frame.","parameters":[{"name":"frameId","description":"Id of the frame in which the isolated world should be created.","$ref":"FrameId"},{"name":"worldName","type":"string","description":"An optional name which is reported in the Execution Context.","optional":true},{"name":"grantUniveralAccess","type":"boolean","description":"Whether or not universal access should be granted to the isolated world. This is a powerful option, use with caution.","optional":true}],"returns":[{"name":"executionContextId","$ref":"Runtime.ExecutionContextId","description":"Execution context of the isolated world."}]},{"name":"deleteCookie","description":"Deletes browser cookie with given name, domain and path.","parameters":[{"name":"cookieName","type":"string","description":"Name of the cookie to remove."},{"name":"url","type":"string","description":"URL to match cooke domain and path."}],"redirect":"Network"},{"name":"disable","description":"Disables page domain notifications."},{"name":"enable","description":"Enables page domain notifications."},{"name":"getAppManifest","returns":[{"name":"url","type":"string","description":"Manifest location."},{"name":"errors","type":"array","items":{"$ref":"AppManifestError"}},{"name":"data","type":"string","description":"Manifest content."},{"name":"parsed","$ref":"AppManifestParsedProperties","description":"Parsed manifest properties"}]},{"name":"getInstallabilityErrors","returns":[{"name":"installabilityErrors","type":"array","items":{"$ref":"InstallabilityError"}}]},{"name":"getManifestIcons","returns":[{"name":"primaryIcon","type":"string"}]},{"name":"getAppId","description":"Returns the unique (PWA) app id. Only returns values if the feature flag 'WebAppEnableManifestId' is enabled","returns":[{"name":"appId","type":"string","description":"App id, either from manifest's id attribute or computed from start_url"},{"name":"recommendedId","type":"string","description":"Recommendation for manifest's id attribute to match current id computed from start_url"}]},{"name":"getCookies","description":"Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the `cookies` field.","returns":[{"name":"cookies","type":"array","items":{"$ref":"Network.Cookie"},"description":"Array of cookie objects."}],"redirect":"Network"},{"name":"getFrameTree","description":"Returns present frame tree structure.","returns":[{"name":"frameTree","$ref":"FrameTree","description":"Present frame tree structure."}]},{"name":"getLayoutMetrics","description":"Returns metrics relating to the layouting of the page, such as viewport bounds/scale.","returns":[{"name":"layoutViewport","$ref":"LayoutViewport","description":"Deprecated metrics relating to the layout viewport. Can be in DP or in CSS pixels depending on the `enable-use-zoom-for-dsf` flag. Use `cssLayoutViewport` instead."},{"name":"visualViewport","$ref":"VisualViewport","description":"Deprecated metrics relating to the visual viewport. Can be in DP or in CSS pixels depending on the `enable-use-zoom-for-dsf` flag. Use `cssVisualViewport` instead."},{"name":"contentSize","$ref":"DOM.Rect","description":"Deprecated size of scrollable area. Can be in DP or in CSS pixels depending on the `enable-use-zoom-for-dsf` flag. Use `cssContentSize` instead."},{"name":"cssLayoutViewport","$ref":"LayoutViewport","description":"Metrics relating to the layout viewport in CSS pixels."},{"name":"cssVisualViewport","$ref":"VisualViewport","description":"Metrics relating to the visual viewport in CSS pixels."},{"name":"cssContentSize","$ref":"DOM.Rect","description":"Size of scrollable area in CSS pixels."}]},{"name":"getNavigationHistory","description":"Returns navigation history for the current page.","returns":[{"name":"currentIndex","type":"integer","description":"Index of the current navigation history entry."},{"name":"entries","type":"array","items":{"$ref":"NavigationEntry"},"description":"Array of navigation history entries."}]},{"name":"resetNavigationHistory","description":"Resets navigation history for the current page."},{"name":"getResourceContent","description":"Returns content of the given resource.","parameters":[{"name":"frameId","description":"Frame id to get resource for.","$ref":"FrameId"},{"name":"url","type":"string","description":"URL of the resource to get content for."}],"returns":[{"name":"content","type":"string","description":"Resource content."},{"name":"base64Encoded","type":"boolean","description":"True, if content was served as base64."}]},{"name":"getResourceTree","description":"Returns present frame / resource tree structure.","returns":[{"name":"frameTree","$ref":"FrameResourceTree","description":"Present frame / resource tree structure."}]},{"name":"handleJavaScriptDialog","description":"Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).","parameters":[{"name":"accept","type":"boolean","description":"Whether to accept or dismiss the dialog."},{"name":"promptText","type":"string","description":"The text to enter into the dialog prompt before accepting. Used only if this is a prompt dialog.","optional":true}]},{"name":"navigate","description":"Navigates current page to the given URL.","parameters":[{"name":"url","type":"string","description":"URL to navigate the page to."},{"name":"referrer","type":"string","description":"Referrer URL.","optional":true},{"name":"transitionType","description":"Intended transition type.","$ref":"TransitionType","optional":true},{"name":"frameId","description":"Frame id to navigate, if not specified navigates the top frame.","$ref":"FrameId","optional":true},{"name":"referrerPolicy","description":"Referrer-policy used for the navigation.","$ref":"ReferrerPolicy","optional":true}],"returns":[{"name":"frameId","$ref":"FrameId","description":"Frame id that has navigated (or failed to navigate)"},{"name":"loaderId","$ref":"Network.LoaderId","description":"Loader identifier."},{"name":"errorText","type":"string","description":"User friendly error message, present if and only if navigation has failed."}]},{"name":"navigateToHistoryEntry","description":"Navigates current page to the given history entry.","parameters":[{"name":"entryId","type":"integer","description":"Unique id of the entry to navigate to."}]},{"name":"printToPDF","description":"Print page as PDF.","parameters":[{"name":"landscape","type":"boolean","description":"Paper orientation. Defaults to false.","optional":true},{"name":"displayHeaderFooter","type":"boolean","description":"Display header and footer. Defaults to false.","optional":true},{"name":"printBackground","type":"boolean","description":"Print background graphics. Defaults to false.","optional":true},{"name":"scale","type":"number","description":"Scale of the webpage rendering. Defaults to 1.","optional":true},{"name":"paperWidth","type":"number","description":"Paper width in inches. Defaults to 8.5 inches.","optional":true},{"name":"paperHeight","type":"number","description":"Paper height in inches. Defaults to 11 inches.","optional":true},{"name":"marginTop","type":"number","description":"Top margin in inches. Defaults to 1cm (~0.4 inches).","optional":true},{"name":"marginBottom","type":"number","description":"Bottom margin in inches. Defaults to 1cm (~0.4 inches).","optional":true},{"name":"marginLeft","type":"number","description":"Left margin in inches. Defaults to 1cm (~0.4 inches).","optional":true},{"name":"marginRight","type":"number","description":"Right margin in inches. Defaults to 1cm (~0.4 inches).","optional":true},{"name":"pageRanges","type":"string","description":"Paper ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string, which means print all pages.","optional":true},{"name":"ignoreInvalidPageRanges","type":"boolean","description":"Whether to silently ignore invalid but successfully parsed page ranges, such as '3-2'. Defaults to false.","optional":true},{"name":"headerTemplate","type":"string","description":"HTML template for the print header. Should be valid HTML markup with following classes used to inject printing values into them: - `date`: formatted print date - `title`: document title - `url`: document location - `pageNumber`: current page number - `totalPages`: total pages in the document For example, `\u003cspan class=title\u003e\u003c/span\u003e` would generate span containing the title.","optional":true},{"name":"footerTemplate","type":"string","description":"HTML template for the print footer. Should use the same format as the `headerTemplate`.","optional":true},{"name":"preferCSSPageSize","type":"boolean","description":"Whether or not to prefer page size as defined by css. Defaults to false, in which case the content will be scaled to fit the paper size.","optional":true},{"name":"transferMode","type":"string","description":"return as stream","optional":true,"enum":["ReturnAsBase64","ReturnAsStream"]}],"returns":[{"name":"data","type":"string","description":"Base64-encoded pdf data. Empty if |returnAsStream| is specified. (Encoded as a base64 string when passed over JSON)"},{"name":"stream","$ref":"IO.StreamHandle","description":"A handle of the stream that holds resulting PDF data."}]},{"name":"reload","description":"Reloads given page optionally ignoring the cache.","parameters":[{"name":"ignoreCache","type":"boolean","description":"If true, browser cache is ignored (as if the user pressed Shift+refresh).","optional":true},{"name":"scriptToEvaluateOnLoad","type":"string","description":"If set, the script will be injected into all frames of the inspected page after reload. Argument will be ignored if reloading dataURL origin.","optional":true}]},{"name":"removeScriptToEvaluateOnLoad","description":"Deprecated, please use removeScriptToEvaluateOnNewDocument instead.","parameters":[{"name":"identifier","$ref":"ScriptIdentifier"}]},{"name":"removeScriptToEvaluateOnNewDocument","description":"Removes given script from the list.","parameters":[{"name":"identifier","$ref":"ScriptIdentifier"}]},{"name":"screencastFrameAck","description":"Acknowledges that a screencast frame has been received by the frontend.","parameters":[{"name":"sessionId","type":"integer","description":"Frame number."}]},{"name":"searchInResource","description":"Searches for given string in resource content.","parameters":[{"name":"frameId","description":"Frame id for resource to search in.","$ref":"FrameId"},{"name":"url","type":"string","description":"URL of the resource to search in."},{"name":"query","type":"string","description":"String to search for."},{"name":"caseSensitive","type":"boolean","description":"If true, search is case sensitive.","optional":true},{"name":"isRegex","type":"boolean","description":"If true, treats string parameter as regex.","optional":true}],"returns":[{"name":"result","type":"array","items":{"$ref":"Debugger.SearchMatch"},"description":"List of search matches."}]},{"name":"setAdBlockingEnabled","description":"Enable Chrome's experimental ad filter on all sites.","parameters":[{"name":"enabled","type":"boolean","description":"Whether to block ads."}]},{"name":"setBypassCSP","description":"Enable page Content Security Policy by-passing.","parameters":[{"name":"enabled","type":"boolean","description":"Whether to bypass page CSP."}]},{"name":"getPermissionsPolicyState","description":"Get Permissions Policy state on given frame.","parameters":[{"name":"frameId","$ref":"FrameId"}],"returns":[{"name":"states","type":"array","items":{"$ref":"PermissionsPolicyFeatureState"}}]},{"name":"getOriginTrials","description":"Get Origin Trials on given frame.","parameters":[{"name":"frameId","$ref":"FrameId"}],"returns":[{"name":"originTrials","type":"array","items":{"$ref":"OriginTrial"}}]},{"name":"setDeviceMetricsOverride","description":"Overrides the values of device screen dimensions (window.screen.width, window.screen.height, window.innerWidth, window.innerHeight, and \"device-width\"/\"device-height\"-related CSS media query results).","parameters":[{"name":"width","type":"integer","description":"Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override."},{"name":"height","type":"integer","description":"Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override."},{"name":"deviceScaleFactor","type":"number","description":"Overriding device scale factor value. 0 disables the override."},{"name":"mobile","type":"boolean","description":"Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more."},{"name":"scale","type":"number","description":"Scale to apply to resulting view image.","optional":true},{"name":"screenWidth","type":"integer","description":"Overriding screen width value in pixels (minimum 0, maximum 10000000).","optional":true},{"name":"screenHeight","type":"integer","description":"Overriding screen height value in pixels (minimum 0, maximum 10000000).","optional":true},{"name":"positionX","type":"integer","description":"Overriding view X position on screen in pixels (minimum 0, maximum 10000000).","optional":true},{"name":"positionY","type":"integer","description":"Overriding view Y position on screen in pixels (minimum 0, maximum 10000000).","optional":true},{"name":"dontSetVisibleSize","type":"boolean","description":"Do not set visible view size, rely upon explicit setVisibleSize call.","optional":true},{"name":"screenOrientation","description":"Screen orientation override.","$ref":"Emulation.ScreenOrientation","optional":true},{"name":"viewport","description":"The viewport dimensions and scale. If not set, the override is cleared.","$ref":"Viewport","optional":true}],"redirect":"Emulation"},{"name":"setDeviceOrientationOverride","description":"Overrides the Device Orientation.","parameters":[{"name":"alpha","type":"number","description":"Mock alpha"},{"name":"beta","type":"number","description":"Mock beta"},{"name":"gamma","type":"number","description":"Mock gamma"}],"redirect":"DeviceOrientation"},{"name":"setFontFamilies","description":"Set generic font families.","parameters":[{"name":"fontFamilies","description":"Specifies font families to set. If a font family is not specified, it won't be changed.","$ref":"FontFamilies"}]},{"name":"setFontSizes","description":"Set default font sizes.","parameters":[{"name":"fontSizes","description":"Specifies font sizes to set. If a font size is not specified, it won't be changed.","$ref":"FontSizes"}]},{"name":"setDocumentContent","description":"Sets given markup as the document's HTML.","parameters":[{"name":"frameId","description":"Frame id to set HTML for.","$ref":"FrameId"},{"name":"html","type":"string","description":"HTML content to set."}]},{"name":"setDownloadBehavior","description":"Set the behavior when downloading a file.","parameters":[{"name":"behavior","type":"string","description":"Whether to allow all or deny all download requests, or use default Chrome behavior if available (otherwise deny).","enum":["deny","allow","default"]},{"name":"downloadPath","type":"string","description":"The default path to save downloaded files to. This is required if behavior is set to 'allow'","optional":true}]},{"name":"setGeolocationOverride","description":"Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable.","parameters":[{"name":"latitude","type":"number","description":"Mock latitude","optional":true},{"name":"longitude","type":"number","description":"Mock longitude","optional":true},{"name":"accuracy","type":"number","description":"Mock accuracy","optional":true}],"redirect":"Emulation"},{"name":"setLifecycleEventsEnabled","description":"Controls whether page will emit lifecycle events.","parameters":[{"name":"enabled","type":"boolean","description":"If true, starts emitting lifecycle events."}]},{"name":"setTouchEmulationEnabled","description":"Toggles mouse event-based touch event emulation.","parameters":[{"name":"enabled","type":"boolean","description":"Whether the touch event emulation should be enabled."},{"name":"configuration","type":"string","description":"Touch/gesture events configuration. Default: current platform.","optional":true,"enum":["mobile","desktop"]}],"redirect":"Emulation"},{"name":"startScreencast","description":"Starts sending each frame using the `screencastFrame` event.","parameters":[{"name":"format","type":"string","description":"Image compression format.","optional":true,"enum":["jpeg","png"]},{"name":"quality","type":"integer","description":"Compression quality from range [0..100].","optional":true},{"name":"maxWidth","type":"integer","description":"Maximum screenshot width.","optional":true},{"name":"maxHeight","type":"integer","description":"Maximum screenshot height.","optional":true},{"name":"everyNthFrame","type":"integer","description":"Send every n-th frame.","optional":true}]},{"name":"stopLoading","description":"Force the page stop all navigations and pending resource fetches."},{"name":"crash","description":"Crashes renderer on the IO thread, generates minidumps."},{"name":"close","description":"Tries to close page, running its beforeunload hooks, if any."},{"name":"setWebLifecycleState","description":"Tries to update the web lifecycle state of the page. It will transition the page to the given state according to: https://github.com/WICG/web-lifecycle/","parameters":[{"name":"state","type":"string","description":"Target lifecycle state","enum":["frozen","active"]}]},{"name":"stopScreencast","description":"Stops sending each frame in the `screencastFrame`."},{"name":"produceCompilationCache","description":"Requests backend to produce compilation cache for the specified scripts. `scripts` are appeneded to the list of scripts for which the cache would be produced. The list may be reset during page navigation. When script with a matching URL is encountered, the cache is optionally produced upon backend discretion, based on internal heuristics. See also: `Page.compilationCacheProduced`.","parameters":[{"name":"scripts","type":"array","items":{"$ref":"CompilationCacheParams"}}]},{"name":"addCompilationCache","description":"Seeds compilation cache for given url. Compilation cache does not survive cross-process navigation.","parameters":[{"name":"url","type":"string"},{"name":"data","type":"string","description":"Base64-encoded data (Encoded as a base64 string when passed over JSON)"}]},{"name":"clearCompilationCache","description":"Clears seeded compilation cache."},{"name":"setSPCTransactionMode","description":"Sets the Secure Payment Confirmation transaction mode. https://w3c.github.io/secure-payment-confirmation/#sctn-automation-set-spc-transaction-mode","parameters":[{"name":"mode","type":"string","enum":["none","autoaccept","autoreject"]}]},{"name":"generateTestReport","description":"Generates a report for testing.","parameters":[{"name":"message","type":"string","description":"Message to be displayed in the report."},{"name":"group","type":"string","description":"Specifies the endpoint group to deliver the report to.","optional":true}]},{"name":"waitForDebugger","description":"Pauses page execution. Can be resumed using generic Runtime.runIfWaitingForDebugger."},{"name":"setInterceptFileChooserDialog","description":"Intercept file chooser requests and transfer control to protocol clients. When file chooser interception is enabled, native file chooser dialog is not shown. Instead, a protocol event `Page.fileChooserOpened` is emitted.","parameters":[{"name":"enabled","type":"boolean"}]}],"events":[{"name":"domContentEventFired","parameters":[{"name":"timestamp","$ref":"Network.MonotonicTime"}]},{"name":"fileChooserOpened","description":"Emitted only when `page.interceptFileChooser` is enabled.","parameters":[{"name":"frameId","description":"Id of the frame containing input node.","$ref":"FrameId"},{"name":"backendNodeId","description":"Input node id.","$ref":"DOM.BackendNodeId"},{"name":"mode","type":"string","description":"Input mode.","enum":["selectSingle","selectMultiple"]}]},{"name":"frameAttached","description":"Fired when frame has been attached to its parent.","parameters":[{"name":"frameId","description":"Id of the frame that has been attached.","$ref":"FrameId"},{"name":"parentFrameId","description":"Parent frame identifier.","$ref":"FrameId"},{"name":"stack","description":"JavaScript stack trace of when frame was attached, only set if frame initiated from script.","$ref":"Runtime.StackTrace","optional":true}]},{"name":"frameClearedScheduledNavigation","description":"Fired when frame no longer has a scheduled navigation.","parameters":[{"name":"frameId","description":"Id of the frame that has cleared its scheduled navigation.","$ref":"FrameId"}]},{"name":"frameDetached","description":"Fired when frame has been detached from its parent.","parameters":[{"name":"frameId","description":"Id of the frame that has been detached.","$ref":"FrameId"},{"name":"reason","type":"string","enum":["remove","swap"]}]},{"name":"frameNavigated","description":"Fired once navigation of the frame has completed. Frame is now associated with the new loader.","parameters":[{"name":"frame","description":"Frame object.","$ref":"Frame"},{"name":"type","$ref":"NavigationType"}]},{"name":"documentOpened","description":"Fired when opening document to write to.","parameters":[{"name":"frame","description":"Frame object.","$ref":"Frame"}]},{"name":"frameResized"},{"name":"frameRequestedNavigation","description":"Fired when a renderer-initiated navigation is requested. Navigation may still be cancelled after the event is issued.","parameters":[{"name":"frameId","description":"Id of the frame that is being navigated.","$ref":"FrameId"},{"name":"reason","description":"The reason for the navigation.","$ref":"ClientNavigationReason"},{"name":"url","type":"string","description":"The destination URL for the requested navigation."},{"name":"disposition","description":"The disposition for the navigation.","$ref":"ClientNavigationDisposition"}]},{"name":"frameScheduledNavigation","description":"Fired when frame schedules a potential navigation.","parameters":[{"name":"frameId","description":"Id of the frame that has scheduled a navigation.","$ref":"FrameId"},{"name":"delay","type":"number","description":"Delay (in seconds) until the navigation is scheduled to begin. The navigation is not guaranteed to start."},{"name":"reason","description":"The reason for the navigation.","$ref":"ClientNavigationReason"},{"name":"url","type":"string","description":"The destination URL for the scheduled navigation."}]},{"name":"frameStartedLoading","description":"Fired when frame has started loading.","parameters":[{"name":"frameId","description":"Id of the frame that has started loading.","$ref":"FrameId"}]},{"name":"frameStoppedLoading","description":"Fired when frame has stopped loading.","parameters":[{"name":"frameId","description":"Id of the frame that has stopped loading.","$ref":"FrameId"}]},{"name":"downloadWillBegin","description":"Fired when page is about to start a download. Deprecated. Use Browser.downloadWillBegin instead.","parameters":[{"name":"frameId","description":"Id of the frame that caused download to begin.","$ref":"FrameId"},{"name":"guid","type":"string","description":"Global unique identifier of the download."},{"name":"url","type":"string","description":"URL of the resource being downloaded."},{"name":"suggestedFilename","type":"string","description":"Suggested file name of the resource (the actual name of the file saved on disk may differ)."}]},{"name":"downloadProgress","description":"Fired when download makes progress. Last call has |done| == true. Deprecated. Use Browser.downloadProgress instead.","parameters":[{"name":"guid","type":"string","description":"Global unique identifier of the download."},{"name":"totalBytes","type":"number","description":"Total expected bytes to download."},{"name":"receivedBytes","type":"number","description":"Total bytes received."},{"name":"state","type":"string","description":"Download status.","enum":["inProgress","completed","canceled"]}]},{"name":"interstitialHidden","description":"Fired when interstitial page was hidden"},{"name":"interstitialShown","description":"Fired when interstitial page was shown"},{"name":"javascriptDialogClosed","description":"Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been closed.","parameters":[{"name":"result","type":"boolean","description":"Whether dialog was confirmed."},{"name":"userInput","type":"string","description":"User input in case of prompt."}]},{"name":"javascriptDialogOpening","description":"Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.","parameters":[{"name":"url","type":"string","description":"Frame url."},{"name":"message","type":"string","description":"Message that will be displayed by the dialog."},{"name":"type","description":"Dialog type.","$ref":"DialogType"},{"name":"hasBrowserHandler","type":"boolean","description":"True iff browser is capable showing or acting on the given dialog. When browser has no dialog handler for given target, calling alert while Page domain is engaged will stall the page execution. Execution can be resumed via calling Page.handleJavaScriptDialog."},{"name":"defaultPrompt","type":"string","description":"Default dialog prompt.","optional":true}]},{"name":"lifecycleEvent","description":"Fired for top level page lifecycle events such as navigation, load, paint, etc.","parameters":[{"name":"frameId","description":"Id of the frame.","$ref":"FrameId"},{"name":"loaderId","description":"Loader identifier. Empty string if the request is fetched from worker.","$ref":"Network.LoaderId"},{"name":"name","type":"string"},{"name":"timestamp","$ref":"Network.MonotonicTime"}]},{"name":"backForwardCacheNotUsed","description":"Fired for failed bfcache history navigations if BackForwardCache feature is enabled. Do not assume any ordering with the Page.frameNavigated event. This event is fired only for main-frame history navigation where the document changes (non-same-document navigations), when bfcache navigation fails.","parameters":[{"name":"loaderId","description":"The loader id for the associated navgation.","$ref":"Network.LoaderId"},{"name":"frameId","description":"The frame id of the associated frame.","$ref":"FrameId"},{"name":"notRestoredExplanations","type":"array","description":"Array of reasons why the page could not be cached. This must not be empty.","items":{"$ref":"BackForwardCacheNotRestoredExplanation"}}]},{"name":"loadEventFired","parameters":[{"name":"timestamp","$ref":"Network.MonotonicTime"}]},{"name":"navigatedWithinDocument","description":"Fired when same-document navigation happens, e.g. due to history API usage or anchor navigation.","parameters":[{"name":"frameId","description":"Id of the frame.","$ref":"FrameId"},{"name":"url","type":"string","description":"Frame's new url."}]},{"name":"screencastFrame","description":"Compressed image data requested by the `startScreencast`.","parameters":[{"name":"data","type":"string","description":"Base64-encoded compressed image. (Encoded as a base64 string when passed over JSON)"},{"name":"metadata","description":"Screencast frame metadata.","$ref":"ScreencastFrameMetadata"},{"name":"sessionId","type":"integer","description":"Frame number."}]},{"name":"screencastVisibilityChanged","description":"Fired when the page with currently enabled screencast was shown or hidden `.","parameters":[{"name":"visible","type":"boolean","description":"True if the page is visible."}]},{"name":"windowOpen","description":"Fired when a new window is going to be opened, via window.open(), link click, form submission, etc.","parameters":[{"name":"url","type":"string","description":"The URL for the new window."},{"name":"windowName","type":"string","description":"Window name."},{"name":"windowFeatures","type":"array","description":"An array of enabled window features.","items":{"type":"string"}},{"name":"userGesture","type":"boolean","description":"Whether or not it was triggered by user gesture."}]},{"name":"compilationCacheProduced","description":"Issued for every compilation cache generated. Is only available if Page.setGenerateCompilationCache is enabled.","parameters":[{"name":"url","type":"string"},{"name":"data","type":"string","description":"Base64-encoded data (Encoded as a base64 string when passed over JSON)"}]}]},{"domain":"Performance","types":[{"id":"Metric","type":"object","description":"Run-time execution metric.","properties":[{"name":"name","type":"string","description":"Metric name."},{"name":"value","type":"number","description":"Metric value."}]}],"commands":[{"name":"disable","description":"Disable collecting and reporting metrics."},{"name":"enable","description":"Enable collecting and reporting metrics.","parameters":[{"name":"timeDomain","type":"string","description":"Time domain to use for collecting and reporting duration metrics.","optional":true,"enum":["timeTicks","threadTicks"]}]},{"name":"setTimeDomain","description":"Sets time domain to use for collecting and reporting duration metrics. Note that this must be called before enabling metrics collection. Calling this method while metrics collection is enabled returns an error.","parameters":[{"name":"timeDomain","type":"string","description":"Time domain","enum":["timeTicks","threadTicks"]}]},{"name":"getMetrics","description":"Retrieve current values of run-time metrics.","returns":[{"name":"metrics","type":"array","items":{"$ref":"Metric"},"description":"Current values for run-time metrics."}]}],"events":[{"name":"metrics","description":"Current values of the metrics.","parameters":[{"name":"metrics","type":"array","description":"Current values of the metrics.","items":{"$ref":"Metric"}},{"name":"title","type":"string","description":"Timestamp title."}]}]},{"domain":"PerformanceTimeline","description":"Reporting of performance timeline events, as specified in https://w3c.github.io/performance-timeline/#dom-performanceobserver.","types":[{"id":"LargestContentfulPaint","type":"object","description":"See https://github.com/WICG/LargestContentfulPaint and largest_contentful_paint.idl","properties":[{"name":"renderTime","$ref":"Network.TimeSinceEpoch"},{"name":"loadTime","$ref":"Network.TimeSinceEpoch"},{"name":"size","type":"number","description":"The number of pixels being painted."},{"name":"elementId","type":"string","description":"The id attribute of the element, if available.","optional":true},{"name":"url","type":"string","description":"The URL of the image (may be trimmed).","optional":true},{"name":"nodeId","$ref":"DOM.BackendNodeId","optional":true}]},{"id":"LayoutShiftAttribution","type":"object","properties":[{"name":"previousRect","$ref":"DOM.Rect"},{"name":"currentRect","$ref":"DOM.Rect"},{"name":"nodeId","$ref":"DOM.BackendNodeId","optional":true}]},{"id":"LayoutShift","type":"object","description":"See https://wicg.github.io/layout-instability/#sec-layout-shift and layout_shift.idl","properties":[{"name":"value","type":"number","description":"Score increment produced by this event."},{"name":"hadRecentInput","type":"boolean"},{"name":"lastInputTime","$ref":"Network.TimeSinceEpoch"},{"name":"sources","type":"array","items":{"$ref":"LayoutShiftAttribution"}}]},{"id":"TimelineEvent","type":"object","properties":[{"name":"frameId","description":"Identifies the frame that this event is related to. Empty for non-frame targets.","$ref":"Page.FrameId"},{"name":"type","type":"string","description":"The event type, as specified in https://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype This determines which of the optional \"details\" fiedls is present."},{"name":"name","type":"string","description":"Name may be empty depending on the type."},{"name":"time","description":"Time in seconds since Epoch, monotonically increasing within document lifetime.","$ref":"Network.TimeSinceEpoch"},{"name":"duration","type":"number","description":"Event duration, if applicable.","optional":true},{"name":"lcpDetails","$ref":"LargestContentfulPaint","optional":true},{"name":"layoutShiftDetails","$ref":"LayoutShift","optional":true}]}],"commands":[{"name":"enable","description":"Previously buffered events would be reported before method returns. See also: timelineEventAdded","parameters":[{"name":"eventTypes","type":"array","description":"The types of event to report, as specified in https://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype The specified filter overrides any previous filters, passing empty filter disables recording. Note that not all types exposed to the web platform are currently supported.","items":{"type":"string"}}]}],"events":[{"name":"timelineEventAdded","description":"Sent when a performance timeline event is added. See reportPerformanceTimeline method.","parameters":[{"name":"event","$ref":"TimelineEvent"}]}]},{"domain":"Security","description":"Security","types":[{"id":"CertificateId","type":"integer","description":"An internal certificate ID value."},{"id":"MixedContentType","type":"string","description":"A description of mixed content (HTTP resources on HTTPS pages), as defined by https://www.w3.org/TR/mixed-content/#categories","enum":["blockable","optionally-blockable","none"]},{"id":"SecurityState","type":"string","description":"The security level of a page or resource.","enum":["unknown","neutral","insecure","secure","info","insecure-broken"]},{"id":"CertificateSecurityState","type":"object","description":"Details about the security state of the page certificate.","properties":[{"name":"protocol","type":"string","description":"Protocol name (e.g. \"TLS 1.2\" or \"QUIC\")."},{"name":"keyExchange","type":"string","description":"Key Exchange used by the connection, or the empty string if not applicable."},{"name":"keyExchangeGroup","type":"string","description":"(EC)DH group used by the connection, if applicable.","optional":true},{"name":"cipher","type":"string","description":"Cipher name."},{"name":"mac","type":"string","description":"TLS MAC. Note that AEAD ciphers do not have separate MACs.","optional":true},{"name":"certificate","type":"array","description":"Page certificate.","items":{"type":"string"}},{"name":"subjectName","type":"string","description":"Certificate subject name."},{"name":"issuer","type":"string","description":"Name of the issuing CA."},{"name":"validFrom","description":"Certificate valid from date.","$ref":"Network.TimeSinceEpoch"},{"name":"validTo","description":"Certificate valid to (expiration) date","$ref":"Network.TimeSinceEpoch"},{"name":"certificateNetworkError","type":"string","description":"The highest priority network error code, if the certificate has an error.","optional":true},{"name":"certificateHasWeakSignature","type":"boolean","description":"True if the certificate uses a weak signature aglorithm."},{"name":"certificateHasSha1Signature","type":"boolean","description":"True if the certificate has a SHA1 signature in the chain."},{"name":"modernSSL","type":"boolean","description":"True if modern SSL"},{"name":"obsoleteSslProtocol","type":"boolean","description":"True if the connection is using an obsolete SSL protocol."},{"name":"obsoleteSslKeyExchange","type":"boolean","description":"True if the connection is using an obsolete SSL key exchange."},{"name":"obsoleteSslCipher","type":"boolean","description":"True if the connection is using an obsolete SSL cipher."},{"name":"obsoleteSslSignature","type":"boolean","description":"True if the connection is using an obsolete SSL signature."}]},{"id":"SafetyTipStatus","type":"string","enum":["badReputation","lookalike"]},{"id":"SafetyTipInfo","type":"object","properties":[{"name":"safetyTipStatus","description":"Describes whether the page triggers any safety tips or reputation warnings. Default is unknown.","$ref":"SafetyTipStatus"},{"name":"safeUrl","type":"string","description":"The URL the safety tip suggested (\"Did you mean?\"). Only filled in for lookalike matches.","optional":true}]},{"id":"VisibleSecurityState","type":"object","description":"Security state information about the page.","properties":[{"name":"securityState","description":"The security level of the page.","$ref":"SecurityState"},{"name":"certificateSecurityState","description":"Security state details about the page certificate.","$ref":"CertificateSecurityState","optional":true},{"name":"safetyTipInfo","description":"The type of Safety Tip triggered on the page. Note that this field will be set even if the Safety Tip UI was not actually shown.","$ref":"SafetyTipInfo","optional":true},{"name":"securityStateIssueIds","type":"array","description":"Array of security state issues ids.","items":{"type":"string"}}]},{"id":"SecurityStateExplanation","type":"object","description":"An explanation of an factor contributing to the security state.","properties":[{"name":"securityState","description":"Security state representing the severity of the factor being explained.","$ref":"SecurityState"},{"name":"title","type":"string","description":"Title describing the type of factor."},{"name":"summary","type":"string","description":"Short phrase describing the type of factor."},{"name":"description","type":"string","description":"Full text explanation of the factor."},{"name":"mixedContentType","description":"The type of mixed content described by the explanation.","$ref":"MixedContentType"},{"name":"certificate","type":"array","description":"Page certificate.","items":{"type":"string"}},{"name":"recommendations","type":"array","description":"Recommendations to fix any issues.","optional":true,"items":{"type":"string"}}]},{"id":"InsecureContentStatus","type":"object","description":"Information about insecure content on the page.","properties":[{"name":"ranMixedContent","type":"boolean","description":"Always false."},{"name":"displayedMixedContent","type":"boolean","description":"Always false."},{"name":"containedMixedForm","type":"boolean","description":"Always false."},{"name":"ranContentWithCertErrors","type":"boolean","description":"Always false."},{"name":"displayedContentWithCertErrors","type":"boolean","description":"Always false."},{"name":"ranInsecureContentStyle","description":"Always set to unknown.","$ref":"SecurityState"},{"name":"displayedInsecureContentStyle","description":"Always set to unknown.","$ref":"SecurityState"}]},{"id":"CertificateErrorAction","type":"string","description":"The action to take when a certificate error occurs. continue will continue processing the request and cancel will cancel the request.","enum":["continue","cancel"]}],"commands":[{"name":"disable","description":"Disables tracking security state changes."},{"name":"enable","description":"Enables tracking security state changes."},{"name":"setIgnoreCertificateErrors","description":"Enable/disable whether all certificate errors should be ignored.","parameters":[{"name":"ignore","type":"boolean","description":"If true, all certificate errors will be ignored."}]},{"name":"handleCertificateError","description":"Handles a certificate error that fired a certificateError event.","parameters":[{"name":"eventId","type":"integer","description":"The ID of the event."},{"name":"action","description":"The action to take on the certificate error.","$ref":"CertificateErrorAction"}]},{"name":"setOverrideCertificateErrors","description":"Enable/disable overriding certificate errors. If enabled, all certificate error events need to be handled by the DevTools client and should be answered with `handleCertificateError` commands.","parameters":[{"name":"override","type":"boolean","description":"If true, certificate errors will be overridden."}]}],"events":[{"name":"certificateError","description":"There is a certificate error. If overriding certificate errors is enabled, then it should be handled with the `handleCertificateError` command. Note: this event does not fire if the certificate error has been allowed internally. Only one client per target should override certificate errors at the same time.","parameters":[{"name":"eventId","type":"integer","description":"The ID of the event."},{"name":"errorType","type":"string","description":"The type of the error."},{"name":"requestURL","type":"string","description":"The url that was requested."}]},{"name":"visibleSecurityStateChanged","description":"The security state of the page changed.","parameters":[{"name":"visibleSecurityState","description":"Security state information about the page.","$ref":"VisibleSecurityState"}]},{"name":"securityStateChanged","description":"The security state of the page changed. No longer being sent.","parameters":[{"name":"securityState","description":"Security state.","$ref":"SecurityState"},{"name":"schemeIsCryptographic","type":"boolean","description":"True if the page was loaded over cryptographic transport such as HTTPS."},{"name":"explanations","type":"array","description":"Previously a list of explanations for the security state. Now always empty.","items":{"$ref":"SecurityStateExplanation"}},{"name":"insecureContentStatus","description":"Information about insecure content on the page.","$ref":"InsecureContentStatus"},{"name":"summary","type":"string","description":"Overrides user-visible description of the state. Always omitted.","optional":true}]}]},{"domain":"ServiceWorker","types":[{"id":"RegistrationID","type":"string"},{"id":"ServiceWorkerRegistration","type":"object","description":"ServiceWorker registration.","properties":[{"name":"registrationId","$ref":"RegistrationID"},{"name":"scopeURL","type":"string"},{"name":"isDeleted","type":"boolean"}]},{"id":"ServiceWorkerVersionRunningStatus","type":"string","enum":["stopped","starting","running","stopping"]},{"id":"ServiceWorkerVersionStatus","type":"string","enum":["new","installing","installed","activating","activated","redundant"]},{"id":"ServiceWorkerVersion","type":"object","description":"ServiceWorker version.","properties":[{"name":"versionId","type":"string"},{"name":"registrationId","$ref":"RegistrationID"},{"name":"scriptURL","type":"string"},{"name":"runningStatus","$ref":"ServiceWorkerVersionRunningStatus"},{"name":"status","$ref":"ServiceWorkerVersionStatus"},{"name":"scriptLastModified","type":"number","description":"The Last-Modified header value of the main script.","optional":true},{"name":"scriptResponseTime","type":"number","description":"The time at which the response headers of the main script were received from the server. For cached script it is the last time the cache entry was validated.","optional":true},{"name":"controlledClients","type":"array","optional":true,"items":{"$ref":"Target.TargetID"}},{"name":"targetId","$ref":"Target.TargetID","optional":true}]},{"id":"ServiceWorkerErrorMessage","type":"object","description":"ServiceWorker error message.","properties":[{"name":"errorMessage","type":"string"},{"name":"registrationId","$ref":"RegistrationID"},{"name":"versionId","type":"string"},{"name":"sourceURL","type":"string"},{"name":"lineNumber","type":"integer"},{"name":"columnNumber","type":"integer"}]}],"commands":[{"name":"deliverPushMessage","parameters":[{"name":"origin","type":"string"},{"name":"registrationId","$ref":"RegistrationID"},{"name":"data","type":"string"}]},{"name":"disable"},{"name":"dispatchSyncEvent","parameters":[{"name":"origin","type":"string"},{"name":"registrationId","$ref":"RegistrationID"},{"name":"tag","type":"string"},{"name":"lastChance","type":"boolean"}]},{"name":"dispatchPeriodicSyncEvent","parameters":[{"name":"origin","type":"string"},{"name":"registrationId","$ref":"RegistrationID"},{"name":"tag","type":"string"}]},{"name":"enable"},{"name":"inspectWorker","parameters":[{"name":"versionId","type":"string"}]},{"name":"setForceUpdateOnPageLoad","parameters":[{"name":"forceUpdateOnPageLoad","type":"boolean"}]},{"name":"skipWaiting","parameters":[{"name":"scopeURL","type":"string"}]},{"name":"startWorker","parameters":[{"name":"scopeURL","type":"string"}]},{"name":"stopAllWorkers"},{"name":"stopWorker","parameters":[{"name":"versionId","type":"string"}]},{"name":"unregister","parameters":[{"name":"scopeURL","type":"string"}]},{"name":"updateRegistration","parameters":[{"name":"scopeURL","type":"string"}]}],"events":[{"name":"workerErrorReported","parameters":[{"name":"errorMessage","$ref":"ServiceWorkerErrorMessage"}]},{"name":"workerRegistrationUpdated","parameters":[{"name":"registrations","type":"array","items":{"$ref":"ServiceWorkerRegistration"}}]},{"name":"workerVersionUpdated","parameters":[{"name":"versions","type":"array","items":{"$ref":"ServiceWorkerVersion"}}]}]},{"domain":"Storage","types":[{"id":"StorageType","type":"string","description":"Enum of possible storage types.","enum":["appcache","cookies","file_systems","indexeddb","local_storage","shader_cache","websql","service_workers","cache_storage","all","other"]},{"id":"UsageForType","type":"object","description":"Usage for a storage type.","properties":[{"name":"storageType","description":"Name of storage type.","$ref":"StorageType"},{"name":"usage","type":"number","description":"Storage usage (bytes)."}]},{"id":"TrustTokens","type":"object","description":"Pair of issuer origin and number of available (signed, but not used) Trust Tokens from that issuer.","properties":[{"name":"issuerOrigin","type":"string"},{"name":"count","type":"number"}]}],"commands":[{"name":"clearDataForOrigin","description":"Clears storage for origin.","parameters":[{"name":"origin","type":"string","description":"Security origin."},{"name":"storageTypes","type":"string","description":"Comma separated list of StorageType to clear."}]},{"name":"getCookies","description":"Returns all browser cookies.","parameters":[{"name":"browserContextId","description":"Browser context to use when called on the browser endpoint.","$ref":"Browser.BrowserContextID","optional":true}],"returns":[{"name":"cookies","type":"array","items":{"$ref":"Network.Cookie"},"description":"Array of cookie objects."}]},{"name":"setCookies","description":"Sets given cookies.","parameters":[{"name":"cookies","type":"array","description":"Cookies to be set.","items":{"$ref":"Network.CookieParam"}},{"name":"browserContextId","description":"Browser context to use when called on the browser endpoint.","$ref":"Browser.BrowserContextID","optional":true}]},{"name":"clearCookies","description":"Clears cookies.","parameters":[{"name":"browserContextId","description":"Browser context to use when called on the browser endpoint.","$ref":"Browser.BrowserContextID","optional":true}]},{"name":"getUsageAndQuota","description":"Returns usage and quota in bytes.","parameters":[{"name":"origin","type":"string","description":"Security origin."}],"returns":[{"name":"usage","type":"number","description":"Storage usage (bytes)."},{"name":"quota","type":"number","description":"Storage quota (bytes)."},{"name":"overrideActive","type":"boolean","description":"Whether or not the origin has an active storage quota override"},{"name":"usageBreakdown","type":"array","items":{"$ref":"UsageForType"},"description":"Storage usage per type (bytes)."}]},{"name":"overrideQuotaForOrigin","description":"Override quota for the specified origin","parameters":[{"name":"origin","type":"string","description":"Security origin."},{"name":"quotaSize","type":"number","description":"The quota size (in bytes) to override the original quota with. If this is called multiple times, the overridden quota will be equal to the quotaSize provided in the final call. If this is called without specifying a quotaSize, the quota will be reset to the default value for the specified origin. If this is called multiple times with different origins, the override will be maintained for each origin until it is disabled (called without a quotaSize).","optional":true}]},{"name":"trackCacheStorageForOrigin","description":"Registers origin to be notified when an update occurs to its cache storage list.","parameters":[{"name":"origin","type":"string","description":"Security origin."}]},{"name":"trackIndexedDBForOrigin","description":"Registers origin to be notified when an update occurs to its IndexedDB.","parameters":[{"name":"origin","type":"string","description":"Security origin."}]},{"name":"untrackCacheStorageForOrigin","description":"Unregisters origin from receiving notifications for cache storage.","parameters":[{"name":"origin","type":"string","description":"Security origin."}]},{"name":"untrackIndexedDBForOrigin","description":"Unregisters origin from receiving notifications for IndexedDB.","parameters":[{"name":"origin","type":"string","description":"Security origin."}]},{"name":"getTrustTokens","description":"Returns the number of stored Trust Tokens per issuer for the current browsing context.","returns":[{"name":"tokens","type":"array","items":{"$ref":"TrustTokens"}}]},{"name":"clearTrustTokens","description":"Removes all Trust Tokens issued by the provided issuerOrigin. Leaves other stored data, including the issuer's Redemption Records, intact.","parameters":[{"name":"issuerOrigin","type":"string"}],"returns":[{"name":"didDeleteTokens","type":"boolean","description":"True if any tokens were deleted, false otherwise."}]}],"events":[{"name":"cacheStorageContentUpdated","description":"A cache's contents have been modified.","parameters":[{"name":"origin","type":"string","description":"Origin to update."},{"name":"cacheName","type":"string","description":"Name of cache in origin."}]},{"name":"cacheStorageListUpdated","description":"A cache has been added/deleted.","parameters":[{"name":"origin","type":"string","description":"Origin to update."}]},{"name":"indexedDBContentUpdated","description":"The origin's IndexedDB object store has been modified.","parameters":[{"name":"origin","type":"string","description":"Origin to update."},{"name":"databaseName","type":"string","description":"Database to update."},{"name":"objectStoreName","type":"string","description":"ObjectStore to update."}]},{"name":"indexedDBListUpdated","description":"The origin's IndexedDB database list has been modified.","parameters":[{"name":"origin","type":"string","description":"Origin to update."}]}]},{"domain":"SystemInfo","description":"The SystemInfo domain defines methods and events for querying low-level system information.","types":[{"id":"GPUDevice","type":"object","description":"Describes a single graphics processor (GPU).","properties":[{"name":"vendorId","type":"number","description":"PCI ID of the GPU vendor, if available; 0 otherwise."},{"name":"deviceId","type":"number","description":"PCI ID of the GPU device, if available; 0 otherwise."},{"name":"subSysId","type":"number","description":"Sub sys ID of the GPU, only available on Windows.","optional":true},{"name":"revision","type":"number","description":"Revision of the GPU, only available on Windows.","optional":true},{"name":"vendorString","type":"string","description":"String description of the GPU vendor, if the PCI ID is not available."},{"name":"deviceString","type":"string","description":"String description of the GPU device, if the PCI ID is not available."},{"name":"driverVendor","type":"string","description":"String description of the GPU driver vendor."},{"name":"driverVersion","type":"string","description":"String description of the GPU driver version."}]},{"id":"Size","type":"object","description":"Describes the width and height dimensions of an entity.","properties":[{"name":"width","type":"integer","description":"Width in pixels."},{"name":"height","type":"integer","description":"Height in pixels."}]},{"id":"VideoDecodeAcceleratorCapability","type":"object","description":"Describes a supported video decoding profile with its associated minimum and maximum resolutions.","properties":[{"name":"profile","type":"string","description":"Video codec profile that is supported, e.g. VP9 Profile 2."},{"name":"maxResolution","description":"Maximum video dimensions in pixels supported for this |profile|.","$ref":"Size"},{"name":"minResolution","description":"Minimum video dimensions in pixels supported for this |profile|.","$ref":"Size"}]},{"id":"VideoEncodeAcceleratorCapability","type":"object","description":"Describes a supported video encoding profile with its associated maximum resolution and maximum framerate.","properties":[{"name":"profile","type":"string","description":"Video codec profile that is supported, e.g H264 Main."},{"name":"maxResolution","description":"Maximum video dimensions in pixels supported for this |profile|.","$ref":"Size"},{"name":"maxFramerateNumerator","type":"integer","description":"Maximum encoding framerate in frames per second supported for this |profile|, as fraction's numerator and denominator, e.g. 24/1 fps, 24000/1001 fps, etc."},{"name":"maxFramerateDenominator","type":"integer"}]},{"id":"SubsamplingFormat","type":"string","description":"YUV subsampling type of the pixels of a given image.","enum":["yuv420","yuv422","yuv444"]},{"id":"ImageType","type":"string","description":"Image format of a given image.","enum":["jpeg","webp","unknown"]},{"id":"ImageDecodeAcceleratorCapability","type":"object","description":"Describes a supported image decoding profile with its associated minimum and maximum resolutions and subsampling.","properties":[{"name":"imageType","description":"Image coded, e.g. Jpeg.","$ref":"ImageType"},{"name":"maxDimensions","description":"Maximum supported dimensions of the image in pixels.","$ref":"Size"},{"name":"minDimensions","description":"Minimum supported dimensions of the image in pixels.","$ref":"Size"},{"name":"subsamplings","type":"array","description":"Optional array of supported subsampling formats, e.g. 4:2:0, if known.","items":{"$ref":"SubsamplingFormat"}}]},{"id":"GPUInfo","type":"object","description":"Provides information about the GPU(s) on the system.","properties":[{"name":"devices","type":"array","description":"The graphics devices on the system. Element 0 is the primary GPU.","items":{"$ref":"GPUDevice"}},{"name":"auxAttributes","type":"object","description":"An optional dictionary of additional GPU related attributes.","optional":true},{"name":"featureStatus","type":"object","description":"An optional dictionary of graphics features and their status.","optional":true},{"name":"driverBugWorkarounds","type":"array","description":"An optional array of GPU driver bug workarounds.","items":{"type":"string"}},{"name":"videoDecoding","type":"array","description":"Supported accelerated video decoding capabilities.","items":{"$ref":"VideoDecodeAcceleratorCapability"}},{"name":"videoEncoding","type":"array","description":"Supported accelerated video encoding capabilities.","items":{"$ref":"VideoEncodeAcceleratorCapability"}},{"name":"imageDecoding","type":"array","description":"Supported accelerated image decoding capabilities.","items":{"$ref":"ImageDecodeAcceleratorCapability"}}]},{"id":"ProcessInfo","type":"object","description":"Represents process info.","properties":[{"name":"type","type":"string","description":"Specifies process type."},{"name":"id","type":"integer","description":"Specifies process id."},{"name":"cpuTime","type":"number","description":"Specifies cumulative CPU usage in seconds across all threads of the process since the process start."}]}],"commands":[{"name":"getInfo","description":"Returns information about the system.","returns":[{"name":"gpu","$ref":"GPUInfo","description":"Information about the GPUs on the system."},{"name":"modelName","type":"string","description":"A platform-dependent description of the model of the machine. On Mac OS, this is, for example, 'MacBookPro'. Will be the empty string if not supported."},{"name":"modelVersion","type":"string","description":"A platform-dependent description of the version of the machine. On Mac OS, this is, for example, '10.1'. Will be the empty string if not supported."},{"name":"commandLine","type":"string","description":"The command line string used to launch the browser. Will be the empty string if not supported."}]},{"name":"getProcessInfo","description":"Returns information about all running processes.","returns":[{"name":"processInfo","type":"array","items":{"$ref":"ProcessInfo"},"description":"An array of process info blocks."}]}]},{"domain":"Target","description":"Supports additional targets discovery and allows to attach to them.","types":[{"id":"TargetID","type":"string"},{"id":"SessionID","type":"string","description":"Unique identifier of attached debugging session."},{"id":"TargetInfo","type":"object","properties":[{"name":"targetId","$ref":"TargetID"},{"name":"type","type":"string"},{"name":"title","type":"string"},{"name":"url","type":"string"},{"name":"attached","type":"boolean","description":"Whether the target has an attached client."},{"name":"openerId","description":"Opener target Id","$ref":"TargetID","optional":true},{"name":"canAccessOpener","type":"boolean","description":"Whether the target has access to the originating window."},{"name":"openerFrameId","description":"Frame id of originating window (is only set if target has an opener).","$ref":"Page.FrameId","optional":true},{"name":"browserContextId","$ref":"Browser.BrowserContextID","optional":true}]},{"id":"RemoteLocation","type":"object","properties":[{"name":"host","type":"string"},{"name":"port","type":"integer"}]}],"commands":[{"name":"activateTarget","description":"Activates (focuses) the target.","parameters":[{"name":"targetId","$ref":"TargetID"}]},{"name":"attachToTarget","description":"Attaches to the target with given id.","parameters":[{"name":"targetId","$ref":"TargetID"},{"name":"flatten","type":"boolean","description":"Enables \"flat\" access to the session via specifying sessionId attribute in the commands. We plan to make this the default, deprecate non-flattened mode, and eventually retire it. See crbug.com/991325.","optional":true}],"returns":[{"name":"sessionId","$ref":"SessionID","description":"Id assigned to the session."}]},{"name":"attachToBrowserTarget","description":"Attaches to the browser target, only uses flat sessionId mode.","returns":[{"name":"sessionId","$ref":"SessionID","description":"Id assigned to the session."}]},{"name":"closeTarget","description":"Closes the target. If the target is a page that gets closed too.","parameters":[{"name":"targetId","$ref":"TargetID"}],"returns":[{"name":"success","type":"boolean","description":"Always set to true. If an error occurs, the response indicates protocol error."}]},{"name":"exposeDevToolsProtocol","description":"Inject object to the target's main frame that provides a communication channel with browser target. Injected object will be available as `window[bindingName]`. The object has the follwing API: - `binding.send(json)` - a method to send messages over the remote debugging protocol - `binding.onmessage = json =\u003e handleMessage(json)` - a callback that will be called for the protocol notifications and command responses.","parameters":[{"name":"targetId","$ref":"TargetID"},{"name":"bindingName","type":"string","description":"Binding name, 'cdp' if not specified.","optional":true}]},{"name":"createBrowserContext","description":"Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than one.","parameters":[{"name":"disposeOnDetach","type":"boolean","description":"If specified, disposes this context when debugging session disconnects.","optional":true},{"name":"proxyServer","type":"string","description":"Proxy server, similar to the one passed to --proxy-server","optional":true},{"name":"proxyBypassList","type":"string","description":"Proxy bypass list, similar to the one passed to --proxy-bypass-list","optional":true},{"name":"originsWithUniversalNetworkAccess","type":"array","description":"An optional list of origins to grant unlimited cross-origin access to. Parts of the URL other than those constituting origin are ignored.","optional":true,"items":{"type":"string"}}],"returns":[{"name":"browserContextId","$ref":"Browser.BrowserContextID","description":"The id of the context created."}]},{"name":"getBrowserContexts","description":"Returns all browser contexts created with `Target.createBrowserContext` method.","returns":[{"name":"browserContextIds","type":"array","items":{"$ref":"Browser.BrowserContextID"},"description":"An array of browser context ids."}]},{"name":"createTarget","description":"Creates a new page.","parameters":[{"name":"url","type":"string","description":"The initial URL the page will be navigated to. An empty string indicates about:blank."},{"name":"width","type":"integer","description":"Frame width in DIP (headless chrome only).","optional":true},{"name":"height","type":"integer","description":"Frame height in DIP (headless chrome only).","optional":true},{"name":"browserContextId","description":"The browser context to create the page in.","$ref":"Browser.BrowserContextID","optional":true},{"name":"enableBeginFrameControl","type":"boolean","description":"Whether BeginFrames for this target will be controlled via DevTools (headless chrome only, not supported on MacOS yet, false by default).","optional":true},{"name":"newWindow","type":"boolean","description":"Whether to create a new Window or Tab (chrome-only, false by default).","optional":true},{"name":"background","type":"boolean","description":"Whether to create the target in background or foreground (chrome-only, false by default).","optional":true}],"returns":[{"name":"targetId","$ref":"TargetID","description":"The id of the page opened."}]},{"name":"detachFromTarget","description":"Detaches session with given id.","parameters":[{"name":"sessionId","description":"Session to detach.","$ref":"SessionID","optional":true},{"name":"targetId","description":"Deprecated.","$ref":"TargetID","optional":true}]},{"name":"disposeBrowserContext","description":"Deletes a BrowserContext. All the belonging pages will be closed without calling their beforeunload hooks.","parameters":[{"name":"browserContextId","$ref":"Browser.BrowserContextID"}]},{"name":"getTargetInfo","description":"Returns information about a target.","parameters":[{"name":"targetId","$ref":"TargetID","optional":true}],"returns":[{"name":"targetInfo","$ref":"TargetInfo"}]},{"name":"getTargets","description":"Retrieves a list of available targets.","returns":[{"name":"targetInfos","type":"array","items":{"$ref":"TargetInfo"},"description":"The list of targets."}]},{"name":"sendMessageToTarget","description":"Sends protocol message over session with given id. Consider using flat mode instead; see commands attachToTarget, setAutoAttach, and crbug.com/991325.","parameters":[{"name":"message","type":"string"},{"name":"sessionId","description":"Identifier of the session.","$ref":"SessionID","optional":true},{"name":"targetId","description":"Deprecated.","$ref":"TargetID","optional":true}]},{"name":"setAutoAttach","description":"Controls whether to automatically attach to new targets which are considered to be related to this one. When turned on, attaches to all existing related targets as well. When turned off, automatically detaches from all currently attached targets. This also clears all targets added by `autoAttachRelated` from the list of targets to watch for creation of related targets.","parameters":[{"name":"autoAttach","type":"boolean","description":"Whether to auto-attach to related targets."},{"name":"waitForDebuggerOnStart","type":"boolean","description":"Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger` to run paused targets."},{"name":"flatten","type":"boolean","description":"Enables \"flat\" access to the session via specifying sessionId attribute in the commands. We plan to make this the default, deprecate non-flattened mode, and eventually retire it. See crbug.com/991325.","optional":true}]},{"name":"autoAttachRelated","description":"Adds the specified target to the list of targets that will be monitored for any related target creation (such as child frames, child workers and new versions of service worker) and reported through `attachedToTarget`. The specified target is also auto-attached. This cancels the effect of any previous `setAutoAttach` and is also cancelled by subsequent `setAutoAttach`. Only available at the Browser target.","parameters":[{"name":"targetId","$ref":"TargetID"},{"name":"waitForDebuggerOnStart","type":"boolean","description":"Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger` to run paused targets."}]},{"name":"setDiscoverTargets","description":"Controls whether to discover available targets and notify via `targetCreated/targetInfoChanged/targetDestroyed` events.","parameters":[{"name":"discover","type":"boolean","description":"Whether to discover available targets."}]},{"name":"setRemoteLocations","description":"Enables target discovery for the specified locations, when `setDiscoverTargets` was set to `true`.","parameters":[{"name":"locations","type":"array","description":"List of remote locations.","items":{"$ref":"RemoteLocation"}}]}],"events":[{"name":"attachedToTarget","description":"Issued when attached to target because of auto-attach or `attachToTarget` command.","parameters":[{"name":"sessionId","description":"Identifier assigned to the session used to send/receive messages.","$ref":"SessionID"},{"name":"targetInfo","$ref":"TargetInfo"},{"name":"waitingForDebugger","type":"boolean"}]},{"name":"detachedFromTarget","description":"Issued when detached from target for any reason (including `detachFromTarget` command). Can be issued multiple times per target if multiple sessions have been attached to it.","parameters":[{"name":"sessionId","description":"Detached session identifier.","$ref":"SessionID"},{"name":"targetId","description":"Deprecated.","$ref":"TargetID","optional":true}]},{"name":"receivedMessageFromTarget","description":"Notifies about a new protocol message received from the session (as reported in `attachedToTarget` event).","parameters":[{"name":"sessionId","description":"Identifier of a session which sends a message.","$ref":"SessionID"},{"name":"message","type":"string"},{"name":"targetId","description":"Deprecated.","$ref":"TargetID","optional":true}]},{"name":"targetCreated","description":"Issued when a possible inspection target is created.","parameters":[{"name":"targetInfo","$ref":"TargetInfo"}]},{"name":"targetDestroyed","description":"Issued when a target is destroyed.","parameters":[{"name":"targetId","$ref":"TargetID"}]},{"name":"targetCrashed","description":"Issued when a target has crashed.","parameters":[{"name":"targetId","$ref":"TargetID"},{"name":"status","type":"string","description":"Termination status type."},{"name":"errorCode","type":"integer","description":"Termination error code."}]},{"name":"targetInfoChanged","description":"Issued when some information about a target has changed. This only happens between `targetCreated` and `targetDestroyed`.","parameters":[{"name":"targetInfo","$ref":"TargetInfo"}]}]},{"domain":"Tethering","description":"The Tethering domain defines methods and events for browser port binding.","commands":[{"name":"bind","description":"Request browser port binding.","parameters":[{"name":"port","type":"integer","description":"Port number to bind."}]},{"name":"unbind","description":"Request browser port unbinding.","parameters":[{"name":"port","type":"integer","description":"Port number to unbind."}]}],"events":[{"name":"accepted","description":"Informs that port was successfully bound and got a specified connection id.","parameters":[{"name":"port","type":"integer","description":"Port number that was successfully bound."},{"name":"connectionId","type":"string","description":"Connection id to be used."}]}]},{"domain":"Tracing","types":[{"id":"MemoryDumpConfig","type":"object","description":"Configuration for memory dump. Used only when \"memory-infra\" category is enabled."},{"id":"TraceConfig","type":"object","properties":[{"name":"recordMode","type":"string","description":"Controls how the trace buffer stores data.","optional":true,"enum":["recordUntilFull","recordContinuously","recordAsMuchAsPossible","echoToConsole"]},{"name":"enableSampling","type":"boolean","description":"Turns on JavaScript stack sampling.","optional":true},{"name":"enableSystrace","type":"boolean","description":"Turns on system tracing.","optional":true},{"name":"enableArgumentFilter","type":"boolean","description":"Turns on argument filter.","optional":true},{"name":"includedCategories","type":"array","description":"Included category filters.","optional":true,"items":{"type":"string"}},{"name":"excludedCategories","type":"array","description":"Excluded category filters.","optional":true,"items":{"type":"string"}},{"name":"syntheticDelays","type":"array","description":"Configuration to synthesize the delays in tracing.","optional":true,"items":{"type":"string"}},{"name":"memoryDumpConfig","description":"Configuration for memory dump triggers. Used only when \"memory-infra\" category is enabled.","$ref":"MemoryDumpConfig","optional":true}]},{"id":"StreamFormat","type":"string","description":"Data format of a trace. Can be either the legacy JSON format or the protocol buffer format. Note that the JSON format will be deprecated soon.","enum":["json","proto"]},{"id":"StreamCompression","type":"string","description":"Compression type to use for traces returned via streams.","enum":["none","gzip"]},{"id":"MemoryDumpLevelOfDetail","type":"string","description":"Details exposed when memory request explicitly declared. Keep consistent with memory_dump_request_args.h and memory_instrumentation.mojom","enum":["background","light","detailed"]},{"id":"TracingBackend","type":"string","description":"Backend type to use for tracing. `chrome` uses the Chrome-integrated tracing service and is supported on all platforms. `system` is only supported on Chrome OS and uses the Perfetto system tracing service. `auto` chooses `system` when the perfettoConfig provided to Tracing.start specifies at least one non-Chrome data source; otherwise uses `chrome`.","enum":["auto","chrome","system"]}],"commands":[{"name":"end","description":"Stop trace events collection."},{"name":"getCategories","description":"Gets supported tracing categories.","returns":[{"name":"categories","type":"array","items":{"type":"string"},"description":"A list of supported tracing categories."}]},{"name":"recordClockSyncMarker","description":"Record a clock sync marker in the trace.","parameters":[{"name":"syncId","type":"string","description":"The ID of this clock sync marker"}]},{"name":"requestMemoryDump","description":"Request a global memory dump.","parameters":[{"name":"deterministic","type":"boolean","description":"Enables more deterministic results by forcing garbage collection","optional":true},{"name":"levelOfDetail","description":"Specifies level of details in memory dump. Defaults to \"detailed\".","$ref":"MemoryDumpLevelOfDetail","optional":true}],"returns":[{"name":"dumpGuid","type":"string","description":"GUID of the resulting global memory dump."},{"name":"success","type":"boolean","description":"True iff the global memory dump succeeded."}]},{"name":"start","description":"Start trace events collection.","parameters":[{"name":"categories","type":"string","description":"Category/tag filter","optional":true},{"name":"options","type":"string","description":"Tracing options","optional":true},{"name":"bufferUsageReportingInterval","type":"number","description":"If set, the agent will issue bufferUsage events at this interval, specified in milliseconds","optional":true},{"name":"transferMode","type":"string","description":"Whether to report trace events as series of dataCollected events or to save trace to a stream (defaults to `ReportEvents`).","optional":true,"enum":["ReportEvents","ReturnAsStream"]},{"name":"streamFormat","description":"Trace data format to use. This only applies when using `ReturnAsStream` transfer mode (defaults to `json`).","$ref":"StreamFormat","optional":true},{"name":"streamCompression","description":"Compression format to use. This only applies when using `ReturnAsStream` transfer mode (defaults to `none`)","$ref":"StreamCompression","optional":true},{"name":"traceConfig","$ref":"TraceConfig","optional":true},{"name":"perfettoConfig","type":"string","description":"Base64-encoded serialized perfetto.protos.TraceConfig protobuf message When specified, the parameters `categories`, `options`, `traceConfig` are ignored. (Encoded as a base64 string when passed over JSON)","optional":true},{"name":"tracingBackend","description":"Backend type (defaults to `auto`)","$ref":"TracingBackend","optional":true}]}],"events":[{"name":"bufferUsage","parameters":[{"name":"percentFull","type":"number","description":"A number in range [0..1] that indicates the used size of event buffer as a fraction of its total size.","optional":true},{"name":"eventCount","type":"number","description":"An approximate number of events in the trace log.","optional":true},{"name":"value","type":"number","description":"A number in range [0..1] that indicates the used size of event buffer as a fraction of its total size.","optional":true}]},{"name":"dataCollected","description":"Contains an bucket of collected trace events. When tracing is stopped collected events will be send as a sequence of dataCollected events followed by tracingComplete event.","parameters":[{"name":"value","type":"array","items":{"type":"object"}}]},{"name":"tracingComplete","description":"Signals that tracing is stopped and there is no trace buffers pending flush, all data were delivered via dataCollected events.","parameters":[{"name":"dataLossOccurred","type":"boolean","description":"Indicates whether some trace data is known to have been lost, e.g. because the trace ring buffer wrapped around."},{"name":"stream","description":"A handle of the stream that holds resulting trace data.","$ref":"IO.StreamHandle","optional":true},{"name":"traceFormat","description":"Trace data format of returned stream.","$ref":"StreamFormat","optional":true},{"name":"streamCompression","description":"Compression format of returned stream.","$ref":"StreamCompression","optional":true}]}]},{"domain":"Fetch","description":"A domain for letting clients substitute browser's network layer with client code.","types":[{"id":"RequestId","type":"string","description":"Unique request identifier."},{"id":"RequestStage","type":"string","description":"Stages of the request to handle. Request will intercept before the request is sent. Response will intercept after the response is received (but before response body is received).","enum":["Request","Response"]},{"id":"RequestPattern","type":"object","properties":[{"name":"urlPattern","type":"string","description":"Wildcards (`'*'` -\u003e zero or more, `'?'` -\u003e exactly one) are allowed. Escape character is backslash. Omitting is equivalent to `\"*\"`.","optional":true},{"name":"resourceType","description":"If set, only requests for matching resource types will be intercepted.","$ref":"Network.ResourceType","optional":true},{"name":"requestStage","description":"Stage at which to begin intercepting requests. Default is Request.","$ref":"RequestStage","optional":true}]},{"id":"HeaderEntry","type":"object","description":"Response HTTP header entry","properties":[{"name":"name","type":"string"},{"name":"value","type":"string"}]},{"id":"AuthChallenge","type":"object","description":"Authorization challenge for HTTP status code 401 or 407.","properties":[{"name":"source","type":"string","description":"Source of the authentication challenge.","optional":true,"enum":["Server","Proxy"]},{"name":"origin","type":"string","description":"Origin of the challenger."},{"name":"scheme","type":"string","description":"The authentication scheme used, such as basic or digest"},{"name":"realm","type":"string","description":"The realm of the challenge. May be empty."}]},{"id":"AuthChallengeResponse","type":"object","description":"Response to an AuthChallenge.","properties":[{"name":"response","type":"string","description":"The decision on what to do in response to the authorization challenge. Default means deferring to the default behavior of the net stack, which will likely either the Cancel authentication or display a popup dialog box.","enum":["Default","CancelAuth","ProvideCredentials"]},{"name":"username","type":"string","description":"The username to provide, possibly empty. Should only be set if response is ProvideCredentials.","optional":true},{"name":"password","type":"string","description":"The password to provide, possibly empty. Should only be set if response is ProvideCredentials.","optional":true}]}],"commands":[{"name":"disable","description":"Disables the fetch domain."},{"name":"enable","description":"Enables issuing of requestPaused events. A request will be paused until client calls one of failRequest, fulfillRequest or continueRequest/continueWithAuth.","parameters":[{"name":"patterns","type":"array","description":"If specified, only requests matching any of these patterns will produce fetchRequested event and will be paused until clients response. If not set, all requests will be affected.","optional":true,"items":{"$ref":"RequestPattern"}},{"name":"handleAuthRequests","type":"boolean","description":"If true, authRequired events will be issued and requests will be paused expecting a call to continueWithAuth.","optional":true}]},{"name":"failRequest","description":"Causes the request to fail with specified reason.","parameters":[{"name":"requestId","description":"An id the client received in requestPaused event.","$ref":"RequestId"},{"name":"errorReason","description":"Causes the request to fail with the given reason.","$ref":"Network.ErrorReason"}]},{"name":"fulfillRequest","description":"Provides response to the request.","parameters":[{"name":"requestId","description":"An id the client received in requestPaused event.","$ref":"RequestId"},{"name":"responseCode","type":"integer","description":"An HTTP response code."},{"name":"responseHeaders","type":"array","description":"Response headers.","optional":true,"items":{"$ref":"HeaderEntry"}},{"name":"binaryResponseHeaders","type":"string","description":"Alternative way of specifying response headers as a \\0-separated series of name: value pairs. Prefer the above method unless you need to represent some non-UTF8 values that can't be transmitted over the protocol as text. (Encoded as a base64 string when passed over JSON)","optional":true},{"name":"body","type":"string","description":"A response body. If absent, original response body will be used if the request is intercepted at the response stage and empty body will be used if the request is intercepted at the request stage. (Encoded as a base64 string when passed over JSON)","optional":true},{"name":"responsePhrase","type":"string","description":"A textual representation of responseCode. If absent, a standard phrase matching responseCode is used.","optional":true}]},{"name":"continueRequest","description":"Continues the request, optionally modifying some of its parameters.","parameters":[{"name":"requestId","description":"An id the client received in requestPaused event.","$ref":"RequestId"},{"name":"url","type":"string","description":"If set, the request url will be modified in a way that's not observable by page.","optional":true},{"name":"method","type":"string","description":"If set, the request method is overridden.","optional":true},{"name":"postData","type":"string","description":"If set, overrides the post data in the request. (Encoded as a base64 string when passed over JSON)","optional":true},{"name":"headers","type":"array","description":"If set, overrides the request headers.","optional":true,"items":{"$ref":"HeaderEntry"}},{"name":"interceptResponse","type":"boolean","description":"If set, overrides response interception behavior for this request.","optional":true}]},{"name":"continueWithAuth","description":"Continues a request supplying authChallengeResponse following authRequired event.","parameters":[{"name":"requestId","description":"An id the client received in authRequired event.","$ref":"RequestId"},{"name":"authChallengeResponse","description":"Response to with an authChallenge.","$ref":"AuthChallengeResponse"}]},{"name":"continueResponse","description":"Continues loading of the paused response, optionally modifying the response headers. If either responseCode or headers are modified, all of them must be present.","parameters":[{"name":"requestId","description":"An id the client received in requestPaused event.","$ref":"RequestId"},{"name":"responseCode","type":"integer","description":"An HTTP response code. If absent, original response code will be used.","optional":true},{"name":"responsePhrase","type":"string","description":"A textual representation of responseCode. If absent, a standard phrase matching responseCode is used.","optional":true},{"name":"responseHeaders","type":"array","description":"Response headers. If absent, original response headers will be used.","optional":true,"items":{"$ref":"HeaderEntry"}},{"name":"binaryResponseHeaders","type":"string","description":"Alternative way of specifying response headers as a \\0-separated series of name: value pairs. Prefer the above method unless you need to represent some non-UTF8 values that can't be transmitted over the protocol as text. (Encoded as a base64 string when passed over JSON)","optional":true}]},{"name":"getResponseBody","description":"Causes the body of the response to be received from the server and returned as a single string. May only be issued for a request that is paused in the Response stage and is mutually exclusive with takeResponseBodyForInterceptionAsStream. Calling other methods that affect the request or disabling fetch domain before body is received results in an undefined behavior.","parameters":[{"name":"requestId","description":"Identifier for the intercepted request to get body for.","$ref":"RequestId"}],"returns":[{"name":"body","type":"string","description":"Response body."},{"name":"base64Encoded","type":"boolean","description":"True, if content was sent as base64."}]},{"name":"takeResponseBodyAsStream","description":"Returns a handle to the stream representing the response body. The request must be paused in the HeadersReceived stage. Note that after this command the request can't be continued as is -- client either needs to cancel it or to provide the response body. The stream only supports sequential read, IO.read will fail if the position is specified. This method is mutually exclusive with getResponseBody. Calling other methods that affect the request or disabling fetch domain before body is received results in an undefined behavior.","parameters":[{"name":"requestId","$ref":"RequestId"}],"returns":[{"name":"stream","$ref":"IO.StreamHandle"}]}],"events":[{"name":"requestPaused","description":"Issued when the domain is enabled and the request URL matches the specified filter. The request is paused until the client responds with one of continueRequest, failRequest or fulfillRequest. The stage of the request can be determined by presence of responseErrorReason and responseStatusCode -- the request is at the response stage if either of these fields is present and in the request stage otherwise.","parameters":[{"name":"requestId","description":"Each request the page makes will have a unique id.","$ref":"RequestId"},{"name":"request","description":"The details of the request.","$ref":"Network.Request"},{"name":"frameId","description":"The id of the frame that initiated the request.","$ref":"Page.FrameId"},{"name":"resourceType","description":"How the requested resource will be used.","$ref":"Network.ResourceType"},{"name":"responseErrorReason","description":"Response error if intercepted at response stage.","$ref":"Network.ErrorReason","optional":true},{"name":"responseStatusCode","type":"integer","description":"Response code if intercepted at response stage.","optional":true},{"name":"responseStatusText","type":"string","description":"Response status text if intercepted at response stage.","optional":true},{"name":"responseHeaders","type":"array","description":"Response headers if intercepted at the response stage.","optional":true,"items":{"$ref":"HeaderEntry"}},{"name":"networkId","description":"If the intercepted request had a corresponding Network.requestWillBeSent event fired for it, then this networkId will be the same as the requestId present in the requestWillBeSent event.","$ref":"RequestId","optional":true}]},{"name":"authRequired","description":"Issued when the domain is enabled with handleAuthRequests set to true. The request is paused until client responds with continueWithAuth.","parameters":[{"name":"requestId","description":"Each request the page makes will have a unique id.","$ref":"RequestId"},{"name":"request","description":"The details of the request.","$ref":"Network.Request"},{"name":"frameId","description":"The id of the frame that initiated the request.","$ref":"Page.FrameId"},{"name":"resourceType","description":"How the requested resource will be used.","$ref":"Network.ResourceType"},{"name":"authChallenge","description":"Details of the Authorization Challenge encountered. If this is set, client should respond with continueRequest that contains AuthChallengeResponse.","$ref":"AuthChallenge"}]}]},{"domain":"WebAudio","description":"This domain allows inspection of Web Audio API. https://webaudio.github.io/web-audio-api/","types":[{"id":"GraphObjectId","type":"string","description":"An unique ID for a graph object (AudioContext, AudioNode, AudioParam) in Web Audio API"},{"id":"ContextType","type":"string","description":"Enum of BaseAudioContext types","enum":["realtime","offline"]},{"id":"ContextState","type":"string","description":"Enum of AudioContextState from the spec","enum":["suspended","running","closed"]},{"id":"NodeType","type":"string","description":"Enum of AudioNode types"},{"id":"ChannelCountMode","type":"string","description":"Enum of AudioNode::ChannelCountMode from the spec","enum":["clamped-max","explicit","max"]},{"id":"ChannelInterpretation","type":"string","description":"Enum of AudioNode::ChannelInterpretation from the spec","enum":["discrete","speakers"]},{"id":"ParamType","type":"string","description":"Enum of AudioParam types"},{"id":"AutomationRate","type":"string","description":"Enum of AudioParam::AutomationRate from the spec","enum":["a-rate","k-rate"]},{"id":"ContextRealtimeData","type":"object","description":"Fields in AudioContext that change in real-time.","properties":[{"name":"currentTime","type":"number","description":"The current context time in second in BaseAudioContext."},{"name":"renderCapacity","type":"number","description":"The time spent on rendering graph divided by render quantum duration, and multiplied by 100. 100 means the audio renderer reached the full capacity and glitch may occur."},{"name":"callbackIntervalMean","type":"number","description":"A running mean of callback interval."},{"name":"callbackIntervalVariance","type":"number","description":"A running variance of callback interval."}]},{"id":"BaseAudioContext","type":"object","description":"Protocol object for BaseAudioContext","properties":[{"name":"contextId","$ref":"GraphObjectId"},{"name":"contextType","$ref":"ContextType"},{"name":"contextState","$ref":"ContextState"},{"name":"realtimeData","$ref":"ContextRealtimeData","optional":true},{"name":"callbackBufferSize","type":"number","description":"Platform-dependent callback buffer size."},{"name":"maxOutputChannelCount","type":"number","description":"Number of output channels supported by audio hardware in use."},{"name":"sampleRate","type":"number","description":"Context sample rate."}]},{"id":"AudioListener","type":"object","description":"Protocol object for AudioListener","properties":[{"name":"listenerId","$ref":"GraphObjectId"},{"name":"contextId","$ref":"GraphObjectId"}]},{"id":"AudioNode","type":"object","description":"Protocol object for AudioNode","properties":[{"name":"nodeId","$ref":"GraphObjectId"},{"name":"contextId","$ref":"GraphObjectId"},{"name":"nodeType","$ref":"NodeType"},{"name":"numberOfInputs","type":"number"},{"name":"numberOfOutputs","type":"number"},{"name":"channelCount","type":"number"},{"name":"channelCountMode","$ref":"ChannelCountMode"},{"name":"channelInterpretation","$ref":"ChannelInterpretation"}]},{"id":"AudioParam","type":"object","description":"Protocol object for AudioParam","properties":[{"name":"paramId","$ref":"GraphObjectId"},{"name":"nodeId","$ref":"GraphObjectId"},{"name":"contextId","$ref":"GraphObjectId"},{"name":"paramType","$ref":"ParamType"},{"name":"rate","$ref":"AutomationRate"},{"name":"defaultValue","type":"number"},{"name":"minValue","type":"number"},{"name":"maxValue","type":"number"}]}],"commands":[{"name":"enable","description":"Enables the WebAudio domain and starts sending context lifetime events."},{"name":"disable","description":"Disables the WebAudio domain."},{"name":"getRealtimeData","description":"Fetch the realtime data from the registered contexts.","parameters":[{"name":"contextId","$ref":"GraphObjectId"}],"returns":[{"name":"realtimeData","$ref":"ContextRealtimeData"}]}],"events":[{"name":"contextCreated","description":"Notifies that a new BaseAudioContext has been created.","parameters":[{"name":"context","$ref":"BaseAudioContext"}]},{"name":"contextWillBeDestroyed","description":"Notifies that an existing BaseAudioContext will be destroyed.","parameters":[{"name":"contextId","$ref":"GraphObjectId"}]},{"name":"contextChanged","description":"Notifies that existing BaseAudioContext has changed some properties (id stays the same)..","parameters":[{"name":"context","$ref":"BaseAudioContext"}]},{"name":"audioListenerCreated","description":"Notifies that the construction of an AudioListener has finished.","parameters":[{"name":"listener","$ref":"AudioListener"}]},{"name":"audioListenerWillBeDestroyed","description":"Notifies that a new AudioListener has been created.","parameters":[{"name":"contextId","$ref":"GraphObjectId"},{"name":"listenerId","$ref":"GraphObjectId"}]},{"name":"audioNodeCreated","description":"Notifies that a new AudioNode has been created.","parameters":[{"name":"node","$ref":"AudioNode"}]},{"name":"audioNodeWillBeDestroyed","description":"Notifies that an existing AudioNode has been destroyed.","parameters":[{"name":"contextId","$ref":"GraphObjectId"},{"name":"nodeId","$ref":"GraphObjectId"}]},{"name":"audioParamCreated","description":"Notifies that a new AudioParam has been created.","parameters":[{"name":"param","$ref":"AudioParam"}]},{"name":"audioParamWillBeDestroyed","description":"Notifies that an existing AudioParam has been destroyed.","parameters":[{"name":"contextId","$ref":"GraphObjectId"},{"name":"nodeId","$ref":"GraphObjectId"},{"name":"paramId","$ref":"GraphObjectId"}]},{"name":"nodesConnected","description":"Notifies that two AudioNodes are connected.","parameters":[{"name":"contextId","$ref":"GraphObjectId"},{"name":"sourceId","$ref":"GraphObjectId"},{"name":"destinationId","$ref":"GraphObjectId"},{"name":"sourceOutputIndex","type":"number","optional":true},{"name":"destinationInputIndex","type":"number","optional":true}]},{"name":"nodesDisconnected","description":"Notifies that AudioNodes are disconnected. The destination can be null, and it means all the outgoing connections from the source are disconnected.","parameters":[{"name":"contextId","$ref":"GraphObjectId"},{"name":"sourceId","$ref":"GraphObjectId"},{"name":"destinationId","$ref":"GraphObjectId"},{"name":"sourceOutputIndex","type":"number","optional":true},{"name":"destinationInputIndex","type":"number","optional":true}]},{"name":"nodeParamConnected","description":"Notifies that an AudioNode is connected to an AudioParam.","parameters":[{"name":"contextId","$ref":"GraphObjectId"},{"name":"sourceId","$ref":"GraphObjectId"},{"name":"destinationId","$ref":"GraphObjectId"},{"name":"sourceOutputIndex","type":"number","optional":true}]},{"name":"nodeParamDisconnected","description":"Notifies that an AudioNode is disconnected to an AudioParam.","parameters":[{"name":"contextId","$ref":"GraphObjectId"},{"name":"sourceId","$ref":"GraphObjectId"},{"name":"destinationId","$ref":"GraphObjectId"},{"name":"sourceOutputIndex","type":"number","optional":true}]}]},{"domain":"WebAuthn","description":"This domain allows configuring virtual authenticators to test the WebAuthn API.","types":[{"id":"AuthenticatorId","type":"string"},{"id":"AuthenticatorProtocol","type":"string","enum":["u2f","ctap2"]},{"id":"Ctap2Version","type":"string","enum":["ctap2_0","ctap2_1"]},{"id":"AuthenticatorTransport","type":"string","enum":["usb","nfc","ble","cable","internal"]},{"id":"VirtualAuthenticatorOptions","type":"object","properties":[{"name":"protocol","$ref":"AuthenticatorProtocol"},{"name":"ctap2Version","description":"Defaults to ctap2_0. Ignored if |protocol| == u2f.","$ref":"Ctap2Version","optional":true},{"name":"transport","$ref":"AuthenticatorTransport"},{"name":"hasResidentKey","type":"boolean","description":"Defaults to false.","optional":true},{"name":"hasUserVerification","type":"boolean","description":"Defaults to false.","optional":true},{"name":"hasLargeBlob","type":"boolean","description":"If set to true, the authenticator will support the largeBlob extension. https://w3c.github.io/webauthn#largeBlob Defaults to false.","optional":true},{"name":"hasCredBlob","type":"boolean","description":"If set to true, the authenticator will support the credBlob extension. https://fidoalliance.org/specs/fido-v2.1-rd-20201208/fido-client-to-authenticator-protocol-v2.1-rd-20201208.html#sctn-credBlob-extension Defaults to false.","optional":true},{"name":"automaticPresenceSimulation","type":"boolean","description":"If set to true, tests of user presence will succeed immediately. Otherwise, they will not be resolved. Defaults to true.","optional":true},{"name":"isUserVerified","type":"boolean","description":"Sets whether User Verification succeeds or fails for an authenticator. Defaults to false.","optional":true}]},{"id":"Credential","type":"object","properties":[{"name":"credentialId","type":"string"},{"name":"isResidentCredential","type":"boolean"},{"name":"rpId","type":"string","description":"Relying Party ID the credential is scoped to. Must be set when adding a credential.","optional":true},{"name":"privateKey","type":"string","description":"The ECDSA P-256 private key in PKCS#8 format. (Encoded as a base64 string when passed over JSON)"},{"name":"userHandle","type":"string","description":"An opaque byte sequence with a maximum size of 64 bytes mapping the credential to a specific user. (Encoded as a base64 string when passed over JSON)","optional":true},{"name":"signCount","type":"integer","description":"Signature counter. This is incremented by one for each successful assertion. See https://w3c.github.io/webauthn/#signature-counter"},{"name":"largeBlob","type":"string","description":"The large blob associated with the credential. See https://w3c.github.io/webauthn/#sctn-large-blob-extension (Encoded as a base64 string when passed over JSON)","optional":true}]}],"commands":[{"name":"enable","description":"Enable the WebAuthn domain and start intercepting credential storage and retrieval with a virtual authenticator."},{"name":"disable","description":"Disable the WebAuthn domain."},{"name":"addVirtualAuthenticator","description":"Creates and adds a virtual authenticator.","parameters":[{"name":"options","$ref":"VirtualAuthenticatorOptions"}],"returns":[{"name":"authenticatorId","$ref":"AuthenticatorId"}]},{"name":"removeVirtualAuthenticator","description":"Removes the given authenticator.","parameters":[{"name":"authenticatorId","$ref":"AuthenticatorId"}]},{"name":"addCredential","description":"Adds the credential to the specified authenticator.","parameters":[{"name":"authenticatorId","$ref":"AuthenticatorId"},{"name":"credential","$ref":"Credential"}]},{"name":"getCredential","description":"Returns a single credential stored in the given virtual authenticator that matches the credential ID.","parameters":[{"name":"authenticatorId","$ref":"AuthenticatorId"},{"name":"credentialId","type":"string"}],"returns":[{"name":"credential","$ref":"Credential"}]},{"name":"getCredentials","description":"Returns all the credentials stored in the given virtual authenticator.","parameters":[{"name":"authenticatorId","$ref":"AuthenticatorId"}],"returns":[{"name":"credentials","type":"array","items":{"$ref":"Credential"}}]},{"name":"removeCredential","description":"Removes a credential from the authenticator.","parameters":[{"name":"authenticatorId","$ref":"AuthenticatorId"},{"name":"credentialId","type":"string"}]},{"name":"clearCredentials","description":"Clears all the credentials from the specified device.","parameters":[{"name":"authenticatorId","$ref":"AuthenticatorId"}]},{"name":"setUserVerified","description":"Sets whether User Verification succeeds or fails for an authenticator. The default is true.","parameters":[{"name":"authenticatorId","$ref":"AuthenticatorId"},{"name":"isUserVerified","type":"boolean"}]},{"name":"setAutomaticPresenceSimulation","description":"Sets whether tests of user presence will succeed immediately (if true) or fail to resolve (if false) for an authenticator. The default is true.","parameters":[{"name":"authenticatorId","$ref":"AuthenticatorId"},{"name":"enabled","type":"boolean"}]}]},{"domain":"Media","description":"This domain allows detailed inspection of media elements","types":[{"id":"PlayerId","type":"string","description":"Players will get an ID that is unique within the agent context."},{"id":"Timestamp","type":"number"},{"id":"PlayerMessage","type":"object","description":"Have one type per entry in MediaLogRecord::Type Corresponds to kMessage","properties":[{"name":"level","type":"string","description":"Keep in sync with MediaLogMessageLevel We are currently keeping the message level 'error' separate from the PlayerError type because right now they represent different things, this one being a DVLOG(ERROR) style log message that gets printed based on what log level is selected in the UI, and the other is a representation of a media::PipelineStatus object. Soon however we're going to be moving away from using PipelineStatus for errors and introducing a new error type which should hopefully let us integrate the error log level into the PlayerError type.","enum":["error","warning","info","debug"]},{"name":"message","type":"string"}]},{"id":"PlayerProperty","type":"object","description":"Corresponds to kMediaPropertyChange","properties":[{"name":"name","type":"string"},{"name":"value","type":"string"}]},{"id":"PlayerEvent","type":"object","description":"Corresponds to kMediaEventTriggered","properties":[{"name":"timestamp","$ref":"Timestamp"},{"name":"value","type":"string"}]},{"id":"PlayerError","type":"object","description":"Corresponds to kMediaError","properties":[{"name":"type","type":"string","enum":["pipeline_error","media_error"]},{"name":"errorCode","type":"string","description":"When this switches to using media::Status instead of PipelineStatus we can remove \"errorCode\" and replace it with the fields from a Status instance. This also seems like a duplicate of the error level enum - there is a todo bug to have that level removed and use this instead. (crbug.com/1068454)"}]}],"commands":[{"name":"enable","description":"Enables the Media domain"},{"name":"disable","description":"Disables the Media domain."}],"events":[{"name":"playerPropertiesChanged","description":"This can be called multiple times, and can be used to set / override / remove player properties. A null propValue indicates removal.","parameters":[{"name":"playerId","$ref":"PlayerId"},{"name":"properties","type":"array","items":{"$ref":"PlayerProperty"}}]},{"name":"playerEventsAdded","description":"Send events as a list, allowing them to be batched on the browser for less congestion. If batched, events must ALWAYS be in chronological order.","parameters":[{"name":"playerId","$ref":"PlayerId"},{"name":"events","type":"array","items":{"$ref":"PlayerEvent"}}]},{"name":"playerMessagesLogged","description":"Send a list of any messages that need to be delivered.","parameters":[{"name":"playerId","$ref":"PlayerId"},{"name":"messages","type":"array","items":{"$ref":"PlayerMessage"}}]},{"name":"playerErrorsRaised","description":"Send a list of any errors that need to be delivered.","parameters":[{"name":"playerId","$ref":"PlayerId"},{"name":"errors","type":"array","items":{"$ref":"PlayerError"}}]},{"name":"playersCreated","description":"Called whenever a player is created, or when a new agent joins and receives a list of active players. If an agent is restored, it will receive the full list of player ids and all events again.","parameters":[{"name":"players","type":"array","items":{"$ref":"PlayerId"}}]}]},{"domain":"Console","description":"This domain is deprecated - use Runtime or Log instead.","types":[{"id":"ConsoleMessage","type":"object","description":"Console message.","properties":[{"name":"source","type":"string","description":"Message source.","enum":["xml","javascript","network","console-api","storage","appcache","rendering","security","other","deprecation","worker"]},{"name":"level","type":"string","description":"Message severity.","enum":["log","warning","error","debug","info"]},{"name":"text","type":"string","description":"Message text."},{"name":"url","type":"string","description":"URL of the message origin.","optional":true},{"name":"line","type":"integer","description":"Line number in the resource that generated this message (1-based).","optional":true},{"name":"column","type":"integer","description":"Column number in the resource that generated this message (1-based).","optional":true}]}],"commands":[{"name":"clearMessages","description":"Does nothing."},{"name":"disable","description":"Disables console domain, prevents further console messages from being reported to the client."},{"name":"enable","description":"Enables console domain, sends the messages collected so far to the client by means of the `messageAdded` notification."}],"events":[{"name":"messageAdded","description":"Issued when new console message is added.","parameters":[{"name":"message","description":"Console message that has been added.","$ref":"ConsoleMessage"}]}]},{"domain":"Debugger","description":"Debugger domain exposes JavaScript debugging capabilities. It allows setting and removing breakpoints, stepping through execution, exploring stack traces, etc.","types":[{"id":"BreakpointId","type":"string","description":"Breakpoint identifier."},{"id":"CallFrameId","type":"string","description":"Call frame identifier."},{"id":"Location","type":"object","description":"Location in the source code.","properties":[{"name":"scriptId","description":"Script identifier as reported in the `Debugger.scriptParsed`.","$ref":"Runtime.ScriptId"},{"name":"lineNumber","type":"integer","description":"Line number in the script (0-based)."},{"name":"columnNumber","type":"integer","description":"Column number in the script (0-based).","optional":true}]},{"id":"ScriptPosition","type":"object","description":"Location in the source code.","properties":[{"name":"lineNumber","type":"integer"},{"name":"columnNumber","type":"integer"}]},{"id":"LocationRange","type":"object","description":"Location range within one script.","properties":[{"name":"scriptId","$ref":"Runtime.ScriptId"},{"name":"start","$ref":"ScriptPosition"},{"name":"end","$ref":"ScriptPosition"}]},{"id":"CallFrame","type":"object","description":"JavaScript call frame. Array of call frames form the call stack.","properties":[{"name":"callFrameId","description":"Call frame identifier. This identifier is only valid while the virtual machine is paused.","$ref":"CallFrameId"},{"name":"functionName","type":"string","description":"Name of the JavaScript function called on this call frame."},{"name":"functionLocation","description":"Location in the source code.","$ref":"Location","optional":true},{"name":"location","description":"Location in the source code.","$ref":"Location"},{"name":"url","type":"string","description":"JavaScript script name or url."},{"name":"scopeChain","type":"array","description":"Scope chain for this call frame.","items":{"$ref":"Scope"}},{"name":"this","description":"`this` object for this call frame.","$ref":"Runtime.RemoteObject"},{"name":"returnValue","description":"The value being returned, if the function is at return point.","$ref":"Runtime.RemoteObject","optional":true}]},{"id":"Scope","type":"object","description":"Scope description.","properties":[{"name":"type","type":"string","description":"Scope type.","enum":["global","local","with","closure","catch","block","script","eval","module","wasm-expression-stack"]},{"name":"object","description":"Object representing the scope. For `global` and `with` scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties.","$ref":"Runtime.RemoteObject"},{"name":"name","type":"string","optional":true},{"name":"startLocation","description":"Location in the source code where scope starts","$ref":"Location","optional":true},{"name":"endLocation","description":"Location in the source code where scope ends","$ref":"Location","optional":true}]},{"id":"SearchMatch","type":"object","description":"Search match for resource.","properties":[{"name":"lineNumber","type":"number","description":"Line number in resource content."},{"name":"lineContent","type":"string","description":"Line with match content."}]},{"id":"BreakLocation","type":"object","properties":[{"name":"scriptId","description":"Script identifier as reported in the `Debugger.scriptParsed`.","$ref":"Runtime.ScriptId"},{"name":"lineNumber","type":"integer","description":"Line number in the script (0-based)."},{"name":"columnNumber","type":"integer","description":"Column number in the script (0-based).","optional":true},{"name":"type","type":"string","optional":true,"enum":["debuggerStatement","call","return"]}]},{"id":"ScriptLanguage","type":"string","description":"Enum of possible script languages.","enum":["JavaScript","WebAssembly"]},{"id":"DebugSymbols","type":"object","description":"Debug symbols available for a wasm script.","properties":[{"name":"type","type":"string","description":"Type of the debug symbols.","enum":["None","SourceMap","EmbeddedDWARF","ExternalDWARF"]},{"name":"externalURL","type":"string","description":"URL of the external symbol source.","optional":true}]}],"commands":[{"name":"continueToLocation","description":"Continues execution until specific location is reached.","parameters":[{"name":"location","description":"Location to continue to.","$ref":"Location"},{"name":"targetCallFrames","type":"string","optional":true,"enum":["any","current"]}]},{"name":"disable","description":"Disables debugger for given page."},{"name":"enable","description":"Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received.","parameters":[{"name":"maxScriptsCacheSize","type":"number","description":"The maximum size in bytes of collected scripts (not referenced by other heap objects) the debugger can hold. Puts no limit if parameter is omitted.","optional":true}],"returns":[{"name":"debuggerId","$ref":"Runtime.UniqueDebuggerId","description":"Unique identifier of the debugger."}]},{"name":"evaluateOnCallFrame","description":"Evaluates expression on a given call frame.","parameters":[{"name":"callFrameId","description":"Call frame identifier to evaluate on.","$ref":"CallFrameId"},{"name":"expression","type":"string","description":"Expression to evaluate."},{"name":"objectGroup","type":"string","description":"String object group name to put result into (allows rapid releasing resulting object handles using `releaseObjectGroup`).","optional":true},{"name":"includeCommandLineAPI","type":"boolean","description":"Specifies whether command line API should be available to the evaluated expression, defaults to false.","optional":true},{"name":"silent","type":"boolean","description":"In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides `setPauseOnException` state.","optional":true},{"name":"returnByValue","type":"boolean","description":"Whether the result is expected to be a JSON object that should be sent by value.","optional":true},{"name":"generatePreview","type":"boolean","description":"Whether preview should be generated for the result.","optional":true},{"name":"throwOnSideEffect","type":"boolean","description":"Whether to throw an exception if side effect cannot be ruled out during evaluation.","optional":true},{"name":"timeout","description":"Terminate execution after timing out (number of milliseconds).","$ref":"Runtime.TimeDelta","optional":true}],"returns":[{"name":"result","$ref":"Runtime.RemoteObject","description":"Object wrapper for the evaluation result."},{"name":"exceptionDetails","$ref":"Runtime.ExceptionDetails","description":"Exception details."}]},{"name":"getPossibleBreakpoints","description":"Returns possible locations for breakpoint. scriptId in start and end range locations should be the same.","parameters":[{"name":"start","description":"Start of range to search possible breakpoint locations in.","$ref":"Location"},{"name":"end","description":"End of range to search possible breakpoint locations in (excluding). When not specified, end of scripts is used as end of range.","$ref":"Location","optional":true},{"name":"restrictToFunction","type":"boolean","description":"Only consider locations which are in the same (non-nested) function as start.","optional":true}],"returns":[{"name":"locations","type":"array","items":{"$ref":"BreakLocation"},"description":"List of the possible breakpoint locations."}]},{"name":"getScriptSource","description":"Returns source for the script with given id.","parameters":[{"name":"scriptId","description":"Id of the script to get source for.","$ref":"Runtime.ScriptId"}],"returns":[{"name":"scriptSource","type":"string","description":"Script source (empty in case of Wasm bytecode)."},{"name":"bytecode","type":"string","description":"Wasm bytecode. (Encoded as a base64 string when passed over JSON)"}]},{"name":"getWasmBytecode","description":"This command is deprecated. Use getScriptSource instead.","parameters":[{"name":"scriptId","description":"Id of the Wasm script to get source for.","$ref":"Runtime.ScriptId"}],"returns":[{"name":"bytecode","type":"string","description":"Script source. (Encoded as a base64 string when passed over JSON)"}]},{"name":"getStackTrace","description":"Returns stack trace with given `stackTraceId`.","parameters":[{"name":"stackTraceId","$ref":"Runtime.StackTraceId"}],"returns":[{"name":"stackTrace","$ref":"Runtime.StackTrace"}]},{"name":"pause","description":"Stops on the next JavaScript statement."},{"name":"pauseOnAsyncCall","parameters":[{"name":"parentStackTraceId","description":"Debugger will pause when async call with given stack trace is started.","$ref":"Runtime.StackTraceId"}]},{"name":"removeBreakpoint","description":"Removes JavaScript breakpoint.","parameters":[{"name":"breakpointId","$ref":"BreakpointId"}]},{"name":"restartFrame","description":"Restarts particular call frame from the beginning.","parameters":[{"name":"callFrameId","description":"Call frame identifier to evaluate on.","$ref":"CallFrameId"}],"returns":[{"name":"callFrames","type":"array","items":{"$ref":"CallFrame"},"description":"New stack trace."},{"name":"asyncStackTrace","$ref":"Runtime.StackTrace","description":"Async stack trace, if any."},{"name":"asyncStackTraceId","$ref":"Runtime.StackTraceId","description":"Async stack trace, if any."}]},{"name":"resume","description":"Resumes JavaScript execution.","parameters":[{"name":"terminateOnResume","type":"boolean","description":"Set to true to terminate execution upon resuming execution. In contrast to Runtime.terminateExecution, this will allows to execute further JavaScript (i.e. via evaluation) until execution of the paused code is actually resumed, at which point termination is triggered. If execution is currently not paused, this parameter has no effect.","optional":true}]},{"name":"searchInContent","description":"Searches for given string in script content.","parameters":[{"name":"scriptId","description":"Id of the script to search in.","$ref":"Runtime.ScriptId"},{"name":"query","type":"string","description":"String to search for."},{"name":"caseSensitive","type":"boolean","description":"If true, search is case sensitive.","optional":true},{"name":"isRegex","type":"boolean","description":"If true, treats string parameter as regex.","optional":true}],"returns":[{"name":"result","type":"array","items":{"$ref":"SearchMatch"},"description":"List of search matches."}]},{"name":"setAsyncCallStackDepth","description":"Enables or disables async call stacks tracking.","parameters":[{"name":"maxDepth","type":"integer","description":"Maximum depth of async call stacks. Setting to `0` will effectively disable collecting async call stacks (default)."}]},{"name":"setBlackboxPatterns","description":"Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in scripts with url matching one of the patterns. VM will try to leave blackboxed script by performing 'step in' several times, finally resorting to 'step out' if unsuccessful.","parameters":[{"name":"patterns","type":"array","description":"Array of regexps that will be used to check script url for blackbox state.","items":{"type":"string"}}]},{"name":"setBlackboxedRanges","description":"Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. Positions array contains positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted.","parameters":[{"name":"scriptId","description":"Id of the script.","$ref":"Runtime.ScriptId"},{"name":"positions","type":"array","items":{"$ref":"ScriptPosition"}}]},{"name":"setBreakpoint","description":"Sets JavaScript breakpoint at a given location.","parameters":[{"name":"location","description":"Location to set breakpoint in.","$ref":"Location"},{"name":"condition","type":"string","description":"Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.","optional":true}],"returns":[{"name":"breakpointId","$ref":"BreakpointId","description":"Id of the created breakpoint for further reference."},{"name":"actualLocation","$ref":"Location","description":"Location this breakpoint resolved into."}]},{"name":"setInstrumentationBreakpoint","description":"Sets instrumentation breakpoint.","parameters":[{"name":"instrumentation","type":"string","description":"Instrumentation name.","enum":["beforeScriptExecution","beforeScriptWithSourceMapExecution"]}],"returns":[{"name":"breakpointId","$ref":"BreakpointId","description":"Id of the created breakpoint for further reference."}]},{"name":"setBreakpointByUrl","description":"Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in `locations` property. Further matching script parsing will result in subsequent `breakpointResolved` events issued. This logical breakpoint will survive page reloads.","parameters":[{"name":"lineNumber","type":"integer","description":"Line number to set breakpoint at."},{"name":"url","type":"string","description":"URL of the resources to set breakpoint on.","optional":true},{"name":"urlRegex","type":"string","description":"Regex pattern for the URLs of the resources to set breakpoints on. Either `url` or `urlRegex` must be specified.","optional":true},{"name":"scriptHash","type":"string","description":"Script hash of the resources to set breakpoint on.","optional":true},{"name":"columnNumber","type":"integer","description":"Offset in the line to set breakpoint at.","optional":true},{"name":"condition","type":"string","description":"Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.","optional":true}],"returns":[{"name":"breakpointId","$ref":"BreakpointId","description":"Id of the created breakpoint for further reference."},{"name":"locations","type":"array","items":{"$ref":"Location"},"description":"List of the locations this breakpoint resolved into upon addition."}]},{"name":"setBreakpointOnFunctionCall","description":"Sets JavaScript breakpoint before each call to the given function. If another function was created from the same source as a given one, calling it will also trigger the breakpoint.","parameters":[{"name":"objectId","description":"Function object id.","$ref":"Runtime.RemoteObjectId"},{"name":"condition","type":"string","description":"Expression to use as a breakpoint condition. When specified, debugger will stop on the breakpoint if this expression evaluates to true.","optional":true}],"returns":[{"name":"breakpointId","$ref":"BreakpointId","description":"Id of the created breakpoint for further reference."}]},{"name":"setBreakpointsActive","description":"Activates / deactivates all breakpoints on the page.","parameters":[{"name":"active","type":"boolean","description":"New value for breakpoints active state."}]},{"name":"setPauseOnExceptions","description":"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`.","parameters":[{"name":"state","type":"string","description":"Pause on exceptions mode.","enum":["none","uncaught","all"]}]},{"name":"setReturnValue","description":"Changes return value in top frame. Available only at return break position.","parameters":[{"name":"newValue","description":"New return value.","$ref":"Runtime.CallArgument"}]},{"name":"setScriptSource","description":"Edits JavaScript source live.","parameters":[{"name":"scriptId","description":"Id of the script to edit.","$ref":"Runtime.ScriptId"},{"name":"scriptSource","type":"string","description":"New content of the script."},{"name":"dryRun","type":"boolean","description":"If true the change will not actually be applied. Dry run may be used to get result description without actually modifying the code.","optional":true}],"returns":[{"name":"callFrames","type":"array","items":{"$ref":"CallFrame"},"description":"New stack trace in case editing has happened while VM was stopped."},{"name":"stackChanged","type":"boolean","description":"Whether current call stack was modified after applying the changes."},{"name":"asyncStackTrace","$ref":"Runtime.StackTrace","description":"Async stack trace, if any."},{"name":"asyncStackTraceId","$ref":"Runtime.StackTraceId","description":"Async stack trace, if any."},{"name":"exceptionDetails","$ref":"Runtime.ExceptionDetails","description":"Exception details if any."}]},{"name":"setSkipAllPauses","description":"Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).","parameters":[{"name":"skip","type":"boolean","description":"New value for skip pauses state."}]},{"name":"setVariableValue","description":"Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.","parameters":[{"name":"scopeNumber","type":"integer","description":"0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch' scope types are allowed. Other scopes could be manipulated manually."},{"name":"variableName","type":"string","description":"Variable name."},{"name":"newValue","description":"New variable value.","$ref":"Runtime.CallArgument"},{"name":"callFrameId","description":"Id of callframe that holds variable.","$ref":"CallFrameId"}]},{"name":"stepInto","description":"Steps into the function call.","parameters":[{"name":"breakOnAsyncCall","type":"boolean","description":"Debugger will pause on the execution of the first async task which was scheduled before next pause.","optional":true},{"name":"skipList","type":"array","description":"The skipList specifies location ranges that should be skipped on step into.","optional":true,"items":{"$ref":"LocationRange"}}]},{"name":"stepOut","description":"Steps out of the function call."},{"name":"stepOver","description":"Steps over the statement.","parameters":[{"name":"skipList","type":"array","description":"The skipList specifies location ranges that should be skipped on step over.","optional":true,"items":{"$ref":"LocationRange"}}]}],"events":[{"name":"breakpointResolved","description":"Fired when breakpoint is resolved to an actual script and location.","parameters":[{"name":"breakpointId","description":"Breakpoint unique identifier.","$ref":"BreakpointId"},{"name":"location","description":"Actual breakpoint location.","$ref":"Location"}]},{"name":"paused","description":"Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.","parameters":[{"name":"callFrames","type":"array","description":"Call stack the virtual machine stopped on.","items":{"$ref":"CallFrame"}},{"name":"reason","type":"string","description":"Pause reason.","enum":["ambiguous","assert","CSPViolation","debugCommand","DOM","EventListener","exception","instrumentation","OOM","other","promiseRejection","XHR"]},{"name":"data","type":"object","description":"Object containing break-specific auxiliary properties.","optional":true},{"name":"hitBreakpoints","type":"array","description":"Hit breakpoints IDs","optional":true,"items":{"type":"string"}},{"name":"asyncStackTrace","description":"Async stack trace, if any.","$ref":"Runtime.StackTrace","optional":true},{"name":"asyncStackTraceId","description":"Async stack trace, if any.","$ref":"Runtime.StackTraceId","optional":true},{"name":"asyncCallStackTraceId","description":"Never present, will be removed.","$ref":"Runtime.StackTraceId","optional":true}]},{"name":"resumed","description":"Fired when the virtual machine resumed execution."},{"name":"scriptFailedToParse","description":"Fired when virtual machine fails to parse the script.","parameters":[{"name":"scriptId","description":"Identifier of the script parsed.","$ref":"Runtime.ScriptId"},{"name":"url","type":"string","description":"URL or name of the script parsed (if any)."},{"name":"startLine","type":"integer","description":"Line offset of the script within the resource with given URL (for script tags)."},{"name":"startColumn","type":"integer","description":"Column offset of the script within the resource with given URL."},{"name":"endLine","type":"integer","description":"Last line of the script."},{"name":"endColumn","type":"integer","description":"Length of the last line of the script."},{"name":"executionContextId","description":"Specifies script creation context.","$ref":"Runtime.ExecutionContextId"},{"name":"hash","type":"string","description":"Content hash of the script."},{"name":"executionContextAuxData","type":"object","description":"Embedder-specific auxiliary data.","optional":true},{"name":"sourceMapURL","type":"string","description":"URL of source map associated with script (if any).","optional":true},{"name":"hasSourceURL","type":"boolean","description":"True, if this script has sourceURL.","optional":true},{"name":"isModule","type":"boolean","description":"True, if this script is ES6 module.","optional":true},{"name":"length","type":"integer","description":"This script length.","optional":true},{"name":"stackTrace","description":"JavaScript top stack frame of where the script parsed event was triggered if available.","$ref":"Runtime.StackTrace","optional":true},{"name":"codeOffset","type":"integer","description":"If the scriptLanguage is WebAssembly, the code section offset in the module.","optional":true},{"name":"scriptLanguage","description":"The language of the script.","$ref":"Debugger.ScriptLanguage","optional":true},{"name":"embedderName","type":"string","description":"The name the embedder supplied for this script.","optional":true}]},{"name":"scriptParsed","description":"Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.","parameters":[{"name":"scriptId","description":"Identifier of the script parsed.","$ref":"Runtime.ScriptId"},{"name":"url","type":"string","description":"URL or name of the script parsed (if any)."},{"name":"startLine","type":"integer","description":"Line offset of the script within the resource with given URL (for script tags)."},{"name":"startColumn","type":"integer","description":"Column offset of the script within the resource with given URL."},{"name":"endLine","type":"integer","description":"Last line of the script."},{"name":"endColumn","type":"integer","description":"Length of the last line of the script."},{"name":"executionContextId","description":"Specifies script creation context.","$ref":"Runtime.ExecutionContextId"},{"name":"hash","type":"string","description":"Content hash of the script."},{"name":"executionContextAuxData","type":"object","description":"Embedder-specific auxiliary data.","optional":true},{"name":"isLiveEdit","type":"boolean","description":"True, if this script is generated as a result of the live edit operation.","optional":true},{"name":"sourceMapURL","type":"string","description":"URL of source map associated with script (if any).","optional":true},{"name":"hasSourceURL","type":"boolean","description":"True, if this script has sourceURL.","optional":true},{"name":"isModule","type":"boolean","description":"True, if this script is ES6 module.","optional":true},{"name":"length","type":"integer","description":"This script length.","optional":true},{"name":"stackTrace","description":"JavaScript top stack frame of where the script parsed event was triggered if available.","$ref":"Runtime.StackTrace","optional":true},{"name":"codeOffset","type":"integer","description":"If the scriptLanguage is WebAssembly, the code section offset in the module.","optional":true},{"name":"scriptLanguage","description":"The language of the script.","$ref":"Debugger.ScriptLanguage","optional":true},{"name":"debugSymbols","description":"If the scriptLanguage is WebASsembly, the source of debug symbols for the module.","$ref":"Debugger.DebugSymbols","optional":true},{"name":"embedderName","type":"string","description":"The name the embedder supplied for this script.","optional":true}]}]},{"domain":"HeapProfiler","types":[{"id":"HeapSnapshotObjectId","type":"string","description":"Heap snapshot object id."},{"id":"SamplingHeapProfileNode","type":"object","description":"Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes.","properties":[{"name":"callFrame","description":"Function location.","$ref":"Runtime.CallFrame"},{"name":"selfSize","type":"number","description":"Allocations size in bytes for the node excluding children."},{"name":"id","type":"integer","description":"Node id. Ids are unique across all profiles collected between startSampling and stopSampling."},{"name":"children","type":"array","description":"Child nodes.","items":{"$ref":"SamplingHeapProfileNode"}}]},{"id":"SamplingHeapProfileSample","type":"object","description":"A single sample from a sampling profile.","properties":[{"name":"size","type":"number","description":"Allocation size in bytes attributed to the sample."},{"name":"nodeId","type":"integer","description":"Id of the corresponding profile tree node."},{"name":"ordinal","type":"number","description":"Time-ordered sample ordinal number. It is unique across all profiles retrieved between startSampling and stopSampling."}]},{"id":"SamplingHeapProfile","type":"object","description":"Sampling profile.","properties":[{"name":"head","$ref":"SamplingHeapProfileNode"},{"name":"samples","type":"array","items":{"$ref":"SamplingHeapProfileSample"}}]}],"commands":[{"name":"addInspectedHeapObject","description":"Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).","parameters":[{"name":"heapObjectId","description":"Heap snapshot object id to be accessible by means of $x command line API.","$ref":"HeapSnapshotObjectId"}]},{"name":"collectGarbage"},{"name":"disable"},{"name":"enable"},{"name":"getHeapObjectId","parameters":[{"name":"objectId","description":"Identifier of the object to get heap object id for.","$ref":"Runtime.RemoteObjectId"}],"returns":[{"name":"heapSnapshotObjectId","$ref":"HeapSnapshotObjectId","description":"Id of the heap snapshot object corresponding to the passed remote object id."}]},{"name":"getObjectByHeapObjectId","parameters":[{"name":"objectId","$ref":"HeapSnapshotObjectId"},{"name":"objectGroup","type":"string","description":"Symbolic group name that can be used to release multiple objects.","optional":true}],"returns":[{"name":"result","$ref":"Runtime.RemoteObject","description":"Evaluation result."}]},{"name":"getSamplingProfile","returns":[{"name":"profile","$ref":"SamplingHeapProfile","description":"Return the sampling profile being collected."}]},{"name":"startSampling","parameters":[{"name":"samplingInterval","type":"number","description":"Average sample interval in bytes. Poisson distribution is used for the intervals. The default value is 32768 bytes.","optional":true}]},{"name":"startTrackingHeapObjects","parameters":[{"name":"trackAllocations","type":"boolean","optional":true}]},{"name":"stopSampling","returns":[{"name":"profile","$ref":"SamplingHeapProfile","description":"Recorded sampling heap profile."}]},{"name":"stopTrackingHeapObjects","parameters":[{"name":"reportProgress","type":"boolean","description":"If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken when the tracking is stopped.","optional":true},{"name":"treatGlobalObjectsAsRoots","type":"boolean","optional":true},{"name":"captureNumericValue","type":"boolean","description":"If true, numerical values are included in the snapshot","optional":true}]},{"name":"takeHeapSnapshot","parameters":[{"name":"reportProgress","type":"boolean","description":"If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken.","optional":true},{"name":"treatGlobalObjectsAsRoots","type":"boolean","description":"If true, a raw snapshot without artificial roots will be generated","optional":true},{"name":"captureNumericValue","type":"boolean","description":"If true, numerical values are included in the snapshot","optional":true}]}],"events":[{"name":"addHeapSnapshotChunk","parameters":[{"name":"chunk","type":"string"}]},{"name":"heapStatsUpdate","description":"If heap objects tracking has been started then backend may send update for one or more fragments","parameters":[{"name":"statsUpdate","type":"array","description":"An array of triplets. Each triplet describes a fragment. The first integer is the fragment index, the second integer is a total count of objects for the fragment, the third integer is a total size of the objects for the fragment.","items":{"type":"integer"}}]},{"name":"lastSeenObjectId","description":"If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.","parameters":[{"name":"lastSeenObjectId","type":"integer"},{"name":"timestamp","type":"number"}]},{"name":"reportHeapSnapshotProgress","parameters":[{"name":"done","type":"integer"},{"name":"total","type":"integer"},{"name":"finished","type":"boolean","optional":true}]},{"name":"resetProfiles"}]},{"domain":"Profiler","types":[{"id":"ProfileNode","type":"object","description":"Profile node. Holds callsite information, execution statistics and child nodes.","properties":[{"name":"id","type":"integer","description":"Unique id of the node."},{"name":"callFrame","description":"Function location.","$ref":"Runtime.CallFrame"},{"name":"hitCount","type":"integer","description":"Number of samples where this node was on top of the call stack.","optional":true},{"name":"children","type":"array","description":"Child node ids.","optional":true,"items":{"type":"integer"}},{"name":"deoptReason","type":"string","description":"The reason of being not optimized. The function may be deoptimized or marked as don't optimize.","optional":true},{"name":"positionTicks","type":"array","description":"An array of source position ticks.","optional":true,"items":{"$ref":"PositionTickInfo"}}]},{"id":"Profile","type":"object","description":"Profile.","properties":[{"name":"nodes","type":"array","description":"The list of profile nodes. First item is the root node.","items":{"$ref":"ProfileNode"}},{"name":"startTime","type":"number","description":"Profiling start timestamp in microseconds."},{"name":"endTime","type":"number","description":"Profiling end timestamp in microseconds."},{"name":"samples","type":"array","description":"Ids of samples top nodes.","optional":true,"items":{"type":"integer"}},{"name":"timeDeltas","type":"array","description":"Time intervals between adjacent samples in microseconds. The first delta is relative to the profile startTime.","optional":true,"items":{"type":"integer"}}]},{"id":"PositionTickInfo","type":"object","description":"Specifies a number of samples attributed to a certain source position.","properties":[{"name":"line","type":"integer","description":"Source line number (1-based)."},{"name":"ticks","type":"integer","description":"Number of samples attributed to the source line."}]},{"id":"CoverageRange","type":"object","description":"Coverage data for a source range.","properties":[{"name":"startOffset","type":"integer","description":"JavaScript script source offset for the range start."},{"name":"endOffset","type":"integer","description":"JavaScript script source offset for the range end."},{"name":"count","type":"integer","description":"Collected execution count of the source range."}]},{"id":"FunctionCoverage","type":"object","description":"Coverage data for a JavaScript function.","properties":[{"name":"functionName","type":"string","description":"JavaScript function name."},{"name":"ranges","type":"array","description":"Source ranges inside the function with coverage data.","items":{"$ref":"CoverageRange"}},{"name":"isBlockCoverage","type":"boolean","description":"Whether coverage data for this function has block granularity."}]},{"id":"ScriptCoverage","type":"object","description":"Coverage data for a JavaScript script.","properties":[{"name":"scriptId","description":"JavaScript script id.","$ref":"Runtime.ScriptId"},{"name":"url","type":"string","description":"JavaScript script name or url."},{"name":"functions","type":"array","description":"Functions contained in the script that has coverage data.","items":{"$ref":"FunctionCoverage"}}]},{"id":"TypeObject","type":"object","description":"Describes a type collected during runtime.","properties":[{"name":"name","type":"string","description":"Name of a type collected with type profiling."}]},{"id":"TypeProfileEntry","type":"object","description":"Source offset and types for a parameter or return value.","properties":[{"name":"offset","type":"integer","description":"Source offset of the parameter or end of function for return values."},{"name":"types","type":"array","description":"The types for this parameter or return value.","items":{"$ref":"TypeObject"}}]},{"id":"ScriptTypeProfile","type":"object","description":"Type profile data collected during runtime for a JavaScript script.","properties":[{"name":"scriptId","description":"JavaScript script id.","$ref":"Runtime.ScriptId"},{"name":"url","type":"string","description":"JavaScript script name or url."},{"name":"entries","type":"array","description":"Type profile entries for parameters and return values of the functions in the script.","items":{"$ref":"TypeProfileEntry"}}]}],"commands":[{"name":"disable"},{"name":"enable"},{"name":"getBestEffortCoverage","description":"Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.","returns":[{"name":"result","type":"array","items":{"$ref":"ScriptCoverage"},"description":"Coverage data for the current isolate."}]},{"name":"setSamplingInterval","description":"Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.","parameters":[{"name":"interval","type":"integer","description":"New sampling interval in microseconds."}]},{"name":"start"},{"name":"startPreciseCoverage","description":"Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters.","parameters":[{"name":"callCount","type":"boolean","description":"Collect accurate call counts beyond simple 'covered' or 'not covered'.","optional":true},{"name":"detailed","type":"boolean","description":"Collect block-based coverage.","optional":true},{"name":"allowTriggeredUpdates","type":"boolean","description":"Allow the backend to send updates on its own initiative","optional":true}],"returns":[{"name":"timestamp","type":"number","description":"Monotonically increasing time (in seconds) when the coverage update was taken in the backend."}]},{"name":"startTypeProfile","description":"Enable type profile."},{"name":"stop","returns":[{"name":"profile","$ref":"Profile","description":"Recorded profile."}]},{"name":"stopPreciseCoverage","description":"Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code."},{"name":"stopTypeProfile","description":"Disable type profile. Disabling releases type profile data collected so far."},{"name":"takePreciseCoverage","description":"Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.","returns":[{"name":"result","type":"array","items":{"$ref":"ScriptCoverage"},"description":"Coverage data for the current isolate."},{"name":"timestamp","type":"number","description":"Monotonically increasing time (in seconds) when the coverage update was taken in the backend."}]},{"name":"takeTypeProfile","description":"Collect type profile.","returns":[{"name":"result","type":"array","items":{"$ref":"ScriptTypeProfile"},"description":"Type profile for all scripts since startTypeProfile() was turned on."}]}],"events":[{"name":"consoleProfileFinished","parameters":[{"name":"id","type":"string"},{"name":"location","description":"Location of console.profileEnd().","$ref":"Debugger.Location"},{"name":"profile","$ref":"Profile"},{"name":"title","type":"string","description":"Profile title passed as an argument to console.profile().","optional":true}]},{"name":"consoleProfileStarted","description":"Sent when new profile recording is started using console.profile() call.","parameters":[{"name":"id","type":"string"},{"name":"location","description":"Location of console.profile().","$ref":"Debugger.Location"},{"name":"title","type":"string","description":"Profile title passed as an argument to console.profile().","optional":true}]},{"name":"preciseCoverageDeltaUpdate","description":"Reports coverage delta since the last poll (either from an event like this, or from `takePreciseCoverage` for the current isolate. May only be sent if precise code coverage has been started. This event can be trigged by the embedder to, for example, trigger collection of coverage data immediately at a certain point in time.","parameters":[{"name":"timestamp","type":"number","description":"Monotonically increasing time (in seconds) when the coverage update was taken in the backend."},{"name":"occasion","type":"string","description":"Identifier for distinguishing coverage events."},{"name":"result","type":"array","description":"Coverage data for the current isolate.","items":{"$ref":"ScriptCoverage"}}]}]},{"domain":"Runtime","description":"Runtime domain exposes JavaScript runtime by means of remote evaluation and mirror objects. Evaluation results are returned as mirror object that expose object type, string representation and unique identifier that can be used for further object reference. Original objects are maintained in memory unless they are either explicitly released or are released along with the other objects in their object group.","types":[{"id":"ScriptId","type":"string","description":"Unique script identifier."},{"id":"RemoteObjectId","type":"string","description":"Unique object identifier."},{"id":"UnserializableValue","type":"string","description":"Primitive value which cannot be JSON-stringified. Includes values `-0`, `NaN`, `Infinity`, `-Infinity`, and bigint literals."},{"id":"RemoteObject","type":"object","description":"Mirror object referencing original JavaScript object.","properties":[{"name":"type","type":"string","description":"Object type.","enum":["object","function","undefined","string","number","boolean","symbol","bigint"]},{"name":"subtype","type":"string","description":"Object subtype hint. Specified for `object` type values only. NOTE: If you change anything here, make sure to also update `subtype` in `ObjectPreview` and `PropertyPreview` below.","optional":true,"enum":["array","null","node","regexp","date","map","set","weakmap","weakset","iterator","generator","error","proxy","promise","typedarray","arraybuffer","dataview","webassemblymemory","wasmvalue"]},{"name":"className","type":"string","description":"Object class (constructor) name. Specified for `object` type values only.","optional":true},{"name":"value","type":"any","description":"Remote object value in case of primitive values or JSON values (if it was requested).","optional":true},{"name":"unserializableValue","description":"Primitive value which can not be JSON-stringified does not have `value`, but gets this property.","$ref":"UnserializableValue","optional":true},{"name":"description","type":"string","description":"String representation of the object.","optional":true},{"name":"objectId","description":"Unique object identifier (for non-primitive values).","$ref":"RemoteObjectId","optional":true},{"name":"preview","description":"Preview containing abbreviated property values. Specified for `object` type values only.","$ref":"ObjectPreview","optional":true},{"name":"customPreview","$ref":"CustomPreview","optional":true}]},{"id":"CustomPreview","type":"object","properties":[{"name":"header","type":"string","description":"The JSON-stringified result of formatter.header(object, config) call. It contains json ML array that represents RemoteObject."},{"name":"bodyGetterId","description":"If formatter returns true as a result of formatter.hasBody call then bodyGetterId will contain RemoteObjectId for the function that returns result of formatter.body(object, config) call. The result value is json ML array.","$ref":"RemoteObjectId","optional":true}]},{"id":"ObjectPreview","type":"object","description":"Object containing abbreviated remote object value.","properties":[{"name":"type","type":"string","description":"Object type.","enum":["object","function","undefined","string","number","boolean","symbol","bigint"]},{"name":"subtype","type":"string","description":"Object subtype hint. Specified for `object` type values only.","optional":true,"enum":["array","null","node","regexp","date","map","set","weakmap","weakset","iterator","generator","error","proxy","promise","typedarray","arraybuffer","dataview","webassemblymemory","wasmvalue"]},{"name":"description","type":"string","description":"String representation of the object.","optional":true},{"name":"overflow","type":"boolean","description":"True iff some of the properties or entries of the original object did not fit."},{"name":"properties","type":"array","description":"List of the properties.","items":{"$ref":"PropertyPreview"}},{"name":"entries","type":"array","description":"List of the entries. Specified for `map` and `set` subtype values only.","optional":true,"items":{"$ref":"EntryPreview"}}]},{"id":"PropertyPreview","type":"object","properties":[{"name":"name","type":"string","description":"Property name."},{"name":"type","type":"string","description":"Object type. Accessor means that the property itself is an accessor property.","enum":["object","function","undefined","string","number","boolean","symbol","accessor","bigint"]},{"name":"value","type":"string","description":"User-friendly property value string.","optional":true},{"name":"valuePreview","description":"Nested value preview.","$ref":"ObjectPreview","optional":true},{"name":"subtype","type":"string","description":"Object subtype hint. Specified for `object` type values only.","optional":true,"enum":["array","null","node","regexp","date","map","set","weakmap","weakset","iterator","generator","error","proxy","promise","typedarray","arraybuffer","dataview","webassemblymemory","wasmvalue"]}]},{"id":"EntryPreview","type":"object","properties":[{"name":"key","description":"Preview of the key. Specified for map-like collection entries.","$ref":"ObjectPreview","optional":true},{"name":"value","description":"Preview of the value.","$ref":"ObjectPreview"}]},{"id":"PropertyDescriptor","type":"object","description":"Object property descriptor.","properties":[{"name":"name","type":"string","description":"Property name or symbol description."},{"name":"value","description":"The value associated with the property.","$ref":"RemoteObject","optional":true},{"name":"writable","type":"boolean","description":"True if the value associated with the property may be changed (data descriptors only).","optional":true},{"name":"get","description":"A function which serves as a getter for the property, or `undefined` if there is no getter (accessor descriptors only).","$ref":"RemoteObject","optional":true},{"name":"set","description":"A function which serves as a setter for the property, or `undefined` if there is no setter (accessor descriptors only).","$ref":"RemoteObject","optional":true},{"name":"configurable","type":"boolean","description":"True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object."},{"name":"enumerable","type":"boolean","description":"True if this property shows up during enumeration of the properties on the corresponding object."},{"name":"wasThrown","type":"boolean","description":"True if the result was thrown during the evaluation.","optional":true},{"name":"isOwn","type":"boolean","description":"True if the property is owned for the object.","optional":true},{"name":"symbol","description":"Property symbol object, if the property is of the `symbol` type.","$ref":"RemoteObject","optional":true}]},{"id":"InternalPropertyDescriptor","type":"object","description":"Object internal property descriptor. This property isn't normally visible in JavaScript code.","properties":[{"name":"name","type":"string","description":"Conventional property name."},{"name":"value","description":"The value associated with the property.","$ref":"RemoteObject","optional":true}]},{"id":"PrivatePropertyDescriptor","type":"object","description":"Object private field descriptor.","properties":[{"name":"name","type":"string","description":"Private property name."},{"name":"value","description":"The value associated with the private property.","$ref":"RemoteObject","optional":true},{"name":"get","description":"A function which serves as a getter for the private property, or `undefined` if there is no getter (accessor descriptors only).","$ref":"RemoteObject","optional":true},{"name":"set","description":"A function which serves as a setter for the private property, or `undefined` if there is no setter (accessor descriptors only).","$ref":"RemoteObject","optional":true}]},{"id":"CallArgument","type":"object","description":"Represents function call argument. Either remote object id `objectId`, primitive `value`, unserializable primitive value or neither of (for undefined) them should be specified.","properties":[{"name":"value","type":"any","description":"Primitive value or serializable javascript object.","optional":true},{"name":"unserializableValue","description":"Primitive value which can not be JSON-stringified.","$ref":"UnserializableValue","optional":true},{"name":"objectId","description":"Remote object handle.","$ref":"RemoteObjectId","optional":true}]},{"id":"ExecutionContextId","type":"integer","description":"Id of an execution context."},{"id":"ExecutionContextDescription","type":"object","description":"Description of an isolated world.","properties":[{"name":"id","description":"Unique id of the execution context. It can be used to specify in which execution context script evaluation should be performed.","$ref":"ExecutionContextId"},{"name":"origin","type":"string","description":"Execution context origin."},{"name":"name","type":"string","description":"Human readable name describing given context."},{"name":"uniqueId","type":"string","description":"A system-unique execution context identifier. Unlike the id, this is unique across multiple processes, so can be reliably used to identify specific context while backend performs a cross-process navigation."},{"name":"auxData","type":"object","description":"Embedder-specific auxiliary data.","optional":true}]},{"id":"ExceptionDetails","type":"object","description":"Detailed information about exception (or error) that was thrown during script compilation or execution.","properties":[{"name":"exceptionId","type":"integer","description":"Exception id."},{"name":"text","type":"string","description":"Exception text, which should be used together with exception object when available."},{"name":"lineNumber","type":"integer","description":"Line number of the exception location (0-based)."},{"name":"columnNumber","type":"integer","description":"Column number of the exception location (0-based)."},{"name":"scriptId","description":"Script ID of the exception location.","$ref":"ScriptId","optional":true},{"name":"url","type":"string","description":"URL of the exception location, to be used when the script was not reported.","optional":true},{"name":"stackTrace","description":"JavaScript stack trace if available.","$ref":"StackTrace","optional":true},{"name":"exception","description":"Exception object if available.","$ref":"RemoteObject","optional":true},{"name":"executionContextId","description":"Identifier of the context where exception happened.","$ref":"ExecutionContextId","optional":true},{"name":"exceptionMetaData","type":"object","description":"Dictionary with entries of meta data that the client associated with this exception, such as information about associated network requests, etc.","optional":true}]},{"id":"Timestamp","type":"number","description":"Number of milliseconds since epoch."},{"id":"TimeDelta","type":"number","description":"Number of milliseconds."},{"id":"CallFrame","type":"object","description":"Stack entry for runtime errors and assertions.","properties":[{"name":"functionName","type":"string","description":"JavaScript function name."},{"name":"scriptId","description":"JavaScript script id.","$ref":"ScriptId"},{"name":"url","type":"string","description":"JavaScript script name or url."},{"name":"lineNumber","type":"integer","description":"JavaScript script line number (0-based)."},{"name":"columnNumber","type":"integer","description":"JavaScript script column number (0-based)."}]},{"id":"StackTrace","type":"object","description":"Call frames for assertions or error messages.","properties":[{"name":"description","type":"string","description":"String label of this stack trace. For async traces this may be a name of the function that initiated the async call.","optional":true},{"name":"callFrames","type":"array","description":"JavaScript function name.","items":{"$ref":"CallFrame"}},{"name":"parent","description":"Asynchronous JavaScript stack trace that preceded this stack, if available.","$ref":"StackTrace","optional":true},{"name":"parentId","description":"Asynchronous JavaScript stack trace that preceded this stack, if available.","$ref":"StackTraceId","optional":true}]},{"id":"UniqueDebuggerId","type":"string","description":"Unique identifier of current debugger."},{"id":"StackTraceId","type":"object","description":"If `debuggerId` is set stack trace comes from another debugger and can be resolved there. This allows to track cross-debugger calls. See `Runtime.StackTrace` and `Debugger.paused` for usages.","properties":[{"name":"id","type":"string"},{"name":"debuggerId","$ref":"UniqueDebuggerId","optional":true}]}],"commands":[{"name":"awaitPromise","description":"Add handler to promise with given promise object id.","parameters":[{"name":"promiseObjectId","description":"Identifier of the promise.","$ref":"RemoteObjectId"},{"name":"returnByValue","type":"boolean","description":"Whether the result is expected to be a JSON object that should be sent by value.","optional":true},{"name":"generatePreview","type":"boolean","description":"Whether preview should be generated for the result.","optional":true}],"returns":[{"name":"result","$ref":"RemoteObject","description":"Promise result. Will contain rejected value if promise was rejected."},{"name":"exceptionDetails","$ref":"ExceptionDetails","description":"Exception details if stack strace is available."}]},{"name":"callFunctionOn","description":"Calls function with given declaration on the given object. Object group of the result is inherited from the target object.","parameters":[{"name":"functionDeclaration","type":"string","description":"Declaration of the function to call."},{"name":"objectId","description":"Identifier of the object to call function on. Either objectId or executionContextId should be specified.","$ref":"RemoteObjectId","optional":true},{"name":"arguments","type":"array","description":"Call arguments. All call arguments must belong to the same JavaScript world as the target object.","optional":true,"items":{"$ref":"CallArgument"}},{"name":"silent","type":"boolean","description":"In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides `setPauseOnException` state.","optional":true},{"name":"returnByValue","type":"boolean","description":"Whether the result is expected to be a JSON object which should be sent by value.","optional":true},{"name":"generatePreview","type":"boolean","description":"Whether preview should be generated for the result.","optional":true},{"name":"userGesture","type":"boolean","description":"Whether execution should be treated as initiated by user in the UI.","optional":true},{"name":"awaitPromise","type":"boolean","description":"Whether execution should `await` for resulting value and return once awaited promise is resolved.","optional":true},{"name":"executionContextId","description":"Specifies execution context which global object will be used to call function on. Either executionContextId or objectId should be specified.","$ref":"ExecutionContextId","optional":true},{"name":"objectGroup","type":"string","description":"Symbolic group name that can be used to release multiple objects. If objectGroup is not specified and objectId is, objectGroup will be inherited from object.","optional":true},{"name":"throwOnSideEffect","type":"boolean","description":"Whether to throw an exception if side effect cannot be ruled out during evaluation.","optional":true}],"returns":[{"name":"result","$ref":"RemoteObject","description":"Call result."},{"name":"exceptionDetails","$ref":"ExceptionDetails","description":"Exception details."}]},{"name":"compileScript","description":"Compiles expression.","parameters":[{"name":"expression","type":"string","description":"Expression to compile."},{"name":"sourceURL","type":"string","description":"Source url to be set for the script."},{"name":"persistScript","type":"boolean","description":"Specifies whether the compiled script should be persisted."},{"name":"executionContextId","description":"Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page.","$ref":"ExecutionContextId","optional":true}],"returns":[{"name":"scriptId","$ref":"ScriptId","description":"Id of the script."},{"name":"exceptionDetails","$ref":"ExceptionDetails","description":"Exception details."}]},{"name":"disable","description":"Disables reporting of execution contexts creation."},{"name":"discardConsoleEntries","description":"Discards collected exceptions and console API calls."},{"name":"enable","description":"Enables reporting of execution contexts creation by means of `executionContextCreated` event. When the reporting gets enabled the event will be sent immediately for each existing execution context."},{"name":"evaluate","description":"Evaluates expression on global object.","parameters":[{"name":"expression","type":"string","description":"Expression to evaluate."},{"name":"objectGroup","type":"string","description":"Symbolic group name that can be used to release multiple objects.","optional":true},{"name":"includeCommandLineAPI","type":"boolean","description":"Determines whether Command Line API should be available during the evaluation.","optional":true},{"name":"silent","type":"boolean","description":"In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides `setPauseOnException` state.","optional":true},{"name":"contextId","description":"Specifies in which execution context to perform evaluation. If the parameter is omitted the evaluation will be performed in the context of the inspected page. This is mutually exclusive with `uniqueContextId`, which offers an alternative way to identify the execution context that is more reliable in a multi-process environment.","$ref":"ExecutionContextId","optional":true},{"name":"returnByValue","type":"boolean","description":"Whether the result is expected to be a JSON object that should be sent by value.","optional":true},{"name":"generatePreview","type":"boolean","description":"Whether preview should be generated for the result.","optional":true},{"name":"userGesture","type":"boolean","description":"Whether execution should be treated as initiated by user in the UI.","optional":true},{"name":"awaitPromise","type":"boolean","description":"Whether execution should `await` for resulting value and return once awaited promise is resolved.","optional":true},{"name":"throwOnSideEffect","type":"boolean","description":"Whether to throw an exception if side effect cannot be ruled out during evaluation. This implies `disableBreaks` below.","optional":true},{"name":"timeout","description":"Terminate execution after timing out (number of milliseconds).","$ref":"TimeDelta","optional":true},{"name":"disableBreaks","type":"boolean","description":"Disable breakpoints during execution.","optional":true},{"name":"replMode","type":"boolean","description":"Setting this flag to true enables `let` re-declaration and top-level `await`. Note that `let` variables can only be re-declared if they originate from `replMode` themselves.","optional":true},{"name":"allowUnsafeEvalBlockedByCSP","type":"boolean","description":"The Content Security Policy (CSP) for the target might block 'unsafe-eval' which includes eval(), Function(), setTimeout() and setInterval() when called with non-callable arguments. This flag bypasses CSP for this evaluation and allows unsafe-eval. Defaults to true.","optional":true},{"name":"uniqueContextId","type":"string","description":"An alternative way to specify the execution context to evaluate in. Compared to contextId that may be reused across processes, this is guaranteed to be system-unique, so it can be used to prevent accidental evaluation of the expression in context different than intended (e.g. as a result of navigation across process boundaries). This is mutually exclusive with `contextId`.","optional":true}],"returns":[{"name":"result","$ref":"RemoteObject","description":"Evaluation result."},{"name":"exceptionDetails","$ref":"ExceptionDetails","description":"Exception details."}]},{"name":"getIsolateId","description":"Returns the isolate id.","returns":[{"name":"id","type":"string","description":"The isolate id."}]},{"name":"getHeapUsage","description":"Returns the JavaScript heap usage. It is the total usage of the corresponding isolate not scoped to a particular Runtime.","returns":[{"name":"usedSize","type":"number","description":"Used heap size in bytes."},{"name":"totalSize","type":"number","description":"Allocated heap size in bytes."}]},{"name":"getProperties","description":"Returns properties of a given object. Object group of the result is inherited from the target object.","parameters":[{"name":"objectId","description":"Identifier of the object to return properties for.","$ref":"RemoteObjectId"},{"name":"ownProperties","type":"boolean","description":"If true, returns properties belonging only to the element itself, not to its prototype chain.","optional":true},{"name":"accessorPropertiesOnly","type":"boolean","description":"If true, returns accessor properties (with getter/setter) only; internal properties are not returned either.","optional":true},{"name":"generatePreview","type":"boolean","description":"Whether preview should be generated for the results.","optional":true},{"name":"nonIndexedPropertiesOnly","type":"boolean","description":"If true, returns non-indexed properties only.","optional":true}],"returns":[{"name":"result","type":"array","items":{"$ref":"PropertyDescriptor"},"description":"Object properties."},{"name":"internalProperties","type":"array","items":{"$ref":"InternalPropertyDescriptor"},"description":"Internal object properties (only of the element itself)."},{"name":"privateProperties","type":"array","items":{"$ref":"PrivatePropertyDescriptor"},"description":"Object private properties."},{"name":"exceptionDetails","$ref":"ExceptionDetails","description":"Exception details."}]},{"name":"globalLexicalScopeNames","description":"Returns all let, const and class variables from global scope.","parameters":[{"name":"executionContextId","description":"Specifies in which execution context to lookup global scope variables.","$ref":"ExecutionContextId","optional":true}],"returns":[{"name":"names","type":"array","items":{"type":"string"}}]},{"name":"queryObjects","parameters":[{"name":"prototypeObjectId","description":"Identifier of the prototype to return objects for.","$ref":"RemoteObjectId"},{"name":"objectGroup","type":"string","description":"Symbolic group name that can be used to release the results.","optional":true}],"returns":[{"name":"objects","$ref":"RemoteObject","description":"Array with objects."}]},{"name":"releaseObject","description":"Releases remote object with given id.","parameters":[{"name":"objectId","description":"Identifier of the object to release.","$ref":"RemoteObjectId"}]},{"name":"releaseObjectGroup","description":"Releases all remote objects that belong to a given group.","parameters":[{"name":"objectGroup","type":"string","description":"Symbolic object group name."}]},{"name":"runIfWaitingForDebugger","description":"Tells inspected instance to run if it was waiting for debugger to attach."},{"name":"runScript","description":"Runs script with given id in a given context.","parameters":[{"name":"scriptId","description":"Id of the script to run.","$ref":"ScriptId"},{"name":"executionContextId","description":"Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page.","$ref":"ExecutionContextId","optional":true},{"name":"objectGroup","type":"string","description":"Symbolic group name that can be used to release multiple objects.","optional":true},{"name":"silent","type":"boolean","description":"In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides `setPauseOnException` state.","optional":true},{"name":"includeCommandLineAPI","type":"boolean","description":"Determines whether Command Line API should be available during the evaluation.","optional":true},{"name":"returnByValue","type":"boolean","description":"Whether the result is expected to be a JSON object which should be sent by value.","optional":true},{"name":"generatePreview","type":"boolean","description":"Whether preview should be generated for the result.","optional":true},{"name":"awaitPromise","type":"boolean","description":"Whether execution should `await` for resulting value and return once awaited promise is resolved.","optional":true}],"returns":[{"name":"result","$ref":"RemoteObject","description":"Run result."},{"name":"exceptionDetails","$ref":"ExceptionDetails","description":"Exception details."}]},{"name":"setAsyncCallStackDepth","description":"Enables or disables async call stacks tracking.","parameters":[{"name":"maxDepth","type":"integer","description":"Maximum depth of async call stacks. Setting to `0` will effectively disable collecting async call stacks (default)."}],"redirect":"Debugger"},{"name":"setCustomObjectFormatterEnabled","parameters":[{"name":"enabled","type":"boolean"}]},{"name":"setMaxCallStackSizeToCapture","parameters":[{"name":"size","type":"integer"}]},{"name":"terminateExecution","description":"Terminate current or next JavaScript execution. Will cancel the termination when the outer-most script execution ends."},{"name":"addBinding","description":"If executionContextId is empty, adds binding with the given name on the global objects of all inspected contexts, including those created later, bindings survive reloads. Binding function takes exactly one argument, this argument should be string, in case of any other input, function throws an exception. Each binding function call produces Runtime.bindingCalled notification.","parameters":[{"name":"name","type":"string"},{"name":"executionContextId","description":"If specified, the binding would only be exposed to the specified execution context. If omitted and `executionContextName` is not set, the binding is exposed to all execution contexts of the target. This parameter is mutually exclusive with `executionContextName`. Deprecated in favor of `executionContextName` due to an unclear use case and bugs in implementation (crbug.com/1169639). `executionContextId` will be removed in the future.","$ref":"ExecutionContextId","optional":true},{"name":"executionContextName","type":"string","description":"If specified, the binding is exposed to the executionContext with matching name, even for contexts created after the binding is added. See also `ExecutionContext.name` and `worldName` parameter to `Page.addScriptToEvaluateOnNewDocument`. This parameter is mutually exclusive with `executionContextId`.","optional":true}]},{"name":"removeBinding","description":"This method does not remove binding function from global object but unsubscribes current runtime agent from Runtime.bindingCalled notifications.","parameters":[{"name":"name","type":"string"}]}],"events":[{"name":"bindingCalled","description":"Notification is issued every time when binding is called.","parameters":[{"name":"name","type":"string"},{"name":"payload","type":"string"},{"name":"executionContextId","description":"Identifier of the context where the call was made.","$ref":"ExecutionContextId"}]},{"name":"consoleAPICalled","description":"Issued when console API was called.","parameters":[{"name":"type","type":"string","description":"Type of the call.","enum":["log","debug","info","error","warning","dir","dirxml","table","trace","clear","startGroup","startGroupCollapsed","endGroup","assert","profile","profileEnd","count","timeEnd"]},{"name":"args","type":"array","description":"Call arguments.","items":{"$ref":"RemoteObject"}},{"name":"executionContextId","description":"Identifier of the context where the call was made.","$ref":"ExecutionContextId"},{"name":"timestamp","description":"Call timestamp.","$ref":"Timestamp"},{"name":"stackTrace","description":"Stack trace captured when the call was made. The async stack chain is automatically reported for the following call types: `assert`, `error`, `trace`, `warning`. For other types the async call chain can be retrieved using `Debugger.getStackTrace` and `stackTrace.parentId` field.","$ref":"StackTrace","optional":true},{"name":"context","type":"string","description":"Console context descriptor for calls on non-default console context (not console.*): 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call on named context.","optional":true}]},{"name":"exceptionRevoked","description":"Issued when unhandled exception was revoked.","parameters":[{"name":"reason","type":"string","description":"Reason describing why exception was revoked."},{"name":"exceptionId","type":"integer","description":"The id of revoked exception, as reported in `exceptionThrown`."}]},{"name":"exceptionThrown","description":"Issued when exception was thrown and unhandled.","parameters":[{"name":"timestamp","description":"Timestamp of the exception.","$ref":"Timestamp"},{"name":"exceptionDetails","$ref":"ExceptionDetails"}]},{"name":"executionContextCreated","description":"Issued when new execution context is created.","parameters":[{"name":"context","description":"A newly created execution context.","$ref":"ExecutionContextDescription"}]},{"name":"executionContextDestroyed","description":"Issued when execution context is destroyed.","parameters":[{"name":"executionContextId","description":"Id of the destroyed context","$ref":"ExecutionContextId"}]},{"name":"executionContextsCleared","description":"Issued when all executionContexts were cleared in browser"},{"name":"inspectRequested","description":"Issued when object should be inspected (for example, as a result of inspect() command line API call).","parameters":[{"name":"object","$ref":"RemoteObject"},{"name":"hints","type":"object"},{"name":"executionContextId","description":"Identifier of the context where the call was made.","$ref":"ExecutionContextId","optional":true}]}]},{"domain":"Schema","description":"This domain is deprecated.","types":[{"id":"Domain","type":"object","description":"Description of the protocol domain.","properties":[{"name":"name","type":"string","description":"Domain name."},{"name":"version","type":"string","description":"Domain version."}]}],"commands":[{"name":"getDomains","description":"Returns supported domains.","returns":[{"name":"domains","type":"array","items":{"$ref":"Domain"},"description":"List of supported domains."}]}]}]} \ No newline at end of file +{"version":{"major":"1","minor":"3"},"domains":[{"domain":"Accessibility","types":[{"id":"AXNodeId","type":"string","description":"Unique accessibility node identifier."},{"id":"AXValueType","type":"string","description":"Enum of possible property types.","enum":["boolean","tristate","booleanOrUndefined","idref","idrefList","integer","node","nodeList","number","string","computedString","token","tokenList","domRelation","role","internalRole","valueUndefined"]},{"id":"AXValueSourceType","type":"string","description":"Enum of possible property sources.","enum":["attribute","implicit","style","contents","placeholder","relatedElement"]},{"id":"AXValueNativeSourceType","type":"string","description":"Enum of possible native property sources (as a subtype of a particular AXValueSourceType).","enum":["description","figcaption","label","labelfor","labelwrapped","legend","rubyannotation","tablecaption","title","other"]},{"id":"AXValueSource","type":"object","description":"A single source for a computed AX property.","properties":[{"name":"type","description":"What type of source this is.","$ref":"AXValueSourceType"},{"name":"value","description":"The value of this property source.","$ref":"AXValue","optional":true},{"name":"attribute","type":"string","description":"The name of the relevant attribute, if any.","optional":true},{"name":"attributeValue","description":"The value of the relevant attribute, if any.","$ref":"AXValue","optional":true},{"name":"superseded","type":"boolean","description":"Whether this source is superseded by a higher priority source.","optional":true},{"name":"nativeSource","description":"The native markup source for this value, e.g. a \u003clabel\u003e element.","$ref":"AXValueNativeSourceType","optional":true},{"name":"nativeSourceValue","description":"The value, such as a node or node list, of the native source.","$ref":"AXValue","optional":true},{"name":"invalid","type":"boolean","description":"Whether the value for this property is invalid.","optional":true},{"name":"invalidReason","type":"string","description":"Reason for the value being invalid, if it is.","optional":true}]},{"id":"AXRelatedNode","type":"object","properties":[{"name":"backendDOMNodeId","description":"The BackendNodeId of the related DOM node.","$ref":"DOM.BackendNodeId"},{"name":"idref","type":"string","description":"The IDRef value provided, if any.","optional":true},{"name":"text","type":"string","description":"The text alternative of this node in the current context.","optional":true}]},{"id":"AXProperty","type":"object","properties":[{"name":"name","description":"The name of this property.","$ref":"AXPropertyName"},{"name":"value","description":"The value of this property.","$ref":"AXValue"}]},{"id":"AXValue","type":"object","description":"A single computed AX property.","properties":[{"name":"type","description":"The type of this value.","$ref":"AXValueType"},{"name":"value","type":"any","description":"The computed value of this property.","optional":true},{"name":"relatedNodes","type":"array","description":"One or more related nodes, if applicable.","optional":true,"items":{"$ref":"AXRelatedNode"}},{"name":"sources","type":"array","description":"The sources which contributed to the computation of this property.","optional":true,"items":{"$ref":"AXValueSource"}}]},{"id":"AXPropertyName","type":"string","description":"Values of AXProperty name: - from 'busy' to 'roledescription': states which apply to every AX node - from 'live' to 'root': attributes which apply to nodes in live regions - from 'autocomplete' to 'valuetext': attributes which apply to widgets - from 'checked' to 'selected': states which apply to widgets - from 'activedescendant' to 'owns' - relationships between elements other than parent/child/sibling.","enum":["busy","disabled","editable","focusable","focused","hidden","hiddenRoot","invalid","keyshortcuts","settable","roledescription","live","atomic","relevant","root","autocomplete","hasPopup","level","multiselectable","orientation","multiline","readonly","required","valuemin","valuemax","valuetext","checked","expanded","modal","pressed","selected","activedescendant","controls","describedby","details","errormessage","flowto","labelledby","owns"]},{"id":"AXNode","type":"object","description":"A node in the accessibility tree.","properties":[{"name":"nodeId","description":"Unique identifier for this node.","$ref":"AXNodeId"},{"name":"ignored","type":"boolean","description":"Whether this node is ignored for accessibility"},{"name":"ignoredReasons","type":"array","description":"Collection of reasons why this node is hidden.","optional":true,"items":{"$ref":"AXProperty"}},{"name":"role","description":"This `Node`'s role, whether explicit or implicit.","$ref":"AXValue","optional":true},{"name":"name","description":"The accessible name for this `Node`.","$ref":"AXValue","optional":true},{"name":"description","description":"The accessible description for this `Node`.","$ref":"AXValue","optional":true},{"name":"value","description":"The value for this `Node`.","$ref":"AXValue","optional":true},{"name":"properties","type":"array","description":"All other properties","optional":true,"items":{"$ref":"AXProperty"}},{"name":"parentId","description":"ID for this node's parent.","$ref":"AXNodeId","optional":true},{"name":"childIds","type":"array","description":"IDs for each of this node's child nodes.","optional":true,"items":{"$ref":"AXNodeId"}},{"name":"backendDOMNodeId","description":"The backend ID for the associated DOM node, if any.","$ref":"DOM.BackendNodeId","optional":true},{"name":"frameId","description":"The frame ID for the frame associated with this nodes document.","$ref":"Page.FrameId","optional":true}]}],"commands":[{"name":"disable","description":"Disables the accessibility domain."},{"name":"enable","description":"Enables the accessibility domain which causes `AXNodeId`s to remain consistent between method calls. This turns on accessibility for the page, which can impact performance until accessibility is disabled."},{"name":"getPartialAXTree","description":"Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists.","parameters":[{"name":"nodeId","description":"Identifier of the node to get the partial accessibility tree for.","$ref":"DOM.NodeId","optional":true},{"name":"backendNodeId","description":"Identifier of the backend node to get the partial accessibility tree for.","$ref":"DOM.BackendNodeId","optional":true},{"name":"objectId","description":"JavaScript object id of the node wrapper to get the partial accessibility tree for.","$ref":"Runtime.RemoteObjectId","optional":true},{"name":"fetchRelatives","type":"boolean","description":"Whether to fetch this nodes ancestors, siblings and children. Defaults to true.","optional":true}],"returns":[{"name":"nodes","type":"array","items":{"$ref":"AXNode"},"description":"The `Accessibility.AXNode` for this DOM node, if it exists, plus its ancestors, siblings and children, if requested."}]},{"name":"getFullAXTree","description":"Fetches the entire accessibility tree for the root Document","parameters":[{"name":"depth","type":"integer","description":"The maximum depth at which descendants of the root node should be retrieved. If omitted, the full tree is returned.","optional":true},{"name":"frameId","description":"The frame for whose document the AX tree should be retrieved. If omited, the root frame is used.","$ref":"Page.FrameId","optional":true}],"returns":[{"name":"nodes","type":"array","items":{"$ref":"AXNode"}}]},{"name":"getRootAXNode","description":"Fetches the root node. Requires `enable()` to have been called previously.","parameters":[{"name":"frameId","description":"The frame in whose document the node resides. If omitted, the root frame is used.","$ref":"Page.FrameId","optional":true}],"returns":[{"name":"node","$ref":"AXNode"}]},{"name":"getAXNodeAndAncestors","description":"Fetches a node and all ancestors up to and including the root. Requires `enable()` to have been called previously.","parameters":[{"name":"nodeId","description":"Identifier of the node to get.","$ref":"DOM.NodeId","optional":true},{"name":"backendNodeId","description":"Identifier of the backend node to get.","$ref":"DOM.BackendNodeId","optional":true},{"name":"objectId","description":"JavaScript object id of the node wrapper to get.","$ref":"Runtime.RemoteObjectId","optional":true}],"returns":[{"name":"nodes","type":"array","items":{"$ref":"AXNode"}}]},{"name":"getChildAXNodes","description":"Fetches a particular accessibility node by AXNodeId. Requires `enable()` to have been called previously.","parameters":[{"name":"id","$ref":"AXNodeId"},{"name":"frameId","description":"The frame in whose document the node resides. If omitted, the root frame is used.","$ref":"Page.FrameId","optional":true}],"returns":[{"name":"nodes","type":"array","items":{"$ref":"AXNode"}}]},{"name":"queryAXTree","description":"Query a DOM node's accessibility subtree for accessible name and role. This command computes the name and role for all nodes in the subtree, including those that are ignored for accessibility, and returns those that mactch the specified name and role. If no DOM node is specified, or the DOM node does not exist, the command returns an error. If neither `accessibleName` or `role` is specified, it returns all the accessibility nodes in the subtree.","parameters":[{"name":"nodeId","description":"Identifier of the node for the root to query.","$ref":"DOM.NodeId","optional":true},{"name":"backendNodeId","description":"Identifier of the backend node for the root to query.","$ref":"DOM.BackendNodeId","optional":true},{"name":"objectId","description":"JavaScript object id of the node wrapper for the root to query.","$ref":"Runtime.RemoteObjectId","optional":true},{"name":"accessibleName","type":"string","description":"Find nodes with this computed name.","optional":true},{"name":"role","type":"string","description":"Find nodes with this computed role.","optional":true}],"returns":[{"name":"nodes","type":"array","items":{"$ref":"AXNode"},"description":"A list of `Accessibility.AXNode` matching the specified attributes, including nodes that are ignored for accessibility."}]}],"events":[{"name":"loadComplete","description":"The loadComplete event mirrors the load complete event sent by the browser to assistive technology when the web page has finished loading.","parameters":[{"name":"root","description":"New document root node.","$ref":"AXNode"}]},{"name":"nodesUpdated","description":"The nodesUpdated event is sent every time a previously requested node has changed the in tree.","parameters":[{"name":"nodes","type":"array","description":"Updated node data.","items":{"$ref":"AXNode"}}]}]},{"domain":"Animation","types":[{"id":"Animation","type":"object","description":"Animation instance.","properties":[{"name":"id","type":"string","description":"`Animation`'s id."},{"name":"name","type":"string","description":"`Animation`'s name."},{"name":"pausedState","type":"boolean","description":"`Animation`'s internal paused state."},{"name":"playState","type":"string","description":"`Animation`'s play state."},{"name":"playbackRate","type":"number","description":"`Animation`'s playback rate."},{"name":"startTime","type":"number","description":"`Animation`'s start time."},{"name":"currentTime","type":"number","description":"`Animation`'s current time."},{"name":"type","type":"string","description":"Animation type of `Animation`.","enum":["CSSTransition","CSSAnimation","WebAnimation"]},{"name":"source","description":"`Animation`'s source animation node.","$ref":"AnimationEffect","optional":true},{"name":"cssId","type":"string","description":"A unique ID for `Animation` representing the sources that triggered this CSS animation/transition.","optional":true}]},{"id":"AnimationEffect","type":"object","description":"AnimationEffect instance","properties":[{"name":"delay","type":"number","description":"`AnimationEffect`'s delay."},{"name":"endDelay","type":"number","description":"`AnimationEffect`'s end delay."},{"name":"iterationStart","type":"number","description":"`AnimationEffect`'s iteration start."},{"name":"iterations","type":"number","description":"`AnimationEffect`'s iterations."},{"name":"duration","type":"number","description":"`AnimationEffect`'s iteration duration."},{"name":"direction","type":"string","description":"`AnimationEffect`'s playback direction."},{"name":"fill","type":"string","description":"`AnimationEffect`'s fill mode."},{"name":"backendNodeId","description":"`AnimationEffect`'s target node.","$ref":"DOM.BackendNodeId","optional":true},{"name":"keyframesRule","description":"`AnimationEffect`'s keyframes.","$ref":"KeyframesRule","optional":true},{"name":"easing","type":"string","description":"`AnimationEffect`'s timing function."}]},{"id":"KeyframesRule","type":"object","description":"Keyframes Rule","properties":[{"name":"name","type":"string","description":"CSS keyframed animation's name.","optional":true},{"name":"keyframes","type":"array","description":"List of animation keyframes.","items":{"$ref":"KeyframeStyle"}}]},{"id":"KeyframeStyle","type":"object","description":"Keyframe Style","properties":[{"name":"offset","type":"string","description":"Keyframe's time offset."},{"name":"easing","type":"string","description":"`AnimationEffect`'s timing function."}]}],"commands":[{"name":"disable","description":"Disables animation domain notifications."},{"name":"enable","description":"Enables animation domain notifications."},{"name":"getCurrentTime","description":"Returns the current time of the an animation.","parameters":[{"name":"id","type":"string","description":"Id of animation."}],"returns":[{"name":"currentTime","type":"number","description":"Current time of the page."}]},{"name":"getPlaybackRate","description":"Gets the playback rate of the document timeline.","returns":[{"name":"playbackRate","type":"number","description":"Playback rate for animations on page."}]},{"name":"releaseAnimations","description":"Releases a set of animations to no longer be manipulated.","parameters":[{"name":"animations","type":"array","description":"List of animation ids to seek.","items":{"type":"string"}}]},{"name":"resolveAnimation","description":"Gets the remote object of the Animation.","parameters":[{"name":"animationId","type":"string","description":"Animation id."}],"returns":[{"name":"remoteObject","$ref":"Runtime.RemoteObject","description":"Corresponding remote object."}]},{"name":"seekAnimations","description":"Seek a set of animations to a particular time within each animation.","parameters":[{"name":"animations","type":"array","description":"List of animation ids to seek.","items":{"type":"string"}},{"name":"currentTime","type":"number","description":"Set the current time of each animation."}]},{"name":"setPaused","description":"Sets the paused state of a set of animations.","parameters":[{"name":"animations","type":"array","description":"Animations to set the pause state of.","items":{"type":"string"}},{"name":"paused","type":"boolean","description":"Paused state to set to."}]},{"name":"setPlaybackRate","description":"Sets the playback rate of the document timeline.","parameters":[{"name":"playbackRate","type":"number","description":"Playback rate for animations on page"}]},{"name":"setTiming","description":"Sets the timing of an animation node.","parameters":[{"name":"animationId","type":"string","description":"Animation id."},{"name":"duration","type":"number","description":"Duration of the animation."},{"name":"delay","type":"number","description":"Delay of the animation."}]}],"events":[{"name":"animationCanceled","description":"Event for when an animation has been cancelled.","parameters":[{"name":"id","type":"string","description":"Id of the animation that was cancelled."}]},{"name":"animationCreated","description":"Event for each animation that has been created.","parameters":[{"name":"id","type":"string","description":"Id of the animation that was created."}]},{"name":"animationStarted","description":"Event for animation that has been started.","parameters":[{"name":"animation","description":"Animation that was started.","$ref":"Animation"}]}]},{"domain":"Audits","description":"Audits domain allows investigation of page violations and possible improvements.","types":[{"id":"AffectedCookie","type":"object","description":"Information about a cookie that is affected by an inspector issue.","properties":[{"name":"name","type":"string","description":"The following three properties uniquely identify a cookie"},{"name":"path","type":"string"},{"name":"domain","type":"string"}]},{"id":"AffectedRequest","type":"object","description":"Information about a request that is affected by an inspector issue.","properties":[{"name":"requestId","description":"The unique request id.","$ref":"Network.RequestId"},{"name":"url","type":"string","optional":true}]},{"id":"AffectedFrame","type":"object","description":"Information about the frame affected by an inspector issue.","properties":[{"name":"frameId","$ref":"Page.FrameId"}]},{"id":"CookieExclusionReason","type":"string","enum":["ExcludeSameSiteUnspecifiedTreatedAsLax","ExcludeSameSiteNoneInsecure","ExcludeSameSiteLax","ExcludeSameSiteStrict","ExcludeInvalidSameParty","ExcludeSamePartyCrossPartyContext"]},{"id":"CookieWarningReason","type":"string","enum":["WarnSameSiteUnspecifiedCrossSiteContext","WarnSameSiteNoneInsecure","WarnSameSiteUnspecifiedLaxAllowUnsafe","WarnSameSiteStrictLaxDowngradeStrict","WarnSameSiteStrictCrossDowngradeStrict","WarnSameSiteStrictCrossDowngradeLax","WarnSameSiteLaxCrossDowngradeStrict","WarnSameSiteLaxCrossDowngradeLax","WarnAttributeValueExceedsMaxSize"]},{"id":"CookieOperation","type":"string","enum":["SetCookie","ReadCookie"]},{"id":"CookieIssueDetails","type":"object","description":"This information is currently necessary, as the front-end has a difficult time finding a specific cookie. With this, we can convey specific error information without the cookie.","properties":[{"name":"cookie","description":"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.","$ref":"AffectedCookie","optional":true},{"name":"rawCookieLine","type":"string","optional":true},{"name":"cookieWarningReasons","type":"array","items":{"$ref":"CookieWarningReason"}},{"name":"cookieExclusionReasons","type":"array","items":{"$ref":"CookieExclusionReason"}},{"name":"operation","description":"Optionally identifies the site-for-cookies and the cookie url, which may be used by the front-end as additional context.","$ref":"CookieOperation"},{"name":"siteForCookies","type":"string","optional":true},{"name":"cookieUrl","type":"string","optional":true},{"name":"request","$ref":"AffectedRequest","optional":true}]},{"id":"MixedContentResolutionStatus","type":"string","enum":["MixedContentBlocked","MixedContentAutomaticallyUpgraded","MixedContentWarning"]},{"id":"MixedContentResourceType","type":"string","enum":["AttributionSrc","Audio","Beacon","CSPReport","Download","EventSource","Favicon","Font","Form","Frame","Image","Import","Manifest","Ping","PluginData","PluginResource","Prefetch","Resource","Script","ServiceWorker","SharedWorker","Stylesheet","Track","Video","Worker","XMLHttpRequest","XSLT"]},{"id":"MixedContentIssueDetails","type":"object","properties":[{"name":"resourceType","description":"The type of resource causing the mixed content issue (css, js, iframe, form,...). Marked as optional because it is mapped to from blink::mojom::RequestContextType, which will be replaced by network::mojom::RequestDestination","$ref":"MixedContentResourceType","optional":true},{"name":"resolutionStatus","description":"The way the mixed content issue is being resolved.","$ref":"MixedContentResolutionStatus"},{"name":"insecureURL","type":"string","description":"The unsafe http url causing the mixed content issue."},{"name":"mainResourceURL","type":"string","description":"The url responsible for the call to an unsafe url."},{"name":"request","description":"The mixed content request. Does not always exist (e.g. for unsafe form submission urls).","$ref":"AffectedRequest","optional":true},{"name":"frame","description":"Optional because not every mixed content issue is necessarily linked to a frame.","$ref":"AffectedFrame","optional":true}]},{"id":"BlockedByResponseReason","type":"string","description":"Enum indicating the reason a response has been blocked. These reasons are refinements of the net error BLOCKED_BY_RESPONSE.","enum":["CoepFrameResourceNeedsCoepHeader","CoopSandboxedIFrameCannotNavigateToCoopPage","CorpNotSameOrigin","CorpNotSameOriginAfterDefaultedToSameOriginByCoep","CorpNotSameSite"]},{"id":"BlockedByResponseIssueDetails","type":"object","description":"Details for a request that has been blocked with the BLOCKED_BY_RESPONSE code. Currently only used for COEP/COOP, but may be extended to include some CSP errors in the future.","properties":[{"name":"request","$ref":"AffectedRequest"},{"name":"parentFrame","$ref":"AffectedFrame","optional":true},{"name":"blockedFrame","$ref":"AffectedFrame","optional":true},{"name":"reason","$ref":"BlockedByResponseReason"}]},{"id":"HeavyAdResolutionStatus","type":"string","enum":["HeavyAdBlocked","HeavyAdWarning"]},{"id":"HeavyAdReason","type":"string","enum":["NetworkTotalLimit","CpuTotalLimit","CpuPeakLimit"]},{"id":"HeavyAdIssueDetails","type":"object","properties":[{"name":"resolution","description":"The resolution status, either blocking the content or warning.","$ref":"HeavyAdResolutionStatus"},{"name":"reason","description":"The reason the ad was blocked, total network or cpu or peak cpu.","$ref":"HeavyAdReason"},{"name":"frame","description":"The frame that was blocked.","$ref":"AffectedFrame"}]},{"id":"ContentSecurityPolicyViolationType","type":"string","enum":["kInlineViolation","kEvalViolation","kURLViolation","kTrustedTypesSinkViolation","kTrustedTypesPolicyViolation","kWasmEvalViolation"]},{"id":"SourceCodeLocation","type":"object","properties":[{"name":"scriptId","$ref":"Runtime.ScriptId","optional":true},{"name":"url","type":"string"},{"name":"lineNumber","type":"integer"},{"name":"columnNumber","type":"integer"}]},{"id":"ContentSecurityPolicyIssueDetails","type":"object","properties":[{"name":"blockedURL","type":"string","description":"The url not included in allowed sources.","optional":true},{"name":"violatedDirective","type":"string","description":"Specific directive that is violated, causing the CSP issue."},{"name":"isReportOnly","type":"boolean"},{"name":"contentSecurityPolicyViolationType","$ref":"ContentSecurityPolicyViolationType"},{"name":"frameAncestor","$ref":"AffectedFrame","optional":true},{"name":"sourceCodeLocation","$ref":"SourceCodeLocation","optional":true},{"name":"violatingNodeId","$ref":"DOM.BackendNodeId","optional":true}]},{"id":"SharedArrayBufferIssueType","type":"string","enum":["TransferIssue","CreationIssue"]},{"id":"SharedArrayBufferIssueDetails","type":"object","description":"Details for a issue arising from an SAB being instantiated in, or transferred to a context that is not cross-origin isolated.","properties":[{"name":"sourceCodeLocation","$ref":"SourceCodeLocation"},{"name":"isWarning","type":"boolean"},{"name":"type","$ref":"SharedArrayBufferIssueType"}]},{"id":"TwaQualityEnforcementViolationType","type":"string","enum":["kHttpError","kUnavailableOffline","kDigitalAssetLinks"]},{"id":"TrustedWebActivityIssueDetails","type":"object","properties":[{"name":"url","type":"string","description":"The url that triggers the violation."},{"name":"violationType","$ref":"TwaQualityEnforcementViolationType"},{"name":"httpStatusCode","type":"integer","optional":true},{"name":"packageName","type":"string","description":"The package name of the Trusted Web Activity client app. This field is only used when violation type is kDigitalAssetLinks.","optional":true},{"name":"signature","type":"string","description":"The signature of the Trusted Web Activity client app. This field is only used when violation type is kDigitalAssetLinks.","optional":true}]},{"id":"LowTextContrastIssueDetails","type":"object","properties":[{"name":"violatingNodeId","$ref":"DOM.BackendNodeId"},{"name":"violatingNodeSelector","type":"string"},{"name":"contrastRatio","type":"number"},{"name":"thresholdAA","type":"number"},{"name":"thresholdAAA","type":"number"},{"name":"fontSize","type":"string"},{"name":"fontWeight","type":"string"}]},{"id":"CorsIssueDetails","type":"object","description":"Details for a CORS related issue, e.g. a warning or error related to CORS RFC1918 enforcement.","properties":[{"name":"corsErrorStatus","$ref":"Network.CorsErrorStatus"},{"name":"isWarning","type":"boolean"},{"name":"request","$ref":"AffectedRequest"},{"name":"location","$ref":"SourceCodeLocation","optional":true},{"name":"initiatorOrigin","type":"string","optional":true},{"name":"resourceIPAddressSpace","$ref":"Network.IPAddressSpace","optional":true},{"name":"clientSecurityState","$ref":"Network.ClientSecurityState","optional":true}]},{"id":"AttributionReportingIssueType","type":"string","enum":["PermissionPolicyDisabled","InvalidAttributionSourceEventId","InvalidAttributionData","AttributionSourceUntrustworthyOrigin","AttributionUntrustworthyOrigin","AttributionTriggerDataTooLarge","AttributionEventSourceTriggerDataTooLarge","InvalidAttributionSourceExpiry","InvalidAttributionSourcePriority","InvalidEventSourceTriggerData","InvalidTriggerPriority","InvalidTriggerDedupKey"]},{"id":"AttributionReportingIssueDetails","type":"object","description":"Details for issues around \"Attribution Reporting API\" usage. Explainer: https://github.com/WICG/conversion-measurement-api","properties":[{"name":"violationType","$ref":"AttributionReportingIssueType"},{"name":"frame","$ref":"AffectedFrame","optional":true},{"name":"request","$ref":"AffectedRequest","optional":true},{"name":"violatingNodeId","$ref":"DOM.BackendNodeId","optional":true},{"name":"invalidParameter","type":"string","optional":true}]},{"id":"QuirksModeIssueDetails","type":"object","description":"Details for issues about documents in Quirks Mode or Limited Quirks Mode that affects page layouting.","properties":[{"name":"isLimitedQuirksMode","type":"boolean","description":"If false, it means the document's mode is \"quirks\" instead of \"limited-quirks\"."},{"name":"documentNodeId","$ref":"DOM.BackendNodeId"},{"name":"url","type":"string"},{"name":"frameId","$ref":"Page.FrameId"},{"name":"loaderId","$ref":"Network.LoaderId"}]},{"id":"NavigatorUserAgentIssueDetails","type":"object","properties":[{"name":"url","type":"string"},{"name":"location","$ref":"SourceCodeLocation","optional":true}]},{"id":"GenericIssueErrorType","type":"string","enum":["CrossOriginPortalPostMessageError"]},{"id":"GenericIssueDetails","type":"object","description":"Depending on the concrete errorType, different properties are set.","properties":[{"name":"errorType","description":"Issues with the same errorType are aggregated in the frontend.","$ref":"GenericIssueErrorType"},{"name":"frameId","$ref":"Page.FrameId","optional":true}]},{"id":"DeprecationIssueDetails","type":"object","description":"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","properties":[{"name":"affectedFrame","$ref":"AffectedFrame","optional":true},{"name":"sourceCodeLocation","$ref":"SourceCodeLocation"},{"name":"message","type":"string","description":"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.\"","optional":true},{"name":"deprecationType","type":"string","description":"The id of an untranslated deprecation issue e.g. PrefixedStorageInfo."}]},{"id":"ClientHintIssueReason","type":"string","enum":["MetaTagAllowListInvalidOrigin","MetaTagModifiedHTML"]},{"id":"FederatedAuthRequestIssueDetails","type":"object","properties":[{"name":"federatedAuthRequestIssueReason","$ref":"FederatedAuthRequestIssueReason"}]},{"id":"FederatedAuthRequestIssueReason","type":"string","description":"Represents the failure reason when a federated authentication reason fails. Should be updated alongside RequestIdTokenStatus in third_party/blink/public/mojom/devtools/inspector_issue.mojom to include all cases except for success.","enum":["ApprovalDeclined","TooManyRequests","ManifestHttpNotFound","ManifestNoResponse","ManifestInvalidResponse","ClientMetadataHttpNotFound","ClientMetadataNoResponse","ClientMetadataInvalidResponse","ClientMetadataMissingPrivacyPolicyUrl","DisabledInSettings","ErrorFetchingSignin","InvalidSigninResponse","AccountsHttpNotFound","AccountsNoResponse","AccountsInvalidResponse","IdTokenHttpNotFound","IdTokenNoResponse","IdTokenInvalidResponse","IdTokenInvalidRequest","ErrorIdToken","Canceled"]},{"id":"ClientHintIssueDetails","type":"object","description":"This issue tracks client hints related issues. It's used to deprecate old features, encourage the use of new ones, and provide general guidance.","properties":[{"name":"sourceCodeLocation","$ref":"SourceCodeLocation"},{"name":"clientHintIssueReason","$ref":"ClientHintIssueReason"}]},{"id":"InspectorIssueCode","type":"string","description":"A unique identifier for the type of issue. Each type may use one of the optional fields in InspectorIssueDetails to convey more specific information about the kind of issue.","enum":["CookieIssue","MixedContentIssue","BlockedByResponseIssue","HeavyAdIssue","ContentSecurityPolicyIssue","SharedArrayBufferIssue","TrustedWebActivityIssue","LowTextContrastIssue","CorsIssue","AttributionReportingIssue","QuirksModeIssue","NavigatorUserAgentIssue","GenericIssue","DeprecationIssue","ClientHintIssue","FederatedAuthRequestIssue"]},{"id":"InspectorIssueDetails","type":"object","description":"This struct holds a list of optional fields with additional information specific to the kind of issue. When adding a new issue code, please also add a new optional field to this type.","properties":[{"name":"cookieIssueDetails","$ref":"CookieIssueDetails","optional":true},{"name":"mixedContentIssueDetails","$ref":"MixedContentIssueDetails","optional":true},{"name":"blockedByResponseIssueDetails","$ref":"BlockedByResponseIssueDetails","optional":true},{"name":"heavyAdIssueDetails","$ref":"HeavyAdIssueDetails","optional":true},{"name":"contentSecurityPolicyIssueDetails","$ref":"ContentSecurityPolicyIssueDetails","optional":true},{"name":"sharedArrayBufferIssueDetails","$ref":"SharedArrayBufferIssueDetails","optional":true},{"name":"twaQualityEnforcementDetails","$ref":"TrustedWebActivityIssueDetails","optional":true},{"name":"lowTextContrastIssueDetails","$ref":"LowTextContrastIssueDetails","optional":true},{"name":"corsIssueDetails","$ref":"CorsIssueDetails","optional":true},{"name":"attributionReportingIssueDetails","$ref":"AttributionReportingIssueDetails","optional":true},{"name":"quirksModeIssueDetails","$ref":"QuirksModeIssueDetails","optional":true},{"name":"navigatorUserAgentIssueDetails","$ref":"NavigatorUserAgentIssueDetails","optional":true},{"name":"genericIssueDetails","$ref":"GenericIssueDetails","optional":true},{"name":"deprecationIssueDetails","$ref":"DeprecationIssueDetails","optional":true},{"name":"clientHintIssueDetails","$ref":"ClientHintIssueDetails","optional":true},{"name":"federatedAuthRequestIssueDetails","$ref":"FederatedAuthRequestIssueDetails","optional":true}]},{"id":"IssueId","type":"string","description":"A unique id for a DevTools inspector issue. Allows other entities (e.g. exceptions, CDP message, console messages, etc.) to reference an issue."},{"id":"InspectorIssue","type":"object","description":"An inspector issue reported from the back-end.","properties":[{"name":"code","$ref":"InspectorIssueCode"},{"name":"details","$ref":"InspectorIssueDetails"},{"name":"issueId","description":"A unique id for this issue. May be omitted if no other entity (e.g. exception, CDP message, etc.) is referencing this issue.","$ref":"IssueId","optional":true}]}],"commands":[{"name":"getEncodedResponse","description":"Returns the response body and size if it were re-encoded with the specified settings. Only applies to images.","parameters":[{"name":"requestId","description":"Identifier of the network request to get content for.","$ref":"Network.RequestId"},{"name":"encoding","type":"string","description":"The encoding to use.","enum":["webp","jpeg","png"]},{"name":"quality","type":"number","description":"The quality of the encoding (0-1). (defaults to 1)","optional":true},{"name":"sizeOnly","type":"boolean","description":"Whether to only return the size information (defaults to false).","optional":true}],"returns":[{"name":"body","type":"string","description":"The encoded body as a base64 string. Omitted if sizeOnly is true. (Encoded as a base64 string when passed over JSON)"},{"name":"originalSize","type":"integer","description":"Size before re-encoding."},{"name":"encodedSize","type":"integer","description":"Size after re-encoding."}]},{"name":"disable","description":"Disables issues domain, prevents further issues from being reported to the client."},{"name":"enable","description":"Enables issues domain, sends the issues collected so far to the client by means of the `issueAdded` event."},{"name":"checkContrast","description":"Runs the contrast check for the target page. Found issues are reported using Audits.issueAdded event.","parameters":[{"name":"reportAAA","type":"boolean","description":"Whether to report WCAG AAA level issues. Default is false.","optional":true}]}],"events":[{"name":"issueAdded","parameters":[{"name":"issue","$ref":"InspectorIssue"}]}]},{"domain":"BackgroundService","description":"Defines events for background web platform features.","types":[{"id":"ServiceName","type":"string","description":"The Background Service that will be associated with the commands/events. Every Background Service operates independently, but they share the same API.","enum":["backgroundFetch","backgroundSync","pushMessaging","notifications","paymentHandler","periodicBackgroundSync"]},{"id":"EventMetadata","type":"object","description":"A key-value pair for additional event information to pass along.","properties":[{"name":"key","type":"string"},{"name":"value","type":"string"}]},{"id":"BackgroundServiceEvent","type":"object","properties":[{"name":"timestamp","description":"Timestamp of the event (in seconds).","$ref":"Network.TimeSinceEpoch"},{"name":"origin","type":"string","description":"The origin this event belongs to."},{"name":"serviceWorkerRegistrationId","description":"The Service Worker ID that initiated the event.","$ref":"ServiceWorker.RegistrationID"},{"name":"service","description":"The Background Service this event belongs to.","$ref":"ServiceName"},{"name":"eventName","type":"string","description":"A description of the event."},{"name":"instanceId","type":"string","description":"An identifier that groups related events together."},{"name":"eventMetadata","type":"array","description":"A list of event-specific information.","items":{"$ref":"EventMetadata"}}]}],"commands":[{"name":"startObserving","description":"Enables event updates for the service.","parameters":[{"name":"service","$ref":"ServiceName"}]},{"name":"stopObserving","description":"Disables event updates for the service.","parameters":[{"name":"service","$ref":"ServiceName"}]},{"name":"setRecording","description":"Set the recording state for the service.","parameters":[{"name":"shouldRecord","type":"boolean"},{"name":"service","$ref":"ServiceName"}]},{"name":"clearEvents","description":"Clears all stored data for the service.","parameters":[{"name":"service","$ref":"ServiceName"}]}],"events":[{"name":"recordingStateChanged","description":"Called when the recording state for the service has been updated.","parameters":[{"name":"isRecording","type":"boolean"},{"name":"service","$ref":"ServiceName"}]},{"name":"backgroundServiceEventReceived","description":"Called with all existing backgroundServiceEvents when enabled, and all new events afterwards if enabled and recording.","parameters":[{"name":"backgroundServiceEvent","$ref":"BackgroundServiceEvent"}]}]},{"domain":"Browser","description":"The Browser domain defines methods and events for browser managing.","types":[{"id":"BrowserContextID","type":"string"},{"id":"WindowID","type":"integer"},{"id":"WindowState","type":"string","description":"The state of the browser window.","enum":["normal","minimized","maximized","fullscreen"]},{"id":"Bounds","type":"object","description":"Browser window bounds information","properties":[{"name":"left","type":"integer","description":"The offset from the left edge of the screen to the window in pixels.","optional":true},{"name":"top","type":"integer","description":"The offset from the top edge of the screen to the window in pixels.","optional":true},{"name":"width","type":"integer","description":"The window width in pixels.","optional":true},{"name":"height","type":"integer","description":"The window height in pixels.","optional":true},{"name":"windowState","description":"The window state. Default to normal.","$ref":"WindowState","optional":true}]},{"id":"PermissionType","type":"string","enum":["accessibilityEvents","audioCapture","backgroundSync","backgroundFetch","clipboardReadWrite","clipboardSanitizedWrite","displayCapture","durableStorage","flash","geolocation","midi","midiSysex","nfc","notifications","paymentHandler","periodicBackgroundSync","protectedMediaIdentifier","sensors","videoCapture","videoCapturePanTiltZoom","idleDetection","wakeLockScreen","wakeLockSystem"]},{"id":"PermissionSetting","type":"string","enum":["granted","denied","prompt"]},{"id":"PermissionDescriptor","type":"object","description":"Definition of PermissionDescriptor defined in the Permissions API: https://w3c.github.io/permissions/#dictdef-permissiondescriptor.","properties":[{"name":"name","type":"string","description":"Name of permission. See https://cs.chromium.org/chromium/src/third_party/blink/renderer/modules/permissions/permission_descriptor.idl for valid permission names."},{"name":"sysex","type":"boolean","description":"For \"midi\" permission, may also specify sysex control.","optional":true},{"name":"userVisibleOnly","type":"boolean","description":"For \"push\" permission, may specify userVisibleOnly. Note that userVisibleOnly = true is the only currently supported type.","optional":true},{"name":"allowWithoutSanitization","type":"boolean","description":"For \"clipboard\" permission, may specify allowWithoutSanitization.","optional":true},{"name":"panTiltZoom","type":"boolean","description":"For \"camera\" permission, may specify panTiltZoom.","optional":true}]},{"id":"BrowserCommandId","type":"string","description":"Browser command ids used by executeBrowserCommand.","enum":["openTabSearch","closeTabSearch"]},{"id":"Bucket","type":"object","description":"Chrome histogram bucket.","properties":[{"name":"low","type":"integer","description":"Minimum value (inclusive)."},{"name":"high","type":"integer","description":"Maximum value (exclusive)."},{"name":"count","type":"integer","description":"Number of samples."}]},{"id":"Histogram","type":"object","description":"Chrome histogram.","properties":[{"name":"name","type":"string","description":"Name."},{"name":"sum","type":"integer","description":"Sum of sample values."},{"name":"count","type":"integer","description":"Total number of samples."},{"name":"buckets","type":"array","description":"Buckets.","items":{"$ref":"Bucket"}}]}],"commands":[{"name":"setPermission","description":"Set permission settings for given origin.","parameters":[{"name":"permission","description":"Descriptor of permission to override.","$ref":"PermissionDescriptor"},{"name":"setting","description":"Setting of the permission.","$ref":"PermissionSetting"},{"name":"origin","type":"string","description":"Origin the permission applies to, all origins if not specified.","optional":true},{"name":"browserContextId","description":"Context to override. When omitted, default browser context is used.","$ref":"BrowserContextID","optional":true}]},{"name":"grantPermissions","description":"Grant specific permissions to the given origin and reject all others.","parameters":[{"name":"permissions","type":"array","items":{"$ref":"PermissionType"}},{"name":"origin","type":"string","description":"Origin the permission applies to, all origins if not specified.","optional":true},{"name":"browserContextId","description":"BrowserContext to override permissions. When omitted, default browser context is used.","$ref":"BrowserContextID","optional":true}]},{"name":"resetPermissions","description":"Reset all permission management for all origins.","parameters":[{"name":"browserContextId","description":"BrowserContext to reset permissions. When omitted, default browser context is used.","$ref":"BrowserContextID","optional":true}]},{"name":"setDownloadBehavior","description":"Set the behavior when downloading a file.","parameters":[{"name":"behavior","type":"string","description":"Whether to allow all or deny all download requests, or use default Chrome behavior if available (otherwise deny). |allowAndName| allows download and names files according to their dowmload guids.","enum":["deny","allow","allowAndName","default"]},{"name":"browserContextId","description":"BrowserContext to set download behavior. When omitted, default browser context is used.","$ref":"BrowserContextID","optional":true},{"name":"downloadPath","type":"string","description":"The default path to save downloaded files to. This is required if behavior is set to 'allow' or 'allowAndName'.","optional":true},{"name":"eventsEnabled","type":"boolean","description":"Whether to emit download events (defaults to false).","optional":true}]},{"name":"cancelDownload","description":"Cancel a download if in progress","parameters":[{"name":"guid","type":"string","description":"Global unique identifier of the download."},{"name":"browserContextId","description":"BrowserContext to perform the action in. When omitted, default browser context is used.","$ref":"BrowserContextID","optional":true}]},{"name":"close","description":"Close browser gracefully."},{"name":"crash","description":"Crashes browser on the main thread."},{"name":"crashGpuProcess","description":"Crashes GPU process."},{"name":"getVersion","description":"Returns version information.","returns":[{"name":"protocolVersion","type":"string","description":"Protocol version."},{"name":"product","type":"string","description":"Product name."},{"name":"revision","type":"string","description":"Product revision."},{"name":"userAgent","type":"string","description":"User-Agent."},{"name":"jsVersion","type":"string","description":"V8 version."}]},{"name":"getBrowserCommandLine","description":"Returns the command line switches for the browser process if, and only if --enable-automation is on the commandline.","returns":[{"name":"arguments","type":"array","items":{"type":"string"},"description":"Commandline parameters"}]},{"name":"getHistograms","description":"Get Chrome histograms.","parameters":[{"name":"query","type":"string","description":"Requested substring in name. Only histograms which have query as a substring in their name are extracted. An empty or absent query returns all histograms.","optional":true},{"name":"delta","type":"boolean","description":"If true, retrieve delta since last call.","optional":true}],"returns":[{"name":"histograms","type":"array","items":{"$ref":"Histogram"},"description":"Histograms."}]},{"name":"getHistogram","description":"Get a Chrome histogram by name.","parameters":[{"name":"name","type":"string","description":"Requested histogram name."},{"name":"delta","type":"boolean","description":"If true, retrieve delta since last call.","optional":true}],"returns":[{"name":"histogram","$ref":"Histogram","description":"Histogram."}]},{"name":"getWindowBounds","description":"Get position and size of the browser window.","parameters":[{"name":"windowId","description":"Browser window id.","$ref":"WindowID"}],"returns":[{"name":"bounds","$ref":"Bounds","description":"Bounds information of the window. When window state is 'minimized', the restored window position and size are returned."}]},{"name":"getWindowForTarget","description":"Get the browser window that contains the devtools target.","parameters":[{"name":"targetId","description":"Devtools agent host id. If called as a part of the session, associated targetId is used.","$ref":"Target.TargetID","optional":true}],"returns":[{"name":"windowId","$ref":"WindowID","description":"Browser window id."},{"name":"bounds","$ref":"Bounds","description":"Bounds information of the window. When window state is 'minimized', the restored window position and size are returned."}]},{"name":"setWindowBounds","description":"Set position and/or size of the browser window.","parameters":[{"name":"windowId","description":"Browser window id.","$ref":"WindowID"},{"name":"bounds","description":"New window bounds. The 'minimized', 'maximized' and 'fullscreen' states cannot be combined with 'left', 'top', 'width' or 'height'. Leaves unspecified fields unchanged.","$ref":"Bounds"}]},{"name":"setDockTile","description":"Set dock tile details, platform-specific.","parameters":[{"name":"badgeLabel","type":"string","optional":true},{"name":"image","type":"string","description":"Png encoded image. (Encoded as a base64 string when passed over JSON)","optional":true}]},{"name":"executeBrowserCommand","description":"Invoke custom browser commands used by telemetry.","parameters":[{"name":"commandId","$ref":"BrowserCommandId"}]}],"events":[{"name":"downloadWillBegin","description":"Fired when page is about to start a download.","parameters":[{"name":"frameId","description":"Id of the frame that caused the download to begin.","$ref":"Page.FrameId"},{"name":"guid","type":"string","description":"Global unique identifier of the download."},{"name":"url","type":"string","description":"URL of the resource being downloaded."},{"name":"suggestedFilename","type":"string","description":"Suggested file name of the resource (the actual name of the file saved on disk may differ)."}]},{"name":"downloadProgress","description":"Fired when download makes progress. Last call has |done| == true.","parameters":[{"name":"guid","type":"string","description":"Global unique identifier of the download."},{"name":"totalBytes","type":"number","description":"Total expected bytes to download."},{"name":"receivedBytes","type":"number","description":"Total bytes received."},{"name":"state","type":"string","description":"Download status.","enum":["inProgress","completed","canceled"]}]}]},{"domain":"CSS","description":"This domain exposes CSS read/write operations. All CSS objects (stylesheets, rules, and styles) have an associated `id` used in subsequent operations on the related object. Each object type has a specific `id` structure, and those are not interchangeable between objects of different kinds. CSS objects can be loaded using the `get*ForNode()` calls (which accept a DOM node id). A client can also keep track of stylesheets via the `styleSheetAdded`/`styleSheetRemoved` events and subsequently load the required stylesheet contents using the `getStyleSheet[Text]()` methods.","types":[{"id":"StyleSheetId","type":"string"},{"id":"StyleSheetOrigin","type":"string","description":"Stylesheet type: \"injected\" for stylesheets injected via extension, \"user-agent\" for user-agent stylesheets, \"inspector\" for stylesheets created by the inspector (i.e. those holding the \"via inspector\" rules), \"regular\" for regular stylesheets.","enum":["injected","user-agent","inspector","regular"]},{"id":"PseudoElementMatches","type":"object","description":"CSS rule collection for a single pseudo style.","properties":[{"name":"pseudoType","description":"Pseudo element type.","$ref":"DOM.PseudoType"},{"name":"matches","type":"array","description":"Matches of CSS rules applicable to the pseudo style.","items":{"$ref":"RuleMatch"}}]},{"id":"InheritedStyleEntry","type":"object","description":"Inherited CSS rule collection from ancestor node.","properties":[{"name":"inlineStyle","description":"The ancestor node's inline style, if any, in the style inheritance chain.","$ref":"CSSStyle","optional":true},{"name":"matchedCSSRules","type":"array","description":"Matches of CSS rules matching the ancestor node in the style inheritance chain.","items":{"$ref":"RuleMatch"}}]},{"id":"InheritedPseudoElementMatches","type":"object","description":"Inherited pseudo element matches from pseudos of an ancestor node.","properties":[{"name":"pseudoElements","type":"array","description":"Matches of pseudo styles from the pseudos of an ancestor node.","items":{"$ref":"PseudoElementMatches"}}]},{"id":"RuleMatch","type":"object","description":"Match data for a CSS rule.","properties":[{"name":"rule","description":"CSS rule in the match.","$ref":"CSSRule"},{"name":"matchingSelectors","type":"array","description":"Matching selector indices in the rule's selectorList selectors (0-based).","items":{"type":"integer"}}]},{"id":"Value","type":"object","description":"Data for a simple selector (these are delimited by commas in a selector list).","properties":[{"name":"text","type":"string","description":"Value text."},{"name":"range","description":"Value range in the underlying resource (if available).","$ref":"SourceRange","optional":true}]},{"id":"SelectorList","type":"object","description":"Selector list data.","properties":[{"name":"selectors","type":"array","description":"Selectors in the list.","items":{"$ref":"Value"}},{"name":"text","type":"string","description":"Rule selector text."}]},{"id":"CSSStyleSheetHeader","type":"object","description":"CSS stylesheet metainformation.","properties":[{"name":"styleSheetId","description":"The stylesheet identifier.","$ref":"StyleSheetId"},{"name":"frameId","description":"Owner frame identifier.","$ref":"Page.FrameId"},{"name":"sourceURL","type":"string","description":"Stylesheet resource URL. Empty if this is a constructed stylesheet created using new CSSStyleSheet() (but non-empty if this is a constructed sylesheet imported as a CSS module script)."},{"name":"sourceMapURL","type":"string","description":"URL of source map associated with the stylesheet (if any).","optional":true},{"name":"origin","description":"Stylesheet origin.","$ref":"StyleSheetOrigin"},{"name":"title","type":"string","description":"Stylesheet title."},{"name":"ownerNode","description":"The backend id for the owner node of the stylesheet.","$ref":"DOM.BackendNodeId","optional":true},{"name":"disabled","type":"boolean","description":"Denotes whether the stylesheet is disabled."},{"name":"hasSourceURL","type":"boolean","description":"Whether the sourceURL field value comes from the sourceURL comment.","optional":true},{"name":"isInline","type":"boolean","description":"Whether this stylesheet is created for STYLE tag by parser. This flag is not set for document.written STYLE tags."},{"name":"isMutable","type":"boolean","description":"Whether this stylesheet is mutable. Inline stylesheets become mutable after they have been modified via CSSOM API. \u003clink\u003e element's stylesheets become mutable only if DevTools modifies them. Constructed stylesheets (new CSSStyleSheet()) are mutable immediately after creation."},{"name":"isConstructed","type":"boolean","description":"True if this stylesheet is created through new CSSStyleSheet() or imported as a CSS module script."},{"name":"startLine","type":"number","description":"Line offset of the stylesheet within the resource (zero based)."},{"name":"startColumn","type":"number","description":"Column offset of the stylesheet within the resource (zero based)."},{"name":"length","type":"number","description":"Size of the content (in characters)."},{"name":"endLine","type":"number","description":"Line offset of the end of the stylesheet within the resource (zero based)."},{"name":"endColumn","type":"number","description":"Column offset of the end of the stylesheet within the resource (zero based)."}]},{"id":"CSSRule","type":"object","description":"CSS rule representation.","properties":[{"name":"styleSheetId","description":"The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.","$ref":"StyleSheetId","optional":true},{"name":"selectorList","description":"Rule selector data.","$ref":"SelectorList"},{"name":"origin","description":"Parent stylesheet's origin.","$ref":"StyleSheetOrigin"},{"name":"style","description":"Associated style declaration.","$ref":"CSSStyle"},{"name":"media","type":"array","description":"Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards.","optional":true,"items":{"$ref":"CSSMedia"}},{"name":"containerQueries","type":"array","description":"Container query list array (for rules involving container queries). The array enumerates container queries starting with the innermost one, going outwards.","optional":true,"items":{"$ref":"CSSContainerQuery"}},{"name":"supports","type":"array","description":"@supports CSS at-rule array. The array enumerates @supports at-rules starting with the innermost one, going outwards.","optional":true,"items":{"$ref":"CSSSupports"}},{"name":"layers","type":"array","description":"Cascade layer array. Contains the layer hierarchy that this rule belongs to starting with the innermost layer and going outwards.","optional":true,"items":{"$ref":"CSSLayer"}}]},{"id":"RuleUsage","type":"object","description":"CSS coverage information.","properties":[{"name":"styleSheetId","description":"The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.","$ref":"StyleSheetId"},{"name":"startOffset","type":"number","description":"Offset of the start of the rule (including selector) from the beginning of the stylesheet."},{"name":"endOffset","type":"number","description":"Offset of the end of the rule body from the beginning of the stylesheet."},{"name":"used","type":"boolean","description":"Indicates whether the rule was actually used by some element in the page."}]},{"id":"SourceRange","type":"object","description":"Text range within a resource. All numbers are zero-based.","properties":[{"name":"startLine","type":"integer","description":"Start line of range."},{"name":"startColumn","type":"integer","description":"Start column of range (inclusive)."},{"name":"endLine","type":"integer","description":"End line of range"},{"name":"endColumn","type":"integer","description":"End column of range (exclusive)."}]},{"id":"ShorthandEntry","type":"object","properties":[{"name":"name","type":"string","description":"Shorthand name."},{"name":"value","type":"string","description":"Shorthand value."},{"name":"important","type":"boolean","description":"Whether the property has \"!important\" annotation (implies `false` if absent).","optional":true}]},{"id":"CSSComputedStyleProperty","type":"object","properties":[{"name":"name","type":"string","description":"Computed style property name."},{"name":"value","type":"string","description":"Computed style property value."}]},{"id":"CSSStyle","type":"object","description":"CSS style representation.","properties":[{"name":"styleSheetId","description":"The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.","$ref":"StyleSheetId","optional":true},{"name":"cssProperties","type":"array","description":"CSS properties in the style.","items":{"$ref":"CSSProperty"}},{"name":"shorthandEntries","type":"array","description":"Computed values for all shorthands found in the style.","items":{"$ref":"ShorthandEntry"}},{"name":"cssText","type":"string","description":"Style declaration text (if available).","optional":true},{"name":"range","description":"Style declaration range in the enclosing stylesheet (if available).","$ref":"SourceRange","optional":true}]},{"id":"CSSProperty","type":"object","description":"CSS property declaration data.","properties":[{"name":"name","type":"string","description":"The property name."},{"name":"value","type":"string","description":"The property value."},{"name":"important","type":"boolean","description":"Whether the property has \"!important\" annotation (implies `false` if absent).","optional":true},{"name":"implicit","type":"boolean","description":"Whether the property is implicit (implies `false` if absent).","optional":true},{"name":"text","type":"string","description":"The full property text as specified in the style.","optional":true},{"name":"parsedOk","type":"boolean","description":"Whether the property is understood by the browser (implies `true` if absent).","optional":true},{"name":"disabled","type":"boolean","description":"Whether the property is disabled by the user (present for source-based properties only).","optional":true},{"name":"range","description":"The entire property range in the enclosing style declaration (if available).","$ref":"SourceRange","optional":true}]},{"id":"CSSMedia","type":"object","description":"CSS media rule descriptor.","properties":[{"name":"text","type":"string","description":"Media query text."},{"name":"source","type":"string","description":"Source of the media query: \"mediaRule\" if specified by a @media rule, \"importRule\" if specified by an @import rule, \"linkedSheet\" if specified by a \"media\" attribute in a linked stylesheet's LINK tag, \"inlineSheet\" if specified by a \"media\" attribute in an inline stylesheet's STYLE tag.","enum":["mediaRule","importRule","linkedSheet","inlineSheet"]},{"name":"sourceURL","type":"string","description":"URL of the document containing the media query description.","optional":true},{"name":"range","description":"The associated rule (@media or @import) header range in the enclosing stylesheet (if available).","$ref":"SourceRange","optional":true},{"name":"styleSheetId","description":"Identifier of the stylesheet containing this object (if exists).","$ref":"StyleSheetId","optional":true},{"name":"mediaList","type":"array","description":"Array of media queries.","optional":true,"items":{"$ref":"MediaQuery"}}]},{"id":"MediaQuery","type":"object","description":"Media query descriptor.","properties":[{"name":"expressions","type":"array","description":"Array of media query expressions.","items":{"$ref":"MediaQueryExpression"}},{"name":"active","type":"boolean","description":"Whether the media query condition is satisfied."}]},{"id":"MediaQueryExpression","type":"object","description":"Media query expression descriptor.","properties":[{"name":"value","type":"number","description":"Media query expression value."},{"name":"unit","type":"string","description":"Media query expression units."},{"name":"feature","type":"string","description":"Media query expression feature."},{"name":"valueRange","description":"The associated range of the value text in the enclosing stylesheet (if available).","$ref":"SourceRange","optional":true},{"name":"computedLength","type":"number","description":"Computed length of media query expression (if applicable).","optional":true}]},{"id":"CSSContainerQuery","type":"object","description":"CSS container query rule descriptor.","properties":[{"name":"text","type":"string","description":"Container query text."},{"name":"range","description":"The associated rule header range in the enclosing stylesheet (if available).","$ref":"SourceRange","optional":true},{"name":"styleSheetId","description":"Identifier of the stylesheet containing this object (if exists).","$ref":"StyleSheetId","optional":true},{"name":"name","type":"string","description":"Optional name for the container.","optional":true}]},{"id":"CSSSupports","type":"object","description":"CSS Supports at-rule descriptor.","properties":[{"name":"text","type":"string","description":"Supports rule text."},{"name":"active","type":"boolean","description":"Whether the supports condition is satisfied."},{"name":"range","description":"The associated rule header range in the enclosing stylesheet (if available).","$ref":"SourceRange","optional":true},{"name":"styleSheetId","description":"Identifier of the stylesheet containing this object (if exists).","$ref":"StyleSheetId","optional":true}]},{"id":"CSSLayer","type":"object","description":"CSS Layer at-rule descriptor.","properties":[{"name":"text","type":"string","description":"Layer name."},{"name":"range","description":"The associated rule header range in the enclosing stylesheet (if available).","$ref":"SourceRange","optional":true},{"name":"styleSheetId","description":"Identifier of the stylesheet containing this object (if exists).","$ref":"StyleSheetId","optional":true}]},{"id":"CSSLayerData","type":"object","description":"CSS Layer data.","properties":[{"name":"name","type":"string","description":"Layer name."},{"name":"subLayers","type":"array","description":"Direct sub-layers","optional":true,"items":{"$ref":"CSSLayerData"}},{"name":"order","type":"number","description":"Layer order. The order determines the order of the layer in the cascade order. A higher number has higher priority in the cascade order."}]},{"id":"PlatformFontUsage","type":"object","description":"Information about amount of glyphs that were rendered with given font.","properties":[{"name":"familyName","type":"string","description":"Font's family name reported by platform."},{"name":"isCustomFont","type":"boolean","description":"Indicates if the font was downloaded or resolved locally."},{"name":"glyphCount","type":"number","description":"Amount of glyphs that were rendered with this font."}]},{"id":"FontVariationAxis","type":"object","description":"Information about font variation axes for variable fonts","properties":[{"name":"tag","type":"string","description":"The font-variation-setting tag (a.k.a. \"axis tag\")."},{"name":"name","type":"string","description":"Human-readable variation name in the default language (normally, \"en\")."},{"name":"minValue","type":"number","description":"The minimum value (inclusive) the font supports for this tag."},{"name":"maxValue","type":"number","description":"The maximum value (inclusive) the font supports for this tag."},{"name":"defaultValue","type":"number","description":"The default value."}]},{"id":"FontFace","type":"object","description":"Properties of a web font: https://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html#font-descriptions and additional information such as platformFontFamily and fontVariationAxes.","properties":[{"name":"fontFamily","type":"string","description":"The font-family."},{"name":"fontStyle","type":"string","description":"The font-style."},{"name":"fontVariant","type":"string","description":"The font-variant."},{"name":"fontWeight","type":"string","description":"The font-weight."},{"name":"fontStretch","type":"string","description":"The font-stretch."},{"name":"unicodeRange","type":"string","description":"The unicode-range."},{"name":"src","type":"string","description":"The src."},{"name":"platformFontFamily","type":"string","description":"The resolved platform font family"},{"name":"fontVariationAxes","type":"array","description":"Available variation settings (a.k.a. \"axes\").","optional":true,"items":{"$ref":"FontVariationAxis"}}]},{"id":"CSSKeyframesRule","type":"object","description":"CSS keyframes rule representation.","properties":[{"name":"animationName","description":"Animation name.","$ref":"Value"},{"name":"keyframes","type":"array","description":"List of keyframes.","items":{"$ref":"CSSKeyframeRule"}}]},{"id":"CSSKeyframeRule","type":"object","description":"CSS keyframe rule representation.","properties":[{"name":"styleSheetId","description":"The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.","$ref":"StyleSheetId","optional":true},{"name":"origin","description":"Parent stylesheet's origin.","$ref":"StyleSheetOrigin"},{"name":"keyText","description":"Associated key text.","$ref":"Value"},{"name":"style","description":"Associated style declaration.","$ref":"CSSStyle"}]},{"id":"StyleDeclarationEdit","type":"object","description":"A descriptor of operation to mutate style declaration text.","properties":[{"name":"styleSheetId","description":"The css style sheet identifier.","$ref":"StyleSheetId"},{"name":"range","description":"The range of the style text in the enclosing stylesheet.","$ref":"SourceRange"},{"name":"text","type":"string","description":"New style text."}]}],"commands":[{"name":"addRule","description":"Inserts a new rule with the given `ruleText` in a stylesheet with given `styleSheetId`, at the position specified by `location`.","parameters":[{"name":"styleSheetId","description":"The css style sheet identifier where a new rule should be inserted.","$ref":"StyleSheetId"},{"name":"ruleText","type":"string","description":"The text of a new rule."},{"name":"location","description":"Text position of a new rule in the target style sheet.","$ref":"SourceRange"}],"returns":[{"name":"rule","$ref":"CSSRule","description":"The newly created rule."}]},{"name":"collectClassNames","description":"Returns all class names from specified stylesheet.","parameters":[{"name":"styleSheetId","$ref":"StyleSheetId"}],"returns":[{"name":"classNames","type":"array","items":{"type":"string"},"description":"Class name list."}]},{"name":"createStyleSheet","description":"Creates a new special \"via-inspector\" stylesheet in the frame with given `frameId`.","parameters":[{"name":"frameId","description":"Identifier of the frame where \"via-inspector\" stylesheet should be created.","$ref":"Page.FrameId"}],"returns":[{"name":"styleSheetId","$ref":"StyleSheetId","description":"Identifier of the created \"via-inspector\" stylesheet."}]},{"name":"disable","description":"Disables the CSS agent for the given page."},{"name":"enable","description":"Enables the CSS agent for the given page. Clients should not assume that the CSS agent has been enabled until the result of this command is received."},{"name":"forcePseudoState","description":"Ensures that the given node will have specified pseudo-classes whenever its style is computed by the browser.","parameters":[{"name":"nodeId","description":"The element id for which to force the pseudo state.","$ref":"DOM.NodeId"},{"name":"forcedPseudoClasses","type":"array","description":"Element pseudo classes to force when computing the element's style.","items":{"type":"string"}}]},{"name":"getBackgroundColors","parameters":[{"name":"nodeId","description":"Id of the node to get background colors for.","$ref":"DOM.NodeId"}],"returns":[{"name":"backgroundColors","type":"array","items":{"type":"string"},"description":"The range of background colors behind this element, if it contains any visible text. If no visible text is present, this will be undefined. In the case of a flat background color, this will consist of simply that color. In the case of a gradient, this will consist of each of the color stops. For anything more complicated, this will be an empty array. Images will be ignored (as if the image had failed to load)."},{"name":"computedFontSize","type":"string","description":"The computed font size for this node, as a CSS computed value string (e.g. '12px')."},{"name":"computedFontWeight","type":"string","description":"The computed font weight for this node, as a CSS computed value string (e.g. 'normal' or '100')."}]},{"name":"getComputedStyleForNode","description":"Returns the computed style for a DOM node identified by `nodeId`.","parameters":[{"name":"nodeId","$ref":"DOM.NodeId"}],"returns":[{"name":"computedStyle","type":"array","items":{"$ref":"CSSComputedStyleProperty"},"description":"Computed style for the specified DOM node."}]},{"name":"getInlineStylesForNode","description":"Returns the styles defined inline (explicitly in the \"style\" attribute and implicitly, using DOM attributes) for a DOM node identified by `nodeId`.","parameters":[{"name":"nodeId","$ref":"DOM.NodeId"}],"returns":[{"name":"inlineStyle","$ref":"CSSStyle","description":"Inline style for the specified DOM node."},{"name":"attributesStyle","$ref":"CSSStyle","description":"Attribute-defined element style (e.g. resulting from \"width=20 height=100%\")."}]},{"name":"getMatchedStylesForNode","description":"Returns requested styles for a DOM node identified by `nodeId`.","parameters":[{"name":"nodeId","$ref":"DOM.NodeId"}],"returns":[{"name":"inlineStyle","$ref":"CSSStyle","description":"Inline style for the specified DOM node."},{"name":"attributesStyle","$ref":"CSSStyle","description":"Attribute-defined element style (e.g. resulting from \"width=20 height=100%\")."},{"name":"matchedCSSRules","type":"array","items":{"$ref":"RuleMatch"},"description":"CSS rules matching this node, from all applicable stylesheets."},{"name":"pseudoElements","type":"array","items":{"$ref":"PseudoElementMatches"},"description":"Pseudo style matches for this node."},{"name":"inherited","type":"array","items":{"$ref":"InheritedStyleEntry"},"description":"A chain of inherited styles (from the immediate node parent up to the DOM tree root)."},{"name":"inheritedPseudoElements","type":"array","items":{"$ref":"InheritedPseudoElementMatches"},"description":"A chain of inherited pseudo element styles (from the immediate node parent up to the DOM tree root)."},{"name":"cssKeyframesRules","type":"array","items":{"$ref":"CSSKeyframesRule"},"description":"A list of CSS keyframed animations matching this node."}]},{"name":"getMediaQueries","description":"Returns all media queries parsed by the rendering engine.","returns":[{"name":"medias","type":"array","items":{"$ref":"CSSMedia"}}]},{"name":"getPlatformFontsForNode","description":"Requests information about platform fonts which we used to render child TextNodes in the given node.","parameters":[{"name":"nodeId","$ref":"DOM.NodeId"}],"returns":[{"name":"fonts","type":"array","items":{"$ref":"PlatformFontUsage"},"description":"Usage statistics for every employed platform font."}]},{"name":"getStyleSheetText","description":"Returns the current textual content for a stylesheet.","parameters":[{"name":"styleSheetId","$ref":"StyleSheetId"}],"returns":[{"name":"text","type":"string","description":"The stylesheet text."}]},{"name":"getLayersForNode","description":"Returns all layers parsed by the rendering engine for the tree scope of a node. Given a DOM element identified by nodeId, getLayersForNode returns the root layer for the nearest ancestor document or shadow root. The layer root contains the full layer tree for the tree scope and their ordering.","parameters":[{"name":"nodeId","$ref":"DOM.NodeId"}],"returns":[{"name":"rootLayer","$ref":"CSSLayerData"}]},{"name":"trackComputedStyleUpdates","description":"Starts tracking the given computed styles for updates. The specified array of properties replaces the one previously specified. Pass empty array to disable tracking. Use takeComputedStyleUpdates to retrieve the list of nodes that had properties modified. The changes to computed style properties are only tracked for nodes pushed to the front-end by the DOM agent. If no changes to the tracked properties occur after the node has been pushed to the front-end, no updates will be issued for the node.","parameters":[{"name":"propertiesToTrack","type":"array","items":{"$ref":"CSSComputedStyleProperty"}}]},{"name":"takeComputedStyleUpdates","description":"Polls the next batch of computed style updates.","returns":[{"name":"nodeIds","type":"array","items":{"$ref":"DOM.NodeId"},"description":"The list of node Ids that have their tracked computed styles updated"}]},{"name":"setEffectivePropertyValueForNode","description":"Find a rule with the given active property for the given node and set the new value for this property","parameters":[{"name":"nodeId","description":"The element id for which to set property.","$ref":"DOM.NodeId"},{"name":"propertyName","type":"string"},{"name":"value","type":"string"}]},{"name":"setKeyframeKey","description":"Modifies the keyframe rule key text.","parameters":[{"name":"styleSheetId","$ref":"StyleSheetId"},{"name":"range","$ref":"SourceRange"},{"name":"keyText","type":"string"}],"returns":[{"name":"keyText","$ref":"Value","description":"The resulting key text after modification."}]},{"name":"setMediaText","description":"Modifies the rule selector.","parameters":[{"name":"styleSheetId","$ref":"StyleSheetId"},{"name":"range","$ref":"SourceRange"},{"name":"text","type":"string"}],"returns":[{"name":"media","$ref":"CSSMedia","description":"The resulting CSS media rule after modification."}]},{"name":"setContainerQueryText","description":"Modifies the expression of a container query.","parameters":[{"name":"styleSheetId","$ref":"StyleSheetId"},{"name":"range","$ref":"SourceRange"},{"name":"text","type":"string"}],"returns":[{"name":"containerQuery","$ref":"CSSContainerQuery","description":"The resulting CSS container query rule after modification."}]},{"name":"setSupportsText","description":"Modifies the expression of a supports at-rule.","parameters":[{"name":"styleSheetId","$ref":"StyleSheetId"},{"name":"range","$ref":"SourceRange"},{"name":"text","type":"string"}],"returns":[{"name":"supports","$ref":"CSSSupports","description":"The resulting CSS Supports rule after modification."}]},{"name":"setRuleSelector","description":"Modifies the rule selector.","parameters":[{"name":"styleSheetId","$ref":"StyleSheetId"},{"name":"range","$ref":"SourceRange"},{"name":"selector","type":"string"}],"returns":[{"name":"selectorList","$ref":"SelectorList","description":"The resulting selector list after modification."}]},{"name":"setStyleSheetText","description":"Sets the new stylesheet text.","parameters":[{"name":"styleSheetId","$ref":"StyleSheetId"},{"name":"text","type":"string"}],"returns":[{"name":"sourceMapURL","type":"string","description":"URL of source map associated with script (if any)."}]},{"name":"setStyleTexts","description":"Applies specified style edits one after another in the given order.","parameters":[{"name":"edits","type":"array","items":{"$ref":"StyleDeclarationEdit"}}],"returns":[{"name":"styles","type":"array","items":{"$ref":"CSSStyle"},"description":"The resulting styles after modification."}]},{"name":"startRuleUsageTracking","description":"Enables the selector recording."},{"name":"stopRuleUsageTracking","description":"Stop tracking rule usage and return the list of rules that were used since last call to `takeCoverageDelta` (or since start of coverage instrumentation)","returns":[{"name":"ruleUsage","type":"array","items":{"$ref":"RuleUsage"}}]},{"name":"takeCoverageDelta","description":"Obtain list of rules that became used since last call to this method (or since start of coverage instrumentation)","returns":[{"name":"coverage","type":"array","items":{"$ref":"RuleUsage"}},{"name":"timestamp","type":"number","description":"Monotonically increasing time, in seconds."}]},{"name":"setLocalFontsEnabled","description":"Enables/disables rendering of local CSS fonts (enabled by default).","parameters":[{"name":"enabled","type":"boolean","description":"Whether rendering of local fonts is enabled."}]}],"events":[{"name":"fontsUpdated","description":"Fires whenever a web font is updated. A non-empty font parameter indicates a successfully loaded web font","parameters":[{"name":"font","description":"The web font that has loaded.","$ref":"FontFace","optional":true}]},{"name":"mediaQueryResultChanged","description":"Fires whenever a MediaQuery result changes (for example, after a browser window has been resized.) The current implementation considers only viewport-dependent media features."},{"name":"styleSheetAdded","description":"Fired whenever an active document stylesheet is added.","parameters":[{"name":"header","description":"Added stylesheet metainfo.","$ref":"CSSStyleSheetHeader"}]},{"name":"styleSheetChanged","description":"Fired whenever a stylesheet is changed as a result of the client operation.","parameters":[{"name":"styleSheetId","$ref":"StyleSheetId"}]},{"name":"styleSheetRemoved","description":"Fired whenever an active document stylesheet is removed.","parameters":[{"name":"styleSheetId","description":"Identifier of the removed stylesheet.","$ref":"StyleSheetId"}]}]},{"domain":"CacheStorage","types":[{"id":"CacheId","type":"string","description":"Unique identifier of the Cache object."},{"id":"CachedResponseType","type":"string","description":"type of HTTP response cached","enum":["basic","cors","default","error","opaqueResponse","opaqueRedirect"]},{"id":"DataEntry","type":"object","description":"Data entry.","properties":[{"name":"requestURL","type":"string","description":"Request URL."},{"name":"requestMethod","type":"string","description":"Request method."},{"name":"requestHeaders","type":"array","description":"Request headers","items":{"$ref":"Header"}},{"name":"responseTime","type":"number","description":"Number of seconds since epoch."},{"name":"responseStatus","type":"integer","description":"HTTP response status code."},{"name":"responseStatusText","type":"string","description":"HTTP response status text."},{"name":"responseType","description":"HTTP response type","$ref":"CachedResponseType"},{"name":"responseHeaders","type":"array","description":"Response headers","items":{"$ref":"Header"}}]},{"id":"Cache","type":"object","description":"Cache identifier.","properties":[{"name":"cacheId","description":"An opaque unique id of the cache.","$ref":"CacheId"},{"name":"securityOrigin","type":"string","description":"Security origin of the cache."},{"name":"cacheName","type":"string","description":"The name of the cache."}]},{"id":"Header","type":"object","properties":[{"name":"name","type":"string"},{"name":"value","type":"string"}]},{"id":"CachedResponse","type":"object","description":"Cached response","properties":[{"name":"body","type":"string","description":"Entry content, base64-encoded. (Encoded as a base64 string when passed over JSON)"}]}],"commands":[{"name":"deleteCache","description":"Deletes a cache.","parameters":[{"name":"cacheId","description":"Id of cache for deletion.","$ref":"CacheId"}]},{"name":"deleteEntry","description":"Deletes a cache entry.","parameters":[{"name":"cacheId","description":"Id of cache where the entry will be deleted.","$ref":"CacheId"},{"name":"request","type":"string","description":"URL spec of the request."}]},{"name":"requestCacheNames","description":"Requests cache names.","parameters":[{"name":"securityOrigin","type":"string","description":"Security origin."}],"returns":[{"name":"caches","type":"array","items":{"$ref":"Cache"},"description":"Caches for the security origin."}]},{"name":"requestCachedResponse","description":"Fetches cache entry.","parameters":[{"name":"cacheId","description":"Id of cache that contains the entry.","$ref":"CacheId"},{"name":"requestURL","type":"string","description":"URL spec of the request."},{"name":"requestHeaders","type":"array","description":"headers of the request.","items":{"$ref":"Header"}}],"returns":[{"name":"response","$ref":"CachedResponse","description":"Response read from the cache."}]},{"name":"requestEntries","description":"Requests data from cache.","parameters":[{"name":"cacheId","description":"ID of cache to get entries from.","$ref":"CacheId"},{"name":"skipCount","type":"integer","description":"Number of records to skip.","optional":true},{"name":"pageSize","type":"integer","description":"Number of records to fetch.","optional":true},{"name":"pathFilter","type":"string","description":"If present, only return the entries containing this substring in the path","optional":true}],"returns":[{"name":"cacheDataEntries","type":"array","items":{"$ref":"DataEntry"},"description":"Array of object store data entries."},{"name":"returnCount","type":"number","description":"Count of returned entries from this storage. If pathFilter is empty, it is the count of all entries from this storage."}]}]},{"domain":"Cast","description":"A domain for interacting with Cast, Presentation API, and Remote Playback API functionalities.","types":[{"id":"Sink","type":"object","properties":[{"name":"name","type":"string"},{"name":"id","type":"string"},{"name":"session","type":"string","description":"Text describing the current session. Present only if there is an active session on the sink.","optional":true}]}],"commands":[{"name":"enable","description":"Starts observing for sinks that can be used for tab mirroring, and if set, sinks compatible with |presentationUrl| as well. When sinks are found, a |sinksUpdated| event is fired. Also starts observing for issue messages. When an issue is added or removed, an |issueUpdated| event is fired.","parameters":[{"name":"presentationUrl","type":"string","optional":true}]},{"name":"disable","description":"Stops observing for sinks and issues."},{"name":"setSinkToUse","description":"Sets a sink to be used when the web page requests the browser to choose a sink via Presentation API, Remote Playback API, or Cast SDK.","parameters":[{"name":"sinkName","type":"string"}]},{"name":"startDesktopMirroring","description":"Starts mirroring the desktop to the sink.","parameters":[{"name":"sinkName","type":"string"}]},{"name":"startTabMirroring","description":"Starts mirroring the tab to the sink.","parameters":[{"name":"sinkName","type":"string"}]},{"name":"stopCasting","description":"Stops the active Cast session on the sink.","parameters":[{"name":"sinkName","type":"string"}]}],"events":[{"name":"sinksUpdated","description":"This is fired whenever the list of available sinks changes. A sink is a device or a software surface that you can cast to.","parameters":[{"name":"sinks","type":"array","items":{"$ref":"Sink"}}]},{"name":"issueUpdated","description":"This is fired whenever the outstanding issue/error message changes. |issueMessage| is empty if there is no issue.","parameters":[{"name":"issueMessage","type":"string"}]}]},{"domain":"DOM","description":"This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object that has an `id`. This `id` can be used to get additional information on the Node, resolve it into the JavaScript object wrapper, etc. It is important that client receives DOM events only for the nodes that are known to the client. Backend keeps track of the nodes that were sent to the client and never sends the same node twice. It is client's responsibility to collect information about the nodes that were sent to the client.\u003cp\u003eNote that `iframe` owner elements will return corresponding document elements as their child nodes.\u003c/p\u003e","types":[{"id":"NodeId","type":"integer","description":"Unique DOM node identifier."},{"id":"BackendNodeId","type":"integer","description":"Unique DOM node identifier used to reference a node that may not have been pushed to the front-end."},{"id":"BackendNode","type":"object","description":"Backend node with a friendly name.","properties":[{"name":"nodeType","type":"integer","description":"`Node`'s nodeType."},{"name":"nodeName","type":"string","description":"`Node`'s nodeName."},{"name":"backendNodeId","$ref":"BackendNodeId"}]},{"id":"PseudoType","type":"string","description":"Pseudo element type.","enum":["first-line","first-letter","before","after","marker","backdrop","selection","target-text","spelling-error","grammar-error","highlight","first-line-inherited","scrollbar","scrollbar-thumb","scrollbar-button","scrollbar-track","scrollbar-track-piece","scrollbar-corner","resizer","input-list-button","page-transition","page-transition-container","page-transition-image-wrapper","page-transition-outgoing-image","page-transition-incoming-image"]},{"id":"ShadowRootType","type":"string","description":"Shadow root type.","enum":["user-agent","open","closed"]},{"id":"CompatibilityMode","type":"string","description":"Document compatibility mode.","enum":["QuirksMode","LimitedQuirksMode","NoQuirksMode"]},{"id":"Node","type":"object","description":"DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type.","properties":[{"name":"nodeId","description":"Node identifier that is passed into the rest of the DOM messages as the `nodeId`. Backend will only push node with given `id` once. It is aware of all requested nodes and will only fire DOM events for nodes known to the client.","$ref":"NodeId"},{"name":"parentId","description":"The id of the parent node if any.","$ref":"NodeId","optional":true},{"name":"backendNodeId","description":"The BackendNodeId for this node.","$ref":"BackendNodeId"},{"name":"nodeType","type":"integer","description":"`Node`'s nodeType."},{"name":"nodeName","type":"string","description":"`Node`'s nodeName."},{"name":"localName","type":"string","description":"`Node`'s localName."},{"name":"nodeValue","type":"string","description":"`Node`'s nodeValue."},{"name":"childNodeCount","type":"integer","description":"Child count for `Container` nodes.","optional":true},{"name":"children","type":"array","description":"Child nodes of this node when requested with children.","optional":true,"items":{"$ref":"Node"}},{"name":"attributes","type":"array","description":"Attributes of the `Element` node in the form of flat array `[name1, value1, name2, value2]`.","optional":true,"items":{"type":"string"}},{"name":"documentURL","type":"string","description":"Document URL that `Document` or `FrameOwner` node points to.","optional":true},{"name":"baseURL","type":"string","description":"Base URL that `Document` or `FrameOwner` node uses for URL completion.","optional":true},{"name":"publicId","type":"string","description":"`DocumentType`'s publicId.","optional":true},{"name":"systemId","type":"string","description":"`DocumentType`'s systemId.","optional":true},{"name":"internalSubset","type":"string","description":"`DocumentType`'s internalSubset.","optional":true},{"name":"xmlVersion","type":"string","description":"`Document`'s XML version in case of XML documents.","optional":true},{"name":"name","type":"string","description":"`Attr`'s name.","optional":true},{"name":"value","type":"string","description":"`Attr`'s value.","optional":true},{"name":"pseudoType","description":"Pseudo element type for this node.","$ref":"PseudoType","optional":true},{"name":"shadowRootType","description":"Shadow root type.","$ref":"ShadowRootType","optional":true},{"name":"frameId","description":"Frame ID for frame owner elements.","$ref":"Page.FrameId","optional":true},{"name":"contentDocument","description":"Content document for frame owner elements.","$ref":"Node","optional":true},{"name":"shadowRoots","type":"array","description":"Shadow root list for given element host.","optional":true,"items":{"$ref":"Node"}},{"name":"templateContent","description":"Content document fragment for template elements.","$ref":"Node","optional":true},{"name":"pseudoElements","type":"array","description":"Pseudo elements associated with this node.","optional":true,"items":{"$ref":"Node"}},{"name":"importedDocument","description":"Deprecated, as the HTML Imports API has been removed (crbug.com/937746). This property used to return the imported document for the HTMLImport links. The property is always undefined now.","$ref":"Node","optional":true},{"name":"distributedNodes","type":"array","description":"Distributed nodes for given insertion point.","optional":true,"items":{"$ref":"BackendNode"}},{"name":"isSVG","type":"boolean","description":"Whether the node is SVG.","optional":true},{"name":"compatibilityMode","$ref":"CompatibilityMode","optional":true}]},{"id":"RGBA","type":"object","description":"A structure holding an RGBA color.","properties":[{"name":"r","type":"integer","description":"The red component, in the [0-255] range."},{"name":"g","type":"integer","description":"The green component, in the [0-255] range."},{"name":"b","type":"integer","description":"The blue component, in the [0-255] range."},{"name":"a","type":"number","description":"The alpha component, in the [0-1] range (default: 1).","optional":true}]},{"id":"Quad","type":"array","description":"An array of quad vertices, x immediately followed by y for each point, points clock-wise.","items":{"type":"number"}},{"id":"BoxModel","type":"object","description":"Box model.","properties":[{"name":"content","description":"Content box","$ref":"Quad"},{"name":"padding","description":"Padding box","$ref":"Quad"},{"name":"border","description":"Border box","$ref":"Quad"},{"name":"margin","description":"Margin box","$ref":"Quad"},{"name":"width","type":"integer","description":"Node width"},{"name":"height","type":"integer","description":"Node height"},{"name":"shapeOutside","description":"Shape outside coordinates","$ref":"ShapeOutsideInfo","optional":true}]},{"id":"ShapeOutsideInfo","type":"object","description":"CSS Shape Outside details.","properties":[{"name":"bounds","description":"Shape bounds","$ref":"Quad"},{"name":"shape","type":"array","description":"Shape coordinate details","items":{"type":"any"}},{"name":"marginShape","type":"array","description":"Margin shape bounds","items":{"type":"any"}}]},{"id":"Rect","type":"object","description":"Rectangle.","properties":[{"name":"x","type":"number","description":"X coordinate"},{"name":"y","type":"number","description":"Y coordinate"},{"name":"width","type":"number","description":"Rectangle width"},{"name":"height","type":"number","description":"Rectangle height"}]},{"id":"CSSComputedStyleProperty","type":"object","properties":[{"name":"name","type":"string","description":"Computed style property name."},{"name":"value","type":"string","description":"Computed style property value."}]}],"commands":[{"name":"collectClassNamesFromSubtree","description":"Collects class names for the node with given id and all of it's child nodes.","parameters":[{"name":"nodeId","description":"Id of the node to collect class names.","$ref":"NodeId"}],"returns":[{"name":"classNames","type":"array","items":{"type":"string"},"description":"Class name list."}]},{"name":"copyTo","description":"Creates a deep copy of the specified node and places it into the target container before the given anchor.","parameters":[{"name":"nodeId","description":"Id of the node to copy.","$ref":"NodeId"},{"name":"targetNodeId","description":"Id of the element to drop the copy into.","$ref":"NodeId"},{"name":"insertBeforeNodeId","description":"Drop the copy before this node (if absent, the copy becomes the last child of `targetNodeId`).","$ref":"NodeId","optional":true}],"returns":[{"name":"nodeId","$ref":"NodeId","description":"Id of the node clone."}]},{"name":"describeNode","description":"Describes node given its id, does not require domain to be enabled. Does not start tracking any objects, can be used for automation.","parameters":[{"name":"nodeId","description":"Identifier of the node.","$ref":"NodeId","optional":true},{"name":"backendNodeId","description":"Identifier of the backend node.","$ref":"BackendNodeId","optional":true},{"name":"objectId","description":"JavaScript object id of the node wrapper.","$ref":"Runtime.RemoteObjectId","optional":true},{"name":"depth","type":"integer","description":"The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.","optional":true},{"name":"pierce","type":"boolean","description":"Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).","optional":true}],"returns":[{"name":"node","$ref":"Node","description":"Node description."}]},{"name":"scrollIntoViewIfNeeded","description":"Scrolls the specified rect of the given node into view if not already visible. Note: exactly one between nodeId, backendNodeId and objectId should be passed to identify the node.","parameters":[{"name":"nodeId","description":"Identifier of the node.","$ref":"NodeId","optional":true},{"name":"backendNodeId","description":"Identifier of the backend node.","$ref":"BackendNodeId","optional":true},{"name":"objectId","description":"JavaScript object id of the node wrapper.","$ref":"Runtime.RemoteObjectId","optional":true},{"name":"rect","description":"The rect to be scrolled into view, relative to the node's border box, in CSS pixels. When omitted, center of the node will be used, similar to Element.scrollIntoView.","$ref":"Rect","optional":true}]},{"name":"disable","description":"Disables DOM agent for the given page."},{"name":"discardSearchResults","description":"Discards search results from the session with the given id. `getSearchResults` should no longer be called for that search.","parameters":[{"name":"searchId","type":"string","description":"Unique search session identifier."}]},{"name":"enable","description":"Enables DOM agent for the given page.","parameters":[{"name":"includeWhitespace","type":"string","description":"Whether to include whitespaces in the children array of returned Nodes.","optional":true,"enum":["none","all"]}]},{"name":"focus","description":"Focuses the given element.","parameters":[{"name":"nodeId","description":"Identifier of the node.","$ref":"NodeId","optional":true},{"name":"backendNodeId","description":"Identifier of the backend node.","$ref":"BackendNodeId","optional":true},{"name":"objectId","description":"JavaScript object id of the node wrapper.","$ref":"Runtime.RemoteObjectId","optional":true}]},{"name":"getAttributes","description":"Returns attributes for the specified node.","parameters":[{"name":"nodeId","description":"Id of the node to retrieve attibutes for.","$ref":"NodeId"}],"returns":[{"name":"attributes","type":"array","items":{"type":"string"},"description":"An interleaved array of node attribute names and values."}]},{"name":"getBoxModel","description":"Returns boxes for the given node.","parameters":[{"name":"nodeId","description":"Identifier of the node.","$ref":"NodeId","optional":true},{"name":"backendNodeId","description":"Identifier of the backend node.","$ref":"BackendNodeId","optional":true},{"name":"objectId","description":"JavaScript object id of the node wrapper.","$ref":"Runtime.RemoteObjectId","optional":true}],"returns":[{"name":"model","$ref":"BoxModel","description":"Box model for the node."}]},{"name":"getContentQuads","description":"Returns quads that describe node position on the page. This method might return multiple quads for inline nodes.","parameters":[{"name":"nodeId","description":"Identifier of the node.","$ref":"NodeId","optional":true},{"name":"backendNodeId","description":"Identifier of the backend node.","$ref":"BackendNodeId","optional":true},{"name":"objectId","description":"JavaScript object id of the node wrapper.","$ref":"Runtime.RemoteObjectId","optional":true}],"returns":[{"name":"quads","type":"array","items":{"$ref":"Quad"},"description":"Quads that describe node layout relative to viewport."}]},{"name":"getDocument","description":"Returns the root DOM node (and optionally the subtree) to the caller.","parameters":[{"name":"depth","type":"integer","description":"The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.","optional":true},{"name":"pierce","type":"boolean","description":"Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).","optional":true}],"returns":[{"name":"root","$ref":"Node","description":"Resulting node."}]},{"name":"getFlattenedDocument","description":"Returns the root DOM node (and optionally the subtree) to the caller. Deprecated, as it is not designed to work well with the rest of the DOM agent. Use DOMSnapshot.captureSnapshot instead.","parameters":[{"name":"depth","type":"integer","description":"The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.","optional":true},{"name":"pierce","type":"boolean","description":"Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).","optional":true}],"returns":[{"name":"nodes","type":"array","items":{"$ref":"Node"},"description":"Resulting node."}]},{"name":"getNodesForSubtreeByStyle","description":"Finds nodes with a given computed style in a subtree.","parameters":[{"name":"nodeId","description":"Node ID pointing to the root of a subtree.","$ref":"NodeId"},{"name":"computedStyles","type":"array","description":"The style to filter nodes by (includes nodes if any of properties matches).","items":{"$ref":"CSSComputedStyleProperty"}},{"name":"pierce","type":"boolean","description":"Whether or not iframes and shadow roots in the same target should be traversed when returning the results (default is false).","optional":true}],"returns":[{"name":"nodeIds","type":"array","items":{"$ref":"NodeId"},"description":"Resulting nodes."}]},{"name":"getNodeForLocation","description":"Returns node id at given location. Depending on whether DOM domain is enabled, nodeId is either returned or not.","parameters":[{"name":"x","type":"integer","description":"X coordinate."},{"name":"y","type":"integer","description":"Y coordinate."},{"name":"includeUserAgentShadowDOM","type":"boolean","description":"False to skip to the nearest non-UA shadow root ancestor (default: false).","optional":true},{"name":"ignorePointerEventsNone","type":"boolean","description":"Whether to ignore pointer-events: none on elements and hit test them.","optional":true}],"returns":[{"name":"backendNodeId","$ref":"BackendNodeId","description":"Resulting node."},{"name":"frameId","$ref":"Page.FrameId","description":"Frame this node belongs to."},{"name":"nodeId","$ref":"NodeId","description":"Id of the node at given coordinates, only when enabled and requested document."}]},{"name":"getOuterHTML","description":"Returns node's HTML markup.","parameters":[{"name":"nodeId","description":"Identifier of the node.","$ref":"NodeId","optional":true},{"name":"backendNodeId","description":"Identifier of the backend node.","$ref":"BackendNodeId","optional":true},{"name":"objectId","description":"JavaScript object id of the node wrapper.","$ref":"Runtime.RemoteObjectId","optional":true}],"returns":[{"name":"outerHTML","type":"string","description":"Outer HTML markup."}]},{"name":"getRelayoutBoundary","description":"Returns the id of the nearest ancestor that is a relayout boundary.","parameters":[{"name":"nodeId","description":"Id of the node.","$ref":"NodeId"}],"returns":[{"name":"nodeId","$ref":"NodeId","description":"Relayout boundary node id for the given node."}]},{"name":"getSearchResults","description":"Returns search results from given `fromIndex` to given `toIndex` from the search with the given identifier.","parameters":[{"name":"searchId","type":"string","description":"Unique search session identifier."},{"name":"fromIndex","type":"integer","description":"Start index of the search result to be returned."},{"name":"toIndex","type":"integer","description":"End index of the search result to be returned."}],"returns":[{"name":"nodeIds","type":"array","items":{"$ref":"NodeId"},"description":"Ids of the search result nodes."}]},{"name":"hideHighlight","description":"Hides any highlight.","redirect":"Overlay"},{"name":"highlightNode","description":"Highlights DOM node.","redirect":"Overlay"},{"name":"highlightRect","description":"Highlights given rectangle.","redirect":"Overlay"},{"name":"markUndoableState","description":"Marks last undoable state."},{"name":"moveTo","description":"Moves node into the new container, places it before the given anchor.","parameters":[{"name":"nodeId","description":"Id of the node to move.","$ref":"NodeId"},{"name":"targetNodeId","description":"Id of the element to drop the moved node into.","$ref":"NodeId"},{"name":"insertBeforeNodeId","description":"Drop node before this one (if absent, the moved node becomes the last child of `targetNodeId`).","$ref":"NodeId","optional":true}],"returns":[{"name":"nodeId","$ref":"NodeId","description":"New id of the moved node."}]},{"name":"performSearch","description":"Searches for a given string in the DOM tree. Use `getSearchResults` to access search results or `cancelSearch` to end this search session.","parameters":[{"name":"query","type":"string","description":"Plain text or query selector or XPath search query."},{"name":"includeUserAgentShadowDOM","type":"boolean","description":"True to search in user agent shadow DOM.","optional":true}],"returns":[{"name":"searchId","type":"string","description":"Unique search session identifier."},{"name":"resultCount","type":"integer","description":"Number of search results."}]},{"name":"pushNodeByPathToFrontend","description":"Requests that the node is sent to the caller given its path. // FIXME, use XPath","parameters":[{"name":"path","type":"string","description":"Path to node in the proprietary format."}],"returns":[{"name":"nodeId","$ref":"NodeId","description":"Id of the node for given path."}]},{"name":"pushNodesByBackendIdsToFrontend","description":"Requests that a batch of nodes is sent to the caller given their backend node ids.","parameters":[{"name":"backendNodeIds","type":"array","description":"The array of backend node ids.","items":{"$ref":"BackendNodeId"}}],"returns":[{"name":"nodeIds","type":"array","items":{"$ref":"NodeId"},"description":"The array of ids of pushed nodes that correspond to the backend ids specified in backendNodeIds."}]},{"name":"querySelector","description":"Executes `querySelector` on a given node.","parameters":[{"name":"nodeId","description":"Id of the node to query upon.","$ref":"NodeId"},{"name":"selector","type":"string","description":"Selector string."}],"returns":[{"name":"nodeId","$ref":"NodeId","description":"Query selector result."}]},{"name":"querySelectorAll","description":"Executes `querySelectorAll` on a given node.","parameters":[{"name":"nodeId","description":"Id of the node to query upon.","$ref":"NodeId"},{"name":"selector","type":"string","description":"Selector string."}],"returns":[{"name":"nodeIds","type":"array","items":{"$ref":"NodeId"},"description":"Query selector result."}]},{"name":"redo","description":"Re-does the last undone action."},{"name":"removeAttribute","description":"Removes attribute with given name from an element with given id.","parameters":[{"name":"nodeId","description":"Id of the element to remove attribute from.","$ref":"NodeId"},{"name":"name","type":"string","description":"Name of the attribute to remove."}]},{"name":"removeNode","description":"Removes node with given id.","parameters":[{"name":"nodeId","description":"Id of the node to remove.","$ref":"NodeId"}]},{"name":"requestChildNodes","description":"Requests that children of the node with given id are returned to the caller in form of `setChildNodes` events where not only immediate children are retrieved, but all children down to the specified depth.","parameters":[{"name":"nodeId","description":"Id of the node to get children for.","$ref":"NodeId"},{"name":"depth","type":"integer","description":"The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.","optional":true},{"name":"pierce","type":"boolean","description":"Whether or not iframes and shadow roots should be traversed when returning the sub-tree (default is false).","optional":true}]},{"name":"requestNode","description":"Requests that the node is sent to the caller given the JavaScript node object reference. All nodes that form the path from the node to the root are also sent to the client as a series of `setChildNodes` notifications.","parameters":[{"name":"objectId","description":"JavaScript object id to convert into node.","$ref":"Runtime.RemoteObjectId"}],"returns":[{"name":"nodeId","$ref":"NodeId","description":"Node id for given object."}]},{"name":"resolveNode","description":"Resolves the JavaScript node object for a given NodeId or BackendNodeId.","parameters":[{"name":"nodeId","description":"Id of the node to resolve.","$ref":"NodeId","optional":true},{"name":"backendNodeId","description":"Backend identifier of the node to resolve.","$ref":"DOM.BackendNodeId","optional":true},{"name":"objectGroup","type":"string","description":"Symbolic group name that can be used to release multiple objects.","optional":true},{"name":"executionContextId","description":"Execution context in which to resolve the node.","$ref":"Runtime.ExecutionContextId","optional":true}],"returns":[{"name":"object","$ref":"Runtime.RemoteObject","description":"JavaScript object wrapper for given node."}]},{"name":"setAttributeValue","description":"Sets attribute for an element with given id.","parameters":[{"name":"nodeId","description":"Id of the element to set attribute for.","$ref":"NodeId"},{"name":"name","type":"string","description":"Attribute name."},{"name":"value","type":"string","description":"Attribute value."}]},{"name":"setAttributesAsText","description":"Sets attributes on element with given id. This method is useful when user edits some existing attribute value and types in several attribute name/value pairs.","parameters":[{"name":"nodeId","description":"Id of the element to set attributes for.","$ref":"NodeId"},{"name":"text","type":"string","description":"Text with a number of attributes. Will parse this text using HTML parser."},{"name":"name","type":"string","description":"Attribute name to replace with new attributes derived from text in case text parsed successfully.","optional":true}]},{"name":"setFileInputFiles","description":"Sets files for the given file input element.","parameters":[{"name":"files","type":"array","description":"Array of file paths to set.","items":{"type":"string"}},{"name":"nodeId","description":"Identifier of the node.","$ref":"NodeId","optional":true},{"name":"backendNodeId","description":"Identifier of the backend node.","$ref":"BackendNodeId","optional":true},{"name":"objectId","description":"JavaScript object id of the node wrapper.","$ref":"Runtime.RemoteObjectId","optional":true}]},{"name":"setNodeStackTracesEnabled","description":"Sets if stack traces should be captured for Nodes. See `Node.getNodeStackTraces`. Default is disabled.","parameters":[{"name":"enable","type":"boolean","description":"Enable or disable."}]},{"name":"getNodeStackTraces","description":"Gets stack traces associated with a Node. As of now, only provides stack trace for Node creation.","parameters":[{"name":"nodeId","description":"Id of the node to get stack traces for.","$ref":"NodeId"}],"returns":[{"name":"creation","$ref":"Runtime.StackTrace","description":"Creation stack trace, if available."}]},{"name":"getFileInfo","description":"Returns file information for the given File wrapper.","parameters":[{"name":"objectId","description":"JavaScript object id of the node wrapper.","$ref":"Runtime.RemoteObjectId"}],"returns":[{"name":"path","type":"string"}]},{"name":"setInspectedNode","description":"Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).","parameters":[{"name":"nodeId","description":"DOM node id to be accessible by means of $x command line API.","$ref":"NodeId"}]},{"name":"setNodeName","description":"Sets node name for a node with given id.","parameters":[{"name":"nodeId","description":"Id of the node to set name for.","$ref":"NodeId"},{"name":"name","type":"string","description":"New node's name."}],"returns":[{"name":"nodeId","$ref":"NodeId","description":"New node's id."}]},{"name":"setNodeValue","description":"Sets node value for a node with given id.","parameters":[{"name":"nodeId","description":"Id of the node to set value for.","$ref":"NodeId"},{"name":"value","type":"string","description":"New node's value."}]},{"name":"setOuterHTML","description":"Sets node HTML markup, returns new node id.","parameters":[{"name":"nodeId","description":"Id of the node to set markup for.","$ref":"NodeId"},{"name":"outerHTML","type":"string","description":"Outer HTML markup to set."}]},{"name":"undo","description":"Undoes the last performed action."},{"name":"getFrameOwner","description":"Returns iframe node that owns iframe with the given domain.","parameters":[{"name":"frameId","$ref":"Page.FrameId"}],"returns":[{"name":"backendNodeId","$ref":"BackendNodeId","description":"Resulting node."},{"name":"nodeId","$ref":"NodeId","description":"Id of the node at given coordinates, only when enabled and requested document."}]},{"name":"getContainerForNode","description":"Returns the container of the given node based on container query conditions. If containerName is given, it will find the nearest container with a matching name; otherwise it will find the nearest container regardless of its container name.","parameters":[{"name":"nodeId","$ref":"NodeId"},{"name":"containerName","type":"string","optional":true}],"returns":[{"name":"nodeId","$ref":"NodeId","description":"The container node for the given node, or null if not found."}]},{"name":"getQueryingDescendantsForContainer","description":"Returns the descendants of a container query container that have container queries against this container.","parameters":[{"name":"nodeId","description":"Id of the container node to find querying descendants from.","$ref":"NodeId"}],"returns":[{"name":"nodeIds","type":"array","items":{"$ref":"NodeId"},"description":"Descendant nodes with container queries against the given container."}]}],"events":[{"name":"attributeModified","description":"Fired when `Element`'s attribute is modified.","parameters":[{"name":"nodeId","description":"Id of the node that has changed.","$ref":"NodeId"},{"name":"name","type":"string","description":"Attribute name."},{"name":"value","type":"string","description":"Attribute value."}]},{"name":"attributeRemoved","description":"Fired when `Element`'s attribute is removed.","parameters":[{"name":"nodeId","description":"Id of the node that has changed.","$ref":"NodeId"},{"name":"name","type":"string","description":"A ttribute name."}]},{"name":"characterDataModified","description":"Mirrors `DOMCharacterDataModified` event.","parameters":[{"name":"nodeId","description":"Id of the node that has changed.","$ref":"NodeId"},{"name":"characterData","type":"string","description":"New text value."}]},{"name":"childNodeCountUpdated","description":"Fired when `Container`'s child node count has changed.","parameters":[{"name":"nodeId","description":"Id of the node that has changed.","$ref":"NodeId"},{"name":"childNodeCount","type":"integer","description":"New node count."}]},{"name":"childNodeInserted","description":"Mirrors `DOMNodeInserted` event.","parameters":[{"name":"parentNodeId","description":"Id of the node that has changed.","$ref":"NodeId"},{"name":"previousNodeId","description":"If of the previous siblint.","$ref":"NodeId"},{"name":"node","description":"Inserted node data.","$ref":"Node"}]},{"name":"childNodeRemoved","description":"Mirrors `DOMNodeRemoved` event.","parameters":[{"name":"parentNodeId","description":"Parent id.","$ref":"NodeId"},{"name":"nodeId","description":"Id of the node that has been removed.","$ref":"NodeId"}]},{"name":"distributedNodesUpdated","description":"Called when distribution is changed.","parameters":[{"name":"insertionPointId","description":"Insertion point where distributed nodes were updated.","$ref":"NodeId"},{"name":"distributedNodes","type":"array","description":"Distributed nodes for given insertion point.","items":{"$ref":"BackendNode"}}]},{"name":"documentUpdated","description":"Fired when `Document` has been totally updated. Node ids are no longer valid."},{"name":"inlineStyleInvalidated","description":"Fired when `Element`'s inline style is modified via a CSS property modification.","parameters":[{"name":"nodeIds","type":"array","description":"Ids of the nodes for which the inline styles have been invalidated.","items":{"$ref":"NodeId"}}]},{"name":"pseudoElementAdded","description":"Called when a pseudo element is added to an element.","parameters":[{"name":"parentId","description":"Pseudo element's parent element id.","$ref":"NodeId"},{"name":"pseudoElement","description":"The added pseudo element.","$ref":"Node"}]},{"name":"pseudoElementRemoved","description":"Called when a pseudo element is removed from an element.","parameters":[{"name":"parentId","description":"Pseudo element's parent element id.","$ref":"NodeId"},{"name":"pseudoElementId","description":"The removed pseudo element id.","$ref":"NodeId"}]},{"name":"setChildNodes","description":"Fired when backend wants to provide client with the missing DOM structure. This happens upon most of the calls requesting node ids.","parameters":[{"name":"parentId","description":"Parent node id to populate with children.","$ref":"NodeId"},{"name":"nodes","type":"array","description":"Child nodes array.","items":{"$ref":"Node"}}]},{"name":"shadowRootPopped","description":"Called when shadow root is popped from the element.","parameters":[{"name":"hostId","description":"Host element id.","$ref":"NodeId"},{"name":"rootId","description":"Shadow root id.","$ref":"NodeId"}]},{"name":"shadowRootPushed","description":"Called when shadow root is pushed into the element.","parameters":[{"name":"hostId","description":"Host element id.","$ref":"NodeId"},{"name":"root","description":"Shadow root.","$ref":"Node"}]}]},{"domain":"DOMDebugger","description":"DOM debugging allows setting breakpoints on particular DOM operations and events. JavaScript execution will stop on these operations as if there was a regular breakpoint set.","types":[{"id":"DOMBreakpointType","type":"string","description":"DOM breakpoint type.","enum":["subtree-modified","attribute-modified","node-removed"]},{"id":"CSPViolationType","type":"string","description":"CSP Violation type.","enum":["trustedtype-sink-violation","trustedtype-policy-violation"]},{"id":"EventListener","type":"object","description":"Object event listener.","properties":[{"name":"type","type":"string","description":"`EventListener`'s type."},{"name":"useCapture","type":"boolean","description":"`EventListener`'s useCapture."},{"name":"passive","type":"boolean","description":"`EventListener`'s passive flag."},{"name":"once","type":"boolean","description":"`EventListener`'s once flag."},{"name":"scriptId","description":"Script id of the handler code.","$ref":"Runtime.ScriptId"},{"name":"lineNumber","type":"integer","description":"Line number in the script (0-based)."},{"name":"columnNumber","type":"integer","description":"Column number in the script (0-based)."},{"name":"handler","description":"Event handler function value.","$ref":"Runtime.RemoteObject","optional":true},{"name":"originalHandler","description":"Event original handler function value.","$ref":"Runtime.RemoteObject","optional":true},{"name":"backendNodeId","description":"Node the listener is added to (if any).","$ref":"DOM.BackendNodeId","optional":true}]}],"commands":[{"name":"getEventListeners","description":"Returns event listeners of the given object.","parameters":[{"name":"objectId","description":"Identifier of the object to return listeners for.","$ref":"Runtime.RemoteObjectId"},{"name":"depth","type":"integer","description":"The maximum depth at which Node children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.","optional":true},{"name":"pierce","type":"boolean","description":"Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false). Reports listeners for all contexts if pierce is enabled.","optional":true}],"returns":[{"name":"listeners","type":"array","items":{"$ref":"EventListener"},"description":"Array of relevant listeners."}]},{"name":"removeDOMBreakpoint","description":"Removes DOM breakpoint that was set using `setDOMBreakpoint`.","parameters":[{"name":"nodeId","description":"Identifier of the node to remove breakpoint from.","$ref":"DOM.NodeId"},{"name":"type","description":"Type of the breakpoint to remove.","$ref":"DOMBreakpointType"}]},{"name":"removeEventListenerBreakpoint","description":"Removes breakpoint on particular DOM event.","parameters":[{"name":"eventName","type":"string","description":"Event name."},{"name":"targetName","type":"string","description":"EventTarget interface name.","optional":true}]},{"name":"removeInstrumentationBreakpoint","description":"Removes breakpoint on particular native event.","parameters":[{"name":"eventName","type":"string","description":"Instrumentation name to stop on."}]},{"name":"removeXHRBreakpoint","description":"Removes breakpoint from XMLHttpRequest.","parameters":[{"name":"url","type":"string","description":"Resource URL substring."}]},{"name":"setBreakOnCSPViolation","description":"Sets breakpoint on particular CSP violations.","parameters":[{"name":"violationTypes","type":"array","description":"CSP Violations to stop upon.","items":{"$ref":"CSPViolationType"}}]},{"name":"setDOMBreakpoint","description":"Sets breakpoint on particular operation with DOM.","parameters":[{"name":"nodeId","description":"Identifier of the node to set breakpoint on.","$ref":"DOM.NodeId"},{"name":"type","description":"Type of the operation to stop upon.","$ref":"DOMBreakpointType"}]},{"name":"setEventListenerBreakpoint","description":"Sets breakpoint on particular DOM event.","parameters":[{"name":"eventName","type":"string","description":"DOM Event name to stop on (any DOM event will do)."},{"name":"targetName","type":"string","description":"EventTarget interface name to stop on. If equal to `\"*\"` or not provided, will stop on any EventTarget.","optional":true}]},{"name":"setInstrumentationBreakpoint","description":"Sets breakpoint on particular native event.","parameters":[{"name":"eventName","type":"string","description":"Instrumentation name to stop on."}]},{"name":"setXHRBreakpoint","description":"Sets breakpoint on XMLHttpRequest.","parameters":[{"name":"url","type":"string","description":"Resource URL substring. All XHRs having this substring in the URL will get stopped upon."}]}]},{"domain":"EventBreakpoints","description":"EventBreakpoints permits setting breakpoints on particular operations and events in targets that run JavaScript but do not have a DOM. JavaScript execution will stop on these operations as if there was a regular breakpoint set.","commands":[{"name":"setInstrumentationBreakpoint","description":"Sets breakpoint on particular native event.","parameters":[{"name":"eventName","type":"string","description":"Instrumentation name to stop on."}]},{"name":"removeInstrumentationBreakpoint","description":"Removes breakpoint on particular native event.","parameters":[{"name":"eventName","type":"string","description":"Instrumentation name to stop on."}]}]},{"domain":"DOMSnapshot","description":"This domain facilitates obtaining document snapshots with DOM, layout, and style information.","types":[{"id":"DOMNode","type":"object","description":"A Node in the DOM tree.","properties":[{"name":"nodeType","type":"integer","description":"`Node`'s nodeType."},{"name":"nodeName","type":"string","description":"`Node`'s nodeName."},{"name":"nodeValue","type":"string","description":"`Node`'s nodeValue."},{"name":"textValue","type":"string","description":"Only set for textarea elements, contains the text value.","optional":true},{"name":"inputValue","type":"string","description":"Only set for input elements, contains the input's associated text value.","optional":true},{"name":"inputChecked","type":"boolean","description":"Only set for radio and checkbox input elements, indicates if the element has been checked","optional":true},{"name":"optionSelected","type":"boolean","description":"Only set for option elements, indicates if the element has been selected","optional":true},{"name":"backendNodeId","description":"`Node`'s id, corresponds to DOM.Node.backendNodeId.","$ref":"DOM.BackendNodeId"},{"name":"childNodeIndexes","type":"array","description":"The indexes of the node's child nodes in the `domNodes` array returned by `getSnapshot`, if any.","optional":true,"items":{"type":"integer"}},{"name":"attributes","type":"array","description":"Attributes of an `Element` node.","optional":true,"items":{"$ref":"NameValue"}},{"name":"pseudoElementIndexes","type":"array","description":"Indexes of pseudo elements associated with this node in the `domNodes` array returned by `getSnapshot`, if any.","optional":true,"items":{"type":"integer"}},{"name":"layoutNodeIndex","type":"integer","description":"The index of the node's related layout tree node in the `layoutTreeNodes` array returned by `getSnapshot`, if any.","optional":true},{"name":"documentURL","type":"string","description":"Document URL that `Document` or `FrameOwner` node points to.","optional":true},{"name":"baseURL","type":"string","description":"Base URL that `Document` or `FrameOwner` node uses for URL completion.","optional":true},{"name":"contentLanguage","type":"string","description":"Only set for documents, contains the document's content language.","optional":true},{"name":"documentEncoding","type":"string","description":"Only set for documents, contains the document's character set encoding.","optional":true},{"name":"publicId","type":"string","description":"`DocumentType` node's publicId.","optional":true},{"name":"systemId","type":"string","description":"`DocumentType` node's systemId.","optional":true},{"name":"frameId","description":"Frame ID for frame owner elements and also for the document node.","$ref":"Page.FrameId","optional":true},{"name":"contentDocumentIndex","type":"integer","description":"The index of a frame owner element's content document in the `domNodes` array returned by `getSnapshot`, if any.","optional":true},{"name":"pseudoType","description":"Type of a pseudo element node.","$ref":"DOM.PseudoType","optional":true},{"name":"shadowRootType","description":"Shadow root type.","$ref":"DOM.ShadowRootType","optional":true},{"name":"isClickable","type":"boolean","description":"Whether this DOM node responds to mouse clicks. This includes nodes that have had click event listeners attached via JavaScript as well as anchor tags that naturally navigate when clicked.","optional":true},{"name":"eventListeners","type":"array","description":"Details of the node's event listeners, if any.","optional":true,"items":{"$ref":"DOMDebugger.EventListener"}},{"name":"currentSourceURL","type":"string","description":"The selected url for nodes with a srcset attribute.","optional":true},{"name":"originURL","type":"string","description":"The url of the script (if any) that generates this node.","optional":true},{"name":"scrollOffsetX","type":"number","description":"Scroll offsets, set when this node is a Document.","optional":true},{"name":"scrollOffsetY","type":"number","optional":true}]},{"id":"InlineTextBox","type":"object","description":"Details of post layout rendered text positions. The exact layout should not be regarded as stable and may change between versions.","properties":[{"name":"boundingBox","description":"The bounding box in document coordinates. Note that scroll offset of the document is ignored.","$ref":"DOM.Rect"},{"name":"startCharacterIndex","type":"integer","description":"The starting index in characters, for this post layout textbox substring. Characters that would be represented as a surrogate pair in UTF-16 have length 2."},{"name":"numCharacters","type":"integer","description":"The number of characters in this post layout textbox substring. Characters that would be represented as a surrogate pair in UTF-16 have length 2."}]},{"id":"LayoutTreeNode","type":"object","description":"Details of an element in the DOM tree with a LayoutObject.","properties":[{"name":"domNodeIndex","type":"integer","description":"The index of the related DOM node in the `domNodes` array returned by `getSnapshot`."},{"name":"boundingBox","description":"The bounding box in document coordinates. Note that scroll offset of the document is ignored.","$ref":"DOM.Rect"},{"name":"layoutText","type":"string","description":"Contents of the LayoutText, if any.","optional":true},{"name":"inlineTextNodes","type":"array","description":"The post-layout inline text nodes, if any.","optional":true,"items":{"$ref":"InlineTextBox"}},{"name":"styleIndex","type":"integer","description":"Index into the `computedStyles` array returned by `getSnapshot`.","optional":true},{"name":"paintOrder","type":"integer","description":"Global paint order index, which is determined by the stacking order of the nodes. Nodes that are painted together will have the same index. Only provided if includePaintOrder in getSnapshot was true.","optional":true},{"name":"isStackingContext","type":"boolean","description":"Set to true to indicate the element begins a new stacking context.","optional":true}]},{"id":"ComputedStyle","type":"object","description":"A subset of the full ComputedStyle as defined by the request whitelist.","properties":[{"name":"properties","type":"array","description":"Name/value pairs of computed style properties.","items":{"$ref":"NameValue"}}]},{"id":"NameValue","type":"object","description":"A name/value pair.","properties":[{"name":"name","type":"string","description":"Attribute/property name."},{"name":"value","type":"string","description":"Attribute/property value."}]},{"id":"StringIndex","type":"integer","description":"Index of the string in the strings table."},{"id":"ArrayOfStrings","type":"array","description":"Index of the string in the strings table.","items":{"$ref":"StringIndex"}},{"id":"RareStringData","type":"object","description":"Data that is only present on rare nodes.","properties":[{"name":"index","type":"array","items":{"type":"integer"}},{"name":"value","type":"array","items":{"$ref":"StringIndex"}}]},{"id":"RareBooleanData","type":"object","properties":[{"name":"index","type":"array","items":{"type":"integer"}}]},{"id":"RareIntegerData","type":"object","properties":[{"name":"index","type":"array","items":{"type":"integer"}},{"name":"value","type":"array","items":{"type":"integer"}}]},{"id":"Rectangle","type":"array","items":{"type":"number"}},{"id":"DocumentSnapshot","type":"object","description":"Document snapshot.","properties":[{"name":"documentURL","description":"Document URL that `Document` or `FrameOwner` node points to.","$ref":"StringIndex"},{"name":"title","description":"Document title.","$ref":"StringIndex"},{"name":"baseURL","description":"Base URL that `Document` or `FrameOwner` node uses for URL completion.","$ref":"StringIndex"},{"name":"contentLanguage","description":"Contains the document's content language.","$ref":"StringIndex"},{"name":"encodingName","description":"Contains the document's character set encoding.","$ref":"StringIndex"},{"name":"publicId","description":"`DocumentType` node's publicId.","$ref":"StringIndex"},{"name":"systemId","description":"`DocumentType` node's systemId.","$ref":"StringIndex"},{"name":"frameId","description":"Frame ID for frame owner elements and also for the document node.","$ref":"StringIndex"},{"name":"nodes","description":"A table with dom nodes.","$ref":"NodeTreeSnapshot"},{"name":"layout","description":"The nodes in the layout tree.","$ref":"LayoutTreeSnapshot"},{"name":"textBoxes","description":"The post-layout inline text nodes.","$ref":"TextBoxSnapshot"},{"name":"scrollOffsetX","type":"number","description":"Horizontal scroll offset.","optional":true},{"name":"scrollOffsetY","type":"number","description":"Vertical scroll offset.","optional":true},{"name":"contentWidth","type":"number","description":"Document content width.","optional":true},{"name":"contentHeight","type":"number","description":"Document content height.","optional":true}]},{"id":"NodeTreeSnapshot","type":"object","description":"Table containing nodes.","properties":[{"name":"parentIndex","type":"array","description":"Parent node index.","optional":true,"items":{"type":"integer"}},{"name":"nodeType","type":"array","description":"`Node`'s nodeType.","optional":true,"items":{"type":"integer"}},{"name":"shadowRootType","description":"Type of the shadow root the `Node` is in. String values are equal to the `ShadowRootType` enum.","$ref":"RareStringData","optional":true},{"name":"nodeName","type":"array","description":"`Node`'s nodeName.","optional":true,"items":{"$ref":"StringIndex"}},{"name":"nodeValue","type":"array","description":"`Node`'s nodeValue.","optional":true,"items":{"$ref":"StringIndex"}},{"name":"backendNodeId","type":"array","description":"`Node`'s id, corresponds to DOM.Node.backendNodeId.","optional":true,"items":{"$ref":"DOM.BackendNodeId"}},{"name":"attributes","type":"array","description":"Attributes of an `Element` node. Flatten name, value pairs.","optional":true,"items":{"$ref":"ArrayOfStrings"}},{"name":"textValue","description":"Only set for textarea elements, contains the text value.","$ref":"RareStringData","optional":true},{"name":"inputValue","description":"Only set for input elements, contains the input's associated text value.","$ref":"RareStringData","optional":true},{"name":"inputChecked","description":"Only set for radio and checkbox input elements, indicates if the element has been checked","$ref":"RareBooleanData","optional":true},{"name":"optionSelected","description":"Only set for option elements, indicates if the element has been selected","$ref":"RareBooleanData","optional":true},{"name":"contentDocumentIndex","description":"The index of the document in the list of the snapshot documents.","$ref":"RareIntegerData","optional":true},{"name":"pseudoType","description":"Type of a pseudo element node.","$ref":"RareStringData","optional":true},{"name":"isClickable","description":"Whether this DOM node responds to mouse clicks. This includes nodes that have had click event listeners attached via JavaScript as well as anchor tags that naturally navigate when clicked.","$ref":"RareBooleanData","optional":true},{"name":"currentSourceURL","description":"The selected url for nodes with a srcset attribute.","$ref":"RareStringData","optional":true},{"name":"originURL","description":"The url of the script (if any) that generates this node.","$ref":"RareStringData","optional":true}]},{"id":"LayoutTreeSnapshot","type":"object","description":"Table of details of an element in the DOM tree with a LayoutObject.","properties":[{"name":"nodeIndex","type":"array","description":"Index of the corresponding node in the `NodeTreeSnapshot` array returned by `captureSnapshot`.","items":{"type":"integer"}},{"name":"styles","type":"array","description":"Array of indexes specifying computed style strings, filtered according to the `computedStyles` parameter passed to `captureSnapshot`.","items":{"$ref":"ArrayOfStrings"}},{"name":"bounds","type":"array","description":"The absolute position bounding box.","items":{"$ref":"Rectangle"}},{"name":"text","type":"array","description":"Contents of the LayoutText, if any.","items":{"$ref":"StringIndex"}},{"name":"stackingContexts","description":"Stacking context information.","$ref":"RareBooleanData"},{"name":"paintOrders","type":"array","description":"Global paint order index, which is determined by the stacking order of the nodes. Nodes that are painted together will have the same index. Only provided if includePaintOrder in captureSnapshot was true.","optional":true,"items":{"type":"integer"}},{"name":"offsetRects","type":"array","description":"The offset rect of nodes. Only available when includeDOMRects is set to true","optional":true,"items":{"$ref":"Rectangle"}},{"name":"scrollRects","type":"array","description":"The scroll rect of nodes. Only available when includeDOMRects is set to true","optional":true,"items":{"$ref":"Rectangle"}},{"name":"clientRects","type":"array","description":"The client rect of nodes. Only available when includeDOMRects is set to true","optional":true,"items":{"$ref":"Rectangle"}},{"name":"blendedBackgroundColors","type":"array","description":"The list of background colors that are blended with colors of overlapping elements.","optional":true,"items":{"$ref":"StringIndex"}},{"name":"textColorOpacities","type":"array","description":"The list of computed text opacities.","optional":true,"items":{"type":"number"}}]},{"id":"TextBoxSnapshot","type":"object","description":"Table of details of the post layout rendered text positions. The exact layout should not be regarded as stable and may change between versions.","properties":[{"name":"layoutIndex","type":"array","description":"Index of the layout tree node that owns this box collection.","items":{"type":"integer"}},{"name":"bounds","type":"array","description":"The absolute position bounding box.","items":{"$ref":"Rectangle"}},{"name":"start","type":"array","description":"The starting index in characters, for this post layout textbox substring. Characters that would be represented as a surrogate pair in UTF-16 have length 2.","items":{"type":"integer"}},{"name":"length","type":"array","description":"The number of characters in this post layout textbox substring. Characters that would be represented as a surrogate pair in UTF-16 have length 2.","items":{"type":"integer"}}]}],"commands":[{"name":"disable","description":"Disables DOM snapshot agent for the given page."},{"name":"enable","description":"Enables DOM snapshot agent for the given page."},{"name":"getSnapshot","description":"Returns a document snapshot, including the full DOM tree of the root node (including iframes, template contents, and imported documents) in a flattened array, as well as layout and white-listed computed style information for the nodes. Shadow DOM in the returned DOM tree is flattened.","parameters":[{"name":"computedStyleWhitelist","type":"array","description":"Whitelist of computed styles to return.","items":{"type":"string"}},{"name":"includeEventListeners","type":"boolean","description":"Whether or not to retrieve details of DOM listeners (default false).","optional":true},{"name":"includePaintOrder","type":"boolean","description":"Whether to determine and include the paint order index of LayoutTreeNodes (default false).","optional":true},{"name":"includeUserAgentShadowTree","type":"boolean","description":"Whether to include UA shadow tree in the snapshot (default false).","optional":true}],"returns":[{"name":"domNodes","type":"array","items":{"$ref":"DOMNode"},"description":"The nodes in the DOM tree. The DOMNode at index 0 corresponds to the root document."},{"name":"layoutTreeNodes","type":"array","items":{"$ref":"LayoutTreeNode"},"description":"The nodes in the layout tree."},{"name":"computedStyles","type":"array","items":{"$ref":"ComputedStyle"},"description":"Whitelisted ComputedStyle properties for each node in the layout tree."}]},{"name":"captureSnapshot","description":"Returns a document snapshot, including the full DOM tree of the root node (including iframes, template contents, and imported documents) in a flattened array, as well as layout and white-listed computed style information for the nodes. Shadow DOM in the returned DOM tree is flattened.","parameters":[{"name":"computedStyles","type":"array","description":"Whitelist of computed styles to return.","items":{"type":"string"}},{"name":"includePaintOrder","type":"boolean","description":"Whether to include layout object paint orders into the snapshot.","optional":true},{"name":"includeDOMRects","type":"boolean","description":"Whether to include DOM rectangles (offsetRects, clientRects, scrollRects) into the snapshot","optional":true},{"name":"includeBlendedBackgroundColors","type":"boolean","description":"Whether to include blended background colors in the snapshot (default: false). Blended background color is achieved by blending background colors of all elements that overlap with the current element.","optional":true},{"name":"includeTextColorOpacities","type":"boolean","description":"Whether to include text color opacity in the snapshot (default: false). An element might have the opacity property set that affects the text color of the element. The final text color opacity is computed based on the opacity of all overlapping elements.","optional":true}],"returns":[{"name":"documents","type":"array","items":{"$ref":"DocumentSnapshot"},"description":"The nodes in the DOM tree. The DOMNode at index 0 corresponds to the root document."},{"name":"strings","type":"array","items":{"type":"string"},"description":"Shared string table that all string properties refer to with indexes."}]}]},{"domain":"DOMStorage","description":"Query and modify DOM storage.","types":[{"id":"StorageId","type":"object","description":"DOM Storage identifier.","properties":[{"name":"securityOrigin","type":"string","description":"Security origin for the storage."},{"name":"isLocalStorage","type":"boolean","description":"Whether the storage is local storage (not session storage)."}]},{"id":"Item","type":"array","description":"DOM Storage item.","items":{"type":"string"}}],"commands":[{"name":"clear","parameters":[{"name":"storageId","$ref":"StorageId"}]},{"name":"disable","description":"Disables storage tracking, prevents storage events from being sent to the client."},{"name":"enable","description":"Enables storage tracking, storage events will now be delivered to the client."},{"name":"getDOMStorageItems","parameters":[{"name":"storageId","$ref":"StorageId"}],"returns":[{"name":"entries","type":"array","items":{"$ref":"Item"}}]},{"name":"removeDOMStorageItem","parameters":[{"name":"storageId","$ref":"StorageId"},{"name":"key","type":"string"}]},{"name":"setDOMStorageItem","parameters":[{"name":"storageId","$ref":"StorageId"},{"name":"key","type":"string"},{"name":"value","type":"string"}]}],"events":[{"name":"domStorageItemAdded","parameters":[{"name":"storageId","$ref":"StorageId"},{"name":"key","type":"string"},{"name":"newValue","type":"string"}]},{"name":"domStorageItemRemoved","parameters":[{"name":"storageId","$ref":"StorageId"},{"name":"key","type":"string"}]},{"name":"domStorageItemUpdated","parameters":[{"name":"storageId","$ref":"StorageId"},{"name":"key","type":"string"},{"name":"oldValue","type":"string"},{"name":"newValue","type":"string"}]},{"name":"domStorageItemsCleared","parameters":[{"name":"storageId","$ref":"StorageId"}]}]},{"domain":"Database","types":[{"id":"DatabaseId","type":"string","description":"Unique identifier of Database object."},{"id":"Database","type":"object","description":"Database object.","properties":[{"name":"id","description":"Database ID.","$ref":"DatabaseId"},{"name":"domain","type":"string","description":"Database domain."},{"name":"name","type":"string","description":"Database name."},{"name":"version","type":"string","description":"Database version."}]},{"id":"Error","type":"object","description":"Database error.","properties":[{"name":"message","type":"string","description":"Error message."},{"name":"code","type":"integer","description":"Error code."}]}],"commands":[{"name":"disable","description":"Disables database tracking, prevents database events from being sent to the client."},{"name":"enable","description":"Enables database tracking, database events will now be delivered to the client."},{"name":"executeSQL","parameters":[{"name":"databaseId","$ref":"DatabaseId"},{"name":"query","type":"string"}],"returns":[{"name":"columnNames","type":"array","items":{"type":"string"}},{"name":"values","type":"array","items":{"type":"any"}},{"name":"sqlError","$ref":"Error"}]},{"name":"getDatabaseTableNames","parameters":[{"name":"databaseId","$ref":"DatabaseId"}],"returns":[{"name":"tableNames","type":"array","items":{"type":"string"}}]}],"events":[{"name":"addDatabase","parameters":[{"name":"database","$ref":"Database"}]}]},{"domain":"DeviceOrientation","commands":[{"name":"clearDeviceOrientationOverride","description":"Clears the overridden Device Orientation."},{"name":"setDeviceOrientationOverride","description":"Overrides the Device Orientation.","parameters":[{"name":"alpha","type":"number","description":"Mock alpha"},{"name":"beta","type":"number","description":"Mock beta"},{"name":"gamma","type":"number","description":"Mock gamma"}]}]},{"domain":"Emulation","description":"This domain emulates different environments for the page.","types":[{"id":"ScreenOrientation","type":"object","description":"Screen orientation.","properties":[{"name":"type","type":"string","description":"Orientation type.","enum":["portraitPrimary","portraitSecondary","landscapePrimary","landscapeSecondary"]},{"name":"angle","type":"integer","description":"Orientation angle."}]},{"id":"DisplayFeature","type":"object","properties":[{"name":"orientation","type":"string","description":"Orientation of a display feature in relation to screen","enum":["vertical","horizontal"]},{"name":"offset","type":"integer","description":"The offset from the screen origin in either the x (for vertical orientation) or y (for horizontal orientation) direction."},{"name":"maskLength","type":"integer","description":"A display feature may mask content such that it is not physically displayed - this length along with the offset describes this area. A display feature that only splits content will have a 0 mask_length."}]},{"id":"MediaFeature","type":"object","properties":[{"name":"name","type":"string"},{"name":"value","type":"string"}]},{"id":"VirtualTimePolicy","type":"string","description":"advance: If the scheduler runs out of immediate work, the virtual time base may fast forward to allow the next delayed task (if any) to run; pause: The virtual time base may not advance; pauseIfNetworkFetchesPending: The virtual time base may not advance if there are any pending resource fetches.","enum":["advance","pause","pauseIfNetworkFetchesPending"]},{"id":"UserAgentBrandVersion","type":"object","description":"Used to specify User Agent Cient Hints to emulate. See https://wicg.github.io/ua-client-hints","properties":[{"name":"brand","type":"string"},{"name":"version","type":"string"}]},{"id":"UserAgentMetadata","type":"object","description":"Used to specify User Agent Cient Hints to emulate. See https://wicg.github.io/ua-client-hints Missing optional values will be filled in by the target with what it would normally use.","properties":[{"name":"brands","type":"array","optional":true,"items":{"$ref":"UserAgentBrandVersion"}},{"name":"fullVersionList","type":"array","optional":true,"items":{"$ref":"UserAgentBrandVersion"}},{"name":"fullVersion","type":"string","optional":true},{"name":"platform","type":"string"},{"name":"platformVersion","type":"string"},{"name":"architecture","type":"string"},{"name":"model","type":"string"},{"name":"mobile","type":"boolean"}]},{"id":"DisabledImageType","type":"string","description":"Enum of image types that can be disabled.","enum":["avif","jxl","webp"]}],"commands":[{"name":"canEmulate","description":"Tells whether emulation is supported.","returns":[{"name":"result","type":"boolean","description":"True if emulation is supported."}]},{"name":"clearDeviceMetricsOverride","description":"Clears the overridden device metrics."},{"name":"clearGeolocationOverride","description":"Clears the overridden Geolocation Position and Error."},{"name":"resetPageScaleFactor","description":"Requests that page scale factor is reset to initial values."},{"name":"setFocusEmulationEnabled","description":"Enables or disables simulating a focused and active page.","parameters":[{"name":"enabled","type":"boolean","description":"Whether to enable to disable focus emulation."}]},{"name":"setAutoDarkModeOverride","description":"Automatically render all web contents using a dark theme.","parameters":[{"name":"enabled","type":"boolean","description":"Whether to enable or disable automatic dark mode. If not specified, any existing override will be cleared.","optional":true}]},{"name":"setCPUThrottlingRate","description":"Enables CPU throttling to emulate slow CPUs.","parameters":[{"name":"rate","type":"number","description":"Throttling rate as a slowdown factor (1 is no throttle, 2 is 2x slowdown, etc)."}]},{"name":"setDefaultBackgroundColorOverride","description":"Sets or clears an override of the default background color of the frame. This override is used if the content does not specify one.","parameters":[{"name":"color","description":"RGBA of the default background color. If not specified, any existing override will be cleared.","$ref":"DOM.RGBA","optional":true}]},{"name":"setDeviceMetricsOverride","description":"Overrides the values of device screen dimensions (window.screen.width, window.screen.height, window.innerWidth, window.innerHeight, and \"device-width\"/\"device-height\"-related CSS media query results).","parameters":[{"name":"width","type":"integer","description":"Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override."},{"name":"height","type":"integer","description":"Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override."},{"name":"deviceScaleFactor","type":"number","description":"Overriding device scale factor value. 0 disables the override."},{"name":"mobile","type":"boolean","description":"Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more."},{"name":"scale","type":"number","description":"Scale to apply to resulting view image.","optional":true},{"name":"screenWidth","type":"integer","description":"Overriding screen width value in pixels (minimum 0, maximum 10000000).","optional":true},{"name":"screenHeight","type":"integer","description":"Overriding screen height value in pixels (minimum 0, maximum 10000000).","optional":true},{"name":"positionX","type":"integer","description":"Overriding view X position on screen in pixels (minimum 0, maximum 10000000).","optional":true},{"name":"positionY","type":"integer","description":"Overriding view Y position on screen in pixels (minimum 0, maximum 10000000).","optional":true},{"name":"dontSetVisibleSize","type":"boolean","description":"Do not set visible view size, rely upon explicit setVisibleSize call.","optional":true},{"name":"screenOrientation","description":"Screen orientation override.","$ref":"ScreenOrientation","optional":true},{"name":"viewport","description":"If set, the visible area of the page will be overridden to this viewport. This viewport change is not observed by the page, e.g. viewport-relative elements do not change positions.","$ref":"Page.Viewport","optional":true},{"name":"displayFeature","description":"If set, the display feature of a multi-segment screen. If not set, multi-segment support is turned-off.","$ref":"DisplayFeature","optional":true}]},{"name":"setScrollbarsHidden","parameters":[{"name":"hidden","type":"boolean","description":"Whether scrollbars should be always hidden."}]},{"name":"setDocumentCookieDisabled","parameters":[{"name":"disabled","type":"boolean","description":"Whether document.coookie API should be disabled."}]},{"name":"setEmitTouchEventsForMouse","parameters":[{"name":"enabled","type":"boolean","description":"Whether touch emulation based on mouse input should be enabled."},{"name":"configuration","type":"string","description":"Touch/gesture events configuration. Default: current platform.","optional":true,"enum":["mobile","desktop"]}]},{"name":"setEmulatedMedia","description":"Emulates the given media type or media feature for CSS media queries.","parameters":[{"name":"media","type":"string","description":"Media type to emulate. Empty string disables the override.","optional":true},{"name":"features","type":"array","description":"Media features to emulate.","optional":true,"items":{"$ref":"MediaFeature"}}]},{"name":"setEmulatedVisionDeficiency","description":"Emulates the given vision deficiency.","parameters":[{"name":"type","type":"string","description":"Vision deficiency to emulate.","enum":["none","achromatopsia","blurredVision","deuteranopia","protanopia","tritanopia"]}]},{"name":"setGeolocationOverride","description":"Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable.","parameters":[{"name":"latitude","type":"number","description":"Mock latitude","optional":true},{"name":"longitude","type":"number","description":"Mock longitude","optional":true},{"name":"accuracy","type":"number","description":"Mock accuracy","optional":true}]},{"name":"setIdleOverride","description":"Overrides the Idle state.","parameters":[{"name":"isUserActive","type":"boolean","description":"Mock isUserActive"},{"name":"isScreenUnlocked","type":"boolean","description":"Mock isScreenUnlocked"}]},{"name":"clearIdleOverride","description":"Clears Idle state overrides."},{"name":"setNavigatorOverrides","description":"Overrides value returned by the javascript navigator object.","parameters":[{"name":"platform","type":"string","description":"The platform navigator.platform should return."}]},{"name":"setPageScaleFactor","description":"Sets a specified page scale factor.","parameters":[{"name":"pageScaleFactor","type":"number","description":"Page scale factor."}]},{"name":"setScriptExecutionDisabled","description":"Switches script execution in the page.","parameters":[{"name":"value","type":"boolean","description":"Whether script execution should be disabled in the page."}]},{"name":"setTouchEmulationEnabled","description":"Enables touch on platforms which do not support them.","parameters":[{"name":"enabled","type":"boolean","description":"Whether the touch event emulation should be enabled."},{"name":"maxTouchPoints","type":"integer","description":"Maximum touch points supported. Defaults to one.","optional":true}]},{"name":"setVirtualTimePolicy","description":"Turns on virtual time for all frames (replacing real-time with a synthetic time source) and sets the current virtual time policy. Note this supersedes any previous time budget.","parameters":[{"name":"policy","$ref":"VirtualTimePolicy"},{"name":"budget","type":"number","description":"If set, after this many virtual milliseconds have elapsed virtual time will be paused and a virtualTimeBudgetExpired event is sent.","optional":true},{"name":"maxVirtualTimeTaskStarvationCount","type":"integer","description":"If set this specifies the maximum number of tasks that can be run before virtual is forced forwards to prevent deadlock.","optional":true},{"name":"initialVirtualTime","description":"If set, base::Time::Now will be overridden to initially return this value.","$ref":"Network.TimeSinceEpoch","optional":true}],"returns":[{"name":"virtualTimeTicksBase","type":"number","description":"Absolute timestamp at which virtual time was first enabled (up time in milliseconds)."}]},{"name":"setLocaleOverride","description":"Overrides default host system locale with the specified one.","parameters":[{"name":"locale","type":"string","description":"ICU style C locale (e.g. \"en_US\"). If not specified or empty, disables the override and restores default host system locale.","optional":true}]},{"name":"setTimezoneOverride","description":"Overrides default host system timezone with the specified one.","parameters":[{"name":"timezoneId","type":"string","description":"The timezone identifier. If empty, disables the override and restores default host system timezone."}]},{"name":"setVisibleSize","description":"Resizes the frame/viewport of the page. Note that this does not affect the frame's container (e.g. browser window). Can be used to produce screenshots of the specified size. Not supported on Android.","parameters":[{"name":"width","type":"integer","description":"Frame width (DIP)."},{"name":"height","type":"integer","description":"Frame height (DIP)."}]},{"name":"setDisabledImageTypes","parameters":[{"name":"imageTypes","type":"array","description":"Image types to disable.","items":{"$ref":"DisabledImageType"}}]},{"name":"setUserAgentOverride","description":"Allows overriding user agent with the given string.","parameters":[{"name":"userAgent","type":"string","description":"User agent to use."},{"name":"acceptLanguage","type":"string","description":"Browser langugage to emulate.","optional":true},{"name":"platform","type":"string","description":"The platform navigator.platform should return.","optional":true},{"name":"userAgentMetadata","description":"To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData","$ref":"UserAgentMetadata","optional":true}]},{"name":"setAutomationOverride","description":"Allows overriding the automation flag.","parameters":[{"name":"enabled","type":"boolean","description":"Whether the override should be enabled."}]}],"events":[{"name":"virtualTimeBudgetExpired","description":"Notification sent after the virtual time budget for the current VirtualTimePolicy has run out."}]},{"domain":"HeadlessExperimental","description":"This domain provides experimental commands only supported in headless mode.","types":[{"id":"ScreenshotParams","type":"object","description":"Encoding options for a screenshot.","properties":[{"name":"format","type":"string","description":"Image compression format (defaults to png).","optional":true,"enum":["jpeg","png"]},{"name":"quality","type":"integer","description":"Compression quality from range [0..100] (jpeg only).","optional":true}]}],"commands":[{"name":"beginFrame","description":"Sends a BeginFrame to the target and returns when the frame was completed. Optionally captures a screenshot from the resulting frame. Requires that the target was created with enabled BeginFrameControl. Designed for use with --run-all-compositor-stages-before-draw, see also https://goo.gl/3zHXhB for more background.","parameters":[{"name":"frameTimeTicks","type":"number","description":"Timestamp of this BeginFrame in Renderer TimeTicks (milliseconds of uptime). If not set, the current time will be used.","optional":true},{"name":"interval","type":"number","description":"The interval between BeginFrames that is reported to the compositor, in milliseconds. Defaults to a 60 frames/second interval, i.e. about 16.666 milliseconds.","optional":true},{"name":"noDisplayUpdates","type":"boolean","description":"Whether updates should not be committed and drawn onto the display. False by default. If true, only side effects of the BeginFrame will be run, such as layout and animations, but any visual updates may not be visible on the display or in screenshots.","optional":true},{"name":"screenshot","description":"If set, a screenshot of the frame will be captured and returned in the response. Otherwise, no screenshot will be captured. Note that capturing a screenshot can fail, for example, during renderer initialization. In such a case, no screenshot data will be returned.","$ref":"ScreenshotParams","optional":true}],"returns":[{"name":"hasDamage","type":"boolean","description":"Whether the BeginFrame resulted in damage and, thus, a new frame was committed to the display. Reported for diagnostic uses, may be removed in the future."},{"name":"screenshotData","type":"string","description":"Base64-encoded image data of the screenshot, if one was requested and successfully taken. (Encoded as a base64 string when passed over JSON)"}]},{"name":"disable","description":"Disables headless events for the target."},{"name":"enable","description":"Enables headless events for the target."}],"events":[{"name":"needsBeginFramesChanged","description":"Issued when the target starts or stops needing BeginFrames. Deprecated. Issue beginFrame unconditionally instead and use result from beginFrame to detect whether the frames were suppressed.","parameters":[{"name":"needsBeginFrames","type":"boolean","description":"True if BeginFrames are needed, false otherwise."}]}]},{"domain":"IO","description":"Input/Output operations for streams produced by DevTools.","types":[{"id":"StreamHandle","type":"string","description":"This is either obtained from another method or specified as `blob:\u0026lt;uuid\u0026gt;` where `\u0026lt;uuid\u0026gt` is an UUID of a Blob."}],"commands":[{"name":"close","description":"Close the stream, discard any temporary backing storage.","parameters":[{"name":"handle","description":"Handle of the stream to close.","$ref":"StreamHandle"}]},{"name":"read","description":"Read a chunk of the stream","parameters":[{"name":"handle","description":"Handle of the stream to read.","$ref":"StreamHandle"},{"name":"offset","type":"integer","description":"Seek to the specified offset before reading (if not specificed, proceed with offset following the last read). Some types of streams may only support sequential reads.","optional":true},{"name":"size","type":"integer","description":"Maximum number of bytes to read (left upon the agent discretion if not specified).","optional":true}],"returns":[{"name":"base64Encoded","type":"boolean","description":"Set if the data is base64-encoded"},{"name":"data","type":"string","description":"Data that were read."},{"name":"eof","type":"boolean","description":"Set if the end-of-file condition occurred while reading."}]},{"name":"resolveBlob","description":"Return UUID of Blob object specified by a remote object id.","parameters":[{"name":"objectId","description":"Object id of a Blob object wrapper.","$ref":"Runtime.RemoteObjectId"}],"returns":[{"name":"uuid","type":"string","description":"UUID of the specified Blob."}]}]},{"domain":"IndexedDB","types":[{"id":"DatabaseWithObjectStores","type":"object","description":"Database with an array of object stores.","properties":[{"name":"name","type":"string","description":"Database name."},{"name":"version","type":"number","description":"Database version (type is not 'integer', as the standard requires the version number to be 'unsigned long long')"},{"name":"objectStores","type":"array","description":"Object stores in this database.","items":{"$ref":"ObjectStore"}}]},{"id":"ObjectStore","type":"object","description":"Object store.","properties":[{"name":"name","type":"string","description":"Object store name."},{"name":"keyPath","description":"Object store key path.","$ref":"KeyPath"},{"name":"autoIncrement","type":"boolean","description":"If true, object store has auto increment flag set."},{"name":"indexes","type":"array","description":"Indexes in this object store.","items":{"$ref":"ObjectStoreIndex"}}]},{"id":"ObjectStoreIndex","type":"object","description":"Object store index.","properties":[{"name":"name","type":"string","description":"Index name."},{"name":"keyPath","description":"Index key path.","$ref":"KeyPath"},{"name":"unique","type":"boolean","description":"If true, index is unique."},{"name":"multiEntry","type":"boolean","description":"If true, index allows multiple entries for a key."}]},{"id":"Key","type":"object","description":"Key.","properties":[{"name":"type","type":"string","description":"Key type.","enum":["number","string","date","array"]},{"name":"number","type":"number","description":"Number value.","optional":true},{"name":"string","type":"string","description":"String value.","optional":true},{"name":"date","type":"number","description":"Date value.","optional":true},{"name":"array","type":"array","description":"Array value.","optional":true,"items":{"$ref":"Key"}}]},{"id":"KeyRange","type":"object","description":"Key range.","properties":[{"name":"lower","description":"Lower bound.","$ref":"Key","optional":true},{"name":"upper","description":"Upper bound.","$ref":"Key","optional":true},{"name":"lowerOpen","type":"boolean","description":"If true lower bound is open."},{"name":"upperOpen","type":"boolean","description":"If true upper bound is open."}]},{"id":"DataEntry","type":"object","description":"Data entry.","properties":[{"name":"key","description":"Key object.","$ref":"Runtime.RemoteObject"},{"name":"primaryKey","description":"Primary key object.","$ref":"Runtime.RemoteObject"},{"name":"value","description":"Value object.","$ref":"Runtime.RemoteObject"}]},{"id":"KeyPath","type":"object","description":"Key path.","properties":[{"name":"type","type":"string","description":"Key path type.","enum":["null","string","array"]},{"name":"string","type":"string","description":"String value.","optional":true},{"name":"array","type":"array","description":"Array value.","optional":true,"items":{"type":"string"}}]}],"commands":[{"name":"clearObjectStore","description":"Clears all entries from an object store.","parameters":[{"name":"securityOrigin","type":"string","description":"Security origin."},{"name":"databaseName","type":"string","description":"Database name."},{"name":"objectStoreName","type":"string","description":"Object store name."}]},{"name":"deleteDatabase","description":"Deletes a database.","parameters":[{"name":"securityOrigin","type":"string","description":"Security origin."},{"name":"databaseName","type":"string","description":"Database name."}]},{"name":"deleteObjectStoreEntries","description":"Delete a range of entries from an object store","parameters":[{"name":"securityOrigin","type":"string"},{"name":"databaseName","type":"string"},{"name":"objectStoreName","type":"string"},{"name":"keyRange","description":"Range of entry keys to delete","$ref":"KeyRange"}]},{"name":"disable","description":"Disables events from backend."},{"name":"enable","description":"Enables events from backend."},{"name":"requestData","description":"Requests data from object store or index.","parameters":[{"name":"securityOrigin","type":"string","description":"Security origin."},{"name":"databaseName","type":"string","description":"Database name."},{"name":"objectStoreName","type":"string","description":"Object store name."},{"name":"indexName","type":"string","description":"Index name, empty string for object store data requests."},{"name":"skipCount","type":"integer","description":"Number of records to skip."},{"name":"pageSize","type":"integer","description":"Number of records to fetch."},{"name":"keyRange","description":"Key range.","$ref":"KeyRange","optional":true}],"returns":[{"name":"objectStoreDataEntries","type":"array","items":{"$ref":"DataEntry"},"description":"Array of object store data entries."},{"name":"hasMore","type":"boolean","description":"If true, there are more entries to fetch in the given range."}]},{"name":"getMetadata","description":"Gets metadata of an object store","parameters":[{"name":"securityOrigin","type":"string","description":"Security origin."},{"name":"databaseName","type":"string","description":"Database name."},{"name":"objectStoreName","type":"string","description":"Object store name."}],"returns":[{"name":"entriesCount","type":"number","description":"the entries count"},{"name":"keyGeneratorValue","type":"number","description":"the current value of key generator, to become the next inserted key into the object store. Valid if objectStore.autoIncrement is true."}]},{"name":"requestDatabase","description":"Requests database with given name in given frame.","parameters":[{"name":"securityOrigin","type":"string","description":"Security origin."},{"name":"databaseName","type":"string","description":"Database name."}],"returns":[{"name":"databaseWithObjectStores","$ref":"DatabaseWithObjectStores","description":"Database with an array of object stores."}]},{"name":"requestDatabaseNames","description":"Requests database names for given security origin.","parameters":[{"name":"securityOrigin","type":"string","description":"Security origin."}],"returns":[{"name":"databaseNames","type":"array","items":{"type":"string"},"description":"Database names for origin."}]}]},{"domain":"Input","types":[{"id":"TouchPoint","type":"object","properties":[{"name":"x","type":"number","description":"X coordinate of the event relative to the main frame's viewport in CSS pixels."},{"name":"y","type":"number","description":"Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport."},{"name":"radiusX","type":"number","description":"X radius of the touch area (default: 1.0).","optional":true},{"name":"radiusY","type":"number","description":"Y radius of the touch area (default: 1.0).","optional":true},{"name":"rotationAngle","type":"number","description":"Rotation angle (default: 0.0).","optional":true},{"name":"force","type":"number","description":"Force (default: 1.0).","optional":true},{"name":"tangentialPressure","type":"number","description":"The normalized tangential pressure, which has a range of [-1,1] (default: 0).","optional":true},{"name":"tiltX","type":"integer","description":"The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0)","optional":true},{"name":"tiltY","type":"integer","description":"The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0).","optional":true},{"name":"twist","type":"integer","description":"The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0).","optional":true},{"name":"id","type":"number","description":"Identifier used to track touch sources between events, must be unique within an event.","optional":true}]},{"id":"GestureSourceType","type":"string","enum":["default","touch","mouse"]},{"id":"MouseButton","type":"string","enum":["none","left","middle","right","back","forward"]},{"id":"TimeSinceEpoch","type":"number","description":"UTC time in seconds, counted from January 1, 1970."},{"id":"DragDataItem","type":"object","properties":[{"name":"mimeType","type":"string","description":"Mime type of the dragged data."},{"name":"data","type":"string","description":"Depending of the value of `mimeType`, it contains the dragged link, text, HTML markup or any other data."},{"name":"title","type":"string","description":"Title associated with a link. Only valid when `mimeType` == \"text/uri-list\".","optional":true},{"name":"baseURL","type":"string","description":"Stores the base URL for the contained markup. Only valid when `mimeType` == \"text/html\".","optional":true}]},{"id":"DragData","type":"object","properties":[{"name":"items","type":"array","items":{"$ref":"DragDataItem"}},{"name":"files","type":"array","description":"List of filenames that should be included when dropping","optional":true,"items":{"type":"string"}},{"name":"dragOperationsMask","type":"integer","description":"Bit field representing allowed drag operations. Copy = 1, Link = 2, Move = 16"}]}],"commands":[{"name":"dispatchDragEvent","description":"Dispatches a drag event into the page.","parameters":[{"name":"type","type":"string","description":"Type of the drag event.","enum":["dragEnter","dragOver","drop","dragCancel"]},{"name":"x","type":"number","description":"X coordinate of the event relative to the main frame's viewport in CSS pixels."},{"name":"y","type":"number","description":"Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport."},{"name":"data","$ref":"DragData"},{"name":"modifiers","type":"integer","description":"Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).","optional":true}]},{"name":"dispatchKeyEvent","description":"Dispatches a key event to the page.","parameters":[{"name":"type","type":"string","description":"Type of the key event.","enum":["keyDown","keyUp","rawKeyDown","char"]},{"name":"modifiers","type":"integer","description":"Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).","optional":true},{"name":"timestamp","description":"Time at which the event occurred.","$ref":"TimeSinceEpoch","optional":true},{"name":"text","type":"string","description":"Text as generated by processing a virtual key code with a keyboard layout. Not needed for for `keyUp` and `rawKeyDown` events (default: \"\")","optional":true},{"name":"unmodifiedText","type":"string","description":"Text that would have been generated by the keyboard if no modifiers were pressed (except for shift). Useful for shortcut (accelerator) key handling (default: \"\").","optional":true},{"name":"keyIdentifier","type":"string","description":"Unique key identifier (e.g., 'U+0041') (default: \"\").","optional":true},{"name":"code","type":"string","description":"Unique DOM defined string value for each physical key (e.g., 'KeyA') (default: \"\").","optional":true},{"name":"key","type":"string","description":"Unique DOM defined string value describing the meaning of the key in the context of active modifiers, keyboard layout, etc (e.g., 'AltGr') (default: \"\").","optional":true},{"name":"windowsVirtualKeyCode","type":"integer","description":"Windows virtual key code (default: 0).","optional":true},{"name":"nativeVirtualKeyCode","type":"integer","description":"Native virtual key code (default: 0).","optional":true},{"name":"autoRepeat","type":"boolean","description":"Whether the event was generated from auto repeat (default: false).","optional":true},{"name":"isKeypad","type":"boolean","description":"Whether the event was generated from the keypad (default: false).","optional":true},{"name":"isSystemKey","type":"boolean","description":"Whether the event was a system key event (default: false).","optional":true},{"name":"location","type":"integer","description":"Whether the event was from the left or right side of the keyboard. 1=Left, 2=Right (default: 0).","optional":true},{"name":"commands","type":"array","description":"Editing commands to send with the key event (e.g., 'selectAll') (default: []). These are related to but not equal the command names used in `document.execCommand` and NSStandardKeyBindingResponding. See https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/editing/commands/editor_command_names.h for valid command names.","optional":true,"items":{"type":"string"}}]},{"name":"insertText","description":"This method emulates inserting text that doesn't come from a key press, for example an emoji keyboard or an IME.","parameters":[{"name":"text","type":"string","description":"The text to insert."}]},{"name":"imeSetComposition","description":"This method sets the current candidate text for ime. Use imeCommitComposition to commit the final text. Use imeSetComposition with empty string as text to cancel composition.","parameters":[{"name":"text","type":"string","description":"The text to insert"},{"name":"selectionStart","type":"integer","description":"selection start"},{"name":"selectionEnd","type":"integer","description":"selection end"},{"name":"replacementStart","type":"integer","description":"replacement start","optional":true},{"name":"replacementEnd","type":"integer","description":"replacement end","optional":true}]},{"name":"dispatchMouseEvent","description":"Dispatches a mouse event to the page.","parameters":[{"name":"type","type":"string","description":"Type of the mouse event.","enum":["mousePressed","mouseReleased","mouseMoved","mouseWheel"]},{"name":"x","type":"number","description":"X coordinate of the event relative to the main frame's viewport in CSS pixels."},{"name":"y","type":"number","description":"Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport."},{"name":"modifiers","type":"integer","description":"Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).","optional":true},{"name":"timestamp","description":"Time at which the event occurred.","$ref":"TimeSinceEpoch","optional":true},{"name":"button","description":"Mouse button (default: \"none\").","$ref":"MouseButton","optional":true},{"name":"buttons","type":"integer","description":"A number indicating which buttons are pressed on the mouse when a mouse event is triggered. Left=1, Right=2, Middle=4, Back=8, Forward=16, None=0.","optional":true},{"name":"clickCount","type":"integer","description":"Number of times the mouse button was clicked (default: 0).","optional":true},{"name":"force","type":"number","description":"The normalized pressure, which has a range of [0,1] (default: 0).","optional":true},{"name":"tangentialPressure","type":"number","description":"The normalized tangential pressure, which has a range of [-1,1] (default: 0).","optional":true},{"name":"tiltX","type":"integer","description":"The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0).","optional":true},{"name":"tiltY","type":"integer","description":"The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0).","optional":true},{"name":"twist","type":"integer","description":"The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0).","optional":true},{"name":"deltaX","type":"number","description":"X delta in CSS pixels for mouse wheel event (default: 0).","optional":true},{"name":"deltaY","type":"number","description":"Y delta in CSS pixels for mouse wheel event (default: 0).","optional":true},{"name":"pointerType","type":"string","description":"Pointer type (default: \"mouse\").","optional":true,"enum":["mouse","pen"]}]},{"name":"dispatchTouchEvent","description":"Dispatches a touch event to the page.","parameters":[{"name":"type","type":"string","description":"Type of the touch event. TouchEnd and TouchCancel must not contain any touch points, while TouchStart and TouchMove must contains at least one.","enum":["touchStart","touchEnd","touchMove","touchCancel"]},{"name":"touchPoints","type":"array","description":"Active touch points on the touch device. One event per any changed point (compared to previous touch event in a sequence) is generated, emulating pressing/moving/releasing points one by one.","items":{"$ref":"TouchPoint"}},{"name":"modifiers","type":"integer","description":"Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).","optional":true},{"name":"timestamp","description":"Time at which the event occurred.","$ref":"TimeSinceEpoch","optional":true}]},{"name":"emulateTouchFromMouseEvent","description":"Emulates touch event from the mouse event parameters.","parameters":[{"name":"type","type":"string","description":"Type of the mouse event.","enum":["mousePressed","mouseReleased","mouseMoved","mouseWheel"]},{"name":"x","type":"integer","description":"X coordinate of the mouse pointer in DIP."},{"name":"y","type":"integer","description":"Y coordinate of the mouse pointer in DIP."},{"name":"button","description":"Mouse button. Only \"none\", \"left\", \"right\" are supported.","$ref":"MouseButton"},{"name":"timestamp","description":"Time at which the event occurred (default: current time).","$ref":"TimeSinceEpoch","optional":true},{"name":"deltaX","type":"number","description":"X delta in DIP for mouse wheel event (default: 0).","optional":true},{"name":"deltaY","type":"number","description":"Y delta in DIP for mouse wheel event (default: 0).","optional":true},{"name":"modifiers","type":"integer","description":"Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).","optional":true},{"name":"clickCount","type":"integer","description":"Number of times the mouse button was clicked (default: 0).","optional":true}]},{"name":"setIgnoreInputEvents","description":"Ignores input events (useful while auditing page).","parameters":[{"name":"ignore","type":"boolean","description":"Ignores input events processing when set to true."}]},{"name":"setInterceptDrags","description":"Prevents default drag and drop behavior and instead emits `Input.dragIntercepted` events. Drag and drop behavior can be directly controlled via `Input.dispatchDragEvent`.","parameters":[{"name":"enabled","type":"boolean"}]},{"name":"synthesizePinchGesture","description":"Synthesizes a pinch gesture over a time period by issuing appropriate touch events.","parameters":[{"name":"x","type":"number","description":"X coordinate of the start of the gesture in CSS pixels."},{"name":"y","type":"number","description":"Y coordinate of the start of the gesture in CSS pixels."},{"name":"scaleFactor","type":"number","description":"Relative scale factor after zooming (\u003e1.0 zooms in, \u003c1.0 zooms out)."},{"name":"relativeSpeed","type":"integer","description":"Relative pointer speed in pixels per second (default: 800).","optional":true},{"name":"gestureSourceType","description":"Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type).","$ref":"GestureSourceType","optional":true}]},{"name":"synthesizeScrollGesture","description":"Synthesizes a scroll gesture over a time period by issuing appropriate touch events.","parameters":[{"name":"x","type":"number","description":"X coordinate of the start of the gesture in CSS pixels."},{"name":"y","type":"number","description":"Y coordinate of the start of the gesture in CSS pixels."},{"name":"xDistance","type":"number","description":"The distance to scroll along the X axis (positive to scroll left).","optional":true},{"name":"yDistance","type":"number","description":"The distance to scroll along the Y axis (positive to scroll up).","optional":true},{"name":"xOverscroll","type":"number","description":"The number of additional pixels to scroll back along the X axis, in addition to the given distance.","optional":true},{"name":"yOverscroll","type":"number","description":"The number of additional pixels to scroll back along the Y axis, in addition to the given distance.","optional":true},{"name":"preventFling","type":"boolean","description":"Prevent fling (default: true).","optional":true},{"name":"speed","type":"integer","description":"Swipe speed in pixels per second (default: 800).","optional":true},{"name":"gestureSourceType","description":"Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type).","$ref":"GestureSourceType","optional":true},{"name":"repeatCount","type":"integer","description":"The number of times to repeat the gesture (default: 0).","optional":true},{"name":"repeatDelayMs","type":"integer","description":"The number of milliseconds delay between each repeat. (default: 250).","optional":true},{"name":"interactionMarkerName","type":"string","description":"The name of the interaction markers to generate, if not empty (default: \"\").","optional":true}]},{"name":"synthesizeTapGesture","description":"Synthesizes a tap gesture over a time period by issuing appropriate touch events.","parameters":[{"name":"x","type":"number","description":"X coordinate of the start of the gesture in CSS pixels."},{"name":"y","type":"number","description":"Y coordinate of the start of the gesture in CSS pixels."},{"name":"duration","type":"integer","description":"Duration between touchdown and touchup events in ms (default: 50).","optional":true},{"name":"tapCount","type":"integer","description":"Number of times to perform the tap (e.g. 2 for double tap, default: 1).","optional":true},{"name":"gestureSourceType","description":"Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type).","$ref":"GestureSourceType","optional":true}]}],"events":[{"name":"dragIntercepted","description":"Emitted only when `Input.setInterceptDrags` is enabled. Use this data with `Input.dispatchDragEvent` to restore normal drag and drop behavior.","parameters":[{"name":"data","$ref":"DragData"}]}]},{"domain":"Inspector","commands":[{"name":"disable","description":"Disables inspector domain notifications."},{"name":"enable","description":"Enables inspector domain notifications."}],"events":[{"name":"detached","description":"Fired when remote debugging connection is about to be terminated. Contains detach reason.","parameters":[{"name":"reason","type":"string","description":"The reason why connection has been terminated."}]},{"name":"targetCrashed","description":"Fired when debugging target has crashed"},{"name":"targetReloadedAfterCrash","description":"Fired when debugging target has reloaded after crash"}]},{"domain":"LayerTree","types":[{"id":"LayerId","type":"string","description":"Unique Layer identifier."},{"id":"SnapshotId","type":"string","description":"Unique snapshot identifier."},{"id":"ScrollRect","type":"object","description":"Rectangle where scrolling happens on the main thread.","properties":[{"name":"rect","description":"Rectangle itself.","$ref":"DOM.Rect"},{"name":"type","type":"string","description":"Reason for rectangle to force scrolling on the main thread","enum":["RepaintsOnScroll","TouchEventHandler","WheelEventHandler"]}]},{"id":"StickyPositionConstraint","type":"object","description":"Sticky position constraints.","properties":[{"name":"stickyBoxRect","description":"Layout rectangle of the sticky element before being shifted","$ref":"DOM.Rect"},{"name":"containingBlockRect","description":"Layout rectangle of the containing block of the sticky element","$ref":"DOM.Rect"},{"name":"nearestLayerShiftingStickyBox","description":"The nearest sticky layer that shifts the sticky box","$ref":"LayerId","optional":true},{"name":"nearestLayerShiftingContainingBlock","description":"The nearest sticky layer that shifts the containing block","$ref":"LayerId","optional":true}]},{"id":"PictureTile","type":"object","description":"Serialized fragment of layer picture along with its offset within the layer.","properties":[{"name":"x","type":"number","description":"Offset from owning layer left boundary"},{"name":"y","type":"number","description":"Offset from owning layer top boundary"},{"name":"picture","type":"string","description":"Base64-encoded snapshot data. (Encoded as a base64 string when passed over JSON)"}]},{"id":"Layer","type":"object","description":"Information about a compositing layer.","properties":[{"name":"layerId","description":"The unique id for this layer.","$ref":"LayerId"},{"name":"parentLayerId","description":"The id of parent (not present for root).","$ref":"LayerId","optional":true},{"name":"backendNodeId","description":"The backend id for the node associated with this layer.","$ref":"DOM.BackendNodeId","optional":true},{"name":"offsetX","type":"number","description":"Offset from parent layer, X coordinate."},{"name":"offsetY","type":"number","description":"Offset from parent layer, Y coordinate."},{"name":"width","type":"number","description":"Layer width."},{"name":"height","type":"number","description":"Layer height."},{"name":"transform","type":"array","description":"Transformation matrix for layer, default is identity matrix","optional":true,"items":{"type":"number"}},{"name":"anchorX","type":"number","description":"Transform anchor point X, absent if no transform specified","optional":true},{"name":"anchorY","type":"number","description":"Transform anchor point Y, absent if no transform specified","optional":true},{"name":"anchorZ","type":"number","description":"Transform anchor point Z, absent if no transform specified","optional":true},{"name":"paintCount","type":"integer","description":"Indicates how many time this layer has painted."},{"name":"drawsContent","type":"boolean","description":"Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only."},{"name":"invisible","type":"boolean","description":"Set if layer is not visible.","optional":true},{"name":"scrollRects","type":"array","description":"Rectangles scrolling on main thread only.","optional":true,"items":{"$ref":"ScrollRect"}},{"name":"stickyPositionConstraint","description":"Sticky position constraint information","$ref":"StickyPositionConstraint","optional":true}]},{"id":"PaintProfile","type":"array","description":"Array of timings, one per paint step.","items":{"type":"number"}}],"commands":[{"name":"compositingReasons","description":"Provides the reasons why the given layer was composited.","parameters":[{"name":"layerId","description":"The id of the layer for which we want to get the reasons it was composited.","$ref":"LayerId"}],"returns":[{"name":"compositingReasons","type":"array","items":{"type":"string"},"description":"A list of strings specifying reasons for the given layer to become composited."},{"name":"compositingReasonIds","type":"array","items":{"type":"string"},"description":"A list of strings specifying reason IDs for the given layer to become composited."}]},{"name":"disable","description":"Disables compositing tree inspection."},{"name":"enable","description":"Enables compositing tree inspection."},{"name":"loadSnapshot","description":"Returns the snapshot identifier.","parameters":[{"name":"tiles","type":"array","description":"An array of tiles composing the snapshot.","items":{"$ref":"PictureTile"}}],"returns":[{"name":"snapshotId","$ref":"SnapshotId","description":"The id of the snapshot."}]},{"name":"makeSnapshot","description":"Returns the layer snapshot identifier.","parameters":[{"name":"layerId","description":"The id of the layer.","$ref":"LayerId"}],"returns":[{"name":"snapshotId","$ref":"SnapshotId","description":"The id of the layer snapshot."}]},{"name":"profileSnapshot","parameters":[{"name":"snapshotId","description":"The id of the layer snapshot.","$ref":"SnapshotId"},{"name":"minRepeatCount","type":"integer","description":"The maximum number of times to replay the snapshot (1, if not specified).","optional":true},{"name":"minDuration","type":"number","description":"The minimum duration (in seconds) to replay the snapshot.","optional":true},{"name":"clipRect","description":"The clip rectangle to apply when replaying the snapshot.","$ref":"DOM.Rect","optional":true}],"returns":[{"name":"timings","type":"array","items":{"$ref":"PaintProfile"},"description":"The array of paint profiles, one per run."}]},{"name":"releaseSnapshot","description":"Releases layer snapshot captured by the back-end.","parameters":[{"name":"snapshotId","description":"The id of the layer snapshot.","$ref":"SnapshotId"}]},{"name":"replaySnapshot","description":"Replays the layer snapshot and returns the resulting bitmap.","parameters":[{"name":"snapshotId","description":"The id of the layer snapshot.","$ref":"SnapshotId"},{"name":"fromStep","type":"integer","description":"The first step to replay from (replay from the very start if not specified).","optional":true},{"name":"toStep","type":"integer","description":"The last step to replay to (replay till the end if not specified).","optional":true},{"name":"scale","type":"number","description":"The scale to apply while replaying (defaults to 1).","optional":true}],"returns":[{"name":"dataURL","type":"string","description":"A data: URL for resulting image."}]},{"name":"snapshotCommandLog","description":"Replays the layer snapshot and returns canvas log.","parameters":[{"name":"snapshotId","description":"The id of the layer snapshot.","$ref":"SnapshotId"}],"returns":[{"name":"commandLog","type":"array","items":{"type":"object"},"description":"The array of canvas function calls."}]}],"events":[{"name":"layerPainted","parameters":[{"name":"layerId","description":"The id of the painted layer.","$ref":"LayerId"},{"name":"clip","description":"Clip rectangle.","$ref":"DOM.Rect"}]},{"name":"layerTreeDidChange","parameters":[{"name":"layers","type":"array","description":"Layer tree, absent if not in the comspositing mode.","optional":true,"items":{"$ref":"Layer"}}]}]},{"domain":"Log","description":"Provides access to log entries.","types":[{"id":"LogEntry","type":"object","description":"Log entry.","properties":[{"name":"source","type":"string","description":"Log entry source.","enum":["xml","javascript","network","storage","appcache","rendering","security","deprecation","worker","violation","intervention","recommendation","other"]},{"name":"level","type":"string","description":"Log entry severity.","enum":["verbose","info","warning","error"]},{"name":"text","type":"string","description":"Logged text."},{"name":"category","type":"string","optional":true,"enum":["cors"]},{"name":"timestamp","description":"Timestamp when this entry was added.","$ref":"Runtime.Timestamp"},{"name":"url","type":"string","description":"URL of the resource if known.","optional":true},{"name":"lineNumber","type":"integer","description":"Line number in the resource.","optional":true},{"name":"stackTrace","description":"JavaScript stack trace.","$ref":"Runtime.StackTrace","optional":true},{"name":"networkRequestId","description":"Identifier of the network request associated with this entry.","$ref":"Network.RequestId","optional":true},{"name":"workerId","type":"string","description":"Identifier of the worker associated with this entry.","optional":true},{"name":"args","type":"array","description":"Call arguments.","optional":true,"items":{"$ref":"Runtime.RemoteObject"}}]},{"id":"ViolationSetting","type":"object","description":"Violation configuration setting.","properties":[{"name":"name","type":"string","description":"Violation type.","enum":["longTask","longLayout","blockedEvent","blockedParser","discouragedAPIUse","handler","recurringHandler"]},{"name":"threshold","type":"number","description":"Time threshold to trigger upon."}]}],"commands":[{"name":"clear","description":"Clears the log."},{"name":"disable","description":"Disables log domain, prevents further log entries from being reported to the client."},{"name":"enable","description":"Enables log domain, sends the entries collected so far to the client by means of the `entryAdded` notification."},{"name":"startViolationsReport","description":"start violation reporting.","parameters":[{"name":"config","type":"array","description":"Configuration for violations.","items":{"$ref":"ViolationSetting"}}]},{"name":"stopViolationsReport","description":"Stop violation reporting."}],"events":[{"name":"entryAdded","description":"Issued when new message was logged.","parameters":[{"name":"entry","description":"The entry.","$ref":"LogEntry"}]}]},{"domain":"Memory","types":[{"id":"PressureLevel","type":"string","description":"Memory pressure level.","enum":["moderate","critical"]},{"id":"SamplingProfileNode","type":"object","description":"Heap profile sample.","properties":[{"name":"size","type":"number","description":"Size of the sampled allocation."},{"name":"total","type":"number","description":"Total bytes attributed to this sample."},{"name":"stack","type":"array","description":"Execution stack at the point of allocation.","items":{"type":"string"}}]},{"id":"SamplingProfile","type":"object","description":"Array of heap profile samples.","properties":[{"name":"samples","type":"array","items":{"$ref":"SamplingProfileNode"}},{"name":"modules","type":"array","items":{"$ref":"Module"}}]},{"id":"Module","type":"object","description":"Executable module information","properties":[{"name":"name","type":"string","description":"Name of the module."},{"name":"uuid","type":"string","description":"UUID of the module."},{"name":"baseAddress","type":"string","description":"Base address where the module is loaded into memory. Encoded as a decimal or hexadecimal (0x prefixed) string."},{"name":"size","type":"number","description":"Size of the module in bytes."}]}],"commands":[{"name":"getDOMCounters","returns":[{"name":"documents","type":"integer"},{"name":"nodes","type":"integer"},{"name":"jsEventListeners","type":"integer"}]},{"name":"prepareForLeakDetection"},{"name":"forciblyPurgeJavaScriptMemory","description":"Simulate OomIntervention by purging V8 memory."},{"name":"setPressureNotificationsSuppressed","description":"Enable/disable suppressing memory pressure notifications in all processes.","parameters":[{"name":"suppressed","type":"boolean","description":"If true, memory pressure notifications will be suppressed."}]},{"name":"simulatePressureNotification","description":"Simulate a memory pressure notification in all processes.","parameters":[{"name":"level","description":"Memory pressure level of the notification.","$ref":"PressureLevel"}]},{"name":"startSampling","description":"Start collecting native memory profile.","parameters":[{"name":"samplingInterval","type":"integer","description":"Average number of bytes between samples.","optional":true},{"name":"suppressRandomness","type":"boolean","description":"Do not randomize intervals between samples.","optional":true}]},{"name":"stopSampling","description":"Stop collecting native memory profile."},{"name":"getAllTimeSamplingProfile","description":"Retrieve native memory allocations profile collected since renderer process startup.","returns":[{"name":"profile","$ref":"SamplingProfile"}]},{"name":"getBrowserSamplingProfile","description":"Retrieve native memory allocations profile collected since browser process startup.","returns":[{"name":"profile","$ref":"SamplingProfile"}]},{"name":"getSamplingProfile","description":"Retrieve native memory allocations profile collected since last `startSampling` call.","returns":[{"name":"profile","$ref":"SamplingProfile"}]}]},{"domain":"Network","description":"Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers, bodies, timing, etc.","types":[{"id":"ResourceType","type":"string","description":"Resource type as it was perceived by the rendering engine.","enum":["Document","Stylesheet","Image","Media","Font","Script","TextTrack","XHR","Fetch","EventSource","WebSocket","Manifest","SignedExchange","Ping","CSPViolationReport","Preflight","Other"]},{"id":"LoaderId","type":"string","description":"Unique loader identifier."},{"id":"RequestId","type":"string","description":"Unique request identifier."},{"id":"InterceptionId","type":"string","description":"Unique intercepted request identifier."},{"id":"ErrorReason","type":"string","description":"Network level fetch failure reason.","enum":["Failed","Aborted","TimedOut","AccessDenied","ConnectionClosed","ConnectionReset","ConnectionRefused","ConnectionAborted","ConnectionFailed","NameNotResolved","InternetDisconnected","AddressUnreachable","BlockedByClient","BlockedByResponse"]},{"id":"TimeSinceEpoch","type":"number","description":"UTC time in seconds, counted from January 1, 1970."},{"id":"MonotonicTime","type":"number","description":"Monotonically increasing time in seconds since an arbitrary point in the past."},{"id":"Headers","type":"object","description":"Request / response headers as keys / values of JSON object."},{"id":"ConnectionType","type":"string","description":"The underlying connection technology that the browser is supposedly using.","enum":["none","cellular2g","cellular3g","cellular4g","bluetooth","ethernet","wifi","wimax","other"]},{"id":"CookieSameSite","type":"string","description":"Represents the cookie's 'SameSite' status: https://tools.ietf.org/html/draft-west-first-party-cookies","enum":["Strict","Lax","None"]},{"id":"CookiePriority","type":"string","description":"Represents the cookie's 'Priority' status: https://tools.ietf.org/html/draft-west-cookie-priority-00","enum":["Low","Medium","High"]},{"id":"CookieSourceScheme","type":"string","description":"Represents the source scheme of the origin that originally set the cookie. A value of \"Unset\" allows protocol clients to emulate legacy cookie scope for the scheme. This is a temporary ability and it will be removed in the future.","enum":["Unset","NonSecure","Secure"]},{"id":"ResourceTiming","type":"object","description":"Timing information for the request.","properties":[{"name":"requestTime","type":"number","description":"Timing's requestTime is a baseline in seconds, while the other numbers are ticks in milliseconds relatively to this requestTime."},{"name":"proxyStart","type":"number","description":"Started resolving proxy."},{"name":"proxyEnd","type":"number","description":"Finished resolving proxy."},{"name":"dnsStart","type":"number","description":"Started DNS address resolve."},{"name":"dnsEnd","type":"number","description":"Finished DNS address resolve."},{"name":"connectStart","type":"number","description":"Started connecting to the remote host."},{"name":"connectEnd","type":"number","description":"Connected to the remote host."},{"name":"sslStart","type":"number","description":"Started SSL handshake."},{"name":"sslEnd","type":"number","description":"Finished SSL handshake."},{"name":"workerStart","type":"number","description":"Started running ServiceWorker."},{"name":"workerReady","type":"number","description":"Finished Starting ServiceWorker."},{"name":"workerFetchStart","type":"number","description":"Started fetch event."},{"name":"workerRespondWithSettled","type":"number","description":"Settled fetch event respondWith promise."},{"name":"sendStart","type":"number","description":"Started sending request."},{"name":"sendEnd","type":"number","description":"Finished sending request."},{"name":"pushStart","type":"number","description":"Time the server started pushing request."},{"name":"pushEnd","type":"number","description":"Time the server finished pushing request."},{"name":"receiveHeadersEnd","type":"number","description":"Finished receiving response headers."}]},{"id":"ResourcePriority","type":"string","description":"Loading priority of a resource request.","enum":["VeryLow","Low","Medium","High","VeryHigh"]},{"id":"PostDataEntry","type":"object","description":"Post data entry for HTTP request","properties":[{"name":"bytes","type":"string","optional":true}]},{"id":"Request","type":"object","description":"HTTP request data.","properties":[{"name":"url","type":"string","description":"Request URL (without fragment)."},{"name":"urlFragment","type":"string","description":"Fragment of the requested URL starting with hash, if present.","optional":true},{"name":"method","type":"string","description":"HTTP request method."},{"name":"headers","description":"HTTP request headers.","$ref":"Headers"},{"name":"postData","type":"string","description":"HTTP POST request data.","optional":true},{"name":"hasPostData","type":"boolean","description":"True when the request has POST data. Note that postData might still be omitted when this flag is true when the data is too long.","optional":true},{"name":"postDataEntries","type":"array","description":"Request body elements. This will be converted from base64 to binary","optional":true,"items":{"$ref":"PostDataEntry"}},{"name":"mixedContentType","description":"The mixed content type of the request.","$ref":"Security.MixedContentType","optional":true},{"name":"initialPriority","description":"Priority of the resource request at the time request is sent.","$ref":"ResourcePriority"},{"name":"referrerPolicy","type":"string","description":"The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/","enum":["unsafe-url","no-referrer-when-downgrade","no-referrer","origin","origin-when-cross-origin","same-origin","strict-origin","strict-origin-when-cross-origin"]},{"name":"isLinkPreload","type":"boolean","description":"Whether is loaded via link preload.","optional":true},{"name":"trustTokenParams","description":"Set for requests when the TrustToken API is used. Contains the parameters passed by the developer (e.g. via \"fetch\") as understood by the backend.","$ref":"TrustTokenParams","optional":true},{"name":"isSameSite","type":"boolean","description":"True if this resource request is considered to be the 'same site' as the request correspondinfg to the main frame.","optional":true}]},{"id":"SignedCertificateTimestamp","type":"object","description":"Details of a signed certificate timestamp (SCT).","properties":[{"name":"status","type":"string","description":"Validation status."},{"name":"origin","type":"string","description":"Origin."},{"name":"logDescription","type":"string","description":"Log name / description."},{"name":"logId","type":"string","description":"Log ID."},{"name":"timestamp","type":"number","description":"Issuance date. Unlike TimeSinceEpoch, this contains the number of milliseconds since January 1, 1970, UTC, not the number of seconds."},{"name":"hashAlgorithm","type":"string","description":"Hash algorithm."},{"name":"signatureAlgorithm","type":"string","description":"Signature algorithm."},{"name":"signatureData","type":"string","description":"Signature data."}]},{"id":"SecurityDetails","type":"object","description":"Security details about a request.","properties":[{"name":"protocol","type":"string","description":"Protocol name (e.g. \"TLS 1.2\" or \"QUIC\")."},{"name":"keyExchange","type":"string","description":"Key Exchange used by the connection, or the empty string if not applicable."},{"name":"keyExchangeGroup","type":"string","description":"(EC)DH group used by the connection, if applicable.","optional":true},{"name":"cipher","type":"string","description":"Cipher name."},{"name":"mac","type":"string","description":"TLS MAC. Note that AEAD ciphers do not have separate MACs.","optional":true},{"name":"certificateId","description":"Certificate ID value.","$ref":"Security.CertificateId"},{"name":"subjectName","type":"string","description":"Certificate subject name."},{"name":"sanList","type":"array","description":"Subject Alternative Name (SAN) DNS names and IP addresses.","items":{"type":"string"}},{"name":"issuer","type":"string","description":"Name of the issuing CA."},{"name":"validFrom","description":"Certificate valid from date.","$ref":"TimeSinceEpoch"},{"name":"validTo","description":"Certificate valid to (expiration) date","$ref":"TimeSinceEpoch"},{"name":"signedCertificateTimestampList","type":"array","description":"List of signed certificate timestamps (SCTs).","items":{"$ref":"SignedCertificateTimestamp"}},{"name":"certificateTransparencyCompliance","description":"Whether the request complied with Certificate Transparency policy","$ref":"CertificateTransparencyCompliance"}]},{"id":"CertificateTransparencyCompliance","type":"string","description":"Whether the request complied with Certificate Transparency policy.","enum":["unknown","not-compliant","compliant"]},{"id":"BlockedReason","type":"string","description":"The reason why request was blocked.","enum":["other","csp","mixed-content","origin","inspector","subresource-filter","content-type","coep-frame-resource-needs-coep-header","coop-sandboxed-iframe-cannot-navigate-to-coop-page","corp-not-same-origin","corp-not-same-origin-after-defaulted-to-same-origin-by-coep","corp-not-same-site"]},{"id":"CorsError","type":"string","description":"The reason why request was blocked.","enum":["DisallowedByMode","InvalidResponse","WildcardOriginNotAllowed","MissingAllowOriginHeader","MultipleAllowOriginValues","InvalidAllowOriginValue","AllowOriginMismatch","InvalidAllowCredentials","CorsDisabledScheme","PreflightInvalidStatus","PreflightDisallowedRedirect","PreflightWildcardOriginNotAllowed","PreflightMissingAllowOriginHeader","PreflightMultipleAllowOriginValues","PreflightInvalidAllowOriginValue","PreflightAllowOriginMismatch","PreflightInvalidAllowCredentials","PreflightMissingAllowExternal","PreflightInvalidAllowExternal","PreflightMissingAllowPrivateNetwork","PreflightInvalidAllowPrivateNetwork","InvalidAllowMethodsPreflightResponse","InvalidAllowHeadersPreflightResponse","MethodDisallowedByPreflightResponse","HeaderDisallowedByPreflightResponse","RedirectContainsCredentials","InsecurePrivateNetwork","InvalidPrivateNetworkAccess","UnexpectedPrivateNetworkAccess","NoCorsRedirectModeNotFollow"]},{"id":"CorsErrorStatus","type":"object","properties":[{"name":"corsError","$ref":"CorsError"},{"name":"failedParameter","type":"string"}]},{"id":"ServiceWorkerResponseSource","type":"string","description":"Source of serviceworker response.","enum":["cache-storage","http-cache","fallback-code","network"]},{"id":"TrustTokenParams","type":"object","description":"Determines what type of Trust Token operation is executed and depending on the type, some additional parameters. The values are specified in third_party/blink/renderer/core/fetch/trust_token.idl.","properties":[{"name":"type","$ref":"TrustTokenOperationType"},{"name":"refreshPolicy","type":"string","description":"Only set for \"token-redemption\" type and determine whether to request a fresh SRR or use a still valid cached SRR.","enum":["UseCached","Refresh"]},{"name":"issuers","type":"array","description":"Origins of issuers from whom to request tokens or redemption records.","optional":true,"items":{"type":"string"}}]},{"id":"TrustTokenOperationType","type":"string","enum":["Issuance","Redemption","Signing"]},{"id":"Response","type":"object","description":"HTTP response data.","properties":[{"name":"url","type":"string","description":"Response URL. This URL can be different from CachedResource.url in case of redirect."},{"name":"status","type":"integer","description":"HTTP response status code."},{"name":"statusText","type":"string","description":"HTTP response status text."},{"name":"headers","description":"HTTP response headers.","$ref":"Headers"},{"name":"headersText","type":"string","description":"HTTP response headers text. This has been replaced by the headers in Network.responseReceivedExtraInfo.","optional":true},{"name":"mimeType","type":"string","description":"Resource mimeType as determined by the browser."},{"name":"requestHeaders","description":"Refined HTTP request headers that were actually transmitted over the network.","$ref":"Headers","optional":true},{"name":"requestHeadersText","type":"string","description":"HTTP request headers text. This has been replaced by the headers in Network.requestWillBeSentExtraInfo.","optional":true},{"name":"connectionReused","type":"boolean","description":"Specifies whether physical connection was actually reused for this request."},{"name":"connectionId","type":"number","description":"Physical connection id that was actually used for this request."},{"name":"remoteIPAddress","type":"string","description":"Remote IP address.","optional":true},{"name":"remotePort","type":"integer","description":"Remote port.","optional":true},{"name":"fromDiskCache","type":"boolean","description":"Specifies that the request was served from the disk cache.","optional":true},{"name":"fromServiceWorker","type":"boolean","description":"Specifies that the request was served from the ServiceWorker.","optional":true},{"name":"fromPrefetchCache","type":"boolean","description":"Specifies that the request was served from the prefetch cache.","optional":true},{"name":"encodedDataLength","type":"number","description":"Total number of bytes received for this request so far."},{"name":"timing","description":"Timing information for the given request.","$ref":"ResourceTiming","optional":true},{"name":"serviceWorkerResponseSource","description":"Response source of response from ServiceWorker.","$ref":"ServiceWorkerResponseSource","optional":true},{"name":"responseTime","description":"The time at which the returned response was generated.","$ref":"TimeSinceEpoch","optional":true},{"name":"cacheStorageCacheName","type":"string","description":"Cache Storage Cache Name.","optional":true},{"name":"protocol","type":"string","description":"Protocol used to fetch this request.","optional":true},{"name":"securityState","description":"Security state of the request resource.","$ref":"Security.SecurityState"},{"name":"securityDetails","description":"Security details for the request.","$ref":"SecurityDetails","optional":true}]},{"id":"WebSocketRequest","type":"object","description":"WebSocket request data.","properties":[{"name":"headers","description":"HTTP request headers.","$ref":"Headers"}]},{"id":"WebSocketResponse","type":"object","description":"WebSocket response data.","properties":[{"name":"status","type":"integer","description":"HTTP response status code."},{"name":"statusText","type":"string","description":"HTTP response status text."},{"name":"headers","description":"HTTP response headers.","$ref":"Headers"},{"name":"headersText","type":"string","description":"HTTP response headers text.","optional":true},{"name":"requestHeaders","description":"HTTP request headers.","$ref":"Headers","optional":true},{"name":"requestHeadersText","type":"string","description":"HTTP request headers text.","optional":true}]},{"id":"WebSocketFrame","type":"object","description":"WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests.","properties":[{"name":"opcode","type":"number","description":"WebSocket message opcode."},{"name":"mask","type":"boolean","description":"WebSocket message mask."},{"name":"payloadData","type":"string","description":"WebSocket message payload data. If the opcode is 1, this is a text message and payloadData is a UTF-8 string. If the opcode isn't 1, then payloadData is a base64 encoded string representing binary data."}]},{"id":"CachedResource","type":"object","description":"Information about the cached resource.","properties":[{"name":"url","type":"string","description":"Resource URL. This is the url of the original network request."},{"name":"type","description":"Type of this resource.","$ref":"ResourceType"},{"name":"response","description":"Cached response data.","$ref":"Response","optional":true},{"name":"bodySize","type":"number","description":"Cached response body size."}]},{"id":"Initiator","type":"object","description":"Information about the request initiator.","properties":[{"name":"type","type":"string","description":"Type of this initiator.","enum":["parser","script","preload","SignedExchange","preflight","other"]},{"name":"stack","description":"Initiator JavaScript stack trace, set for Script only.","$ref":"Runtime.StackTrace","optional":true},{"name":"url","type":"string","description":"Initiator URL, set for Parser type or for Script type (when script is importing module) or for SignedExchange type.","optional":true},{"name":"lineNumber","type":"number","description":"Initiator line number, set for Parser type or for Script type (when script is importing module) (0-based).","optional":true},{"name":"columnNumber","type":"number","description":"Initiator column number, set for Parser type or for Script type (when script is importing module) (0-based).","optional":true},{"name":"requestId","description":"Set if another request triggered this request (e.g. preflight).","$ref":"RequestId","optional":true}]},{"id":"Cookie","type":"object","description":"Cookie object","properties":[{"name":"name","type":"string","description":"Cookie name."},{"name":"value","type":"string","description":"Cookie value."},{"name":"domain","type":"string","description":"Cookie domain."},{"name":"path","type":"string","description":"Cookie path."},{"name":"expires","type":"number","description":"Cookie expiration date as the number of seconds since the UNIX epoch."},{"name":"size","type":"integer","description":"Cookie size."},{"name":"httpOnly","type":"boolean","description":"True if cookie is http-only."},{"name":"secure","type":"boolean","description":"True if cookie is secure."},{"name":"session","type":"boolean","description":"True in case of session cookie."},{"name":"sameSite","description":"Cookie SameSite type.","$ref":"CookieSameSite","optional":true},{"name":"priority","description":"Cookie Priority","$ref":"CookiePriority"},{"name":"sameParty","type":"boolean","description":"True if cookie is SameParty."},{"name":"sourceScheme","description":"Cookie source scheme type.","$ref":"CookieSourceScheme"},{"name":"sourcePort","type":"integer","description":"Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future."},{"name":"partitionKey","type":"string","description":"Cookie partition key. The site of the top-level URL the browser was visiting at the start of the request to the endpoint that set the cookie.","optional":true},{"name":"partitionKeyOpaque","type":"boolean","description":"True if cookie partition key is opaque.","optional":true}]},{"id":"SetCookieBlockedReason","type":"string","description":"Types of reasons why a cookie may not be stored from a response.","enum":["SecureOnly","SameSiteStrict","SameSiteLax","SameSiteUnspecifiedTreatedAsLax","SameSiteNoneInsecure","UserPreferences","SyntaxError","SchemeNotSupported","OverwriteSecure","InvalidDomain","InvalidPrefix","UnknownError","SchemefulSameSiteStrict","SchemefulSameSiteLax","SchemefulSameSiteUnspecifiedTreatedAsLax","SamePartyFromCrossPartyContext","SamePartyConflictsWithOtherAttributes","NameValuePairExceedsMaxSize"]},{"id":"CookieBlockedReason","type":"string","description":"Types of reasons why a cookie may not be sent with a request.","enum":["SecureOnly","NotOnPath","DomainMismatch","SameSiteStrict","SameSiteLax","SameSiteUnspecifiedTreatedAsLax","SameSiteNoneInsecure","UserPreferences","UnknownError","SchemefulSameSiteStrict","SchemefulSameSiteLax","SchemefulSameSiteUnspecifiedTreatedAsLax","SamePartyFromCrossPartyContext","NameValuePairExceedsMaxSize"]},{"id":"BlockedSetCookieWithReason","type":"object","description":"A cookie which was not stored from a response with the corresponding reason.","properties":[{"name":"blockedReasons","type":"array","description":"The reason(s) this cookie was blocked.","items":{"$ref":"SetCookieBlockedReason"}},{"name":"cookieLine","type":"string","description":"The string representing this individual cookie as it would appear in the header. This is not the entire \"cookie\" or \"set-cookie\" header which could have multiple cookies."},{"name":"cookie","description":"The cookie object which represents the cookie which was not stored. It is optional because sometimes complete cookie information is not available, such as in the case of parsing errors.","$ref":"Cookie","optional":true}]},{"id":"BlockedCookieWithReason","type":"object","description":"A cookie with was not sent with a request with the corresponding reason.","properties":[{"name":"blockedReasons","type":"array","description":"The reason(s) the cookie was blocked.","items":{"$ref":"CookieBlockedReason"}},{"name":"cookie","description":"The cookie object representing the cookie which was not sent.","$ref":"Cookie"}]},{"id":"CookieParam","type":"object","description":"Cookie parameter object","properties":[{"name":"name","type":"string","description":"Cookie name."},{"name":"value","type":"string","description":"Cookie value."},{"name":"url","type":"string","description":"The request-URI to associate with the setting of the cookie. This value can affect the default domain, path, source port, and source scheme values of the created cookie.","optional":true},{"name":"domain","type":"string","description":"Cookie domain.","optional":true},{"name":"path","type":"string","description":"Cookie path.","optional":true},{"name":"secure","type":"boolean","description":"True if cookie is secure.","optional":true},{"name":"httpOnly","type":"boolean","description":"True if cookie is http-only.","optional":true},{"name":"sameSite","description":"Cookie SameSite type.","$ref":"CookieSameSite","optional":true},{"name":"expires","description":"Cookie expiration date, session cookie if not set","$ref":"TimeSinceEpoch","optional":true},{"name":"priority","description":"Cookie Priority.","$ref":"CookiePriority","optional":true},{"name":"sameParty","type":"boolean","description":"True if cookie is SameParty.","optional":true},{"name":"sourceScheme","description":"Cookie source scheme type.","$ref":"CookieSourceScheme","optional":true},{"name":"sourcePort","type":"integer","description":"Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future.","optional":true},{"name":"partitionKey","type":"string","description":"Cookie partition key. The site of the top-level URL the browser was visiting at the start of the request to the endpoint that set the cookie. If not set, the cookie will be set as not partitioned.","optional":true}]},{"id":"AuthChallenge","type":"object","description":"Authorization challenge for HTTP status code 401 or 407.","properties":[{"name":"source","type":"string","description":"Source of the authentication challenge.","optional":true,"enum":["Server","Proxy"]},{"name":"origin","type":"string","description":"Origin of the challenger."},{"name":"scheme","type":"string","description":"The authentication scheme used, such as basic or digest"},{"name":"realm","type":"string","description":"The realm of the challenge. May be empty."}]},{"id":"AuthChallengeResponse","type":"object","description":"Response to an AuthChallenge.","properties":[{"name":"response","type":"string","description":"The decision on what to do in response to the authorization challenge. Default means deferring to the default behavior of the net stack, which will likely either the Cancel authentication or display a popup dialog box.","enum":["Default","CancelAuth","ProvideCredentials"]},{"name":"username","type":"string","description":"The username to provide, possibly empty. Should only be set if response is ProvideCredentials.","optional":true},{"name":"password","type":"string","description":"The password to provide, possibly empty. Should only be set if response is ProvideCredentials.","optional":true}]},{"id":"InterceptionStage","type":"string","description":"Stages of the interception to begin intercepting. Request will intercept before the request is sent. Response will intercept after the response is received.","enum":["Request","HeadersReceived"]},{"id":"RequestPattern","type":"object","description":"Request pattern for interception.","properties":[{"name":"urlPattern","type":"string","description":"Wildcards (`'*'` -\u003e zero or more, `'?'` -\u003e exactly one) are allowed. Escape character is backslash. Omitting is equivalent to `\"*\"`.","optional":true},{"name":"resourceType","description":"If set, only requests for matching resource types will be intercepted.","$ref":"ResourceType","optional":true},{"name":"interceptionStage","description":"Stage at which to begin intercepting requests. Default is Request.","$ref":"InterceptionStage","optional":true}]},{"id":"SignedExchangeSignature","type":"object","description":"Information about a signed exchange signature. https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#rfc.section.3.1","properties":[{"name":"label","type":"string","description":"Signed exchange signature label."},{"name":"signature","type":"string","description":"The hex string of signed exchange signature."},{"name":"integrity","type":"string","description":"Signed exchange signature integrity."},{"name":"certUrl","type":"string","description":"Signed exchange signature cert Url.","optional":true},{"name":"certSha256","type":"string","description":"The hex string of signed exchange signature cert sha256.","optional":true},{"name":"validityUrl","type":"string","description":"Signed exchange signature validity Url."},{"name":"date","type":"integer","description":"Signed exchange signature date."},{"name":"expires","type":"integer","description":"Signed exchange signature expires."},{"name":"certificates","type":"array","description":"The encoded certificates.","optional":true,"items":{"type":"string"}}]},{"id":"SignedExchangeHeader","type":"object","description":"Information about a signed exchange header. https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#cbor-representation","properties":[{"name":"requestUrl","type":"string","description":"Signed exchange request URL."},{"name":"responseCode","type":"integer","description":"Signed exchange response code."},{"name":"responseHeaders","description":"Signed exchange response headers.","$ref":"Headers"},{"name":"signatures","type":"array","description":"Signed exchange response signature.","items":{"$ref":"SignedExchangeSignature"}},{"name":"headerIntegrity","type":"string","description":"Signed exchange header integrity hash in the form of \"sha256-\u003cbase64-hash-value\u003e\"."}]},{"id":"SignedExchangeErrorField","type":"string","description":"Field type for a signed exchange related error.","enum":["signatureSig","signatureIntegrity","signatureCertUrl","signatureCertSha256","signatureValidityUrl","signatureTimestamps"]},{"id":"SignedExchangeError","type":"object","description":"Information about a signed exchange response.","properties":[{"name":"message","type":"string","description":"Error message."},{"name":"signatureIndex","type":"integer","description":"The index of the signature which caused the error.","optional":true},{"name":"errorField","description":"The field which caused the error.","$ref":"SignedExchangeErrorField","optional":true}]},{"id":"SignedExchangeInfo","type":"object","description":"Information about a signed exchange response.","properties":[{"name":"outerResponse","description":"The outer response of signed HTTP exchange which was received from network.","$ref":"Response"},{"name":"header","description":"Information about the signed exchange header.","$ref":"SignedExchangeHeader","optional":true},{"name":"securityDetails","description":"Security details for the signed exchange header.","$ref":"SecurityDetails","optional":true},{"name":"errors","type":"array","description":"Errors occurred while handling the signed exchagne.","optional":true,"items":{"$ref":"SignedExchangeError"}}]},{"id":"ContentEncoding","type":"string","description":"List of content encodings supported by the backend.","enum":["deflate","gzip","br"]},{"id":"PrivateNetworkRequestPolicy","type":"string","enum":["Allow","BlockFromInsecureToMorePrivate","WarnFromInsecureToMorePrivate","PreflightBlock","PreflightWarn"]},{"id":"IPAddressSpace","type":"string","enum":["Local","Private","Public","Unknown"]},{"id":"ConnectTiming","type":"object","properties":[{"name":"requestTime","type":"number","description":"Timing's requestTime is a baseline in seconds, while the other numbers are ticks in milliseconds relatively to this requestTime. Matches ResourceTiming's requestTime for the same request (but not for redirected requests)."}]},{"id":"ClientSecurityState","type":"object","properties":[{"name":"initiatorIsSecureContext","type":"boolean"},{"name":"initiatorIPAddressSpace","$ref":"IPAddressSpace"},{"name":"privateNetworkRequestPolicy","$ref":"PrivateNetworkRequestPolicy"}]},{"id":"CrossOriginOpenerPolicyValue","type":"string","enum":["SameOrigin","SameOriginAllowPopups","UnsafeNone","SameOriginPlusCoep","SameOriginAllowPopupsPlusCoep"]},{"id":"CrossOriginOpenerPolicyStatus","type":"object","properties":[{"name":"value","$ref":"CrossOriginOpenerPolicyValue"},{"name":"reportOnlyValue","$ref":"CrossOriginOpenerPolicyValue"},{"name":"reportingEndpoint","type":"string","optional":true},{"name":"reportOnlyReportingEndpoint","type":"string","optional":true}]},{"id":"CrossOriginEmbedderPolicyValue","type":"string","enum":["None","Credentialless","RequireCorp"]},{"id":"CrossOriginEmbedderPolicyStatus","type":"object","properties":[{"name":"value","$ref":"CrossOriginEmbedderPolicyValue"},{"name":"reportOnlyValue","$ref":"CrossOriginEmbedderPolicyValue"},{"name":"reportingEndpoint","type":"string","optional":true},{"name":"reportOnlyReportingEndpoint","type":"string","optional":true}]},{"id":"SecurityIsolationStatus","type":"object","properties":[{"name":"coop","$ref":"CrossOriginOpenerPolicyStatus","optional":true},{"name":"coep","$ref":"CrossOriginEmbedderPolicyStatus","optional":true}]},{"id":"ReportStatus","type":"string","description":"The status of a Reporting API report.","enum":["Queued","Pending","MarkedForRemoval","Success"]},{"id":"ReportId","type":"string"},{"id":"ReportingApiReport","type":"object","description":"An object representing a report generated by the Reporting API.","properties":[{"name":"id","$ref":"ReportId"},{"name":"initiatorUrl","type":"string","description":"The URL of the document that triggered the report."},{"name":"destination","type":"string","description":"The name of the endpoint group that should be used to deliver the report."},{"name":"type","type":"string","description":"The type of the report (specifies the set of data that is contained in the report body)."},{"name":"timestamp","description":"When the report was generated.","$ref":"Network.TimeSinceEpoch"},{"name":"depth","type":"integer","description":"How many uploads deep the related request was."},{"name":"completedAttempts","type":"integer","description":"The number of delivery attempts made so far, not including an active attempt."},{"name":"body","type":"object"},{"name":"status","$ref":"ReportStatus"}]},{"id":"ReportingApiEndpoint","type":"object","properties":[{"name":"url","type":"string","description":"The URL of the endpoint to which reports may be delivered."},{"name":"groupName","type":"string","description":"Name of the endpoint group."}]},{"id":"LoadNetworkResourcePageResult","type":"object","description":"An object providing the result of a network resource load.","properties":[{"name":"success","type":"boolean"},{"name":"netError","type":"number","description":"Optional values used for error reporting.","optional":true},{"name":"netErrorName","type":"string","optional":true},{"name":"httpStatusCode","type":"number","optional":true},{"name":"stream","description":"If successful, one of the following two fields holds the result.","$ref":"IO.StreamHandle","optional":true},{"name":"headers","description":"Response headers.","$ref":"Network.Headers","optional":true}]},{"id":"LoadNetworkResourceOptions","type":"object","description":"An options object that may be extended later to better support CORS, CORB and streaming.","properties":[{"name":"disableCache","type":"boolean"},{"name":"includeCredentials","type":"boolean"}]}],"commands":[{"name":"setAcceptedEncodings","description":"Sets a list of content encodings that will be accepted. Empty list means no encoding is accepted.","parameters":[{"name":"encodings","type":"array","description":"List of accepted content encodings.","items":{"$ref":"ContentEncoding"}}]},{"name":"clearAcceptedEncodingsOverride","description":"Clears accepted encodings set by setAcceptedEncodings"},{"name":"canClearBrowserCache","description":"Tells whether clearing browser cache is supported.","returns":[{"name":"result","type":"boolean","description":"True if browser cache can be cleared."}]},{"name":"canClearBrowserCookies","description":"Tells whether clearing browser cookies is supported.","returns":[{"name":"result","type":"boolean","description":"True if browser cookies can be cleared."}]},{"name":"canEmulateNetworkConditions","description":"Tells whether emulation of network conditions is supported.","returns":[{"name":"result","type":"boolean","description":"True if emulation of network conditions is supported."}]},{"name":"clearBrowserCache","description":"Clears browser cache."},{"name":"clearBrowserCookies","description":"Clears browser cookies."},{"name":"continueInterceptedRequest","description":"Response to Network.requestIntercepted which either modifies the request to continue with any modifications, or blocks it, or completes it with the provided response bytes. If a network fetch occurs as a result which encounters a redirect an additional Network.requestIntercepted event will be sent with the same InterceptionId. Deprecated, use Fetch.continueRequest, Fetch.fulfillRequest and Fetch.failRequest instead.","parameters":[{"name":"interceptionId","$ref":"InterceptionId"},{"name":"errorReason","description":"If set this causes the request to fail with the given reason. Passing `Aborted` for requests marked with `isNavigationRequest` also cancels the navigation. Must not be set in response to an authChallenge.","$ref":"ErrorReason","optional":true},{"name":"rawResponse","type":"string","description":"If set the requests completes using with the provided base64 encoded raw response, including HTTP status line and headers etc... Must not be set in response to an authChallenge. (Encoded as a base64 string when passed over JSON)","optional":true},{"name":"url","type":"string","description":"If set the request url will be modified in a way that's not observable by page. Must not be set in response to an authChallenge.","optional":true},{"name":"method","type":"string","description":"If set this allows the request method to be overridden. Must not be set in response to an authChallenge.","optional":true},{"name":"postData","type":"string","description":"If set this allows postData to be set. Must not be set in response to an authChallenge.","optional":true},{"name":"headers","description":"If set this allows the request headers to be changed. Must not be set in response to an authChallenge.","$ref":"Headers","optional":true},{"name":"authChallengeResponse","description":"Response to a requestIntercepted with an authChallenge. Must not be set otherwise.","$ref":"AuthChallengeResponse","optional":true}]},{"name":"deleteCookies","description":"Deletes browser cookies with matching name and url or domain/path pair.","parameters":[{"name":"name","type":"string","description":"Name of the cookies to remove."},{"name":"url","type":"string","description":"If specified, deletes all the cookies with the given name where domain and path match provided URL.","optional":true},{"name":"domain","type":"string","description":"If specified, deletes only cookies with the exact domain.","optional":true},{"name":"path","type":"string","description":"If specified, deletes only cookies with the exact path.","optional":true}]},{"name":"disable","description":"Disables network tracking, prevents network events from being sent to the client."},{"name":"emulateNetworkConditions","description":"Activates emulation of network conditions.","parameters":[{"name":"offline","type":"boolean","description":"True to emulate internet disconnection."},{"name":"latency","type":"number","description":"Minimum latency from request sent to response headers received (ms)."},{"name":"downloadThroughput","type":"number","description":"Maximal aggregated download throughput (bytes/sec). -1 disables download throttling."},{"name":"uploadThroughput","type":"number","description":"Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling."},{"name":"connectionType","description":"Connection type if known.","$ref":"ConnectionType","optional":true}]},{"name":"enable","description":"Enables network tracking, network events will now be delivered to the client.","parameters":[{"name":"maxTotalBufferSize","type":"integer","description":"Buffer size in bytes to use when preserving network payloads (XHRs, etc).","optional":true},{"name":"maxResourceBufferSize","type":"integer","description":"Per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc).","optional":true},{"name":"maxPostDataSize","type":"integer","description":"Longest post body size (in bytes) that would be included in requestWillBeSent notification","optional":true}]},{"name":"getAllCookies","description":"Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the `cookies` field.","returns":[{"name":"cookies","type":"array","items":{"$ref":"Cookie"},"description":"Array of cookie objects."}]},{"name":"getCertificate","description":"Returns the DER-encoded certificate.","parameters":[{"name":"origin","type":"string","description":"Origin to get certificate for."}],"returns":[{"name":"tableNames","type":"array","items":{"type":"string"}}]},{"name":"getCookies","description":"Returns all browser cookies for the current URL. Depending on the backend support, will return detailed cookie information in the `cookies` field.","parameters":[{"name":"urls","type":"array","description":"The list of URLs for which applicable cookies will be fetched. If not specified, it's assumed to be set to the list containing the URLs of the page and all of its subframes.","optional":true,"items":{"type":"string"}}],"returns":[{"name":"cookies","type":"array","items":{"$ref":"Cookie"},"description":"Array of cookie objects."}]},{"name":"getResponseBody","description":"Returns content served for the given request.","parameters":[{"name":"requestId","description":"Identifier of the network request to get content for.","$ref":"RequestId"}],"returns":[{"name":"body","type":"string","description":"Response body."},{"name":"base64Encoded","type":"boolean","description":"True, if content was sent as base64."}]},{"name":"getRequestPostData","description":"Returns post data sent with the request. Returns an error when no data was sent with the request.","parameters":[{"name":"requestId","description":"Identifier of the network request to get content for.","$ref":"RequestId"}],"returns":[{"name":"postData","type":"string","description":"Request body string, omitting files from multipart requests"}]},{"name":"getResponseBodyForInterception","description":"Returns content served for the given currently intercepted request.","parameters":[{"name":"interceptionId","description":"Identifier for the intercepted request to get body for.","$ref":"InterceptionId"}],"returns":[{"name":"body","type":"string","description":"Response body."},{"name":"base64Encoded","type":"boolean","description":"True, if content was sent as base64."}]},{"name":"takeResponseBodyForInterceptionAsStream","description":"Returns a handle to the stream representing the response body. Note that after this command, the intercepted request can't be continued as is -- you either need to cancel it or to provide the response body. The stream only supports sequential read, IO.read will fail if the position is specified.","parameters":[{"name":"interceptionId","$ref":"InterceptionId"}],"returns":[{"name":"stream","$ref":"IO.StreamHandle"}]},{"name":"replayXHR","description":"This method sends a new XMLHttpRequest which is identical to the original one. The following parameters should be identical: method, url, async, request body, extra headers, withCredentials attribute, user, password.","parameters":[{"name":"requestId","description":"Identifier of XHR to replay.","$ref":"RequestId"}]},{"name":"searchInResponseBody","description":"Searches for given string in response content.","parameters":[{"name":"requestId","description":"Identifier of the network response to search.","$ref":"RequestId"},{"name":"query","type":"string","description":"String to search for."},{"name":"caseSensitive","type":"boolean","description":"If true, search is case sensitive.","optional":true},{"name":"isRegex","type":"boolean","description":"If true, treats string parameter as regex.","optional":true}],"returns":[{"name":"result","type":"array","items":{"$ref":"Debugger.SearchMatch"},"description":"List of search matches."}]},{"name":"setBlockedURLs","description":"Blocks URLs from loading.","parameters":[{"name":"urls","type":"array","description":"URL patterns to block. Wildcards ('*') are allowed.","items":{"type":"string"}}]},{"name":"setBypassServiceWorker","description":"Toggles ignoring of service worker for each request.","parameters":[{"name":"bypass","type":"boolean","description":"Bypass service worker and load from network."}]},{"name":"setCacheDisabled","description":"Toggles ignoring cache for each request. If `true`, cache will not be used.","parameters":[{"name":"cacheDisabled","type":"boolean","description":"Cache disabled state."}]},{"name":"setCookie","description":"Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.","parameters":[{"name":"name","type":"string","description":"Cookie name."},{"name":"value","type":"string","description":"Cookie value."},{"name":"url","type":"string","description":"The request-URI to associate with the setting of the cookie. This value can affect the default domain, path, source port, and source scheme values of the created cookie.","optional":true},{"name":"domain","type":"string","description":"Cookie domain.","optional":true},{"name":"path","type":"string","description":"Cookie path.","optional":true},{"name":"secure","type":"boolean","description":"True if cookie is secure.","optional":true},{"name":"httpOnly","type":"boolean","description":"True if cookie is http-only.","optional":true},{"name":"sameSite","description":"Cookie SameSite type.","$ref":"CookieSameSite","optional":true},{"name":"expires","description":"Cookie expiration date, session cookie if not set","$ref":"TimeSinceEpoch","optional":true},{"name":"priority","description":"Cookie Priority type.","$ref":"CookiePriority","optional":true},{"name":"sameParty","type":"boolean","description":"True if cookie is SameParty.","optional":true},{"name":"sourceScheme","description":"Cookie source scheme type.","$ref":"CookieSourceScheme","optional":true},{"name":"sourcePort","type":"integer","description":"Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future.","optional":true},{"name":"partitionKey","type":"string","description":"Cookie partition key. The site of the top-level URL the browser was visiting at the start of the request to the endpoint that set the cookie. If not set, the cookie will be set as not partitioned.","optional":true}],"returns":[{"name":"success","type":"boolean","description":"Always set to true. If an error occurs, the response indicates protocol error."}]},{"name":"setCookies","description":"Sets given cookies.","parameters":[{"name":"cookies","type":"array","description":"Cookies to be set.","items":{"$ref":"CookieParam"}}]},{"name":"setExtraHTTPHeaders","description":"Specifies whether to always send extra HTTP headers with the requests from this page.","parameters":[{"name":"headers","description":"Map with extra HTTP headers.","$ref":"Headers"}]},{"name":"setAttachDebugStack","description":"Specifies whether to attach a page script stack id in requests","parameters":[{"name":"enabled","type":"boolean","description":"Whether to attach a page script stack for debugging purpose."}]},{"name":"setRequestInterception","description":"Sets the requests to intercept that match the provided patterns and optionally resource types. Deprecated, please use Fetch.enable instead.","parameters":[{"name":"patterns","type":"array","description":"Requests matching any of these patterns will be forwarded and wait for the corresponding continueInterceptedRequest call.","items":{"$ref":"RequestPattern"}}]},{"name":"setUserAgentOverride","description":"Allows overriding user agent with the given string.","parameters":[{"name":"userAgent","type":"string","description":"User agent to use."},{"name":"acceptLanguage","type":"string","description":"Browser langugage to emulate.","optional":true},{"name":"platform","type":"string","description":"The platform navigator.platform should return.","optional":true},{"name":"userAgentMetadata","description":"To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData","$ref":"Emulation.UserAgentMetadata","optional":true}],"redirect":"Emulation"},{"name":"getSecurityIsolationStatus","description":"Returns information about the COEP/COOP isolation status.","parameters":[{"name":"frameId","description":"If no frameId is provided, the status of the target is provided.","$ref":"Page.FrameId","optional":true}],"returns":[{"name":"status","$ref":"SecurityIsolationStatus"}]},{"name":"enableReportingApi","description":"Enables tracking for the Reporting API, events generated by the Reporting API will now be delivered to the client. Enabling triggers 'reportingApiReportAdded' for all existing reports.","parameters":[{"name":"enable","type":"boolean","description":"Whether to enable or disable events for the Reporting API"}]},{"name":"loadNetworkResource","description":"Fetches the resource and returns the content.","parameters":[{"name":"frameId","description":"Frame id to get the resource for. Mandatory for frame targets, and should be omitted for worker targets.","$ref":"Page.FrameId","optional":true},{"name":"url","type":"string","description":"URL of the resource to get content for."},{"name":"options","description":"Options for the request.","$ref":"LoadNetworkResourceOptions"}],"returns":[{"name":"resource","$ref":"LoadNetworkResourcePageResult"}]}],"events":[{"name":"dataReceived","description":"Fired when data chunk was received over the network.","parameters":[{"name":"requestId","description":"Request identifier.","$ref":"RequestId"},{"name":"timestamp","description":"Timestamp.","$ref":"MonotonicTime"},{"name":"dataLength","type":"integer","description":"Data chunk length."},{"name":"encodedDataLength","type":"integer","description":"Actual bytes received (might be less than dataLength for compressed encodings)."}]},{"name":"eventSourceMessageReceived","description":"Fired when EventSource message is received.","parameters":[{"name":"requestId","description":"Request identifier.","$ref":"RequestId"},{"name":"timestamp","description":"Timestamp.","$ref":"MonotonicTime"},{"name":"eventName","type":"string","description":"Message type."},{"name":"eventId","type":"string","description":"Message identifier."},{"name":"data","type":"string","description":"Message content."}]},{"name":"loadingFailed","description":"Fired when HTTP request has failed to load.","parameters":[{"name":"requestId","description":"Request identifier.","$ref":"RequestId"},{"name":"timestamp","description":"Timestamp.","$ref":"MonotonicTime"},{"name":"type","description":"Resource type.","$ref":"ResourceType"},{"name":"errorText","type":"string","description":"User friendly error message."},{"name":"canceled","type":"boolean","description":"True if loading was canceled.","optional":true},{"name":"blockedReason","description":"The reason why loading was blocked, if any.","$ref":"BlockedReason","optional":true},{"name":"corsErrorStatus","description":"The reason why loading was blocked by CORS, if any.","$ref":"CorsErrorStatus","optional":true}]},{"name":"loadingFinished","description":"Fired when HTTP request has finished loading.","parameters":[{"name":"requestId","description":"Request identifier.","$ref":"RequestId"},{"name":"timestamp","description":"Timestamp.","$ref":"MonotonicTime"},{"name":"encodedDataLength","type":"number","description":"Total number of bytes received for this request."},{"name":"shouldReportCorbBlocking","type":"boolean","description":"Set when 1) response was blocked by Cross-Origin Read Blocking and also 2) this needs to be reported to the DevTools console.","optional":true}]},{"name":"requestIntercepted","description":"Details of an intercepted HTTP request, which must be either allowed, blocked, modified or mocked. Deprecated, use Fetch.requestPaused instead.","parameters":[{"name":"interceptionId","description":"Each request the page makes will have a unique id, however if any redirects are encountered while processing that fetch, they will be reported with the same id as the original fetch. Likewise if HTTP authentication is needed then the same fetch id will be used.","$ref":"InterceptionId"},{"name":"request","$ref":"Request"},{"name":"frameId","description":"The id of the frame that initiated the request.","$ref":"Page.FrameId"},{"name":"resourceType","description":"How the requested resource will be used.","$ref":"ResourceType"},{"name":"isNavigationRequest","type":"boolean","description":"Whether this is a navigation request, which can abort the navigation completely."},{"name":"isDownload","type":"boolean","description":"Set if the request is a navigation that will result in a download. Only present after response is received from the server (i.e. HeadersReceived stage).","optional":true},{"name":"redirectUrl","type":"string","description":"Redirect location, only sent if a redirect was intercepted.","optional":true},{"name":"authChallenge","description":"Details of the Authorization Challenge encountered. If this is set then continueInterceptedRequest must contain an authChallengeResponse.","$ref":"AuthChallenge","optional":true},{"name":"responseErrorReason","description":"Response error if intercepted at response stage or if redirect occurred while intercepting request.","$ref":"ErrorReason","optional":true},{"name":"responseStatusCode","type":"integer","description":"Response code if intercepted at response stage or if redirect occurred while intercepting request or auth retry occurred.","optional":true},{"name":"responseHeaders","description":"Response headers if intercepted at the response stage or if redirect occurred while intercepting request or auth retry occurred.","$ref":"Headers","optional":true},{"name":"requestId","description":"If the intercepted request had a corresponding requestWillBeSent event fired for it, then this requestId will be the same as the requestId present in the requestWillBeSent event.","$ref":"RequestId","optional":true}]},{"name":"requestServedFromCache","description":"Fired if request ended up loading from cache.","parameters":[{"name":"requestId","description":"Request identifier.","$ref":"RequestId"}]},{"name":"requestWillBeSent","description":"Fired when page is about to send HTTP request.","parameters":[{"name":"requestId","description":"Request identifier.","$ref":"RequestId"},{"name":"loaderId","description":"Loader identifier. Empty string if the request is fetched from worker.","$ref":"LoaderId"},{"name":"documentURL","type":"string","description":"URL of the document this request is loaded for."},{"name":"request","description":"Request data.","$ref":"Request"},{"name":"timestamp","description":"Timestamp.","$ref":"MonotonicTime"},{"name":"wallTime","description":"Timestamp.","$ref":"TimeSinceEpoch"},{"name":"initiator","description":"Request initiator.","$ref":"Initiator"},{"name":"redirectHasExtraInfo","type":"boolean","description":"In the case that redirectResponse is populated, this flag indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted for the request which was just redirected."},{"name":"redirectResponse","description":"Redirect response data.","$ref":"Response","optional":true},{"name":"type","description":"Type of this resource.","$ref":"ResourceType","optional":true},{"name":"frameId","description":"Frame identifier.","$ref":"Page.FrameId","optional":true},{"name":"hasUserGesture","type":"boolean","description":"Whether the request is initiated by a user gesture. Defaults to false.","optional":true}]},{"name":"resourceChangedPriority","description":"Fired when resource loading priority is changed","parameters":[{"name":"requestId","description":"Request identifier.","$ref":"RequestId"},{"name":"newPriority","description":"New priority","$ref":"ResourcePriority"},{"name":"timestamp","description":"Timestamp.","$ref":"MonotonicTime"}]},{"name":"signedExchangeReceived","description":"Fired when a signed exchange was received over the network","parameters":[{"name":"requestId","description":"Request identifier.","$ref":"RequestId"},{"name":"info","description":"Information about the signed exchange response.","$ref":"SignedExchangeInfo"}]},{"name":"responseReceived","description":"Fired when HTTP response is available.","parameters":[{"name":"requestId","description":"Request identifier.","$ref":"RequestId"},{"name":"loaderId","description":"Loader identifier. Empty string if the request is fetched from worker.","$ref":"LoaderId"},{"name":"timestamp","description":"Timestamp.","$ref":"MonotonicTime"},{"name":"type","description":"Resource type.","$ref":"ResourceType"},{"name":"response","description":"Response data.","$ref":"Response"},{"name":"hasExtraInfo","type":"boolean","description":"Indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted for this request."},{"name":"frameId","description":"Frame identifier.","$ref":"Page.FrameId","optional":true}]},{"name":"webSocketClosed","description":"Fired when WebSocket is closed.","parameters":[{"name":"requestId","description":"Request identifier.","$ref":"RequestId"},{"name":"timestamp","description":"Timestamp.","$ref":"MonotonicTime"}]},{"name":"webSocketCreated","description":"Fired upon WebSocket creation.","parameters":[{"name":"requestId","description":"Request identifier.","$ref":"RequestId"},{"name":"url","type":"string","description":"WebSocket request URL."},{"name":"initiator","description":"Request initiator.","$ref":"Initiator","optional":true}]},{"name":"webSocketFrameError","description":"Fired when WebSocket message error occurs.","parameters":[{"name":"requestId","description":"Request identifier.","$ref":"RequestId"},{"name":"timestamp","description":"Timestamp.","$ref":"MonotonicTime"},{"name":"errorMessage","type":"string","description":"WebSocket error message."}]},{"name":"webSocketFrameReceived","description":"Fired when WebSocket message is received.","parameters":[{"name":"requestId","description":"Request identifier.","$ref":"RequestId"},{"name":"timestamp","description":"Timestamp.","$ref":"MonotonicTime"},{"name":"response","description":"WebSocket response data.","$ref":"WebSocketFrame"}]},{"name":"webSocketFrameSent","description":"Fired when WebSocket message is sent.","parameters":[{"name":"requestId","description":"Request identifier.","$ref":"RequestId"},{"name":"timestamp","description":"Timestamp.","$ref":"MonotonicTime"},{"name":"response","description":"WebSocket response data.","$ref":"WebSocketFrame"}]},{"name":"webSocketHandshakeResponseReceived","description":"Fired when WebSocket handshake response becomes available.","parameters":[{"name":"requestId","description":"Request identifier.","$ref":"RequestId"},{"name":"timestamp","description":"Timestamp.","$ref":"MonotonicTime"},{"name":"response","description":"WebSocket response data.","$ref":"WebSocketResponse"}]},{"name":"webSocketWillSendHandshakeRequest","description":"Fired when WebSocket is about to initiate handshake.","parameters":[{"name":"requestId","description":"Request identifier.","$ref":"RequestId"},{"name":"timestamp","description":"Timestamp.","$ref":"MonotonicTime"},{"name":"wallTime","description":"UTC Timestamp.","$ref":"TimeSinceEpoch"},{"name":"request","description":"WebSocket request data.","$ref":"WebSocketRequest"}]},{"name":"webTransportCreated","description":"Fired upon WebTransport creation.","parameters":[{"name":"transportId","description":"WebTransport identifier.","$ref":"RequestId"},{"name":"url","type":"string","description":"WebTransport request URL."},{"name":"timestamp","description":"Timestamp.","$ref":"MonotonicTime"},{"name":"initiator","description":"Request initiator.","$ref":"Initiator","optional":true}]},{"name":"webTransportConnectionEstablished","description":"Fired when WebTransport handshake is finished.","parameters":[{"name":"transportId","description":"WebTransport identifier.","$ref":"RequestId"},{"name":"timestamp","description":"Timestamp.","$ref":"MonotonicTime"}]},{"name":"webTransportClosed","description":"Fired when WebTransport is disposed.","parameters":[{"name":"transportId","description":"WebTransport identifier.","$ref":"RequestId"},{"name":"timestamp","description":"Timestamp.","$ref":"MonotonicTime"}]},{"name":"requestWillBeSentExtraInfo","description":"Fired when additional information about a requestWillBeSent event is available from the network stack. Not every requestWillBeSent event will have an additional requestWillBeSentExtraInfo fired for it, and there is no guarantee whether requestWillBeSent or requestWillBeSentExtraInfo will be fired first for the same request.","parameters":[{"name":"requestId","description":"Request identifier. Used to match this information to an existing requestWillBeSent event.","$ref":"RequestId"},{"name":"associatedCookies","type":"array","description":"A list of cookies potentially associated to the requested URL. This includes both cookies sent with the request and the ones not sent; the latter are distinguished by having blockedReason field set.","items":{"$ref":"BlockedCookieWithReason"}},{"name":"headers","description":"Raw request headers as they will be sent over the wire.","$ref":"Headers"},{"name":"connectTiming","description":"Connection timing information for the request.","$ref":"ConnectTiming"},{"name":"clientSecurityState","description":"The client security state set for the request.","$ref":"ClientSecurityState","optional":true}]},{"name":"responseReceivedExtraInfo","description":"Fired when additional information about a responseReceived event is available from the network stack. Not every responseReceived event will have an additional responseReceivedExtraInfo for it, and responseReceivedExtraInfo may be fired before or after responseReceived.","parameters":[{"name":"requestId","description":"Request identifier. Used to match this information to another responseReceived event.","$ref":"RequestId"},{"name":"blockedCookies","type":"array","description":"A list of cookies which were not stored from the response along with the corresponding reasons for blocking. The cookies here may not be valid due to syntax errors, which are represented by the invalid cookie line string instead of a proper cookie.","items":{"$ref":"BlockedSetCookieWithReason"}},{"name":"headers","description":"Raw response headers as they were received over the wire.","$ref":"Headers"},{"name":"resourceIPAddressSpace","description":"The IP address space of the resource. The address space can only be determined once the transport established the connection, so we can't send it in `requestWillBeSentExtraInfo`.","$ref":"IPAddressSpace"},{"name":"statusCode","type":"integer","description":"The status code of the response. This is useful in cases the request failed and no responseReceived event is triggered, which is the case for, e.g., CORS errors. This is also the correct status code for cached requests, where the status in responseReceived is a 200 and this will be 304."},{"name":"headersText","type":"string","description":"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.","optional":true}]},{"name":"trustTokenOperationDone","description":"Fired exactly once for each Trust Token operation. Depending on the type of the operation and whether the operation succeeded or failed, the event is fired before the corresponding request was sent or after the response was received.","parameters":[{"name":"status","type":"string","description":"Detailed success or error status of the operation. 'AlreadyExists' also signifies a successful operation, as the result of the operation already exists und thus, the operation was abort preemptively (e.g. a cache hit).","enum":["Ok","InvalidArgument","FailedPrecondition","ResourceExhausted","AlreadyExists","Unavailable","BadResponse","InternalError","UnknownError","FulfilledLocally"]},{"name":"type","$ref":"TrustTokenOperationType"},{"name":"requestId","$ref":"RequestId"},{"name":"topLevelOrigin","type":"string","description":"Top level origin. The context in which the operation was attempted.","optional":true},{"name":"issuerOrigin","type":"string","description":"Origin of the issuer in case of a \"Issuance\" or \"Redemption\" operation.","optional":true},{"name":"issuedTokenCount","type":"integer","description":"The number of obtained Trust Tokens on a successful \"Issuance\" operation.","optional":true}]},{"name":"subresourceWebBundleMetadataReceived","description":"Fired once when parsing the .wbn file has succeeded. The event contains the information about the web bundle contents.","parameters":[{"name":"requestId","description":"Request identifier. Used to match this information to another event.","$ref":"RequestId"},{"name":"urls","type":"array","description":"A list of URLs of resources in the subresource Web Bundle.","items":{"type":"string"}}]},{"name":"subresourceWebBundleMetadataError","description":"Fired once when parsing the .wbn file has failed.","parameters":[{"name":"requestId","description":"Request identifier. Used to match this information to another event.","$ref":"RequestId"},{"name":"errorMessage","type":"string","description":"Error message"}]},{"name":"subresourceWebBundleInnerResponseParsed","description":"Fired when handling requests for resources within a .wbn file. Note: this will only be fired for resources that are requested by the webpage.","parameters":[{"name":"innerRequestId","description":"Request identifier of the subresource request","$ref":"RequestId"},{"name":"innerRequestURL","type":"string","description":"URL of the subresource resource."},{"name":"bundleRequestId","description":"Bundle request identifier. Used to match this information to another event. This made be absent in case when the instrumentation was enabled only after webbundle was parsed.","$ref":"RequestId","optional":true}]},{"name":"subresourceWebBundleInnerResponseError","description":"Fired when request for resources within a .wbn file failed.","parameters":[{"name":"innerRequestId","description":"Request identifier of the subresource request","$ref":"RequestId"},{"name":"innerRequestURL","type":"string","description":"URL of the subresource resource."},{"name":"errorMessage","type":"string","description":"Error message"},{"name":"bundleRequestId","description":"Bundle request identifier. Used to match this information to another event. This made be absent in case when the instrumentation was enabled only after webbundle was parsed.","$ref":"RequestId","optional":true}]},{"name":"reportingApiReportAdded","description":"Is sent whenever a new report is added. And after 'enableReportingApi' for all existing reports.","parameters":[{"name":"report","$ref":"ReportingApiReport"}]},{"name":"reportingApiReportUpdated","parameters":[{"name":"report","$ref":"ReportingApiReport"}]},{"name":"reportingApiEndpointsChangedForOrigin","parameters":[{"name":"origin","type":"string","description":"Origin of the document(s) which configured the endpoints."},{"name":"endpoints","type":"array","items":{"$ref":"ReportingApiEndpoint"}}]}]},{"domain":"Overlay","description":"This domain provides various functionality related to drawing atop the inspected page.","types":[{"id":"SourceOrderConfig","type":"object","description":"Configuration data for drawing the source order of an elements children.","properties":[{"name":"parentOutlineColor","description":"the color to outline the givent element in.","$ref":"DOM.RGBA"},{"name":"childOutlineColor","description":"the color to outline the child elements in.","$ref":"DOM.RGBA"}]},{"id":"GridHighlightConfig","type":"object","description":"Configuration data for the highlighting of Grid elements.","properties":[{"name":"showGridExtensionLines","type":"boolean","description":"Whether the extension lines from grid cells to the rulers should be shown (default: false).","optional":true},{"name":"showPositiveLineNumbers","type":"boolean","description":"Show Positive line number labels (default: false).","optional":true},{"name":"showNegativeLineNumbers","type":"boolean","description":"Show Negative line number labels (default: false).","optional":true},{"name":"showAreaNames","type":"boolean","description":"Show area name labels (default: false).","optional":true},{"name":"showLineNames","type":"boolean","description":"Show line name labels (default: false).","optional":true},{"name":"showTrackSizes","type":"boolean","description":"Show track size labels (default: false).","optional":true},{"name":"gridBorderColor","description":"The grid container border highlight color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"cellBorderColor","description":"The cell border color (default: transparent). Deprecated, please use rowLineColor and columnLineColor instead.","$ref":"DOM.RGBA","optional":true},{"name":"rowLineColor","description":"The row line color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"columnLineColor","description":"The column line color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"gridBorderDash","type":"boolean","description":"Whether the grid border is dashed (default: false).","optional":true},{"name":"cellBorderDash","type":"boolean","description":"Whether the cell border is dashed (default: false). Deprecated, please us rowLineDash and columnLineDash instead.","optional":true},{"name":"rowLineDash","type":"boolean","description":"Whether row lines are dashed (default: false).","optional":true},{"name":"columnLineDash","type":"boolean","description":"Whether column lines are dashed (default: false).","optional":true},{"name":"rowGapColor","description":"The row gap highlight fill color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"rowHatchColor","description":"The row gap hatching fill color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"columnGapColor","description":"The column gap highlight fill color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"columnHatchColor","description":"The column gap hatching fill color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"areaBorderColor","description":"The named grid areas border color (Default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"gridBackgroundColor","description":"The grid container background color (Default: transparent).","$ref":"DOM.RGBA","optional":true}]},{"id":"FlexContainerHighlightConfig","type":"object","description":"Configuration data for the highlighting of Flex container elements.","properties":[{"name":"containerBorder","description":"The style of the container border","$ref":"LineStyle","optional":true},{"name":"lineSeparator","description":"The style of the separator between lines","$ref":"LineStyle","optional":true},{"name":"itemSeparator","description":"The style of the separator between items","$ref":"LineStyle","optional":true},{"name":"mainDistributedSpace","description":"Style of content-distribution space on the main axis (justify-content).","$ref":"BoxStyle","optional":true},{"name":"crossDistributedSpace","description":"Style of content-distribution space on the cross axis (align-content).","$ref":"BoxStyle","optional":true},{"name":"rowGapSpace","description":"Style of empty space caused by row gaps (gap/row-gap).","$ref":"BoxStyle","optional":true},{"name":"columnGapSpace","description":"Style of empty space caused by columns gaps (gap/column-gap).","$ref":"BoxStyle","optional":true},{"name":"crossAlignment","description":"Style of the self-alignment line (align-items).","$ref":"LineStyle","optional":true}]},{"id":"FlexItemHighlightConfig","type":"object","description":"Configuration data for the highlighting of Flex item elements.","properties":[{"name":"baseSizeBox","description":"Style of the box representing the item's base size","$ref":"BoxStyle","optional":true},{"name":"baseSizeBorder","description":"Style of the border around the box representing the item's base size","$ref":"LineStyle","optional":true},{"name":"flexibilityArrow","description":"Style of the arrow representing if the item grew or shrank","$ref":"LineStyle","optional":true}]},{"id":"LineStyle","type":"object","description":"Style information for drawing a line.","properties":[{"name":"color","description":"The color of the line (default: transparent)","$ref":"DOM.RGBA","optional":true},{"name":"pattern","type":"string","description":"The line pattern (default: solid)","optional":true,"enum":["dashed","dotted"]}]},{"id":"BoxStyle","type":"object","description":"Style information for drawing a box.","properties":[{"name":"fillColor","description":"The background color for the box (default: transparent)","$ref":"DOM.RGBA","optional":true},{"name":"hatchColor","description":"The hatching color for the box (default: transparent)","$ref":"DOM.RGBA","optional":true}]},{"id":"ContrastAlgorithm","type":"string","enum":["aa","aaa","apca"]},{"id":"HighlightConfig","type":"object","description":"Configuration data for the highlighting of page elements.","properties":[{"name":"showInfo","type":"boolean","description":"Whether the node info tooltip should be shown (default: false).","optional":true},{"name":"showStyles","type":"boolean","description":"Whether the node styles in the tooltip (default: false).","optional":true},{"name":"showRulers","type":"boolean","description":"Whether the rulers should be shown (default: false).","optional":true},{"name":"showAccessibilityInfo","type":"boolean","description":"Whether the a11y info should be shown (default: true).","optional":true},{"name":"showExtensionLines","type":"boolean","description":"Whether the extension lines from node to the rulers should be shown (default: false).","optional":true},{"name":"contentColor","description":"The content box highlight fill color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"paddingColor","description":"The padding highlight fill color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"borderColor","description":"The border highlight fill color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"marginColor","description":"The margin highlight fill color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"eventTargetColor","description":"The event target element highlight fill color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"shapeColor","description":"The shape outside fill color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"shapeMarginColor","description":"The shape margin fill color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"cssGridColor","description":"The grid layout color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"colorFormat","description":"The color format used to format color styles (default: hex).","$ref":"ColorFormat","optional":true},{"name":"gridHighlightConfig","description":"The grid layout highlight configuration (default: all transparent).","$ref":"GridHighlightConfig","optional":true},{"name":"flexContainerHighlightConfig","description":"The flex container highlight configuration (default: all transparent).","$ref":"FlexContainerHighlightConfig","optional":true},{"name":"flexItemHighlightConfig","description":"The flex item highlight configuration (default: all transparent).","$ref":"FlexItemHighlightConfig","optional":true},{"name":"contrastAlgorithm","description":"The contrast algorithm to use for the contrast ratio (default: aa).","$ref":"ContrastAlgorithm","optional":true},{"name":"containerQueryContainerHighlightConfig","description":"The container query container highlight configuration (default: all transparent).","$ref":"ContainerQueryContainerHighlightConfig","optional":true}]},{"id":"ColorFormat","type":"string","enum":["rgb","hsl","hwb","hex"]},{"id":"GridNodeHighlightConfig","type":"object","description":"Configurations for Persistent Grid Highlight","properties":[{"name":"gridHighlightConfig","description":"A descriptor for the highlight appearance.","$ref":"GridHighlightConfig"},{"name":"nodeId","description":"Identifier of the node to highlight.","$ref":"DOM.NodeId"}]},{"id":"FlexNodeHighlightConfig","type":"object","properties":[{"name":"flexContainerHighlightConfig","description":"A descriptor for the highlight appearance of flex containers.","$ref":"FlexContainerHighlightConfig"},{"name":"nodeId","description":"Identifier of the node to highlight.","$ref":"DOM.NodeId"}]},{"id":"ScrollSnapContainerHighlightConfig","type":"object","properties":[{"name":"snapportBorder","description":"The style of the snapport border (default: transparent)","$ref":"LineStyle","optional":true},{"name":"snapAreaBorder","description":"The style of the snap area border (default: transparent)","$ref":"LineStyle","optional":true},{"name":"scrollMarginColor","description":"The margin highlight fill color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"scrollPaddingColor","description":"The padding highlight fill color (default: transparent).","$ref":"DOM.RGBA","optional":true}]},{"id":"ScrollSnapHighlightConfig","type":"object","properties":[{"name":"scrollSnapContainerHighlightConfig","description":"A descriptor for the highlight appearance of scroll snap containers.","$ref":"ScrollSnapContainerHighlightConfig"},{"name":"nodeId","description":"Identifier of the node to highlight.","$ref":"DOM.NodeId"}]},{"id":"HingeConfig","type":"object","description":"Configuration for dual screen hinge","properties":[{"name":"rect","description":"A rectangle represent hinge","$ref":"DOM.Rect"},{"name":"contentColor","description":"The content box highlight fill color (default: a dark color).","$ref":"DOM.RGBA","optional":true},{"name":"outlineColor","description":"The content box highlight outline color (default: transparent).","$ref":"DOM.RGBA","optional":true}]},{"id":"ContainerQueryHighlightConfig","type":"object","properties":[{"name":"containerQueryContainerHighlightConfig","description":"A descriptor for the highlight appearance of container query containers.","$ref":"ContainerQueryContainerHighlightConfig"},{"name":"nodeId","description":"Identifier of the container node to highlight.","$ref":"DOM.NodeId"}]},{"id":"ContainerQueryContainerHighlightConfig","type":"object","properties":[{"name":"containerBorder","description":"The style of the container border.","$ref":"LineStyle","optional":true},{"name":"descendantBorder","description":"The style of the descendants' borders.","$ref":"LineStyle","optional":true}]},{"id":"IsolatedElementHighlightConfig","type":"object","properties":[{"name":"isolationModeHighlightConfig","description":"A descriptor for the highlight appearance of an element in isolation mode.","$ref":"IsolationModeHighlightConfig"},{"name":"nodeId","description":"Identifier of the isolated element to highlight.","$ref":"DOM.NodeId"}]},{"id":"IsolationModeHighlightConfig","type":"object","properties":[{"name":"resizerColor","description":"The fill color of the resizers (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"resizerHandleColor","description":"The fill color for resizer handles (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"maskColor","description":"The fill color for the mask covering non-isolated elements (default: transparent).","$ref":"DOM.RGBA","optional":true}]},{"id":"InspectMode","type":"string","enum":["searchForNode","searchForUAShadowDOM","captureAreaScreenshot","showDistances","none"]}],"commands":[{"name":"disable","description":"Disables domain notifications."},{"name":"enable","description":"Enables domain notifications."},{"name":"getHighlightObjectForTest","description":"For testing.","parameters":[{"name":"nodeId","description":"Id of the node to get highlight object for.","$ref":"DOM.NodeId"},{"name":"includeDistance","type":"boolean","description":"Whether to include distance info.","optional":true},{"name":"includeStyle","type":"boolean","description":"Whether to include style info.","optional":true},{"name":"colorFormat","description":"The color format to get config with (default: hex).","$ref":"ColorFormat","optional":true},{"name":"showAccessibilityInfo","type":"boolean","description":"Whether to show accessibility info (default: true).","optional":true}],"returns":[{"name":"highlight","type":"object","description":"Highlight data for the node."}]},{"name":"getGridHighlightObjectsForTest","description":"For Persistent Grid testing.","parameters":[{"name":"nodeIds","type":"array","description":"Ids of the node to get highlight object for.","items":{"$ref":"DOM.NodeId"}}],"returns":[{"name":"highlights","type":"object","description":"Grid Highlight data for the node ids provided."}]},{"name":"getSourceOrderHighlightObjectForTest","description":"For Source Order Viewer testing.","parameters":[{"name":"nodeId","description":"Id of the node to highlight.","$ref":"DOM.NodeId"}],"returns":[{"name":"highlight","type":"object","description":"Source order highlight data for the node id provided."}]},{"name":"hideHighlight","description":"Hides any highlight."},{"name":"highlightFrame","description":"Highlights owner element of the frame with given id. Deprecated: Doesn't work reliablity and cannot be fixed due to process separatation (the owner node might be in a different process). Determine the owner node in the client and use highlightNode.","parameters":[{"name":"frameId","description":"Identifier of the frame to highlight.","$ref":"Page.FrameId"},{"name":"contentColor","description":"The content box highlight fill color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"contentOutlineColor","description":"The content box highlight outline color (default: transparent).","$ref":"DOM.RGBA","optional":true}]},{"name":"highlightNode","description":"Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified.","parameters":[{"name":"highlightConfig","description":"A descriptor for the highlight appearance.","$ref":"HighlightConfig"},{"name":"nodeId","description":"Identifier of the node to highlight.","$ref":"DOM.NodeId","optional":true},{"name":"backendNodeId","description":"Identifier of the backend node to highlight.","$ref":"DOM.BackendNodeId","optional":true},{"name":"objectId","description":"JavaScript object id of the node to be highlighted.","$ref":"Runtime.RemoteObjectId","optional":true},{"name":"selector","type":"string","description":"Selectors to highlight relevant nodes.","optional":true}]},{"name":"highlightQuad","description":"Highlights given quad. Coordinates are absolute with respect to the main frame viewport.","parameters":[{"name":"quad","description":"Quad to highlight","$ref":"DOM.Quad"},{"name":"color","description":"The highlight fill color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"outlineColor","description":"The highlight outline color (default: transparent).","$ref":"DOM.RGBA","optional":true}]},{"name":"highlightRect","description":"Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport.","parameters":[{"name":"x","type":"integer","description":"X coordinate"},{"name":"y","type":"integer","description":"Y coordinate"},{"name":"width","type":"integer","description":"Rectangle width"},{"name":"height","type":"integer","description":"Rectangle height"},{"name":"color","description":"The highlight fill color (default: transparent).","$ref":"DOM.RGBA","optional":true},{"name":"outlineColor","description":"The highlight outline color (default: transparent).","$ref":"DOM.RGBA","optional":true}]},{"name":"highlightSourceOrder","description":"Highlights the source order of the children of the DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified.","parameters":[{"name":"sourceOrderConfig","description":"A descriptor for the appearance of the overlay drawing.","$ref":"SourceOrderConfig"},{"name":"nodeId","description":"Identifier of the node to highlight.","$ref":"DOM.NodeId","optional":true},{"name":"backendNodeId","description":"Identifier of the backend node to highlight.","$ref":"DOM.BackendNodeId","optional":true},{"name":"objectId","description":"JavaScript object id of the node to be highlighted.","$ref":"Runtime.RemoteObjectId","optional":true}]},{"name":"setInspectMode","description":"Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. Backend then generates 'inspectNodeRequested' event upon element selection.","parameters":[{"name":"mode","description":"Set an inspection mode.","$ref":"InspectMode"},{"name":"highlightConfig","description":"A descriptor for the highlight appearance of hovered-over nodes. May be omitted if `enabled == false`.","$ref":"HighlightConfig","optional":true}]},{"name":"setShowAdHighlights","description":"Highlights owner element of all frames detected to be ads.","parameters":[{"name":"show","type":"boolean","description":"True for showing ad highlights"}]},{"name":"setPausedInDebuggerMessage","parameters":[{"name":"message","type":"string","description":"The message to display, also triggers resume and step over controls.","optional":true}]},{"name":"setShowDebugBorders","description":"Requests that backend shows debug borders on layers","parameters":[{"name":"show","type":"boolean","description":"True for showing debug borders"}]},{"name":"setShowFPSCounter","description":"Requests that backend shows the FPS counter","parameters":[{"name":"show","type":"boolean","description":"True for showing the FPS counter"}]},{"name":"setShowGridOverlays","description":"Highlight multiple elements with the CSS Grid overlay.","parameters":[{"name":"gridNodeHighlightConfigs","type":"array","description":"An array of node identifiers and descriptors for the highlight appearance.","items":{"$ref":"GridNodeHighlightConfig"}}]},{"name":"setShowFlexOverlays","parameters":[{"name":"flexNodeHighlightConfigs","type":"array","description":"An array of node identifiers and descriptors for the highlight appearance.","items":{"$ref":"FlexNodeHighlightConfig"}}]},{"name":"setShowScrollSnapOverlays","parameters":[{"name":"scrollSnapHighlightConfigs","type":"array","description":"An array of node identifiers and descriptors for the highlight appearance.","items":{"$ref":"ScrollSnapHighlightConfig"}}]},{"name":"setShowContainerQueryOverlays","parameters":[{"name":"containerQueryHighlightConfigs","type":"array","description":"An array of node identifiers and descriptors for the highlight appearance.","items":{"$ref":"ContainerQueryHighlightConfig"}}]},{"name":"setShowPaintRects","description":"Requests that backend shows paint rectangles","parameters":[{"name":"result","type":"boolean","description":"True for showing paint rectangles"}]},{"name":"setShowLayoutShiftRegions","description":"Requests that backend shows layout shift regions","parameters":[{"name":"result","type":"boolean","description":"True for showing layout shift regions"}]},{"name":"setShowScrollBottleneckRects","description":"Requests that backend shows scroll bottleneck rects","parameters":[{"name":"show","type":"boolean","description":"True for showing scroll bottleneck rects"}]},{"name":"setShowHitTestBorders","description":"Deprecated, no longer has any effect.","parameters":[{"name":"show","type":"boolean","description":"True for showing hit-test borders"}]},{"name":"setShowWebVitals","description":"Request that backend shows an overlay with web vital metrics.","parameters":[{"name":"show","type":"boolean"}]},{"name":"setShowViewportSizeOnResize","description":"Paints viewport size upon main frame resize.","parameters":[{"name":"show","type":"boolean","description":"Whether to paint size or not."}]},{"name":"setShowHinge","description":"Add a dual screen device hinge","parameters":[{"name":"hingeConfig","description":"hinge data, null means hideHinge","$ref":"HingeConfig","optional":true}]},{"name":"setShowIsolatedElements","description":"Show elements in isolation mode with overlays.","parameters":[{"name":"isolatedElementHighlightConfigs","type":"array","description":"An array of node identifiers and descriptors for the highlight appearance.","items":{"$ref":"IsolatedElementHighlightConfig"}}]}],"events":[{"name":"inspectNodeRequested","description":"Fired when the node should be inspected. This happens after call to `setInspectMode` or when user manually inspects an element.","parameters":[{"name":"backendNodeId","description":"Id of the node to inspect.","$ref":"DOM.BackendNodeId"}]},{"name":"nodeHighlightRequested","description":"Fired when the node should be highlighted. This happens after call to `setInspectMode`.","parameters":[{"name":"nodeId","$ref":"DOM.NodeId"}]},{"name":"screenshotRequested","description":"Fired when user asks to capture screenshot of some area on the page.","parameters":[{"name":"viewport","description":"Viewport to capture, in device independent pixels (dip).","$ref":"Page.Viewport"}]},{"name":"inspectModeCanceled","description":"Fired when user cancels the inspect mode."}]},{"domain":"Page","description":"Actions and events related to the inspected page belong to the page domain.","types":[{"id":"FrameId","type":"string","description":"Unique frame identifier."},{"id":"AdFrameType","type":"string","description":"Indicates whether a frame has been identified as an ad.","enum":["none","child","root"]},{"id":"AdFrameExplanation","type":"string","enum":["ParentIsAd","CreatedByAdScript","MatchedBlockingRule"]},{"id":"AdFrameStatus","type":"object","description":"Indicates whether a frame has been identified as an ad and why.","properties":[{"name":"adFrameType","$ref":"AdFrameType"},{"name":"explanations","type":"array","optional":true,"items":{"$ref":"AdFrameExplanation"}}]},{"id":"SecureContextType","type":"string","description":"Indicates whether the frame is a secure context and why it is the case.","enum":["Secure","SecureLocalhost","InsecureScheme","InsecureAncestor"]},{"id":"CrossOriginIsolatedContextType","type":"string","description":"Indicates whether the frame is cross-origin isolated and why it is the case.","enum":["Isolated","NotIsolated","NotIsolatedFeatureDisabled"]},{"id":"GatedAPIFeatures","type":"string","enum":["SharedArrayBuffers","SharedArrayBuffersTransferAllowed","PerformanceMeasureMemory","PerformanceProfile"]},{"id":"PermissionsPolicyFeature","type":"string","description":"All Permissions Policy features. This enum should match the one defined in third_party/blink/renderer/core/permissions_policy/permissions_policy_features.json5.","enum":["accelerometer","ambient-light-sensor","attribution-reporting","autoplay","browsing-topics","camera","ch-dpr","ch-device-memory","ch-downlink","ch-ect","ch-prefers-color-scheme","ch-rtt","ch-ua","ch-ua-arch","ch-ua-bitness","ch-ua-platform","ch-ua-model","ch-ua-mobile","ch-ua-full","ch-ua-full-version","ch-ua-full-version-list","ch-ua-platform-version","ch-ua-reduced","ch-ua-wow64","ch-viewport-height","ch-viewport-width","ch-width","ch-partitioned-cookies","clipboard-read","clipboard-write","cross-origin-isolated","direct-sockets","display-capture","document-domain","encrypted-media","execution-while-out-of-viewport","execution-while-not-rendered","focus-without-user-activation","fullscreen","frobulate","gamepad","geolocation","gyroscope","hid","idle-detection","interest-cohort","join-ad-interest-group","keyboard-map","magnetometer","microphone","midi","otp-credentials","payment","picture-in-picture","publickey-credentials-get","run-ad-auction","screen-wake-lock","serial","shared-autofill","storage-access-api","sync-xhr","trust-token-redemption","usb","vertical-scroll","web-share","window-placement","xr-spatial-tracking"]},{"id":"PermissionsPolicyBlockReason","type":"string","description":"Reason for a permissions policy feature to be disabled.","enum":["Header","IframeAttribute","InFencedFrameTree"]},{"id":"PermissionsPolicyBlockLocator","type":"object","properties":[{"name":"frameId","$ref":"FrameId"},{"name":"blockReason","$ref":"PermissionsPolicyBlockReason"}]},{"id":"PermissionsPolicyFeatureState","type":"object","properties":[{"name":"feature","$ref":"PermissionsPolicyFeature"},{"name":"allowed","type":"boolean"},{"name":"locator","$ref":"PermissionsPolicyBlockLocator","optional":true}]},{"id":"OriginTrialTokenStatus","type":"string","description":"Origin Trial(https://www.chromium.org/blink/origin-trials) support. Status for an Origin Trial token.","enum":["Success","NotSupported","Insecure","Expired","WrongOrigin","InvalidSignature","Malformed","WrongVersion","FeatureDisabled","TokenDisabled","FeatureDisabledForUser","UnknownTrial"]},{"id":"OriginTrialStatus","type":"string","description":"Status for an Origin Trial.","enum":["Enabled","ValidTokenNotProvided","OSNotSupported","TrialNotAllowed"]},{"id":"OriginTrialUsageRestriction","type":"string","enum":["None","Subset"]},{"id":"OriginTrialToken","type":"object","properties":[{"name":"origin","type":"string"},{"name":"matchSubDomains","type":"boolean"},{"name":"trialName","type":"string"},{"name":"expiryTime","$ref":"Network.TimeSinceEpoch"},{"name":"isThirdParty","type":"boolean"},{"name":"usageRestriction","$ref":"OriginTrialUsageRestriction"}]},{"id":"OriginTrialTokenWithStatus","type":"object","properties":[{"name":"rawTokenText","type":"string"},{"name":"parsedToken","description":"`parsedToken` is present only when the token is extractable and parsable.","$ref":"OriginTrialToken","optional":true},{"name":"status","$ref":"OriginTrialTokenStatus"}]},{"id":"OriginTrial","type":"object","properties":[{"name":"trialName","type":"string"},{"name":"status","$ref":"OriginTrialStatus"},{"name":"tokensWithStatus","type":"array","items":{"$ref":"OriginTrialTokenWithStatus"}}]},{"id":"Frame","type":"object","description":"Information about the Frame on the page.","properties":[{"name":"id","description":"Frame unique identifier.","$ref":"FrameId"},{"name":"parentId","description":"Parent frame identifier.","$ref":"FrameId","optional":true},{"name":"loaderId","description":"Identifier of the loader associated with this frame.","$ref":"Network.LoaderId"},{"name":"name","type":"string","description":"Frame's name as specified in the tag.","optional":true},{"name":"url","type":"string","description":"Frame document's URL without fragment."},{"name":"urlFragment","type":"string","description":"Frame document's URL fragment including the '#'.","optional":true},{"name":"domainAndRegistry","type":"string","description":"Frame document's registered domain, taking the public suffixes list into account. Extracted from the Frame's url. Example URLs: http://www.google.com/file.html -\u003e \"google.com\" http://a.b.co.uk/file.html -\u003e \"b.co.uk\""},{"name":"securityOrigin","type":"string","description":"Frame document's security origin."},{"name":"mimeType","type":"string","description":"Frame document's mimeType as determined by the browser."},{"name":"unreachableUrl","type":"string","description":"If the frame failed to load, this contains the URL that could not be loaded. Note that unlike url above, this URL may contain a fragment.","optional":true},{"name":"adFrameStatus","description":"Indicates whether this frame was tagged as an ad and why.","$ref":"AdFrameStatus","optional":true},{"name":"secureContextType","description":"Indicates whether the main document is a secure context and explains why that is the case.","$ref":"SecureContextType"},{"name":"crossOriginIsolatedContextType","description":"Indicates whether this is a cross origin isolated context.","$ref":"CrossOriginIsolatedContextType"},{"name":"gatedAPIFeatures","type":"array","description":"Indicated which gated APIs / features are available.","items":{"$ref":"GatedAPIFeatures"}}]},{"id":"FrameResource","type":"object","description":"Information about the Resource on the page.","properties":[{"name":"url","type":"string","description":"Resource URL."},{"name":"type","description":"Type of this resource.","$ref":"Network.ResourceType"},{"name":"mimeType","type":"string","description":"Resource mimeType as determined by the browser."},{"name":"lastModified","description":"last-modified timestamp as reported by server.","$ref":"Network.TimeSinceEpoch","optional":true},{"name":"contentSize","type":"number","description":"Resource content size.","optional":true},{"name":"failed","type":"boolean","description":"True if the resource failed to load.","optional":true},{"name":"canceled","type":"boolean","description":"True if the resource was canceled during loading.","optional":true}]},{"id":"FrameResourceTree","type":"object","description":"Information about the Frame hierarchy along with their cached resources.","properties":[{"name":"frame","description":"Frame information for this tree item.","$ref":"Frame"},{"name":"childFrames","type":"array","description":"Child frames.","optional":true,"items":{"$ref":"FrameResourceTree"}},{"name":"resources","type":"array","description":"Information about frame resources.","items":{"$ref":"FrameResource"}}]},{"id":"FrameTree","type":"object","description":"Information about the Frame hierarchy.","properties":[{"name":"frame","description":"Frame information for this tree item.","$ref":"Frame"},{"name":"childFrames","type":"array","description":"Child frames.","optional":true,"items":{"$ref":"FrameTree"}}]},{"id":"ScriptIdentifier","type":"string","description":"Unique script identifier."},{"id":"TransitionType","type":"string","description":"Transition type.","enum":["link","typed","address_bar","auto_bookmark","auto_subframe","manual_subframe","generated","auto_toplevel","form_submit","reload","keyword","keyword_generated","other"]},{"id":"NavigationEntry","type":"object","description":"Navigation history entry.","properties":[{"name":"id","type":"integer","description":"Unique id of the navigation history entry."},{"name":"url","type":"string","description":"URL of the navigation history entry."},{"name":"userTypedURL","type":"string","description":"URL that the user typed in the url bar."},{"name":"title","type":"string","description":"Title of the navigation history entry."},{"name":"transitionType","description":"Transition type.","$ref":"TransitionType"}]},{"id":"ScreencastFrameMetadata","type":"object","description":"Screencast frame metadata.","properties":[{"name":"offsetTop","type":"number","description":"Top offset in DIP."},{"name":"pageScaleFactor","type":"number","description":"Page scale factor."},{"name":"deviceWidth","type":"number","description":"Device screen width in DIP."},{"name":"deviceHeight","type":"number","description":"Device screen height in DIP."},{"name":"scrollOffsetX","type":"number","description":"Position of horizontal scroll in CSS pixels."},{"name":"scrollOffsetY","type":"number","description":"Position of vertical scroll in CSS pixels."},{"name":"timestamp","description":"Frame swap timestamp.","$ref":"Network.TimeSinceEpoch","optional":true}]},{"id":"DialogType","type":"string","description":"Javascript dialog type.","enum":["alert","confirm","prompt","beforeunload"]},{"id":"AppManifestError","type":"object","description":"Error while paring app manifest.","properties":[{"name":"message","type":"string","description":"Error message."},{"name":"critical","type":"integer","description":"If criticial, this is a non-recoverable parse error."},{"name":"line","type":"integer","description":"Error line."},{"name":"column","type":"integer","description":"Error column."}]},{"id":"AppManifestParsedProperties","type":"object","description":"Parsed app manifest properties.","properties":[{"name":"scope","type":"string","description":"Computed scope value"}]},{"id":"LayoutViewport","type":"object","description":"Layout viewport position and dimensions.","properties":[{"name":"pageX","type":"integer","description":"Horizontal offset relative to the document (CSS pixels)."},{"name":"pageY","type":"integer","description":"Vertical offset relative to the document (CSS pixels)."},{"name":"clientWidth","type":"integer","description":"Width (CSS pixels), excludes scrollbar if present."},{"name":"clientHeight","type":"integer","description":"Height (CSS pixels), excludes scrollbar if present."}]},{"id":"VisualViewport","type":"object","description":"Visual viewport position, dimensions, and scale.","properties":[{"name":"offsetX","type":"number","description":"Horizontal offset relative to the layout viewport (CSS pixels)."},{"name":"offsetY","type":"number","description":"Vertical offset relative to the layout viewport (CSS pixels)."},{"name":"pageX","type":"number","description":"Horizontal offset relative to the document (CSS pixels)."},{"name":"pageY","type":"number","description":"Vertical offset relative to the document (CSS pixels)."},{"name":"clientWidth","type":"number","description":"Width (CSS pixels), excludes scrollbar if present."},{"name":"clientHeight","type":"number","description":"Height (CSS pixels), excludes scrollbar if present."},{"name":"scale","type":"number","description":"Scale relative to the ideal viewport (size at width=device-width)."},{"name":"zoom","type":"number","description":"Page zoom factor (CSS to device independent pixels ratio).","optional":true}]},{"id":"Viewport","type":"object","description":"Viewport for capturing screenshot.","properties":[{"name":"x","type":"number","description":"X offset in device independent pixels (dip)."},{"name":"y","type":"number","description":"Y offset in device independent pixels (dip)."},{"name":"width","type":"number","description":"Rectangle width in device independent pixels (dip)."},{"name":"height","type":"number","description":"Rectangle height in device independent pixels (dip)."},{"name":"scale","type":"number","description":"Page scale factor."}]},{"id":"FontFamilies","type":"object","description":"Generic font families collection.","properties":[{"name":"standard","type":"string","description":"The standard font-family.","optional":true},{"name":"fixed","type":"string","description":"The fixed font-family.","optional":true},{"name":"serif","type":"string","description":"The serif font-family.","optional":true},{"name":"sansSerif","type":"string","description":"The sansSerif font-family.","optional":true},{"name":"cursive","type":"string","description":"The cursive font-family.","optional":true},{"name":"fantasy","type":"string","description":"The fantasy font-family.","optional":true},{"name":"pictograph","type":"string","description":"The pictograph font-family.","optional":true}]},{"id":"ScriptFontFamilies","type":"object","description":"Font families collection for a script.","properties":[{"name":"script","type":"string","description":"Name of the script which these font families are defined for."},{"name":"fontFamilies","description":"Generic font families collection for the script.","$ref":"FontFamilies"}]},{"id":"FontSizes","type":"object","description":"Default font sizes.","properties":[{"name":"standard","type":"integer","description":"Default standard font size.","optional":true},{"name":"fixed","type":"integer","description":"Default fixed font size.","optional":true}]},{"id":"ClientNavigationReason","type":"string","enum":["formSubmissionGet","formSubmissionPost","httpHeaderRefresh","scriptInitiated","metaTagRefresh","pageBlockInterstitial","reload","anchorClick"]},{"id":"ClientNavigationDisposition","type":"string","enum":["currentTab","newTab","newWindow","download"]},{"id":"InstallabilityErrorArgument","type":"object","properties":[{"name":"name","type":"string","description":"Argument name (e.g. name:'minimum-icon-size-in-pixels')."},{"name":"value","type":"string","description":"Argument value (e.g. value:'64')."}]},{"id":"InstallabilityError","type":"object","description":"The installability error","properties":[{"name":"errorId","type":"string","description":"The error id (e.g. 'manifest-missing-suitable-icon')."},{"name":"errorArguments","type":"array","description":"The list of error arguments (e.g. {name:'minimum-icon-size-in-pixels', value:'64'}).","items":{"$ref":"InstallabilityErrorArgument"}}]},{"id":"ReferrerPolicy","type":"string","description":"The referring-policy used for the navigation.","enum":["noReferrer","noReferrerWhenDowngrade","origin","originWhenCrossOrigin","sameOrigin","strictOrigin","strictOriginWhenCrossOrigin","unsafeUrl"]},{"id":"CompilationCacheParams","type":"object","description":"Per-script compilation cache parameters for `Page.produceCompilationCache`","properties":[{"name":"url","type":"string","description":"The URL of the script to produce a compilation cache entry for."},{"name":"eager","type":"boolean","description":"A hint to the backend whether eager compilation is recommended. (the actual compilation mode used is upon backend discretion).","optional":true}]},{"id":"NavigationType","type":"string","description":"The type of a frameNavigated event.","enum":["Navigation","BackForwardCacheRestore"]},{"id":"BackForwardCacheNotRestoredReason","type":"string","description":"List of not restored reasons for back-forward cache.","enum":["NotPrimaryMainFrame","BackForwardCacheDisabled","RelatedActiveContentsExist","HTTPStatusNotOK","SchemeNotHTTPOrHTTPS","Loading","WasGrantedMediaAccess","DisableForRenderFrameHostCalled","DomainNotAllowed","HTTPMethodNotGET","SubframeIsNavigating","Timeout","CacheLimit","JavaScriptExecution","RendererProcessKilled","RendererProcessCrashed","GrantedMediaStreamAccess","SchedulerTrackedFeatureUsed","ConflictingBrowsingInstance","CacheFlushed","ServiceWorkerVersionActivation","SessionRestored","ServiceWorkerPostMessage","EnteredBackForwardCacheBeforeServiceWorkerHostAdded","RenderFrameHostReused_SameSite","RenderFrameHostReused_CrossSite","ServiceWorkerClaim","IgnoreEventAndEvict","HaveInnerContents","TimeoutPuttingInCache","BackForwardCacheDisabledByLowMemory","BackForwardCacheDisabledByCommandLine","NetworkRequestDatapipeDrainedAsBytesConsumer","NetworkRequestRedirected","NetworkRequestTimeout","NetworkExceedsBufferLimit","NavigationCancelledWhileRestoring","NotMostRecentNavigationEntry","BackForwardCacheDisabledForPrerender","UserAgentOverrideDiffers","ForegroundCacheLimit","BrowsingInstanceNotSwapped","BackForwardCacheDisabledForDelegate","OptInUnloadHeaderNotPresent","UnloadHandlerExistsInMainFrame","UnloadHandlerExistsInSubFrame","ServiceWorkerUnregistration","CacheControlNoStore","CacheControlNoStoreCookieModified","CacheControlNoStoreHTTPOnlyCookieModified","NoResponseHead","Unknown","ActivationNavigationsDisallowedForBug1234857","ErrorDocument","WebSocket","WebTransport","WebRTC","MainResourceHasCacheControlNoStore","MainResourceHasCacheControlNoCache","SubresourceHasCacheControlNoStore","SubresourceHasCacheControlNoCache","ContainsPlugins","DocumentLoaded","DedicatedWorkerOrWorklet","OutstandingNetworkRequestOthers","OutstandingIndexedDBTransaction","RequestedNotificationsPermission","RequestedMIDIPermission","RequestedAudioCapturePermission","RequestedVideoCapturePermission","RequestedBackForwardCacheBlockedSensors","RequestedBackgroundWorkPermission","BroadcastChannel","IndexedDBConnection","WebXR","SharedWorker","WebLocks","WebHID","WebShare","RequestedStorageAccessGrant","WebNfc","OutstandingNetworkRequestFetch","OutstandingNetworkRequestXHR","AppBanner","Printing","WebDatabase","PictureInPicture","Portal","SpeechRecognizer","IdleManager","PaymentManager","SpeechSynthesis","KeyboardLock","WebOTPService","OutstandingNetworkRequestDirectSocket","InjectedJavascript","InjectedStyleSheet","Dummy","ContentSecurityHandler","ContentWebAuthenticationAPI","ContentFileChooser","ContentSerial","ContentFileSystemAccess","ContentMediaDevicesDispatcherHost","ContentWebBluetooth","ContentWebUSB","ContentMediaSession","ContentMediaSessionService","ContentScreenReader","EmbedderPopupBlockerTabHelper","EmbedderSafeBrowsingTriggeredPopupBlocker","EmbedderSafeBrowsingThreatDetails","EmbedderAppBannerManager","EmbedderDomDistillerViewerSource","EmbedderDomDistillerSelfDeletingRequestDelegate","EmbedderOomInterventionTabHelper","EmbedderOfflinePage","EmbedderChromePasswordManagerClientBindCredentialManager","EmbedderPermissionRequestManager","EmbedderModalDialog","EmbedderExtensions","EmbedderExtensionMessaging","EmbedderExtensionMessagingForOpenPort","EmbedderExtensionSentMessageToCachedFrame"]},{"id":"BackForwardCacheNotRestoredReasonType","type":"string","description":"Types of not restored reasons for back-forward cache.","enum":["SupportPending","PageSupportNeeded","Circumstantial"]},{"id":"BackForwardCacheNotRestoredExplanation","type":"object","properties":[{"name":"type","description":"Type of the reason","$ref":"BackForwardCacheNotRestoredReasonType"},{"name":"reason","description":"Not restored reason","$ref":"BackForwardCacheNotRestoredReason"},{"name":"context","type":"string","description":"Context associated with the reason. The meaning of this context is dependent on the reason: - EmbedderExtensionSentMessageToCachedFrame: the extension ID.","optional":true}]},{"id":"BackForwardCacheNotRestoredExplanationTree","type":"object","properties":[{"name":"url","type":"string","description":"URL of each frame"},{"name":"explanations","type":"array","description":"Not restored reasons of each frame","items":{"$ref":"BackForwardCacheNotRestoredExplanation"}},{"name":"children","type":"array","description":"Array of children frame","items":{"$ref":"BackForwardCacheNotRestoredExplanationTree"}}]}],"commands":[{"name":"addScriptToEvaluateOnLoad","description":"Deprecated, please use addScriptToEvaluateOnNewDocument instead.","parameters":[{"name":"scriptSource","type":"string"}],"returns":[{"name":"identifier","$ref":"ScriptIdentifier","description":"Identifier of the added script."}]},{"name":"addScriptToEvaluateOnNewDocument","description":"Evaluates given script in every frame upon creation (before loading frame's scripts).","parameters":[{"name":"source","type":"string"},{"name":"worldName","type":"string","description":"If specified, creates an isolated world with the given name and evaluates given script in it. This world name will be used as the ExecutionContextDescription::name when the corresponding event is emitted.","optional":true},{"name":"includeCommandLineAPI","type":"boolean","description":"Specifies whether command line API should be available to the script, defaults to false.","optional":true}],"returns":[{"name":"identifier","$ref":"ScriptIdentifier","description":"Identifier of the added script."}]},{"name":"bringToFront","description":"Brings page to front (activates tab)."},{"name":"captureScreenshot","description":"Capture page screenshot.","parameters":[{"name":"format","type":"string","description":"Image compression format (defaults to png).","optional":true,"enum":["jpeg","png","webp"]},{"name":"quality","type":"integer","description":"Compression quality from range [0..100] (jpeg only).","optional":true},{"name":"clip","description":"Capture the screenshot of a given region only.","$ref":"Viewport","optional":true},{"name":"fromSurface","type":"boolean","description":"Capture the screenshot from the surface, rather than the view. Defaults to true.","optional":true},{"name":"captureBeyondViewport","type":"boolean","description":"Capture the screenshot beyond the viewport. Defaults to false.","optional":true}],"returns":[{"name":"data","type":"string","description":"Base64-encoded image data. (Encoded as a base64 string when passed over JSON)"}]},{"name":"captureSnapshot","description":"Returns a snapshot of the page as a string. For MHTML format, the serialization includes iframes, shadow DOM, external resources, and element-inline styles.","parameters":[{"name":"format","type":"string","description":"Format (defaults to mhtml).","optional":true,"enum":["mhtml"]}],"returns":[{"name":"data","type":"string","description":"Serialized page data."}]},{"name":"clearDeviceMetricsOverride","description":"Clears the overridden device metrics.","redirect":"Emulation"},{"name":"clearDeviceOrientationOverride","description":"Clears the overridden Device Orientation.","redirect":"DeviceOrientation"},{"name":"clearGeolocationOverride","description":"Clears the overridden Geolocation Position and Error.","redirect":"Emulation"},{"name":"createIsolatedWorld","description":"Creates an isolated world for the given frame.","parameters":[{"name":"frameId","description":"Id of the frame in which the isolated world should be created.","$ref":"FrameId"},{"name":"worldName","type":"string","description":"An optional name which is reported in the Execution Context.","optional":true},{"name":"grantUniveralAccess","type":"boolean","description":"Whether or not universal access should be granted to the isolated world. This is a powerful option, use with caution.","optional":true}],"returns":[{"name":"executionContextId","$ref":"Runtime.ExecutionContextId","description":"Execution context of the isolated world."}]},{"name":"deleteCookie","description":"Deletes browser cookie with given name, domain and path.","parameters":[{"name":"cookieName","type":"string","description":"Name of the cookie to remove."},{"name":"url","type":"string","description":"URL to match cooke domain and path."}],"redirect":"Network"},{"name":"disable","description":"Disables page domain notifications."},{"name":"enable","description":"Enables page domain notifications."},{"name":"getAppManifest","returns":[{"name":"url","type":"string","description":"Manifest location."},{"name":"errors","type":"array","items":{"$ref":"AppManifestError"}},{"name":"data","type":"string","description":"Manifest content."},{"name":"parsed","$ref":"AppManifestParsedProperties","description":"Parsed manifest properties"}]},{"name":"getInstallabilityErrors","returns":[{"name":"installabilityErrors","type":"array","items":{"$ref":"InstallabilityError"}}]},{"name":"getManifestIcons","returns":[{"name":"primaryIcon","type":"string"}]},{"name":"getAppId","description":"Returns the unique (PWA) app id. Only returns values if the feature flag 'WebAppEnableManifestId' is enabled","returns":[{"name":"appId","type":"string","description":"App id, either from manifest's id attribute or computed from start_url"},{"name":"recommendedId","type":"string","description":"Recommendation for manifest's id attribute to match current id computed from start_url"}]},{"name":"getCookies","description":"Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the `cookies` field.","returns":[{"name":"cookies","type":"array","items":{"$ref":"Network.Cookie"},"description":"Array of cookie objects."}],"redirect":"Network"},{"name":"getFrameTree","description":"Returns present frame tree structure.","returns":[{"name":"frameTree","$ref":"FrameTree","description":"Present frame tree structure."}]},{"name":"getLayoutMetrics","description":"Returns metrics relating to the layouting of the page, such as viewport bounds/scale.","returns":[{"name":"layoutViewport","$ref":"LayoutViewport","description":"Deprecated metrics relating to the layout viewport. Can be in DP or in CSS pixels depending on the `enable-use-zoom-for-dsf` flag. Use `cssLayoutViewport` instead."},{"name":"visualViewport","$ref":"VisualViewport","description":"Deprecated metrics relating to the visual viewport. Can be in DP or in CSS pixels depending on the `enable-use-zoom-for-dsf` flag. Use `cssVisualViewport` instead."},{"name":"contentSize","$ref":"DOM.Rect","description":"Deprecated size of scrollable area. Can be in DP or in CSS pixels depending on the `enable-use-zoom-for-dsf` flag. Use `cssContentSize` instead."},{"name":"cssLayoutViewport","$ref":"LayoutViewport","description":"Metrics relating to the layout viewport in CSS pixels."},{"name":"cssVisualViewport","$ref":"VisualViewport","description":"Metrics relating to the visual viewport in CSS pixels."},{"name":"cssContentSize","$ref":"DOM.Rect","description":"Size of scrollable area in CSS pixels."}]},{"name":"getNavigationHistory","description":"Returns navigation history for the current page.","returns":[{"name":"currentIndex","type":"integer","description":"Index of the current navigation history entry."},{"name":"entries","type":"array","items":{"$ref":"NavigationEntry"},"description":"Array of navigation history entries."}]},{"name":"resetNavigationHistory","description":"Resets navigation history for the current page."},{"name":"getResourceContent","description":"Returns content of the given resource.","parameters":[{"name":"frameId","description":"Frame id to get resource for.","$ref":"FrameId"},{"name":"url","type":"string","description":"URL of the resource to get content for."}],"returns":[{"name":"content","type":"string","description":"Resource content."},{"name":"base64Encoded","type":"boolean","description":"True, if content was served as base64."}]},{"name":"getResourceTree","description":"Returns present frame / resource tree structure.","returns":[{"name":"frameTree","$ref":"FrameResourceTree","description":"Present frame / resource tree structure."}]},{"name":"handleJavaScriptDialog","description":"Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).","parameters":[{"name":"accept","type":"boolean","description":"Whether to accept or dismiss the dialog."},{"name":"promptText","type":"string","description":"The text to enter into the dialog prompt before accepting. Used only if this is a prompt dialog.","optional":true}]},{"name":"navigate","description":"Navigates current page to the given URL.","parameters":[{"name":"url","type":"string","description":"URL to navigate the page to."},{"name":"referrer","type":"string","description":"Referrer URL.","optional":true},{"name":"transitionType","description":"Intended transition type.","$ref":"TransitionType","optional":true},{"name":"frameId","description":"Frame id to navigate, if not specified navigates the top frame.","$ref":"FrameId","optional":true},{"name":"referrerPolicy","description":"Referrer-policy used for the navigation.","$ref":"ReferrerPolicy","optional":true}],"returns":[{"name":"frameId","$ref":"FrameId","description":"Frame id that has navigated (or failed to navigate)"},{"name":"loaderId","$ref":"Network.LoaderId","description":"Loader identifier."},{"name":"errorText","type":"string","description":"User friendly error message, present if and only if navigation has failed."}]},{"name":"navigateToHistoryEntry","description":"Navigates current page to the given history entry.","parameters":[{"name":"entryId","type":"integer","description":"Unique id of the entry to navigate to."}]},{"name":"printToPDF","description":"Print page as PDF.","parameters":[{"name":"landscape","type":"boolean","description":"Paper orientation. Defaults to false.","optional":true},{"name":"displayHeaderFooter","type":"boolean","description":"Display header and footer. Defaults to false.","optional":true},{"name":"printBackground","type":"boolean","description":"Print background graphics. Defaults to false.","optional":true},{"name":"scale","type":"number","description":"Scale of the webpage rendering. Defaults to 1.","optional":true},{"name":"paperWidth","type":"number","description":"Paper width in inches. Defaults to 8.5 inches.","optional":true},{"name":"paperHeight","type":"number","description":"Paper height in inches. Defaults to 11 inches.","optional":true},{"name":"marginTop","type":"number","description":"Top margin in inches. Defaults to 1cm (~0.4 inches).","optional":true},{"name":"marginBottom","type":"number","description":"Bottom margin in inches. Defaults to 1cm (~0.4 inches).","optional":true},{"name":"marginLeft","type":"number","description":"Left margin in inches. Defaults to 1cm (~0.4 inches).","optional":true},{"name":"marginRight","type":"number","description":"Right margin in inches. Defaults to 1cm (~0.4 inches).","optional":true},{"name":"pageRanges","type":"string","description":"Paper ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string, which means print all pages.","optional":true},{"name":"ignoreInvalidPageRanges","type":"boolean","description":"Whether to silently ignore invalid but successfully parsed page ranges, such as '3-2'. Defaults to false.","optional":true},{"name":"headerTemplate","type":"string","description":"HTML template for the print header. Should be valid HTML markup with following classes used to inject printing values into them: - `date`: formatted print date - `title`: document title - `url`: document location - `pageNumber`: current page number - `totalPages`: total pages in the document For example, `\u003cspan class=title\u003e\u003c/span\u003e` would generate span containing the title.","optional":true},{"name":"footerTemplate","type":"string","description":"HTML template for the print footer. Should use the same format as the `headerTemplate`.","optional":true},{"name":"preferCSSPageSize","type":"boolean","description":"Whether or not to prefer page size as defined by css. Defaults to false, in which case the content will be scaled to fit the paper size.","optional":true},{"name":"transferMode","type":"string","description":"return as stream","optional":true,"enum":["ReturnAsBase64","ReturnAsStream"]}],"returns":[{"name":"data","type":"string","description":"Base64-encoded pdf data. Empty if |returnAsStream| is specified. (Encoded as a base64 string when passed over JSON)"},{"name":"stream","$ref":"IO.StreamHandle","description":"A handle of the stream that holds resulting PDF data."}]},{"name":"reload","description":"Reloads given page optionally ignoring the cache.","parameters":[{"name":"ignoreCache","type":"boolean","description":"If true, browser cache is ignored (as if the user pressed Shift+refresh).","optional":true},{"name":"scriptToEvaluateOnLoad","type":"string","description":"If set, the script will be injected into all frames of the inspected page after reload. Argument will be ignored if reloading dataURL origin.","optional":true}]},{"name":"removeScriptToEvaluateOnLoad","description":"Deprecated, please use removeScriptToEvaluateOnNewDocument instead.","parameters":[{"name":"identifier","$ref":"ScriptIdentifier"}]},{"name":"removeScriptToEvaluateOnNewDocument","description":"Removes given script from the list.","parameters":[{"name":"identifier","$ref":"ScriptIdentifier"}]},{"name":"screencastFrameAck","description":"Acknowledges that a screencast frame has been received by the frontend.","parameters":[{"name":"sessionId","type":"integer","description":"Frame number."}]},{"name":"searchInResource","description":"Searches for given string in resource content.","parameters":[{"name":"frameId","description":"Frame id for resource to search in.","$ref":"FrameId"},{"name":"url","type":"string","description":"URL of the resource to search in."},{"name":"query","type":"string","description":"String to search for."},{"name":"caseSensitive","type":"boolean","description":"If true, search is case sensitive.","optional":true},{"name":"isRegex","type":"boolean","description":"If true, treats string parameter as regex.","optional":true}],"returns":[{"name":"result","type":"array","items":{"$ref":"Debugger.SearchMatch"},"description":"List of search matches."}]},{"name":"setAdBlockingEnabled","description":"Enable Chrome's experimental ad filter on all sites.","parameters":[{"name":"enabled","type":"boolean","description":"Whether to block ads."}]},{"name":"setBypassCSP","description":"Enable page Content Security Policy by-passing.","parameters":[{"name":"enabled","type":"boolean","description":"Whether to bypass page CSP."}]},{"name":"getPermissionsPolicyState","description":"Get Permissions Policy state on given frame.","parameters":[{"name":"frameId","$ref":"FrameId"}],"returns":[{"name":"states","type":"array","items":{"$ref":"PermissionsPolicyFeatureState"}}]},{"name":"getOriginTrials","description":"Get Origin Trials on given frame.","parameters":[{"name":"frameId","$ref":"FrameId"}],"returns":[{"name":"originTrials","type":"array","items":{"$ref":"OriginTrial"}}]},{"name":"setDeviceMetricsOverride","description":"Overrides the values of device screen dimensions (window.screen.width, window.screen.height, window.innerWidth, window.innerHeight, and \"device-width\"/\"device-height\"-related CSS media query results).","parameters":[{"name":"width","type":"integer","description":"Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override."},{"name":"height","type":"integer","description":"Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override."},{"name":"deviceScaleFactor","type":"number","description":"Overriding device scale factor value. 0 disables the override."},{"name":"mobile","type":"boolean","description":"Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more."},{"name":"scale","type":"number","description":"Scale to apply to resulting view image.","optional":true},{"name":"screenWidth","type":"integer","description":"Overriding screen width value in pixels (minimum 0, maximum 10000000).","optional":true},{"name":"screenHeight","type":"integer","description":"Overriding screen height value in pixels (minimum 0, maximum 10000000).","optional":true},{"name":"positionX","type":"integer","description":"Overriding view X position on screen in pixels (minimum 0, maximum 10000000).","optional":true},{"name":"positionY","type":"integer","description":"Overriding view Y position on screen in pixels (minimum 0, maximum 10000000).","optional":true},{"name":"dontSetVisibleSize","type":"boolean","description":"Do not set visible view size, rely upon explicit setVisibleSize call.","optional":true},{"name":"screenOrientation","description":"Screen orientation override.","$ref":"Emulation.ScreenOrientation","optional":true},{"name":"viewport","description":"The viewport dimensions and scale. If not set, the override is cleared.","$ref":"Viewport","optional":true}],"redirect":"Emulation"},{"name":"setDeviceOrientationOverride","description":"Overrides the Device Orientation.","parameters":[{"name":"alpha","type":"number","description":"Mock alpha"},{"name":"beta","type":"number","description":"Mock beta"},{"name":"gamma","type":"number","description":"Mock gamma"}],"redirect":"DeviceOrientation"},{"name":"setFontFamilies","description":"Set generic font families.","parameters":[{"name":"fontFamilies","description":"Specifies font families to set. If a font family is not specified, it won't be changed.","$ref":"FontFamilies"},{"name":"forScripts","type":"array","description":"Specifies font families to set for individual scripts.","optional":true,"items":{"$ref":"ScriptFontFamilies"}}]},{"name":"setFontSizes","description":"Set default font sizes.","parameters":[{"name":"fontSizes","description":"Specifies font sizes to set. If a font size is not specified, it won't be changed.","$ref":"FontSizes"}]},{"name":"setDocumentContent","description":"Sets given markup as the document's HTML.","parameters":[{"name":"frameId","description":"Frame id to set HTML for.","$ref":"FrameId"},{"name":"html","type":"string","description":"HTML content to set."}]},{"name":"setDownloadBehavior","description":"Set the behavior when downloading a file.","parameters":[{"name":"behavior","type":"string","description":"Whether to allow all or deny all download requests, or use default Chrome behavior if available (otherwise deny).","enum":["deny","allow","default"]},{"name":"downloadPath","type":"string","description":"The default path to save downloaded files to. This is required if behavior is set to 'allow'","optional":true}]},{"name":"setGeolocationOverride","description":"Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable.","parameters":[{"name":"latitude","type":"number","description":"Mock latitude","optional":true},{"name":"longitude","type":"number","description":"Mock longitude","optional":true},{"name":"accuracy","type":"number","description":"Mock accuracy","optional":true}],"redirect":"Emulation"},{"name":"setLifecycleEventsEnabled","description":"Controls whether page will emit lifecycle events.","parameters":[{"name":"enabled","type":"boolean","description":"If true, starts emitting lifecycle events."}]},{"name":"setTouchEmulationEnabled","description":"Toggles mouse event-based touch event emulation.","parameters":[{"name":"enabled","type":"boolean","description":"Whether the touch event emulation should be enabled."},{"name":"configuration","type":"string","description":"Touch/gesture events configuration. Default: current platform.","optional":true,"enum":["mobile","desktop"]}],"redirect":"Emulation"},{"name":"startScreencast","description":"Starts sending each frame using the `screencastFrame` event.","parameters":[{"name":"format","type":"string","description":"Image compression format.","optional":true,"enum":["jpeg","png"]},{"name":"quality","type":"integer","description":"Compression quality from range [0..100].","optional":true},{"name":"maxWidth","type":"integer","description":"Maximum screenshot width.","optional":true},{"name":"maxHeight","type":"integer","description":"Maximum screenshot height.","optional":true},{"name":"everyNthFrame","type":"integer","description":"Send every n-th frame.","optional":true}]},{"name":"stopLoading","description":"Force the page stop all navigations and pending resource fetches."},{"name":"crash","description":"Crashes renderer on the IO thread, generates minidumps."},{"name":"close","description":"Tries to close page, running its beforeunload hooks, if any."},{"name":"setWebLifecycleState","description":"Tries to update the web lifecycle state of the page. It will transition the page to the given state according to: https://github.com/WICG/web-lifecycle/","parameters":[{"name":"state","type":"string","description":"Target lifecycle state","enum":["frozen","active"]}]},{"name":"stopScreencast","description":"Stops sending each frame in the `screencastFrame`."},{"name":"produceCompilationCache","description":"Requests backend to produce compilation cache for the specified scripts. `scripts` are appeneded to the list of scripts for which the cache would be produced. The list may be reset during page navigation. When script with a matching URL is encountered, the cache is optionally produced upon backend discretion, based on internal heuristics. See also: `Page.compilationCacheProduced`.","parameters":[{"name":"scripts","type":"array","items":{"$ref":"CompilationCacheParams"}}]},{"name":"addCompilationCache","description":"Seeds compilation cache for given url. Compilation cache does not survive cross-process navigation.","parameters":[{"name":"url","type":"string"},{"name":"data","type":"string","description":"Base64-encoded data (Encoded as a base64 string when passed over JSON)"}]},{"name":"clearCompilationCache","description":"Clears seeded compilation cache."},{"name":"setSPCTransactionMode","description":"Sets the Secure Payment Confirmation transaction mode. https://w3c.github.io/secure-payment-confirmation/#sctn-automation-set-spc-transaction-mode","parameters":[{"name":"mode","type":"string","enum":["none","autoaccept","autoreject"]}]},{"name":"generateTestReport","description":"Generates a report for testing.","parameters":[{"name":"message","type":"string","description":"Message to be displayed in the report."},{"name":"group","type":"string","description":"Specifies the endpoint group to deliver the report to.","optional":true}]},{"name":"waitForDebugger","description":"Pauses page execution. Can be resumed using generic Runtime.runIfWaitingForDebugger."},{"name":"setInterceptFileChooserDialog","description":"Intercept file chooser requests and transfer control to protocol clients. When file chooser interception is enabled, native file chooser dialog is not shown. Instead, a protocol event `Page.fileChooserOpened` is emitted.","parameters":[{"name":"enabled","type":"boolean"}]}],"events":[{"name":"domContentEventFired","parameters":[{"name":"timestamp","$ref":"Network.MonotonicTime"}]},{"name":"fileChooserOpened","description":"Emitted only when `page.interceptFileChooser` is enabled.","parameters":[{"name":"frameId","description":"Id of the frame containing input node.","$ref":"FrameId"},{"name":"backendNodeId","description":"Input node id.","$ref":"DOM.BackendNodeId"},{"name":"mode","type":"string","description":"Input mode.","enum":["selectSingle","selectMultiple"]}]},{"name":"frameAttached","description":"Fired when frame has been attached to its parent.","parameters":[{"name":"frameId","description":"Id of the frame that has been attached.","$ref":"FrameId"},{"name":"parentFrameId","description":"Parent frame identifier.","$ref":"FrameId"},{"name":"stack","description":"JavaScript stack trace of when frame was attached, only set if frame initiated from script.","$ref":"Runtime.StackTrace","optional":true}]},{"name":"frameClearedScheduledNavigation","description":"Fired when frame no longer has a scheduled navigation.","parameters":[{"name":"frameId","description":"Id of the frame that has cleared its scheduled navigation.","$ref":"FrameId"}]},{"name":"frameDetached","description":"Fired when frame has been detached from its parent.","parameters":[{"name":"frameId","description":"Id of the frame that has been detached.","$ref":"FrameId"},{"name":"reason","type":"string","enum":["remove","swap"]}]},{"name":"frameNavigated","description":"Fired once navigation of the frame has completed. Frame is now associated with the new loader.","parameters":[{"name":"frame","description":"Frame object.","$ref":"Frame"},{"name":"type","$ref":"NavigationType"}]},{"name":"documentOpened","description":"Fired when opening document to write to.","parameters":[{"name":"frame","description":"Frame object.","$ref":"Frame"}]},{"name":"frameResized"},{"name":"frameRequestedNavigation","description":"Fired when a renderer-initiated navigation is requested. Navigation may still be cancelled after the event is issued.","parameters":[{"name":"frameId","description":"Id of the frame that is being navigated.","$ref":"FrameId"},{"name":"reason","description":"The reason for the navigation.","$ref":"ClientNavigationReason"},{"name":"url","type":"string","description":"The destination URL for the requested navigation."},{"name":"disposition","description":"The disposition for the navigation.","$ref":"ClientNavigationDisposition"}]},{"name":"frameScheduledNavigation","description":"Fired when frame schedules a potential navigation.","parameters":[{"name":"frameId","description":"Id of the frame that has scheduled a navigation.","$ref":"FrameId"},{"name":"delay","type":"number","description":"Delay (in seconds) until the navigation is scheduled to begin. The navigation is not guaranteed to start."},{"name":"reason","description":"The reason for the navigation.","$ref":"ClientNavigationReason"},{"name":"url","type":"string","description":"The destination URL for the scheduled navigation."}]},{"name":"frameStartedLoading","description":"Fired when frame has started loading.","parameters":[{"name":"frameId","description":"Id of the frame that has started loading.","$ref":"FrameId"}]},{"name":"frameStoppedLoading","description":"Fired when frame has stopped loading.","parameters":[{"name":"frameId","description":"Id of the frame that has stopped loading.","$ref":"FrameId"}]},{"name":"downloadWillBegin","description":"Fired when page is about to start a download. Deprecated. Use Browser.downloadWillBegin instead.","parameters":[{"name":"frameId","description":"Id of the frame that caused download to begin.","$ref":"FrameId"},{"name":"guid","type":"string","description":"Global unique identifier of the download."},{"name":"url","type":"string","description":"URL of the resource being downloaded."},{"name":"suggestedFilename","type":"string","description":"Suggested file name of the resource (the actual name of the file saved on disk may differ)."}]},{"name":"downloadProgress","description":"Fired when download makes progress. Last call has |done| == true. Deprecated. Use Browser.downloadProgress instead.","parameters":[{"name":"guid","type":"string","description":"Global unique identifier of the download."},{"name":"totalBytes","type":"number","description":"Total expected bytes to download."},{"name":"receivedBytes","type":"number","description":"Total bytes received."},{"name":"state","type":"string","description":"Download status.","enum":["inProgress","completed","canceled"]}]},{"name":"interstitialHidden","description":"Fired when interstitial page was hidden"},{"name":"interstitialShown","description":"Fired when interstitial page was shown"},{"name":"javascriptDialogClosed","description":"Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been closed.","parameters":[{"name":"result","type":"boolean","description":"Whether dialog was confirmed."},{"name":"userInput","type":"string","description":"User input in case of prompt."}]},{"name":"javascriptDialogOpening","description":"Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.","parameters":[{"name":"url","type":"string","description":"Frame url."},{"name":"message","type":"string","description":"Message that will be displayed by the dialog."},{"name":"type","description":"Dialog type.","$ref":"DialogType"},{"name":"hasBrowserHandler","type":"boolean","description":"True iff browser is capable showing or acting on the given dialog. When browser has no dialog handler for given target, calling alert while Page domain is engaged will stall the page execution. Execution can be resumed via calling Page.handleJavaScriptDialog."},{"name":"defaultPrompt","type":"string","description":"Default dialog prompt.","optional":true}]},{"name":"lifecycleEvent","description":"Fired for top level page lifecycle events such as navigation, load, paint, etc.","parameters":[{"name":"frameId","description":"Id of the frame.","$ref":"FrameId"},{"name":"loaderId","description":"Loader identifier. Empty string if the request is fetched from worker.","$ref":"Network.LoaderId"},{"name":"name","type":"string"},{"name":"timestamp","$ref":"Network.MonotonicTime"}]},{"name":"backForwardCacheNotUsed","description":"Fired for failed bfcache history navigations if BackForwardCache feature is enabled. Do not assume any ordering with the Page.frameNavigated event. This event is fired only for main-frame history navigation where the document changes (non-same-document navigations), when bfcache navigation fails.","parameters":[{"name":"loaderId","description":"The loader id for the associated navgation.","$ref":"Network.LoaderId"},{"name":"frameId","description":"The frame id of the associated frame.","$ref":"FrameId"},{"name":"notRestoredExplanations","type":"array","description":"Array of reasons why the page could not be cached. This must not be empty.","items":{"$ref":"BackForwardCacheNotRestoredExplanation"}},{"name":"notRestoredExplanationsTree","description":"Tree structure of reasons why the page could not be cached for each frame.","$ref":"BackForwardCacheNotRestoredExplanationTree","optional":true}]},{"name":"loadEventFired","parameters":[{"name":"timestamp","$ref":"Network.MonotonicTime"}]},{"name":"navigatedWithinDocument","description":"Fired when same-document navigation happens, e.g. due to history API usage or anchor navigation.","parameters":[{"name":"frameId","description":"Id of the frame.","$ref":"FrameId"},{"name":"url","type":"string","description":"Frame's new url."}]},{"name":"screencastFrame","description":"Compressed image data requested by the `startScreencast`.","parameters":[{"name":"data","type":"string","description":"Base64-encoded compressed image. (Encoded as a base64 string when passed over JSON)"},{"name":"metadata","description":"Screencast frame metadata.","$ref":"ScreencastFrameMetadata"},{"name":"sessionId","type":"integer","description":"Frame number."}]},{"name":"screencastVisibilityChanged","description":"Fired when the page with currently enabled screencast was shown or hidden `.","parameters":[{"name":"visible","type":"boolean","description":"True if the page is visible."}]},{"name":"windowOpen","description":"Fired when a new window is going to be opened, via window.open(), link click, form submission, etc.","parameters":[{"name":"url","type":"string","description":"The URL for the new window."},{"name":"windowName","type":"string","description":"Window name."},{"name":"windowFeatures","type":"array","description":"An array of enabled window features.","items":{"type":"string"}},{"name":"userGesture","type":"boolean","description":"Whether or not it was triggered by user gesture."}]},{"name":"compilationCacheProduced","description":"Issued for every compilation cache generated. Is only available if Page.setGenerateCompilationCache is enabled.","parameters":[{"name":"url","type":"string"},{"name":"data","type":"string","description":"Base64-encoded data (Encoded as a base64 string when passed over JSON)"}]}]},{"domain":"Performance","types":[{"id":"Metric","type":"object","description":"Run-time execution metric.","properties":[{"name":"name","type":"string","description":"Metric name."},{"name":"value","type":"number","description":"Metric value."}]}],"commands":[{"name":"disable","description":"Disable collecting and reporting metrics."},{"name":"enable","description":"Enable collecting and reporting metrics.","parameters":[{"name":"timeDomain","type":"string","description":"Time domain to use for collecting and reporting duration metrics.","optional":true,"enum":["timeTicks","threadTicks"]}]},{"name":"setTimeDomain","description":"Sets time domain to use for collecting and reporting duration metrics. Note that this must be called before enabling metrics collection. Calling this method while metrics collection is enabled returns an error.","parameters":[{"name":"timeDomain","type":"string","description":"Time domain","enum":["timeTicks","threadTicks"]}]},{"name":"getMetrics","description":"Retrieve current values of run-time metrics.","returns":[{"name":"metrics","type":"array","items":{"$ref":"Metric"},"description":"Current values for run-time metrics."}]}],"events":[{"name":"metrics","description":"Current values of the metrics.","parameters":[{"name":"metrics","type":"array","description":"Current values of the metrics.","items":{"$ref":"Metric"}},{"name":"title","type":"string","description":"Timestamp title."}]}]},{"domain":"PerformanceTimeline","description":"Reporting of performance timeline events, as specified in https://w3c.github.io/performance-timeline/#dom-performanceobserver.","types":[{"id":"LargestContentfulPaint","type":"object","description":"See https://github.com/WICG/LargestContentfulPaint and largest_contentful_paint.idl","properties":[{"name":"renderTime","$ref":"Network.TimeSinceEpoch"},{"name":"loadTime","$ref":"Network.TimeSinceEpoch"},{"name":"size","type":"number","description":"The number of pixels being painted."},{"name":"elementId","type":"string","description":"The id attribute of the element, if available.","optional":true},{"name":"url","type":"string","description":"The URL of the image (may be trimmed).","optional":true},{"name":"nodeId","$ref":"DOM.BackendNodeId","optional":true}]},{"id":"LayoutShiftAttribution","type":"object","properties":[{"name":"previousRect","$ref":"DOM.Rect"},{"name":"currentRect","$ref":"DOM.Rect"},{"name":"nodeId","$ref":"DOM.BackendNodeId","optional":true}]},{"id":"LayoutShift","type":"object","description":"See https://wicg.github.io/layout-instability/#sec-layout-shift and layout_shift.idl","properties":[{"name":"value","type":"number","description":"Score increment produced by this event."},{"name":"hadRecentInput","type":"boolean"},{"name":"lastInputTime","$ref":"Network.TimeSinceEpoch"},{"name":"sources","type":"array","items":{"$ref":"LayoutShiftAttribution"}}]},{"id":"TimelineEvent","type":"object","properties":[{"name":"frameId","description":"Identifies the frame that this event is related to. Empty for non-frame targets.","$ref":"Page.FrameId"},{"name":"type","type":"string","description":"The event type, as specified in https://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype This determines which of the optional \"details\" fiedls is present."},{"name":"name","type":"string","description":"Name may be empty depending on the type."},{"name":"time","description":"Time in seconds since Epoch, monotonically increasing within document lifetime.","$ref":"Network.TimeSinceEpoch"},{"name":"duration","type":"number","description":"Event duration, if applicable.","optional":true},{"name":"lcpDetails","$ref":"LargestContentfulPaint","optional":true},{"name":"layoutShiftDetails","$ref":"LayoutShift","optional":true}]}],"commands":[{"name":"enable","description":"Previously buffered events would be reported before method returns. See also: timelineEventAdded","parameters":[{"name":"eventTypes","type":"array","description":"The types of event to report, as specified in https://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype The specified filter overrides any previous filters, passing empty filter disables recording. Note that not all types exposed to the web platform are currently supported.","items":{"type":"string"}}]}],"events":[{"name":"timelineEventAdded","description":"Sent when a performance timeline event is added. See reportPerformanceTimeline method.","parameters":[{"name":"event","$ref":"TimelineEvent"}]}]},{"domain":"Security","description":"Security","types":[{"id":"CertificateId","type":"integer","description":"An internal certificate ID value."},{"id":"MixedContentType","type":"string","description":"A description of mixed content (HTTP resources on HTTPS pages), as defined by https://www.w3.org/TR/mixed-content/#categories","enum":["blockable","optionally-blockable","none"]},{"id":"SecurityState","type":"string","description":"The security level of a page or resource.","enum":["unknown","neutral","insecure","secure","info","insecure-broken"]},{"id":"CertificateSecurityState","type":"object","description":"Details about the security state of the page certificate.","properties":[{"name":"protocol","type":"string","description":"Protocol name (e.g. \"TLS 1.2\" or \"QUIC\")."},{"name":"keyExchange","type":"string","description":"Key Exchange used by the connection, or the empty string if not applicable."},{"name":"keyExchangeGroup","type":"string","description":"(EC)DH group used by the connection, if applicable.","optional":true},{"name":"cipher","type":"string","description":"Cipher name."},{"name":"mac","type":"string","description":"TLS MAC. Note that AEAD ciphers do not have separate MACs.","optional":true},{"name":"certificate","type":"array","description":"Page certificate.","items":{"type":"string"}},{"name":"subjectName","type":"string","description":"Certificate subject name."},{"name":"issuer","type":"string","description":"Name of the issuing CA."},{"name":"validFrom","description":"Certificate valid from date.","$ref":"Network.TimeSinceEpoch"},{"name":"validTo","description":"Certificate valid to (expiration) date","$ref":"Network.TimeSinceEpoch"},{"name":"certificateNetworkError","type":"string","description":"The highest priority network error code, if the certificate has an error.","optional":true},{"name":"certificateHasWeakSignature","type":"boolean","description":"True if the certificate uses a weak signature aglorithm."},{"name":"certificateHasSha1Signature","type":"boolean","description":"True if the certificate has a SHA1 signature in the chain."},{"name":"modernSSL","type":"boolean","description":"True if modern SSL"},{"name":"obsoleteSslProtocol","type":"boolean","description":"True if the connection is using an obsolete SSL protocol."},{"name":"obsoleteSslKeyExchange","type":"boolean","description":"True if the connection is using an obsolete SSL key exchange."},{"name":"obsoleteSslCipher","type":"boolean","description":"True if the connection is using an obsolete SSL cipher."},{"name":"obsoleteSslSignature","type":"boolean","description":"True if the connection is using an obsolete SSL signature."}]},{"id":"SafetyTipStatus","type":"string","enum":["badReputation","lookalike"]},{"id":"SafetyTipInfo","type":"object","properties":[{"name":"safetyTipStatus","description":"Describes whether the page triggers any safety tips or reputation warnings. Default is unknown.","$ref":"SafetyTipStatus"},{"name":"safeUrl","type":"string","description":"The URL the safety tip suggested (\"Did you mean?\"). Only filled in for lookalike matches.","optional":true}]},{"id":"VisibleSecurityState","type":"object","description":"Security state information about the page.","properties":[{"name":"securityState","description":"The security level of the page.","$ref":"SecurityState"},{"name":"certificateSecurityState","description":"Security state details about the page certificate.","$ref":"CertificateSecurityState","optional":true},{"name":"safetyTipInfo","description":"The type of Safety Tip triggered on the page. Note that this field will be set even if the Safety Tip UI was not actually shown.","$ref":"SafetyTipInfo","optional":true},{"name":"securityStateIssueIds","type":"array","description":"Array of security state issues ids.","items":{"type":"string"}}]},{"id":"SecurityStateExplanation","type":"object","description":"An explanation of an factor contributing to the security state.","properties":[{"name":"securityState","description":"Security state representing the severity of the factor being explained.","$ref":"SecurityState"},{"name":"title","type":"string","description":"Title describing the type of factor."},{"name":"summary","type":"string","description":"Short phrase describing the type of factor."},{"name":"description","type":"string","description":"Full text explanation of the factor."},{"name":"mixedContentType","description":"The type of mixed content described by the explanation.","$ref":"MixedContentType"},{"name":"certificate","type":"array","description":"Page certificate.","items":{"type":"string"}},{"name":"recommendations","type":"array","description":"Recommendations to fix any issues.","optional":true,"items":{"type":"string"}}]},{"id":"InsecureContentStatus","type":"object","description":"Information about insecure content on the page.","properties":[{"name":"ranMixedContent","type":"boolean","description":"Always false."},{"name":"displayedMixedContent","type":"boolean","description":"Always false."},{"name":"containedMixedForm","type":"boolean","description":"Always false."},{"name":"ranContentWithCertErrors","type":"boolean","description":"Always false."},{"name":"displayedContentWithCertErrors","type":"boolean","description":"Always false."},{"name":"ranInsecureContentStyle","description":"Always set to unknown.","$ref":"SecurityState"},{"name":"displayedInsecureContentStyle","description":"Always set to unknown.","$ref":"SecurityState"}]},{"id":"CertificateErrorAction","type":"string","description":"The action to take when a certificate error occurs. continue will continue processing the request and cancel will cancel the request.","enum":["continue","cancel"]}],"commands":[{"name":"disable","description":"Disables tracking security state changes."},{"name":"enable","description":"Enables tracking security state changes."},{"name":"setIgnoreCertificateErrors","description":"Enable/disable whether all certificate errors should be ignored.","parameters":[{"name":"ignore","type":"boolean","description":"If true, all certificate errors will be ignored."}]},{"name":"handleCertificateError","description":"Handles a certificate error that fired a certificateError event.","parameters":[{"name":"eventId","type":"integer","description":"The ID of the event."},{"name":"action","description":"The action to take on the certificate error.","$ref":"CertificateErrorAction"}]},{"name":"setOverrideCertificateErrors","description":"Enable/disable overriding certificate errors. If enabled, all certificate error events need to be handled by the DevTools client and should be answered with `handleCertificateError` commands.","parameters":[{"name":"override","type":"boolean","description":"If true, certificate errors will be overridden."}]}],"events":[{"name":"certificateError","description":"There is a certificate error. If overriding certificate errors is enabled, then it should be handled with the `handleCertificateError` command. Note: this event does not fire if the certificate error has been allowed internally. Only one client per target should override certificate errors at the same time.","parameters":[{"name":"eventId","type":"integer","description":"The ID of the event."},{"name":"errorType","type":"string","description":"The type of the error."},{"name":"requestURL","type":"string","description":"The url that was requested."}]},{"name":"visibleSecurityStateChanged","description":"The security state of the page changed.","parameters":[{"name":"visibleSecurityState","description":"Security state information about the page.","$ref":"VisibleSecurityState"}]},{"name":"securityStateChanged","description":"The security state of the page changed. No longer being sent.","parameters":[{"name":"securityState","description":"Security state.","$ref":"SecurityState"},{"name":"schemeIsCryptographic","type":"boolean","description":"True if the page was loaded over cryptographic transport such as HTTPS."},{"name":"explanations","type":"array","description":"Previously a list of explanations for the security state. Now always empty.","items":{"$ref":"SecurityStateExplanation"}},{"name":"insecureContentStatus","description":"Information about insecure content on the page.","$ref":"InsecureContentStatus"},{"name":"summary","type":"string","description":"Overrides user-visible description of the state. Always omitted.","optional":true}]}]},{"domain":"ServiceWorker","types":[{"id":"RegistrationID","type":"string"},{"id":"ServiceWorkerRegistration","type":"object","description":"ServiceWorker registration.","properties":[{"name":"registrationId","$ref":"RegistrationID"},{"name":"scopeURL","type":"string"},{"name":"isDeleted","type":"boolean"}]},{"id":"ServiceWorkerVersionRunningStatus","type":"string","enum":["stopped","starting","running","stopping"]},{"id":"ServiceWorkerVersionStatus","type":"string","enum":["new","installing","installed","activating","activated","redundant"]},{"id":"ServiceWorkerVersion","type":"object","description":"ServiceWorker version.","properties":[{"name":"versionId","type":"string"},{"name":"registrationId","$ref":"RegistrationID"},{"name":"scriptURL","type":"string"},{"name":"runningStatus","$ref":"ServiceWorkerVersionRunningStatus"},{"name":"status","$ref":"ServiceWorkerVersionStatus"},{"name":"scriptLastModified","type":"number","description":"The Last-Modified header value of the main script.","optional":true},{"name":"scriptResponseTime","type":"number","description":"The time at which the response headers of the main script were received from the server. For cached script it is the last time the cache entry was validated.","optional":true},{"name":"controlledClients","type":"array","optional":true,"items":{"$ref":"Target.TargetID"}},{"name":"targetId","$ref":"Target.TargetID","optional":true}]},{"id":"ServiceWorkerErrorMessage","type":"object","description":"ServiceWorker error message.","properties":[{"name":"errorMessage","type":"string"},{"name":"registrationId","$ref":"RegistrationID"},{"name":"versionId","type":"string"},{"name":"sourceURL","type":"string"},{"name":"lineNumber","type":"integer"},{"name":"columnNumber","type":"integer"}]}],"commands":[{"name":"deliverPushMessage","parameters":[{"name":"origin","type":"string"},{"name":"registrationId","$ref":"RegistrationID"},{"name":"data","type":"string"}]},{"name":"disable"},{"name":"dispatchSyncEvent","parameters":[{"name":"origin","type":"string"},{"name":"registrationId","$ref":"RegistrationID"},{"name":"tag","type":"string"},{"name":"lastChance","type":"boolean"}]},{"name":"dispatchPeriodicSyncEvent","parameters":[{"name":"origin","type":"string"},{"name":"registrationId","$ref":"RegistrationID"},{"name":"tag","type":"string"}]},{"name":"enable"},{"name":"inspectWorker","parameters":[{"name":"versionId","type":"string"}]},{"name":"setForceUpdateOnPageLoad","parameters":[{"name":"forceUpdateOnPageLoad","type":"boolean"}]},{"name":"skipWaiting","parameters":[{"name":"scopeURL","type":"string"}]},{"name":"startWorker","parameters":[{"name":"scopeURL","type":"string"}]},{"name":"stopAllWorkers"},{"name":"stopWorker","parameters":[{"name":"versionId","type":"string"}]},{"name":"unregister","parameters":[{"name":"scopeURL","type":"string"}]},{"name":"updateRegistration","parameters":[{"name":"scopeURL","type":"string"}]}],"events":[{"name":"workerErrorReported","parameters":[{"name":"errorMessage","$ref":"ServiceWorkerErrorMessage"}]},{"name":"workerRegistrationUpdated","parameters":[{"name":"registrations","type":"array","items":{"$ref":"ServiceWorkerRegistration"}}]},{"name":"workerVersionUpdated","parameters":[{"name":"versions","type":"array","items":{"$ref":"ServiceWorkerVersion"}}]}]},{"domain":"Storage","types":[{"id":"StorageType","type":"string","description":"Enum of possible storage types.","enum":["appcache","cookies","file_systems","indexeddb","local_storage","shader_cache","websql","service_workers","cache_storage","interest_groups","all","other"]},{"id":"UsageForType","type":"object","description":"Usage for a storage type.","properties":[{"name":"storageType","description":"Name of storage type.","$ref":"StorageType"},{"name":"usage","type":"number","description":"Storage usage (bytes)."}]},{"id":"TrustTokens","type":"object","description":"Pair of issuer origin and number of available (signed, but not used) Trust Tokens from that issuer.","properties":[{"name":"issuerOrigin","type":"string"},{"name":"count","type":"number"}]},{"id":"InterestGroupAccessType","type":"string","description":"Enum of interest group access types.","enum":["join","leave","update","bid","win"]},{"id":"InterestGroupAd","type":"object","description":"Ad advertising element inside an interest group.","properties":[{"name":"renderUrl","type":"string"},{"name":"metadata","type":"string","optional":true}]},{"id":"InterestGroupDetails","type":"object","description":"The full details of an interest group.","properties":[{"name":"ownerOrigin","type":"string"},{"name":"name","type":"string"},{"name":"expirationTime","$ref":"Network.TimeSinceEpoch"},{"name":"joiningOrigin","type":"string"},{"name":"biddingUrl","type":"string","optional":true},{"name":"biddingWasmHelperUrl","type":"string","optional":true},{"name":"updateUrl","type":"string","optional":true},{"name":"trustedBiddingSignalsUrl","type":"string","optional":true},{"name":"trustedBiddingSignalsKeys","type":"array","items":{"type":"string"}},{"name":"userBiddingSignals","type":"string","optional":true},{"name":"ads","type":"array","items":{"$ref":"InterestGroupAd"}},{"name":"adComponents","type":"array","items":{"$ref":"InterestGroupAd"}}]}],"commands":[{"name":"clearDataForOrigin","description":"Clears storage for origin.","parameters":[{"name":"origin","type":"string","description":"Security origin."},{"name":"storageTypes","type":"string","description":"Comma separated list of StorageType to clear."}]},{"name":"getCookies","description":"Returns all browser cookies.","parameters":[{"name":"browserContextId","description":"Browser context to use when called on the browser endpoint.","$ref":"Browser.BrowserContextID","optional":true}],"returns":[{"name":"cookies","type":"array","items":{"$ref":"Network.Cookie"},"description":"Array of cookie objects."}]},{"name":"setCookies","description":"Sets given cookies.","parameters":[{"name":"cookies","type":"array","description":"Cookies to be set.","items":{"$ref":"Network.CookieParam"}},{"name":"browserContextId","description":"Browser context to use when called on the browser endpoint.","$ref":"Browser.BrowserContextID","optional":true}]},{"name":"clearCookies","description":"Clears cookies.","parameters":[{"name":"browserContextId","description":"Browser context to use when called on the browser endpoint.","$ref":"Browser.BrowserContextID","optional":true}]},{"name":"getUsageAndQuota","description":"Returns usage and quota in bytes.","parameters":[{"name":"origin","type":"string","description":"Security origin."}],"returns":[{"name":"usage","type":"number","description":"Storage usage (bytes)."},{"name":"quota","type":"number","description":"Storage quota (bytes)."},{"name":"overrideActive","type":"boolean","description":"Whether or not the origin has an active storage quota override"},{"name":"usageBreakdown","type":"array","items":{"$ref":"UsageForType"},"description":"Storage usage per type (bytes)."}]},{"name":"overrideQuotaForOrigin","description":"Override quota for the specified origin","parameters":[{"name":"origin","type":"string","description":"Security origin."},{"name":"quotaSize","type":"number","description":"The quota size (in bytes) to override the original quota with. If this is called multiple times, the overridden quota will be equal to the quotaSize provided in the final call. If this is called without specifying a quotaSize, the quota will be reset to the default value for the specified origin. If this is called multiple times with different origins, the override will be maintained for each origin until it is disabled (called without a quotaSize).","optional":true}]},{"name":"trackCacheStorageForOrigin","description":"Registers origin to be notified when an update occurs to its cache storage list.","parameters":[{"name":"origin","type":"string","description":"Security origin."}]},{"name":"trackIndexedDBForOrigin","description":"Registers origin to be notified when an update occurs to its IndexedDB.","parameters":[{"name":"origin","type":"string","description":"Security origin."}]},{"name":"untrackCacheStorageForOrigin","description":"Unregisters origin from receiving notifications for cache storage.","parameters":[{"name":"origin","type":"string","description":"Security origin."}]},{"name":"untrackIndexedDBForOrigin","description":"Unregisters origin from receiving notifications for IndexedDB.","parameters":[{"name":"origin","type":"string","description":"Security origin."}]},{"name":"getTrustTokens","description":"Returns the number of stored Trust Tokens per issuer for the current browsing context.","returns":[{"name":"tokens","type":"array","items":{"$ref":"TrustTokens"}}]},{"name":"clearTrustTokens","description":"Removes all Trust Tokens issued by the provided issuerOrigin. Leaves other stored data, including the issuer's Redemption Records, intact.","parameters":[{"name":"issuerOrigin","type":"string"}],"returns":[{"name":"didDeleteTokens","type":"boolean","description":"True if any tokens were deleted, false otherwise."}]},{"name":"getInterestGroupDetails","description":"Gets details for a named interest group.","parameters":[{"name":"ownerOrigin","type":"string"},{"name":"name","type":"string"}],"returns":[{"name":"details","$ref":"InterestGroupDetails"}]},{"name":"setInterestGroupTracking","description":"Enables/Disables issuing of interestGroupAccessed events.","parameters":[{"name":"enable","type":"boolean"}]}],"events":[{"name":"cacheStorageContentUpdated","description":"A cache's contents have been modified.","parameters":[{"name":"origin","type":"string","description":"Origin to update."},{"name":"cacheName","type":"string","description":"Name of cache in origin."}]},{"name":"cacheStorageListUpdated","description":"A cache has been added/deleted.","parameters":[{"name":"origin","type":"string","description":"Origin to update."}]},{"name":"indexedDBContentUpdated","description":"The origin's IndexedDB object store has been modified.","parameters":[{"name":"origin","type":"string","description":"Origin to update."},{"name":"databaseName","type":"string","description":"Database to update."},{"name":"objectStoreName","type":"string","description":"ObjectStore to update."}]},{"name":"indexedDBListUpdated","description":"The origin's IndexedDB database list has been modified.","parameters":[{"name":"origin","type":"string","description":"Origin to update."}]},{"name":"interestGroupAccessed","description":"One of the interest groups was accessed by the associated page.","parameters":[{"name":"accessTime","$ref":"Network.TimeSinceEpoch"},{"name":"type","$ref":"InterestGroupAccessType"},{"name":"ownerOrigin","type":"string"},{"name":"name","type":"string"}]}]},{"domain":"SystemInfo","description":"The SystemInfo domain defines methods and events for querying low-level system information.","types":[{"id":"GPUDevice","type":"object","description":"Describes a single graphics processor (GPU).","properties":[{"name":"vendorId","type":"number","description":"PCI ID of the GPU vendor, if available; 0 otherwise."},{"name":"deviceId","type":"number","description":"PCI ID of the GPU device, if available; 0 otherwise."},{"name":"subSysId","type":"number","description":"Sub sys ID of the GPU, only available on Windows.","optional":true},{"name":"revision","type":"number","description":"Revision of the GPU, only available on Windows.","optional":true},{"name":"vendorString","type":"string","description":"String description of the GPU vendor, if the PCI ID is not available."},{"name":"deviceString","type":"string","description":"String description of the GPU device, if the PCI ID is not available."},{"name":"driverVendor","type":"string","description":"String description of the GPU driver vendor."},{"name":"driverVersion","type":"string","description":"String description of the GPU driver version."}]},{"id":"Size","type":"object","description":"Describes the width and height dimensions of an entity.","properties":[{"name":"width","type":"integer","description":"Width in pixels."},{"name":"height","type":"integer","description":"Height in pixels."}]},{"id":"VideoDecodeAcceleratorCapability","type":"object","description":"Describes a supported video decoding profile with its associated minimum and maximum resolutions.","properties":[{"name":"profile","type":"string","description":"Video codec profile that is supported, e.g. VP9 Profile 2."},{"name":"maxResolution","description":"Maximum video dimensions in pixels supported for this |profile|.","$ref":"Size"},{"name":"minResolution","description":"Minimum video dimensions in pixels supported for this |profile|.","$ref":"Size"}]},{"id":"VideoEncodeAcceleratorCapability","type":"object","description":"Describes a supported video encoding profile with its associated maximum resolution and maximum framerate.","properties":[{"name":"profile","type":"string","description":"Video codec profile that is supported, e.g H264 Main."},{"name":"maxResolution","description":"Maximum video dimensions in pixels supported for this |profile|.","$ref":"Size"},{"name":"maxFramerateNumerator","type":"integer","description":"Maximum encoding framerate in frames per second supported for this |profile|, as fraction's numerator and denominator, e.g. 24/1 fps, 24000/1001 fps, etc."},{"name":"maxFramerateDenominator","type":"integer"}]},{"id":"SubsamplingFormat","type":"string","description":"YUV subsampling type of the pixels of a given image.","enum":["yuv420","yuv422","yuv444"]},{"id":"ImageType","type":"string","description":"Image format of a given image.","enum":["jpeg","webp","unknown"]},{"id":"ImageDecodeAcceleratorCapability","type":"object","description":"Describes a supported image decoding profile with its associated minimum and maximum resolutions and subsampling.","properties":[{"name":"imageType","description":"Image coded, e.g. Jpeg.","$ref":"ImageType"},{"name":"maxDimensions","description":"Maximum supported dimensions of the image in pixels.","$ref":"Size"},{"name":"minDimensions","description":"Minimum supported dimensions of the image in pixels.","$ref":"Size"},{"name":"subsamplings","type":"array","description":"Optional array of supported subsampling formats, e.g. 4:2:0, if known.","items":{"$ref":"SubsamplingFormat"}}]},{"id":"GPUInfo","type":"object","description":"Provides information about the GPU(s) on the system.","properties":[{"name":"devices","type":"array","description":"The graphics devices on the system. Element 0 is the primary GPU.","items":{"$ref":"GPUDevice"}},{"name":"auxAttributes","type":"object","description":"An optional dictionary of additional GPU related attributes.","optional":true},{"name":"featureStatus","type":"object","description":"An optional dictionary of graphics features and their status.","optional":true},{"name":"driverBugWorkarounds","type":"array","description":"An optional array of GPU driver bug workarounds.","items":{"type":"string"}},{"name":"videoDecoding","type":"array","description":"Supported accelerated video decoding capabilities.","items":{"$ref":"VideoDecodeAcceleratorCapability"}},{"name":"videoEncoding","type":"array","description":"Supported accelerated video encoding capabilities.","items":{"$ref":"VideoEncodeAcceleratorCapability"}},{"name":"imageDecoding","type":"array","description":"Supported accelerated image decoding capabilities.","items":{"$ref":"ImageDecodeAcceleratorCapability"}}]},{"id":"ProcessInfo","type":"object","description":"Represents process info.","properties":[{"name":"type","type":"string","description":"Specifies process type."},{"name":"id","type":"integer","description":"Specifies process id."},{"name":"cpuTime","type":"number","description":"Specifies cumulative CPU usage in seconds across all threads of the process since the process start."}]}],"commands":[{"name":"getInfo","description":"Returns information about the system.","returns":[{"name":"gpu","$ref":"GPUInfo","description":"Information about the GPUs on the system."},{"name":"modelName","type":"string","description":"A platform-dependent description of the model of the machine. On Mac OS, this is, for example, 'MacBookPro'. Will be the empty string if not supported."},{"name":"modelVersion","type":"string","description":"A platform-dependent description of the version of the machine. On Mac OS, this is, for example, '10.1'. Will be the empty string if not supported."},{"name":"commandLine","type":"string","description":"The command line string used to launch the browser. Will be the empty string if not supported."}]},{"name":"getProcessInfo","description":"Returns information about all running processes.","returns":[{"name":"processInfo","type":"array","items":{"$ref":"ProcessInfo"},"description":"An array of process info blocks."}]}]},{"domain":"Target","description":"Supports additional targets discovery and allows to attach to them.","types":[{"id":"TargetID","type":"string"},{"id":"SessionID","type":"string","description":"Unique identifier of attached debugging session."},{"id":"TargetInfo","type":"object","properties":[{"name":"targetId","$ref":"TargetID"},{"name":"type","type":"string"},{"name":"title","type":"string"},{"name":"url","type":"string"},{"name":"attached","type":"boolean","description":"Whether the target has an attached client."},{"name":"openerId","description":"Opener target Id","$ref":"TargetID","optional":true},{"name":"canAccessOpener","type":"boolean","description":"Whether the target has access to the originating window."},{"name":"openerFrameId","description":"Frame id of originating window (is only set if target has an opener).","$ref":"Page.FrameId","optional":true},{"name":"browserContextId","$ref":"Browser.BrowserContextID","optional":true}]},{"id":"RemoteLocation","type":"object","properties":[{"name":"host","type":"string"},{"name":"port","type":"integer"}]}],"commands":[{"name":"activateTarget","description":"Activates (focuses) the target.","parameters":[{"name":"targetId","$ref":"TargetID"}]},{"name":"attachToTarget","description":"Attaches to the target with given id.","parameters":[{"name":"targetId","$ref":"TargetID"},{"name":"flatten","type":"boolean","description":"Enables \"flat\" access to the session via specifying sessionId attribute in the commands. We plan to make this the default, deprecate non-flattened mode, and eventually retire it. See crbug.com/991325.","optional":true}],"returns":[{"name":"sessionId","$ref":"SessionID","description":"Id assigned to the session."}]},{"name":"attachToBrowserTarget","description":"Attaches to the browser target, only uses flat sessionId mode.","returns":[{"name":"sessionId","$ref":"SessionID","description":"Id assigned to the session."}]},{"name":"closeTarget","description":"Closes the target. If the target is a page that gets closed too.","parameters":[{"name":"targetId","$ref":"TargetID"}],"returns":[{"name":"success","type":"boolean","description":"Always set to true. If an error occurs, the response indicates protocol error."}]},{"name":"exposeDevToolsProtocol","description":"Inject object to the target's main frame that provides a communication channel with browser target. Injected object will be available as `window[bindingName]`. The object has the follwing API: - `binding.send(json)` - a method to send messages over the remote debugging protocol - `binding.onmessage = json =\u003e handleMessage(json)` - a callback that will be called for the protocol notifications and command responses.","parameters":[{"name":"targetId","$ref":"TargetID"},{"name":"bindingName","type":"string","description":"Binding name, 'cdp' if not specified.","optional":true}]},{"name":"createBrowserContext","description":"Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than one.","parameters":[{"name":"disposeOnDetach","type":"boolean","description":"If specified, disposes this context when debugging session disconnects.","optional":true},{"name":"proxyServer","type":"string","description":"Proxy server, similar to the one passed to --proxy-server","optional":true},{"name":"proxyBypassList","type":"string","description":"Proxy bypass list, similar to the one passed to --proxy-bypass-list","optional":true},{"name":"originsWithUniversalNetworkAccess","type":"array","description":"An optional list of origins to grant unlimited cross-origin access to. Parts of the URL other than those constituting origin are ignored.","optional":true,"items":{"type":"string"}}],"returns":[{"name":"browserContextId","$ref":"Browser.BrowserContextID","description":"The id of the context created."}]},{"name":"getBrowserContexts","description":"Returns all browser contexts created with `Target.createBrowserContext` method.","returns":[{"name":"browserContextIds","type":"array","items":{"$ref":"Browser.BrowserContextID"},"description":"An array of browser context ids."}]},{"name":"createTarget","description":"Creates a new page.","parameters":[{"name":"url","type":"string","description":"The initial URL the page will be navigated to. An empty string indicates about:blank."},{"name":"width","type":"integer","description":"Frame width in DIP (headless chrome only).","optional":true},{"name":"height","type":"integer","description":"Frame height in DIP (headless chrome only).","optional":true},{"name":"browserContextId","description":"The browser context to create the page in.","$ref":"Browser.BrowserContextID","optional":true},{"name":"enableBeginFrameControl","type":"boolean","description":"Whether BeginFrames for this target will be controlled via DevTools (headless chrome only, not supported on MacOS yet, false by default).","optional":true},{"name":"newWindow","type":"boolean","description":"Whether to create a new Window or Tab (chrome-only, false by default).","optional":true},{"name":"background","type":"boolean","description":"Whether to create the target in background or foreground (chrome-only, false by default).","optional":true}],"returns":[{"name":"targetId","$ref":"TargetID","description":"The id of the page opened."}]},{"name":"detachFromTarget","description":"Detaches session with given id.","parameters":[{"name":"sessionId","description":"Session to detach.","$ref":"SessionID","optional":true},{"name":"targetId","description":"Deprecated.","$ref":"TargetID","optional":true}]},{"name":"disposeBrowserContext","description":"Deletes a BrowserContext. All the belonging pages will be closed without calling their beforeunload hooks.","parameters":[{"name":"browserContextId","$ref":"Browser.BrowserContextID"}]},{"name":"getTargetInfo","description":"Returns information about a target.","parameters":[{"name":"targetId","$ref":"TargetID","optional":true}],"returns":[{"name":"targetInfo","$ref":"TargetInfo"}]},{"name":"getTargets","description":"Retrieves a list of available targets.","returns":[{"name":"targetInfos","type":"array","items":{"$ref":"TargetInfo"},"description":"The list of targets."}]},{"name":"sendMessageToTarget","description":"Sends protocol message over session with given id. Consider using flat mode instead; see commands attachToTarget, setAutoAttach, and crbug.com/991325.","parameters":[{"name":"message","type":"string"},{"name":"sessionId","description":"Identifier of the session.","$ref":"SessionID","optional":true},{"name":"targetId","description":"Deprecated.","$ref":"TargetID","optional":true}]},{"name":"setAutoAttach","description":"Controls whether to automatically attach to new targets which are considered to be related to this one. When turned on, attaches to all existing related targets as well. When turned off, automatically detaches from all currently attached targets. This also clears all targets added by `autoAttachRelated` from the list of targets to watch for creation of related targets.","parameters":[{"name":"autoAttach","type":"boolean","description":"Whether to auto-attach to related targets."},{"name":"waitForDebuggerOnStart","type":"boolean","description":"Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger` to run paused targets."},{"name":"flatten","type":"boolean","description":"Enables \"flat\" access to the session via specifying sessionId attribute in the commands. We plan to make this the default, deprecate non-flattened mode, and eventually retire it. See crbug.com/991325.","optional":true}]},{"name":"autoAttachRelated","description":"Adds the specified target to the list of targets that will be monitored for any related target creation (such as child frames, child workers and new versions of service worker) and reported through `attachedToTarget`. The specified target is also auto-attached. This cancels the effect of any previous `setAutoAttach` and is also cancelled by subsequent `setAutoAttach`. Only available at the Browser target.","parameters":[{"name":"targetId","$ref":"TargetID"},{"name":"waitForDebuggerOnStart","type":"boolean","description":"Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger` to run paused targets."}]},{"name":"setDiscoverTargets","description":"Controls whether to discover available targets and notify via `targetCreated/targetInfoChanged/targetDestroyed` events.","parameters":[{"name":"discover","type":"boolean","description":"Whether to discover available targets."}]},{"name":"setRemoteLocations","description":"Enables target discovery for the specified locations, when `setDiscoverTargets` was set to `true`.","parameters":[{"name":"locations","type":"array","description":"List of remote locations.","items":{"$ref":"RemoteLocation"}}]}],"events":[{"name":"attachedToTarget","description":"Issued when attached to target because of auto-attach or `attachToTarget` command.","parameters":[{"name":"sessionId","description":"Identifier assigned to the session used to send/receive messages.","$ref":"SessionID"},{"name":"targetInfo","$ref":"TargetInfo"},{"name":"waitingForDebugger","type":"boolean"}]},{"name":"detachedFromTarget","description":"Issued when detached from target for any reason (including `detachFromTarget` command). Can be issued multiple times per target if multiple sessions have been attached to it.","parameters":[{"name":"sessionId","description":"Detached session identifier.","$ref":"SessionID"},{"name":"targetId","description":"Deprecated.","$ref":"TargetID","optional":true}]},{"name":"receivedMessageFromTarget","description":"Notifies about a new protocol message received from the session (as reported in `attachedToTarget` event).","parameters":[{"name":"sessionId","description":"Identifier of a session which sends a message.","$ref":"SessionID"},{"name":"message","type":"string"},{"name":"targetId","description":"Deprecated.","$ref":"TargetID","optional":true}]},{"name":"targetCreated","description":"Issued when a possible inspection target is created.","parameters":[{"name":"targetInfo","$ref":"TargetInfo"}]},{"name":"targetDestroyed","description":"Issued when a target is destroyed.","parameters":[{"name":"targetId","$ref":"TargetID"}]},{"name":"targetCrashed","description":"Issued when a target has crashed.","parameters":[{"name":"targetId","$ref":"TargetID"},{"name":"status","type":"string","description":"Termination status type."},{"name":"errorCode","type":"integer","description":"Termination error code."}]},{"name":"targetInfoChanged","description":"Issued when some information about a target has changed. This only happens between `targetCreated` and `targetDestroyed`.","parameters":[{"name":"targetInfo","$ref":"TargetInfo"}]}]},{"domain":"Tethering","description":"The Tethering domain defines methods and events for browser port binding.","commands":[{"name":"bind","description":"Request browser port binding.","parameters":[{"name":"port","type":"integer","description":"Port number to bind."}]},{"name":"unbind","description":"Request browser port unbinding.","parameters":[{"name":"port","type":"integer","description":"Port number to unbind."}]}],"events":[{"name":"accepted","description":"Informs that port was successfully bound and got a specified connection id.","parameters":[{"name":"port","type":"integer","description":"Port number that was successfully bound."},{"name":"connectionId","type":"string","description":"Connection id to be used."}]}]},{"domain":"Tracing","types":[{"id":"MemoryDumpConfig","type":"object","description":"Configuration for memory dump. Used only when \"memory-infra\" category is enabled."},{"id":"TraceConfig","type":"object","properties":[{"name":"recordMode","type":"string","description":"Controls how the trace buffer stores data.","optional":true,"enum":["recordUntilFull","recordContinuously","recordAsMuchAsPossible","echoToConsole"]},{"name":"enableSampling","type":"boolean","description":"Turns on JavaScript stack sampling.","optional":true},{"name":"enableSystrace","type":"boolean","description":"Turns on system tracing.","optional":true},{"name":"enableArgumentFilter","type":"boolean","description":"Turns on argument filter.","optional":true},{"name":"includedCategories","type":"array","description":"Included category filters.","optional":true,"items":{"type":"string"}},{"name":"excludedCategories","type":"array","description":"Excluded category filters.","optional":true,"items":{"type":"string"}},{"name":"syntheticDelays","type":"array","description":"Configuration to synthesize the delays in tracing.","optional":true,"items":{"type":"string"}},{"name":"memoryDumpConfig","description":"Configuration for memory dump triggers. Used only when \"memory-infra\" category is enabled.","$ref":"MemoryDumpConfig","optional":true}]},{"id":"StreamFormat","type":"string","description":"Data format of a trace. Can be either the legacy JSON format or the protocol buffer format. Note that the JSON format will be deprecated soon.","enum":["json","proto"]},{"id":"StreamCompression","type":"string","description":"Compression type to use for traces returned via streams.","enum":["none","gzip"]},{"id":"MemoryDumpLevelOfDetail","type":"string","description":"Details exposed when memory request explicitly declared. Keep consistent with memory_dump_request_args.h and memory_instrumentation.mojom","enum":["background","light","detailed"]},{"id":"TracingBackend","type":"string","description":"Backend type to use for tracing. `chrome` uses the Chrome-integrated tracing service and is supported on all platforms. `system` is only supported on Chrome OS and uses the Perfetto system tracing service. `auto` chooses `system` when the perfettoConfig provided to Tracing.start specifies at least one non-Chrome data source; otherwise uses `chrome`.","enum":["auto","chrome","system"]}],"commands":[{"name":"end","description":"Stop trace events collection."},{"name":"getCategories","description":"Gets supported tracing categories.","returns":[{"name":"categories","type":"array","items":{"type":"string"},"description":"A list of supported tracing categories."}]},{"name":"recordClockSyncMarker","description":"Record a clock sync marker in the trace.","parameters":[{"name":"syncId","type":"string","description":"The ID of this clock sync marker"}]},{"name":"requestMemoryDump","description":"Request a global memory dump.","parameters":[{"name":"deterministic","type":"boolean","description":"Enables more deterministic results by forcing garbage collection","optional":true},{"name":"levelOfDetail","description":"Specifies level of details in memory dump. Defaults to \"detailed\".","$ref":"MemoryDumpLevelOfDetail","optional":true}],"returns":[{"name":"dumpGuid","type":"string","description":"GUID of the resulting global memory dump."},{"name":"success","type":"boolean","description":"True iff the global memory dump succeeded."}]},{"name":"start","description":"Start trace events collection.","parameters":[{"name":"categories","type":"string","description":"Category/tag filter","optional":true},{"name":"options","type":"string","description":"Tracing options","optional":true},{"name":"bufferUsageReportingInterval","type":"number","description":"If set, the agent will issue bufferUsage events at this interval, specified in milliseconds","optional":true},{"name":"transferMode","type":"string","description":"Whether to report trace events as series of dataCollected events or to save trace to a stream (defaults to `ReportEvents`).","optional":true,"enum":["ReportEvents","ReturnAsStream"]},{"name":"streamFormat","description":"Trace data format to use. This only applies when using `ReturnAsStream` transfer mode (defaults to `json`).","$ref":"StreamFormat","optional":true},{"name":"streamCompression","description":"Compression format to use. This only applies when using `ReturnAsStream` transfer mode (defaults to `none`)","$ref":"StreamCompression","optional":true},{"name":"traceConfig","$ref":"TraceConfig","optional":true},{"name":"perfettoConfig","type":"string","description":"Base64-encoded serialized perfetto.protos.TraceConfig protobuf message When specified, the parameters `categories`, `options`, `traceConfig` are ignored. (Encoded as a base64 string when passed over JSON)","optional":true},{"name":"tracingBackend","description":"Backend type (defaults to `auto`)","$ref":"TracingBackend","optional":true}]}],"events":[{"name":"bufferUsage","parameters":[{"name":"percentFull","type":"number","description":"A number in range [0..1] that indicates the used size of event buffer as a fraction of its total size.","optional":true},{"name":"eventCount","type":"number","description":"An approximate number of events in the trace log.","optional":true},{"name":"value","type":"number","description":"A number in range [0..1] that indicates the used size of event buffer as a fraction of its total size.","optional":true}]},{"name":"dataCollected","description":"Contains an bucket of collected trace events. When tracing is stopped collected events will be send as a sequence of dataCollected events followed by tracingComplete event.","parameters":[{"name":"value","type":"array","items":{"type":"object"}}]},{"name":"tracingComplete","description":"Signals that tracing is stopped and there is no trace buffers pending flush, all data were delivered via dataCollected events.","parameters":[{"name":"dataLossOccurred","type":"boolean","description":"Indicates whether some trace data is known to have been lost, e.g. because the trace ring buffer wrapped around."},{"name":"stream","description":"A handle of the stream that holds resulting trace data.","$ref":"IO.StreamHandle","optional":true},{"name":"traceFormat","description":"Trace data format of returned stream.","$ref":"StreamFormat","optional":true},{"name":"streamCompression","description":"Compression format of returned stream.","$ref":"StreamCompression","optional":true}]}]},{"domain":"Fetch","description":"A domain for letting clients substitute browser's network layer with client code.","types":[{"id":"RequestId","type":"string","description":"Unique request identifier."},{"id":"RequestStage","type":"string","description":"Stages of the request to handle. Request will intercept before the request is sent. Response will intercept after the response is received (but before response body is received).","enum":["Request","Response"]},{"id":"RequestPattern","type":"object","properties":[{"name":"urlPattern","type":"string","description":"Wildcards (`'*'` -\u003e zero or more, `'?'` -\u003e exactly one) are allowed. Escape character is backslash. Omitting is equivalent to `\"*\"`.","optional":true},{"name":"resourceType","description":"If set, only requests for matching resource types will be intercepted.","$ref":"Network.ResourceType","optional":true},{"name":"requestStage","description":"Stage at which to begin intercepting requests. Default is Request.","$ref":"RequestStage","optional":true}]},{"id":"HeaderEntry","type":"object","description":"Response HTTP header entry","properties":[{"name":"name","type":"string"},{"name":"value","type":"string"}]},{"id":"AuthChallenge","type":"object","description":"Authorization challenge for HTTP status code 401 or 407.","properties":[{"name":"source","type":"string","description":"Source of the authentication challenge.","optional":true,"enum":["Server","Proxy"]},{"name":"origin","type":"string","description":"Origin of the challenger."},{"name":"scheme","type":"string","description":"The authentication scheme used, such as basic or digest"},{"name":"realm","type":"string","description":"The realm of the challenge. May be empty."}]},{"id":"AuthChallengeResponse","type":"object","description":"Response to an AuthChallenge.","properties":[{"name":"response","type":"string","description":"The decision on what to do in response to the authorization challenge. Default means deferring to the default behavior of the net stack, which will likely either the Cancel authentication or display a popup dialog box.","enum":["Default","CancelAuth","ProvideCredentials"]},{"name":"username","type":"string","description":"The username to provide, possibly empty. Should only be set if response is ProvideCredentials.","optional":true},{"name":"password","type":"string","description":"The password to provide, possibly empty. Should only be set if response is ProvideCredentials.","optional":true}]}],"commands":[{"name":"disable","description":"Disables the fetch domain."},{"name":"enable","description":"Enables issuing of requestPaused events. A request will be paused until client calls one of failRequest, fulfillRequest or continueRequest/continueWithAuth.","parameters":[{"name":"patterns","type":"array","description":"If specified, only requests matching any of these patterns will produce fetchRequested event and will be paused until clients response. If not set, all requests will be affected.","optional":true,"items":{"$ref":"RequestPattern"}},{"name":"handleAuthRequests","type":"boolean","description":"If true, authRequired events will be issued and requests will be paused expecting a call to continueWithAuth.","optional":true}]},{"name":"failRequest","description":"Causes the request to fail with specified reason.","parameters":[{"name":"requestId","description":"An id the client received in requestPaused event.","$ref":"RequestId"},{"name":"errorReason","description":"Causes the request to fail with the given reason.","$ref":"Network.ErrorReason"}]},{"name":"fulfillRequest","description":"Provides response to the request.","parameters":[{"name":"requestId","description":"An id the client received in requestPaused event.","$ref":"RequestId"},{"name":"responseCode","type":"integer","description":"An HTTP response code."},{"name":"responseHeaders","type":"array","description":"Response headers.","optional":true,"items":{"$ref":"HeaderEntry"}},{"name":"binaryResponseHeaders","type":"string","description":"Alternative way of specifying response headers as a \\0-separated series of name: value pairs. Prefer the above method unless you need to represent some non-UTF8 values that can't be transmitted over the protocol as text. (Encoded as a base64 string when passed over JSON)","optional":true},{"name":"body","type":"string","description":"A response body. If absent, original response body will be used if the request is intercepted at the response stage and empty body will be used if the request is intercepted at the request stage. (Encoded as a base64 string when passed over JSON)","optional":true},{"name":"responsePhrase","type":"string","description":"A textual representation of responseCode. If absent, a standard phrase matching responseCode is used.","optional":true}]},{"name":"continueRequest","description":"Continues the request, optionally modifying some of its parameters.","parameters":[{"name":"requestId","description":"An id the client received in requestPaused event.","$ref":"RequestId"},{"name":"url","type":"string","description":"If set, the request url will be modified in a way that's not observable by page.","optional":true},{"name":"method","type":"string","description":"If set, the request method is overridden.","optional":true},{"name":"postData","type":"string","description":"If set, overrides the post data in the request. (Encoded as a base64 string when passed over JSON)","optional":true},{"name":"headers","type":"array","description":"If set, overrides the request headers.","optional":true,"items":{"$ref":"HeaderEntry"}},{"name":"interceptResponse","type":"boolean","description":"If set, overrides response interception behavior for this request.","optional":true}]},{"name":"continueWithAuth","description":"Continues a request supplying authChallengeResponse following authRequired event.","parameters":[{"name":"requestId","description":"An id the client received in authRequired event.","$ref":"RequestId"},{"name":"authChallengeResponse","description":"Response to with an authChallenge.","$ref":"AuthChallengeResponse"}]},{"name":"continueResponse","description":"Continues loading of the paused response, optionally modifying the response headers. If either responseCode or headers are modified, all of them must be present.","parameters":[{"name":"requestId","description":"An id the client received in requestPaused event.","$ref":"RequestId"},{"name":"responseCode","type":"integer","description":"An HTTP response code. If absent, original response code will be used.","optional":true},{"name":"responsePhrase","type":"string","description":"A textual representation of responseCode. If absent, a standard phrase matching responseCode is used.","optional":true},{"name":"responseHeaders","type":"array","description":"Response headers. If absent, original response headers will be used.","optional":true,"items":{"$ref":"HeaderEntry"}},{"name":"binaryResponseHeaders","type":"string","description":"Alternative way of specifying response headers as a \\0-separated series of name: value pairs. Prefer the above method unless you need to represent some non-UTF8 values that can't be transmitted over the protocol as text. (Encoded as a base64 string when passed over JSON)","optional":true}]},{"name":"getResponseBody","description":"Causes the body of the response to be received from the server and returned as a single string. May only be issued for a request that is paused in the Response stage and is mutually exclusive with takeResponseBodyForInterceptionAsStream. Calling other methods that affect the request or disabling fetch domain before body is received results in an undefined behavior.","parameters":[{"name":"requestId","description":"Identifier for the intercepted request to get body for.","$ref":"RequestId"}],"returns":[{"name":"body","type":"string","description":"Response body."},{"name":"base64Encoded","type":"boolean","description":"True, if content was sent as base64."}]},{"name":"takeResponseBodyAsStream","description":"Returns a handle to the stream representing the response body. The request must be paused in the HeadersReceived stage. Note that after this command the request can't be continued as is -- client either needs to cancel it or to provide the response body. The stream only supports sequential read, IO.read will fail if the position is specified. This method is mutually exclusive with getResponseBody. Calling other methods that affect the request or disabling fetch domain before body is received results in an undefined behavior.","parameters":[{"name":"requestId","$ref":"RequestId"}],"returns":[{"name":"stream","$ref":"IO.StreamHandle"}]}],"events":[{"name":"requestPaused","description":"Issued when the domain is enabled and the request URL matches the specified filter. The request is paused until the client responds with one of continueRequest, failRequest or fulfillRequest. The stage of the request can be determined by presence of responseErrorReason and responseStatusCode -- the request is at the response stage if either of these fields is present and in the request stage otherwise.","parameters":[{"name":"requestId","description":"Each request the page makes will have a unique id.","$ref":"RequestId"},{"name":"request","description":"The details of the request.","$ref":"Network.Request"},{"name":"frameId","description":"The id of the frame that initiated the request.","$ref":"Page.FrameId"},{"name":"resourceType","description":"How the requested resource will be used.","$ref":"Network.ResourceType"},{"name":"responseErrorReason","description":"Response error if intercepted at response stage.","$ref":"Network.ErrorReason","optional":true},{"name":"responseStatusCode","type":"integer","description":"Response code if intercepted at response stage.","optional":true},{"name":"responseStatusText","type":"string","description":"Response status text if intercepted at response stage.","optional":true},{"name":"responseHeaders","type":"array","description":"Response headers if intercepted at the response stage.","optional":true,"items":{"$ref":"HeaderEntry"}},{"name":"networkId","description":"If the intercepted request had a corresponding Network.requestWillBeSent event fired for it, then this networkId will be the same as the requestId present in the requestWillBeSent event.","$ref":"RequestId","optional":true}]},{"name":"authRequired","description":"Issued when the domain is enabled with handleAuthRequests set to true. The request is paused until client responds with continueWithAuth.","parameters":[{"name":"requestId","description":"Each request the page makes will have a unique id.","$ref":"RequestId"},{"name":"request","description":"The details of the request.","$ref":"Network.Request"},{"name":"frameId","description":"The id of the frame that initiated the request.","$ref":"Page.FrameId"},{"name":"resourceType","description":"How the requested resource will be used.","$ref":"Network.ResourceType"},{"name":"authChallenge","description":"Details of the Authorization Challenge encountered. If this is set, client should respond with continueRequest that contains AuthChallengeResponse.","$ref":"AuthChallenge"}]}]},{"domain":"WebAudio","description":"This domain allows inspection of Web Audio API. https://webaudio.github.io/web-audio-api/","types":[{"id":"GraphObjectId","type":"string","description":"An unique ID for a graph object (AudioContext, AudioNode, AudioParam) in Web Audio API"},{"id":"ContextType","type":"string","description":"Enum of BaseAudioContext types","enum":["realtime","offline"]},{"id":"ContextState","type":"string","description":"Enum of AudioContextState from the spec","enum":["suspended","running","closed"]},{"id":"NodeType","type":"string","description":"Enum of AudioNode types"},{"id":"ChannelCountMode","type":"string","description":"Enum of AudioNode::ChannelCountMode from the spec","enum":["clamped-max","explicit","max"]},{"id":"ChannelInterpretation","type":"string","description":"Enum of AudioNode::ChannelInterpretation from the spec","enum":["discrete","speakers"]},{"id":"ParamType","type":"string","description":"Enum of AudioParam types"},{"id":"AutomationRate","type":"string","description":"Enum of AudioParam::AutomationRate from the spec","enum":["a-rate","k-rate"]},{"id":"ContextRealtimeData","type":"object","description":"Fields in AudioContext that change in real-time.","properties":[{"name":"currentTime","type":"number","description":"The current context time in second in BaseAudioContext."},{"name":"renderCapacity","type":"number","description":"The time spent on rendering graph divided by render quantum duration, and multiplied by 100. 100 means the audio renderer reached the full capacity and glitch may occur."},{"name":"callbackIntervalMean","type":"number","description":"A running mean of callback interval."},{"name":"callbackIntervalVariance","type":"number","description":"A running variance of callback interval."}]},{"id":"BaseAudioContext","type":"object","description":"Protocol object for BaseAudioContext","properties":[{"name":"contextId","$ref":"GraphObjectId"},{"name":"contextType","$ref":"ContextType"},{"name":"contextState","$ref":"ContextState"},{"name":"realtimeData","$ref":"ContextRealtimeData","optional":true},{"name":"callbackBufferSize","type":"number","description":"Platform-dependent callback buffer size."},{"name":"maxOutputChannelCount","type":"number","description":"Number of output channels supported by audio hardware in use."},{"name":"sampleRate","type":"number","description":"Context sample rate."}]},{"id":"AudioListener","type":"object","description":"Protocol object for AudioListener","properties":[{"name":"listenerId","$ref":"GraphObjectId"},{"name":"contextId","$ref":"GraphObjectId"}]},{"id":"AudioNode","type":"object","description":"Protocol object for AudioNode","properties":[{"name":"nodeId","$ref":"GraphObjectId"},{"name":"contextId","$ref":"GraphObjectId"},{"name":"nodeType","$ref":"NodeType"},{"name":"numberOfInputs","type":"number"},{"name":"numberOfOutputs","type":"number"},{"name":"channelCount","type":"number"},{"name":"channelCountMode","$ref":"ChannelCountMode"},{"name":"channelInterpretation","$ref":"ChannelInterpretation"}]},{"id":"AudioParam","type":"object","description":"Protocol object for AudioParam","properties":[{"name":"paramId","$ref":"GraphObjectId"},{"name":"nodeId","$ref":"GraphObjectId"},{"name":"contextId","$ref":"GraphObjectId"},{"name":"paramType","$ref":"ParamType"},{"name":"rate","$ref":"AutomationRate"},{"name":"defaultValue","type":"number"},{"name":"minValue","type":"number"},{"name":"maxValue","type":"number"}]}],"commands":[{"name":"enable","description":"Enables the WebAudio domain and starts sending context lifetime events."},{"name":"disable","description":"Disables the WebAudio domain."},{"name":"getRealtimeData","description":"Fetch the realtime data from the registered contexts.","parameters":[{"name":"contextId","$ref":"GraphObjectId"}],"returns":[{"name":"realtimeData","$ref":"ContextRealtimeData"}]}],"events":[{"name":"contextCreated","description":"Notifies that a new BaseAudioContext has been created.","parameters":[{"name":"context","$ref":"BaseAudioContext"}]},{"name":"contextWillBeDestroyed","description":"Notifies that an existing BaseAudioContext will be destroyed.","parameters":[{"name":"contextId","$ref":"GraphObjectId"}]},{"name":"contextChanged","description":"Notifies that existing BaseAudioContext has changed some properties (id stays the same)..","parameters":[{"name":"context","$ref":"BaseAudioContext"}]},{"name":"audioListenerCreated","description":"Notifies that the construction of an AudioListener has finished.","parameters":[{"name":"listener","$ref":"AudioListener"}]},{"name":"audioListenerWillBeDestroyed","description":"Notifies that a new AudioListener has been created.","parameters":[{"name":"contextId","$ref":"GraphObjectId"},{"name":"listenerId","$ref":"GraphObjectId"}]},{"name":"audioNodeCreated","description":"Notifies that a new AudioNode has been created.","parameters":[{"name":"node","$ref":"AudioNode"}]},{"name":"audioNodeWillBeDestroyed","description":"Notifies that an existing AudioNode has been destroyed.","parameters":[{"name":"contextId","$ref":"GraphObjectId"},{"name":"nodeId","$ref":"GraphObjectId"}]},{"name":"audioParamCreated","description":"Notifies that a new AudioParam has been created.","parameters":[{"name":"param","$ref":"AudioParam"}]},{"name":"audioParamWillBeDestroyed","description":"Notifies that an existing AudioParam has been destroyed.","parameters":[{"name":"contextId","$ref":"GraphObjectId"},{"name":"nodeId","$ref":"GraphObjectId"},{"name":"paramId","$ref":"GraphObjectId"}]},{"name":"nodesConnected","description":"Notifies that two AudioNodes are connected.","parameters":[{"name":"contextId","$ref":"GraphObjectId"},{"name":"sourceId","$ref":"GraphObjectId"},{"name":"destinationId","$ref":"GraphObjectId"},{"name":"sourceOutputIndex","type":"number","optional":true},{"name":"destinationInputIndex","type":"number","optional":true}]},{"name":"nodesDisconnected","description":"Notifies that AudioNodes are disconnected. The destination can be null, and it means all the outgoing connections from the source are disconnected.","parameters":[{"name":"contextId","$ref":"GraphObjectId"},{"name":"sourceId","$ref":"GraphObjectId"},{"name":"destinationId","$ref":"GraphObjectId"},{"name":"sourceOutputIndex","type":"number","optional":true},{"name":"destinationInputIndex","type":"number","optional":true}]},{"name":"nodeParamConnected","description":"Notifies that an AudioNode is connected to an AudioParam.","parameters":[{"name":"contextId","$ref":"GraphObjectId"},{"name":"sourceId","$ref":"GraphObjectId"},{"name":"destinationId","$ref":"GraphObjectId"},{"name":"sourceOutputIndex","type":"number","optional":true}]},{"name":"nodeParamDisconnected","description":"Notifies that an AudioNode is disconnected to an AudioParam.","parameters":[{"name":"contextId","$ref":"GraphObjectId"},{"name":"sourceId","$ref":"GraphObjectId"},{"name":"destinationId","$ref":"GraphObjectId"},{"name":"sourceOutputIndex","type":"number","optional":true}]}]},{"domain":"WebAuthn","description":"This domain allows configuring virtual authenticators to test the WebAuthn API.","types":[{"id":"AuthenticatorId","type":"string"},{"id":"AuthenticatorProtocol","type":"string","enum":["u2f","ctap2"]},{"id":"Ctap2Version","type":"string","enum":["ctap2_0","ctap2_1"]},{"id":"AuthenticatorTransport","type":"string","enum":["usb","nfc","ble","cable","internal"]},{"id":"VirtualAuthenticatorOptions","type":"object","properties":[{"name":"protocol","$ref":"AuthenticatorProtocol"},{"name":"ctap2Version","description":"Defaults to ctap2_0. Ignored if |protocol| == u2f.","$ref":"Ctap2Version","optional":true},{"name":"transport","$ref":"AuthenticatorTransport"},{"name":"hasResidentKey","type":"boolean","description":"Defaults to false.","optional":true},{"name":"hasUserVerification","type":"boolean","description":"Defaults to false.","optional":true},{"name":"hasLargeBlob","type":"boolean","description":"If set to true, the authenticator will support the largeBlob extension. https://w3c.github.io/webauthn#largeBlob Defaults to false.","optional":true},{"name":"hasCredBlob","type":"boolean","description":"If set to true, the authenticator will support the credBlob extension. https://fidoalliance.org/specs/fido-v2.1-rd-20201208/fido-client-to-authenticator-protocol-v2.1-rd-20201208.html#sctn-credBlob-extension Defaults to false.","optional":true},{"name":"hasMinPinLength","type":"boolean","description":"If set to true, the authenticator will support the minPinLength extension. https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#sctn-minpinlength-extension Defaults to false.","optional":true},{"name":"automaticPresenceSimulation","type":"boolean","description":"If set to true, tests of user presence will succeed immediately. Otherwise, they will not be resolved. Defaults to true.","optional":true},{"name":"isUserVerified","type":"boolean","description":"Sets whether User Verification succeeds or fails for an authenticator. Defaults to false.","optional":true}]},{"id":"Credential","type":"object","properties":[{"name":"credentialId","type":"string"},{"name":"isResidentCredential","type":"boolean"},{"name":"rpId","type":"string","description":"Relying Party ID the credential is scoped to. Must be set when adding a credential.","optional":true},{"name":"privateKey","type":"string","description":"The ECDSA P-256 private key in PKCS#8 format. (Encoded as a base64 string when passed over JSON)"},{"name":"userHandle","type":"string","description":"An opaque byte sequence with a maximum size of 64 bytes mapping the credential to a specific user. (Encoded as a base64 string when passed over JSON)","optional":true},{"name":"signCount","type":"integer","description":"Signature counter. This is incremented by one for each successful assertion. See https://w3c.github.io/webauthn/#signature-counter"},{"name":"largeBlob","type":"string","description":"The large blob associated with the credential. See https://w3c.github.io/webauthn/#sctn-large-blob-extension (Encoded as a base64 string when passed over JSON)","optional":true}]}],"commands":[{"name":"enable","description":"Enable the WebAuthn domain and start intercepting credential storage and retrieval with a virtual authenticator."},{"name":"disable","description":"Disable the WebAuthn domain."},{"name":"addVirtualAuthenticator","description":"Creates and adds a virtual authenticator.","parameters":[{"name":"options","$ref":"VirtualAuthenticatorOptions"}],"returns":[{"name":"authenticatorId","$ref":"AuthenticatorId"}]},{"name":"removeVirtualAuthenticator","description":"Removes the given authenticator.","parameters":[{"name":"authenticatorId","$ref":"AuthenticatorId"}]},{"name":"addCredential","description":"Adds the credential to the specified authenticator.","parameters":[{"name":"authenticatorId","$ref":"AuthenticatorId"},{"name":"credential","$ref":"Credential"}]},{"name":"getCredential","description":"Returns a single credential stored in the given virtual authenticator that matches the credential ID.","parameters":[{"name":"authenticatorId","$ref":"AuthenticatorId"},{"name":"credentialId","type":"string"}],"returns":[{"name":"credential","$ref":"Credential"}]},{"name":"getCredentials","description":"Returns all the credentials stored in the given virtual authenticator.","parameters":[{"name":"authenticatorId","$ref":"AuthenticatorId"}],"returns":[{"name":"credentials","type":"array","items":{"$ref":"Credential"}}]},{"name":"removeCredential","description":"Removes a credential from the authenticator.","parameters":[{"name":"authenticatorId","$ref":"AuthenticatorId"},{"name":"credentialId","type":"string"}]},{"name":"clearCredentials","description":"Clears all the credentials from the specified device.","parameters":[{"name":"authenticatorId","$ref":"AuthenticatorId"}]},{"name":"setUserVerified","description":"Sets whether User Verification succeeds or fails for an authenticator. The default is true.","parameters":[{"name":"authenticatorId","$ref":"AuthenticatorId"},{"name":"isUserVerified","type":"boolean"}]},{"name":"setAutomaticPresenceSimulation","description":"Sets whether tests of user presence will succeed immediately (if true) or fail to resolve (if false) for an authenticator. The default is true.","parameters":[{"name":"authenticatorId","$ref":"AuthenticatorId"},{"name":"enabled","type":"boolean"}]}]},{"domain":"Media","description":"This domain allows detailed inspection of media elements","types":[{"id":"PlayerId","type":"string","description":"Players will get an ID that is unique within the agent context."},{"id":"Timestamp","type":"number"},{"id":"PlayerMessage","type":"object","description":"Have one type per entry in MediaLogRecord::Type Corresponds to kMessage","properties":[{"name":"level","type":"string","description":"Keep in sync with MediaLogMessageLevel We are currently keeping the message level 'error' separate from the PlayerError type because right now they represent different things, this one being a DVLOG(ERROR) style log message that gets printed based on what log level is selected in the UI, and the other is a representation of a media::PipelineStatus object. Soon however we're going to be moving away from using PipelineStatus for errors and introducing a new error type which should hopefully let us integrate the error log level into the PlayerError type.","enum":["error","warning","info","debug"]},{"name":"message","type":"string"}]},{"id":"PlayerProperty","type":"object","description":"Corresponds to kMediaPropertyChange","properties":[{"name":"name","type":"string"},{"name":"value","type":"string"}]},{"id":"PlayerEvent","type":"object","description":"Corresponds to kMediaEventTriggered","properties":[{"name":"timestamp","$ref":"Timestamp"},{"name":"value","type":"string"}]},{"id":"PlayerError","type":"object","description":"Corresponds to kMediaError","properties":[{"name":"type","type":"string","enum":["pipeline_error","media_error"]},{"name":"errorCode","type":"string","description":"When this switches to using media::Status instead of PipelineStatus we can remove \"errorCode\" and replace it with the fields from a Status instance. This also seems like a duplicate of the error level enum - there is a todo bug to have that level removed and use this instead. (crbug.com/1068454)"}]}],"commands":[{"name":"enable","description":"Enables the Media domain"},{"name":"disable","description":"Disables the Media domain."}],"events":[{"name":"playerPropertiesChanged","description":"This can be called multiple times, and can be used to set / override / remove player properties. A null propValue indicates removal.","parameters":[{"name":"playerId","$ref":"PlayerId"},{"name":"properties","type":"array","items":{"$ref":"PlayerProperty"}}]},{"name":"playerEventsAdded","description":"Send events as a list, allowing them to be batched on the browser for less congestion. If batched, events must ALWAYS be in chronological order.","parameters":[{"name":"playerId","$ref":"PlayerId"},{"name":"events","type":"array","items":{"$ref":"PlayerEvent"}}]},{"name":"playerMessagesLogged","description":"Send a list of any messages that need to be delivered.","parameters":[{"name":"playerId","$ref":"PlayerId"},{"name":"messages","type":"array","items":{"$ref":"PlayerMessage"}}]},{"name":"playerErrorsRaised","description":"Send a list of any errors that need to be delivered.","parameters":[{"name":"playerId","$ref":"PlayerId"},{"name":"errors","type":"array","items":{"$ref":"PlayerError"}}]},{"name":"playersCreated","description":"Called whenever a player is created, or when a new agent joins and receives a list of active players. If an agent is restored, it will receive the full list of player ids and all events again.","parameters":[{"name":"players","type":"array","items":{"$ref":"PlayerId"}}]}]},{"domain":"Console","description":"This domain is deprecated - use Runtime or Log instead.","types":[{"id":"ConsoleMessage","type":"object","description":"Console message.","properties":[{"name":"source","type":"string","description":"Message source.","enum":["xml","javascript","network","console-api","storage","appcache","rendering","security","other","deprecation","worker"]},{"name":"level","type":"string","description":"Message severity.","enum":["log","warning","error","debug","info"]},{"name":"text","type":"string","description":"Message text."},{"name":"url","type":"string","description":"URL of the message origin.","optional":true},{"name":"line","type":"integer","description":"Line number in the resource that generated this message (1-based).","optional":true},{"name":"column","type":"integer","description":"Column number in the resource that generated this message (1-based).","optional":true}]}],"commands":[{"name":"clearMessages","description":"Does nothing."},{"name":"disable","description":"Disables console domain, prevents further console messages from being reported to the client."},{"name":"enable","description":"Enables console domain, sends the messages collected so far to the client by means of the `messageAdded` notification."}],"events":[{"name":"messageAdded","description":"Issued when new console message is added.","parameters":[{"name":"message","description":"Console message that has been added.","$ref":"ConsoleMessage"}]}]},{"domain":"Debugger","description":"Debugger domain exposes JavaScript debugging capabilities. It allows setting and removing breakpoints, stepping through execution, exploring stack traces, etc.","types":[{"id":"BreakpointId","type":"string","description":"Breakpoint identifier."},{"id":"CallFrameId","type":"string","description":"Call frame identifier."},{"id":"Location","type":"object","description":"Location in the source code.","properties":[{"name":"scriptId","description":"Script identifier as reported in the `Debugger.scriptParsed`.","$ref":"Runtime.ScriptId"},{"name":"lineNumber","type":"integer","description":"Line number in the script (0-based)."},{"name":"columnNumber","type":"integer","description":"Column number in the script (0-based).","optional":true}]},{"id":"ScriptPosition","type":"object","description":"Location in the source code.","properties":[{"name":"lineNumber","type":"integer"},{"name":"columnNumber","type":"integer"}]},{"id":"LocationRange","type":"object","description":"Location range within one script.","properties":[{"name":"scriptId","$ref":"Runtime.ScriptId"},{"name":"start","$ref":"ScriptPosition"},{"name":"end","$ref":"ScriptPosition"}]},{"id":"CallFrame","type":"object","description":"JavaScript call frame. Array of call frames form the call stack.","properties":[{"name":"callFrameId","description":"Call frame identifier. This identifier is only valid while the virtual machine is paused.","$ref":"CallFrameId"},{"name":"functionName","type":"string","description":"Name of the JavaScript function called on this call frame."},{"name":"functionLocation","description":"Location in the source code.","$ref":"Location","optional":true},{"name":"location","description":"Location in the source code.","$ref":"Location"},{"name":"url","type":"string","description":"JavaScript script name or url."},{"name":"scopeChain","type":"array","description":"Scope chain for this call frame.","items":{"$ref":"Scope"}},{"name":"this","description":"`this` object for this call frame.","$ref":"Runtime.RemoteObject"},{"name":"returnValue","description":"The value being returned, if the function is at return point.","$ref":"Runtime.RemoteObject","optional":true}]},{"id":"Scope","type":"object","description":"Scope description.","properties":[{"name":"type","type":"string","description":"Scope type.","enum":["global","local","with","closure","catch","block","script","eval","module","wasm-expression-stack"]},{"name":"object","description":"Object representing the scope. For `global` and `with` scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties.","$ref":"Runtime.RemoteObject"},{"name":"name","type":"string","optional":true},{"name":"startLocation","description":"Location in the source code where scope starts","$ref":"Location","optional":true},{"name":"endLocation","description":"Location in the source code where scope ends","$ref":"Location","optional":true}]},{"id":"SearchMatch","type":"object","description":"Search match for resource.","properties":[{"name":"lineNumber","type":"number","description":"Line number in resource content."},{"name":"lineContent","type":"string","description":"Line with match content."}]},{"id":"BreakLocation","type":"object","properties":[{"name":"scriptId","description":"Script identifier as reported in the `Debugger.scriptParsed`.","$ref":"Runtime.ScriptId"},{"name":"lineNumber","type":"integer","description":"Line number in the script (0-based)."},{"name":"columnNumber","type":"integer","description":"Column number in the script (0-based).","optional":true},{"name":"type","type":"string","optional":true,"enum":["debuggerStatement","call","return"]}]},{"id":"ScriptLanguage","type":"string","description":"Enum of possible script languages.","enum":["JavaScript","WebAssembly"]},{"id":"DebugSymbols","type":"object","description":"Debug symbols available for a wasm script.","properties":[{"name":"type","type":"string","description":"Type of the debug symbols.","enum":["None","SourceMap","EmbeddedDWARF","ExternalDWARF"]},{"name":"externalURL","type":"string","description":"URL of the external symbol source.","optional":true}]}],"commands":[{"name":"continueToLocation","description":"Continues execution until specific location is reached.","parameters":[{"name":"location","description":"Location to continue to.","$ref":"Location"},{"name":"targetCallFrames","type":"string","optional":true,"enum":["any","current"]}]},{"name":"disable","description":"Disables debugger for given page."},{"name":"enable","description":"Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received.","parameters":[{"name":"maxScriptsCacheSize","type":"number","description":"The maximum size in bytes of collected scripts (not referenced by other heap objects) the debugger can hold. Puts no limit if parameter is omitted.","optional":true}],"returns":[{"name":"debuggerId","$ref":"Runtime.UniqueDebuggerId","description":"Unique identifier of the debugger."}]},{"name":"evaluateOnCallFrame","description":"Evaluates expression on a given call frame.","parameters":[{"name":"callFrameId","description":"Call frame identifier to evaluate on.","$ref":"CallFrameId"},{"name":"expression","type":"string","description":"Expression to evaluate."},{"name":"objectGroup","type":"string","description":"String object group name to put result into (allows rapid releasing resulting object handles using `releaseObjectGroup`).","optional":true},{"name":"includeCommandLineAPI","type":"boolean","description":"Specifies whether command line API should be available to the evaluated expression, defaults to false.","optional":true},{"name":"silent","type":"boolean","description":"In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides `setPauseOnException` state.","optional":true},{"name":"returnByValue","type":"boolean","description":"Whether the result is expected to be a JSON object that should be sent by value.","optional":true},{"name":"generatePreview","type":"boolean","description":"Whether preview should be generated for the result.","optional":true},{"name":"throwOnSideEffect","type":"boolean","description":"Whether to throw an exception if side effect cannot be ruled out during evaluation.","optional":true},{"name":"timeout","description":"Terminate execution after timing out (number of milliseconds).","$ref":"Runtime.TimeDelta","optional":true}],"returns":[{"name":"result","$ref":"Runtime.RemoteObject","description":"Object wrapper for the evaluation result."},{"name":"exceptionDetails","$ref":"Runtime.ExceptionDetails","description":"Exception details."}]},{"name":"getPossibleBreakpoints","description":"Returns possible locations for breakpoint. scriptId in start and end range locations should be the same.","parameters":[{"name":"start","description":"Start of range to search possible breakpoint locations in.","$ref":"Location"},{"name":"end","description":"End of range to search possible breakpoint locations in (excluding). When not specified, end of scripts is used as end of range.","$ref":"Location","optional":true},{"name":"restrictToFunction","type":"boolean","description":"Only consider locations which are in the same (non-nested) function as start.","optional":true}],"returns":[{"name":"locations","type":"array","items":{"$ref":"BreakLocation"},"description":"List of the possible breakpoint locations."}]},{"name":"getScriptSource","description":"Returns source for the script with given id.","parameters":[{"name":"scriptId","description":"Id of the script to get source for.","$ref":"Runtime.ScriptId"}],"returns":[{"name":"scriptSource","type":"string","description":"Script source (empty in case of Wasm bytecode)."},{"name":"bytecode","type":"string","description":"Wasm bytecode. (Encoded as a base64 string when passed over JSON)"}]},{"name":"getWasmBytecode","description":"This command is deprecated. Use getScriptSource instead.","parameters":[{"name":"scriptId","description":"Id of the Wasm script to get source for.","$ref":"Runtime.ScriptId"}],"returns":[{"name":"bytecode","type":"string","description":"Script source. (Encoded as a base64 string when passed over JSON)"}]},{"name":"getStackTrace","description":"Returns stack trace with given `stackTraceId`.","parameters":[{"name":"stackTraceId","$ref":"Runtime.StackTraceId"}],"returns":[{"name":"stackTrace","$ref":"Runtime.StackTrace"}]},{"name":"pause","description":"Stops on the next JavaScript statement."},{"name":"pauseOnAsyncCall","parameters":[{"name":"parentStackTraceId","description":"Debugger will pause when async call with given stack trace is started.","$ref":"Runtime.StackTraceId"}]},{"name":"removeBreakpoint","description":"Removes JavaScript breakpoint.","parameters":[{"name":"breakpointId","$ref":"BreakpointId"}]},{"name":"restartFrame","description":"Restarts particular call frame from the beginning.","parameters":[{"name":"callFrameId","description":"Call frame identifier to evaluate on.","$ref":"CallFrameId"}],"returns":[{"name":"callFrames","type":"array","items":{"$ref":"CallFrame"},"description":"New stack trace."},{"name":"asyncStackTrace","$ref":"Runtime.StackTrace","description":"Async stack trace, if any."},{"name":"asyncStackTraceId","$ref":"Runtime.StackTraceId","description":"Async stack trace, if any."}]},{"name":"resume","description":"Resumes JavaScript execution.","parameters":[{"name":"terminateOnResume","type":"boolean","description":"Set to true to terminate execution upon resuming execution. In contrast to Runtime.terminateExecution, this will allows to execute further JavaScript (i.e. via evaluation) until execution of the paused code is actually resumed, at which point termination is triggered. If execution is currently not paused, this parameter has no effect.","optional":true}]},{"name":"searchInContent","description":"Searches for given string in script content.","parameters":[{"name":"scriptId","description":"Id of the script to search in.","$ref":"Runtime.ScriptId"},{"name":"query","type":"string","description":"String to search for."},{"name":"caseSensitive","type":"boolean","description":"If true, search is case sensitive.","optional":true},{"name":"isRegex","type":"boolean","description":"If true, treats string parameter as regex.","optional":true}],"returns":[{"name":"result","type":"array","items":{"$ref":"SearchMatch"},"description":"List of search matches."}]},{"name":"setAsyncCallStackDepth","description":"Enables or disables async call stacks tracking.","parameters":[{"name":"maxDepth","type":"integer","description":"Maximum depth of async call stacks. Setting to `0` will effectively disable collecting async call stacks (default)."}]},{"name":"setBlackboxPatterns","description":"Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in scripts with url matching one of the patterns. VM will try to leave blackboxed script by performing 'step in' several times, finally resorting to 'step out' if unsuccessful.","parameters":[{"name":"patterns","type":"array","description":"Array of regexps that will be used to check script url for blackbox state.","items":{"type":"string"}}]},{"name":"setBlackboxedRanges","description":"Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. Positions array contains positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted.","parameters":[{"name":"scriptId","description":"Id of the script.","$ref":"Runtime.ScriptId"},{"name":"positions","type":"array","items":{"$ref":"ScriptPosition"}}]},{"name":"setBreakpoint","description":"Sets JavaScript breakpoint at a given location.","parameters":[{"name":"location","description":"Location to set breakpoint in.","$ref":"Location"},{"name":"condition","type":"string","description":"Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.","optional":true}],"returns":[{"name":"breakpointId","$ref":"BreakpointId","description":"Id of the created breakpoint for further reference."},{"name":"actualLocation","$ref":"Location","description":"Location this breakpoint resolved into."}]},{"name":"setInstrumentationBreakpoint","description":"Sets instrumentation breakpoint.","parameters":[{"name":"instrumentation","type":"string","description":"Instrumentation name.","enum":["beforeScriptExecution","beforeScriptWithSourceMapExecution"]}],"returns":[{"name":"breakpointId","$ref":"BreakpointId","description":"Id of the created breakpoint for further reference."}]},{"name":"setBreakpointByUrl","description":"Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in `locations` property. Further matching script parsing will result in subsequent `breakpointResolved` events issued. This logical breakpoint will survive page reloads.","parameters":[{"name":"lineNumber","type":"integer","description":"Line number to set breakpoint at."},{"name":"url","type":"string","description":"URL of the resources to set breakpoint on.","optional":true},{"name":"urlRegex","type":"string","description":"Regex pattern for the URLs of the resources to set breakpoints on. Either `url` or `urlRegex` must be specified.","optional":true},{"name":"scriptHash","type":"string","description":"Script hash of the resources to set breakpoint on.","optional":true},{"name":"columnNumber","type":"integer","description":"Offset in the line to set breakpoint at.","optional":true},{"name":"condition","type":"string","description":"Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.","optional":true}],"returns":[{"name":"breakpointId","$ref":"BreakpointId","description":"Id of the created breakpoint for further reference."},{"name":"locations","type":"array","items":{"$ref":"Location"},"description":"List of the locations this breakpoint resolved into upon addition."}]},{"name":"setBreakpointOnFunctionCall","description":"Sets JavaScript breakpoint before each call to the given function. If another function was created from the same source as a given one, calling it will also trigger the breakpoint.","parameters":[{"name":"objectId","description":"Function object id.","$ref":"Runtime.RemoteObjectId"},{"name":"condition","type":"string","description":"Expression to use as a breakpoint condition. When specified, debugger will stop on the breakpoint if this expression evaluates to true.","optional":true}],"returns":[{"name":"breakpointId","$ref":"BreakpointId","description":"Id of the created breakpoint for further reference."}]},{"name":"setBreakpointsActive","description":"Activates / deactivates all breakpoints on the page.","parameters":[{"name":"active","type":"boolean","description":"New value for breakpoints active state."}]},{"name":"setPauseOnExceptions","description":"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`.","parameters":[{"name":"state","type":"string","description":"Pause on exceptions mode.","enum":["none","uncaught","all"]}]},{"name":"setReturnValue","description":"Changes return value in top frame. Available only at return break position.","parameters":[{"name":"newValue","description":"New return value.","$ref":"Runtime.CallArgument"}]},{"name":"setScriptSource","description":"Edits JavaScript source live.","parameters":[{"name":"scriptId","description":"Id of the script to edit.","$ref":"Runtime.ScriptId"},{"name":"scriptSource","type":"string","description":"New content of the script."},{"name":"dryRun","type":"boolean","description":"If true the change will not actually be applied. Dry run may be used to get result description without actually modifying the code.","optional":true}],"returns":[{"name":"callFrames","type":"array","items":{"$ref":"CallFrame"},"description":"New stack trace in case editing has happened while VM was stopped."},{"name":"stackChanged","type":"boolean","description":"Whether current call stack was modified after applying the changes."},{"name":"asyncStackTrace","$ref":"Runtime.StackTrace","description":"Async stack trace, if any."},{"name":"asyncStackTraceId","$ref":"Runtime.StackTraceId","description":"Async stack trace, if any."},{"name":"exceptionDetails","$ref":"Runtime.ExceptionDetails","description":"Exception details if any."}]},{"name":"setSkipAllPauses","description":"Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).","parameters":[{"name":"skip","type":"boolean","description":"New value for skip pauses state."}]},{"name":"setVariableValue","description":"Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.","parameters":[{"name":"scopeNumber","type":"integer","description":"0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch' scope types are allowed. Other scopes could be manipulated manually."},{"name":"variableName","type":"string","description":"Variable name."},{"name":"newValue","description":"New variable value.","$ref":"Runtime.CallArgument"},{"name":"callFrameId","description":"Id of callframe that holds variable.","$ref":"CallFrameId"}]},{"name":"stepInto","description":"Steps into the function call.","parameters":[{"name":"breakOnAsyncCall","type":"boolean","description":"Debugger will pause on the execution of the first async task which was scheduled before next pause.","optional":true},{"name":"skipList","type":"array","description":"The skipList specifies location ranges that should be skipped on step into.","optional":true,"items":{"$ref":"LocationRange"}}]},{"name":"stepOut","description":"Steps out of the function call."},{"name":"stepOver","description":"Steps over the statement.","parameters":[{"name":"skipList","type":"array","description":"The skipList specifies location ranges that should be skipped on step over.","optional":true,"items":{"$ref":"LocationRange"}}]}],"events":[{"name":"breakpointResolved","description":"Fired when breakpoint is resolved to an actual script and location.","parameters":[{"name":"breakpointId","description":"Breakpoint unique identifier.","$ref":"BreakpointId"},{"name":"location","description":"Actual breakpoint location.","$ref":"Location"}]},{"name":"paused","description":"Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.","parameters":[{"name":"callFrames","type":"array","description":"Call stack the virtual machine stopped on.","items":{"$ref":"CallFrame"}},{"name":"reason","type":"string","description":"Pause reason.","enum":["ambiguous","assert","CSPViolation","debugCommand","DOM","EventListener","exception","instrumentation","OOM","other","promiseRejection","XHR"]},{"name":"data","type":"object","description":"Object containing break-specific auxiliary properties.","optional":true},{"name":"hitBreakpoints","type":"array","description":"Hit breakpoints IDs","optional":true,"items":{"type":"string"}},{"name":"asyncStackTrace","description":"Async stack trace, if any.","$ref":"Runtime.StackTrace","optional":true},{"name":"asyncStackTraceId","description":"Async stack trace, if any.","$ref":"Runtime.StackTraceId","optional":true},{"name":"asyncCallStackTraceId","description":"Never present, will be removed.","$ref":"Runtime.StackTraceId","optional":true}]},{"name":"resumed","description":"Fired when the virtual machine resumed execution."},{"name":"scriptFailedToParse","description":"Fired when virtual machine fails to parse the script.","parameters":[{"name":"scriptId","description":"Identifier of the script parsed.","$ref":"Runtime.ScriptId"},{"name":"url","type":"string","description":"URL or name of the script parsed (if any)."},{"name":"startLine","type":"integer","description":"Line offset of the script within the resource with given URL (for script tags)."},{"name":"startColumn","type":"integer","description":"Column offset of the script within the resource with given URL."},{"name":"endLine","type":"integer","description":"Last line of the script."},{"name":"endColumn","type":"integer","description":"Length of the last line of the script."},{"name":"executionContextId","description":"Specifies script creation context.","$ref":"Runtime.ExecutionContextId"},{"name":"hash","type":"string","description":"Content hash of the script."},{"name":"executionContextAuxData","type":"object","description":"Embedder-specific auxiliary data.","optional":true},{"name":"sourceMapURL","type":"string","description":"URL of source map associated with script (if any).","optional":true},{"name":"hasSourceURL","type":"boolean","description":"True, if this script has sourceURL.","optional":true},{"name":"isModule","type":"boolean","description":"True, if this script is ES6 module.","optional":true},{"name":"length","type":"integer","description":"This script length.","optional":true},{"name":"stackTrace","description":"JavaScript top stack frame of where the script parsed event was triggered if available.","$ref":"Runtime.StackTrace","optional":true},{"name":"codeOffset","type":"integer","description":"If the scriptLanguage is WebAssembly, the code section offset in the module.","optional":true},{"name":"scriptLanguage","description":"The language of the script.","$ref":"Debugger.ScriptLanguage","optional":true},{"name":"embedderName","type":"string","description":"The name the embedder supplied for this script.","optional":true}]},{"name":"scriptParsed","description":"Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.","parameters":[{"name":"scriptId","description":"Identifier of the script parsed.","$ref":"Runtime.ScriptId"},{"name":"url","type":"string","description":"URL or name of the script parsed (if any)."},{"name":"startLine","type":"integer","description":"Line offset of the script within the resource with given URL (for script tags)."},{"name":"startColumn","type":"integer","description":"Column offset of the script within the resource with given URL."},{"name":"endLine","type":"integer","description":"Last line of the script."},{"name":"endColumn","type":"integer","description":"Length of the last line of the script."},{"name":"executionContextId","description":"Specifies script creation context.","$ref":"Runtime.ExecutionContextId"},{"name":"hash","type":"string","description":"Content hash of the script."},{"name":"executionContextAuxData","type":"object","description":"Embedder-specific auxiliary data.","optional":true},{"name":"isLiveEdit","type":"boolean","description":"True, if this script is generated as a result of the live edit operation.","optional":true},{"name":"sourceMapURL","type":"string","description":"URL of source map associated with script (if any).","optional":true},{"name":"hasSourceURL","type":"boolean","description":"True, if this script has sourceURL.","optional":true},{"name":"isModule","type":"boolean","description":"True, if this script is ES6 module.","optional":true},{"name":"length","type":"integer","description":"This script length.","optional":true},{"name":"stackTrace","description":"JavaScript top stack frame of where the script parsed event was triggered if available.","$ref":"Runtime.StackTrace","optional":true},{"name":"codeOffset","type":"integer","description":"If the scriptLanguage is WebAssembly, the code section offset in the module.","optional":true},{"name":"scriptLanguage","description":"The language of the script.","$ref":"Debugger.ScriptLanguage","optional":true},{"name":"debugSymbols","description":"If the scriptLanguage is WebASsembly, the source of debug symbols for the module.","$ref":"Debugger.DebugSymbols","optional":true},{"name":"embedderName","type":"string","description":"The name the embedder supplied for this script.","optional":true}]}]},{"domain":"HeapProfiler","types":[{"id":"HeapSnapshotObjectId","type":"string","description":"Heap snapshot object id."},{"id":"SamplingHeapProfileNode","type":"object","description":"Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes.","properties":[{"name":"callFrame","description":"Function location.","$ref":"Runtime.CallFrame"},{"name":"selfSize","type":"number","description":"Allocations size in bytes for the node excluding children."},{"name":"id","type":"integer","description":"Node id. Ids are unique across all profiles collected between startSampling and stopSampling."},{"name":"children","type":"array","description":"Child nodes.","items":{"$ref":"SamplingHeapProfileNode"}}]},{"id":"SamplingHeapProfileSample","type":"object","description":"A single sample from a sampling profile.","properties":[{"name":"size","type":"number","description":"Allocation size in bytes attributed to the sample."},{"name":"nodeId","type":"integer","description":"Id of the corresponding profile tree node."},{"name":"ordinal","type":"number","description":"Time-ordered sample ordinal number. It is unique across all profiles retrieved between startSampling and stopSampling."}]},{"id":"SamplingHeapProfile","type":"object","description":"Sampling profile.","properties":[{"name":"head","$ref":"SamplingHeapProfileNode"},{"name":"samples","type":"array","items":{"$ref":"SamplingHeapProfileSample"}}]}],"commands":[{"name":"addInspectedHeapObject","description":"Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).","parameters":[{"name":"heapObjectId","description":"Heap snapshot object id to be accessible by means of $x command line API.","$ref":"HeapSnapshotObjectId"}]},{"name":"collectGarbage"},{"name":"disable"},{"name":"enable"},{"name":"getHeapObjectId","parameters":[{"name":"objectId","description":"Identifier of the object to get heap object id for.","$ref":"Runtime.RemoteObjectId"}],"returns":[{"name":"heapSnapshotObjectId","$ref":"HeapSnapshotObjectId","description":"Id of the heap snapshot object corresponding to the passed remote object id."}]},{"name":"getObjectByHeapObjectId","parameters":[{"name":"objectId","$ref":"HeapSnapshotObjectId"},{"name":"objectGroup","type":"string","description":"Symbolic group name that can be used to release multiple objects.","optional":true}],"returns":[{"name":"result","$ref":"Runtime.RemoteObject","description":"Evaluation result."}]},{"name":"getSamplingProfile","returns":[{"name":"profile","$ref":"SamplingHeapProfile","description":"Return the sampling profile being collected."}]},{"name":"startSampling","parameters":[{"name":"samplingInterval","type":"number","description":"Average sample interval in bytes. Poisson distribution is used for the intervals. The default value is 32768 bytes.","optional":true}]},{"name":"startTrackingHeapObjects","parameters":[{"name":"trackAllocations","type":"boolean","optional":true}]},{"name":"stopSampling","returns":[{"name":"profile","$ref":"SamplingHeapProfile","description":"Recorded sampling heap profile."}]},{"name":"stopTrackingHeapObjects","parameters":[{"name":"reportProgress","type":"boolean","description":"If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken when the tracking is stopped.","optional":true},{"name":"treatGlobalObjectsAsRoots","type":"boolean","optional":true},{"name":"captureNumericValue","type":"boolean","description":"If true, numerical values are included in the snapshot","optional":true}]},{"name":"takeHeapSnapshot","parameters":[{"name":"reportProgress","type":"boolean","description":"If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken.","optional":true},{"name":"treatGlobalObjectsAsRoots","type":"boolean","description":"If true, a raw snapshot without artificial roots will be generated","optional":true},{"name":"captureNumericValue","type":"boolean","description":"If true, numerical values are included in the snapshot","optional":true}]}],"events":[{"name":"addHeapSnapshotChunk","parameters":[{"name":"chunk","type":"string"}]},{"name":"heapStatsUpdate","description":"If heap objects tracking has been started then backend may send update for one or more fragments","parameters":[{"name":"statsUpdate","type":"array","description":"An array of triplets. Each triplet describes a fragment. The first integer is the fragment index, the second integer is a total count of objects for the fragment, the third integer is a total size of the objects for the fragment.","items":{"type":"integer"}}]},{"name":"lastSeenObjectId","description":"If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.","parameters":[{"name":"lastSeenObjectId","type":"integer"},{"name":"timestamp","type":"number"}]},{"name":"reportHeapSnapshotProgress","parameters":[{"name":"done","type":"integer"},{"name":"total","type":"integer"},{"name":"finished","type":"boolean","optional":true}]},{"name":"resetProfiles"}]},{"domain":"Profiler","types":[{"id":"ProfileNode","type":"object","description":"Profile node. Holds callsite information, execution statistics and child nodes.","properties":[{"name":"id","type":"integer","description":"Unique id of the node."},{"name":"callFrame","description":"Function location.","$ref":"Runtime.CallFrame"},{"name":"hitCount","type":"integer","description":"Number of samples where this node was on top of the call stack.","optional":true},{"name":"children","type":"array","description":"Child node ids.","optional":true,"items":{"type":"integer"}},{"name":"deoptReason","type":"string","description":"The reason of being not optimized. The function may be deoptimized or marked as don't optimize.","optional":true},{"name":"positionTicks","type":"array","description":"An array of source position ticks.","optional":true,"items":{"$ref":"PositionTickInfo"}}]},{"id":"Profile","type":"object","description":"Profile.","properties":[{"name":"nodes","type":"array","description":"The list of profile nodes. First item is the root node.","items":{"$ref":"ProfileNode"}},{"name":"startTime","type":"number","description":"Profiling start timestamp in microseconds."},{"name":"endTime","type":"number","description":"Profiling end timestamp in microseconds."},{"name":"samples","type":"array","description":"Ids of samples top nodes.","optional":true,"items":{"type":"integer"}},{"name":"timeDeltas","type":"array","description":"Time intervals between adjacent samples in microseconds. The first delta is relative to the profile startTime.","optional":true,"items":{"type":"integer"}}]},{"id":"PositionTickInfo","type":"object","description":"Specifies a number of samples attributed to a certain source position.","properties":[{"name":"line","type":"integer","description":"Source line number (1-based)."},{"name":"ticks","type":"integer","description":"Number of samples attributed to the source line."}]},{"id":"CoverageRange","type":"object","description":"Coverage data for a source range.","properties":[{"name":"startOffset","type":"integer","description":"JavaScript script source offset for the range start."},{"name":"endOffset","type":"integer","description":"JavaScript script source offset for the range end."},{"name":"count","type":"integer","description":"Collected execution count of the source range."}]},{"id":"FunctionCoverage","type":"object","description":"Coverage data for a JavaScript function.","properties":[{"name":"functionName","type":"string","description":"JavaScript function name."},{"name":"ranges","type":"array","description":"Source ranges inside the function with coverage data.","items":{"$ref":"CoverageRange"}},{"name":"isBlockCoverage","type":"boolean","description":"Whether coverage data for this function has block granularity."}]},{"id":"ScriptCoverage","type":"object","description":"Coverage data for a JavaScript script.","properties":[{"name":"scriptId","description":"JavaScript script id.","$ref":"Runtime.ScriptId"},{"name":"url","type":"string","description":"JavaScript script name or url."},{"name":"functions","type":"array","description":"Functions contained in the script that has coverage data.","items":{"$ref":"FunctionCoverage"}}]},{"id":"TypeObject","type":"object","description":"Describes a type collected during runtime.","properties":[{"name":"name","type":"string","description":"Name of a type collected with type profiling."}]},{"id":"TypeProfileEntry","type":"object","description":"Source offset and types for a parameter or return value.","properties":[{"name":"offset","type":"integer","description":"Source offset of the parameter or end of function for return values."},{"name":"types","type":"array","description":"The types for this parameter or return value.","items":{"$ref":"TypeObject"}}]},{"id":"ScriptTypeProfile","type":"object","description":"Type profile data collected during runtime for a JavaScript script.","properties":[{"name":"scriptId","description":"JavaScript script id.","$ref":"Runtime.ScriptId"},{"name":"url","type":"string","description":"JavaScript script name or url."},{"name":"entries","type":"array","description":"Type profile entries for parameters and return values of the functions in the script.","items":{"$ref":"TypeProfileEntry"}}]}],"commands":[{"name":"disable"},{"name":"enable"},{"name":"getBestEffortCoverage","description":"Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.","returns":[{"name":"result","type":"array","items":{"$ref":"ScriptCoverage"},"description":"Coverage data for the current isolate."}]},{"name":"setSamplingInterval","description":"Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.","parameters":[{"name":"interval","type":"integer","description":"New sampling interval in microseconds."}]},{"name":"start"},{"name":"startPreciseCoverage","description":"Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters.","parameters":[{"name":"callCount","type":"boolean","description":"Collect accurate call counts beyond simple 'covered' or 'not covered'.","optional":true},{"name":"detailed","type":"boolean","description":"Collect block-based coverage.","optional":true},{"name":"allowTriggeredUpdates","type":"boolean","description":"Allow the backend to send updates on its own initiative","optional":true}],"returns":[{"name":"timestamp","type":"number","description":"Monotonically increasing time (in seconds) when the coverage update was taken in the backend."}]},{"name":"startTypeProfile","description":"Enable type profile."},{"name":"stop","returns":[{"name":"profile","$ref":"Profile","description":"Recorded profile."}]},{"name":"stopPreciseCoverage","description":"Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code."},{"name":"stopTypeProfile","description":"Disable type profile. Disabling releases type profile data collected so far."},{"name":"takePreciseCoverage","description":"Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.","returns":[{"name":"result","type":"array","items":{"$ref":"ScriptCoverage"},"description":"Coverage data for the current isolate."},{"name":"timestamp","type":"number","description":"Monotonically increasing time (in seconds) when the coverage update was taken in the backend."}]},{"name":"takeTypeProfile","description":"Collect type profile.","returns":[{"name":"result","type":"array","items":{"$ref":"ScriptTypeProfile"},"description":"Type profile for all scripts since startTypeProfile() was turned on."}]}],"events":[{"name":"consoleProfileFinished","parameters":[{"name":"id","type":"string"},{"name":"location","description":"Location of console.profileEnd().","$ref":"Debugger.Location"},{"name":"profile","$ref":"Profile"},{"name":"title","type":"string","description":"Profile title passed as an argument to console.profile().","optional":true}]},{"name":"consoleProfileStarted","description":"Sent when new profile recording is started using console.profile() call.","parameters":[{"name":"id","type":"string"},{"name":"location","description":"Location of console.profile().","$ref":"Debugger.Location"},{"name":"title","type":"string","description":"Profile title passed as an argument to console.profile().","optional":true}]},{"name":"preciseCoverageDeltaUpdate","description":"Reports coverage delta since the last poll (either from an event like this, or from `takePreciseCoverage` for the current isolate. May only be sent if precise code coverage has been started. This event can be trigged by the embedder to, for example, trigger collection of coverage data immediately at a certain point in time.","parameters":[{"name":"timestamp","type":"number","description":"Monotonically increasing time (in seconds) when the coverage update was taken in the backend."},{"name":"occasion","type":"string","description":"Identifier for distinguishing coverage events."},{"name":"result","type":"array","description":"Coverage data for the current isolate.","items":{"$ref":"ScriptCoverage"}}]}]},{"domain":"Runtime","description":"Runtime domain exposes JavaScript runtime by means of remote evaluation and mirror objects. Evaluation results are returned as mirror object that expose object type, string representation and unique identifier that can be used for further object reference. Original objects are maintained in memory unless they are either explicitly released or are released along with the other objects in their object group.","types":[{"id":"ScriptId","type":"string","description":"Unique script identifier."},{"id":"RemoteObjectId","type":"string","description":"Unique object identifier."},{"id":"UnserializableValue","type":"string","description":"Primitive value which cannot be JSON-stringified. Includes values `-0`, `NaN`, `Infinity`, `-Infinity`, and bigint literals."},{"id":"RemoteObject","type":"object","description":"Mirror object referencing original JavaScript object.","properties":[{"name":"type","type":"string","description":"Object type.","enum":["object","function","undefined","string","number","boolean","symbol","bigint"]},{"name":"subtype","type":"string","description":"Object subtype hint. Specified for `object` type values only. NOTE: If you change anything here, make sure to also update `subtype` in `ObjectPreview` and `PropertyPreview` below.","optional":true,"enum":["array","null","node","regexp","date","map","set","weakmap","weakset","iterator","generator","error","proxy","promise","typedarray","arraybuffer","dataview","webassemblymemory","wasmvalue"]},{"name":"className","type":"string","description":"Object class (constructor) name. Specified for `object` type values only.","optional":true},{"name":"value","type":"any","description":"Remote object value in case of primitive values or JSON values (if it was requested).","optional":true},{"name":"unserializableValue","description":"Primitive value which can not be JSON-stringified does not have `value`, but gets this property.","$ref":"UnserializableValue","optional":true},{"name":"description","type":"string","description":"String representation of the object.","optional":true},{"name":"objectId","description":"Unique object identifier (for non-primitive values).","$ref":"RemoteObjectId","optional":true},{"name":"preview","description":"Preview containing abbreviated property values. Specified for `object` type values only.","$ref":"ObjectPreview","optional":true},{"name":"customPreview","$ref":"CustomPreview","optional":true}]},{"id":"CustomPreview","type":"object","properties":[{"name":"header","type":"string","description":"The JSON-stringified result of formatter.header(object, config) call. It contains json ML array that represents RemoteObject."},{"name":"bodyGetterId","description":"If formatter returns true as a result of formatter.hasBody call then bodyGetterId will contain RemoteObjectId for the function that returns result of formatter.body(object, config) call. The result value is json ML array.","$ref":"RemoteObjectId","optional":true}]},{"id":"ObjectPreview","type":"object","description":"Object containing abbreviated remote object value.","properties":[{"name":"type","type":"string","description":"Object type.","enum":["object","function","undefined","string","number","boolean","symbol","bigint"]},{"name":"subtype","type":"string","description":"Object subtype hint. Specified for `object` type values only.","optional":true,"enum":["array","null","node","regexp","date","map","set","weakmap","weakset","iterator","generator","error","proxy","promise","typedarray","arraybuffer","dataview","webassemblymemory","wasmvalue"]},{"name":"description","type":"string","description":"String representation of the object.","optional":true},{"name":"overflow","type":"boolean","description":"True iff some of the properties or entries of the original object did not fit."},{"name":"properties","type":"array","description":"List of the properties.","items":{"$ref":"PropertyPreview"}},{"name":"entries","type":"array","description":"List of the entries. Specified for `map` and `set` subtype values only.","optional":true,"items":{"$ref":"EntryPreview"}}]},{"id":"PropertyPreview","type":"object","properties":[{"name":"name","type":"string","description":"Property name."},{"name":"type","type":"string","description":"Object type. Accessor means that the property itself is an accessor property.","enum":["object","function","undefined","string","number","boolean","symbol","accessor","bigint"]},{"name":"value","type":"string","description":"User-friendly property value string.","optional":true},{"name":"valuePreview","description":"Nested value preview.","$ref":"ObjectPreview","optional":true},{"name":"subtype","type":"string","description":"Object subtype hint. Specified for `object` type values only.","optional":true,"enum":["array","null","node","regexp","date","map","set","weakmap","weakset","iterator","generator","error","proxy","promise","typedarray","arraybuffer","dataview","webassemblymemory","wasmvalue"]}]},{"id":"EntryPreview","type":"object","properties":[{"name":"key","description":"Preview of the key. Specified for map-like collection entries.","$ref":"ObjectPreview","optional":true},{"name":"value","description":"Preview of the value.","$ref":"ObjectPreview"}]},{"id":"PropertyDescriptor","type":"object","description":"Object property descriptor.","properties":[{"name":"name","type":"string","description":"Property name or symbol description."},{"name":"value","description":"The value associated with the property.","$ref":"RemoteObject","optional":true},{"name":"writable","type":"boolean","description":"True if the value associated with the property may be changed (data descriptors only).","optional":true},{"name":"get","description":"A function which serves as a getter for the property, or `undefined` if there is no getter (accessor descriptors only).","$ref":"RemoteObject","optional":true},{"name":"set","description":"A function which serves as a setter for the property, or `undefined` if there is no setter (accessor descriptors only).","$ref":"RemoteObject","optional":true},{"name":"configurable","type":"boolean","description":"True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object."},{"name":"enumerable","type":"boolean","description":"True if this property shows up during enumeration of the properties on the corresponding object."},{"name":"wasThrown","type":"boolean","description":"True if the result was thrown during the evaluation.","optional":true},{"name":"isOwn","type":"boolean","description":"True if the property is owned for the object.","optional":true},{"name":"symbol","description":"Property symbol object, if the property is of the `symbol` type.","$ref":"RemoteObject","optional":true}]},{"id":"InternalPropertyDescriptor","type":"object","description":"Object internal property descriptor. This property isn't normally visible in JavaScript code.","properties":[{"name":"name","type":"string","description":"Conventional property name."},{"name":"value","description":"The value associated with the property.","$ref":"RemoteObject","optional":true}]},{"id":"PrivatePropertyDescriptor","type":"object","description":"Object private field descriptor.","properties":[{"name":"name","type":"string","description":"Private property name."},{"name":"value","description":"The value associated with the private property.","$ref":"RemoteObject","optional":true},{"name":"get","description":"A function which serves as a getter for the private property, or `undefined` if there is no getter (accessor descriptors only).","$ref":"RemoteObject","optional":true},{"name":"set","description":"A function which serves as a setter for the private property, or `undefined` if there is no setter (accessor descriptors only).","$ref":"RemoteObject","optional":true}]},{"id":"CallArgument","type":"object","description":"Represents function call argument. Either remote object id `objectId`, primitive `value`, unserializable primitive value or neither of (for undefined) them should be specified.","properties":[{"name":"value","type":"any","description":"Primitive value or serializable javascript object.","optional":true},{"name":"unserializableValue","description":"Primitive value which can not be JSON-stringified.","$ref":"UnserializableValue","optional":true},{"name":"objectId","description":"Remote object handle.","$ref":"RemoteObjectId","optional":true}]},{"id":"ExecutionContextId","type":"integer","description":"Id of an execution context."},{"id":"ExecutionContextDescription","type":"object","description":"Description of an isolated world.","properties":[{"name":"id","description":"Unique id of the execution context. It can be used to specify in which execution context script evaluation should be performed.","$ref":"ExecutionContextId"},{"name":"origin","type":"string","description":"Execution context origin."},{"name":"name","type":"string","description":"Human readable name describing given context."},{"name":"uniqueId","type":"string","description":"A system-unique execution context identifier. Unlike the id, this is unique across multiple processes, so can be reliably used to identify specific context while backend performs a cross-process navigation."},{"name":"auxData","type":"object","description":"Embedder-specific auxiliary data.","optional":true}]},{"id":"ExceptionDetails","type":"object","description":"Detailed information about exception (or error) that was thrown during script compilation or execution.","properties":[{"name":"exceptionId","type":"integer","description":"Exception id."},{"name":"text","type":"string","description":"Exception text, which should be used together with exception object when available."},{"name":"lineNumber","type":"integer","description":"Line number of the exception location (0-based)."},{"name":"columnNumber","type":"integer","description":"Column number of the exception location (0-based)."},{"name":"scriptId","description":"Script ID of the exception location.","$ref":"ScriptId","optional":true},{"name":"url","type":"string","description":"URL of the exception location, to be used when the script was not reported.","optional":true},{"name":"stackTrace","description":"JavaScript stack trace if available.","$ref":"StackTrace","optional":true},{"name":"exception","description":"Exception object if available.","$ref":"RemoteObject","optional":true},{"name":"executionContextId","description":"Identifier of the context where exception happened.","$ref":"ExecutionContextId","optional":true},{"name":"exceptionMetaData","type":"object","description":"Dictionary with entries of meta data that the client associated with this exception, such as information about associated network requests, etc.","optional":true}]},{"id":"Timestamp","type":"number","description":"Number of milliseconds since epoch."},{"id":"TimeDelta","type":"number","description":"Number of milliseconds."},{"id":"CallFrame","type":"object","description":"Stack entry for runtime errors and assertions.","properties":[{"name":"functionName","type":"string","description":"JavaScript function name."},{"name":"scriptId","description":"JavaScript script id.","$ref":"ScriptId"},{"name":"url","type":"string","description":"JavaScript script name or url."},{"name":"lineNumber","type":"integer","description":"JavaScript script line number (0-based)."},{"name":"columnNumber","type":"integer","description":"JavaScript script column number (0-based)."}]},{"id":"StackTrace","type":"object","description":"Call frames for assertions or error messages.","properties":[{"name":"description","type":"string","description":"String label of this stack trace. For async traces this may be a name of the function that initiated the async call.","optional":true},{"name":"callFrames","type":"array","description":"JavaScript function name.","items":{"$ref":"CallFrame"}},{"name":"parent","description":"Asynchronous JavaScript stack trace that preceded this stack, if available.","$ref":"StackTrace","optional":true},{"name":"parentId","description":"Asynchronous JavaScript stack trace that preceded this stack, if available.","$ref":"StackTraceId","optional":true}]},{"id":"UniqueDebuggerId","type":"string","description":"Unique identifier of current debugger."},{"id":"StackTraceId","type":"object","description":"If `debuggerId` is set stack trace comes from another debugger and can be resolved there. This allows to track cross-debugger calls. See `Runtime.StackTrace` and `Debugger.paused` for usages.","properties":[{"name":"id","type":"string"},{"name":"debuggerId","$ref":"UniqueDebuggerId","optional":true}]}],"commands":[{"name":"awaitPromise","description":"Add handler to promise with given promise object id.","parameters":[{"name":"promiseObjectId","description":"Identifier of the promise.","$ref":"RemoteObjectId"},{"name":"returnByValue","type":"boolean","description":"Whether the result is expected to be a JSON object that should be sent by value.","optional":true},{"name":"generatePreview","type":"boolean","description":"Whether preview should be generated for the result.","optional":true}],"returns":[{"name":"result","$ref":"RemoteObject","description":"Promise result. Will contain rejected value if promise was rejected."},{"name":"exceptionDetails","$ref":"ExceptionDetails","description":"Exception details if stack strace is available."}]},{"name":"callFunctionOn","description":"Calls function with given declaration on the given object. Object group of the result is inherited from the target object.","parameters":[{"name":"functionDeclaration","type":"string","description":"Declaration of the function to call."},{"name":"objectId","description":"Identifier of the object to call function on. Either objectId or executionContextId should be specified.","$ref":"RemoteObjectId","optional":true},{"name":"arguments","type":"array","description":"Call arguments. All call arguments must belong to the same JavaScript world as the target object.","optional":true,"items":{"$ref":"CallArgument"}},{"name":"silent","type":"boolean","description":"In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides `setPauseOnException` state.","optional":true},{"name":"returnByValue","type":"boolean","description":"Whether the result is expected to be a JSON object which should be sent by value.","optional":true},{"name":"generatePreview","type":"boolean","description":"Whether preview should be generated for the result.","optional":true},{"name":"userGesture","type":"boolean","description":"Whether execution should be treated as initiated by user in the UI.","optional":true},{"name":"awaitPromise","type":"boolean","description":"Whether execution should `await` for resulting value and return once awaited promise is resolved.","optional":true},{"name":"executionContextId","description":"Specifies execution context which global object will be used to call function on. Either executionContextId or objectId should be specified.","$ref":"ExecutionContextId","optional":true},{"name":"objectGroup","type":"string","description":"Symbolic group name that can be used to release multiple objects. If objectGroup is not specified and objectId is, objectGroup will be inherited from object.","optional":true},{"name":"throwOnSideEffect","type":"boolean","description":"Whether to throw an exception if side effect cannot be ruled out during evaluation.","optional":true}],"returns":[{"name":"result","$ref":"RemoteObject","description":"Call result."},{"name":"exceptionDetails","$ref":"ExceptionDetails","description":"Exception details."}]},{"name":"compileScript","description":"Compiles expression.","parameters":[{"name":"expression","type":"string","description":"Expression to compile."},{"name":"sourceURL","type":"string","description":"Source url to be set for the script."},{"name":"persistScript","type":"boolean","description":"Specifies whether the compiled script should be persisted."},{"name":"executionContextId","description":"Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page.","$ref":"ExecutionContextId","optional":true}],"returns":[{"name":"scriptId","$ref":"ScriptId","description":"Id of the script."},{"name":"exceptionDetails","$ref":"ExceptionDetails","description":"Exception details."}]},{"name":"disable","description":"Disables reporting of execution contexts creation."},{"name":"discardConsoleEntries","description":"Discards collected exceptions and console API calls."},{"name":"enable","description":"Enables reporting of execution contexts creation by means of `executionContextCreated` event. When the reporting gets enabled the event will be sent immediately for each existing execution context."},{"name":"evaluate","description":"Evaluates expression on global object.","parameters":[{"name":"expression","type":"string","description":"Expression to evaluate."},{"name":"objectGroup","type":"string","description":"Symbolic group name that can be used to release multiple objects.","optional":true},{"name":"includeCommandLineAPI","type":"boolean","description":"Determines whether Command Line API should be available during the evaluation.","optional":true},{"name":"silent","type":"boolean","description":"In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides `setPauseOnException` state.","optional":true},{"name":"contextId","description":"Specifies in which execution context to perform evaluation. If the parameter is omitted the evaluation will be performed in the context of the inspected page. This is mutually exclusive with `uniqueContextId`, which offers an alternative way to identify the execution context that is more reliable in a multi-process environment.","$ref":"ExecutionContextId","optional":true},{"name":"returnByValue","type":"boolean","description":"Whether the result is expected to be a JSON object that should be sent by value.","optional":true},{"name":"generatePreview","type":"boolean","description":"Whether preview should be generated for the result.","optional":true},{"name":"userGesture","type":"boolean","description":"Whether execution should be treated as initiated by user in the UI.","optional":true},{"name":"awaitPromise","type":"boolean","description":"Whether execution should `await` for resulting value and return once awaited promise is resolved.","optional":true},{"name":"throwOnSideEffect","type":"boolean","description":"Whether to throw an exception if side effect cannot be ruled out during evaluation. This implies `disableBreaks` below.","optional":true},{"name":"timeout","description":"Terminate execution after timing out (number of milliseconds).","$ref":"TimeDelta","optional":true},{"name":"disableBreaks","type":"boolean","description":"Disable breakpoints during execution.","optional":true},{"name":"replMode","type":"boolean","description":"Setting this flag to true enables `let` re-declaration and top-level `await`. Note that `let` variables can only be re-declared if they originate from `replMode` themselves.","optional":true},{"name":"allowUnsafeEvalBlockedByCSP","type":"boolean","description":"The Content Security Policy (CSP) for the target might block 'unsafe-eval' which includes eval(), Function(), setTimeout() and setInterval() when called with non-callable arguments. This flag bypasses CSP for this evaluation and allows unsafe-eval. Defaults to true.","optional":true},{"name":"uniqueContextId","type":"string","description":"An alternative way to specify the execution context to evaluate in. Compared to contextId that may be reused across processes, this is guaranteed to be system-unique, so it can be used to prevent accidental evaluation of the expression in context different than intended (e.g. as a result of navigation across process boundaries). This is mutually exclusive with `contextId`.","optional":true}],"returns":[{"name":"result","$ref":"RemoteObject","description":"Evaluation result."},{"name":"exceptionDetails","$ref":"ExceptionDetails","description":"Exception details."}]},{"name":"getIsolateId","description":"Returns the isolate id.","returns":[{"name":"id","type":"string","description":"The isolate id."}]},{"name":"getHeapUsage","description":"Returns the JavaScript heap usage. It is the total usage of the corresponding isolate not scoped to a particular Runtime.","returns":[{"name":"usedSize","type":"number","description":"Used heap size in bytes."},{"name":"totalSize","type":"number","description":"Allocated heap size in bytes."}]},{"name":"getProperties","description":"Returns properties of a given object. Object group of the result is inherited from the target object.","parameters":[{"name":"objectId","description":"Identifier of the object to return properties for.","$ref":"RemoteObjectId"},{"name":"ownProperties","type":"boolean","description":"If true, returns properties belonging only to the element itself, not to its prototype chain.","optional":true},{"name":"accessorPropertiesOnly","type":"boolean","description":"If true, returns accessor properties (with getter/setter) only; internal properties are not returned either.","optional":true},{"name":"generatePreview","type":"boolean","description":"Whether preview should be generated for the results.","optional":true},{"name":"nonIndexedPropertiesOnly","type":"boolean","description":"If true, returns non-indexed properties only.","optional":true}],"returns":[{"name":"result","type":"array","items":{"$ref":"PropertyDescriptor"},"description":"Object properties."},{"name":"internalProperties","type":"array","items":{"$ref":"InternalPropertyDescriptor"},"description":"Internal object properties (only of the element itself)."},{"name":"privateProperties","type":"array","items":{"$ref":"PrivatePropertyDescriptor"},"description":"Object private properties."},{"name":"exceptionDetails","$ref":"ExceptionDetails","description":"Exception details."}]},{"name":"globalLexicalScopeNames","description":"Returns all let, const and class variables from global scope.","parameters":[{"name":"executionContextId","description":"Specifies in which execution context to lookup global scope variables.","$ref":"ExecutionContextId","optional":true}],"returns":[{"name":"names","type":"array","items":{"type":"string"}}]},{"name":"queryObjects","parameters":[{"name":"prototypeObjectId","description":"Identifier of the prototype to return objects for.","$ref":"RemoteObjectId"},{"name":"objectGroup","type":"string","description":"Symbolic group name that can be used to release the results.","optional":true}],"returns":[{"name":"objects","$ref":"RemoteObject","description":"Array with objects."}]},{"name":"releaseObject","description":"Releases remote object with given id.","parameters":[{"name":"objectId","description":"Identifier of the object to release.","$ref":"RemoteObjectId"}]},{"name":"releaseObjectGroup","description":"Releases all remote objects that belong to a given group.","parameters":[{"name":"objectGroup","type":"string","description":"Symbolic object group name."}]},{"name":"runIfWaitingForDebugger","description":"Tells inspected instance to run if it was waiting for debugger to attach."},{"name":"runScript","description":"Runs script with given id in a given context.","parameters":[{"name":"scriptId","description":"Id of the script to run.","$ref":"ScriptId"},{"name":"executionContextId","description":"Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page.","$ref":"ExecutionContextId","optional":true},{"name":"objectGroup","type":"string","description":"Symbolic group name that can be used to release multiple objects.","optional":true},{"name":"silent","type":"boolean","description":"In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides `setPauseOnException` state.","optional":true},{"name":"includeCommandLineAPI","type":"boolean","description":"Determines whether Command Line API should be available during the evaluation.","optional":true},{"name":"returnByValue","type":"boolean","description":"Whether the result is expected to be a JSON object which should be sent by value.","optional":true},{"name":"generatePreview","type":"boolean","description":"Whether preview should be generated for the result.","optional":true},{"name":"awaitPromise","type":"boolean","description":"Whether execution should `await` for resulting value and return once awaited promise is resolved.","optional":true}],"returns":[{"name":"result","$ref":"RemoteObject","description":"Run result."},{"name":"exceptionDetails","$ref":"ExceptionDetails","description":"Exception details."}]},{"name":"setAsyncCallStackDepth","description":"Enables or disables async call stacks tracking.","parameters":[{"name":"maxDepth","type":"integer","description":"Maximum depth of async call stacks. Setting to `0` will effectively disable collecting async call stacks (default)."}],"redirect":"Debugger"},{"name":"setCustomObjectFormatterEnabled","parameters":[{"name":"enabled","type":"boolean"}]},{"name":"setMaxCallStackSizeToCapture","parameters":[{"name":"size","type":"integer"}]},{"name":"terminateExecution","description":"Terminate current or next JavaScript execution. Will cancel the termination when the outer-most script execution ends."},{"name":"addBinding","description":"If executionContextId is empty, adds binding with the given name on the global objects of all inspected contexts, including those created later, bindings survive reloads. Binding function takes exactly one argument, this argument should be string, in case of any other input, function throws an exception. Each binding function call produces Runtime.bindingCalled notification.","parameters":[{"name":"name","type":"string"},{"name":"executionContextId","description":"If specified, the binding would only be exposed to the specified execution context. If omitted and `executionContextName` is not set, the binding is exposed to all execution contexts of the target. This parameter is mutually exclusive with `executionContextName`. Deprecated in favor of `executionContextName` due to an unclear use case and bugs in implementation (crbug.com/1169639). `executionContextId` will be removed in the future.","$ref":"ExecutionContextId","optional":true},{"name":"executionContextName","type":"string","description":"If specified, the binding is exposed to the executionContext with matching name, even for contexts created after the binding is added. See also `ExecutionContext.name` and `worldName` parameter to `Page.addScriptToEvaluateOnNewDocument`. This parameter is mutually exclusive with `executionContextId`.","optional":true}]},{"name":"removeBinding","description":"This method does not remove binding function from global object but unsubscribes current runtime agent from Runtime.bindingCalled notifications.","parameters":[{"name":"name","type":"string"}]}],"events":[{"name":"bindingCalled","description":"Notification is issued every time when binding is called.","parameters":[{"name":"name","type":"string"},{"name":"payload","type":"string"},{"name":"executionContextId","description":"Identifier of the context where the call was made.","$ref":"ExecutionContextId"}]},{"name":"consoleAPICalled","description":"Issued when console API was called.","parameters":[{"name":"type","type":"string","description":"Type of the call.","enum":["log","debug","info","error","warning","dir","dirxml","table","trace","clear","startGroup","startGroupCollapsed","endGroup","assert","profile","profileEnd","count","timeEnd"]},{"name":"args","type":"array","description":"Call arguments.","items":{"$ref":"RemoteObject"}},{"name":"executionContextId","description":"Identifier of the context where the call was made.","$ref":"ExecutionContextId"},{"name":"timestamp","description":"Call timestamp.","$ref":"Timestamp"},{"name":"stackTrace","description":"Stack trace captured when the call was made. The async stack chain is automatically reported for the following call types: `assert`, `error`, `trace`, `warning`. For other types the async call chain can be retrieved using `Debugger.getStackTrace` and `stackTrace.parentId` field.","$ref":"StackTrace","optional":true},{"name":"context","type":"string","description":"Console context descriptor for calls on non-default console context (not console.*): 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call on named context.","optional":true}]},{"name":"exceptionRevoked","description":"Issued when unhandled exception was revoked.","parameters":[{"name":"reason","type":"string","description":"Reason describing why exception was revoked."},{"name":"exceptionId","type":"integer","description":"The id of revoked exception, as reported in `exceptionThrown`."}]},{"name":"exceptionThrown","description":"Issued when exception was thrown and unhandled.","parameters":[{"name":"timestamp","description":"Timestamp of the exception.","$ref":"Timestamp"},{"name":"exceptionDetails","$ref":"ExceptionDetails"}]},{"name":"executionContextCreated","description":"Issued when new execution context is created.","parameters":[{"name":"context","description":"A newly created execution context.","$ref":"ExecutionContextDescription"}]},{"name":"executionContextDestroyed","description":"Issued when execution context is destroyed.","parameters":[{"name":"executionContextId","description":"Id of the destroyed context","$ref":"ExecutionContextId"}]},{"name":"executionContextsCleared","description":"Issued when all executionContexts were cleared in browser"},{"name":"inspectRequested","description":"Issued when object should be inspected (for example, as a result of inspect() command line API call).","parameters":[{"name":"object","$ref":"RemoteObject"},{"name":"hints","type":"object"},{"name":"executionContextId","description":"Identifier of the context where the call was made.","$ref":"ExecutionContextId","optional":true}]}]},{"domain":"Schema","description":"This domain is deprecated.","types":[{"id":"Domain","type":"object","description":"Description of the protocol domain.","properties":[{"name":"name","type":"string","description":"Domain name."},{"name":"version","type":"string","description":"Domain version."}]}],"commands":[{"name":"getDomains","description":"Returns supported domains.","returns":[{"name":"domains","type":"array","items":{"$ref":"Domain"},"description":"List of supported domains."}]}]}]} \ No newline at end of file