跳到主要内容

Audits🧪

Audits 领域允许调查页面违规和可能的改进。

EN
Audits domain allows investigation of page violations and possible improvements.

✅️️ Methods

🔨Audits.checkFormsIssues

对目标页面执行表单问题检查。发现的问题将通过 Audits.issueAdded 事件进行报告。

EN
Runs the form issues check for the target page. Found issues are reported using Audits.issueAdded event.
返回对象类型描述原文
formIssuesarray[GenericIssueDetails]

🔨Audits.disable

禁用问题域,防止进一步的问题报告给客户端。

EN
Disables issues domain, prevents further issues from being reported to the client.

🔨Audits.enable

启用问题域,通过issueAdded事件将迄今为止收集的问题发送给客户端。

EN
Enables issues domain, sends the issues collected so far to the client by means of the issueAdded event.

🔨Audits.getEncodedResponse

如果使用指定设置重新编码,则返回响应体及其大小。仅适用于图像。

EN
Returns the response body and size if it were re-encoded with the specified settings. Only applies to images.
参数必填标记类型描述原文
requestId✔️Network.RequestId获取内容的网络请求标识符。
ENIdentifier of the network request to get content for.
encoding✔️string使用的编码。
允许的值:webpjpegpng
ENThe encoding to use.
Allowed Values: webp, jpeg, png
qualitynumber编码质量(0-1)。(默认为1)
ENThe quality of the encoding (0-1). (defaults to 1)
sizeOnlyboolean是否仅返回尺寸信息(默认为 false)。
ENWhether to only return the size information (defaults to false).
返回对象类型描述原文
bodystring编码后的主体以base64字符串形式表示。如果sizeOnly为true则省略。(通过JSON传递时编码为base64字符串)
ENThe encoded body as a base64 string. Omitted if sizeOnly is true. (Encoded as a base64 string when passed over JSON)
originalSizeinteger重新编码前的大小。
ENSize before re-encoding.
encodedSizeinteger重新编码后的大小。
ENSize after re-encoding.

✅️️ Events

👋Audits.issueAdded

参数必填标记类型描述原文
issue✔️InspectorIssue

✅️️ Types

📌Audits.AdAncestry

关于广告脚本如何被判定为广告脚本的说明。它之所以被视为广告,是因为其URL匹配了过滤列表规则,或者是因为在加载此脚本时,调用堆栈中已存在其他广告脚本。

EN
Providence about how an ad script was determined to be such. It is an ad because its url matched a filterlist rule, or because some other ad script was on the stack when this script was loaded.

返回类型:object

属性必填标记类型描述原文
adAncestryChain✔️array[AdScriptIdentifier]当违规脚本加载时堆栈中的广告脚本。由于过滤列表规则,此过程递归向下直至被标记的根脚本。
ENThe ad-script in the stack when the offending script was loaded. This is recursive down to the root script that was tagged due to the filterlist rule.
rootScriptFilterlistRulestring导致 adAncestry 中根(最后)脚本被标记为广告的过滤列表规则。
ENThe filterlist rule that caused the root (last) script in adAncestry to be ad-tagged.

📌Audits.AdScriptIdentifier

关于导致AdAncestry中当前脚本被视为广告相关的原因,即位于堆栈上的广告脚本的元数据。

EN
Metadata about the ad script that was on the stack that caused the current script in the AdAncestry to be considered ad related.

返回类型:object

属性必填标记类型描述原文
scriptId✔️Runtime.ScriptId脚本的v8标识符。
ENThe script's v8 identifier.
debuggerId✔️Runtime.UniqueDebuggerIdv8 调试器为 v8::Context 分配的调试标识符。
ENv8's debugging id for the v8::Context.
name✔️string脚本的URL(如果是内联脚本,则基于ID生成名称)。
ENThe script's url (or generated name based on id if inline script).

📌Audits.AffectedCookie

关于受检查器问题影响的cookie信息。

EN
Information about a cookie that is affected by an inspector issue.

返回类型:object

属性必填标记类型描述原文
name✔️string以下三个属性唯一标识一个cookie
ENThe following three properties uniquely identify a cookie
path✔️string
domain✔️string

📌Audits.AffectedFrame

关于受检查器问题影响的帧的信息。

EN
Information about the frame affected by an inspector issue.

返回类型:object

属性必填标记类型描述原文
frameId✔️Page.FrameId

📌Audits.AffectedRequest

有关受检查器问题影响的请求信息。

EN
Information about a request that is affected by an inspector issue.

返回类型:object

属性必填标记类型描述原文
requestIdNetwork.RequestId唯一的请求标识符。
ENThe unique request id.
url✔️string

📌Audits.AttributionReportingIssueDetails

关于"Attribution Reporting API"使用相关问题的详细信息。解释文档:https://github.com/WICG/attribution-reporting-api

EN
Details for issues around "Attribution Reporting API" usage. Explainer: https://github.com/WICG/attribution-reporting-api

返回类型:object

属性必填标记类型描述原文
violationType✔️AttributionReportingIssueType
requestAffectedRequest
violatingNodeIdDOM.BackendNodeId
invalidParameterstring

📌Audits.AttributionReportingIssueType

允许的值:PermissionPolicyDisabledUntrustworthyReportingOriginInsecureContextInvalidHeaderInvalidRegisterTriggerHeaderSourceAndTriggerHeadersSourceIgnoredTriggerIgnoredOsSourceIgnoredOsTriggerIgnoredInvalidRegisterOsSourceHeaderInvalidRegisterOsTriggerHeaderWebAndOsHeadersNoWebOrOsSupportNavigationRegistrationWithoutTransientUserActivationInvalidInfoHeaderNoRegisterSourceHeaderNoRegisterTriggerHeaderNoRegisterOsSourceHeaderNoRegisterOsTriggerHeaderNavigationRegistrationUniqueScopeAlreadySet

