chrome-devtools-frontend 1.0.1367881 → 1.0.1376716

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 (1157) hide show
  1. package/.vscode/extensions.json +4 -4
  2. package/config/gni/devtools_grd_files.gni +30 -8
  3. package/config/gni/devtools_image_files.gni +3 -0
  4. package/docs/README.md +1 -5
  5. package/docs/checklist/javascript.md +45 -8
  6. package/docs/contributing/design.md +1 -1
  7. package/docs/contributing/settings-experiments-features.md +1 -1
  8. package/docs/cookbook/README.md +12 -0
  9. package/docs/cookbook/create_new_issues.md +91 -0
  10. package/docs/cookbook/dependencies.md +103 -0
  11. package/docs/cookbook/localization.md +320 -0
  12. package/docs/cookbook/navbar.md +8 -0
  13. package/docs/cookbook/release_management.md +60 -0
  14. package/docs/cookbook/uma_metrics.md +121 -0
  15. package/docs/dependencies.md +1 -100
  16. package/docs/l10n.md +1 -295
  17. package/docs/release_management.md +1 -53
  18. package/extensions/cxx_debugging/e2e/standalone/MemoryInspector_test.ts +1 -1
  19. package/extensions/cxx_debugging/e2e/tsconfig.json +1 -0
  20. package/extensions/cxx_debugging/src/ExtensionOptions.ts +6 -7
  21. package/extensions/cxx_debugging/tests/CreditsItem_test.ts +4 -4
  22. package/front_end/.eslintrc.js +0 -1
  23. package/front_end/Images/src/center-focus-weak.svg +1 -0
  24. package/front_end/Images/src/history.svg +3 -0
  25. package/front_end/Images/src/home.svg +1 -0
  26. package/front_end/core/common/Color.ts +10 -0
  27. package/front_end/core/common/ResourceType.test.ts +26 -26
  28. package/front_end/core/common/ResourceType.ts +21 -12
  29. package/front_end/core/common/Revealer.ts +5 -0
  30. package/front_end/core/common/Settings.ts +5 -1
  31. package/front_end/core/host/AidaClient.ts +58 -0
  32. package/front_end/core/host/InspectorFrontendHost.ts +1 -1
  33. package/front_end/core/host/InspectorFrontendHostAPI.ts +8 -1
  34. package/front_end/core/host/UserMetrics.ts +16 -13
  35. package/front_end/core/i18n/locales/af.json +598 -109
  36. package/front_end/core/i18n/locales/am.json +607 -118
  37. package/front_end/core/i18n/locales/ar.json +888 -399
  38. package/front_end/core/i18n/locales/as.json +603 -114
  39. package/front_end/core/i18n/locales/az.json +606 -117
  40. package/front_end/core/i18n/locales/be.json +599 -110
  41. package/front_end/core/i18n/locales/bg.json +598 -109
  42. package/front_end/core/i18n/locales/bn.json +609 -120
  43. package/front_end/core/i18n/locales/bs.json +607 -118
  44. package/front_end/core/i18n/locales/ca.json +601 -112
  45. package/front_end/core/i18n/locales/cs.json +605 -116
  46. package/front_end/core/i18n/locales/cy.json +603 -114
  47. package/front_end/core/i18n/locales/da.json +599 -110
  48. package/front_end/core/i18n/locales/de.json +604 -115
  49. package/front_end/core/i18n/locales/el.json +596 -107
  50. package/front_end/core/i18n/locales/en-GB.json +599 -110
  51. package/front_end/core/i18n/locales/es-419.json +600 -111
  52. package/front_end/core/i18n/locales/es.json +602 -113
  53. package/front_end/core/i18n/locales/et.json +601 -112
  54. package/front_end/core/i18n/locales/eu.json +605 -116
  55. package/front_end/core/i18n/locales/fa.json +609 -120
  56. package/front_end/core/i18n/locales/fi.json +598 -109
  57. package/front_end/core/i18n/locales/fil.json +605 -116
  58. package/front_end/core/i18n/locales/fr-CA.json +602 -113
  59. package/front_end/core/i18n/locales/fr.json +600 -111
  60. package/front_end/core/i18n/locales/gl.json +595 -106
  61. package/front_end/core/i18n/locales/gu.json +605 -116
  62. package/front_end/core/i18n/locales/he.json +603 -114
  63. package/front_end/core/i18n/locales/hi.json +600 -111
  64. package/front_end/core/i18n/locales/hr.json +600 -111
  65. package/front_end/core/i18n/locales/hu.json +600 -111
  66. package/front_end/core/i18n/locales/hy.json +599 -110
  67. package/front_end/core/i18n/locales/id.json +603 -114
  68. package/front_end/core/i18n/locales/is.json +598 -109
  69. package/front_end/core/i18n/locales/it.json +602 -113
  70. package/front_end/core/i18n/locales/ja.json +596 -107
  71. package/front_end/core/i18n/locales/ka.json +597 -108
  72. package/front_end/core/i18n/locales/kk.json +884 -395
  73. package/front_end/core/i18n/locales/km.json +605 -116
  74. package/front_end/core/i18n/locales/kn.json +606 -117
  75. package/front_end/core/i18n/locales/ko.json +591 -102
  76. package/front_end/core/i18n/locales/ky.json +599 -110
  77. package/front_end/core/i18n/locales/lo.json +608 -119
  78. package/front_end/core/i18n/locales/lt.json +597 -108
  79. package/front_end/core/i18n/locales/lv.json +606 -117
  80. package/front_end/core/i18n/locales/mk.json +885 -396
  81. package/front_end/core/i18n/locales/ml.json +601 -112
  82. package/front_end/core/i18n/locales/mn.json +599 -110
  83. package/front_end/core/i18n/locales/mr.json +601 -112
  84. package/front_end/core/i18n/locales/ms.json +602 -113
  85. package/front_end/core/i18n/locales/my.json +604 -115
  86. package/front_end/core/i18n/locales/ne.json +609 -120
  87. package/front_end/core/i18n/locales/nl.json +597 -108
  88. package/front_end/core/i18n/locales/no.json +601 -112
  89. package/front_end/core/i18n/locales/or.json +601 -112
  90. package/front_end/core/i18n/locales/pa.json +600 -111
  91. package/front_end/core/i18n/locales/pl.json +601 -112
  92. package/front_end/core/i18n/locales/pt-PT.json +600 -111
  93. package/front_end/core/i18n/locales/pt.json +596 -107
  94. package/front_end/core/i18n/locales/ro.json +601 -112
  95. package/front_end/core/i18n/locales/ru.json +609 -120
  96. package/front_end/core/i18n/locales/si.json +603 -114
  97. package/front_end/core/i18n/locales/sk.json +599 -110
  98. package/front_end/core/i18n/locales/sl.json +601 -112
  99. package/front_end/core/i18n/locales/sq.json +602 -113
  100. package/front_end/core/i18n/locales/sr-Latn.json +598 -109
  101. package/front_end/core/i18n/locales/sr.json +598 -109
  102. package/front_end/core/i18n/locales/sv.json +600 -111
  103. package/front_end/core/i18n/locales/sw.json +606 -117
  104. package/front_end/core/i18n/locales/ta.json +892 -403
  105. package/front_end/core/i18n/locales/te.json +604 -115
  106. package/front_end/core/i18n/locales/th.json +597 -108
  107. package/front_end/core/i18n/locales/tr.json +601 -112
  108. package/front_end/core/i18n/locales/uk.json +598 -109
  109. package/front_end/core/i18n/locales/ur.json +604 -115
  110. package/front_end/core/i18n/locales/uz.json +599 -110
  111. package/front_end/core/i18n/locales/vi.json +602 -113
  112. package/front_end/core/i18n/locales/zh-HK.json +599 -110
  113. package/front_end/core/i18n/locales/zh-TW.json +595 -106
  114. package/front_end/core/i18n/locales/zh.json +601 -112
  115. package/front_end/core/i18n/locales/zu.json +607 -118
  116. package/front_end/core/root/Runtime.ts +15 -7
  117. package/front_end/{panels/animation → core/sdk}/AnimationModel.test.ts +85 -6
  118. package/front_end/{panels/animation → core/sdk}/AnimationModel.ts +302 -36
  119. package/front_end/core/sdk/CSSContainerQuery.ts +4 -2
  120. package/front_end/core/sdk/CSSMatchedStyles.test.ts +4 -0
  121. package/front_end/core/sdk/CSSMatchedStyles.ts +13 -10
  122. package/front_end/core/sdk/CSSMetadata.ts +6 -0
  123. package/front_end/core/sdk/CSSStyleDeclaration.test.ts +10 -0
  124. package/front_end/core/sdk/CSSStyleDeclaration.ts +1 -1
  125. package/front_end/core/sdk/DOMModel.ts +3 -3
  126. package/front_end/core/sdk/DebuggerModel.test.ts +2 -0
  127. package/front_end/core/sdk/EmulationModel.ts +32 -0
  128. package/front_end/core/sdk/EnhancedTracesParser.test.ts +4 -4
  129. package/front_end/core/sdk/EnhancedTracesParser.ts +4 -5
  130. package/front_end/core/sdk/RehydratingConnection.test.ts +190 -0
  131. package/front_end/core/sdk/RehydratingConnection.ts +310 -0
  132. package/front_end/core/sdk/RehydratingObject.ts +26 -2
  133. package/front_end/core/sdk/RuntimeModel.ts +31 -0
  134. package/front_end/core/sdk/Script.ts +1 -1
  135. package/front_end/core/sdk/TraceObject.ts +8 -0
  136. package/front_end/core/sdk/sdk.ts +2 -0
  137. package/front_end/devtools_compatibility.js +0 -1
  138. package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +95 -74
  139. package/front_end/entrypoints/main/MainImpl.ts +10 -0
  140. package/front_end/generated/InspectorBackendCommands.js +10 -9
  141. package/front_end/generated/SupportedCSSProperties.js +15 -1
  142. package/front_end/generated/protocol-mapping.d.ts +4 -3
  143. package/front_end/generated/protocol-proxy-api.d.ts +4 -3
  144. package/front_end/generated/protocol.ts +31 -2
  145. package/front_end/legacy_test_runner/network_test_runner/network_test_runner.js +1 -0
  146. package/front_end/models/har/HARFormat.ts +1 -0
  147. package/front_end/models/har/Importer.test.ts +16 -2
  148. package/front_end/models/har/Importer.ts +2 -2
  149. package/front_end/models/har/Log.test.ts +23 -0
  150. package/front_end/models/har/Log.ts +6 -4
  151. package/front_end/models/heap_snapshot_model/HeapSnapshotModel.ts +4 -2
  152. package/front_end/models/issues_manager/AttributionReportingIssue.ts +58 -18
  153. package/front_end/models/issues_manager/CookieIssue.ts +12 -0
  154. package/front_end/models/issues_manager/descriptions/arInvalidInfoHeader.md +5 -0
  155. package/front_end/models/issues_manager/descriptions/arNavigationRegistrationUniqueScopeAlreadySet.md +5 -0
  156. package/front_end/models/issues_manager/descriptions/arNoRegisterOsSourceHeader.md +5 -0
  157. package/front_end/models/issues_manager/descriptions/arNoRegisterOsTriggerHeader.md +5 -0
  158. package/front_end/models/issues_manager/descriptions/arNoRegisterSourceHeader.md +5 -0
  159. package/front_end/models/issues_manager/descriptions/arNoRegisterTriggerHeader.md +5 -0
  160. package/front_end/models/issues_manager/descriptions/arNoWebOrOsSupport.md +4 -0
  161. package/front_end/models/issues_manager/descriptions/placeholderDescriptionForInvisibleIssues.md +3 -0
  162. package/front_end/models/javascript_metadata/NativeFunctions.js +69 -18
  163. package/front_end/models/live-metrics/LiveMetrics.ts +116 -19
  164. package/front_end/models/live-metrics/web-vitals-injected/OnEachInteraction.ts +24 -61
  165. package/front_end/models/live-metrics/web-vitals-injected/spec/spec.ts +49 -21
  166. package/front_end/models/live-metrics/web-vitals-injected/web-vitals-injected.ts +43 -5
  167. package/front_end/models/timeline_model/TimelineModelFilter.ts +2 -2
  168. package/front_end/models/trace/Processor.ts +5 -1
  169. package/front_end/models/trace/extras/ThirdParties.test.ts +117 -0
  170. package/front_end/models/trace/extras/ThirdParties.ts +207 -0
  171. package/front_end/models/trace/extras/extras.ts +1 -0
  172. package/front_end/models/trace/handlers/FramesHandler.ts +12 -5
  173. package/front_end/models/trace/handlers/InitiatorsHandler.test.ts +40 -0
  174. package/front_end/models/trace/handlers/InitiatorsHandler.ts +9 -0
  175. package/front_end/models/trace/handlers/LayoutShiftsHandler.ts +17 -0
  176. package/front_end/models/trace/handlers/NetworkRequestsHandler.ts +2 -2
  177. package/front_end/models/trace/handlers/RendererHandler.test.ts +4 -4
  178. package/front_end/models/trace/helpers/Timing.test.ts +29 -0
  179. package/front_end/models/trace/helpers/Timing.ts +18 -0
  180. package/front_end/models/trace/helpers/TreeHelpers.test.ts +52 -34
  181. package/front_end/models/trace/helpers/TreeHelpers.ts +135 -45
  182. package/front_end/models/trace/insights/CumulativeLayoutShift.test.ts +22 -0
  183. package/front_end/models/trace/insights/CumulativeLayoutShift.ts +62 -20
  184. package/front_end/models/trace/insights/ThirdPartyWeb.ts +13 -183
  185. package/front_end/models/trace/lantern/core/NetworkAnalyzer.test.ts +4 -4
  186. package/front_end/models/trace/lantern/core/NetworkAnalyzer.ts +9 -5
  187. package/front_end/models/trace/lantern/simulation/Simulator.ts +1 -1
  188. package/front_end/models/trace/lantern/testing/MetricTestUtils.ts +4 -0
  189. package/front_end/models/trace/types/TraceEvents.ts +68 -2
  190. package/front_end/panels/accessibility/AccessibilitySidebarView.ts +1 -1
  191. package/front_end/panels/animation/AnimationGroupPreviewUI.ts +3 -3
  192. package/front_end/panels/animation/AnimationTimeline.test.ts +15 -15
  193. package/front_end/panels/animation/AnimationTimeline.ts +85 -53
  194. package/front_end/panels/animation/AnimationUI.ts +5 -6
  195. package/front_end/panels/animation/animation-meta.ts +15 -0
  196. package/front_end/panels/animation/animation.ts +0 -4
  197. package/front_end/panels/application/ApplicationPanelSidebar.test.ts +16 -0
  198. package/front_end/panels/application/ApplicationPanelSidebar.ts +13 -9
  199. package/front_end/panels/application/ExtensionStorageItemsView.test.ts +72 -0
  200. package/front_end/panels/application/ExtensionStorageItemsView.ts +23 -1
  201. package/front_end/panels/application/ExtensionStorageModel.test.ts +15 -0
  202. package/front_end/panels/application/ExtensionStorageModel.ts +10 -1
  203. package/front_end/panels/application/OpenedWindowDetailsView.ts +2 -3
  204. package/front_end/panels/application/SharedStorageItemsView.test.ts +1 -20
  205. package/front_end/panels/application/components/BackForwardCacheStrings.ts +1 -0
  206. package/front_end/panels/application/components/BounceTrackingMitigationsView.ts +3 -7
  207. package/front_end/panels/application/components/EndpointsGrid.ts +1 -2
  208. package/front_end/panels/application/components/FrameDetailsView.ts +8 -8
  209. package/front_end/panels/application/components/InterestGroupAccessGrid.ts +4 -8
  210. package/front_end/panels/application/components/PermissionsPolicySection.ts +3 -4
  211. package/front_end/panels/application/components/ReportsGrid.ts +2 -4
  212. package/front_end/panels/application/components/SharedStorageAccessGrid.ts +4 -9
  213. package/front_end/panels/application/components/StackTrace.ts +6 -9
  214. package/front_end/panels/application/components/StorageMetadataView.ts +1 -2
  215. package/front_end/panels/application/components/TrustTokensView.ts +1 -2
  216. package/front_end/panels/application/preloading/PreloadingView.ts +5 -5
  217. package/front_end/panels/application/preloading/components/MismatchedPreloadingGrid.test.ts +2 -2
  218. package/front_end/panels/application/preloading/components/MismatchedPreloadingGrid.ts +3 -9
  219. package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +2 -5
  220. package/front_end/panels/application/preloading/components/PreloadingDisabledInfobar.ts +2 -2
  221. package/front_end/panels/application/preloading/components/PreloadingGrid.test.ts +1 -1
  222. package/front_end/panels/application/preloading/components/PreloadingGrid.ts +3 -6
  223. package/front_end/panels/application/preloading/components/PreloadingMismatchedHeadersGrid.ts +1 -3
  224. package/front_end/panels/application/preloading/components/PreloadingString.ts +5 -0
  225. package/front_end/panels/application/preloading/components/RuleSetDetailsView.ts +2 -3
  226. package/front_end/panels/application/preloading/components/RuleSetGrid.ts +7 -10
  227. package/front_end/panels/autofill/AutofillView.ts +2 -5
  228. package/front_end/panels/console/ConsoleView.ts +1 -1
  229. package/front_end/panels/css_overview/components/CSSOverviewStartView.ts +3 -5
  230. package/front_end/panels/elements/AccessibilityTreeUtils.ts +4 -6
  231. package/front_end/panels/elements/CSSRuleValidator.ts +0 -5
  232. package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +0 -2
  233. package/front_end/panels/elements/ElementStatePaneWidget.ts +5 -0
  234. package/front_end/panels/elements/ElementsPanel.ts +4 -4
  235. package/front_end/panels/elements/ElementsTreeElement.ts +1 -1
  236. package/front_end/panels/elements/StylePropertyTreeElement.test.ts +90 -0
  237. package/front_end/panels/elements/StylePropertyTreeElement.ts +29 -2
  238. package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +3 -5
  239. package/front_end/panels/elements/components/LayoutPane.ts +2 -3
  240. package/front_end/panels/elements/components/QueryContainer.ts +3 -5
  241. package/front_end/panels/elements/stylePropertiesTreeOutline.css +13 -0
  242. package/front_end/panels/emulation/components/DeviceSizeInputElement.ts +0 -2
  243. package/front_end/panels/event_listeners/EventListenersView.ts +2 -2
  244. package/front_end/panels/event_listeners/eventListenersView.css +4 -3
  245. package/front_end/panels/explain/components/ConsoleInsight.test.ts +56 -8
  246. package/front_end/panels/explain/components/ConsoleInsight.ts +53 -36
  247. package/front_end/panels/explain/explain-meta.ts +1 -12
  248. package/front_end/panels/freestyler/AiAgent.test.ts +92 -12
  249. package/front_end/panels/freestyler/AiAgent.ts +341 -56
  250. package/front_end/panels/freestyler/DrJonesFileAgent.test.ts +70 -43
  251. package/front_end/panels/freestyler/DrJonesFileAgent.ts +75 -79
  252. package/front_end/panels/freestyler/DrJonesNetworkAgent.test.ts +135 -72
  253. package/front_end/panels/freestyler/DrJonesNetworkAgent.ts +219 -117
  254. package/front_end/panels/freestyler/DrJonesPerformanceAgent.test.ts +102 -56
  255. package/front_end/panels/freestyler/DrJonesPerformanceAgent.ts +118 -114
  256. package/front_end/panels/freestyler/FreestylerAgent.test.ts +108 -100
  257. package/front_end/panels/freestyler/FreestylerAgent.ts +65 -183
  258. package/front_end/panels/freestyler/FreestylerEvaluateAction.test.ts +40 -36
  259. package/front_end/panels/freestyler/FreestylerEvaluateAction.ts +15 -14
  260. package/front_end/panels/freestyler/FreestylerPanel.test.ts +548 -15
  261. package/front_end/panels/freestyler/FreestylerPanel.ts +385 -132
  262. package/front_end/panels/freestyler/components/FreestylerChatUi.test.ts +34 -4
  263. package/front_end/panels/freestyler/components/FreestylerChatUi.ts +186 -92
  264. package/front_end/panels/freestyler/components/UserActionRow.test.ts +60 -0
  265. package/front_end/panels/freestyler/components/{ProvideFeedback.ts → UserActionRow.ts} +42 -16
  266. package/front_end/panels/freestyler/components/freestylerChatUi.css +100 -97
  267. package/front_end/panels/freestyler/components/userActionRow.css +149 -0
  268. package/front_end/panels/freestyler/freestyler-meta.ts +50 -23
  269. package/front_end/panels/freestyler/freestyler.ts +1 -1
  270. package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +14 -0
  271. package/front_end/panels/issues/IssueAggregator.ts +10 -1
  272. package/front_end/panels/issues/components/ElementsPanelLink.ts +0 -1
  273. package/front_end/panels/issues/components/HideIssuesMenu.ts +12 -4
  274. package/front_end/panels/lighthouse/LighthouseStartView.ts +1 -1
  275. package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorController.ts +2 -2
  276. package/front_end/panels/linear_memory_inspector/components/LinearMemoryHighlightChipList.ts +1 -2
  277. package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.ts +7 -12
  278. package/front_end/panels/linear_memory_inspector/components/LinearMemoryValueInterpreter.ts +3 -4
  279. package/front_end/panels/linear_memory_inspector/components/ValueInterpreterDisplay.ts +1 -2
  280. package/front_end/panels/network/BinaryResourceView.ts +3 -2
  281. package/front_end/panels/network/NetworkDataGridNode.test.ts +29 -0
  282. package/front_end/panels/network/NetworkDataGridNode.ts +56 -5
  283. package/front_end/panels/network/NetworkLogView.test.ts +29 -0
  284. package/front_end/panels/network/NetworkLogView.ts +2 -2
  285. package/front_end/panels/network/NetworkPanel.test.ts +3 -22
  286. package/front_end/panels/network/NetworkPanel.ts +26 -7
  287. package/front_end/panels/network/NetworkWaterfallColumn.ts +2 -0
  288. package/front_end/panels/network/RequestResponseView.test.ts +2 -2
  289. package/front_end/panels/network/RequestResponseView.ts +6 -10
  290. package/front_end/panels/network/ResourceWebSocketFrameView.ts +3 -1
  291. package/front_end/panels/network/components/HeaderSectionRow.ts +11 -12
  292. package/front_end/panels/network/components/RequestHeaderSection.ts +4 -9
  293. package/front_end/panels/network/components/RequestHeadersView.css +7 -0
  294. package/front_end/panels/network/components/RequestTrustTokensView.ts +1 -1
  295. package/front_end/panels/network/network.ts +0 -2
  296. package/front_end/panels/network/networkConfigView.css +8 -7
  297. package/front_end/panels/network/networkLogView.css +32 -2
  298. package/front_end/panels/network/networkPanel.css +2 -1
  299. package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +11 -10
  300. package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +12 -8
  301. package/front_end/panels/profiler/HeapSnapshotProxy.ts +6 -6
  302. package/front_end/panels/protocol_monitor/components/JSONEditor.ts +5 -5
  303. package/front_end/panels/recorder/components/StartView.ts +4 -5
  304. package/front_end/panels/recorder/components/recordingView.css +1 -4
  305. package/front_end/panels/recorder/components/selectButton.css +6 -50
  306. package/front_end/panels/recorder/models/RecorderShortcutHelper.ts +1 -1
  307. package/front_end/panels/recorder/models/RecordingSession.ts +4 -4
  308. package/front_end/panels/recorder/recorderController.css +38 -18
  309. package/front_end/panels/screencast/ScreencastApp.ts +1 -1
  310. package/front_end/panels/screencast/ScreencastView.ts +1 -1
  311. package/front_end/panels/search/SearchView.ts +0 -2
  312. package/front_end/panels/search/searchView.css +5 -1
  313. package/front_end/panels/security/CookieReportTreeElement.ts +26 -0
  314. package/front_end/panels/security/OriginTreeElement.ts +20 -7
  315. package/front_end/panels/security/SecurityPanel.ts +64 -15
  316. package/front_end/panels/security/{SecurityAndPrivacyPanelSidebar.ts → SecurityPanelSidebar.ts} +24 -13
  317. package/front_end/panels/security/SecurityPanelSidebarTreeElement.ts +1 -12
  318. package/front_end/panels/security/sidebar.css +40 -1
  319. package/front_end/panels/sensors/SensorsView.ts +27 -0
  320. package/front_end/panels/sensors/sensors-meta.ts +59 -0
  321. package/front_end/panels/settings/AISettingsTab.test.ts +79 -11
  322. package/front_end/panels/settings/AISettingsTab.ts +109 -22
  323. package/front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts +44 -30
  324. package/front_end/panels/settings/KeybindsSettingsTab.ts +34 -17
  325. package/front_end/panels/settings/SettingsScreen.ts +1 -1
  326. package/front_end/panels/settings/aiSettingsTab.css +13 -0
  327. package/front_end/panels/settings/components/SyncSection.ts +1 -3
  328. package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +51 -29
  329. package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +24 -12
  330. package/front_end/panels/settings/emulation/devicesSettingsTab.css +11 -10
  331. package/front_end/panels/settings/frameworkIgnoreListSettingsTab.css +14 -42
  332. package/front_end/panels/settings/keybindsSettingsTab.css +51 -89
  333. package/front_end/panels/settings/settingsScreen.css +30 -6
  334. package/front_end/panels/sources/AddSourceMapURLDialog.ts +1 -1
  335. package/front_end/panels/sources/CSSPlugin.ts +0 -2
  336. package/front_end/panels/sources/NavigatorView.ts +31 -23
  337. package/front_end/panels/sources/SourcesPanel.ts +25 -6
  338. package/front_end/panels/sources/SourcesView.test.ts +1 -0
  339. package/front_end/panels/sources/SourcesView.ts +2 -2
  340. package/front_end/panels/sources/components/BreakpointsView.ts +0 -1
  341. package/front_end/panels/sources/components/HeadersView.ts +0 -1
  342. package/front_end/panels/sources/navigatorTree.css +11 -0
  343. package/front_end/panels/timeline/AnnotationHelpers.ts +3 -3
  344. package/front_end/panels/timeline/AppenderUtils.ts +1 -3
  345. package/front_end/panels/timeline/CompatibilityTracksAppender.ts +21 -9
  346. package/front_end/panels/timeline/EntriesFilter.test.ts +19 -36
  347. package/front_end/panels/timeline/EntriesFilter.ts +6 -4
  348. package/front_end/panels/timeline/EventsTimelineTreeView.ts +9 -9
  349. package/front_end/panels/timeline/InteractionsTrackAppender.ts +2 -1
  350. package/front_end/panels/timeline/LayoutShiftsTrackAppender.ts +6 -6
  351. package/front_end/panels/timeline/NetworkTrackAppender.ts +1 -8
  352. package/front_end/panels/timeline/ThreadAppender.ts +5 -6
  353. package/front_end/panels/timeline/TimelineDetailsView.test.ts +85 -42
  354. package/front_end/panels/timeline/TimelineDetailsView.ts +71 -42
  355. package/front_end/panels/timeline/TimelineEventOverview.ts +10 -10
  356. package/front_end/panels/timeline/TimelineFilters.test.ts +4 -4
  357. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +58 -62
  358. package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +16 -15
  359. package/front_end/panels/timeline/TimelineFlameChartView.test.ts +2 -3
  360. package/front_end/panels/timeline/TimelineFlameChartView.ts +102 -57
  361. package/front_end/panels/timeline/TimelineHistoryManager.ts +4 -0
  362. package/front_end/panels/timeline/TimelineMiniMap.ts +0 -8
  363. package/front_end/panels/timeline/TimelinePanel.ts +89 -44
  364. package/front_end/panels/timeline/TimelineSelection.test.ts +91 -36
  365. package/front_end/panels/timeline/TimelineSelection.ts +48 -60
  366. package/front_end/panels/timeline/TimelineSelectorStatsView.ts +3 -8
  367. package/front_end/panels/timeline/TimelineTreeView.ts +7 -5
  368. package/front_end/panels/timeline/TimelineUIUtils.test.ts +51 -4
  369. package/front_end/panels/timeline/TimelineUIUtils.ts +37 -27
  370. package/front_end/panels/timeline/UIDevtoolsController.ts +5 -5
  371. package/front_end/panels/timeline/UIDevtoolsUtils.ts +59 -68
  372. package/front_end/panels/timeline/components/BreadcrumbsUI.ts +2 -3
  373. package/front_end/panels/timeline/components/LayoutShiftDetails.ts +25 -8
  374. package/front_end/panels/timeline/components/LiveMetricsView.test.ts +230 -68
  375. package/front_end/panels/timeline/components/LiveMetricsView.ts +146 -112
  376. package/front_end/panels/timeline/components/NetworkRequestDetails.test.ts +14 -7
  377. package/front_end/panels/timeline/components/NetworkRequestDetails.ts +47 -117
  378. package/front_end/panels/timeline/components/NetworkRequestTooltip.ts +64 -74
  379. package/front_end/panels/timeline/components/Sidebar.ts +2 -1
  380. package/front_end/panels/timeline/components/SidebarAnnotationsTab.ts +11 -13
  381. package/front_end/panels/timeline/components/SidebarInsightsTab.ts +51 -2
  382. package/front_end/panels/timeline/components/SidebarSingleInsightSet.test.ts +1 -2
  383. package/front_end/panels/timeline/components/Utils.ts +28 -29
  384. package/front_end/panels/timeline/components/components.ts +0 -4
  385. package/front_end/panels/timeline/components/insights/CLSCulprits.ts +10 -3
  386. package/front_end/panels/timeline/components/insights/DocumentLatency.ts +8 -4
  387. package/front_end/panels/timeline/components/insights/EventRef.ts +0 -1
  388. package/front_end/panels/timeline/components/insights/FontDisplay.ts +1 -1
  389. package/front_end/panels/timeline/components/insights/Helpers.ts +4 -4
  390. package/front_end/panels/timeline/components/insights/InteractionToNextPaint.ts +3 -5
  391. package/front_end/panels/timeline/components/insights/LCPDiscovery.ts +1 -1
  392. package/front_end/panels/timeline/components/insights/LCPPhases.ts +7 -1
  393. package/front_end/panels/timeline/components/insights/NodeLink.ts +0 -1
  394. package/front_end/panels/timeline/components/insights/README.md +2 -2
  395. package/front_end/panels/timeline/components/insights/RenderBlocking.ts +5 -7
  396. package/front_end/panels/timeline/components/insights/SidebarInsight.ts +14 -5
  397. package/front_end/panels/timeline/components/insights/SlowCSSSelector.ts +112 -34
  398. package/front_end/panels/timeline/components/insights/Table.ts +1 -3
  399. package/front_end/panels/timeline/components/insights/ThirdParties.ts +6 -9
  400. package/front_end/panels/timeline/components/insights/Viewport.ts +3 -5
  401. package/front_end/panels/timeline/components/layoutShiftDetails.css +7 -1
  402. package/front_end/panels/timeline/components/liveMetricsView.css +59 -18
  403. package/front_end/panels/timeline/components/networkRequestDetails.css +9 -49
  404. package/front_end/panels/timeline/components/networkRequestTooltip.css +34 -11
  405. package/front_end/panels/timeline/components/relatedInsightChips.css +1 -1
  406. package/front_end/panels/timeline/components/sidebarInsightsTab.css +20 -0
  407. package/front_end/panels/timeline/extensions/ExtensionUI.ts +7 -7
  408. package/front_end/panels/timeline/fixtures/traces/README.md +4 -0
  409. package/front_end/panels/timeline/fixtures/traces/scheduler-post-task.json.gz +0 -0
  410. package/front_end/panels/timeline/fixtures/traces/unsized-images.json.gz +0 -0
  411. package/front_end/panels/timeline/historyToolbarButton.css +33 -19
  412. package/front_end/panels/timeline/overlays/OverlaysImpl.test.ts +0 -16
  413. package/front_end/panels/timeline/overlays/OverlaysImpl.ts +48 -22
  414. package/front_end/panels/timeline/overlays/components/entriesLinkOverlay.css +8 -0
  415. package/front_end/panels/timeline/overlays/components/entryLabelOverlay.css +16 -0
  416. package/front_end/panels/timeline/timeline-meta.ts +11 -0
  417. package/front_end/panels/timeline/timelineFlameChartView.css +16 -0
  418. package/front_end/panels/timeline/track_appenders/AnimationsTrackAppender.test.ts +2 -3
  419. package/front_end/panels/timeline/track_appenders/AppenderUtils.test.ts +1 -6
  420. package/front_end/panels/timeline/track_appenders/CompatibilityTracksAppender.test.ts +1 -1
  421. package/front_end/panels/timeline/track_appenders/ExtensionTrackAppender.test.ts +7 -8
  422. package/front_end/panels/timeline/track_appenders/GPUTrackAppender.test.ts +2 -2
  423. package/front_end/panels/timeline/track_appenders/InteractionsTrackAppender.test.ts +3 -3
  424. package/front_end/panels/timeline/track_appenders/LayoutShiftsTrackAppender.test.ts +3 -4
  425. package/front_end/panels/timeline/track_appenders/ServerTimingsTrackAppender.test.ts +2 -3
  426. package/front_end/panels/timeline/track_appenders/ThreadAppender.test.ts +5 -10
  427. package/front_end/panels/timeline/track_appenders/TimingsTrackAppender.test.ts +5 -5
  428. package/front_end/panels/timeline/utils/AICallTree.test.ts +80 -0
  429. package/front_end/panels/timeline/utils/AICallTree.ts +165 -0
  430. package/front_end/panels/timeline/{components → utils}/EntryName.test.ts +12 -12
  431. package/front_end/panels/timeline/{components → utils}/EntryName.ts +1 -1
  432. package/front_end/panels/timeline/{components → utils}/EntryStyles.ts +28 -1
  433. package/front_end/panels/timeline/utils/Helpers.test.ts +8 -3
  434. package/front_end/panels/timeline/utils/Helpers.ts +3 -4
  435. package/front_end/panels/timeline/utils/IgnoreList.test.ts +86 -0
  436. package/front_end/panels/timeline/utils/IgnoreList.ts +11 -4
  437. package/front_end/panels/timeline/utils/NetworkRequest.ts +1 -1
  438. package/front_end/panels/timeline/utils/SourceMapsResolver.test.ts +51 -18
  439. package/front_end/panels/timeline/utils/SourceMapsResolver.ts +3 -1
  440. package/front_end/panels/timeline/utils/utils.ts +6 -0
  441. package/front_end/panels/utils/utils.ts +56 -4
  442. package/front_end/services/trace_bounds/TraceBounds.ts +7 -1
  443. package/front_end/testing/ContextMenuHelpers.ts +1 -1
  444. package/front_end/testing/EnvironmentHelpers.ts +25 -3
  445. package/front_end/testing/NetworkHelpers.ts +38 -0
  446. package/front_end/testing/StorageItemsViewHelpers.ts +24 -0
  447. package/front_end/testing/TraceHelpers.ts +10 -0
  448. package/front_end/third_party/additional_readme_paths.json +1 -0
  449. package/front_end/third_party/codemirror.next/chunk/angular.js +1 -1
  450. package/front_end/third_party/codemirror.next/chunk/angular.js.map +1 -1
  451. package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
  452. package/front_end/third_party/codemirror.next/chunk/codemirror.js.map +1 -1
  453. package/front_end/third_party/codemirror.next/chunk/cpp.js.map +1 -1
  454. package/front_end/third_party/codemirror.next/chunk/legacy.js.map +1 -1
  455. package/front_end/third_party/codemirror.next/chunk/less.js.map +1 -1
  456. package/front_end/third_party/codemirror.next/chunk/markdown.js +1 -1
  457. package/front_end/third_party/codemirror.next/chunk/markdown.js.map +1 -1
  458. package/front_end/third_party/codemirror.next/chunk/php.js.map +1 -1
  459. package/front_end/third_party/codemirror.next/chunk/python.js +1 -1
  460. package/front_end/third_party/codemirror.next/chunk/python.js.map +1 -1
  461. package/front_end/third_party/codemirror.next/chunk/sass.js.map +1 -1
  462. package/front_end/third_party/codemirror.next/chunk/svelte.js +1 -1
  463. package/front_end/third_party/codemirror.next/chunk/svelte.js.map +1 -1
  464. package/front_end/third_party/codemirror.next/chunk/vue.js +1 -1
  465. package/front_end/third_party/codemirror.next/chunk/vue.js.map +1 -1
  466. package/front_end/third_party/codemirror.next/chunk/xml.js +1 -1
  467. package/front_end/third_party/codemirror.next/chunk/xml.js.map +1 -1
  468. package/front_end/third_party/codemirror.next/codemirror.next.d.ts +68 -3
  469. package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
  470. package/front_end/third_party/codemirror.next/package.json +2 -1
  471. package/front_end/third_party/intl-messageformat/README.chromium +2 -1
  472. package/front_end/third_party/intl-messageformat/package/intl-messageformat.esm.js +0 -1
  473. package/front_end/third_party/json5/LICENSE +23 -0
  474. package/front_end/third_party/json5/README.chromium +17 -0
  475. package/front_end/third_party/json5/json5-tsconfig.json +8 -0
  476. package/front_end/third_party/json5/json5.ts +4 -0
  477. package/front_end/third_party/json5/lib/index.d.ts +2 -0
  478. package/front_end/third_party/json5/lib/index.js +1121 -0
  479. package/front_end/third_party/json5/package/lib/index.d.ts +4 -0
  480. package/front_end/third_party/json5/package/lib/index.js +9 -0
  481. package/front_end/third_party/json5/package/lib/parse.d.ts +15 -0
  482. package/front_end/third_party/json5/package/lib/parse.js +1114 -0
  483. package/front_end/third_party/json5/package/lib/register.js +13 -0
  484. package/front_end/third_party/json5/package/lib/require.js +4 -0
  485. package/front_end/third_party/json5/package/lib/stringify.d.ts +89 -0
  486. package/front_end/third_party/json5/package/lib/stringify.js +261 -0
  487. package/front_end/third_party/json5/package/lib/unicode.d.ts +3 -0
  488. package/front_end/third_party/json5/package/lib/unicode.js +4 -0
  489. package/front_end/third_party/json5/package/lib/util.d.ts +5 -0
  490. package/front_end/third_party/json5/package/lib/util.js +35 -0
  491. package/front_end/third_party/json5/package.json +8 -0
  492. package/front_end/third_party/json5/rebuild.sh +5 -0
  493. package/front_end/third_party/puppeteer/README.chromium +2 -2
  494. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts +2 -2
  495. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts.map +1 -1
  496. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.js +1 -6
  497. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.js.map +1 -1
  498. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.d.ts +1 -1
  499. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.js +1 -1
  500. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/CDPSession.d.ts +1 -1
  501. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/CDPSession.js +1 -1
  502. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.d.ts +4 -4
  503. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.js +18 -11
  504. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.js.map +1 -1
  505. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.d.ts +2 -2
  506. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.js +13 -6
  507. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.js.map +1 -1
  508. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPRequest.d.ts +7 -2
  509. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPRequest.d.ts.map +1 -1
  510. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPRequest.js +3 -3
  511. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPRequest.js.map +1 -1
  512. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPResponse.d.ts +0 -1
  513. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPResponse.d.ts.map +1 -1
  514. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Input.d.ts +3 -3
  515. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Input.js +1 -1
  516. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/JSHandle.js +12 -5
  517. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/JSHandle.js.map +1 -1
  518. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts +22 -22
  519. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts.map +1 -1
  520. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js +26 -19
  521. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js.map +1 -1
  522. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/WebWorker.d.ts +2 -2
  523. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/WebWorker.js +2 -2
  524. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/api.d.ts +1 -1
  525. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/api.d.ts.map +1 -1
  526. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/api.js +0 -1
  527. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/api.js.map +1 -1
  528. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/locators/locators.d.ts.map +1 -1
  529. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/locators/locators.js +12 -5
  530. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/locators/locators.js.map +1 -1
  531. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BidiOverCdp.js +1 -2
  532. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BidiOverCdp.js.map +1 -1
  533. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.d.ts +0 -1
  534. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.d.ts.map +1 -1
  535. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.js +4 -0
  536. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.js.map +1 -1
  537. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserConnector.js +1 -2
  538. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserConnector.js.map +1 -1
  539. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.js +12 -5
  540. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.js.map +1 -1
  541. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ElementHandle.js +12 -5
  542. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ElementHandle.js.map +1 -1
  543. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ExposedFunction.js +12 -5
  544. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ExposedFunction.js.map +1 -1
  545. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.d.ts.map +1 -1
  546. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.js +3 -0
  547. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.js.map +1 -1
  548. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js +21 -10
  549. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js.map +1 -1
  550. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Realm.js +12 -5
  551. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Realm.js.map +1 -1
  552. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Browser.js +12 -5
  553. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Browser.js.map +1 -1
  554. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/core.d.ts +1 -1
  555. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/core.d.ts.map +1 -1
  556. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/core.js +0 -1
  557. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/core.js.map +1 -1
  558. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/util.js +2 -3
  559. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/util.js.map +1 -1
  560. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/AriaQueryHandler.d.ts.map +1 -1
  561. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/AriaQueryHandler.js +3 -0
  562. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/AriaQueryHandler.js.map +1 -1
  563. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Binding.js +12 -5
  564. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Binding.js.map +1 -1
  565. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts +0 -1
  566. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts.map +1 -1
  567. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.js +1 -2
  568. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.js.map +1 -1
  569. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.js +12 -5
  570. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.js.map +1 -1
  571. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ChromeTargetManager.d.ts.map +1 -1
  572. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ChromeTargetManager.js +3 -1
  573. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ChromeTargetManager.js.map +1 -1
  574. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.js +2 -2
  575. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.js.map +1 -1
  576. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/DeviceRequestPrompt.d.ts +1 -1
  577. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/DeviceRequestPrompt.js +1 -1
  578. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExecutionContext.d.ts +3 -3
  579. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExecutionContext.d.ts.map +1 -1
  580. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExecutionContext.js +17 -13
  581. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExecutionContext.js.map +1 -1
  582. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExtensionTransport.d.ts.map +1 -1
  583. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExtensionTransport.js +5 -1
  584. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExtensionTransport.js.map +1 -1
  585. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/FrameManager.js +1 -1
  586. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/FrameManager.js.map +1 -1
  587. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPResponse.js +1 -1
  588. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPResponse.js.map +1 -1
  589. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Input.d.ts.map +1 -1
  590. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Input.js.map +1 -1
  591. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/IsolatedWorld.d.ts +1 -2
  592. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/IsolatedWorld.d.ts.map +1 -1
  593. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/IsolatedWorld.js.map +1 -1
  594. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/JSHandle.js +2 -2
  595. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/JSHandle.js.map +1 -1
  596. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/NetworkManager.d.ts.map +1 -1
  597. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/NetworkManager.js +2 -1
  598. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/NetworkManager.js.map +1 -1
  599. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts +1 -1
  600. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts.map +1 -1
  601. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js +16 -7
  602. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js.map +1 -1
  603. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/PredefinedNetworkConditions.d.ts +4 -4
  604. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/PredefinedNetworkConditions.d.ts.map +1 -1
  605. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/PredefinedNetworkConditions.js +4 -4
  606. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/cdp.d.ts +2 -0
  607. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/cdp.d.ts.map +1 -1
  608. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/cdp.js +2 -0
  609. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/cdp.js.map +1 -1
  610. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/utils.js +6 -6
  611. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/utils.js.map +1 -1
  612. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js +1 -2
  613. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -1
  614. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CSSQueryHandler.d.ts.map +1 -1
  615. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.d.ts.map +1 -1
  616. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.js +2 -2
  617. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.js.map +1 -1
  618. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConnectOptions.d.ts +3 -0
  619. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConnectOptions.d.ts.map +1 -1
  620. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.d.ts.map +1 -1
  621. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.js +4 -5
  622. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.js.map +1 -1
  623. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/GetQueryHandler.js +1 -2
  624. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/GetQueryHandler.js.map +1 -1
  625. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HandleIterator.js +13 -7
  626. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HandleIterator.js.map +1 -1
  627. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LazyArg.d.ts +1 -1
  628. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LazyArg.d.ts.map +1 -1
  629. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PSelectorParser.js +1 -2
  630. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PSelectorParser.js.map +1 -1
  631. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PierceQueryHandler.d.ts.map +1 -1
  632. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.js +12 -5
  633. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.js.map +1 -1
  634. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/common.d.ts +7 -7
  635. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/common.d.ts.map +1 -1
  636. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/common.js +0 -7
  637. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/common.js.map +1 -1
  638. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.d.ts +2 -3
  639. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.d.ts.map +1 -1
  640. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.js +14 -12
  641. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.js.map +1 -1
  642. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/environment.d.ts +0 -2
  643. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/environment.d.ts.map +1 -1
  644. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.d.ts +1 -1
  645. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.js +1 -1
  646. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/ARIAQuerySelector.d.ts.map +1 -1
  647. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/CSSSelector.d.ts.map +1 -1
  648. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/PQuerySelector.d.ts.map +1 -1
  649. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/TextQuerySelector.d.ts.map +1 -1
  650. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/XPathQuerySelector.d.ts.map +1 -1
  651. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +4 -4
  652. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts.map +1 -1
  653. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/util.js +3 -3
  654. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/util.js.map +1 -1
  655. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
  656. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js.map +1 -1
  657. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
  658. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js +3 -4
  659. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js.map +1 -1
  660. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.d.ts +0 -1
  661. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.d.ts.map +1 -1
  662. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.js.map +1 -1
  663. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ScreenRecorder.d.ts +0 -1
  664. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ScreenRecorder.d.ts.map +1 -1
  665. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/node.d.ts +1 -1
  666. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/node.d.ts.map +1 -1
  667. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/node.js +0 -1
  668. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/node.js.map +1 -1
  669. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/util/fs.js +2 -3
  670. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/util/fs.js.map +1 -1
  671. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.d.ts +6 -6
  672. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.d.ts.map +1 -1
  673. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.js +15 -4
  674. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.js.map +1 -1
  675. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.d.ts +3 -3
  676. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +3 -3
  677. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js.map +1 -1
  678. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Deferred.d.ts.map +1 -1
  679. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Deferred.js +1 -0
  680. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Deferred.js.map +1 -1
  681. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/ErrorLike.d.ts +0 -1
  682. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/ErrorLike.d.ts.map +1 -1
  683. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/ErrorLike.js +4 -5
  684. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/ErrorLike.js.map +1 -1
  685. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Function.d.ts.map +1 -1
  686. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Function.js +2 -2
  687. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Function.js.map +1 -1
  688. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.d.ts +2 -2
  689. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.d.ts.map +1 -1
  690. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/decorators.d.ts +1 -1
  691. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/decorators.d.ts.map +1 -1
  692. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/decorators.js +18 -13
  693. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/decorators.js.map +1 -1
  694. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/disposable.d.ts.map +1 -1
  695. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/encoding.js +4 -5
  696. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/encoding.js.map +1 -1
  697. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/util.d.ts +1 -0
  698. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/util.d.ts.map +1 -1
  699. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/util.js +1 -0
  700. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/util.js.map +1 -1
  701. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +374 -578
  702. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +316 -150
  703. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts +2 -2
  704. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts.map +1 -1
  705. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.js +1 -6
  706. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.js.map +1 -1
  707. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.d.ts +1 -1
  708. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.js +1 -1
  709. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/CDPSession.d.ts +1 -1
  710. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/CDPSession.js +1 -1
  711. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.d.ts +4 -4
  712. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.js +16 -9
  713. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.js.map +1 -1
  714. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.d.ts +2 -2
  715. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.js +13 -6
  716. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.js.map +1 -1
  717. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/HTTPRequest.d.ts +7 -2
  718. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/HTTPRequest.d.ts.map +1 -1
  719. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/HTTPRequest.js.map +1 -1
  720. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/HTTPResponse.d.ts +0 -1
  721. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/HTTPResponse.d.ts.map +1 -1
  722. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Input.d.ts +3 -3
  723. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Input.js +1 -1
  724. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/JSHandle.js +12 -5
  725. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/JSHandle.js.map +1 -1
  726. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts +22 -22
  727. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts.map +1 -1
  728. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js +24 -17
  729. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js.map +1 -1
  730. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/WebWorker.d.ts +2 -2
  731. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/WebWorker.js +2 -2
  732. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/api.d.ts +1 -1
  733. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/api.d.ts.map +1 -1
  734. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/api.js +0 -1
  735. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/api.js.map +1 -1
  736. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/locators/locators.d.ts.map +1 -1
  737. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/locators/locators.js +12 -5
  738. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/locators/locators.js.map +1 -1
  739. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.d.ts +0 -1
  740. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.d.ts.map +1 -1
  741. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.js +4 -0
  742. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.js.map +1 -1
  743. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.js +12 -5
  744. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.js.map +1 -1
  745. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/ElementHandle.js +12 -5
  746. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/ElementHandle.js.map +1 -1
  747. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/ExposedFunction.js +12 -5
  748. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/ExposedFunction.js.map +1 -1
  749. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.d.ts.map +1 -1
  750. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.js +3 -0
  751. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.js.map +1 -1
  752. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js +21 -10
  753. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js.map +1 -1
  754. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Realm.js +12 -5
  755. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Realm.js.map +1 -1
  756. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Browser.js +12 -5
  757. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Browser.js.map +1 -1
  758. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/core.d.ts +1 -1
  759. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/core.d.ts.map +1 -1
  760. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/core.js +0 -1
  761. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/core.js.map +1 -1
  762. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/AriaQueryHandler.d.ts.map +1 -1
  763. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/AriaQueryHandler.js +3 -0
  764. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/AriaQueryHandler.js.map +1 -1
  765. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Binding.js +12 -5
  766. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Binding.js.map +1 -1
  767. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts +0 -1
  768. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts.map +1 -1
  769. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.js +12 -5
  770. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.js.map +1 -1
  771. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ChromeTargetManager.d.ts.map +1 -1
  772. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ChromeTargetManager.js +3 -1
  773. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ChromeTargetManager.js.map +1 -1
  774. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/DeviceRequestPrompt.d.ts +1 -1
  775. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/DeviceRequestPrompt.js +1 -1
  776. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExecutionContext.d.ts +3 -3
  777. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExecutionContext.d.ts.map +1 -1
  778. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExecutionContext.js +17 -13
  779. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExecutionContext.js.map +1 -1
  780. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExtensionTransport.d.ts.map +1 -1
  781. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExtensionTransport.js +5 -1
  782. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExtensionTransport.js.map +1 -1
  783. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/FrameManager.js +1 -1
  784. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/FrameManager.js.map +1 -1
  785. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPResponse.js +1 -1
  786. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPResponse.js.map +1 -1
  787. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Input.d.ts.map +1 -1
  788. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Input.js.map +1 -1
  789. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/IsolatedWorld.d.ts +1 -2
  790. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/IsolatedWorld.d.ts.map +1 -1
  791. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/IsolatedWorld.js.map +1 -1
  792. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/NetworkManager.d.ts.map +1 -1
  793. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/NetworkManager.js +2 -1
  794. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/NetworkManager.js.map +1 -1
  795. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts +1 -1
  796. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts.map +1 -1
  797. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js +16 -7
  798. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js.map +1 -1
  799. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/PredefinedNetworkConditions.d.ts +4 -4
  800. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/PredefinedNetworkConditions.d.ts.map +1 -1
  801. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/PredefinedNetworkConditions.js +4 -4
  802. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/cdp.d.ts +2 -0
  803. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/cdp.d.ts.map +1 -1
  804. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/cdp.js +2 -0
  805. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/cdp.js.map +1 -1
  806. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CSSQueryHandler.d.ts.map +1 -1
  807. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.d.ts.map +1 -1
  808. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.js.map +1 -1
  809. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectOptions.d.ts +3 -0
  810. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectOptions.d.ts.map +1 -1
  811. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.d.ts.map +1 -1
  812. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.js +0 -1
  813. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.js.map +1 -1
  814. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HandleIterator.js +12 -5
  815. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HandleIterator.js.map +1 -1
  816. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LazyArg.d.ts +1 -1
  817. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LazyArg.d.ts.map +1 -1
  818. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PierceQueryHandler.d.ts.map +1 -1
  819. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.js +12 -5
  820. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.js.map +1 -1
  821. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/common.d.ts +7 -7
  822. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/common.d.ts.map +1 -1
  823. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/common.js +0 -7
  824. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/common.js.map +1 -1
  825. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.d.ts +2 -3
  826. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.d.ts.map +1 -1
  827. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.js +3 -1
  828. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.js.map +1 -1
  829. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/environment.d.ts +0 -2
  830. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/environment.d.ts.map +1 -1
  831. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.d.ts +1 -1
  832. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.js +1 -1
  833. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/ARIAQuerySelector.d.ts.map +1 -1
  834. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/CSSSelector.d.ts.map +1 -1
  835. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/PQuerySelector.d.ts.map +1 -1
  836. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/TextQuerySelector.d.ts.map +1 -1
  837. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/XPathQuerySelector.d.ts.map +1 -1
  838. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/injected.d.ts +3 -3
  839. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/injected.d.ts.map +1 -1
  840. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
  841. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js.map +1 -1
  842. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
  843. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js +0 -1
  844. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js.map +1 -1
  845. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.d.ts +0 -1
  846. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.d.ts.map +1 -1
  847. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.js.map +1 -1
  848. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ScreenRecorder.d.ts +0 -1
  849. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ScreenRecorder.d.ts.map +1 -1
  850. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/node.d.ts +1 -1
  851. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/node.d.ts.map +1 -1
  852. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/node.js +0 -1
  853. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/node.js.map +1 -1
  854. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core-browser.d.ts +1 -1
  855. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core-browser.d.ts.map +1 -1
  856. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.d.ts +6 -6
  857. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.d.ts.map +1 -1
  858. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.js +3 -4
  859. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.js.map +1 -1
  860. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts +3 -3
  861. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +3 -3
  862. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js.map +1 -1
  863. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/Deferred.d.ts.map +1 -1
  864. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/Deferred.js +1 -0
  865. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/Deferred.js.map +1 -1
  866. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/ErrorLike.d.ts +0 -1
  867. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/ErrorLike.d.ts.map +1 -1
  868. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/Function.d.ts.map +1 -1
  869. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/Mutex.d.ts +1 -1
  870. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/Mutex.d.ts.map +1 -1
  871. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/decorators.d.ts +1 -1
  872. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/decorators.d.ts.map +1 -1
  873. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/decorators.js +12 -6
  874. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/decorators.js.map +1 -1
  875. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/disposable.d.ts.map +1 -1
  876. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/util.d.ts +1 -0
  877. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/util.d.ts.map +1 -1
  878. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/util.js +1 -0
  879. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/util.js.map +1 -1
  880. package/front_end/third_party/puppeteer/package/lib/types.d.ts +374 -578
  881. package/front_end/third_party/puppeteer/package/package.json +6 -6
  882. package/front_end/third_party/puppeteer/package/src/api/Browser.ts +8 -8
  883. package/front_end/third_party/puppeteer/package/src/api/BrowserContext.ts +5 -5
  884. package/front_end/third_party/puppeteer/package/src/api/CDPSession.ts +2 -2
  885. package/front_end/third_party/puppeteer/package/src/api/Dialog.ts +1 -1
  886. package/front_end/third_party/puppeteer/package/src/api/ElementHandle.ts +44 -44
  887. package/front_end/third_party/puppeteer/package/src/api/Frame.ts +33 -33
  888. package/front_end/third_party/puppeteer/package/src/api/HTTPRequest.ts +14 -9
  889. package/front_end/third_party/puppeteer/package/src/api/Input.ts +11 -11
  890. package/front_end/third_party/puppeteer/package/src/api/JSHandle.ts +5 -5
  891. package/front_end/third_party/puppeteer/package/src/api/Page.ts +88 -87
  892. package/front_end/third_party/puppeteer/package/src/api/Realm.ts +2 -2
  893. package/front_end/third_party/puppeteer/package/src/api/WebWorker.ts +2 -2
  894. package/front_end/third_party/puppeteer/package/src/api/api.ts +1 -1
  895. package/front_end/third_party/puppeteer/package/src/api/locators/locators.ts +79 -79
  896. package/front_end/third_party/puppeteer/package/src/bidi/BidiOverCdp.ts +7 -7
  897. package/front_end/third_party/puppeteer/package/src/bidi/Browser.ts +9 -5
  898. package/front_end/third_party/puppeteer/package/src/bidi/BrowserConnector.ts +5 -5
  899. package/front_end/third_party/puppeteer/package/src/bidi/BrowserContext.ts +10 -10
  900. package/front_end/third_party/puppeteer/package/src/bidi/CDPSession.ts +4 -4
  901. package/front_end/third_party/puppeteer/package/src/bidi/Connection.ts +6 -6
  902. package/front_end/third_party/puppeteer/package/src/bidi/ElementHandle.ts +3 -3
  903. package/front_end/third_party/puppeteer/package/src/bidi/ExposedFunction.ts +11 -11
  904. package/front_end/third_party/puppeteer/package/src/bidi/Frame.ts +45 -41
  905. package/front_end/third_party/puppeteer/package/src/bidi/HTTPRequest.ts +9 -9
  906. package/front_end/third_party/puppeteer/package/src/bidi/HTTPResponse.ts +3 -3
  907. package/front_end/third_party/puppeteer/package/src/bidi/Input.ts +10 -10
  908. package/front_end/third_party/puppeteer/package/src/bidi/JSHandle.ts +1 -1
  909. package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +56 -52
  910. package/front_end/third_party/puppeteer/package/src/bidi/Realm.ts +15 -15
  911. package/front_end/third_party/puppeteer/package/src/bidi/Serializer.ts +1 -1
  912. package/front_end/third_party/puppeteer/package/src/bidi/Target.ts +2 -2
  913. package/front_end/third_party/puppeteer/package/src/bidi/WebWorker.ts +2 -2
  914. package/front_end/third_party/puppeteer/package/src/bidi/core/Browser.ts +4 -4
  915. package/front_end/third_party/puppeteer/package/src/bidi/core/BrowsingContext.ts +17 -17
  916. package/front_end/third_party/puppeteer/package/src/bidi/core/Connection.ts +1 -1
  917. package/front_end/third_party/puppeteer/package/src/bidi/core/Navigation.ts +3 -3
  918. package/front_end/third_party/puppeteer/package/src/bidi/core/Realm.ts +6 -6
  919. package/front_end/third_party/puppeteer/package/src/bidi/core/Request.ts +5 -5
  920. package/front_end/third_party/puppeteer/package/src/bidi/core/Session.ts +4 -4
  921. package/front_end/third_party/puppeteer/package/src/bidi/core/UserContext.ts +9 -9
  922. package/front_end/third_party/puppeteer/package/src/bidi/core/UserPrompt.ts +4 -4
  923. package/front_end/third_party/puppeteer/package/src/bidi/core/core.ts +1 -1
  924. package/front_end/third_party/puppeteer/package/src/bidi/util.ts +4 -4
  925. package/front_end/third_party/puppeteer/package/src/cdp/Accessibility.ts +7 -7
  926. package/front_end/third_party/puppeteer/package/src/cdp/AriaQueryHandler.ts +10 -6
  927. package/front_end/third_party/puppeteer/package/src/cdp/Binding.ts +6 -6
  928. package/front_end/third_party/puppeteer/package/src/cdp/Browser.ts +24 -24
  929. package/front_end/third_party/puppeteer/package/src/cdp/BrowserConnector.ts +4 -4
  930. package/front_end/third_party/puppeteer/package/src/cdp/BrowserContext.ts +2 -2
  931. package/front_end/third_party/puppeteer/package/src/cdp/CDPSession.ts +7 -7
  932. package/front_end/third_party/puppeteer/package/src/cdp/ChromeTargetManager.ts +19 -17
  933. package/front_end/third_party/puppeteer/package/src/cdp/Connection.ts +7 -7
  934. package/front_end/third_party/puppeteer/package/src/cdp/Coverage.ts +11 -11
  935. package/front_end/third_party/puppeteer/package/src/cdp/DeviceRequestPrompt.ts +17 -17
  936. package/front_end/third_party/puppeteer/package/src/cdp/Dialog.ts +1 -1
  937. package/front_end/third_party/puppeteer/package/src/cdp/ElementHandle.ts +6 -6
  938. package/front_end/third_party/puppeteer/package/src/cdp/EmulationManager.ts +34 -34
  939. package/front_end/third_party/puppeteer/package/src/cdp/ExecutionContext.ts +18 -19
  940. package/front_end/third_party/puppeteer/package/src/cdp/ExtensionTransport.ts +7 -3
  941. package/front_end/third_party/puppeteer/package/src/cdp/FirefoxTargetManager.ts +7 -7
  942. package/front_end/third_party/puppeteer/package/src/cdp/Frame.ts +16 -16
  943. package/front_end/third_party/puppeteer/package/src/cdp/FrameManager.ts +20 -20
  944. package/front_end/third_party/puppeteer/package/src/cdp/FrameManagerEvents.ts +1 -1
  945. package/front_end/third_party/puppeteer/package/src/cdp/HTTPRequest.ts +5 -5
  946. package/front_end/third_party/puppeteer/package/src/cdp/HTTPResponse.ts +5 -5
  947. package/front_end/third_party/puppeteer/package/src/cdp/Input.ts +16 -14
  948. package/front_end/third_party/puppeteer/package/src/cdp/IsolatedWorld.ts +14 -13
  949. package/front_end/third_party/puppeteer/package/src/cdp/JSHandle.ts +2 -2
  950. package/front_end/third_party/puppeteer/package/src/cdp/LifecycleWatcher.ts +11 -11
  951. package/front_end/third_party/puppeteer/package/src/cdp/NetworkEventManager.ts +15 -15
  952. package/front_end/third_party/puppeteer/package/src/cdp/NetworkManager.ts +38 -37
  953. package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +71 -70
  954. package/front_end/third_party/puppeteer/package/src/cdp/PredefinedNetworkConditions.ts +4 -4
  955. package/front_end/third_party/puppeteer/package/src/cdp/Target.ts +4 -4
  956. package/front_end/third_party/puppeteer/package/src/cdp/TargetManager.ts +1 -1
  957. package/front_end/third_party/puppeteer/package/src/cdp/Tracing.ts +2 -2
  958. package/front_end/third_party/puppeteer/package/src/cdp/WebWorker.ts +5 -5
  959. package/front_end/third_party/puppeteer/package/src/cdp/cdp.ts +2 -0
  960. package/front_end/third_party/puppeteer/package/src/cdp/utils.ts +10 -10
  961. package/front_end/third_party/puppeteer/package/src/common/BrowserConnector.ts +5 -5
  962. package/front_end/third_party/puppeteer/package/src/common/CSSQueryHandler.ts +2 -2
  963. package/front_end/third_party/puppeteer/package/src/common/CallbackRegistry.ts +9 -7
  964. package/front_end/third_party/puppeteer/package/src/common/ConnectOptions.ts +3 -0
  965. package/front_end/third_party/puppeteer/package/src/common/ConsoleMessage.ts +1 -1
  966. package/front_end/third_party/puppeteer/package/src/common/CustomQueryHandler.ts +6 -6
  967. package/front_end/third_party/puppeteer/package/src/common/Debug.ts +0 -1
  968. package/front_end/third_party/puppeteer/package/src/common/EventEmitter.ts +8 -8
  969. package/front_end/third_party/puppeteer/package/src/common/FileChooser.ts +3 -3
  970. package/front_end/third_party/puppeteer/package/src/common/HandleIterator.ts +3 -3
  971. package/front_end/third_party/puppeteer/package/src/common/LazyArg.ts +1 -1
  972. package/front_end/third_party/puppeteer/package/src/common/NetworkManagerEvents.ts +1 -1
  973. package/front_end/third_party/puppeteer/package/src/common/PQueryHandler.ts +2 -2
  974. package/front_end/third_party/puppeteer/package/src/common/PSelectorParser.ts +1 -1
  975. package/front_end/third_party/puppeteer/package/src/common/PierceQueryHandler.ts +2 -2
  976. package/front_end/third_party/puppeteer/package/src/common/Puppeteer.ts +1 -1
  977. package/front_end/third_party/puppeteer/package/src/common/QueryHandler.ts +12 -12
  978. package/front_end/third_party/puppeteer/package/src/common/TaskQueue.ts +1 -1
  979. package/front_end/third_party/puppeteer/package/src/common/TextQueryHandler.ts +1 -1
  980. package/front_end/third_party/puppeteer/package/src/common/WaitTask.ts +8 -8
  981. package/front_end/third_party/puppeteer/package/src/common/XPathQueryHandler.ts +2 -2
  982. package/front_end/third_party/puppeteer/package/src/common/common.ts +7 -7
  983. package/front_end/third_party/puppeteer/package/src/common/util.ts +15 -14
  984. package/front_end/third_party/puppeteer/package/src/generated/version.ts +1 -1
  985. package/front_end/third_party/puppeteer/package/src/injected/ARIAQuerySelector.ts +3 -3
  986. package/front_end/third_party/puppeteer/package/src/injected/CSSSelector.ts +2 -2
  987. package/front_end/third_party/puppeteer/package/src/injected/PQuerySelector.ts +7 -7
  988. package/front_end/third_party/puppeteer/package/src/injected/PierceQuerySelector.ts +2 -2
  989. package/front_end/third_party/puppeteer/package/src/injected/TextContent.ts +1 -1
  990. package/front_end/third_party/puppeteer/package/src/injected/TextQuerySelector.ts +1 -1
  991. package/front_end/third_party/puppeteer/package/src/injected/XPathQuerySelector.ts +2 -2
  992. package/front_end/third_party/puppeteer/package/src/injected/util.ts +2 -2
  993. package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +38 -30
  994. package/front_end/third_party/puppeteer/package/src/node/ChromeLauncher.ts +11 -12
  995. package/front_end/third_party/puppeteer/package/src/node/FirefoxLauncher.ts +8 -8
  996. package/front_end/third_party/puppeteer/package/src/node/NodeWebSocketTransport.ts +1 -1
  997. package/front_end/third_party/puppeteer/package/src/node/PipeTransport.ts +7 -3
  998. package/front_end/third_party/puppeteer/package/src/node/PuppeteerNode.ts +4 -4
  999. package/front_end/third_party/puppeteer/package/src/node/ScreenRecorder.ts +10 -10
  1000. package/front_end/third_party/puppeteer/package/src/node/node.ts +1 -1
  1001. package/front_end/third_party/puppeteer/package/src/puppeteer-core.ts +4 -4
  1002. package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
  1003. package/front_end/third_party/puppeteer/package/src/util/AsyncIterableUtil.ts +3 -3
  1004. package/front_end/third_party/puppeteer/package/src/util/Deferred.ts +3 -2
  1005. package/front_end/third_party/puppeteer/package/src/util/ErrorLike.ts +1 -1
  1006. package/front_end/third_party/puppeteer/package/src/util/Function.ts +4 -4
  1007. package/front_end/third_party/puppeteer/package/src/util/Mutex.ts +1 -1
  1008. package/front_end/third_party/puppeteer/package/src/util/assert.ts +1 -1
  1009. package/front_end/third_party/puppeteer/package/src/util/decorators.ts +8 -9
  1010. package/front_end/third_party/puppeteer/package/src/util/encoding.ts +1 -1
  1011. package/front_end/third_party/puppeteer/package/src/util/util.ts +1 -0
  1012. package/front_end/third_party/web-vitals/README.chromium +3 -3
  1013. package/front_end/third_party/web-vitals/package/README.md +36 -23
  1014. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onINP.d.ts +2 -1
  1015. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onINP.js +11 -13
  1016. package/front_end/third_party/web-vitals/package/dist/modules/lib/bindReporter.d.ts +2 -22
  1017. package/front_end/third_party/web-vitals/package/dist/modules/lib/initMetric.d.ts +3 -2
  1018. package/front_end/third_party/web-vitals/package/dist/modules/lib/interactions.js +1 -1
  1019. package/front_end/third_party/web-vitals/package/dist/modules/onLCP.js +4 -1
  1020. package/front_end/third_party/web-vitals/package/dist/web-vitals.attribution.iife.js +1 -1
  1021. package/front_end/third_party/web-vitals/package/dist/web-vitals.attribution.js +1 -1
  1022. package/front_end/third_party/web-vitals/package/dist/web-vitals.attribution.umd.cjs +1 -1
  1023. package/front_end/third_party/web-vitals/package/dist/web-vitals.iife.js +1 -1
  1024. package/front_end/third_party/web-vitals/package/dist/web-vitals.js +1 -1
  1025. package/front_end/third_party/web-vitals/package/dist/web-vitals.umd.cjs +1 -1
  1026. package/front_end/third_party/web-vitals/package/package.json +1 -1
  1027. package/front_end/third_party/web-vitals/package/src/attribution/onINP.ts +11 -14
  1028. package/front_end/third_party/web-vitals/package/src/lib/interactions.ts +1 -1
  1029. package/front_end/third_party/web-vitals/package/src/onLCP.ts +4 -1
  1030. package/front_end/third_party/web-vitals/rebuild.sh +14 -0
  1031. package/front_end/third_party/web-vitals/web-vitals.ts +2 -0
  1032. package/front_end/ui/components/adorners/Adorner.ts +0 -1
  1033. package/front_end/ui/components/buttons/Button.ts +0 -1
  1034. package/front_end/ui/components/buttons/button.css +1 -0
  1035. package/front_end/ui/components/cards/Card.test.ts +31 -5
  1036. package/front_end/ui/components/cards/Card.ts +22 -3
  1037. package/front_end/ui/components/cards/card.css +25 -7
  1038. package/front_end/ui/components/chrome_link/ChromeLink.ts +0 -1
  1039. package/front_end/ui/components/data_grid/DataGrid.ts +0 -1
  1040. package/front_end/ui/components/data_grid/DataGridController.ts +2 -3
  1041. package/front_end/ui/components/data_grid/DataGridControllerIntegrator.ts +1 -2
  1042. package/front_end/ui/components/dialogs/Dialog.ts +0 -1
  1043. package/front_end/ui/components/dialogs/IconDialog.ts +9 -11
  1044. package/front_end/ui/components/dialogs/ShortcutDialog.ts +3 -4
  1045. package/front_end/ui/components/diff_view/DiffView.ts +0 -1
  1046. package/front_end/ui/components/docs/building-ui-documentation/ComponentPerformance.md +1 -4
  1047. package/front_end/ui/components/docs/building-ui-documentation/CreatingComponents.md +14 -44
  1048. package/front_end/ui/components/docs/freestyler/basic.ts +2 -3
  1049. package/front_end/ui/components/docs/freestyler/empty_state.ts +2 -2
  1050. package/front_end/ui/components/docs/icon_dialog/basic.ts +4 -4
  1051. package/front_end/ui/components/docs/performance_panel/basic.ts +4 -1
  1052. package/front_end/ui/components/docs/report/basic.ts +3 -3
  1053. package/front_end/ui/components/expandable_list/ExpandableList.ts +0 -1
  1054. package/front_end/ui/components/floating_button/FloatingButton.ts +0 -1
  1055. package/front_end/ui/components/icon_button/FileSourceIcon.test.ts +32 -0
  1056. package/front_end/ui/components/icon_button/FileSourceIcon.ts +76 -0
  1057. package/front_end/ui/components/icon_button/Icon.ts +0 -3
  1058. package/front_end/ui/components/icon_button/IconButton.ts +0 -1
  1059. package/front_end/ui/components/icon_button/fileSourceIcon.css +43 -0
  1060. package/front_end/ui/components/icon_button/icon_button.ts +2 -0
  1061. package/front_end/ui/components/issue_counter/IssueCounter.ts +1 -3
  1062. package/front_end/ui/components/issue_counter/IssueLinkIcon.ts +0 -1
  1063. package/front_end/ui/components/legacy_wrapper/LegacyWrapper.ts +1 -1
  1064. package/front_end/ui/components/linkifier/LinkifierImpl.ts +4 -2
  1065. package/front_end/ui/components/markdown_view/CodeBlock.ts +0 -1
  1066. package/front_end/ui/components/markdown_view/MarkdownImage.ts +0 -1
  1067. package/front_end/ui/components/markdown_view/MarkdownLink.ts +0 -1
  1068. package/front_end/ui/components/markdown_view/MarkdownView.ts +10 -7
  1069. package/front_end/ui/components/menus/Menu.ts +0 -3
  1070. package/front_end/ui/components/menus/SelectMenu.ts +0 -2
  1071. package/front_end/ui/components/menus/selectMenu.css +8 -5
  1072. package/front_end/ui/components/menus/selectMenuButton.css +29 -17
  1073. package/front_end/ui/components/node_text/NodeText.ts +0 -1
  1074. package/front_end/ui/components/panel_feedback/FeedbackButton.ts +0 -1
  1075. package/front_end/ui/components/panel_feedback/PanelFeedback.ts +1 -3
  1076. package/front_end/ui/components/panel_feedback/PreviewToggle.ts +1 -3
  1077. package/front_end/ui/components/panel_introduction_steps/PanelIntroductionSteps.ts +0 -1
  1078. package/front_end/ui/components/report_view/ReportView.ts +1 -7
  1079. package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +0 -1
  1080. package/front_end/ui/components/settings/SettingCheckbox.ts +28 -10
  1081. package/front_end/ui/components/settings/SettingDeprecationWarning.ts +2 -4
  1082. package/front_end/ui/components/settings/settingCheckbox.css +1 -0
  1083. package/front_end/ui/components/spinners/Spinner.ts +0 -1
  1084. package/front_end/ui/components/spinners/spinner.css +1 -0
  1085. package/front_end/ui/components/split_view/SplitView.ts +0 -1
  1086. package/front_end/ui/components/srgb_overlay/SrgbOverlay.ts +0 -1
  1087. package/front_end/ui/components/survey_link/SurveyLink.ts +1 -3
  1088. package/front_end/ui/components/switch/SwitchImpl.ts +0 -1
  1089. package/front_end/ui/components/text_editor/TextEditor.ts +0 -2
  1090. package/front_end/ui/components/text_prompt/TextPrompt.ts +0 -1
  1091. package/front_end/ui/components/tree_outline/TreeOutline.ts +0 -1
  1092. package/front_end/ui/components/two_states_counter/TwoStatesCounter.ts +0 -1
  1093. package/front_end/ui/legacy/ContextMenu.ts +46 -7
  1094. package/front_end/ui/legacy/FilterBar.test.ts +52 -0
  1095. package/front_end/ui/legacy/FilterBar.ts +46 -1
  1096. package/front_end/ui/legacy/KeyboardShortcut.ts +35 -21
  1097. package/front_end/ui/legacy/Panel.ts +2 -2
  1098. package/front_end/ui/legacy/ShortcutRegistry.ts +10 -7
  1099. package/front_end/ui/legacy/SoftContextMenu.ts +3 -0
  1100. package/front_end/ui/legacy/ThrottledWidget.ts +2 -2
  1101. package/front_end/ui/legacy/Toolbar.ts +1 -0
  1102. package/front_end/ui/legacy/Treeoutline.ts +7 -4
  1103. package/front_end/ui/legacy/UIUtils.ts +9 -0
  1104. package/front_end/ui/legacy/View.ts +2 -2
  1105. package/front_end/ui/legacy/ViewManager.ts +2 -1
  1106. package/front_end/ui/legacy/Widget.ts +4 -4
  1107. package/front_end/ui/legacy/components/data_grid/DataGrid.test.ts +51 -0
  1108. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +92 -6
  1109. package/front_end/ui/legacy/components/data_grid/dataGrid.css +8 -1
  1110. package/front_end/ui/legacy/components/inline_editor/CSSAngle.ts +4 -7
  1111. package/front_end/ui/legacy/components/inline_editor/CSSAngleEditor.ts +0 -1
  1112. package/front_end/ui/legacy/components/inline_editor/CSSAngleSwatch.ts +0 -1
  1113. package/front_end/ui/legacy/components/inline_editor/CSSLength.ts +0 -1
  1114. package/front_end/ui/legacy/components/inline_editor/ColorMixSwatch.ts +0 -1
  1115. package/front_end/ui/legacy/components/inline_editor/ColorSwatch.ts +0 -1
  1116. package/front_end/ui/legacy/components/inline_editor/LinkSwatch.ts +0 -3
  1117. package/front_end/ui/legacy/components/inline_editor/Swatches.ts +1 -2
  1118. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +2 -2
  1119. package/front_end/ui/legacy/components/perf_ui/CanvasHelper.ts +1 -83
  1120. package/front_end/ui/legacy/components/perf_ui/ChartViewport.ts +3 -2
  1121. package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +162 -57
  1122. package/front_end/ui/legacy/components/perf_ui/PieChart.ts +0 -1
  1123. package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +3 -3
  1124. package/front_end/ui/legacy/components/source_frame/BinaryResourceViewFactory.test.ts +5 -9
  1125. package/front_end/ui/legacy/components/source_frame/BinaryResourceViewFactory.ts +9 -60
  1126. package/front_end/ui/legacy/components/source_frame/SourceFrame.test.ts +18 -0
  1127. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +20 -3
  1128. package/front_end/{panels/network/RequestBinaryResponseView.test.ts → ui/legacy/components/source_frame/StreamingContentHexView.test.ts} +12 -12
  1129. package/front_end/ui/legacy/components/source_frame/StreamingContentHexView.ts +122 -0
  1130. package/front_end/ui/legacy/components/source_frame/source_frame.ts +2 -0
  1131. package/front_end/ui/legacy/designTokens.css +46 -40
  1132. package/front_end/ui/legacy/filter.css +23 -8
  1133. package/front_end/ui/legacy/inspectorCommon.css +31 -29
  1134. package/front_end/ui/legacy/searchableView.css +4 -3
  1135. package/front_end/ui/legacy/softDropDownButton.css +10 -6
  1136. package/front_end/ui/legacy/tabbedPane.css +1 -1
  1137. package/front_end/ui/legacy/toolbar.css +38 -18
  1138. package/front_end/ui/visual_logging/KnownContextValues.ts +67 -1
  1139. package/front_end/ui/visual_logging/LoggingDriver.test.ts +53 -6
  1140. package/front_end/ui/visual_logging/LoggingDriver.ts +8 -5
  1141. package/front_end/ui/visual_logging/LoggingEvents.test.ts +5 -1
  1142. package/front_end/ui/visual_logging/LoggingEvents.ts +1 -1
  1143. package/front_end/ui/visual_logging/LoggingState.ts +1 -1
  1144. package/package.json +5 -6
  1145. package/scripts/build/esbuild.js +3 -1
  1146. package/scripts/devtools_paths.js +11 -1
  1147. package/scripts/eslint_rules/lib/check_test_definitions.js +1 -1
  1148. package/scripts/eslint_rules/tests/check_test_definitions_test.js +10 -0
  1149. package/tsconfig.json +11 -1
  1150. package/docs/add_uma_metrics.md +0 -41
  1151. package/docs/uma_metrics.md +0 -23
  1152. package/front_end/panels/animation/AnimationDOMNode.ts +0 -268
  1153. package/front_end/panels/freestyler/components/ProvideFeedback.test.ts +0 -29
  1154. package/front_end/panels/freestyler/components/provideFeedback.css +0 -60
  1155. package/front_end/panels/network/RequestBinaryResponseView.ts +0 -67
  1156. package/scripts/eslint_rules/lib/lit_html_data_as_type.js +0 -83
  1157. package/scripts/eslint_rules/tests/lit_html_data_as_type_test.js +0 -81
