chrome-devtools-frontend 1.0.982087 → 1.0.995227

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 (489) hide show
  1. package/AUTHORS +2 -0
  2. package/config/gni/devtools_grd_files.gni +8 -7
  3. package/config/gni/devtools_image_files.gni +1 -0
  4. package/front_end/.eslintrc.js +10 -0
  5. package/front_end/Images/src/ic_rendering.svg +3 -0
  6. package/front_end/core/common/ParsedURL.ts +39 -28
  7. package/front_end/core/common/ResourceType.ts +1 -1
  8. package/front_end/core/common/SettingRegistration.ts +1 -0
  9. package/front_end/core/host/InspectorFrontendHost.ts +4 -4
  10. package/front_end/core/host/InspectorFrontendHostAPI.ts +7 -6
  11. package/front_end/core/host/Platform.ts +11 -2
  12. package/front_end/core/host/UserMetrics.ts +27 -2
  13. package/front_end/core/i18n/DevToolsLocale.ts +4 -0
  14. package/front_end/core/i18n/locales/af.json +76 -16
  15. package/front_end/core/i18n/locales/am.json +76 -16
  16. package/front_end/core/i18n/locales/ar.json +77 -17
  17. package/front_end/core/i18n/locales/as.json +76 -16
  18. package/front_end/core/i18n/locales/az.json +76 -16
  19. package/front_end/core/i18n/locales/be.json +75 -15
  20. package/front_end/core/i18n/locales/bg.json +76 -16
  21. package/front_end/core/i18n/locales/bn.json +76 -16
  22. package/front_end/core/i18n/locales/bs.json +88 -28
  23. package/front_end/core/i18n/locales/ca.json +76 -16
  24. package/front_end/core/i18n/locales/cs.json +76 -16
  25. package/front_end/core/i18n/locales/cy.json +76 -16
  26. package/front_end/core/i18n/locales/da.json +77 -17
  27. package/front_end/core/i18n/locales/de.json +178 -118
  28. package/front_end/core/i18n/locales/el.json +76 -16
  29. package/front_end/core/i18n/locales/en-GB.json +76 -16
  30. package/front_end/core/i18n/locales/en-US.json +193 -52
  31. package/front_end/core/i18n/locales/en-XL.json +193 -52
  32. package/front_end/core/i18n/locales/es-419.json +76 -16
  33. package/front_end/core/i18n/locales/es.json +76 -16
  34. package/front_end/core/i18n/locales/et.json +76 -16
  35. package/front_end/core/i18n/locales/eu.json +76 -16
  36. package/front_end/core/i18n/locales/fa.json +83 -23
  37. package/front_end/core/i18n/locales/fi.json +76 -16
  38. package/front_end/core/i18n/locales/fil.json +76 -16
  39. package/front_end/core/i18n/locales/fr-CA.json +76 -16
  40. package/front_end/core/i18n/locales/fr.json +76 -16
  41. package/front_end/core/i18n/locales/gl.json +76 -16
  42. package/front_end/core/i18n/locales/gu.json +76 -16
  43. package/front_end/core/i18n/locales/he.json +76 -16
  44. package/front_end/core/i18n/locales/hi.json +76 -16
  45. package/front_end/core/i18n/locales/hr.json +76 -16
  46. package/front_end/core/i18n/locales/hu.json +76 -16
  47. package/front_end/core/i18n/locales/hy.json +76 -16
  48. package/front_end/core/i18n/locales/id.json +79 -19
  49. package/front_end/core/i18n/locales/is.json +75 -15
  50. package/front_end/core/i18n/locales/it.json +124 -64
  51. package/front_end/core/i18n/locales/ja.json +76 -16
  52. package/front_end/core/i18n/locales/ka.json +76 -16
  53. package/front_end/core/i18n/locales/kk.json +76 -16
  54. package/front_end/core/i18n/locales/km.json +76 -16
  55. package/front_end/core/i18n/locales/kn.json +76 -16
  56. package/front_end/core/i18n/locales/ko.json +76 -16
  57. package/front_end/core/i18n/locales/ky.json +76 -16
  58. package/front_end/core/i18n/locales/lo.json +76 -16
  59. package/front_end/core/i18n/locales/lt.json +76 -16
  60. package/front_end/core/i18n/locales/lv.json +76 -16
  61. package/front_end/core/i18n/locales/mk.json +76 -16
  62. package/front_end/core/i18n/locales/ml.json +76 -16
  63. package/front_end/core/i18n/locales/mn.json +76 -16
  64. package/front_end/core/i18n/locales/mr.json +76 -16
  65. package/front_end/core/i18n/locales/ms.json +76 -16
  66. package/front_end/core/i18n/locales/my.json +78 -18
  67. package/front_end/core/i18n/locales/ne.json +76 -16
  68. package/front_end/core/i18n/locales/nl.json +77 -17
  69. package/front_end/core/i18n/locales/no.json +76 -16
  70. package/front_end/core/i18n/locales/or.json +76 -16
  71. package/front_end/core/i18n/locales/pa.json +76 -16
  72. package/front_end/core/i18n/locales/pl.json +78 -18
  73. package/front_end/core/i18n/locales/pt-PT.json +123 -63
  74. package/front_end/core/i18n/locales/pt.json +78 -18
  75. package/front_end/core/i18n/locales/ro.json +76 -16
  76. package/front_end/core/i18n/locales/ru.json +77 -17
  77. package/front_end/core/i18n/locales/si.json +76 -16
  78. package/front_end/core/i18n/locales/sk.json +76 -16
  79. package/front_end/core/i18n/locales/sl.json +76 -16
  80. package/front_end/core/i18n/locales/sq.json +76 -16
  81. package/front_end/core/i18n/locales/sr-Latn.json +76 -16
  82. package/front_end/core/i18n/locales/sr.json +76 -16
  83. package/front_end/core/i18n/locales/sv.json +76 -16
  84. package/front_end/core/i18n/locales/sw.json +76 -16
  85. package/front_end/core/i18n/locales/ta.json +77 -17
  86. package/front_end/core/i18n/locales/te.json +76 -16
  87. package/front_end/core/i18n/locales/th.json +76 -16
  88. package/front_end/core/i18n/locales/tr.json +76 -16
  89. package/front_end/core/i18n/locales/uk.json +76 -16
  90. package/front_end/core/i18n/locales/ur.json +76 -16
  91. package/front_end/core/i18n/locales/uz.json +77 -17
  92. package/front_end/core/i18n/locales/vi.json +76 -16
  93. package/front_end/core/i18n/locales/zh-HK.json +76 -16
  94. package/front_end/core/i18n/locales/zh-TW.json +76 -16
  95. package/front_end/core/i18n/locales/zh.json +76 -16
  96. package/front_end/core/i18n/locales/zu.json +76 -16
  97. package/front_end/core/platform/dom-utilities.ts +16 -0
  98. package/front_end/core/platform/platform.ts +2 -0
  99. package/front_end/core/protocol_client/InspectorBackend.ts +2 -1
  100. package/front_end/core/protocol_client/NodeURL.ts +1 -1
  101. package/front_end/core/root/Runtime.ts +6 -0
  102. package/front_end/core/sdk/AccessibilityModel.ts +7 -6
  103. package/front_end/core/sdk/CSSMatchedStyles.ts +71 -17
  104. package/front_end/core/sdk/CSSMetadata.ts +15 -0
  105. package/front_end/core/sdk/CSSModel.ts +9 -7
  106. package/front_end/core/sdk/CSSProperty.ts +97 -11
  107. package/front_end/core/sdk/CSSStyleSheetHeader.ts +9 -5
  108. package/front_end/core/sdk/CSSSupports.ts +4 -1
  109. package/front_end/core/sdk/ChildTargetManager.ts +3 -1
  110. package/front_end/core/sdk/Connections.ts +3 -2
  111. package/front_end/core/sdk/ConsoleModel.ts +6 -5
  112. package/front_end/core/sdk/Cookie.ts +4 -2
  113. package/front_end/core/sdk/DOMDebuggerModel.ts +10 -6
  114. package/front_end/core/sdk/DOMModel.ts +2 -2
  115. package/front_end/core/sdk/DebuggerModel.ts +27 -5
  116. package/front_end/core/sdk/HeapProfilerModel.ts +2 -1
  117. package/front_end/core/sdk/NetworkManager.ts +13 -12
  118. package/front_end/core/sdk/NetworkRequest.ts +1 -1
  119. package/front_end/core/sdk/PageLoad.ts +3 -1
  120. package/front_end/core/sdk/PageResourceLoader.ts +9 -7
  121. package/front_end/core/sdk/ProfileTreeModel.ts +3 -2
  122. package/front_end/core/sdk/RemoteObject.ts +18 -6
  123. package/front_end/core/sdk/ResourceTreeModel.ts +17 -11
  124. package/front_end/core/sdk/ScreenCaptureModel.ts +3 -0
  125. package/front_end/core/sdk/Script.ts +4 -3
  126. package/front_end/core/sdk/ServiceWorkerCacheModel.ts +2 -1
  127. package/front_end/core/sdk/SourceMap.ts +10 -6
  128. package/front_end/core/sdk/SourceMapManager.ts +47 -5
  129. package/front_end/core/sdk/TracingModel.ts +0 -9
  130. package/front_end/devtools_compatibility.js +1 -0
  131. package/front_end/entrypoints/formatter_worker/CSSRuleParser.ts +1 -1
  132. package/front_end/entrypoints/lighthouse_worker/LighthouseWorkerService.ts +10 -3
  133. package/front_end/entrypoints/main/MainImpl.ts +22 -2
  134. package/front_end/generated/InspectorBackendCommands.js +79 -14
  135. package/front_end/generated/SupportedCSSProperties.js +21 -8
  136. package/front_end/generated/protocol-mapping.d.ts +4 -0
  137. package/front_end/generated/protocol-proxy-api.d.ts +5 -0
  138. package/front_end/generated/protocol.ts +158 -28
  139. package/front_end/legacy/legacy-defs.d.ts +0 -4
  140. package/front_end/legacy_test_runner/heap_profiler_test_runner/heap_profiler_test_runner.js +1 -1
  141. package/front_end/legacy_test_runner/test_runner/TestRunner.js +1 -0
  142. package/front_end/models/bindings/BreakpointManager.ts +68 -11
  143. package/front_end/models/bindings/CSSWorkspaceBinding.ts +9 -2
  144. package/front_end/models/bindings/CompilerScriptMapping.ts +3 -2
  145. package/front_end/models/bindings/ContentProviderBasedProject.ts +12 -9
  146. package/front_end/models/bindings/DebuggerLanguagePlugins.ts +10 -8
  147. package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +8 -1
  148. package/front_end/models/bindings/DefaultScriptMapping.ts +8 -2
  149. package/front_end/models/bindings/IgnoreListManager.ts +5 -5
  150. package/front_end/models/bindings/ResourceUtils.ts +5 -4
  151. package/front_end/models/emulation/EmulatedDevices.ts +17 -0
  152. package/front_end/models/extensions/ExtensionAPI.ts +5 -2
  153. package/front_end/models/extensions/ExtensionPanel.ts +2 -1
  154. package/front_end/models/extensions/ExtensionServer.ts +13 -8
  155. package/front_end/models/issues_manager/AttributionReportingIssue.ts +0 -63
  156. package/front_end/models/issues_manager/CookieIssue.ts +7 -0
  157. package/front_end/models/issues_manager/DeprecationIssue.ts +326 -8
  158. package/front_end/models/issues_manager/IssuesManager.ts +4 -0
  159. package/front_end/models/issues_manager/descriptions/CookieAttributeValueExceedsMaxSize.md +5 -0
  160. package/front_end/models/issues_manager/descriptions/deprecation.md +1 -1
  161. package/front_end/models/logs/LogManager.ts +2 -1
  162. package/front_end/models/logs/NetworkLog.ts +14 -12
  163. package/front_end/models/persistence/Automapping.ts +17 -16
  164. package/front_end/models/persistence/EditFileSystemView.ts +5 -4
  165. package/front_end/models/persistence/FileSystemWorkspaceBinding.ts +24 -24
  166. package/front_end/models/persistence/IsolatedFileSystem.ts +2 -2
  167. package/front_end/models/persistence/IsolatedFileSystemManager.ts +7 -6
  168. package/front_end/models/persistence/NetworkPersistenceManager.ts +92 -54
  169. package/front_end/models/persistence/PersistenceImpl.ts +7 -7
  170. package/front_end/models/persistence/PlatformFileSystem.ts +7 -8
  171. package/front_end/models/persistence/WorkspaceSettingsTab.ts +3 -2
  172. package/front_end/models/text_utils/CodeMirrorUtils.ts +53 -0
  173. package/front_end/models/text_utils/text_utils.ts +2 -0
  174. package/front_end/models/timeline_model/TimelineModel.ts +31 -30
  175. package/front_end/models/timeline_model/TimelineProfileTree.ts +3 -2
  176. package/front_end/models/workspace/UISourceCode.ts +16 -14
  177. package/front_end/models/workspace/WorkspaceImpl.ts +40 -16
  178. package/front_end/panels/accessibility/AccessibilitySubPane.ts +2 -1
  179. package/front_end/panels/application/AppManifestView.ts +1 -1
  180. package/front_end/panels/application/ApplicationPanelCacheSection.ts +5 -4
  181. package/front_end/panels/application/ApplicationPanelSidebar.ts +34 -30
  182. package/front_end/panels/application/ApplicationPanelTreeElement.ts +5 -4
  183. package/front_end/panels/application/DatabaseQueryView.ts +2 -1
  184. package/front_end/panels/application/InterestGroupTreeElement.ts +3 -2
  185. package/front_end/panels/application/ReportingApiTreeElement.ts +3 -2
  186. package/front_end/panels/application/ResourcesPanel.ts +4 -3
  187. package/front_end/panels/application/ServiceWorkerCacheViews.ts +6 -1
  188. package/front_end/panels/application/TrustTokensTreeElement.ts +3 -2
  189. package/front_end/panels/application/components/BackForwardCacheStrings.ts +10 -1
  190. package/front_end/panels/application/components/BackForwardCacheView.ts +163 -13
  191. package/front_end/panels/application/components/backForwardCacheView.css +15 -4
  192. package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +19 -19
  193. package/front_end/panels/changes/ChangesView.ts +38 -0
  194. package/front_end/panels/console/ConsolePinPane.ts +7 -0
  195. package/front_end/panels/console/ConsolePrompt.ts +11 -1
  196. package/front_end/panels/console/ConsoleSidebar.ts +2 -1
  197. package/front_end/panels/console/ConsoleView.ts +57 -31
  198. package/front_end/panels/console/ConsoleViewMessage.ts +12 -9
  199. package/front_end/panels/console/ConsoleViewport.ts +2 -1
  200. package/front_end/panels/console/ErrorStackParser.ts +8 -4
  201. package/front_end/panels/console/consoleView.css +0 -1
  202. package/front_end/panels/coverage/CoverageListView.ts +1 -1
  203. package/front_end/panels/coverage/CoverageModel.ts +6 -6
  204. package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +2 -1
  205. package/front_end/panels/css_overview/components/CSSOverviewStartView.ts +7 -6
  206. package/front_end/panels/css_overview/components/cssOverviewStartView.css +0 -48
  207. package/front_end/panels/css_overview/cssOverviewCompletedView.css +5 -0
  208. package/front_end/panels/css_overview/cssOverviewSidebarPanel.css +2 -0
  209. package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +2 -1
  210. package/front_end/panels/elements/ComputedStyleWidget.ts +2 -1
  211. package/front_end/panels/elements/ElementStatePaneWidget.ts +4 -6
  212. package/front_end/panels/elements/ElementsPanel.ts +16 -5
  213. package/front_end/panels/elements/ImagePreviewPopover.ts +6 -4
  214. package/front_end/panels/elements/PropertiesWidget.ts +4 -24
  215. package/front_end/panels/elements/StyleEditorWidget.ts +2 -1
  216. package/front_end/panels/elements/StylePropertiesSection.ts +1614 -0
  217. package/front_end/panels/elements/StylePropertyHighlighter.ts +2 -1
  218. package/front_end/panels/elements/StylePropertyTreeElement.ts +20 -1
  219. package/front_end/panels/elements/StylesSidebarPane.ts +97 -1675
  220. package/front_end/panels/elements/elements-legacy.ts +3 -3
  221. package/front_end/panels/elements/elements.ts +3 -0
  222. package/front_end/panels/elements/stylesSidebarPane.css +3 -1
  223. package/front_end/panels/input/InputTimeline.ts +1 -1
  224. package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +0 -50
  225. package/front_end/panels/issues/ComboBoxOfCheckBoxes.ts +14 -2
  226. package/front_end/panels/issues/IssueAggregator.ts +8 -0
  227. package/front_end/panels/issues/issues.ts +2 -0
  228. package/front_end/panels/lighthouse/LighthouseController.ts +5 -1
  229. package/front_end/panels/lighthouse/LighthousePanel.ts +3 -1
  230. package/front_end/panels/lighthouse/LighthouseTimespanView.ts +3 -3
  231. package/front_end/panels/network/BlockedURLsPane.ts +3 -2
  232. package/front_end/panels/network/NetworkConfigView.ts +6 -0
  233. package/front_end/panels/network/NetworkDataGridNode.ts +4 -0
  234. package/front_end/panels/network/NetworkLogView.ts +1 -1
  235. package/front_end/panels/network/RequestHTMLView.ts +1 -0
  236. package/front_end/panels/network/RequestHeadersView.ts +71 -10
  237. package/front_end/panels/network/networkLogView.css +9 -17
  238. package/front_end/panels/network/requestHeadersTree.css +16 -0
  239. package/front_end/panels/profiler/HeapSnapshotView.ts +2 -0
  240. package/front_end/panels/profiler/LiveHeapProfileView.ts +3 -1
  241. package/front_end/panels/profiler/ProfilesPanel.ts +2 -1
  242. package/front_end/panels/profiler/heapProfiler.css +15 -3
  243. package/front_end/panels/screencast/ScreencastView.ts +1 -1
  244. package/front_end/panels/search/SearchConfig.ts +2 -1
  245. package/front_end/panels/settings/KeybindsSettingsTab.ts +3 -2
  246. package/front_end/panels/settings/emulation/components/userAgentClientHintsForm.css +1 -2
  247. package/front_end/panels/snippets/ScriptSnippetFileSystem.ts +4 -4
  248. package/front_end/panels/sources/BreakpointEditDialog.ts +0 -1
  249. package/front_end/panels/sources/CSSPlugin.ts +6 -6
  250. package/front_end/panels/sources/CoveragePlugin.ts +2 -1
  251. package/front_end/panels/sources/DebuggerPlugin.ts +4 -4
  252. package/front_end/panels/sources/EditingLocationHistoryManager.ts +4 -1
  253. package/front_end/panels/sources/NavigatorView.ts +28 -20
  254. package/front_end/panels/sources/SearchSourcesView.ts +2 -2
  255. package/front_end/panels/sources/SourcesNavigator.ts +4 -2
  256. package/front_end/panels/sources/SourcesPanel.ts +4 -4
  257. package/front_end/panels/sources/SourcesSearchScope.ts +12 -8
  258. package/front_end/panels/sources/SourcesView.ts +3 -1
  259. package/front_end/panels/sources/TabbedEditorContainer.ts +1 -1
  260. package/front_end/panels/sources/components/HeadersView.ts +1 -1
  261. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +9 -9
  262. package/front_end/panels/timeline/TimelinePanel.ts +1 -1
  263. package/front_end/panels/timeline/timelinePanel.css +1 -2
  264. package/front_end/panels/utils/utils.ts +97 -0
  265. package/front_end/third_party/codemirror.next/bundle.ts +27 -25
  266. package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
  267. package/front_end/third_party/codemirror.next/chunk/cpp.js +2 -2
  268. package/front_end/third_party/codemirror.next/chunk/java.js +2 -1
  269. package/front_end/third_party/codemirror.next/chunk/json.js +2 -2
  270. package/front_end/third_party/codemirror.next/chunk/legacy.js +1 -1
  271. package/front_end/third_party/codemirror.next/chunk/markdown.js +2 -2
  272. package/front_end/third_party/codemirror.next/chunk/php.js +2 -1
  273. package/front_end/third_party/codemirror.next/chunk/python.js +2 -2
  274. package/front_end/third_party/codemirror.next/chunk/wast.js +2 -1
  275. package/front_end/third_party/codemirror.next/chunk/xml.js +2 -1
  276. package/front_end/third_party/codemirror.next/codemirror.next.d.ts +1884 -2281
  277. package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
  278. package/front_end/third_party/codemirror.next/package.json +21 -32
  279. package/front_end/third_party/lit-html/README.chromium +3 -3
  280. package/front_end/third_party/lit-html/package/README.md +1 -1
  281. package/front_end/third_party/lit-html/package/async-directive.d.ts +1 -1
  282. package/front_end/third_party/lit-html/package/async-directive.js.map +1 -1
  283. package/front_end/third_party/lit-html/package/development/async-directive.d.ts +1 -1
  284. package/front_end/third_party/lit-html/package/development/async-directive.js.map +1 -1
  285. package/front_end/third_party/lit-html/package/development/directives/choose.d.ts +32 -0
  286. package/front_end/third_party/lit-html/package/development/directives/choose.d.ts.map +1 -0
  287. package/front_end/third_party/lit-html/package/development/directives/choose.js +41 -0
  288. package/front_end/third_party/lit-html/package/development/directives/choose.js.map +1 -0
  289. package/front_end/third_party/lit-html/package/development/directives/join.d.ts +21 -0
  290. package/front_end/third_party/lit-html/package/development/directives/join.d.ts.map +1 -0
  291. package/front_end/third_party/lit-html/package/development/directives/join.js +19 -0
  292. package/front_end/third_party/lit-html/package/development/directives/join.js.map +1 -0
  293. package/front_end/third_party/lit-html/package/development/directives/keyed.d.ts +23 -0
  294. package/front_end/third_party/lit-html/package/development/directives/keyed.d.ts.map +1 -0
  295. package/front_end/third_party/lit-html/package/development/directives/keyed.js +39 -0
  296. package/front_end/third_party/lit-html/package/development/directives/keyed.js.map +1 -0
  297. package/front_end/third_party/lit-html/package/development/directives/map.d.ts +23 -0
  298. package/front_end/third_party/lit-html/package/development/directives/map.d.ts.map +1 -0
  299. package/front_end/third_party/lit-html/package/development/directives/map.js +30 -0
  300. package/front_end/third_party/lit-html/package/development/directives/map.js.map +1 -0
  301. package/front_end/third_party/lit-html/package/development/directives/range.d.ts +24 -0
  302. package/front_end/third_party/lit-html/package/development/directives/range.d.ts.map +1 -0
  303. package/front_end/third_party/lit-html/package/development/directives/range.js +13 -0
  304. package/front_end/third_party/lit-html/package/development/directives/range.js.map +1 -0
  305. package/front_end/third_party/lit-html/package/development/directives/template-content.d.ts +1 -1
  306. package/front_end/third_party/lit-html/package/development/directives/when.d.ts +26 -0
  307. package/front_end/third_party/lit-html/package/development/directives/when.d.ts.map +1 -0
  308. package/front_end/third_party/lit-html/package/development/directives/when.js +9 -0
  309. package/front_end/third_party/lit-html/package/development/directives/when.js.map +1 -0
  310. package/front_end/third_party/lit-html/package/development/lit-html.d.ts +182 -1
  311. package/front_end/third_party/lit-html/package/development/lit-html.d.ts.map +1 -1
  312. package/front_end/third_party/lit-html/package/development/lit-html.js +187 -4
  313. package/front_end/third_party/lit-html/package/development/lit-html.js.map +1 -1
  314. package/front_end/third_party/lit-html/package/development/static.d.ts.map +1 -1
  315. package/front_end/third_party/lit-html/package/development/static.js +7 -0
  316. package/front_end/third_party/lit-html/package/development/static.js.map +1 -1
  317. package/front_end/third_party/lit-html/package/directives/choose.d.ts +32 -0
  318. package/front_end/third_party/lit-html/package/directives/choose.d.ts.map +1 -0
  319. package/front_end/third_party/lit-html/package/directives/choose.js +7 -0
  320. package/front_end/third_party/lit-html/package/directives/choose.js.map +1 -0
  321. package/front_end/third_party/lit-html/package/directives/class-map.js +1 -1
  322. package/front_end/third_party/lit-html/package/directives/guard.js +1 -1
  323. package/front_end/third_party/lit-html/package/directives/join.d.ts +21 -0
  324. package/front_end/third_party/lit-html/package/directives/join.d.ts.map +1 -0
  325. package/front_end/third_party/lit-html/package/directives/join.js +7 -0
  326. package/front_end/third_party/lit-html/package/directives/join.js.map +1 -0
  327. package/front_end/third_party/lit-html/package/directives/keyed.d.ts +23 -0
  328. package/front_end/third_party/lit-html/package/directives/keyed.d.ts.map +1 -0
  329. package/front_end/third_party/lit-html/package/directives/keyed.js +7 -0
  330. package/front_end/third_party/lit-html/package/directives/keyed.js.map +1 -0
  331. package/front_end/third_party/lit-html/package/directives/map.d.ts +23 -0
  332. package/front_end/third_party/lit-html/package/directives/map.d.ts.map +1 -0
  333. package/front_end/third_party/lit-html/package/directives/map.js +7 -0
  334. package/front_end/third_party/lit-html/package/directives/map.js.map +1 -0
  335. package/front_end/third_party/lit-html/package/directives/range.d.ts +24 -0
  336. package/front_end/third_party/lit-html/package/directives/range.d.ts.map +1 -0
  337. package/front_end/third_party/lit-html/package/directives/range.js +7 -0
  338. package/front_end/third_party/lit-html/package/directives/range.js.map +1 -0
  339. package/front_end/third_party/lit-html/package/directives/ref.js +1 -1
  340. package/front_end/third_party/lit-html/package/directives/repeat.js +1 -1
  341. package/front_end/third_party/lit-html/package/directives/style-map.js +1 -1
  342. package/front_end/third_party/lit-html/package/directives/template-content.d.ts +1 -1
  343. package/front_end/third_party/lit-html/package/directives/template-content.js +1 -1
  344. package/front_end/third_party/lit-html/package/directives/unsafe-html.js +1 -1
  345. package/front_end/third_party/lit-html/package/directives/until.js +1 -1
  346. package/front_end/third_party/lit-html/package/directives/when.d.ts +26 -0
  347. package/front_end/third_party/lit-html/package/directives/when.d.ts.map +1 -0
  348. package/front_end/third_party/lit-html/package/directives/when.js +7 -0
  349. package/front_end/third_party/lit-html/package/directives/when.js.map +1 -0
  350. package/front_end/third_party/lit-html/package/lit-html.d.ts +182 -1
  351. package/front_end/third_party/lit-html/package/lit-html.d.ts.map +1 -1
  352. package/front_end/third_party/lit-html/package/lit-html.js +1 -1
  353. package/front_end/third_party/lit-html/package/lit-html.js.map +1 -1
  354. package/front_end/third_party/lit-html/package/package.json +25 -1
  355. package/front_end/third_party/lit-html/package/private-ssr-support.js +1 -1
  356. package/front_end/third_party/lit-html/package/static.d.ts.map +1 -1
  357. package/front_end/third_party/lit-html/package/static.js +1 -1
  358. package/front_end/third_party/lit-html/package/static.js.map +1 -1
  359. package/front_end/third_party/puppeteer/README.chromium +1 -1
  360. package/front_end/third_party/puppeteer/package/README.md +12 -13
  361. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api-docs-entry.js +5 -1
  362. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api-docs-entry.js.map +1 -1
  363. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js +5 -1
  364. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -1
  365. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts +2 -2
  366. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js +2 -2
  367. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts +2 -2
  368. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts.map +1 -1
  369. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js +13 -6
  370. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js.map +1 -1
  371. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js +5 -1
  372. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js.map +1 -1
  373. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.d.ts +1 -0
  374. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.d.ts.map +1 -1
  375. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.js +4 -1
  376. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.js.map +1 -1
  377. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts +1 -0
  378. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +1 -1
  379. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js +10 -0
  380. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js.map +1 -1
  381. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.d.ts +4 -2
  382. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.d.ts.map +1 -1
  383. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.js.map +1 -1
  384. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts.map +1 -1
  385. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js +12 -1
  386. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js.map +1 -1
  387. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/fetch.js +5 -1
  388. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/fetch.js.map +1 -1
  389. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.d.ts.map +1 -1
  390. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.js +7 -6
  391. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.js.map +1 -1
  392. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js +8 -1
  393. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js.map +1 -1
  394. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js +6 -2
  395. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js.map +1 -1
  396. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js +6 -2
  397. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js.map +1 -1
  398. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +1 -1
  399. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts +2 -2
  400. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js +2 -2
  401. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts +2 -2
  402. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +1 -1
  403. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js +13 -6
  404. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js.map +1 -1
  405. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.d.ts +1 -0
  406. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.d.ts.map +1 -1
  407. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.js +4 -1
  408. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.js.map +1 -1
  409. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts +1 -0
  410. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -1
  411. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js +10 -0
  412. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js.map +1 -1
  413. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts +4 -2
  414. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts.map +1 -1
  415. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.js.map +1 -1
  416. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts.map +1 -1
  417. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js +12 -1
  418. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js.map +1 -1
  419. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.d.ts.map +1 -1
  420. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js +2 -5
  421. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js.map +1 -1
  422. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js +3 -0
  423. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js.map +1 -1
  424. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js +1 -1
  425. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js.map +1 -1
  426. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js +1 -1
  427. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js.map +1 -1
  428. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +1 -1
  429. package/front_end/third_party/puppeteer/package/lib/types.d.ts +10 -6
  430. package/front_end/third_party/puppeteer/package/package.json +17 -17
  431. package/front_end/ui/components/code_highlighter/CodeHighlighter.ts +1 -1
  432. package/front_end/ui/components/data_grid/DataGrid.ts +8 -9
  433. package/front_end/ui/components/data_grid/DataGridController.ts +3 -1
  434. package/front_end/ui/components/docs/panel_introduction_steps/basic.html +25 -0
  435. package/front_end/ui/components/docs/panel_introduction_steps/basic.ts +25 -0
  436. package/front_end/ui/components/input/input.ts +2 -2
  437. package/front_end/ui/components/linkifier/LinkifierUtils.ts +3 -1
  438. package/front_end/ui/components/panel_introduction_steps/PanelIntroductionSteps.ts +44 -0
  439. package/front_end/ui/components/panel_introduction_steps/panelIntroductionSteps.css +56 -0
  440. package/front_end/ui/components/panel_introduction_steps/panel_introduction_steps.ts +5 -0
  441. package/front_end/ui/components/render_coordinator/RenderCoordinator.ts +3 -4
  442. package/front_end/ui/components/text_editor/TextEditor.ts +1 -1
  443. package/front_end/ui/components/text_editor/config.ts +1 -35
  444. package/front_end/ui/components/text_editor/javascript.ts +8 -8
  445. package/front_end/ui/components/tree_outline/TreeOutline.ts +10 -9
  446. package/front_end/ui/components/tree_outline/treeOutline.css +1 -1
  447. package/front_end/ui/legacy/ARIAUtils.ts +4 -2
  448. package/front_end/ui/legacy/ContextMenu.ts +14 -0
  449. package/front_end/ui/legacy/DockController.ts +2 -1
  450. package/front_end/ui/legacy/SettingsUI.ts +3 -3
  451. package/front_end/ui/legacy/SoftContextMenu.ts +43 -14
  452. package/front_end/ui/legacy/Toolbar.ts +16 -0
  453. package/front_end/ui/legacy/Treeoutline.ts +17 -7
  454. package/front_end/ui/legacy/UIUtils.ts +2 -2
  455. package/front_end/ui/legacy/View.ts +14 -8
  456. package/front_end/ui/legacy/ViewManager.ts +2 -1
  457. package/front_end/ui/legacy/ViewRegistration.ts +6 -0
  458. package/front_end/ui/legacy/Widget.ts +2 -1
  459. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +43 -11
  460. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +98 -48
  461. package/front_end/ui/legacy/components/data_grid/ViewportDataGrid.ts +4 -3
  462. package/front_end/ui/legacy/components/data_grid/dataGrid.css +24 -28
  463. package/front_end/ui/legacy/components/inline_editor/CSSAngle.ts +5 -11
  464. package/front_end/ui/legacy/components/inline_editor/CSSLength.ts +8 -1
  465. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +10 -7
  466. package/front_end/ui/legacy/components/perf_ui/LineLevelProfile.ts +11 -10
  467. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +7 -1
  468. package/front_end/ui/legacy/components/utils/ImagePreview.ts +12 -7
  469. package/front_end/ui/legacy/components/utils/Linkifier.ts +7 -5
  470. package/front_end/ui/legacy/reportView.css +1 -0
  471. package/front_end/ui/legacy/splitWidget.css +1 -1
  472. package/front_end/ui/legacy/tabbedPane.css +1 -0
  473. package/front_end/ui/legacy/themeColors.css +1 -1
  474. package/front_end/ui/legacy/toolbar.css +17 -1
  475. package/front_end/ui/legacy/utils/focus-changed.ts +3 -1
  476. package/inspector_overlay/.eslintrc.js +9 -0
  477. package/package.json +17 -17
  478. package/scripts/eslint_rules/lib/check_component_naming.js +4 -0
  479. package/scripts/eslint_rules/lib/es_modules_import.js +6 -0
  480. package/scripts/eslint_rules/lib/inject_checkbox_styles.js +121 -0
  481. package/scripts/eslint_rules/tests/es_modules_import_test.js +12 -0
  482. package/scripts/eslint_rules/tests/inject_checkbox_styles_test.js +127 -0
  483. package/front_end/models/issues_manager/descriptions/arAttributionEventSourceTriggerDataTooLarge.md +0 -4
  484. package/front_end/models/issues_manager/descriptions/arAttributionTriggerDataTooLarge.md +0 -4
  485. package/front_end/models/issues_manager/descriptions/arInvalidAttributionData.md +0 -8
  486. package/front_end/models/issues_manager/descriptions/arInvalidEventSourceTriggerData.md +0 -9
  487. package/front_end/models/issues_manager/descriptions/arInvalidTriggerDedupKey.md +0 -5
  488. package/front_end/models/issues_manager/descriptions/arInvalidTriggerPriority.md +0 -5
  489. package/front_end/models/issues_manager/descriptions/arMissingAttributionData.md +0 -7