EN
Allowed Values: PermissionPolicyDisabled, UntrustworthyReportingOrigin, InsecureContext, InvalidHeader, InvalidRegisterTriggerHeader, SourceAndTriggerHeaders, SourceIgnored, TriggerIgnored, OsSourceIgnored, OsTriggerIgnored, InvalidRegisterOsSourceHeader, InvalidRegisterOsTriggerHeader, WebAndOsHeaders, NoWebOrOsSupport, NavigationRegistrationWithoutTransientUserActivation, InvalidInfoHeader, NoRegisterSourceHeader, NoRegisterTriggerHeader, NoRegisterOsSourceHeader, NoRegisterOsTriggerHeader, NavigationRegistrationUniqueScopeAlreadySet

返回类型:string


📌Audits.BlockedByResponseIssueDetails

关于因 BLOCKED_BY_RESPONSE 代码而被阻止的请求的详细信息。目前仅用于 COEP/COOP,但未来可能会扩展以包含某些 CSP 错误。

EN
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.

返回类型:object

属性必填标记类型描述原文
request✔️AffectedRequest
parentFrameAffectedFrame
blockedFrameAffectedFrame
reason✔️BlockedByResponseReason

📌Audits.BlockedByResponseReason

枚举类型,指示响应被阻止的原因。这些原因是对网络错误 BLOCKED_BY_RESPONSE 的细化。

允许的值:CoepFrameResourceNeedsCoepHeader, CoopSandboxedIFrameCannotNavigateToCoopPage, CorpNotSameOrigin, CorpNotSameOriginAfterDefaultedToSameOriginByCoep, CorpNotSameOriginAfterDefaultedToSameOriginByDip, CorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip, CorpNotSameSite, SRIMessageSignatureMismatch

EN
Enum indicating the reason a response has been blocked. These reasons are refinements of the net error BLOCKED_BY_RESPONSE.
Allowed Values: CoepFrameResourceNeedsCoepHeader, CoopSandboxedIFrameCannotNavigateToCoopPage, CorpNotSameOrigin, CorpNotSameOriginAfterDefaultedToSameOriginByCoep, CorpNotSameOriginAfterDefaultedToSameOriginByDip, CorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip, CorpNotSameSite, SRIMessageSignatureMismatch

返回类型:string


📌Audits.BounceTrackingIssueDetails

此问题警告的是,在已完成导航的重定向链中,某些网站可能被标记为跟踪器,并且如果未收到用户交互,其状态将被清除。请注意,此处的“网站”指的是eTLD+1。例如,如果重定向链中包含URL https://example.test:80/bounce,则报告的网站将是 example.test

EN
This issue warns about sites in the redirect chain of a finished navigation that may be flagged as trackers and have their state cleared if they don't receive a user interaction. Note that in this context 'site' means eTLD+1. For example, if the URL https://example.test:80/bounce was in the redirect chain, the site reported would be example.test.

返回类型:object

属性必填标记类型描述原文
trackingSites✔️array[string]

📌Audits.ClientHintIssueDetails

此问题用于追踪与客户端提示相关的议题。其目的在于弃用旧功能、鼓励采用新功能,并提供通用指导。

EN
This issue tracks client hints related issues. It's used to deprecate old features, encourage the use of new ones, and provide general guidance.

返回类型:object

属性必填标记类型描述原文
sourceCodeLocation✔️SourceCodeLocation
clientHintIssueReason✔️ClientHintIssueReason

📌Audits.ClientHintIssueReason

允许的值:MetaTagAllowListInvalidOriginMetaTagModifiedHTML

EN
Allowed Values: MetaTagAllowListInvalidOrigin, MetaTagModifiedHTML

返回类型:string


📌Audits.ConnectionAllowlistError

允许的值:InvalidHeaderMoreThanOneListItemNotInnerListInvalidAllowlistItemTypeReportingEndpointNotTokenInvalidUrlPattern

EN
Allowed Values: InvalidHeader, MoreThanOneList, ItemNotInnerList, InvalidAllowlistItemType, ReportingEndpointNotToken, InvalidUrlPattern

返回类型:string


📌Audits.ConnectionAllowlistIssueDetails

返回类型:object

属性必填标记类型描述原文
error✔️ConnectionAllowlistError
request✔️AffectedRequest

📌Audits.ContentSecurityPolicyIssueDetails

返回类型:object

属性必填标记类型描述原文
blockedURLstring该网址未包含在允许的来源中。
ENThe url not included in allowed sources.
violatedDirective✔️string违反的具体指令,导致CSP问题。
ENSpecific directive that is violated, causing the CSP issue.
isReportOnly✔️boolean
contentSecurityPolicyViolationType✔️ContentSecurityPolicyViolationType
frameAncestorAffectedFrame
sourceCodeLocationSourceCodeLocation
violatingNodeIdDOM.BackendNodeId

📌Audits.ContentSecurityPolicyViolationType

允许的值:kInlineViolationkEvalViolationkURLViolationkSRIViolationkTrustedTypesSinkViolationkTrustedTypesPolicyViolationkWasmEvalViolation

EN
Allowed Values: kInlineViolation, kEvalViolation, kURLViolation, kSRIViolation, kTrustedTypesSinkViolation, kTrustedTypesPolicyViolation, kWasmEvalViolation

返回类型:string


📌Audits.CookieDeprecationMetadataIssueDetails

此问题警告第三方网站正在访问当前页面的Cookie,并且由于拥有全局元数据授权而被允许。请注意,在此上下文中,“网站”指的是eTLD+1。例如,如果URL https://example.test:80/web_page 正在访问Cookie,那么报告的网站将是 example.test