@@ -0,0 +1,320 @@
1
+ # Localization
2
+
3
+ ## How to add a localizable string
4
+
5
+ When you introduce a new UI string or modify an existing one that will be
6
+ displayed to the users, or remove a string that is localized, follow these steps
7
+ so that it can be localized.
8
+
9
+ [TOC]
10
+
11
+ ### Adding a string
12
+
13
+ Before proceeding, make sure you know the different
14
+ [localization APIs](#what-are-the-l10n-apis) and know which one you should use.
15
+
16
+ Code example:
17
+
18
+ ```js
19
+ import * as i18n from '../i18n/i18n.js';
20
+
21
+ // at the top of example.js file, after import statements
22
+ const UIStrings = {
23
+ /**
24
+ * @description A string that is already added
25
+ */
26
+ alreadyAddedString: 'Someone already created a "UIStrings = {}" and added this string',
27
+ /**
28
+ * @description This is an example description for my new string
29
+ */
30
+ addThisString: 'The new string I want to add',
31
+ /**
32
+ * @description This is an example description for my new string with placeholder
33
+ * @example {example for placeholder} PH1
34
+ */
35
+ addAnotherString: 'Another new string I want to add, with {PH1}',
36
+ };
37
+ const str_ = i18n.i18n.registerUIStrings('example.js', UIStrings);
38
+ const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
39
+
40
+ // ....
41
+
42
+ // in example.js file, where you want to call the string
43
+
44
+ const message1 = i18nString(UIStrings.addThisString);
45
+ console.log(message1); // The new string I want to add
46
+
47
+ const message2 = i18nString(UIStrings.addAnotherString, {PH1: 'a placeholder'});
48
+ console.log(message2); // Another new string I want to add, with a placeholder
49
+ ```
50
+
51
+ 1. If there is already `UIStrings = {}` declared in the file, add your string
52
+ to it. If there isn't `UIStrings = {}` in the file, create one and add your
53
+ string, also register the new UIStrings into the `en-US.json` by adding:
54
+
55
+ 1. `const str_ = i18n.i18n.registerUIStrings({the current fileName.js,
56
+ relative to front_end}, UIStrings);`
57
+ 1. `const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);`
58
+
59
+ 2. Add description and examples for placeholder(if any):
60
+
61
+ 1. To specify the description, use `@description …` `@description This is
62
+ an example description for my new string`
63
+ 2. To specify an example for placeholder, use `@example {…} …` `@example
64
+ {example for placeholder} PH1`
65
+ 3. To distinguish messages with the same content, use `@meaning …`
66
+ `@meaning This is an example meaning to differentiate this message from
67
+ the other message with same content`
68
+
69
+ 3. Make sure your string is localizable:
70
+
71
+ 1. Do not assume word order by using concatenation. Use the whole string. ❌
72
+ `javascript 'Add' + 'breakpoint'` ✔️ `javascript 'Add breakpoint'` or ❌
73
+ `javascript let description = 'first part' if (condition) description +=
74
+ ' second part'` ✔️ `javascript let description if (condition)
75
+ description = 'first part second part' else description = 'first part'`
76
+ 2. Use placeholder over concatenation. This is so that the translators can
77
+ adjust variable order based on what works in another language. For
78
+ example: ❌ `javascript 'Check ' + title + ' for more information.'` ✔️
79
+ `javascript 'Check {PH1} for more information.', {PH1: title}`
80
+ 3. If your string contains <b>leading or trailing white space</b>, it's
81
+ usually an indication that it's half of a sentence. This decreases
82
+ localizability as it's essentially concatenating. Modify it so that it
83
+ doesn't contain leading or trailing white space anymore if you can.
84
+ 4. <b>Backticks</b> are only used for the text that should not be
85
+ localized. They cannot be escaped as part of the string. Check if there
86
+ are something should not be localized (see
87
+ [locked terms](#phrases-that-are-fully-locked) for more details).
88
+
89
+ ❌ Not localized
90
+
91
+ - Numbers: 1, 1.23, 1.2e3, etc.
92
+ - Application data: error codes, enums, database names, rgba, urls,
93
+ etc.
94
+
95
+ ✔️ Can be localized
96
+
97
+ - Words and sentences
98
+ - Punctuation
99
+ - Units of measurement: kb/s, mph, etc.
100
+
101
+ 4. The following commands would add the new strings to `en-US.json`:
102
+
103
+ - `git cl presubmit --upload`, or
104
+ - `node third_party/i18n/collect-strings.js` under the DevTools src folder
105
+
106
+ 5. Strings containing possible plurals have a special format in ICU. This is
107
+ because plurals work quite differently in other languages, e.g. special
108
+ forms for two or three items.
109
+
110
+ ❌ `javascript if (count === 1) { str = '1 breakpoint'; } else { str = '{n}
111
+ breakpoints', {n: count}; }`
112
+
113
+ ✔️ `javascript '{n, plural, =1 {# breakpoint} other {# breakpoints}}', {n:
114
+ count};`
115
+
116
+ - '#' is replaced with the value of `n`
117
+ - 'n' is a naming convention, but any name can be used
118
+ - Nesting placeholders inside of plurals is allowed
119
+ - Put the entire string within the plural switch, e.g. `{# breakpoints
120
+ were found}`, not `{# breakpoints} were found`
121
+ - Always provide the `=1` and the `other` case, even if they are the same
122
+ for English.
123
+
124
+ ### Modifying a string
125
+
126
+ 1. Update the string you want to modify in `UIStrings`
127
+ 2. Update the description and placeholders of the string if necessary
128
+
129
+ ### Removing a string
130
+
131
+ 1. Remove your string and the metadata from `UIStrings`
132
+
133
+ ## What are the l10n APIs?
134
+
135
+ Access localized strings in the DevTools frontend using the following
136
+ localization calls.
137
+
138
+ ### i18nString
139
+
140
+ The basic API to make a string (with or without placeholder) localizable. The
141
+ first argument is the string reference in `UIStrings` The second argument is an
142
+ object for placeholders (if any)
143
+
144
+ ```js
145
+ // at the top of example.js file, after import statements
146
+
147
+ const UIStrings = {
148
+ /**
149
+ * @description This is an example description for my new string with placeholder
150
+ * @example {example for placeholder} PH1
151
+ * @example {example 2 for placeholder 2} PH2
152
+ */
153
+ addAnotherString: 'Another new string I want to add, with {PH1} and {PH2}',
154
+ };
155
+
156
+ message = i18nString(UIStrings.addAnotherString, {PH1: 'a placeholder', PH2: 'another placeholder'});
157
+ ```
158
+
159
+ ### i18nLazyString
160
+
161
+ The `i18nString` function returns the translated string, with placeholders
162
+ resolved. To do this, it needs access to the translated strings for the user's
163
+ locale, which are not available until after DevTools has finished starting up.
164
+
165
+ Calls to `i18nString` in the module scope will therefore fail when the module is
166
+ imported.
167
+
168
+ ```js
169
+ // Fails because i18nString runs at module-import time.
170
+ Common.Settings.registerSettingExtension({
171
+ category: Common.Settings.SettingCategory.CONSOLE,
172
+ title: i18nString(UIStrings.groupSimilarMessagesInConsole),
173
+ ...
174
+
175
+ function notTopLevel() {
176
+ console.log(extension.title);
177
+ }
178
+ ```
179
+
180
+ `i18nLazyString` fixes this problem by providing the same API, but returning a
181
+ closure that returns a `LocalizedString`. It can be used in top-level calls;
182
+ just make sure use-sites know it's a function now.
183
+
184
+ ```js
185
+ // Works because i18nLazyString defers the loading of the translated string until later.
186
+ Common.Settings.registerSettingExtension({
187
+ category: Common.Settings.SettingCategory.CONSOLE,
188
+ title: i18nLazyString(UIStrings.groupSimilarMessagesInConsole),
189
+ ...
190
+
191
+ // Note we need to call title() now.
192
+ function notTopLevel() {
193
+ console.log(extension.title());
194
+ }
195
+ ```
196
+
197
+ ### i18n.i18n.getFormatLocalizedString
198
+
199
+ This call returns a **span element**, not a string. It is used when you want to
200
+ construct a DOM element with a localizable string, or localizable content that
201
+ contains some other DOM element.
202
+
203
+ ```js
204
+ // Create the string in UIString
205
+ /**
206
+ *@description Message in Coverage View of the Coverage tab
207
+ *@example {reload button icon} PH1
208
+ *@example {record button icon} PH2
209
+ */
210
+ clickTheRecordButtonSToStart: 'Click the reload button {PH1} to reload or record button {PH2} start capturing coverage.',
211
+
212
+ // Element with localizable content containing two DOM elements that are buttons
213
+ const reloadButton = UI.createInlineButton(UI.Toolbar.createActionButtonForId('coverage.start-with-reload'));
214
+ const recordButton = UI.createInlineButton(UI.Toolbar.createActionButton(this._toggleRecordAction));
215
+ message = i18n.i18n.getFormatLocalizedString(str_, UIStrings.clickTheReloadButtonSToReloadAnd, {PH1: reloadButton, PH2:recordButton });
216
+ ```
217
+
218
+ ### i18n.i18n.lockedString
219
+
220
+ This call is a named cast. Use it in places where a localized string is expected
221
+ but the term you want to use does not require translation. Instead of locking
222
+ the whole phrase or using a placeholder-only phrase, use `lockedString`.
223
+
224
+ ```javascript
225
+ someFunctionRequiringALocalizedString(i18n.i18n.lockedString('HTTP'));
226
+ ```
227
+
228
+ ## How to write good descriptions
229
+
230
+ Good descriptions can improve localizability by providing more context to the
231
+ translators. There are some details that are very important to have in other
232
+ languages!
233
+
234
+ **Good description**:
235
+
236
+ ```js
237
+ const UIStrings = {
238
+ /**
239
+ * @description Tooltip text that appears when hovering over the 'Focusable' attribute name under the Computed Properties section in the Accessibility pane of the Elements pane.
240
+ */
241
+ computedPropertyTooltip: 'If true, this element can receive focus.',
242
+ };
243
+ ```
244
+
245
+ **Bad description**:
246
+
247
+ ```js
248
+ const UIStrings = {
249
+ /**
250
+ * @description Elements pane 'Focusable' tooltip.
251
+ */
252
+ computedPropertyTooltip: 'If true, this element can receive focus.',
253
+ };
254
+ ```
255
+
256
+ ### What information should I provide in the message description?
257
+
258
+ - The type of UI element where the text is displayed. Is it regular text, a
259
+ label, button text, a tooltip, a link, or an accessible label? Button text
260
+ is often imperative i.e. a command to do something, which is important to
261
+ know in some languages.
262
+ - *When*: What triggers the string and/or what is the result? What page or
263
+ text comes before and after? e.g. "Status text while waiting for X", "Shown
264
+ when the audit is finished and X error was encountered".
265
+ - What do the placeholders stand for? Placeholder examples are sent to
266
+ translators, but extra information in the description will help too. e.g.
267
+ "Total time in ms that the profile took to complete", "The CSS property name
268
+ that is being edited"
269
+ - Is this a verb or a noun? Many words in English can be both, e.g. 'request',
270
+ 'address', 'change', 'display', 'increase'. Particularly if the string is
271
+ short, this can be hard to guess. If it's an adjective, what does it refer
272
+ to? This is important for inflection in some languages, where the ending of
273
+ the adjective must change for gender or case.
274
+ - Explain or name any complex terms, e.g. "Trust Tokens are a web API -
275
+ https://web.dev/trust-tokens/"
276
+ - Where is the text located? e.g. A table header in the Sources panel, a
277
+ context-menu item in the Network panel. Many strings in the code base have
278
+ *only* the location, which is not the most important context.
279
+
280
+ ## How to prevent a term being localized
281
+
282
+ Any text within the backticks will not be translated. For example, if the
283
+ 'robots.txt' in string 'Requesting for robots.txt ...' should not be translated:
284
+
285
+ ```javascript
286
+ // in example.js file
287
+
288
+ import * as i18n from '../i18n/i18n.js';
289
+ const UIStrings = {
290
+ /**
291
+ * @description Example description. Note: "robots.txt" is a canonical filename and should not be translated.
292
+ */
293
+ requestMessage: 'Requesting for `robots.txt` ...',
294
+ };
295
+ const str_ = i18n.i18n.registerUIStrings('example.js', UIStrings);
296
+
297
+ const message = i18nString(UIStrings.requestMessage);
298
+ ```
299
+
300
+ The string will rendered with robots.txt not translated and without the
301
+ backticks around it `js 'Requesting for robots.txt ...'`
302
+
303
+ ### Phrases that are fully locked
304
+
305
+ Any text that is fully locked should not go into the UIStrings object. To make
306
+ your intention clear or to make TypeScript happy, there are two methods
307
+ `i18n.i18n.lockedString` and `i18n.i18n.lockedLazyString` that can be used
308
+ instead of having fully locked phrases via `i18nString`.
309
+
310
+ ### What should not be localized?
311
+
312
+ In general, branding related terms and code snippets are the ones to look for,
313
+ and Sometimes some technical terms. Some examples:
314
+
315
+ **Brandings:** Lighthouse, GitHub, DevTools, Chrome Data Saver, Safari,
316
+ BlackBerry Z30, Kindle Fire HDX, Pixel 2, Microsoft Lumia 550
317
+
318
+ **Code snippets:** localhost:9229, console.clear(), --memlog=all, url:a.com
319
+
320
+ **Technical terms:** DOM, DIV, aria...
@@ -0,0 +1,8 @@
1
+ # Chromium DevTools Cookbook
2
+
3
+ [logo]: https://github.com/ChromeDevTools/devtools-logo/raw/master/logos/png/devtools-circle-48.png
4
+ [home]: README.md
5
+ [devtools]: ../README.md
6
+
7
+ * [Chromium DevTools Cookbook][home]
8
+ * [Chromium DevTools Documentation][devtools]
@@ -0,0 +1,60 @@
1
+ # Release Management
2
+
3
+ ## Merges and Cherry-Picks
4
+
5
+ The documentation on cherry-picks and merges (including backmerges and
6
+ backports) can be found in the
7
+ [Chromium DevTools Contribution Guidelines](../contributing/changes.md#Merges-and-cherry-picks).
8
+
9
+ ## Versioning
10
+
11
+ There is no explicit versioning being done. At the time of writing no compelling
12
+ use case was found that would require version numbers. Commits are identified by
13
+ their commit hash, which should suffice for the projected future.
14
+
15
+ ## What happens when Chromium cuts a new Canary branch
16
+
17
+ For each Chromium release branch, we create a mirror branch with the same name
18
+ on our repo. Rough outline:
19
+
20
+ 1. Chromium cuts a branch e.g. 3879
21
+ 1. Bots create Chromium/3879 branch on the DevTools frontend repo
22
+ 1. The end
23
+
24
+ ## Handling of Beta/Stable branches
25
+
26
+ Generally speaking, beta/stable branches are the same as Canary branches. There
27
+ is a special waterfall though, that runs tests on the beta/stable branches.
28
+
29
+ When Chromium updates to a new major version we need to update the branch number
30
+ in
31
+ [infra/config](https://chromium.googlesource.com/devtools/devtools-frontend/+/refs/heads/infra/config)
32
+ branch of devtools-frontend. Specifically, in file buckets/ci.start, promote the
33
+ existing beta branch to stable section and modify beta section with the
34
+ corresponding branch number for the new Chromium milestone.
35
+
36
+ ```python
37
+ generate_ci_configs(
38
+ configurations = [
39
+ ...
40
+ config_section(
41
+ name="beta",
42
+ branch='refs/heads/chromium/4044',
43
+ ),
44
+ config_section(
45
+ name="stable",
46
+ branch='refs/heads/chromium/3987',
47
+ ),
48
+ ...
49
+ ```
50
+
51
+ After editing the above mentioned file run `lucicfg generate main.star` to have
52
+ the change propagated to the cfg files. Example:
53
+ [CL](https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2104476)
54
+
55
+ ## Rolling/Integrating into Chromium
56
+
57
+ The
58
+ [Skia autoroller](https://skia.googlesource.com/buildbot/+/main/autoroll/README.md)
59
+ is used. The DevTools-Frontend auto-roller state can be seen and controlled
60
+ [here](https://autoroll.skia.org/r/devtools-frontend-chromium?tab=status).
@@ -0,0 +1,121 @@
1
+ # UMA metrics in DevTools frontend
2
+
3
+ [TOC]
4
+
5
+ It is highly recommended to use
6
+ [Visual Logging](../../front_end/ui/visual_logging/README.md) for anything
7
+ related to the DevTools front-end, and use use counters or UMA histograms for
8
+ anything related to the DevTools back-end (Chromium, Blink, and V8). In some
9
+ rare cases that require complex analysis of behavior that is not reflected in
10
+ the UI you might need to also use UMA histograms in the DevTools front-end.
11
+
12
+ (Googlers only) Generally, the histogram or action data is available in the
13
+ Timeline category of the [UMA](http://uma/) page.
14
+
15
+ * Select the channel you want to dive into.
16
+ * Select the platforms you are interested in (for us, it is Linux, MacOS,
17
+ Windows, ChromeOS and Lacros)
18
+ * Add the metric you want to see, for example the generic histogram for action
19
+ tracking, `DevTools.ActionTaken`.
20
+
21
+ ## General histograms
22
+
23
+ * `DevTools.ActionTaken` is a generic histogram for tracking actions performed
24
+ via the DevTools front-end.
25
+ * `DevTools.PanelShown` counts how often a given panel or tab is shown in the
26
+ DevTools front-end.
27
+
28
+ ## Histograms for the Workspaces feature
29
+
30
+ * `DevTools.ActionTaken` records `AddFileSystemToWorkspace` (*Add Filesystem
31
+ to Workspace*), `RemoveFileSystemFromWorkspace` (*Remove Filesystem from
32
+ Workspace*) and `FileSystemSourceSelected` (*Filesystem source selected*)
33
+ according to developer interactions with the *Filesystem* tab in the
34
+ *Sources* panels sidebar.
35
+ * `DevTools.Workspaces.PopulateWallClockTime` records the wall clock time in
36
+ milliseconds elapsed while populating a project folder in the workspace.
37
+ * `DevTools.SidebarPaneShown` records the `navigator-files` (*Sources -
38
+ Filesystem*) enum whenever the *Filesystem* tab is revealed in the *Sources*
39
+ panels sidebar.
40
+
41
+ ## How to add UMA metrics in DevTools frontend
42
+
43
+ Decide on the metric (an
44
+ [enumerated histogram](https://chromium.googlesource.com/chromium/src/tools/+/HEAD/metrics/histograms/README.md#enum-histograms)
45
+ or an
46
+ [action](https://source.chromium.org/chromium/chromium/src/+/main:third_party/devtools-frontend/src/front_end/core/host/UserMetrics.ts;l=380)
47
+ to be logged to generic `DevTools.ActionTaken` histogram)
48
+
49
+ 1. For enumerated histogram (We use this when there are multiple related states
50
+ that should be analyzed jointly. For example, we might want to know the
51
+ source of an action like where it is performed from)
52
+ 1. Choose a name for the new histogram prefixed with `DevTools`, for
53
+ example, `DevTools.ColorPickerOpenedFrom`.
54
+ 2. Decide on the values for the different enums you want to log, for
55
+ example, `StylesPane` and `SourcesPanel` for
56
+ `DevTools.ColorPickerOpenedFrom` histogram.
57
+ 2. For actions
58
+ 1. Decide on the name of the action, for example, `DeviceModeEnabled`.
59
+
60
+ ### Tracking an enumerated histogram
61
+
62
+ 1. Implement metric collection in devtools-frontend and create a CL. (Example
63
+ [CL](https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3998783))
64
+ 1. Add the new histogram name to the
65
+ <code>[EnumeratedHistogram](https://source.chromium.org/chromium/chromium/src/+/main:third_party/devtools-frontend/src/front_end/core/host/InspectorFrontendHostAPI.ts;l=351?q=InspectorFrontendHostAPI.ts)</code>
66
+ enum.
67
+ 2. Add the same histogram name to the EnumeratedHistogram object in
68
+ <code>[devtools_compatibility.js](https://source.chromium.org/chromium/chromium/src/+/main:third_party/devtools-frontend/src/front_end/devtools_compatibility.js;l=396?q=devtools_compatibil)</code>
69
+ file.
70
+ 3. Create a new function in
71
+ <code>[UserMetrics.ts](https://source.chromium.org/chromium/chromium/src/+/main:third_party/devtools-frontend/src/front_end/core/host/UserMetrics.ts;l=351)</code>
72
+ with an enum parameter that corresponds to the possible values like
73
+ <code>colorPickerOpenedFrom(type: ColorPickerOpenedFrom): void</code>
74
+ that calls
75
+ <code>InspectorFrontendHostInstance.recordEnumeratedHistogram</code>.
76
+ 4. Call the new function from <code>Host.userMetrics</code> in the places
77
+ that you want to log the event.
78
+ 5. Create the CL.
79
+ 2. Update
80
+ [histograms.xml](https://source.corp.google.com/h/chromium/chromium/src/+/main:tools/metrics/histograms/metadata/dev/histograms.xml)
81
+ and
82
+ [enums.xml](https://source.chromium.org/chromium/chromium/src/+/main:tools/metrics/histograms/enums.xml;l=26267?q=tools%2Fmetrics%2Fhistograms%2Fenums.xml)
83
+ in the Chromium codebase.
84
+ 1. Add a new enum in
85
+ [enums.xml](https://source.chromium.org/chromium/chromium/src/+/main:tools/metrics/histograms/enums.xml;l=26267?q=tools%2Fmetrics%2Fhistograms%2Fenums.xml)
86
+ with values corresponding to the values in the frontend with name
87
+ <code>DevTools&lt;HISTOGRAM_NAME></code> and make sure that enum values
88
+ 1-1 map to the values you’ve defined in the frontend.
89
+ 2. Add the new histogram definition in
90
+ [histograms.xml](https://source.corp.google.com/h/chromium/chromium/src/+/main:tools/metrics/histograms/metadata/dev/histograms.xml)
91
+ and set enum name to be the enum you've defined in the 1st step. Make
92
+ sure that histogram name is the same with the name you've used in the
93
+ frontend change.
94
+ 3. Create the CL.
95
+
96
+ ### Tracking an action
97
+
98
+ 1. Implement metric collection in devtools-frontend and create a CL. (Example
99
+ [CL](https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3998783))
100
+ 1. Add the action you want to track to the
101
+ <code>[Action](https://source.chromium.org/chromium/chromium/src/+/main:third_party/devtools-frontend/src/front_end/core/host/UserMetrics.ts;l=379)</code>
102
+ enum in <code>UserMetrics.ts.</code>
103
+ 2. Call <code>Host.userMetrics.actionTaken(Action.YOUR_ACTION)</code> in
104
+ the places you want to the event.
105
+ 3. Create the CL.
106
+ 2. Update enums in the Chromium side in
107
+ <code>[tools/metrics/histograms/enums.xml](https://source.chromium.org/chromium/chromium/src/+/main:tools/metrics/histograms/enums.xml;l=26267?q=tools%2Fmetrics%2Fhistograms%2Fenums.xml)</code>.
108
+ 1. Add the new action to the <code>DevToolsAction</code> enum.
109
+ 2. Create the CL.
110
+
111
+ ### Metrics Dashboard
112
+
113
+ After the both CLs are landed we expect your histogram or action data to be
114
+ available in [UMA](http://uma/p/chrome/timeline_v2). For seeing them:
115
+
116
+ * Select the channel you want to dive into.
117
+ * Select the platforms you are interested in (for us, it is Linux, MacOS,
118
+ Windows, ChromeOS and Lacros)
119
+ * Add the metric you want to see: either the histogram name you’ve newly added
120
+ `DevTools.ColorPickerOpenedFrom` or the generic histogram for action
121
+ tracking, `DevTools.ActionTaken`.
@@ -1,100 +1 @@
1
- # Dependencies
2
-
3
- [TOC]
4
-
5
- ## Managing dependencies
6
-
7
- If you need to manually roll a git dependency, it's not sufficient to update the revision in the DEPS file. Instead, use
8
- the gclient tool:
9
- ```bash
10
- gclient setdep -r DEP@REV # for example build@afe0125ef9e10b400d9ec145aa18fca932369346
11
- ```
12
- This will simultaneously update both the DEPS entry as well as the gitlink entry for the corresponding git submodule.
13
-
14
- To sync dependencies from Chromium to DevTools frontend, use `scripts/deps/roll_deps.py`.
15
- Note that this may:
16
- - Introduce unneeded whitespace/formatting changes. Presubmit scripts (e.g. invoked via `git cl upload`) will automatically fix these locally, so just apply the changes directly to your change (e.g. with `git commit --amend`) afterwards.
17
- - Introduce breaking changes to the devtools protocol, causing compilation failures. Unfortunately these need to be handled manually as there are some changes (e.g. removing an enum value) that cannot fail gracefully.
18
-
19
-
20
- The following scripts run as AutoRollers, but can be manually invoked if desired:
21
-
22
- - To roll the `HEAD` commit of DevTools frontend into Chromium, use `scripts/deps/roll_to_chromium.py`.
23
- - To update DevTools frontend's DEPS, use `roll-dep`.
24
-
25
- ## Third-party Guidelines
26
-
27
- When you want to integrate or use third-party content in DevTools, there are a
28
- couple of different ways to do so. Most of the time, we have to make a
29
- distinction between "third-party code we use as part of DevTools implementation"
30
- and "third-party code we use to build DevTools itself, but is not included in
31
- the product".
32
-
33
- ### Third-party code included in DevTools bundle
34
-
35
- All third-party content that you want to ship as part of the DevTools bundle
36
- must be included in `front_end/third_party`. The typical way to update these
37
- packages is to download the relevant packages from [npm]. Since DevTools does
38
- not use a `package.json` to handle its dependencies (to make it possible to
39
- review third-party changes by legal), most packages bundles are fetched with
40
- `wget`.
41
-
42
- For all these packages, the [Chromium third-party guidelines] apply.
43
-
44
- Since DevTools ships as part of the Chrome binary, bundle size
45
- limitations apply. To make integration feasible, focus on small packages that
46
- (preferably) have no dependencies. This will make licensing checks feasible for
47
- Chromium reviewers and typically avoids inflating the bundle size.
48
-
49
- ### Third-party tooling packages
50
-
51
- For all third-party packages that are used either as part of the DevTools build
52
- process or to augment engineers workflows (for example linters), we add them to
53
- `scripts/deps/manage_node_deps.py`. This Python script has been approved by
54
- Chromium licensing to be used, on the basis that it enforces all packages have a
55
- license that is compatible with a set of pre-defined licensees.
56
-
57
- If you want to use a new package as tooling process in engineer workflows, you
58
- can add the package to the `package.json` and run `npm run install-deps`
59
- to check in the new contents.
60
-
61
- Only add new license types to `LICENSES` after you received approval
62
- from `opensource-licensing@google.com`. Their response time is typically within
63
- 24 hours, so this typically is not a big hurdle.
64
-
65
- To avoid excessive package updates, it is typically easiest to
66
- update all packages in `manage_node_deps.py` once a month. Since NPM packages
67
- can have a lot of (shared) transitive dependencies, updating the packages on a
68
- specific day increases the chances that shared dependencies are deduplicated and
69
- thus result in smaller repository sizes.
70
-
71
- > **WARNING:** Updating tools such as Rollup and TypeScript will cause all build cache
72
- > output to be purged, as they are part of all DevTools modules. Whenever you are
73
- > updating either of these tools, update these at the end of a working day to
74
- > avoid full rebuilds for other engineers.
75
-
76
- ### Chromium third-party DEPS
77
-
78
- Some packages related to infrastructure are maintained by Chromium infra teams.
79
- These packages are typically uploaded to cloud storage buckets or are explicitly
80
- mirrored to a repository on https://chromium.googlesource.com. Examples include
81
- [GN][] (Chromium/DevTools build system) or [clang-format][] (multi-language
82
- formatter).
83
-
84
- The packages in `DEPS` are typically kept automatically up-to-date with
85
- autorollers. These autorollers will periodically update packages, which
86
- engineers can fetch with running `gclient sync`.
87
-
88
- These `DEPS` are checked out on all bots, which includes Chromium and
89
- DevTools-specific bots. To avoid excessive network bandwidth usage, by default
90
- do not check out packages if they are only used in specific situations.
91
-
92
- Only include packages that are maintained by Chromium
93
- infrastructure teams and are used to build DevTools in `DEPS`. For packages that
94
- are DevTools-specific, prefer adding them to `scripts/deps/manage_node_deps.py`
95
- instead.
96
-
97
- [npm]: https://www.npmjs.com/
98
- [Chromium third-party guidelines]: https://chromium.googlesource.com/chromium/src/+/HEAD/docs/adding_to_third_party.md
99
- [GN]: https://gn.googlesource.com/gn/+/master/docs/reference.md
100
- [clang-format]: https://clang.llvm.org/docs/ClangFormat.html
1
+ This file has moved [here](./cookbook/dependencies.md).