@@ -766,7 +766,7 @@ export class DebuggerLanguagePluginManager implements
766
766
  rawModuleId: string,
767
767
  plugin: DebuggerLanguagePlugin,
768
768
  scripts: Array<SDK.Script.Script>,
769
- addRawModulePromise: Promise<Array<string>>,
769
+ addRawModulePromise: Promise<Array<Platform.DevToolsPath.UrlString>>,
770
770
  }>;
771
771
 
772
772
  constructor(
@@ -939,8 +939,8 @@ export class DebuggerLanguagePluginManager implements
939
939
  return {rawModuleId, plugin: null};
940
940
  }
941
941
 
942
- uiSourceCodeForURL(debuggerModel: SDK.DebuggerModel.DebuggerModel, url: string): Workspace.UISourceCode.UISourceCode
943
- |null {
942
+ uiSourceCodeForURL(debuggerModel: SDK.DebuggerModel.DebuggerModel, url: Platform.DevToolsPath.UrlString):
943
+ Workspace.UISourceCode.UISourceCode|null {
944
944
  const modelData = this.#debuggerModelToData.get(debuggerModel);
945
945
  if (modelData) {
946
946
  return modelData.getProject().uiSourceCodeForURL(url);
@@ -970,7 +970,8 @@ export class DebuggerLanguagePluginManager implements
970
970
  try {
971
971
  const sourceLocations = await plugin.rawLocationToSourceLocation(pluginLocation);
972
972
  for (const sourceLocation of sourceLocations) {
973
- const uiSourceCode = this.uiSourceCodeForURL(script.debuggerModel, sourceLocation.sourceFileURL);
973
+ const uiSourceCode = this.uiSourceCodeForURL(
974
+ script.debuggerModel, sourceLocation.sourceFileURL as Platform.DevToolsPath.UrlString);
974
975
  if (!uiSourceCode) {
975
976
  continue;
976
977
  }
@@ -1068,7 +1069,7 @@ export class DebuggerLanguagePluginManager implements
1068
1069
  const rawModuleId = rawModuleIdForScript(script);
1069
1070
  let rawModuleHandle = this.#rawModuleHandles.get(rawModuleId);
1070
1071
  if (!rawModuleHandle) {
1071
- const sourceFileURLsPromise = (async(): Promise<string[]> => {
1072
+ const sourceFileURLsPromise = (async(): Promise<Platform.DevToolsPath.UrlString[]> => {
1072
1073
  const console = Common.Console.Console.instance();
1073
1074
  const url = script.sourceURL;
1074
1075
  const symbolsUrl = (script.debugSymbols && script.debugSymbols.externalURL) || '';
@@ -1079,7 +1080,8 @@ export class DebuggerLanguagePluginManager implements
1079
1080
  }
1080
1081
  try {
1081
1082
  const code = (!symbolsUrl && url.startsWith('wasm://')) ? await script.getWasmBytecode() : undefined;
1082
- const sourceFileURLs = await plugin.addRawModule(rawModuleId, symbolsUrl, {url, code});
1083
+ const sourceFileURLs =
1084
+ await plugin.addRawModule(rawModuleId, symbolsUrl, {url, code}) as Platform.DevToolsPath.UrlString[];
1083
1085
  // Check that the handle isn't stale by now. This works because the code that assigns to
1084
1086
  // `rawModuleHandle` below will run before this code because of the `await` in the preceding
1085
1087
  // line. This is primarily to avoid logging the message below, which would give the developer
@@ -1298,7 +1300,7 @@ class ModelData {
1298
1300
  this.uiSourceCodeToScripts = new Map();
1299
1301
  }
1300
1302
 
1301
- addSourceFiles(script: SDK.Script.Script, urls: string[]): void {
1303
+ addSourceFiles(script: SDK.Script.Script, urls: Platform.DevToolsPath.UrlString[]): void {
1302
1304
  const initiator = script.createPageResourceLoadInitiator();
1303
1305
  for (const url of urls) {
1304
1306
  let uiSourceCode = this.project.uiSourceCodeForURL(url);
@@ -1316,7 +1318,7 @@ class ModelData {
1316
1318
  this.uiSourceCodeToScripts.set(uiSourceCode, [script]);
1317
1319
 
1318
1320
  const contentProvider = new SDK.CompilerSourceMappingContentProvider.CompilerSourceMappingContentProvider(
1319
- url as Platform.DevToolsPath.UrlString, Common.ResourceType.resourceTypes.SourceMapScript, initiator);
1321
+ url, Common.ResourceType.resourceTypes.SourceMapScript, initiator);
1320
1322
  const mimeType = Common.ResourceType.ResourceType.mimeFromURL(url) || 'text/javascript';
1321
1323
  this.project.addUISourceCodeWithProvider(uiSourceCode, contentProvider, null, mimeType);
1322
1324
  } else {
@@ -71,6 +71,13 @@ export class DebuggerWorkspaceBinding implements SDK.TargetManager.SDKModelObser
71
71
  this.#sourceMappings.push(sourceMapping);
72
72
  }
73
73
 
74
+ removeSourceMapping(sourceMapping: DebuggerSourceMapping): void {
75
+ const index = this.#sourceMappings.indexOf(sourceMapping);
76
+ if (index !== -1) {
77
+ this.#sourceMappings.splice(index, 1);
78
+ }
79
+ }
80
+
74
81
  private async computeAutoStepRanges(mode: SDK.DebuggerModel.StepMode, callFrame: SDK.DebuggerModel.CallFrame):
75
82
  Promise<RawLocationRange[]> {
76
83
  function contained(location: SDK.DebuggerModel.Location, range: RawLocationRange): boolean {
@@ -228,7 +235,7 @@ export class DebuggerWorkspaceBinding implements SDK.TargetManager.SDKModelObser
228
235
  }
229
236
 
230
237
  uiSourceCodeForSourceMapSourceURL(
231
- debuggerModel: SDK.DebuggerModel.DebuggerModel, url: string,
238
+ debuggerModel: SDK.DebuggerModel.DebuggerModel, url: Platform.DevToolsPath.UrlString,
232
239
  isContentScript: boolean): Workspace.UISourceCode.UISourceCode|null {
233
240
  const modelData = this.#debuggerModelToData.get(debuggerModel);
234
241
  if (!modelData) {
@@ -29,6 +29,7 @@
29
29
  */
30
30
 
31
31
  import * as Common from '../../core/common/common.js';
32
+ import type * as Platform from '../../core/platform/platform.js';
32
33
  import * as SDK from '../../core/sdk/sdk.js';
33
34
  import * as Workspace from '../workspace/workspace.js';
34
35
 
@@ -61,6 +62,12 @@ export class DefaultScriptMapping implements DebuggerSourceMapping {
61
62
  this.#uiSourceCodeToScriptsMap = new WeakMap();
62
63
  }
63
64
 
65
+ static createV8ScriptURL(script: SDK.Script.Script): Platform.DevToolsPath.UrlString {
66
+ const name = Common.ParsedURL.ParsedURL.extractName(script.sourceURL);
67
+ const url = 'debugger:///VM' + script.scriptId + (name ? ' ' + name : '') as Platform.DevToolsPath.UrlString;
68
+ return url;
69
+ }
70
+
64
71
  static scriptForUISourceCode(uiSourceCode: Workspace.UISourceCode.UISourceCode): SDK.Script.Script|null {
65
72
  const scripts = uiSourceCodeToScriptsMap.get(uiSourceCode);
66
73
  return scripts ? scripts.values().next().value : null;
@@ -90,8 +97,7 @@ export class DefaultScriptMapping implements DebuggerSourceMapping {
90
97
 
91
98
  private parsedScriptSource(event: Common.EventTarget.EventTargetEvent<SDK.Script.Script>): void {
92
99
  const script = event.data;
93
- const name = Common.ParsedURL.ParsedURL.extractName(script.sourceURL);
94
- const url = 'debugger:///VM' + script.scriptId + (name ? ' ' + name : '');
100
+ const url = DefaultScriptMapping.createV8ScriptURL(script);
95
101
 
96
102
  const uiSourceCode = this.#project.createUISourceCode(url, Common.ResourceType.resourceTypes.Script);
97
103
  this.#uiSourceCodeToScriptsMap.set(uiSourceCode, script);
@@ -107,7 +107,7 @@ export class IgnoreListManager implements SDK.TargetManager.SDKModelObserver<SDK
107
107
  return url ? this.isIgnoreListedURL(url) : false;
108
108
  }
109
109
 
110
- isIgnoreListedURL(url: string, isContentScript?: boolean): boolean {
110
+ isIgnoreListedURL(url: Platform.DevToolsPath.UrlString, isContentScript?: boolean): boolean {
111
111
  if (this.#isIgnoreListedURLCache.has(url)) {
112
112
  return Boolean(this.#isIgnoreListedURLCache.get(url));
113
113
  }
@@ -187,7 +187,7 @@ export class IgnoreListManager implements SDK.TargetManager.SDKModelObserver<SDK
187
187
  }
188
188
  }
189
189
 
190
- private uiSourceCodeURL(uiSourceCode: Workspace.UISourceCode.UISourceCode): string|null {
190
+ private uiSourceCodeURL(uiSourceCode: Workspace.UISourceCode.UISourceCode): Platform.DevToolsPath.UrlString|null {
191
191
  return uiSourceCode.project().type() === Workspace.Workspace.projectTypes.Debugger ? null : uiSourceCode.url();
192
192
  }
193
193
 
@@ -218,7 +218,7 @@ export class IgnoreListManager implements SDK.TargetManager.SDKModelObserver<SDK
218
218
  Common.Settings.Settings.instance().moduleSetting('skipContentScripts').set(false);
219
219
  }
220
220
 
221
- private ignoreListURL(url: string): void {
221
+ private ignoreListURL(url: Platform.DevToolsPath.UrlString): void {
222
222
  const regexPatterns = this.getSkipStackFramesPatternSetting().getAsArray();
223
223
  const regexValue = this.urlToRegExpString(url);
224
224
  if (!regexValue) {
@@ -239,7 +239,7 @@ export class IgnoreListManager implements SDK.TargetManager.SDKModelObserver<SDK
239
239
  this.getSkipStackFramesPatternSetting().setAsArray(regexPatterns);
240
240
  }
241
241
 
242
- private unIgnoreListURL(url: string): void {
242
+ private unIgnoreListURL(url: Platform.DevToolsPath.UrlString): void {
243
243
  let regexPatterns = this.getSkipStackFramesPatternSetting().getAsArray();
244
244
  const regexValue = IgnoreListManager.instance().urlToRegExpString(url);
245
245
  if (!regexValue) {
@@ -287,7 +287,7 @@ export class IgnoreListManager implements SDK.TargetManager.SDKModelObserver<SDK
287
287
  // This method is sniffed in tests.
288
288
  }
289
289
 
290
- private urlToRegExpString(url: string): string {
290
+ private urlToRegExpString(url: Platform.DevToolsPath.UrlString): string {
291
291
  const parsedURL = new Common.ParsedURL.ParsedURL(url);
292
292
  if (parsedURL.isAboutBlank() || parsedURL.isDataURL()) {
293
293
  return '';
@@ -38,7 +38,7 @@ import * as SDK from '../../core/sdk/sdk.js';
38
38
  import type * as Protocol from '../../generated/protocol.js';
39
39
  import * as Workspace from '../workspace/workspace.js';
40
40
 
41
- export function resourceForURL(url: string): SDK.Resource.Resource|null {
41
+ export function resourceForURL(url: Platform.DevToolsPath.UrlString): SDK.Resource.Resource|null {
42
42
  for (const resourceTreeModel of SDK.TargetManager.TargetManager.instance().models(
43
43
  SDK.ResourceTreeModel.ResourceTreeModel)) {
44
44
  const resource = resourceTreeModel.resourceForURL(url);
@@ -49,7 +49,7 @@ export function resourceForURL(url: string): SDK.Resource.Resource|null {
49
49
  return null;
50
50
  }
51
51
 
52
- export function displayNameForURL(url: string): string {
52
+ export function displayNameForURL(url: Platform.DevToolsPath.UrlString): string {
53
53
  if (!url) {
54
54
  return '';
55
55
  }
@@ -88,8 +88,9 @@ export function displayNameForURL(url: string): string {
88
88
  return displayName === '/' ? parsedURL.host + '/' : displayName;
89
89
  }
90
90
 
91
- export function metadataForURL(target: SDK.Target.Target, frameId: Protocol.Page.FrameId, url: string):
92
- Workspace.UISourceCode.UISourceCodeMetadata|null {
91
+ export function metadataForURL(
92
+ target: SDK.Target.Target, frameId: Protocol.Page.FrameId,
93
+ url: Platform.DevToolsPath.UrlString): Workspace.UISourceCode.UISourceCodeMetadata|null {
93
94
  const resourceTreeModel = target.model(SDK.ResourceTreeModel.ResourceTreeModel);
94
95
  if (!resourceTreeModel) {
95
96
  return null;
@@ -643,6 +643,10 @@ export interface JSONMode {
643
643
  }
644
644
 
645
645
  const emulatedDevices = [
646
+ // This is used by a python script to keep this list up-to-date with
647
+ // chromedriver native code.
648
+ // See //chrome/test/chromedriver/embed_mobile_devices_in_cpp.py in Chromium.
649
+ // DEVICE-LIST-BEGIN
646
650
  {
647
651
  'order': 10,
648
652
  'show-by-default': true,
@@ -1653,7 +1657,11 @@ const emulatedDevices = [
1653
1657
  },
1654
1658
  {
1655
1659
  'show-by-default': false,
1660
+ /* DEVICE-LIST-IF-JS */
1656
1661
  'title': i18nLazyString(UIStrings.laptopWithTouch),
1662
+ /* DEVICE-LIST-ELSE
1663
+ 'title': 'Laptop with touch',
1664
+ DEVICE-LIST-END-IF */
1657
1665
  'screen': {
1658
1666
  'horizontal': {'width': 1280, 'height': 950},
1659
1667
  'device-pixel-ratio': 1,
@@ -1666,7 +1674,11 @@ const emulatedDevices = [
1666
1674
  },
1667
1675
  {
1668
1676
  'show-by-default': false,
1677
+ /* DEVICE-LIST-IF-JS */
1669
1678
  'title': i18nLazyString(UIStrings.laptopWithHiDPIScreen),
1679
+ /* DEVICE-LIST-ELSE
1680
+ 'title': 'Laptop with HiDPI screen',
1681
+ DEVICE-LIST-END-IF */
1670
1682
  'screen': {
1671
1683
  'horizontal': {'width': 1440, 'height': 900},
1672
1684
  'device-pixel-ratio': 2,
@@ -1679,7 +1691,11 @@ const emulatedDevices = [
1679
1691
  },
1680
1692
  {
1681
1693
  'show-by-default': false,
1694
+ /* DEVICE-LIST-IF-JS */
1682
1695
  'title': i18nLazyString(UIStrings.laptopWithMDPIScreen),
1696
+ /* DEVICE-LIST-ELSE
1697
+ 'title': 'Laptop with MDPI screen',
1698
+ DEVICE-LIST-END-IF */
1683
1699
  'screen': {
1684
1700
  'horizontal': {'width': 1280, 'height': 800},
1685
1701
  'device-pixel-ratio': 1,
@@ -1719,4 +1735,5 @@ const emulatedDevices = [
1719
1735
  {'platform': 'Android', 'platformVersion': '6.0.1', 'architecture': '', 'model': 'Moto G (4)', 'mobile': true},
1720
1736
  'type': 'phone',
1721
1737
  },
1738
+ // DEVICE-LIST-END
1722
1739
  ];
@@ -28,6 +28,7 @@
28
28
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
29
  */
30
30
 
31
+ import type * as Platform from '../../core/platform/platform.js';
31
32
  import type * as PublicAPI from '../../../extension-api/ExtensionAPI'; // eslint-disable-line rulesdir/es_modules_import
32
33
  import type * as HAR from '../har/har.js';
33
34
 
@@ -151,7 +152,8 @@ export namespace PrivateAPI {
151
152
  evaluateOptions?: EvaluateOptions,
152
153
  };
153
154
  type SetSidebarPageRequest = {command: Commands.SetSidebarPage, id: string, page: string};
154
- type OpenResourceRequest = {command: Commands.OpenResource, url: string, lineNumber: number, columnNumber: number};
155
+ type OpenResourceRequest =
156
+ {command: Commands.OpenResource, url: Platform.DevToolsPath.UrlString, lineNumber: number, columnNumber: number};
155
157
  type SetOpenResourceHandlerRequest = {command: Commands.SetOpenResourceHandler, handlerPresent: boolean};
156
158
  type SetThemeChangeHandlerRequest = {command: Commands.SetThemeChangeHandler, handlerPresent: boolean};
157
159
  type ReloadRequest = {
@@ -606,7 +608,8 @@ self.injectedExtensionAPI = function(
606
608
  },
607
609
 
608
610
  openResource: function(
609
- url: string, lineNumber: number, columnNumber?: number, _callback?: (response: unknown) => unknown): void {
611
+ url: Platform.DevToolsPath.UrlString, lineNumber: number, columnNumber?: number,
612
+ _callback?: (response: unknown) => unknown): void {
610
613
  const callbackArg = extractCallbackArgument(arguments);
611
614
  // Handle older API:
612
615
  const columnNumberArg = typeof columnNumber === 'number' ? columnNumber : 0;
@@ -29,6 +29,7 @@
29
29
  */
30
30
 
31
31
  import * as _ProtocolClient from '../../core/protocol_client/protocol_client.js'; // eslint-disable-line @typescript-eslint/no-unused-vars
32
+ import type * as Platform from '../../core/platform/platform.js';
32
33
  import * as SDK from '../../core/sdk/sdk.js';
33
34
  import * as UI from '../../ui/legacy/legacy.js';
34
35
 
@@ -127,7 +128,7 @@ export class ExtensionSidebarPane extends UI.View.SimpleView {
127
128
  private idInternal: string;
128
129
  private extensionView?: ExtensionView;
129
130
  private objectPropertiesView?: ExtensionNotifierView;
130
- constructor(server: ExtensionServer, panelName: string, title: string, id: string) {
131
+ constructor(server: ExtensionServer, panelName: string, title: Platform.UIString.LocalizedString, id: string) {
131
132
  super(title);
132
133
  this.element.classList.add('fill');
133
134
  this.panelNameInternal = panelName;
@@ -31,8 +31,11 @@
31
31
  // TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
32
32
  /* eslint-disable @typescript-eslint/naming-convention */
33
33
 
34
+ // TODO(crbug.com/1253323): Casts to UrlString will be removed from this file when migration to branded types is complete.
35
+
34
36
  import * as Common from '../../core/common/common.js';
35
37
  import * as Host from '../../core/host/host.js';
38
+ import * as i18n from '../../core/i18n/i18n.js';
36
39
  import * as Platform from '../../core/platform/platform.js';
37
40
  import * as _ProtocolClient from '../../core/protocol_client/protocol_client.js'; // eslint-disable-line @typescript-eslint/no-unused-vars
38
41
  import * as Root from '../../core/root/root.js';
@@ -363,8 +366,8 @@ export class ExtensionServer extends Common.ObjectWrapper.ObjectWrapper<EventTyp
363
366
  const page = this.expandResourcePath(this.getExtensionOrigin(port), message.page) as string;
364
367
  let persistentId = this.getExtensionOrigin(port) + message.title;
365
368
  persistentId = persistentId.replace(/\s/g, '');
366
- const panelView =
367
- new ExtensionServerPanelView(persistentId, message.title, new ExtensionPanel(this, persistentId, id, page));
369
+ const panelView = new ExtensionServerPanelView(
370
+ persistentId, i18n.i18n.lockedString(message.title), new ExtensionPanel(this, persistentId, id, page));
368
371
  this.clientObjects.set(id, panelView);
369
372
  UI.InspectorView.InspectorView.instance().addPanel(panelView);
370
373
  return this.status.OK();
@@ -438,7 +441,7 @@ export class ExtensionServer extends Common.ObjectWrapper.ObjectWrapper<EventTyp
438
441
  return this.status.E_BADARG('command', `expected ${PrivateAPI.Commands.CreateSidebarPane}`);
439
442
  }
440
443
  const id = message.id;
441
- const sidebar = new ExtensionSidebarPane(this, message.panel, message.title, id);
444
+ const sidebar = new ExtensionSidebarPane(this, message.panel, i18n.i18n.lockedString(message.title), id);
442
445
  this.sidebarPanesInternal.push(sidebar);
443
446
  this.clientObjects.set(id, sidebar);
444
447
  this.dispatchEventToListeners(Events.SidebarPaneAdded, sidebar);
@@ -500,7 +503,8 @@ export class ExtensionServer extends Common.ObjectWrapper.ObjectWrapper<EventTyp
500
503
  if (message.command !== PrivateAPI.Commands.OpenResource) {
501
504
  return this.status.E_BADARG('command', `expected ${PrivateAPI.Commands.OpenResource}`);
502
505
  }
503
- const uiSourceCode = Workspace.Workspace.WorkspaceImpl.instance().uiSourceCodeForURL(message.url);
506
+ const uiSourceCode =
507
+ Workspace.Workspace.WorkspaceImpl.instance().uiSourceCodeForURL(message.url as Platform.DevToolsPath.UrlString);
504
508
  if (uiSourceCode) {
505
509
  void Common.Revealer.reveal(uiSourceCode.uiLocation(message.lineNumber, message.columnNumber));
506
510
  return this.status.OK();
@@ -674,7 +678,7 @@ export class ExtensionServer extends Common.ObjectWrapper.ObjectWrapper<EventTyp
674
678
  if (message.command !== PrivateAPI.Commands.GetResourceContent) {
675
679
  return this.status.E_BADARG('command', `expected ${PrivateAPI.Commands.GetResourceContent}`);
676
680
  }
677
- const url = (message.url as string);
681
+ const url = message.url as Platform.DevToolsPath.UrlString;
678
682
  const contentProvider = Workspace.Workspace.WorkspaceImpl.instance().uiSourceCodeForURL(url) ||
679
683
  Bindings.ResourceUtils.resourceForURL(url);
680
684
  if (!contentProvider) {
@@ -695,9 +699,10 @@ export class ExtensionServer extends Common.ObjectWrapper.ObjectWrapper<EventTyp
695
699
  this.dispatchCallback(requestId, port, response);
696
700
  }
697
701
 
698
- const uiSourceCode = Workspace.Workspace.WorkspaceImpl.instance().uiSourceCodeForURL(url);
702
+ const uiSourceCode =
703
+ Workspace.Workspace.WorkspaceImpl.instance().uiSourceCodeForURL(url as Platform.DevToolsPath.UrlString);
699
704
  if (!uiSourceCode || !uiSourceCode.contentType().isDocumentOrScriptOrStyleSheet()) {
700
- const resource = SDK.ResourceTreeModel.ResourceTreeModel.resourceForURL(url);
705
+ const resource = SDK.ResourceTreeModel.ResourceTreeModel.resourceForURL(url as Platform.DevToolsPath.UrlString);
701
706
  if (!resource) {
702
707
  return this.status.E_NOTFOUND(url);
703
708
  }
@@ -1132,7 +1137,7 @@ class ExtensionServerPanelView extends UI.View.SimpleView {
1132
1137
  private readonly name: string;
1133
1138
  private readonly panel: UI.Panel.Panel;
1134
1139
 
1135
- constructor(name: string, title: string, panel: UI.Panel.Panel) {
1140
+ constructor(name: string, title: Platform.UIString.LocalizedString, panel: UI.Panel.Panel) {
1136
1141
  super(title);
1137
1142
  this.name = name;
1138
1143
  this.panel = panel;
@@ -11,19 +11,12 @@ import type {MarkdownIssueDescription} from './MarkdownIssueDescription.js';
11
11
  export const enum IssueCode {
12
12
  PermissionPolicyDisabled = 'AttributionReportingIssue::PermissionPolicyDisabled',
13
13
  InvalidAttributionSourceEventId = 'AttributionReportingIssue::InvalidAttributionSourceEventId',
14
- InvalidAttributionData = 'AttributionReportingIssue::InvalidAttributionData',
15
- MissingAttributionData = 'AttributionReportingIssue::MissingAttributionData',
16
14
  AttributionSourceUntrustworthyFrameOrigin = 'AttributionReportingIssue::AttributionSourceUntrustworthyFrameOrigin',
17
15
  AttributionSourceUntrustworthyOrigin = 'AttributionReportingIssue::AttributionSourceUntrustworthyOrigin',
18
16
  AttributionUntrustworthyFrameOrigin = 'AttributionReportingIssue::AttributionUntrustworthyFrameOrigin',
19
17
  AttributionUntrustworthyOrigin = 'AttributionReportingIssue::AttributionUntrustworthyOrigin',
20
- AttributionTriggerDataTooLarge = 'AttributionReportingIssue::AttributionTriggerDataTooLarge',
21
- AttributionEventSourceTriggerDataTooLarge = 'AttributionReportingIssue::AttributionEventSourceTriggerDataTooLarge',
22
18
  InvalidAttributionSourceExpiry = 'AttributionReportingIssue::InvalidAttributionSourceExpiry',
23
19
  InvalidAttributionSourcePriority = 'AttributionReportingIssue::InvalidAttributionSourcePriority',
24
- InvalidEventSourceTriggerData = 'AttributionReportingIssue::InvalidEventSourceTriggerData',
25
- InvalidTriggerPriority = 'AttributionReportingIssue::InvalidTriggerPriority',
26
- InvalidTriggerDedupKey = 'AttributionReportingIssue::InvalidTriggerDedupKey',
27
20
  }
28
21
 
29
22
  function getIssueCode(details: Protocol.Audits.AttributionReportingIssueDetails): IssueCode {
@@ -32,29 +25,16 @@ function getIssueCode(details: Protocol.Audits.AttributionReportingIssueDetails)
32
25
  return IssueCode.PermissionPolicyDisabled;
33
26
  case Protocol.Audits.AttributionReportingIssueType.InvalidAttributionSourceEventId:
34
27
  return IssueCode.InvalidAttributionSourceEventId;
35
- case Protocol.Audits.AttributionReportingIssueType.InvalidAttributionData:
36
- return details.invalidParameter !== undefined ? IssueCode.InvalidAttributionData :
37
- IssueCode.MissingAttributionData;
38
28
  case Protocol.Audits.AttributionReportingIssueType.AttributionSourceUntrustworthyOrigin:
39
29
  return details.frame !== undefined ? IssueCode.AttributionSourceUntrustworthyFrameOrigin :
40
30
  IssueCode.AttributionSourceUntrustworthyOrigin;
41
31
  case Protocol.Audits.AttributionReportingIssueType.AttributionUntrustworthyOrigin:
42
32
  return details.frame !== undefined ? IssueCode.AttributionUntrustworthyFrameOrigin :
43
33
  IssueCode.AttributionUntrustworthyOrigin;
44
- case Protocol.Audits.AttributionReportingIssueType.AttributionTriggerDataTooLarge:
45
- return IssueCode.AttributionTriggerDataTooLarge;
46
- case Protocol.Audits.AttributionReportingIssueType.AttributionEventSourceTriggerDataTooLarge:
47
- return IssueCode.AttributionEventSourceTriggerDataTooLarge;
48
34
  case Protocol.Audits.AttributionReportingIssueType.InvalidAttributionSourceExpiry:
49
35
  return IssueCode.InvalidAttributionSourceExpiry;
50
36
  case Protocol.Audits.AttributionReportingIssueType.InvalidAttributionSourcePriority:
51
37
  return IssueCode.InvalidAttributionSourcePriority;
52
- case Protocol.Audits.AttributionReportingIssueType.InvalidEventSourceTriggerData:
53
- return IssueCode.InvalidEventSourceTriggerData;
54
- case Protocol.Audits.AttributionReportingIssueType.InvalidTriggerPriority:
55
- return IssueCode.InvalidTriggerPriority;
56
- case Protocol.Audits.AttributionReportingIssueType.InvalidTriggerDedupKey:
57
- return IssueCode.InvalidTriggerDedupKey;
58
38
  }
59
39
  }
60
40
 
@@ -87,16 +67,6 @@ export class AttributionReportingIssue extends Issue<IssueCode> {
87
67
  linkTitle: 'attributionsourceeventid attribute',
88
68
  }],
89
69
  };
90
- case IssueCode.InvalidAttributionData:
91
- return {
92
- file: 'arInvalidAttributionData.md',
93
- links: [],
94
- };
95
- case IssueCode.MissingAttributionData:
96
- return {
97
- file: 'arMissingAttributionData.md',
98
- links: [],
99
- };
100
70
  case IssueCode.AttributionSourceUntrustworthyFrameOrigin:
101
71
  return {
102
72
  file: 'arAttributionSourceUntrustworthyFrameOrigin.md',
@@ -128,16 +98,6 @@ export class AttributionReportingIssue extends Issue<IssueCode> {
128
98
  file: 'arAttributionUntrustworthyOrigin.md',
129
99
  links: [],
130
100
  };
131
- case IssueCode.AttributionTriggerDataTooLarge:
132
- return {
133
- file: 'arAttributionTriggerDataTooLarge.md',
134
- links: [],
135
- };
136
- case IssueCode.AttributionEventSourceTriggerDataTooLarge:
137
- return {
138
- file: 'arAttributionEventSourceTriggerDataTooLarge.md',
139
- links: [],
140
- };
141
101
  case IssueCode.InvalidAttributionSourceExpiry:
142
102
  return {
143
103
  file: 'arInvalidAttributionSourceExpiry.md',
@@ -156,29 +116,6 @@ export class AttributionReportingIssue extends Issue<IssueCode> {
156
116
  linkTitle: 'attributionsourcepriority attribute',
157
117
  }],
158
118
  };
159
- case IssueCode.InvalidEventSourceTriggerData:
160
- return {
161
- file: 'arInvalidEventSourceTriggerData.md',
162
- links: [],
163
- };
164
- case IssueCode.InvalidTriggerPriority:
165
- return {
166
- file: 'arInvalidTriggerPriority.md',
167
- links: [{
168
- link:
169
- 'https://developer.chrome.com/docs/privacy-sandbox/attribution-reporting-event-guide/#prioritize-specific-conversions',
170
- linkTitle: 'Prioritizing specific conversions',
171
- }],
172
- };
173
- case IssueCode.InvalidTriggerDedupKey:
174
- return {
175
- file: 'arInvalidTriggerDedupKey.md',
176
- links: [{
177
- link:
178
- 'https://developer.chrome.com/docs/privacy-sandbox/attribution-reporting-event-guide/#deduplicate-reports',
179
- linkTitle: 'Deduplicating reports',
180
- }],
181
- };
182
119
  }
183
120
  }
184
121
 
@@ -426,6 +426,11 @@ const samePartyCrossPartyContextSet: LazyMarkdownIssueDescription = {
426
426
  }],
427
427
  };
428
428
 
429
+ const attributeValueExceedsMaxSize: LazyMarkdownIssueDescription = {
430
+ file: 'CookieAttributeValueExceedsMaxSize.md',
431
+ links: [],
432
+ };
433
+
429
434
  const issueDescriptions: Map<string, LazyMarkdownIssueDescription> = new Map([
430
435
  ['CookieIssue::ExcludeSameSiteUnspecifiedTreatedAsLax::ReadCookie', sameSiteUnspecifiedErrorRead],
431
436
  ['CookieIssue::ExcludeSameSiteUnspecifiedTreatedAsLax::SetCookie', sameSiteUnspecifiedErrorSet],
@@ -455,4 +460,6 @@ const issueDescriptions: Map<string, LazyMarkdownIssueDescription> = new Map([
455
460
  ['CookieIssue::ExcludeContextDowngrade::SetCookie::Insecure', sameSiteExcludeContextDowngradeSet(false)],
456
461
  ['CookieIssue::ExcludeInvalidSameParty::SetCookie', sameSiteInvalidSameParty],
457
462
  ['CookieIssue::ExcludeSamePartyCrossPartyContext::SetCookie', samePartyCrossPartyContextSet],
463
+ ['CookieIssue::WarnAttributeValueExceedsMaxSize::ReadCookie', attributeValueExceedsMaxSize],
464
+ ['CookieIssue::WarnAttributeValueExceedsMaxSize::SetCookie', attributeValueExceedsMaxSize],
458
465
  ]);