EN
This issue warns about third-party sites that are accessing cookies on the current page, and have been permitted due to having a global metadata grant. Note that in this context 'site' means eTLD+1. For example, if the URL https://example.test:80/web_page was accessing cookies, the site reported would be example.test.

返回类型:object

属性必填标记类型描述原文
allowedSites✔️array[string]
optOutPercentage✔️number
isOptOutTopLevel✔️boolean
operation✔️CookieOperation

📌Audits.CookieExclusionReason

允许的值:ExcludeSameSiteUnspecifiedTreatedAsLaxExcludeSameSiteNoneInsecureExcludeSameSiteLaxExcludeSameSiteStrictExcludeDomainNonASCIIExcludeThirdPartyCookieBlockedInFirstPartySetExcludeThirdPartyPhaseoutExcludePortMismatchExcludeSchemeMismatch

EN
Allowed Values: ExcludeSameSiteUnspecifiedTreatedAsLax, ExcludeSameSiteNoneInsecure, ExcludeSameSiteLax, ExcludeSameSiteStrict, ExcludeDomainNonASCII, ExcludeThirdPartyCookieBlockedInFirstPartySet, ExcludeThirdPartyPhaseout, ExcludePortMismatch, ExcludeSchemeMismatch

返回类型:string


📌Audits.CookieIssueDetails

此信息目前是必要的,因为前端难以找到特定的cookie。通过这种方式,我们可以在没有cookie的情况下传达特定的错误信息。

EN
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.

返回类型:object

属性必填标记类型描述原文
cookieAffectedCookie如果AffectedCookie未设置,则rawCookieLine包含原始的Set-Cookie头部字符串。这暗示了一个问题:Cookie行在语法或语义上存在缺陷,导致无法创建有效的Cookie。
ENIf 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.
rawCookieLinestring
cookieWarningReasons✔️array[CookieWarningReason]
cookieExclusionReasons✔️array[CookieExclusionReason]
operation✔️CookieOperation可选择性地标识用于Cookie的站点和Cookie URL,前端可能会将其用作额外上下文。
ENOptionally identifies the site-for-cookies and the cookie url, which may be used by the front-end as additional context.
siteForCookiesstring
cookieUrlstring
requestAffectedRequest
insightCookieIssueInsight该问题的推荐解决方案。
ENThe recommended solution to the issue.

📌Audits.CookieIssueInsight

关于解决Cookie问题的建议方案信息。

EN
Information about the suggested solution to a cookie issue.

返回类型:object

属性必填标记类型描述原文
type✔️InsightType
tableEntryUrlstring链接到第三方Cookie迁移准备列表中的表格条目。
ENLink to table entry in third-party cookie migration readiness list.

📌Audits.CookieOperation

允许的值:SetCookieReadCookie

EN
Allowed Values: SetCookie, ReadCookie

返回类型:string


📌Audits.CookieWarningReason

允许的值:WarnSameSiteUnspecifiedCrossSiteContext, WarnSameSiteNoneInsecure, WarnSameSiteUnspecifiedLaxAllowUnsafe, WarnSameSiteStrictLaxDowngradeStrict, WarnSameSiteStrictCrossDowngradeStrict, WarnSameSiteStrictCrossDowngradeLax, WarnSameSiteLaxCrossDowngradeStrict, WarnSameSiteLaxCrossDowngradeLax, WarnAttributeValueExceedsMaxSize, WarnDomainNonASCII, WarnThirdPartyPhaseout, WarnCrossSiteRedirectDowngradeChangesInclusion, WarnDeprecationTrialMetadata, WarnThirdPartyCookieHeuristic

EN
Allowed Values: WarnSameSiteUnspecifiedCrossSiteContext, WarnSameSiteNoneInsecure, WarnSameSiteUnspecifiedLaxAllowUnsafe, WarnSameSiteStrictLaxDowngradeStrict, WarnSameSiteStrictCrossDowngradeStrict, WarnSameSiteStrictCrossDowngradeLax, WarnSameSiteLaxCrossDowngradeStrict, WarnSameSiteLaxCrossDowngradeLax, WarnAttributeValueExceedsMaxSize, WarnDomainNonASCII, WarnThirdPartyPhaseout, WarnCrossSiteRedirectDowngradeChangesInclusion, WarnDeprecationTrialMetadata, WarnThirdPartyCookieHeuristic

返回类型:string


📌Audits.CorsIssueDetails

CORS相关问题的详细信息,例如与CORS RFC1918强制执行相关的警告或错误。

EN
Details for a CORS related issue, e.g. a warning or error related to CORS RFC1918 enforcement.

返回类型:object

属性必填标记类型描述原文
corsErrorStatus✔️Network.CorsErrorStatus
isWarning✔️boolean
request✔️AffectedRequest
locationSourceCodeLocation
initiatorOriginstring
resourceIPAddressSpaceNetwork.IPAddressSpace
clientSecurityStateNetwork.ClientSecurityState

📌Audits.DeprecationIssueDetails

此问题跟踪打印弃用消息所需的信息。https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/frame/third_party/blink/renderer/core/frame/deprecation/README.md

EN

返回类型:object

属性必填标记类型描述原文
affectedFrameAffectedFrame
sourceCodeLocation✔️SourceCodeLocation
type✔️string其中一个弃用名称来自third_party/blink/renderer/core/frame/deprecation/deprecation.json5
ENOne of the deprecation names from third_party/blink/renderer/core/frame/deprecation/deprecation.json5

📌Audits.ElementAccessibilityIssueDetails

此问题警告了选择或摘要元素内容模型中的错误。

EN
This issue warns about errors in the select or summary element content model.

返回类型:object

