chrome-devtools-mcp 0.10.0 → 0.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (329) hide show
  1. package/README.md +10 -0
  2. package/build/node_modules/chrome-devtools-frontend/front_end/core/common/Debouncer.js +2 -2
  3. package/build/node_modules/chrome-devtools-frontend/front_end/core/common/Gzip.js +1 -1
  4. package/build/node_modules/chrome-devtools-frontend/front_end/core/common/Revealer.js +5 -0
  5. package/build/node_modules/chrome-devtools-frontend/front_end/core/common/Settings.js +106 -98
  6. package/build/node_modules/chrome-devtools-frontend/front_end/core/common/Throttler.js +2 -2
  7. package/build/node_modules/chrome-devtools-frontend/front_end/core/common/common.js +1 -2
  8. package/build/node_modules/chrome-devtools-frontend/front_end/core/host/AidaClient.js +2 -2
  9. package/build/node_modules/chrome-devtools-frontend/front_end/core/host/DispatchHttpRequestClient.js +15 -3
  10. package/build/node_modules/chrome-devtools-frontend/front_end/core/host/GdpClient.js +4 -0
  11. package/build/node_modules/chrome-devtools-frontend/front_end/core/host/InspectorFrontendHost.js +10 -13
  12. package/build/node_modules/chrome-devtools-frontend/front_end/core/host/UserMetrics.js +3 -0
  13. package/build/node_modules/chrome-devtools-frontend/front_end/core/i18n/ByteUtilities.js +72 -0
  14. package/build/node_modules/chrome-devtools-frontend/front_end/core/i18n/DevToolsLocale.js +64 -0
  15. package/build/node_modules/chrome-devtools-frontend/front_end/core/i18n/NumberFormatter.js +67 -0
  16. package/build/node_modules/chrome-devtools-frontend/front_end/core/i18n/collect-ui-strings.js +73 -0
  17. package/build/node_modules/chrome-devtools-frontend/front_end/core/i18n/generate-locales-js.js +51 -0
  18. package/build/node_modules/chrome-devtools-frontend/front_end/core/i18n/i18n.js +9 -60
  19. package/build/node_modules/chrome-devtools-frontend/front_end/core/i18n/i18nImpl.js +135 -0
  20. package/build/node_modules/chrome-devtools-frontend/front_end/core/{common/QueryParamHandler.js → i18n/i18nTypes.js} +1 -1
  21. package/build/node_modules/chrome-devtools-frontend/front_end/core/i18n/locales.js +14 -0
  22. package/build/node_modules/chrome-devtools-frontend/front_end/core/i18n/time-utilities.js +148 -0
  23. package/build/node_modules/chrome-devtools-frontend/front_end/core/protocol_client/DevToolsCDPConnection.js +138 -0
  24. package/build/node_modules/chrome-devtools-frontend/front_end/core/protocol_client/InspectorBackend.js +19 -150
  25. package/build/node_modules/chrome-devtools-frontend/front_end/core/protocol_client/protocol_client.js +2 -2
  26. package/build/node_modules/chrome-devtools-frontend/front_end/core/root/DevToolsContext.js +50 -0
  27. package/build/node_modules/chrome-devtools-frontend/front_end/core/root/root.js +2 -1
  28. package/build/node_modules/chrome-devtools-frontend/front_end/core/sdk/CPUThrottlingManager.js +0 -3
  29. package/build/node_modules/chrome-devtools-frontend/front_end/core/sdk/CSSMatchedStyles.js +6 -7
  30. package/build/node_modules/chrome-devtools-frontend/front_end/core/sdk/CSSModel.js +1 -1
  31. package/build/node_modules/chrome-devtools-frontend/front_end/core/sdk/CSSRule.js +14 -4
  32. package/build/node_modules/chrome-devtools-frontend/front_end/core/sdk/ChildTargetManager.js +1 -2
  33. package/build/node_modules/chrome-devtools-frontend/front_end/core/sdk/DebuggerModel.js +1 -16
  34. package/build/node_modules/chrome-devtools-frontend/front_end/core/sdk/IOModel.js +1 -4
  35. package/build/node_modules/chrome-devtools-frontend/front_end/core/sdk/NetworkManager.js +18 -9
  36. package/build/node_modules/chrome-devtools-frontend/front_end/core/sdk/NetworkRequest.js +0 -8
  37. package/build/node_modules/chrome-devtools-frontend/front_end/core/sdk/RemoteObject.js +3 -0
  38. package/build/node_modules/chrome-devtools-frontend/front_end/core/sdk/ServerSentEventsProtocol.js +3 -0
  39. package/build/node_modules/chrome-devtools-frontend/front_end/core/sdk/Target.js +1 -3
  40. package/build/node_modules/chrome-devtools-frontend/front_end/core/sdk/TargetManager.js +4 -5
  41. package/build/node_modules/chrome-devtools-frontend/front_end/core/sdk/sdk-meta.js +0 -30
  42. package/build/node_modules/chrome-devtools-frontend/front_end/foundation/Universe.js +30 -0
  43. package/build/node_modules/chrome-devtools-frontend/front_end/foundation/foundation.js +5 -0
  44. package/build/node_modules/chrome-devtools-frontend/front_end/generated/Deprecation.js +8 -14
  45. package/build/node_modules/chrome-devtools-frontend/front_end/generated/InspectorBackendCommands.js +9 -6
  46. package/build/node_modules/chrome-devtools-frontend/front_end/generated/SupportedCSSProperties.js +62 -8
  47. package/build/node_modules/chrome-devtools-frontend/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.js +86 -51
  48. package/build/node_modules/chrome-devtools-frontend/front_end/models/ai_assistance/performance/AIQueries.js +46 -2
  49. package/build/node_modules/chrome-devtools-frontend/front_end/models/bindings/CSSWorkspaceBinding.js +6 -5
  50. package/build/node_modules/chrome-devtools-frontend/front_end/models/bindings/CompilerScriptMapping.js +3 -1
  51. package/build/node_modules/chrome-devtools-frontend/front_end/models/bindings/DebuggerWorkspaceBinding.js +17 -14
  52. package/build/node_modules/chrome-devtools-frontend/front_end/models/bindings/ResourceMapping.js +46 -14
  53. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/AttributionReportingIssue.js +202 -0
  54. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/BounceTrackingIssue.js +57 -0
  55. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/CheckFormsIssuesTrigger.js +31 -0
  56. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/ClientHintIssue.js +76 -0
  57. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/ContentSecurityPolicyIssue.js +140 -0
  58. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/ContrastCheckTrigger.js +59 -0
  59. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/CookieDeprecationMetadataIssue.js +64 -0
  60. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/CookieIssue.js +513 -0
  61. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/CorsIssue.js +251 -0
  62. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/CrossOriginEmbedderPolicyIssue.js +112 -0
  63. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/DeprecationIssue.js +95 -0
  64. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/ElementAccessibilityIssue.js +100 -0
  65. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/FederatedAuthRequestIssue.js +236 -0
  66. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/FederatedAuthUserInfoRequestIssue.js +146 -0
  67. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/GenericIssue.js +197 -0
  68. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/HeavyAdIssue.js +57 -0
  69. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/Issue.js +147 -0
  70. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/IssueAggregator.js +309 -0
  71. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/IssueResolver.js +40 -0
  72. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/IssuesManager.js +416 -0
  73. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/IssuesManagerEvents.js +4 -0
  74. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/LowTextContrastIssue.js +53 -0
  75. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/MarkdownIssueDescription.js +104 -0
  76. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/MixedContentIssue.js +59 -0
  77. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/PartitioningBlobURLIssue.js +63 -0
  78. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/PropertyRuleIssue.js +63 -0
  79. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/QuirksModeIssue.js +53 -0
  80. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/RelatedIssue.js +70 -0
  81. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/SRIMessageSignatureIssue.js +91 -0
  82. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/SharedArrayBufferIssue.js +54 -0
  83. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/SharedDictionaryIssue.js +297 -0
  84. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/SourceFrameIssuesManager.js +81 -0
  85. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/StylesheetLoadingIssue.js +63 -0
  86. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/UnencodedDigestIssue.js +67 -0
  87. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/CoepCoopSandboxedIframeCannotNavigateToCoopPage.md +4 -0
  88. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/CoepCorpNotSameOrigin.md +8 -0
  89. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/CoepCorpNotSameOriginAfterDefaultedToSameOriginByCoep.md +18 -0
  90. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/CoepCorpNotSameSite.md +7 -0
  91. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/CoepFrameResourceNeedsCoepHeader.md +10 -0
  92. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/CompatibilityModeQuirks.md +5 -0
  93. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/CookieAttributeValueExceedsMaxSize.md +5 -0
  94. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/LowTextContrast.md +5 -0
  95. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/SameSiteExcludeContextDowngradeRead.md +8 -0
  96. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/SameSiteExcludeContextDowngradeSet.md +8 -0
  97. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/SameSiteExcludeNavigationContextDowngrade.md +8 -0
  98. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/SameSiteInvalidSameParty.md +8 -0
  99. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/SameSiteNoneInsecureErrorRead.md +8 -0
  100. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/SameSiteNoneInsecureErrorSet.md +8 -0
  101. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/SameSiteNoneInsecureWarnRead.md +8 -0
  102. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/SameSiteNoneInsecureWarnSet.md +8 -0
  103. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/SameSiteSamePartyCrossPartyContextSet.md +10 -0
  104. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/SameSiteUnspecifiedLaxAllowUnsafeRead.md +9 -0
  105. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/SameSiteUnspecifiedLaxAllowUnsafeSet.md +9 -0
  106. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/SameSiteWarnCrossDowngradeRead.md +8 -0
  107. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/SameSiteWarnCrossDowngradeSet.md +8 -0
  108. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/SameSiteWarnStrictLaxDowngradeStrict.md +8 -0
  109. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/arInsecureContext.md +7 -0
  110. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/arInvalidInfoHeader.md +5 -0
  111. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/arInvalidRegisterOsSourceHeader.md +5 -0
  112. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/arInvalidRegisterOsTriggerHeader.md +5 -0
  113. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/arInvalidRegisterSourceHeader.md +5 -0
  114. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/arInvalidRegisterTriggerHeader.md +5 -0
  115. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/arNavigationRegistrationUniqueScopeAlreadySet.md +5 -0
  116. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/arNavigationRegistrationWithoutTransientUserActivation.md +6 -0
  117. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/arNoRegisterOsSourceHeader.md +5 -0
  118. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/arNoRegisterOsTriggerHeader.md +5 -0
  119. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/arNoRegisterSourceHeader.md +5 -0
  120. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/arNoRegisterTriggerHeader.md +5 -0
  121. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/arNoWebOrOsSupport.md +4 -0
  122. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/arOsSourceIgnored.md +18 -0
  123. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/arOsTriggerIgnored.md +19 -0
  124. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/arPermissionPolicyDisabled.md +8 -0
  125. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/arSourceAndTriggerHeaders.md +9 -0
  126. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/arSourceIgnored.md +13 -0
  127. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/arTriggerIgnored.md +12 -0
  128. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/arUntrustworthyReportingOrigin.md +10 -0
  129. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/arWebAndOsHeaders.md +11 -0
  130. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/bounceTrackingMitigations.md +3 -0
  131. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/clientHintMetaTagAllowListInvalidOrigin.md +4 -0
  132. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/clientHintMetaTagModifiedHTML.md +4 -0
  133. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/cookieCrossSiteRedirectDowngrade.md +12 -0
  134. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/cookieExcludeBlockedWithinRelatedWebsiteSet.md +4 -0
  135. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/cookieExcludeDomainNonAscii.md +11 -0
  136. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/cookieExcludePortMismatch.md +8 -0
  137. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/cookieExcludeSchemeMismatch.md +7 -0
  138. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/cookieExcludeThirdPartyPhaseoutRead.md +6 -0
  139. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/cookieExcludeThirdPartyPhaseoutSet.md +6 -0
  140. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/cookieWarnDomainNonAscii.md +11 -0
  141. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/cookieWarnMetadataGrantRead.md +4 -0
  142. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/cookieWarnMetadataGrantSet.md +4 -0
  143. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/cookieWarnThirdPartyPhaseoutRead.md +6 -0
  144. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/cookieWarnThirdPartyPhaseoutSet.md +6 -0
  145. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/corsAllowCredentialsRequired.md +6 -0
  146. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/corsDisabledScheme.md +7 -0
  147. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/corsDisallowedByMode.md +7 -0
  148. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/corsHeaderDisallowedByPreflightResponse.md +5 -0
  149. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/corsInsecurePrivateNetwork.md +10 -0
  150. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/corsInvalidHeaderValues.md +7 -0
  151. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/corsLocalNetworkAccessPermissionDenied.md +19 -0
  152. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/corsMethodDisallowedByPreflightResponse.md +5 -0
  153. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/corsNoCorsRedirectModeNotFollow.md +5 -0
  154. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/corsOriginMismatch.md +6 -0
  155. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/corsPreflightAllowPrivateNetworkError.md +10 -0
  156. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/corsPreflightResponseInvalid.md +5 -0
  157. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/corsPrivateNetworkPermissionDenied.md +10 -0
  158. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/corsRedirectContainsCredentials.md +5 -0
  159. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/corsWildcardOriginNotAllowed.md +8 -0
  160. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/cspEvalViolation.md +9 -0
  161. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/cspInlineViolation.md +10 -0
  162. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/cspTrustedTypesPolicyViolation.md +5 -0
  163. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/cspTrustedTypesSinkViolation.md +8 -0
  164. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/cspURLViolation.md +10 -0
  165. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/deprecation.md +3 -0
  166. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/federatedAuthRequestAccountsHttpNotFound.md +1 -0
  167. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/federatedAuthRequestAccountsInvalidResponse.md +1 -0
  168. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/federatedAuthRequestAccountsNoResponse.md +1 -0
  169. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/federatedAuthRequestApprovalDeclined.md +1 -0
  170. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/federatedAuthRequestCanceled.md +1 -0
  171. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/federatedAuthRequestClientMetadataHttpNotFound.md +1 -0
  172. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/federatedAuthRequestClientMetadataInvalidResponse.md +1 -0
  173. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/federatedAuthRequestClientMetadataNoResponse.md +1 -0
  174. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/federatedAuthRequestErrorFetchingSignin.md +1 -0
  175. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/federatedAuthRequestErrorIdToken.md +1 -0
  176. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/federatedAuthRequestIdTokenHttpNotFound.md +1 -0
  177. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/federatedAuthRequestIdTokenInvalidRequest.md +1 -0
  178. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/federatedAuthRequestIdTokenInvalidResponse.md +1 -0
  179. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/federatedAuthRequestIdTokenNoResponse.md +1 -0
  180. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/federatedAuthRequestInvalidSigninResponse.md +1 -0
  181. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/federatedAuthRequestManifestHttpNotFound.md +1 -0
  182. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/federatedAuthRequestManifestInvalidResponse.md +1 -0
  183. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/federatedAuthRequestManifestNoResponse.md +1 -0
  184. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/federatedAuthRequestTooManyRequests.md +1 -0
  185. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/federatedAuthUserInfoRequestInvalidAccountsResponse.md +1 -0
  186. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/federatedAuthUserInfoRequestInvalidConfigOrWellKnown.md +1 -0
  187. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/federatedAuthUserInfoRequestNoAccountSharingPermission.md +1 -0
  188. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/federatedAuthUserInfoRequestNoApiPermission.md +1 -0
  189. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/federatedAuthUserInfoRequestNoReturningUserFromFetchedAccounts.md +1 -0
  190. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotIframe.md +1 -0
  191. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotPotentiallyTrustworthy.md +1 -0
  192. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotSameOrigin.md +1 -0
  193. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotSignedInWithIdp.md +1 -0
  194. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/fetchingPartitionedBlobURL.md +7 -0
  195. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/genericFormAriaLabelledByToNonExistingId.md +8 -0
  196. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/genericFormAutocompleteAttributeEmptyError.md +5 -0
  197. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/genericFormDuplicateIdForInputError.md +5 -0
  198. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/genericFormEmptyIdAndNameAttributesForInputError.md +5 -0
  199. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/genericFormInputAssignedAutocompleteValueToIdOrNameAttributeError.md +5 -0
  200. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/genericFormInputHasWrongButWellIntendedAutocompleteValueError.md +5 -0
  201. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/genericFormInputWithNoLabelError.md +5 -0
  202. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/genericFormLabelForMatchesNonExistingIdError.md +5 -0
  203. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/genericFormLabelForNameError.md +5 -0
  204. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/genericFormLabelHasNeitherForNorNestedInput.md +5 -0
  205. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/genericResponseWasBlockedByORB.md +4 -0
  206. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/heavyAd.md +10 -0
  207. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/mixedContent.md +5 -0
  208. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/navigatingPartitionedBlobURL.md +5 -0
  209. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/placeholderDescriptionForInvisibleIssues.md +3 -0
  210. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/propertyRuleInvalidNameIssue.md +3 -0
  211. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/propertyRuleIssue.md +7 -0
  212. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/selectElementAccessibilityDisallowedOptGroupChild.md +7 -0
  213. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/selectElementAccessibilityDisallowedSelectChild.md +7 -0
  214. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/selectElementAccessibilityInteractiveContentAttributesSelectDescendant.md +3 -0
  215. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/selectElementAccessibilityInteractiveContentLegendChild.md +3 -0
  216. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/selectElementAccessibilityInteractiveContentOptionChild.md +3 -0
  217. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/selectElementAccessibilityNonPhrasingContentOptionChild.md +3 -0
  218. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sharedArrayBuffer.md +7 -0
  219. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sharedDictionaryUseErrorCrossOriginNoCorsRequest.md +1 -0
  220. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sharedDictionaryUseErrorDictionaryLoadFailure.md +3 -0
  221. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sharedDictionaryUseErrorMatchingDictionaryNotUsed.md +3 -0
  222. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sharedDictionaryUseErrorUnexpectedContentDictionaryHeader.md +1 -0
  223. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sharedDictionaryWriteErrorCossOriginNoCorsRequest.md +1 -0
  224. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sharedDictionaryWriteErrorDisallowedBySettings.md +1 -0
  225. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sharedDictionaryWriteErrorExpiredResponse.md +3 -0
  226. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sharedDictionaryWriteErrorFeatureDisabled.md +3 -0
  227. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sharedDictionaryWriteErrorInsufficientResources.md +1 -0
  228. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sharedDictionaryWriteErrorInvalidMatchField.md +1 -0
  229. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sharedDictionaryWriteErrorInvalidStructuredHeader.md +1 -0
  230. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sharedDictionaryWriteErrorInvalidTTLField.md +1 -0
  231. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sharedDictionaryWriteErrorNavigationRequest.md +3 -0
  232. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sharedDictionaryWriteErrorNoMatchField.md +1 -0
  233. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonIntegerTTLField.md +1 -0
  234. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonListMatchDestField.md +1 -0
  235. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonSecureContext.md +3 -0
  236. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonStringIdField.md +1 -0
  237. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonStringInMatchDestList.md +1 -0
  238. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonStringMatchField.md +1 -0
  239. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonTokenTypeField.md +1 -0
  240. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sharedDictionaryWriteErrorRequestAborted.md +1 -0
  241. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sharedDictionaryWriteErrorShuttingDown.md +1 -0
  242. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sharedDictionaryWriteErrorTooLongIdField.md +3 -0
  243. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sharedDictionaryWriteErrorUnsupportedType.md +3 -0
  244. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sriInvalidSignatureHeader.md +14 -0
  245. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sriInvalidSignatureInputHeader.md +15 -0
  246. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sriMissingSignatureHeader.md +8 -0
  247. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sriMissingSignatureInputHeader.md +7 -0
  248. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sriSignatureHeaderValueIsIncorrectLength.md +11 -0
  249. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sriSignatureHeaderValueIsNotByteSequence.md +14 -0
  250. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sriSignatureHeaderValueIsParameterized.md +15 -0
  251. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidComponentName.md +8 -0
  252. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidComponentType.md +13 -0
  253. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidDerivedComponentParameter.md +4 -0
  254. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidHeaderComponentParameter.md +5 -0
  255. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidParameter.md +11 -0
  256. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sriSignatureInputHeaderKeyIdLength.md +12 -0
  257. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sriSignatureInputHeaderMissingLabel.md +6 -0
  258. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sriSignatureInputHeaderMissingRequiredParameters.md +8 -0
  259. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sriSignatureInputHeaderValueMissingComponents.md +11 -0
  260. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sriSignatureInputHeaderValueNotInnerList.md +11 -0
  261. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sriValidationFailedIntegrityMismatch.md +10 -0
  262. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sriValidationFailedInvalidLength.md +5 -0
  263. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sriValidationFailedSignatureExpired.md +6 -0
  264. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/sriValidationFailedSignatureMismatch.md +11 -0
  265. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/stylesheetLateImport.md +4 -0
  266. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/stylesheetRequestFailed.md +3 -0
  267. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/summaryElementAccessibilityInteractiveContentSummaryDescendant.md +3 -0
  268. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/unencodedDigestIncorrectDigestLength.md +12 -0
  269. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/unencodedDigestIncorrectDigestType.md +17 -0
  270. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/unencodedDigestMalformedDictionary.md +14 -0
  271. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions/unencodedDigestUnknownAlgorithm.md +15 -0
  272. package/build/node_modules/chrome-devtools-frontend/front_end/models/issues_manager/issues_manager.js +35 -0
  273. package/build/node_modules/chrome-devtools-frontend/front_end/models/trace/Processor.js +4 -4
  274. package/build/node_modules/chrome-devtools-frontend/front_end/models/trace/Styles.js +1 -1
  275. package/build/node_modules/chrome-devtools-frontend/front_end/models/trace/handlers/SamplesHandler.js +56 -6
  276. package/build/node_modules/chrome-devtools-frontend/front_end/models/trace/handlers/ScriptsHandler.js +24 -0
  277. package/build/node_modules/chrome-devtools-frontend/front_end/models/trace/types/TraceEvents.js +1 -0
  278. package/build/node_modules/chrome-devtools-frontend/front_end/models/workspace/IgnoreListManager.js +40 -47
  279. package/build/node_modules/chrome-devtools-frontend/front_end/models/workspace/WorkspaceImpl.js +5 -8
  280. package/build/node_modules/chrome-devtools-frontend/front_end/models/workspace/workspace-meta.js +34 -0
  281. package/build/node_modules/chrome-devtools-frontend/front_end/third_party/i18n/LICENSE +202 -0
  282. package/build/node_modules/chrome-devtools-frontend/front_end/third_party/i18n/i18n-impl.js +46 -0
  283. package/build/node_modules/chrome-devtools-frontend/front_end/third_party/i18n/i18n.js +6 -0
  284. package/build/node_modules/chrome-devtools-frontend/front_end/third_party/i18n/localized-string-set.js +122 -0
  285. package/build/node_modules/chrome-devtools-frontend/front_end/third_party/intl-messageformat/LICENSE +33 -0
  286. package/build/node_modules/chrome-devtools-frontend/front_end/third_party/intl-messageformat/intl-messageformat.js +5 -0
  287. package/build/node_modules/chrome-devtools-frontend/front_end/third_party/intl-messageformat/package/index.js +13 -0
  288. package/build/node_modules/chrome-devtools-frontend/front_end/third_party/intl-messageformat/package/intl-messageformat.esm.js +1725 -0
  289. package/build/node_modules/chrome-devtools-frontend/front_end/third_party/intl-messageformat/package/intl-messageformat.iife.js +1840 -0
  290. package/build/node_modules/chrome-devtools-frontend/front_end/third_party/intl-messageformat/package/lib/index.js +10 -0
  291. package/build/node_modules/chrome-devtools-frontend/front_end/third_party/intl-messageformat/package/lib/src/core.js +233 -0
  292. package/build/node_modules/chrome-devtools-frontend/front_end/third_party/intl-messageformat/package/lib/src/error.js +48 -0
  293. package/build/node_modules/chrome-devtools-frontend/front_end/third_party/intl-messageformat/package/lib/src/formatters.js +177 -0
  294. package/build/node_modules/chrome-devtools-frontend/front_end/third_party/intl-messageformat/package/src/core.js +236 -0
  295. package/build/node_modules/chrome-devtools-frontend/front_end/third_party/intl-messageformat/package/src/error.js +51 -0
  296. package/build/node_modules/chrome-devtools-frontend/front_end/third_party/intl-messageformat/package/src/formatters.js +182 -0
  297. package/build/node_modules/chrome-devtools-frontend/front_end/third_party/marked/LICENSE +39 -0
  298. package/build/node_modules/chrome-devtools-frontend/front_end/third_party/marked/marked.js +2 -0
  299. package/build/node_modules/chrome-devtools-frontend/front_end/third_party/marked/package/bin/main.js +255 -0
  300. package/build/node_modules/chrome-devtools-frontend/front_end/third_party/marked/package/bin/marked.js +11 -0
  301. package/build/node_modules/chrome-devtools-frontend/front_end/third_party/marked/package/lib/marked.esm.js +2695 -0
  302. package/build/node_modules/chrome-devtools-frontend/front_end/third_party/marked/package/lib/marked.js +2233 -0
  303. package/build/node_modules/chrome-devtools-frontend/front_end/third_party/marked/package/lib/marked.umd.js +2719 -0
  304. package/build/node_modules/chrome-devtools-frontend/front_end/third_party/marked/package/src/Lexer.js +453 -0
  305. package/build/node_modules/chrome-devtools-frontend/front_end/third_party/marked/package/src/Parser.js +233 -0
  306. package/build/node_modules/chrome-devtools-frontend/front_end/third_party/marked/package/src/Renderer.js +137 -0
  307. package/build/node_modules/chrome-devtools-frontend/front_end/third_party/marked/package/src/Slugger.js +46 -0
  308. package/build/node_modules/chrome-devtools-frontend/front_end/third_party/marked/package/src/TextRenderer.js +34 -0
  309. package/build/node_modules/chrome-devtools-frontend/front_end/third_party/marked/package/src/Tokenizer.js +683 -0
  310. package/build/node_modules/chrome-devtools-frontend/front_end/third_party/marked/package/src/defaults.js +27 -0
  311. package/build/node_modules/chrome-devtools-frontend/front_end/third_party/marked/package/src/helpers.js +240 -0
  312. package/build/node_modules/chrome-devtools-frontend/front_end/third_party/marked/package/src/marked.js +318 -0
  313. package/build/node_modules/chrome-devtools-frontend/front_end/third_party/marked/package/src/rules.js +243 -0
  314. package/build/node_modules/chrome-devtools-frontend/mcp/mcp.js +7 -0
  315. package/build/src/DevToolsConnectionAdapter.js +1 -2
  316. package/build/src/DevtoolsUtils.js +20 -0
  317. package/build/src/McpContext.js +25 -16
  318. package/build/src/McpResponse.js +39 -3
  319. package/build/src/PageCollector.js +131 -16
  320. package/build/src/features.js +14 -0
  321. package/build/src/formatters/consoleFormatter.js +3 -0
  322. package/build/src/issue-descriptions.js +35 -0
  323. package/build/src/main.js +6 -1
  324. package/build/src/third_party/THIRD_PARTY_NOTICES +3 -3
  325. package/build/src/third_party/index.js +729 -676
  326. package/build/src/tools/console.js +5 -0
  327. package/build/src/tools/pages.js +1 -1
  328. package/package.json +6 -6
  329. package/build/node_modules/chrome-devtools-frontend/front_end/core/protocol_client/NodeURL.js +0 -31