属性必填标记类型描述原文
nodeId✔️DOM.BackendNodeId
elementAccessibilityIssueReason✔️ElementAccessibilityIssueReason
hasDisallowedAttributes✔️boolean

📌Audits.ElementAccessibilityIssueReason

允许的值:DisallowedSelectChildDisallowedOptGroupChildNonPhrasingContentOptionChildInteractiveContentOptionChildInteractiveContentLegendChildInteractiveContentSummaryDescendant

EN
Allowed Values: DisallowedSelectChild, DisallowedOptGroupChild, NonPhrasingContentOptionChild, InteractiveContentOptionChild, InteractiveContentLegendChild, InteractiveContentSummaryDescendant

返回类型:string


📌Audits.FailedRequestInfo

返回类型:object

属性必填标记类型描述原文
url✔️string加载失败的URL。
ENThe URL that failed to load.
failureMessage✔️string失败请求的失败消息。
ENThe failure message for the failed request.
requestIdNetwork.RequestId

📌Audits.FederatedAuthRequestIssueDetails

返回类型:object

属性必填标记类型描述原文
federatedAuthRequestIssueReason✔️FederatedAuthRequestIssueReason

📌Audits.FederatedAuthRequestIssueReason

表示联合身份验证失败时的原因。应与 third_party/blink/public/mojom/devtools/inspector_issue.mojom 中的 RequestIdTokenStatus 同步更新,以包含除成功外的所有情况。

允许取值:ShouldEmbargoTooManyRequestsWellKnownHttpNotFoundWellKnownNoResponseWellKnownInvalidResponseWellKnownListEmptyWellKnownInvalidContentTypeConfigNotInWellKnownWellKnownTooBigConfigHttpNotFoundConfigNoResponseConfigInvalidResponseConfigInvalidContentTypeIdpNotPotentiallyTrustworthyDisabledInSettingsDisabledInFlagsErrorFetchingSigninInvalidSigninResponseAccountsHttpNotFoundAccountsNoResponseAccountsInvalidResponseAccountsListEmptyAccountsInvalidContentTypeIdTokenHttpNotFoundIdTokenNoResponseIdTokenInvalidResponseIdTokenIdpErrorResponseIdTokenCrossSiteIdpErrorResponseIdTokenInvalidRequestIdTokenInvalidContentTypeErrorIdTokenCanceledRpPageNotVisibleSilentMediationFailureNotSignedInWithIdpMissingTransientUserActivationReplacedByActiveModeRelyingPartyOriginIsOpaqueTypeNotMatchingUiDismissedNoEmbargoCorsErrorSuppressedBySegmentationPlatform

EN
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.
Allowed Values: ShouldEmbargo, TooManyRequests, WellKnownHttpNotFound, WellKnownNoResponse, WellKnownInvalidResponse, WellKnownListEmpty, WellKnownInvalidContentType, ConfigNotInWellKnown, WellKnownTooBig, ConfigHttpNotFound, ConfigNoResponse, ConfigInvalidResponse, ConfigInvalidContentType, IdpNotPotentiallyTrustworthy, DisabledInSettings, DisabledInFlags, ErrorFetchingSignin, InvalidSigninResponse, AccountsHttpNotFound, AccountsNoResponse, AccountsInvalidResponse, AccountsListEmpty, AccountsInvalidContentType, IdTokenHttpNotFound, IdTokenNoResponse, IdTokenInvalidResponse, IdTokenIdpErrorResponse, IdTokenCrossSiteIdpErrorResponse, IdTokenInvalidRequest, IdTokenInvalidContentType, ErrorIdToken, Canceled, RpPageNotVisible, SilentMediationFailure, NotSignedInWithIdp, MissingTransientUserActivation, ReplacedByActiveMode, RelyingPartyOriginIsOpaque, TypeNotMatching, UiDismissedNoEmbargo, CorsError, SuppressedBySegmentationPlatform

返回类型:string


📌Audits.FederatedAuthUserInfoRequestIssueDetails

返回类型:object

属性必填标记类型描述原文
federatedAuthUserInfoRequestIssueReason✔️FederatedAuthUserInfoRequestIssueReason

📌Audits.FederatedAuthUserInfoRequestIssueReason

表示调用getUserInfo()失败时的原因。应与third_party/blink/public/mojom/devtools/inspector_issue.mojom中的FederatedAuthUserInfoRequestResult同步更新。
允许值:NotSameOriginNotIframeNotPotentiallyTrustworthyNoApiPermissionNotSignedInWithIdpNoAccountSharingPermissionInvalidConfigOrWellKnownInvalidAccountsResponseNoReturningUserFromFetchedAccounts

EN
Represents the failure reason when a getUserInfo() call fails. Should be updated alongside FederatedAuthUserInfoRequestResult in third_party/blink/public/mojom/devtools/inspector_issue.mojom.
Allowed Values: NotSameOrigin, NotIframe, NotPotentiallyTrustworthy, NoApiPermission, NotSignedInWithIdp, NoAccountSharingPermission, InvalidConfigOrWellKnown, InvalidAccountsResponse, NoReturningUserFromFetchedAccounts

返回类型:string


📌Audits.GenericIssueDetails

根据具体的errorType,会设置不同的属性。

EN
Depending on the concrete errorType, different properties are set.

返回类型:object

属性必填标记类型描述原文
errorType✔️GenericIssueErrorType前端会将相同 errorType 的问题进行聚合处理。
ENIssues with the same errorType are aggregated in the frontend.
frameIdPage.FrameId
violatingNodeIdDOM.BackendNodeId
violatingNodeAttributestring
requestAffectedRequest

📌Audits.GenericIssueErrorType

允许的值:FormLabelForNameErrorFormDuplicateIdForInputErrorFormInputWithNoLabelErrorFormAutocompleteAttributeEmptyErrorFormEmptyIdAndNameAttributesForInputErrorFormAriaLabelledByToNonExistingIdErrorFormInputAssignedAutocompleteValueToIdOrNameAttributeErrorFormLabelHasNeitherForNorNestedInputErrorFormLabelForMatchesNonExistingIdErrorFormInputHasWrongButWellIntendedAutocompleteValueErrorResponseWasBlockedByORBNavigationEntryMarkedSkippableAutofillAndManualTextPolicyControlledFeaturesInfoAutofillPolicyControlledFeatureInfoManualTextPolicyControlledFeatureInfoFormModelContextParameterMissingTitleAndDescription

EN
Allowed Values: FormLabelForNameError, FormDuplicateIdForInputError, FormInputWithNoLabelError, FormAutocompleteAttributeEmptyError, FormEmptyIdAndNameAttributesForInputError, FormAriaLabelledByToNonExistingIdError, FormInputAssignedAutocompleteValueToIdOrNameAttributeError, FormLabelHasNeitherForNorNestedInputError, FormLabelForMatchesNonExistingIdError, FormInputHasWrongButWellIntendedAutocompleteValueError, ResponseWasBlockedByORB, NavigationEntryMarkedSkippable, AutofillAndManualTextPolicyControlledFeaturesInfo, AutofillPolicyControlledFeatureInfo, ManualTextPolicyControlledFeatureInfo, FormModelContextParameterMissingTitleAndDescription

返回类型:string


📌Audits.HeavyAdIssueDetails

返回类型:object

属性必填标记类型描述原文
resolution✔️HeavyAdResolutionStatus解析状态,要么阻止内容,要么发出警告。
ENThe resolution status, either blocking the content or warning.
reason✔️HeavyAdReason广告被阻止的原因是,总网络或CPU或峰值CPU。
ENThe reason the ad was blocked, total network or cpu or peak cpu.
frame✔️AffectedFrame被阻止的帧。
ENThe frame that was blocked.

📌Audits.HeavyAdReason

允许的值:NetworkTotalLimitCpuTotalLimitCpuPeakLimit

EN
Allowed Values: NetworkTotalLimit, CpuTotalLimit, CpuPeakLimit

返回类型:string


📌Audits.HeavyAdResolutionStatus

允许的值:HeavyAdBlockedHeavyAdWarning

EN
Allowed Values: HeavyAdBlocked, HeavyAdWarning

返回类型:string


📌Audits.InsightType

表示Cookie问题所属的洞察类别。
允许值:GitHubResourceGracePeriodHeuristics

EN
Represents the category of insight that a cookie issue falls under.
Allowed Values: GitHubResource, GracePeriod, Heuristics

返回类型:string


📌Audits.InspectorIssue

一个从后端报告的检查器问题。

EN
An inspector issue reported from the back-end.

返回类型:object

属性必填标记类型描述原文
code✔️InspectorIssueCode
details✔️InspectorIssueDetails
issueIdIssueId此问题的唯一标识符。如果没有任何其他实体(例如异常、CDP消息等)引用此问题,则可以省略。
ENA unique id for this issue. May be omitted if no other entity (e.g. exception, CDP message, etc.) is referencing this issue.

📌Audits.InspectorIssueCode

一个用于标识问题类型的唯一标识符。每种类型可以使用InspectorIssueDetails中的可选字段之一来传达关于问题种类的更具体信息。

允许的值:CookieIssue, MixedContentIssue, BlockedByResponseIssue, HeavyAdIssue, ContentSecurityPolicyIssue, SharedArrayBufferIssue, CorsIssue, AttributionReportingIssue, QuirksModeIssue, PartitioningBlobURLIssue, NavigatorUserAgentIssue, GenericIssue, DeprecationIssue, ClientHintIssue, FederatedAuthRequestIssue, BounceTrackingIssue, CookieDeprecationMetadataIssue, StylesheetLoadingIssue, FederatedAuthUserInfoRequestIssue, PropertyRuleIssue, SharedDictionaryIssue, ElementAccessibilityIssue, SRIMessageSignatureIssue, UnencodedDigestIssue, ConnectionAllowlistIssue, UserReidentificationIssue, PermissionElementIssue, PerformanceIssue, SelectivePermissionsInterventionIssue

EN
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.
Allowed Values: CookieIssue, MixedContentIssue, BlockedByResponseIssue, HeavyAdIssue, ContentSecurityPolicyIssue, SharedArrayBufferIssue, CorsIssue, AttributionReportingIssue, QuirksModeIssue, PartitioningBlobURLIssue, NavigatorUserAgentIssue, GenericIssue, DeprecationIssue, ClientHintIssue, FederatedAuthRequestIssue, BounceTrackingIssue, CookieDeprecationMetadataIssue, StylesheetLoadingIssue, FederatedAuthUserInfoRequestIssue, PropertyRuleIssue, SharedDictionaryIssue, ElementAccessibilityIssue, SRIMessageSignatureIssue, UnencodedDigestIssue, ConnectionAllowlistIssue, UserReidentificationIssue, PermissionElementIssue, PerformanceIssue, SelectivePermissionsInterventionIssue

返回类型:string


📌Audits.InspectorIssueDetails

此结构体包含一系列可选字段,这些字段带有特定于问题类型的附加信息。当添加新的问题代码时,请同时为此类型添加一个新的可选字段。

EN
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.

返回类型:object