@@ -0,0 +1,297 @@
1
+ // Copyright 2023 The Chromium Authors
2
+ // Use of this source code is governed by a BSD-style license that can be
3
+ // found in the LICENSE file.
4
+ import * as i18n from '../../core/i18n/i18n.js';
5
+ import { Issue } from './Issue.js';
6
+ import { resolveLazyDescription, } from './MarkdownIssueDescription.js';
7
+ const UIStrings = {
8
+ /**
9
+ * @description Title for Compression Dictionary Transport specification url link
10
+ */
11
+ compressionDictionaryTransport: 'Compression Dictionary Transport',
12
+ };
13
+ const str_ = i18n.i18n.registerUIStrings('models/issues_manager/SharedDictionaryIssue.ts', UIStrings);
14
+ const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
15
+ function getIssueCode(details) {
16
+ switch (details.sharedDictionaryError) {
17
+ case "UseErrorCrossOriginNoCorsRequest" /* Protocol.Audits.SharedDictionaryError.UseErrorCrossOriginNoCorsRequest */:
18
+ return "SharedDictionaryIssue::UseErrorCrossOriginNoCorsRequest" /* IssueCode.USE_ERROR_CROSS_ORIGIN_NO_CORS_REQUEST */;
19
+ case "UseErrorDictionaryLoadFailure" /* Protocol.Audits.SharedDictionaryError.UseErrorDictionaryLoadFailure */:
20
+ return "SharedDictionaryIssue::UseErrorDictionaryLoadFailure" /* IssueCode.USE_ERROR_DICTIONARY_LOAD_FAILURE */;
21
+ case "UseErrorMatchingDictionaryNotUsed" /* Protocol.Audits.SharedDictionaryError.UseErrorMatchingDictionaryNotUsed */:
22
+ return "SharedDictionaryIssue::UseErrorMatchingDictionaryNotUsed" /* IssueCode.USE_ERROR_MATCHING_DICTIONARY_NOT_USED */;
23
+ case "UseErrorUnexpectedContentDictionaryHeader" /* Protocol.Audits.SharedDictionaryError.UseErrorUnexpectedContentDictionaryHeader */:
24
+ return "SharedDictionaryIssue::UseErrorUnexpectedContentDictionaryHeader" /* IssueCode.USE_ERROR_UNEXPECTED_CONTENT_DICTIONARY_HEADER */;
25
+ case "WriteErrorCossOriginNoCorsRequest" /* Protocol.Audits.SharedDictionaryError.WriteErrorCossOriginNoCorsRequest */:
26
+ return "SharedDictionaryIssue::WriteErrorCossOriginNoCorsRequest" /* IssueCode.WRITE_ERROR_CROSS_ORIGIN_NO_CORS_REQUEST */;
27
+ case "WriteErrorDisallowedBySettings" /* Protocol.Audits.SharedDictionaryError.WriteErrorDisallowedBySettings */:
28
+ return "SharedDictionaryIssue::WriteErrorDisallowedBySettings" /* IssueCode.WRITE_ERROR_DISALLOWED_BY_SETTINGS */;
29
+ case "WriteErrorExpiredResponse" /* Protocol.Audits.SharedDictionaryError.WriteErrorExpiredResponse */:
30
+ return "SharedDictionaryIssue::WriteErrorExpiredResponse" /* IssueCode.WRITE_ERROR_EXPIRED_RESPONSE */;
31
+ case "WriteErrorFeatureDisabled" /* Protocol.Audits.SharedDictionaryError.WriteErrorFeatureDisabled */:
32
+ return "SharedDictionaryIssue::WriteErrorFeatureDisabled" /* IssueCode.WRITE_ERROR_FEATURE_DISABLED */;
33
+ case "WriteErrorInsufficientResources" /* Protocol.Audits.SharedDictionaryError.WriteErrorInsufficientResources */:
34
+ return "SharedDictionaryIssue::WriteErrorInsufficientResources" /* IssueCode.WRITE_ERROR_INSUFFICIENT_RESOURCES */;
35
+ case "WriteErrorInvalidMatchField" /* Protocol.Audits.SharedDictionaryError.WriteErrorInvalidMatchField */:
36
+ return "SharedDictionaryIssue::WriteErrorInvalidMatchField" /* IssueCode.WRITE_ERROR_INVALID_MATCH_FIELD */;
37
+ case "WriteErrorInvalidStructuredHeader" /* Protocol.Audits.SharedDictionaryError.WriteErrorInvalidStructuredHeader */:
38
+ return "SharedDictionaryIssue::WriteErrorInvalidStructuredHeader" /* IssueCode.WRITE_ERROR_INVALID_STRUCTURED_HEADER */;
39
+ case "WriteErrorInvalidTTLField" /* Protocol.Audits.SharedDictionaryError.WriteErrorInvalidTTLField */:
40
+ return "SharedDictionaryIssue::WriteErrorInvalidTTLField" /* IssueCode.WRITE_ERROR_INVALID_TTL_FIELD */;
41
+ case "WriteErrorNavigationRequest" /* Protocol.Audits.SharedDictionaryError.WriteErrorNavigationRequest */:
42
+ return "SharedDictionaryIssue::WriteErrorNavigationRequest" /* IssueCode.WRITE_ERROR_NAVIGATION_REQUEST */;
43
+ case "WriteErrorNoMatchField" /* Protocol.Audits.SharedDictionaryError.WriteErrorNoMatchField */:
44
+ return "SharedDictionaryIssue::WriteErrorNoMatchField" /* IssueCode.WRITE_ERROR_NO_MATCH_FIELD */;
45
+ case "WriteErrorNonIntegerTTLField" /* Protocol.Audits.SharedDictionaryError.WriteErrorNonIntegerTTLField */:
46
+ return "SharedDictionaryIssue::WriteErrorNonIntegerTTLField" /* IssueCode.WRITE_ERROR_NON_INTEGER_TTL_FIELD */;
47
+ case "WriteErrorNonListMatchDestField" /* Protocol.Audits.SharedDictionaryError.WriteErrorNonListMatchDestField */:
48
+ return "SharedDictionaryIssue::WriteErrorNonListMatchDestField" /* IssueCode.WRITE_ERROR_NON_LIST_MATCH_DEST_FIELD */;
49
+ case "WriteErrorNonSecureContext" /* Protocol.Audits.SharedDictionaryError.WriteErrorNonSecureContext */:
50
+ return "SharedDictionaryIssue::WriteErrorNonSecureContext" /* IssueCode.WRITE_ERROR_NON_SECURE_CONTEXT */;
51
+ case "WriteErrorNonStringIdField" /* Protocol.Audits.SharedDictionaryError.WriteErrorNonStringIdField */:
52
+ return "SharedDictionaryIssue::WriteErrorNonStringIdField" /* IssueCode.WRITE_ERROR_NON_STRING_ID_FIELD */;
53
+ case "WriteErrorNonStringInMatchDestList" /* Protocol.Audits.SharedDictionaryError.WriteErrorNonStringInMatchDestList */:
54
+ return "SharedDictionaryIssue::WriteErrorNonStringInMatchDestList" /* IssueCode.WRITE_ERROR_NON_STRING_IN_MATCH_DEST_LIST */;
55
+ case "WriteErrorNonStringMatchField" /* Protocol.Audits.SharedDictionaryError.WriteErrorNonStringMatchField */:
56
+ return "SharedDictionaryIssue::WriteErrorNonStringMatchField" /* IssueCode.WRITE_ERROR_NON_STRING_MATCH_FIELD */;
57
+ case "WriteErrorNonTokenTypeField" /* Protocol.Audits.SharedDictionaryError.WriteErrorNonTokenTypeField */:
58
+ return "SharedDictionaryIssue::WriteErrorNonTokenTypeField" /* IssueCode.WRITE_ERROR_NON_TOKEN_TYPE_FIELD */;
59
+ case "WriteErrorRequestAborted" /* Protocol.Audits.SharedDictionaryError.WriteErrorRequestAborted */:
60
+ return "SharedDictionaryIssue::WriteErrorRequestAborted" /* IssueCode.WRITE_ERROR_REQUEST_ABORTED */;
61
+ case "WriteErrorShuttingDown" /* Protocol.Audits.SharedDictionaryError.WriteErrorShuttingDown */:
62
+ return "SharedDictionaryIssue::WriteErrorShuttingDown" /* IssueCode.WRITE_ERROR_SHUTTING_DOWN */;
63
+ case "WriteErrorTooLongIdField" /* Protocol.Audits.SharedDictionaryError.WriteErrorTooLongIdField */:
64
+ return "SharedDictionaryIssue::WriteErrorTooLongIdField" /* IssueCode.WRITE_ERROR_TOO_LONG_ID_FIELD */;
65
+ case "WriteErrorUnsupportedType" /* Protocol.Audits.SharedDictionaryError.WriteErrorUnsupportedType */:
66
+ return "SharedDictionaryIssue::WriteErrorUnsupportedType" /* IssueCode.WRITE_ERROR_UNSUPPORTED_TYPE */;
67
+ default:
68
+ return "SharedDictionaryIssue::WriteErrorUnknown" /* IssueCode.UNKNOWN */;
69
+ }
70
+ }
71
+ export class SharedDictionaryIssue extends Issue {
72
+ #issueDetails;
73
+ constructor(issueDetails, issuesModel) {
74
+ super({
75
+ code: getIssueCode(issueDetails),
76
+ umaCode: [
77
+ "SharedDictionaryIssue" /* Protocol.Audits.InspectorIssueCode.SharedDictionaryIssue */,
78
+ issueDetails.sharedDictionaryError,
79
+ ].join('::'),
80
+ }, issuesModel);
81
+ this.#issueDetails = issueDetails;
82
+ }
83
+ requests() {
84
+ if (this.#issueDetails.request) {
85
+ return [this.#issueDetails.request];
86
+ }
87
+ return [];
88
+ }
89
+ getCategory() {
90
+ return "Other" /* IssueCategory.OTHER */;
91
+ }
92
+ details() {
93
+ return this.#issueDetails;
94
+ }
95
+ getDescription() {
96
+ const description = issueDescriptions.get(this.#issueDetails.sharedDictionaryError);
97
+ if (!description) {
98
+ return null;
99
+ }
100
+ return resolveLazyDescription(description);
101
+ }
102
+ primaryKey() {
103
+ return JSON.stringify(this.#issueDetails);
104
+ }
105
+ getKind() {
106
+ return "PageError" /* IssueKind.PAGE_ERROR */;
107
+ }
108
+ static fromInspectorIssue(issuesModel, inspectorIssue) {
109
+ const details = inspectorIssue.details.sharedDictionaryIssueDetails;
110
+ if (!details) {
111
+ console.warn('Shared Dictionary issue without details received.');
112
+ return [];
113
+ }
114
+ return [new SharedDictionaryIssue(details, issuesModel)];
115
+ }
116
+ }
117
+ const specLinks = [{
118
+ link: 'https://datatracker.ietf.org/doc/draft-ietf-httpbis-compression-dictionary/',
119
+ linkTitle: i18nLazyString(UIStrings.compressionDictionaryTransport),
120
+ }];
121
+ const issueDescriptions = new Map([
122
+ [
123
+ "UseErrorCrossOriginNoCorsRequest" /* Protocol.Audits.SharedDictionaryError.UseErrorCrossOriginNoCorsRequest */,
124
+ {
125
+ file: 'sharedDictionaryUseErrorCrossOriginNoCorsRequest.md',
126
+ links: specLinks,
127
+ },
128
+ ],
129
+ [
130
+ "UseErrorDictionaryLoadFailure" /* Protocol.Audits.SharedDictionaryError.UseErrorDictionaryLoadFailure */,
131
+ {
132
+ file: 'sharedDictionaryUseErrorDictionaryLoadFailure.md',
133
+ links: specLinks,
134
+ },
135
+ ],
136
+ [
137
+ "UseErrorMatchingDictionaryNotUsed" /* Protocol.Audits.SharedDictionaryError.UseErrorMatchingDictionaryNotUsed */,
138
+ {
139
+ file: 'sharedDictionaryUseErrorMatchingDictionaryNotUsed.md',
140
+ links: specLinks,
141
+ },
142
+ ],
143
+ [
144
+ "UseErrorUnexpectedContentDictionaryHeader" /* Protocol.Audits.SharedDictionaryError.UseErrorUnexpectedContentDictionaryHeader */,
145
+ {
146
+ file: 'sharedDictionaryUseErrorUnexpectedContentDictionaryHeader.md',
147
+ links: specLinks,
148
+ },
149
+ ],
150
+ [
151
+ "WriteErrorCossOriginNoCorsRequest" /* Protocol.Audits.SharedDictionaryError.WriteErrorCossOriginNoCorsRequest */,
152
+ {
153
+ file: 'sharedDictionaryWriteErrorCossOriginNoCorsRequest.md',
154
+ links: specLinks,
155
+ },
156
+ ],
157
+ [
158
+ "WriteErrorDisallowedBySettings" /* Protocol.Audits.SharedDictionaryError.WriteErrorDisallowedBySettings */,
159
+ {
160
+ file: 'sharedDictionaryWriteErrorDisallowedBySettings.md',
161
+ links: specLinks,
162
+ },
163
+ ],
164
+ [
165
+ "WriteErrorExpiredResponse" /* Protocol.Audits.SharedDictionaryError.WriteErrorExpiredResponse */,
166
+ {
167
+ file: 'sharedDictionaryWriteErrorExpiredResponse.md',
168
+ links: specLinks,
169
+ },
170
+ ],
171
+ [
172
+ "WriteErrorFeatureDisabled" /* Protocol.Audits.SharedDictionaryError.WriteErrorFeatureDisabled */,
173
+ {
174
+ file: 'sharedDictionaryWriteErrorFeatureDisabled.md',
175
+ links: specLinks,
176
+ },
177
+ ],
178
+ [
179
+ "WriteErrorInsufficientResources" /* Protocol.Audits.SharedDictionaryError.WriteErrorInsufficientResources */,
180
+ {
181
+ file: 'sharedDictionaryWriteErrorInsufficientResources.md',
182
+ links: specLinks,
183
+ },
184
+ ],
185
+ [
186
+ "WriteErrorInvalidMatchField" /* Protocol.Audits.SharedDictionaryError.WriteErrorInvalidMatchField */,
187
+ {
188
+ file: 'sharedDictionaryWriteErrorInvalidMatchField.md',
189
+ links: specLinks,
190
+ },
191
+ ],
192
+ [
193
+ "WriteErrorInvalidStructuredHeader" /* Protocol.Audits.SharedDictionaryError.WriteErrorInvalidStructuredHeader */,
194
+ {
195
+ file: 'sharedDictionaryWriteErrorInvalidStructuredHeader.md',
196
+ links: specLinks,
197
+ },
198
+ ],
199
+ [
200
+ "WriteErrorInvalidTTLField" /* Protocol.Audits.SharedDictionaryError.WriteErrorInvalidTTLField */,
201
+ {
202
+ file: 'sharedDictionaryWriteErrorInvalidTTLField.md',
203
+ links: specLinks,
204
+ },
205
+ ],
206
+ [
207
+ "WriteErrorNavigationRequest" /* Protocol.Audits.SharedDictionaryError.WriteErrorNavigationRequest */,
208
+ {
209
+ file: 'sharedDictionaryWriteErrorNavigationRequest.md',
210
+ links: specLinks,
211
+ },
212
+ ],
213
+ [
214
+ "WriteErrorNoMatchField" /* Protocol.Audits.SharedDictionaryError.WriteErrorNoMatchField */,
215
+ {
216
+ file: 'sharedDictionaryWriteErrorNoMatchField.md',
217
+ links: specLinks,
218
+ },
219
+ ],
220
+ [
221
+ "WriteErrorNonIntegerTTLField" /* Protocol.Audits.SharedDictionaryError.WriteErrorNonIntegerTTLField */,
222
+ {
223
+ file: 'sharedDictionaryWriteErrorNonIntegerTTLField.md',
224
+ links: specLinks,
225
+ },
226
+ ],
227
+ [
228
+ "WriteErrorNonListMatchDestField" /* Protocol.Audits.SharedDictionaryError.WriteErrorNonListMatchDestField */,
229
+ {
230
+ file: 'sharedDictionaryWriteErrorNonListMatchDestField.md',
231
+ links: specLinks,
232
+ },
233
+ ],
234
+ [
235
+ "WriteErrorNonSecureContext" /* Protocol.Audits.SharedDictionaryError.WriteErrorNonSecureContext */,
236
+ {
237
+ file: 'sharedDictionaryWriteErrorNonSecureContext.md',
238
+ links: specLinks,
239
+ },
240
+ ],
241
+ [
242
+ "WriteErrorNonStringIdField" /* Protocol.Audits.SharedDictionaryError.WriteErrorNonStringIdField */,
243
+ {
244
+ file: 'sharedDictionaryWriteErrorNonStringIdField.md',
245
+ links: specLinks,
246
+ },
247
+ ],
248
+ [
249
+ "WriteErrorNonStringInMatchDestList" /* Protocol.Audits.SharedDictionaryError.WriteErrorNonStringInMatchDestList */,
250
+ {
251
+ file: 'sharedDictionaryWriteErrorNonStringInMatchDestList.md',
252
+ links: specLinks,
253
+ },
254
+ ],
255
+ [
256
+ "WriteErrorNonStringMatchField" /* Protocol.Audits.SharedDictionaryError.WriteErrorNonStringMatchField */,
257
+ {
258
+ file: 'sharedDictionaryWriteErrorNonStringMatchField.md',
259
+ links: specLinks,
260
+ },
261
+ ],
262
+ [
263
+ "WriteErrorNonTokenTypeField" /* Protocol.Audits.SharedDictionaryError.WriteErrorNonTokenTypeField */,
264
+ {
265
+ file: 'sharedDictionaryWriteErrorNonTokenTypeField.md',
266
+ links: specLinks,
267
+ },
268
+ ],
269
+ [
270
+ "WriteErrorRequestAborted" /* Protocol.Audits.SharedDictionaryError.WriteErrorRequestAborted */,
271
+ {
272
+ file: 'sharedDictionaryWriteErrorRequestAborted.md',
273
+ links: specLinks,
274
+ },
275
+ ],
276
+ [
277
+ "WriteErrorShuttingDown" /* Protocol.Audits.SharedDictionaryError.WriteErrorShuttingDown */,
278
+ {
279
+ file: 'sharedDictionaryWriteErrorShuttingDown.md',
280
+ links: specLinks,
281
+ },
282
+ ],
283
+ [
284
+ "WriteErrorTooLongIdField" /* Protocol.Audits.SharedDictionaryError.WriteErrorTooLongIdField */,
285
+ {
286
+ file: 'sharedDictionaryWriteErrorTooLongIdField.md',
287
+ links: specLinks,
288
+ },
289
+ ],
290
+ [
291
+ "WriteErrorUnsupportedType" /* Protocol.Audits.SharedDictionaryError.WriteErrorUnsupportedType */,
292
+ {
293
+ file: 'sharedDictionaryWriteErrorUnsupportedType.md',
294
+ links: specLinks,
295
+ },
296
+ ],
297
+ ]);
@@ -0,0 +1,81 @@
1
+ // Copyright 2020 The Chromium Authors
2
+ // Use of this source code is governed by a BSD-style license that can be
3
+ // found in the LICENSE file.
4
+ import * as Common from '../../core/common/common.js';
5
+ import * as Bindings from '../../models/bindings/bindings.js';
6
+ import * as Workspace from '../../models/workspace/workspace.js';
7
+ import { ContentSecurityPolicyIssue, trustedTypesPolicyViolationCode, trustedTypesSinkViolationCode, } from './ContentSecurityPolicyIssue.js';
8
+ import { toZeroBasedLocation } from './Issue.js';
9
+ import { getIssueTitleFromMarkdownDescription } from './MarkdownIssueDescription.js';
10
+ import { PropertyRuleIssue } from './PropertyRuleIssue.js';
11
+ import { lateImportStylesheetLoadingCode } from './StylesheetLoadingIssue.js';
12
+ export class SourceFrameIssuesManager {
13
+ issuesManager;
14
+ #sourceFrameMessageManager = new Bindings.PresentationConsoleMessageHelper.PresentationSourceFrameMessageManager();
15
+ constructor(issuesManager) {
16
+ this.issuesManager = issuesManager;
17
+ this.issuesManager.addEventListener("IssueAdded" /* Events.ISSUE_ADDED */, this.#onIssueAdded, this);
18
+ this.issuesManager.addEventListener("FullUpdateRequired" /* Events.FULL_UPDATE_REQUIRED */, this.#onFullUpdateRequired, this);
19
+ }
20
+ #onIssueAdded(event) {
21
+ const { issue } = event.data;
22
+ void this.#addIssue(issue);
23
+ }
24
+ async #addIssue(issue) {
25
+ if (!this.#isTrustedTypeIssue(issue) && !this.#isLateImportIssue(issue) && !this.#isPropertyRuleIssue(issue)) {
26
+ return;
27
+ }
28
+ const issuesModel = issue.model();
29
+ if (!issuesModel) {
30
+ return;
31
+ }
32
+ const srcLocation = toZeroBasedLocation(issue.details().sourceCodeLocation);
33
+ const description = issue.getDescription();
34
+ if (!description || !srcLocation) {
35
+ return;
36
+ }
37
+ const messageText = await getIssueTitleFromMarkdownDescription(description);
38
+ if (!messageText) {
39
+ return;
40
+ }
41
+ const clickHandler = () => {
42
+ void Common.Revealer.reveal(issue);
43
+ };
44
+ this.#sourceFrameMessageManager.addMessage(new IssueMessage(messageText, issue.getKind(), clickHandler), {
45
+ line: srcLocation.lineNumber,
46
+ column: srcLocation.columnNumber ?? -1,
47
+ url: srcLocation.url,
48
+ scriptId: srcLocation.scriptId,
49
+ }, issuesModel.target());
50
+ }
51
+ #onFullUpdateRequired() {
52
+ this.#resetMessages();
53
+ const issues = this.issuesManager.issues();
54
+ for (const issue of issues) {
55
+ void this.#addIssue(issue);
56
+ }
57
+ }
58
+ #isTrustedTypeIssue(issue) {
59
+ return issue instanceof ContentSecurityPolicyIssue && issue.code() === trustedTypesSinkViolationCode ||
60
+ issue.code() === trustedTypesPolicyViolationCode;
61
+ }
62
+ #isPropertyRuleIssue(issue) {
63
+ return issue instanceof PropertyRuleIssue;
64
+ }
65
+ #isLateImportIssue(issue) {
66
+ return issue.code() === lateImportStylesheetLoadingCode;
67
+ }
68
+ #resetMessages() {
69
+ this.#sourceFrameMessageManager.clear();
70
+ }
71
+ }
72
+ export class IssueMessage extends Workspace.UISourceCode.Message {
73
+ #kind;
74
+ constructor(title, kind, clickHandler) {
75
+ super("Issue" /* Workspace.UISourceCode.Message.Level.ISSUE */, title, clickHandler);
76
+ this.#kind = kind;
77
+ }
78
+ getIssueKind() {
79
+ return this.#kind;
80
+ }
81
+ }
@@ -0,0 +1,63 @@
1
+ // Copyright 2023 The Chromium Authors
2
+ // Use of this source code is governed by a BSD-style license that can be
3
+ // found in the LICENSE file.
4
+ import { Issue } from './Issue.js';
5
+ export const lateImportStylesheetLoadingCode = [
6
+ "StylesheetLoadingIssue" /* Protocol.Audits.InspectorIssueCode.StylesheetLoadingIssue */,
7
+ "LateImportRule" /* Protocol.Audits.StyleSheetLoadingIssueReason.LateImportRule */,
8
+ ].join('::');
9
+ export class StylesheetLoadingIssue extends Issue {
10
+ #issueDetails;
11
+ constructor(issueDetails, issuesModel) {
12
+ const code = `${"StylesheetLoadingIssue" /* Protocol.Audits.InspectorIssueCode.StylesheetLoadingIssue */}::${issueDetails.styleSheetLoadingIssueReason}`;
13
+ super(code, issuesModel);
14
+ this.#issueDetails = issueDetails;
15
+ }
16
+ sources() {
17
+ return [this.#issueDetails.sourceCodeLocation];
18
+ }
19
+ requests() {
20
+ if (!this.#issueDetails.failedRequestInfo) {
21
+ return [];
22
+ }
23
+ const { url, requestId } = this.#issueDetails.failedRequestInfo;
24
+ if (!requestId) {
25
+ return [];
26
+ }
27
+ return [{ url, requestId }];
28
+ }
29
+ details() {
30
+ return this.#issueDetails;
31
+ }
32
+ primaryKey() {
33
+ return JSON.stringify(this.#issueDetails);
34
+ }
35
+ getDescription() {
36
+ switch (this.#issueDetails.styleSheetLoadingIssueReason) {
37
+ case "LateImportRule" /* Protocol.Audits.StyleSheetLoadingIssueReason.LateImportRule */:
38
+ return {
39
+ file: 'stylesheetLateImport.md',
40
+ links: [],
41
+ };
42
+ case "RequestFailed" /* Protocol.Audits.StyleSheetLoadingIssueReason.RequestFailed */:
43
+ return {
44
+ file: 'stylesheetRequestFailed.md',
45
+ links: [],
46
+ };
47
+ }
48
+ }
49
+ getCategory() {
50
+ return "Other" /* IssueCategory.OTHER */;
51
+ }
52
+ getKind() {
53
+ return "PageError" /* IssueKind.PAGE_ERROR */;
54
+ }
55
+ static fromInspectorIssue(issueModel, inspectorIssue) {
56
+ const stylesheetLoadingDetails = inspectorIssue.details.stylesheetLoadingIssueDetails;
57
+ if (!stylesheetLoadingDetails) {
58
+ console.warn('Stylesheet loading issue without details received');
59
+ return [];
60
+ }
61
+ return [new StylesheetLoadingIssue(stylesheetLoadingDetails, issueModel)];
62
+ }
63
+ }
@@ -0,0 +1,67 @@
1
+ // Copyright 2025 The Chromium Authors
2
+ // Use of this source code is governed by a BSD-style license that can be
3
+ // found in the LICENSE file.
4
+ import * as i18n from '../../core/i18n/i18n.js';
5
+ import { Issue } from './Issue.js';
6
+ import { resolveLazyDescription, } from './MarkdownIssueDescription.js';
7
+ const UIStrings = {
8
+ /**
9
+ *@description Title for HTTP Unencoded Digest specification url
10
+ */
11
+ unencodedDigestHeader: 'HTTP Unencoded Digest specification',
12
+ /**
13
+ *@description Title for the URL of the integration of unencoded-digest and SRI.
14
+ */
15
+ integrityIntegration: 'Server-Initiated Integrity Checks',
16
+ };
17
+ const str_ = i18n.i18n.registerUIStrings('models/issues_manager/UnencodedDigestIssue.ts', UIStrings);
18
+ const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
19
+ export class UnencodedDigestIssue extends Issue {
20
+ #issueDetails;
21
+ constructor(issueDetails, issuesModel) {
22
+ super({
23
+ code: `${"UnencodedDigestIssue" /* Protocol.Audits.InspectorIssueCode.UnencodedDigestIssue */}::${issueDetails.error}`,
24
+ umaCode: `${"UnencodedDigestIssue" /* Protocol.Audits.InspectorIssueCode.UnencodedDigestIssue */}::${issueDetails.error}`,
25
+ }, issuesModel);
26
+ this.#issueDetails = issueDetails;
27
+ }
28
+ details() {
29
+ return this.#issueDetails;
30
+ }
31
+ primaryKey() {
32
+ return JSON.stringify(this.details());
33
+ }
34
+ getDescription() {
35
+ const description = {
36
+ file: `unencodedDigest${this.details().error}.md`,
37
+ links: [
38
+ {
39
+ link: 'https://www.ietf.org/archive/id/draft-ietf-httpbis-unencoded-digest-01.html',
40
+ linkTitle: i18nLazyString(UIStrings.unencodedDigestHeader),
41
+ },
42
+ {
43
+ link: 'https://wicg.github.io/signature-based-sri/#unencoded-digest-validation',
44
+ linkTitle: i18nLazyString(UIStrings.integrityIntegration),
45
+ },
46
+ ],
47
+ };
48
+ return resolveLazyDescription(description);
49
+ }
50
+ getCategory() {
51
+ return "Other" /* IssueCategory.OTHER */;
52
+ }
53
+ getKind() {
54
+ return "PageError" /* IssueKind.PAGE_ERROR */;
55
+ }
56
+ requests() {
57
+ return this.details().request ? [this.details().request] : [];
58
+ }
59
+ static fromInspectorIssue(issuesModel, inspectorIssue) {
60
+ const details = inspectorIssue.details.unencodedDigestIssueDetails;
61
+ if (!details) {
62
+ console.warn('Unencoded-Digest issue without details received.');
63
+ return [];
64
+ }
65
+ return [new UnencodedDigestIssue(details, issuesModel)];
66
+ }
67
+ }
@@ -0,0 +1,4 @@
1
+ # An iframe navigation to a document with a Cross-Origin Opener Policy was blocked
2
+
3
+ A document with a Cross-Origin Opener Policy (COOP) was blocked from loading in an iframe, because the iframe specifies a sandbox attribute.
4
+ This protects COOP-enabled documents from inheriting properties from its opener.
@@ -0,0 +1,8 @@
1
+ # Specify a more permissive Cross-Origin Resource Policy to prevent a resource from being blocked
2
+
3
+ Your site tries to access an external resource that only allows same-origin usage.
4
+ This behavior prevents a document from loading any non-same-origin resources which don’t explicitly grant permission to be loaded.
5
+
6
+ To solve this, add the following to the resource’s HTML response header:
7
+ * `Cross-Origin-Resource-Policy: same-site` if the resource and your site are served from the same site.
8
+ * `Cross-Origin-Resource-Policy: cross-origin` if the resource is served from another location than your website. ⚠️If you set this header, any website can embed this resource.
@@ -0,0 +1,18 @@
1
+ # Specify a Cross-Origin Resource Policy to prevent a resource from being blocked
2
+
3
+ Because your site has the Cross-Origin Embedder Policy (COEP) enabled, each
4
+ resource must specify a suitable Cross-Origin Resource Policy (CORP). This
5
+ behavior prevents a document from loading cross-origin resources which don’t
6
+ explicitly grant permission to be loaded.
7
+
8
+ To solve this, add the following to the resource’ response header:
9
+ * `Cross-Origin-Resource-Policy: same-site` if the resource and your site are
10
+ served from the same site.
11
+ * `Cross-Origin-Resource-Policy: cross-origin` if the resource is served from
12
+ another location than your website. ⚠️If you set this header, any website can
13
+ embed this resource.
14
+
15
+ Alternatively, the document can use the variant: `Cross-Origin-Embedder-Policy:
16
+ credentialless` instead of `require-corp`. It allows loading the resource,
17
+ despite the missing CORP header, at the cost of requesting it without
18
+ credentials like Cookies.
@@ -0,0 +1,7 @@
1
+ # Specify a more permissive Cross-Origin Resource Policy to prevent a resource from being blocked
2
+
3
+ Your site tries to access an external resource that only allows same-site usage.
4
+ This behavior prevents a document from loading any non-same-site resources which don’t explicitly grant permission to be loaded.
5
+
6
+ To solve this, add the following to the resource’s HTML response header: `Cross-Origin-Resource-Policy: cross-origin`
7
+ ⚠️If you set this header, any website can embed this resource.
@@ -0,0 +1,10 @@
1
+ # Specify a Cross-Origin Embedder Policy to prevent this frame from being blocked
2
+
3
+ Because your site has the Cross-Origin Embedder Policy (COEP) enabled, each
4
+ embedded iframe must also specify this policy. This behavior protects private
5
+ data from being exposed to untrusted third party sites.
6
+
7
+ To solve this, add one of following to the embedded frame’s HTML response
8
+ header:
9
+ * `Cross-Origin-Embedder-Policy: require-corp`
10
+ * `Cross-Origin-Embedder-Policy: credentialless` (Chrome > 96)
@@ -0,0 +1,5 @@
1
+ # Page layout may be unexpected due to Quirks Mode
2
+
3
+ One or more documents in this page is in Quirks Mode, which will render the affected document(s) with quirks incompatible with the current HTML and CSS specifications.
4
+
5
+ Quirks Mode exists mostly due to historical reasons. If this is not intentional, you can [add or modify the DOCTYPE to be `<!DOCTYPE html>`](issueQuirksModeDoctype) to render the page in No Quirks Mode.
@@ -0,0 +1,5 @@
1
+ # Ensure cookie attribute values don’t exceed 1024 characters
2
+
3
+ Cookie attribute values exceeding 1024 characters in size will result in the attribute being ignored. This could lead to unexpected behavior since the cookie will be processed as if the offending attribute / attribute value pair were not present.
4
+
5
+ Resolve this issue by ensuring that cookie attribute values don’t exceed 1024 characters.
@@ -0,0 +1,5 @@
1
+ # Users may have difficulties reading text content due to insufficient color contrast
2
+
3
+ Low-contrast text is difficult or impossible for users to read. A [minimum contrast ratio (AA) of 4.5](issuesContrastWCAG21AA) is recommended for all text. Since font size and weight affect color perception, an exception is made for very large or bold text — in this case, a contrast ratio of 3.0 is allowed. The [enhanced conformance level (AAA)](issuesContrastWCAG21AAA) requires the contrast ratio to be above 7.0 for regular text and 4.5 for large text.
4
+
5
+ Update colors or change the font size or weight to achieve sufficient contrast. You can use the [“Suggest color” feature](issuesContrastSuggestColor) in the DevTools color picker to automatically select a better text color.
@@ -0,0 +1,8 @@
1
+ # Migrate entirely to HTTPS to have cookies sent to same-site subresources
2
+
3
+ A cookie was not sent to {PLACEHOLDER_destination} origin from {PLACEHOLDER_origin} context.
4
+ Because this cookie would have been sent across schemes on the same site, it was not sent.
5
+ This behavior enhances the `SameSite` attribute’s protection of user data from request forgery by network attackers.
6
+
7
+ Resolve this issue by migrating your site (as defined by the eTLD+1) entirely to HTTPS.
8
+ It is also recommended to mark the cookie with the `Secure` attribute if that is not already the case.
@@ -0,0 +1,8 @@
1
+ # Migrate entirely to HTTPS to allow cookies to be set by same-site subresources
2
+
3
+ A cookie was not set by {PLACEHOLDER_origin} origin in {PLACEHOLDER_destination} context.
4
+ Because this cookie would have been set across schemes on the same site, it was blocked.
5
+ This behavior enhances the `SameSite` attribute’s protection of user data from request forgery by network attackers.
6
+
7
+ Resolve this issue by migrating your site (as defined by the eTLD+1) entirely to HTTPS.
8
+ It is also recommended to mark the cookie with the `Secure` attribute if that is not already the case.
@@ -0,0 +1,8 @@
1
+ # Migrate entirely to HTTPS to have cookies sent on same-site requests
2
+
3
+ A cookie was not sent to {PLACEHOLDER_destination} origin from {PLACEHOLDER_origin} context on a navigation.
4
+ Because this cookie would have been sent across schemes on the same site, it was not sent.
5
+ This behavior enhances the `SameSite` attribute’s protection of user data from request forgery by network attackers.
6
+
7
+ Resolve this issue by migrating your site (as defined by the eTLD+1) entirely to HTTPS.
8
+ It is also recommended to mark the cookie with the `Secure` attribute if that is not already the case.
@@ -0,0 +1,8 @@
1
+ # Mark SameParty cookies as Secure and do not use SameSite=Strict for SameParty cookies
2
+
3
+ Cookies marked with `SameParty` must also be marked with `Secure`. In addition, cookies marked
4
+ with `SameParty` cannot use `SameSite=Strict`.
5
+
6
+ Resolve this issue by updating the attributes of the cookie:
7
+ * Remove `SameParty` if the cookie should only be used by the same site but not the same first-party set
8
+ * Remove `SameSite=Strict` and specify `Secure` if the cookie should be available to all sites of the same first-party set
@@ -0,0 +1,8 @@
1
+ # Mark cross-site cookies as Secure to allow them to be sent in cross-site requests
2
+
3
+ Cookies marked with `SameSite=None` must also be marked with `Secure` to get sent in cross-site requests.
4
+ This behavior protects user data from being sent over an insecure connection.
5
+
6
+ Resolve this issue by updating the attributes of the cookie:
7
+ * Specify `SameSite=None` and `Secure` if the cookie should be sent in cross-site requests. This enables third-party use.
8
+ * Specify `SameSite=Strict` or `SameSite=Lax` if the cookie should not be sent in cross-site requests.
@@ -0,0 +1,8 @@
1
+ # Mark cross-site cookies as Secure to allow setting them in cross-site contexts
2
+
3
+ Cookies marked with `SameSite=None` must also be marked with `Secure` to allow setting them in a cross-site context.
4
+ This behavior protects user data from being sent over an insecure connection.
5
+
6
+ Resolve this issue by updating the attributes of the cookie:
7
+ * Specify `SameSite=None` and `Secure` if the cookie is intended to be set in cross-site contexts. Note that only cookies sent over HTTPS may use the `Secure` attribute.
8
+ * Specify `SameSite=Strict` or `SameSite=Lax` if the cookie should not be set by cross-site requests.