属性必填标记类型描述原文
cookieIssueDetailsCookieIssueDetails
mixedContentIssueDetailsMixedContentIssueDetails
blockedByResponseIssueDetailsBlockedByResponseIssueDetails
heavyAdIssueDetailsHeavyAdIssueDetails
contentSecurityPolicyIssueDetailsContentSecurityPolicyIssueDetails
sharedArrayBufferIssueDetailsSharedArrayBufferIssueDetails
corsIssueDetailsCorsIssueDetails
attributionReportingIssueDetailsAttributionReportingIssueDetails
quirksModeIssueDetailsQuirksModeIssueDetails
partitioningBlobURLIssueDetailsPartitioningBlobURLIssueDetails
navigatorUserAgentIssueDetails❌️NavigatorUserAgentIssueDetails
genericIssueDetailsGenericIssueDetails
deprecationIssueDetailsDeprecationIssueDetails
clientHintIssueDetailsClientHintIssueDetails
federatedAuthRequestIssueDetailsFederatedAuthRequestIssueDetails
bounceTrackingIssueDetailsBounceTrackingIssueDetails
cookieDeprecationMetadataIssueDetailsCookieDeprecationMetadataIssueDetails
stylesheetLoadingIssueDetailsStylesheetLoadingIssueDetails
propertyRuleIssueDetailsPropertyRuleIssueDetails
federatedAuthUserInfoRequestIssueDetailsFederatedAuthUserInfoRequestIssueDetails
sharedDictionaryIssueDetailsSharedDictionaryIssueDetails
elementAccessibilityIssueDetailsElementAccessibilityIssueDetails
sriMessageSignatureIssueDetailsSRIMessageSignatureIssueDetails
unencodedDigestIssueDetailsUnencodedDigestIssueDetails
connectionAllowlistIssueDetailsConnectionAllowlistIssueDetails
userReidentificationIssueDetailsUserReidentificationIssueDetails
permissionElementIssueDetailsPermissionElementIssueDetails
performanceIssueDetailsPerformanceIssueDetails
selectivePermissionsInterventionIssueDetailsSelectivePermissionsInterventionIssueDetails

📌Audits.IssueId

DevTools 检查器问题的唯一标识符。允许其他实体(例如异常、CDP 消息、控制台消息等)引用该问题。

EN
A unique id for a DevTools inspector issue. Allows other entities (e.g. exceptions, CDP message, console messages, etc.) to reference an issue.

返回类型:string


📌Audits.MixedContentIssueDetails

返回类型:object

属性必填标记类型描述原文
resourceTypeMixedContentResourceType导致混合内容问题的资源类型(css、js、iframe、form等)。标记为可选是因为它从blink::mojom::RequestContextType映射而来,而后者将被network::mojom::RequestDestination取代
ENThe 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
resolutionStatus✔️MixedContentResolutionStatus混合内容问题的解决方式。
ENThe way the mixed content issue is being resolved.
insecureURL✔️string导致混合内容问题的非安全http网址。
ENThe unsafe http url causing the mixed content issue.
mainResourceURL✔️string导致调用不安全网址的url。
ENThe url responsible for the call to an unsafe url.
requestAffectedRequest混合内容请求。并非始终存在(例如,针对不安全的表单提交网址)。
ENThe mixed content request. Does not always exist (e.g. for unsafe form submission urls).
frameAffectedFrame可选,因为并非每个混合内容问题都必然与框架相关联。
ENOptional because not every mixed content issue is necessarily linked to a frame.

📌Audits.MixedContentResolutionStatus

允许的值:MixedContentBlockedMixedContentAutomaticallyUpgradedMixedContentWarning

EN
Allowed Values: MixedContentBlocked, MixedContentAutomaticallyUpgraded, MixedContentWarning

返回类型:string


📌Audits.MixedContentResourceType

允许的值:AttributionSrcAudioBeaconCSPReportDownloadEventSourceFaviconFontFormFrameImageImportJSONManifestPingPluginDataPluginResourcePrefetchResourceScriptServiceWorkerSharedWorkerSpeculationRulesStylesheetTrackVideoWorkerXMLHttpRequestXSLT

EN
Allowed Values: AttributionSrc, Audio, Beacon, CSPReport, Download, EventSource, Favicon, Font, Form, Frame, Image, Import, JSON, Manifest, Ping, PluginData, PluginResource, Prefetch, Resource, Script, ServiceWorker, SharedWorker, SpeculationRules, Stylesheet, Track, Video, Worker, XMLHttpRequest, XSLT

返回类型:string


📌Audits.PartitioningBlobURLInfo

允许的值:BlockedCrossPartitionFetchingEnforceNoopenerForNavigation

EN
Allowed Values: BlockedCrossPartitionFetching, EnforceNoopenerForNavigation

返回类型:string


📌Audits.PartitioningBlobURLIssueDetails

返回类型:object

属性必填标记类型描述原文
url✔️string加载失败的BlobURL。
ENThe BlobURL that failed to load.
partitioningBlobURLInfo✔️PartitioningBlobURLInfo关于''Partitioning Blob URL''问题的附加信息。
ENAdditional information about the Partitioning Blob URL issue.

📌Audits.PerformanceIssueDetails

性能问题的详细信息。

EN
Details for a performance issue.

返回类型:object

属性必填标记类型描述原文
performanceIssueType✔️PerformanceIssueType
sourceCodeLocationSourceCodeLocation

📌Audits.PerformanceIssueType

允许的值:DocumentCookie

EN
Allowed Values: DocumentCookie

返回类型:string


📌Audits.PermissionElementIssueDetails

此问题警示了关于<permission>元素的不当使用。

EN
This issue warns about improper usage of the <permission> element.

返回类型:object

属性必填标记类型描述原文
issueType✔️PermissionElementIssueType
typestringtype 属性的值。
ENThe value of the type attribute.
nodeIdDOM.BackendNodeId<permission> 元素的节点 ID。
ENThe node ID of the <permission> element.
isWarningboolean如果问题为警告,则为真;如果为错误,则为假。
ENTrue if the issue is a warning, false if it is an error.
permissionNamestring消息构造字段:用于引用特定权限名称的消息
ENFields for message construction: Used for messages that reference a specific permission name
occluderNodeInfostring用于关于''occlusion''的消息
ENUsed for messages about occlusion
occluderParentNodeInfostring用于关于遮挡器父级的信息
ENUsed for messages about occluder's parent
disableReasonstring用于有关激活禁用原因的消息
ENUsed for messages about activation disabled reason

📌Audits.PermissionElementIssueType

允许的值:InvalidTypeFencedFrameDisallowedCspFrameAncestorsMissingPermissionsPolicyBlockedPaddingRightUnsupportedPaddingBottomUnsupportedInsetBoxShadowUnsupportedRequestInProgressUntrustedEventRegistrationFailedTypeNotSupportedInvalidTypeActivationSecurityChecksFailedActivationDisabledGeolocationDeprecatedInvalidDisplayStyleNonOpaqueColorLowContrastFontSizeTooSmallFontSizeTooLargeInvalidSizeValue

EN
Allowed Values: InvalidType, FencedFrameDisallowed, CspFrameAncestorsMissing, PermissionsPolicyBlocked, PaddingRightUnsupported, PaddingBottomUnsupported, InsetBoxShadowUnsupported, RequestInProgress, UntrustedEvent, RegistrationFailed, TypeNotSupported, InvalidTypeActivation, SecurityChecksFailed, ActivationDisabled, GeolocationDeprecated, InvalidDisplayStyle, NonOpaqueColor, LowContrast, FontSizeTooSmall, FontSizeTooLarge, InvalidSizeValue

返回类型:string


📌Audits.PropertyRuleIssueDetails

此问题警示属性规则中的错误会导致属性注册被忽略。

EN
This issue warns about errors in property rules that lead to property registrations being ignored.

返回类型:object

属性必填标记类型描述原文
sourceCodeLocation✔️SourceCodeLocation属性规则的源代码位置。
ENSource code position of the property rule.
propertyRuleIssueReason✔️PropertyRuleIssueReason属性规则被丢弃的原因。
ENReason why the property rule was discarded.
propertyValuestring未能解析的属性规则属性的值
ENThe value of the property rule property that failed to parse

📌Audits.PropertyRuleIssueReason

允许的值:InvalidSyntaxInvalidInitialValueInvalidInheritsInvalidName

EN
Allowed Values: InvalidSyntax, InvalidInitialValue, InvalidInherits, InvalidName

返回类型:string


📌Audits.QuirksModeIssueDetails

关于文档处于怪异模式或有限怪异模式中影响页面布局的问题详情。

EN
Details for issues about documents in Quirks Mode or Limited Quirks Mode that affects page layouting.

返回类型:object

属性必填标记类型描述原文
isLimitedQuirksMode✔️boolean如果为false,则表示文档的模式为"quirks"而非"limited-quirks"。
ENIf false, it means the document's mode is "quirks" instead of "limited-quirks".
documentNodeId✔️DOM.BackendNodeId
url✔️string
frameId✔️Page.FrameId
loaderId✔️Network.LoaderId

📌Audits.SelectivePermissionsInterventionIssueDetails

该问题警告了通过选择性权限干预阻止了对隐私敏感API的调用。

EN
The issue warns about blocked calls to privacy sensitive APIs via the Selective Permissions Intervention.

返回类型:object

属性必填标记类型描述原文
apiName✔️string哪个API受到了干预。
ENWhich API was intervened on.
adAncestry✔️AdAncestry为什么使用API的广告脚本被视为广告。
ENWhy the ad script using the API is considered an ad.
stackTraceRuntime.StackTrace干预发生时的堆栈跟踪。
ENThe stack trace at the time of the intervention.

📌Audits.SharedArrayBufferIssueDetails

关于在非跨域隔离环境中实例化或传输共享数组缓冲区(SAB)所引发问题的详细说明。

EN
Details for a issue arising from an SAB being instantiated in, or transferred to a context that is not cross-origin isolated.

返回类型:object

属性必填标记类型描述原文
sourceCodeLocation✔️SourceCodeLocation
isWarning✔️boolean
type✔️SharedArrayBufferIssueType

📌Audits.SharedArrayBufferIssueType

允许的值:TransferIssueCreationIssue

EN
Allowed Values: TransferIssue, CreationIssue

返回类型:string


📌Audits.SharedDictionaryError

允许的值:UseErrorCrossOriginNoCorsRequestUseErrorDictionaryLoadFailureUseErrorMatchingDictionaryNotUsedUseErrorUnexpectedContentDictionaryHeaderWriteErrorCossOriginNoCorsRequestWriteErrorDisallowedBySettingsWriteErrorExpiredResponseWriteErrorFeatureDisabledWriteErrorInsufficientResourcesWriteErrorInvalidMatchFieldWriteErrorInvalidStructuredHeaderWriteErrorInvalidTTLFieldWriteErrorNavigationRequestWriteErrorNoMatchFieldWriteErrorNonIntegerTTLFieldWriteErrorNonListMatchDestFieldWriteErrorNonSecureContextWriteErrorNonStringIdFieldWriteErrorNonStringInMatchDestListWriteErrorNonStringMatchFieldWriteErrorNonTokenTypeFieldWriteErrorRequestAbortedWriteErrorShuttingDownWriteErrorTooLongIdFieldWriteErrorUnsupportedType

EN
Allowed Values: UseErrorCrossOriginNoCorsRequest, UseErrorDictionaryLoadFailure, UseErrorMatchingDictionaryNotUsed, UseErrorUnexpectedContentDictionaryHeader, WriteErrorCossOriginNoCorsRequest, WriteErrorDisallowedBySettings, WriteErrorExpiredResponse, WriteErrorFeatureDisabled, WriteErrorInsufficientResources, WriteErrorInvalidMatchField, WriteErrorInvalidStructuredHeader, WriteErrorInvalidTTLField, WriteErrorNavigationRequest, WriteErrorNoMatchField, WriteErrorNonIntegerTTLField, WriteErrorNonListMatchDestField, WriteErrorNonSecureContext, WriteErrorNonStringIdField, WriteErrorNonStringInMatchDestList, WriteErrorNonStringMatchField, WriteErrorNonTokenTypeField, WriteErrorRequestAborted, WriteErrorShuttingDown, WriteErrorTooLongIdField, WriteErrorUnsupportedType

返回类型:string


📌Audits.SharedDictionaryIssueDetails

返回类型:object

属性必填标记类型描述原文
sharedDictionaryError✔️SharedDictionaryError
request✔️AffectedRequest

📌Audits.SourceCodeLocation

返回类型:object

属性必填标记类型描述原文
scriptIdRuntime.ScriptId
url✔️string
lineNumber✔️integer
columnNumber✔️integer

📌Audits.SRIMessageSignatureError

允许的值:MissingSignatureHeaderMissingSignatureInputHeaderInvalidSignatureHeaderInvalidSignatureInputHeaderSignatureHeaderValueIsNotByteSequenceSignatureHeaderValueIsParameterizedSignatureHeaderValueIsIncorrectLengthSignatureInputHeaderMissingLabelSignatureInputHeaderValueNotInnerListSignatureInputHeaderValueMissingComponentsSignatureInputHeaderInvalidComponentTypeSignatureInputHeaderInvalidComponentNameSignatureInputHeaderInvalidHeaderComponentParameterSignatureInputHeaderInvalidDerivedComponentParameterSignatureInputHeaderKeyIdLengthSignatureInputHeaderInvalidParameterSignatureInputHeaderMissingRequiredParametersValidationFailedSignatureExpiredValidationFailedInvalidLengthValidationFailedSignatureMismatchValidationFailedIntegrityMismatch

EN
Allowed Values: MissingSignatureHeader, MissingSignatureInputHeader, InvalidSignatureHeader, InvalidSignatureInputHeader, SignatureHeaderValueIsNotByteSequence, SignatureHeaderValueIsParameterized, SignatureHeaderValueIsIncorrectLength, SignatureInputHeaderMissingLabel, SignatureInputHeaderValueNotInnerList, SignatureInputHeaderValueMissingComponents, SignatureInputHeaderInvalidComponentType, SignatureInputHeaderInvalidComponentName, SignatureInputHeaderInvalidHeaderComponentParameter, SignatureInputHeaderInvalidDerivedComponentParameter, SignatureInputHeaderKeyIdLength, SignatureInputHeaderInvalidParameter, SignatureInputHeaderMissingRequiredParameters, ValidationFailedSignatureExpired, ValidationFailedInvalidLength, ValidationFailedSignatureMismatch, ValidationFailedIntegrityMismatch

返回类型:string


📌Audits.SRIMessageSignatureIssueDetails

返回类型:object

属性必填标记类型描述原文
error✔️SRIMessageSignatureError
signatureBase✔️string
integrityAssertions✔️array[string]
request✔️AffectedRequest

📌Audits.StylesheetLoadingIssueDetails

当引用的样式表无法加载时,此问题会发出警告。

EN
This issue warns when a referenced stylesheet couldn't be loaded.

返回类型:object

属性必填标记类型描述原文
sourceCodeLocation✔️SourceCodeLocation引用失败样式表的源代码位置。
ENSource code position that referenced the failing stylesheet.
styleSheetLoadingIssueReason✔️StyleSheetLoadingIssueReason样式表无法加载的原因。
ENReason why the stylesheet couldn't be loaded.
failedRequestInfoFailedRequestInfo当失败是由于请求引起时,包含额外信息。
ENContains additional info when the failure was due to a request.

📌Audits.StyleSheetLoadingIssueReason

允许的值:LateImportRuleRequestFailed

EN
Allowed Values: LateImportRule, RequestFailed

返回类型:string


📌Audits.UnencodedDigestError

允许的值:MalformedDictionaryUnknownAlgorithmIncorrectDigestTypeIncorrectDigestLength

EN
Allowed Values: MalformedDictionary, UnknownAlgorithm, IncorrectDigestType, IncorrectDigestLength

返回类型:string


📌Audits.UnencodedDigestIssueDetails

返回类型:object

属性必填标记类型描述原文
error✔️UnencodedDigestError
request✔️AffectedRequest

📌Audits.UserReidentificationIssueDetails

此问题警示了可能被视为滥用以重新识别用户的API使用情况。

EN
This issue warns about uses of APIs that may be considered misuse to re-identify users.

返回类型:object

属性必填标记类型描述原文
type✔️UserReidentificationIssueType
requestAffectedRequest适用于''BlockedFrameNavigation''和BlockedSubresource问题类型。
ENApplies to BlockedFrameNavigation and BlockedSubresource issue types.
sourceCodeLocationSourceCodeLocation适用于''NoisedCanvasReadback''问题类型。
ENApplies to NoisedCanvasReadback issue type.

📌Audits.UserReidentificationIssueType

允许的值:BlockedFrameNavigationBlockedSubresourceNoisedCanvasReadback

EN
Allowed Values: BlockedFrameNavigation, BlockedSubresource, NoisedCanvasReadback

返回类型:string


📌Audits.NavigatorUserAgentIssueDetails❌️

返回类型:object

属性必填标记类型描述原文
url✔️string
locationSourceCodeLocation