chrome-devtools-frontend 1.0.1522585 → 1.0.1524741

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 (341) hide show
  1. package/AUTHORS +1 -0
  2. package/docs/README.md +1 -0
  3. package/docs/policy/README.md +1 -0
  4. package/docs/policy/console-policy.md +144 -0
  5. package/docs/policy/images/console-policy1.png +0 -0
  6. package/docs/policy/images/console-policy2.png +0 -0
  7. package/docs/policy/images/console-policy3.png +0 -0
  8. package/docs/ui_engineering.md +22 -0
  9. package/front_end/Tests.js +1 -1
  10. package/front_end/core/common/Color.ts +13 -9
  11. package/front_end/core/common/ColorConverter.ts +9 -7
  12. package/front_end/core/common/Gzip.ts +1 -1
  13. package/front_end/core/common/MapWithDefault.ts +5 -3
  14. package/front_end/core/common/ResourceType.ts +0 -12
  15. package/front_end/core/common/ReturnToPanel.ts +6 -4
  16. package/front_end/core/common/Trie.ts +4 -2
  17. package/front_end/core/host/AidaClient.ts +3 -3
  18. package/front_end/core/host/GdpClient.ts +7 -5
  19. package/front_end/core/host/InspectorFrontendHostAPI.ts +7 -5
  20. package/front_end/core/host/Platform.ts +5 -3
  21. package/front_end/core/host/UserMetrics.ts +6 -4
  22. package/front_end/core/platform/ArrayUtilities.ts +1 -1
  23. package/front_end/core/platform/StringUtilities.ts +34 -31
  24. package/front_end/core/root/Runtime.ts +1 -1
  25. package/front_end/core/sdk/CSSMetadata.ts +6 -4
  26. package/front_end/core/sdk/CSSPropertyParser.ts +17 -13
  27. package/front_end/core/sdk/CSSPropertyParserMatchers.ts +19 -13
  28. package/front_end/core/sdk/ChildTargetManager.ts +35 -0
  29. package/front_end/core/sdk/DOMModel.ts +1 -1
  30. package/front_end/core/sdk/EventBreakpointsModel.ts +4 -2
  31. package/front_end/core/sdk/HttpReasonPhraseStrings.ts +4 -2
  32. package/front_end/core/sdk/NetworkManager.ts +8 -48
  33. package/front_end/core/sdk/NetworkRequest.ts +0 -28
  34. package/front_end/core/sdk/PageResourceLoader.ts +1 -1
  35. package/front_end/core/sdk/PreloadingModel.ts +22 -18
  36. package/front_end/core/sdk/RehydratingConnection.ts +1 -1
  37. package/front_end/core/sdk/RehydratingObject.ts +1 -1
  38. package/front_end/core/sdk/RemoteObject.ts +1 -1
  39. package/front_end/core/sdk/ResourceTreeModel.ts +2 -0
  40. package/front_end/core/sdk/ScreenCaptureModel.ts +24 -20
  41. package/front_end/core/sdk/Target.ts +7 -1
  42. package/front_end/core/sdk/TraceObject.ts +2 -2
  43. package/front_end/entrypoints/formatter_worker/Substitute.ts +6 -4
  44. package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +24 -16
  45. package/front_end/entrypoints/inspector_main/OutermostTargetSelector.ts +2 -1
  46. package/front_end/entrypoints/main/MainImpl.ts +6 -4
  47. package/front_end/generated/InspectorBackendCommands.js +2 -2
  48. package/front_end/generated/protocol-mapping.d.ts +3 -2
  49. package/front_end/generated/protocol-proxy-api.d.ts +3 -1
  50. package/front_end/generated/protocol.ts +7 -1
  51. package/front_end/models/ai_assistance/agents/StylingAgent.snapshot.txt +55 -14
  52. package/front_end/models/ai_assistance/agents/StylingAgent.ts +83 -222
  53. package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +23 -0
  54. package/front_end/models/ai_assistance/performance/AIContext.ts +19 -4
  55. package/front_end/models/ai_code_completion/AiCodeCompletion.ts +4 -2
  56. package/front_end/models/autofill_manager/AutofillManager.ts +4 -2
  57. package/front_end/models/cpu_profile/CPUProfileDataModel.ts +1 -1
  58. package/front_end/models/crux-manager/CrUXManager.ts +1 -1
  59. package/front_end/models/extensions/HostUrlPattern.ts +13 -5
  60. package/front_end/models/issues_manager/CookieDeprecationMetadataIssue.ts +1 -1
  61. package/front_end/models/issues_manager/CookieIssue.ts +2 -2
  62. package/front_end/models/issues_manager/MarkdownIssueDescription.ts +1 -1
  63. package/front_end/models/issues_manager/SharedDictionaryIssue.ts +20 -0
  64. package/front_end/models/issues_manager/descriptions/sharedDictionaryWriteErrorInvalidTTLField.md +1 -0
  65. package/front_end/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonIntegerTTLField.md +1 -0
  66. package/front_end/models/javascript_metadata/NativeFunctions.js +8 -0
  67. package/front_end/models/network_time_calculator/Calculator.ts +4 -2
  68. package/front_end/models/network_time_calculator/RequestTimeRanges.ts +6 -4
  69. package/front_end/models/source_map_scopes/NamesResolver.ts +7 -5
  70. package/front_end/models/text_utils/ContentProvider.ts +6 -4
  71. package/front_end/models/trace/extras/TraceTree.ts +1 -1
  72. package/front_end/models/trace/handlers/FramesHandler.ts +7 -5
  73. package/front_end/models/trace/handlers/LayoutShiftsHandler.ts +13 -7
  74. package/front_end/models/trace/handlers/MetaHandler.ts +16 -14
  75. package/front_end/models/trace/handlers/NetworkRequestsHandler.ts +20 -8
  76. package/front_end/models/trace/handlers/helpers.ts +1 -1
  77. package/front_end/models/trace/handlers/types.ts +23 -19
  78. package/front_end/models/trace/helpers/Timing.ts +4 -2
  79. package/front_end/models/trace/helpers/Trace.ts +8 -4
  80. package/front_end/models/trace/insights/DocumentLatency.ts +1 -1
  81. package/front_end/models/trace/insights/INPBreakdown.ts +13 -2
  82. package/front_end/models/trace/insights/LCPBreakdown.ts +14 -2
  83. package/front_end/models/trace/insights/NetworkDependencyTree.ts +2 -2
  84. package/front_end/models/trace/types/File.ts +12 -8
  85. package/front_end/models/trace/types/Timing.ts +1 -1
  86. package/front_end/models/trace/types/TraceEvents.ts +37 -23
  87. package/front_end/models/trace_source_maps_resolver/SourceMapsResolver.ts +1 -1
  88. package/front_end/panels/ai_assistance/components/MarkdownRendererWithCodeBlock.ts +12 -10
  89. package/front_end/panels/application/KeyValueStorageItemsView.ts +31 -33
  90. package/front_end/panels/application/components/InterestGroupAccessGrid.ts +6 -11
  91. package/front_end/panels/application/components/OriginTrialTreeView.ts +7 -5
  92. package/front_end/panels/application/components/PermissionsPolicySection.ts +1 -0
  93. package/front_end/panels/application/components/ReportsGrid.ts +4 -10
  94. package/front_end/panels/application/components/SharedStorageAccessGrid.ts +5 -13
  95. package/front_end/panels/application/preloading/components/MismatchedPreloadingGrid.ts +1 -1
  96. package/front_end/panels/application/preloading/components/PreloadingGrid.ts +3 -7
  97. package/front_end/panels/application/preloading/components/PreloadingString.ts +2 -2
  98. package/front_end/panels/application/preloading/components/RuleSetGrid.ts +3 -10
  99. package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +4 -2
  100. package/front_end/panels/browser_debugger/browser_debugger-meta.ts +7 -5
  101. package/front_end/panels/changes/ChangesSidebar.ts +97 -95
  102. package/front_end/panels/changes/changesSidebar.css +3 -0
  103. package/front_end/panels/console/ConsoleView.ts +2 -2
  104. package/front_end/panels/developer_resources/DeveloperResourcesListView.ts +22 -35
  105. package/front_end/panels/elements/ComputedStyleWidget.ts +1 -1
  106. package/front_end/panels/elements/ElementStatePaneWidget.ts +12 -0
  107. package/front_end/panels/elements/ElementsTreeElement.ts +9 -5
  108. package/front_end/panels/elements/ElementsTreeOutline.ts +11 -8
  109. package/front_end/panels/elements/PropertyRenderer.ts +19 -15
  110. package/front_end/panels/elements/StylePropertyTreeElement.ts +6 -4
  111. package/front_end/panels/elements/StylesSidebarPane.ts +2 -2
  112. package/front_end/panels/elements/components/AccessibilityTreeNode.ts +4 -2
  113. package/front_end/panels/elements/components/AdornerManager.ts +5 -3
  114. package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.ts +6 -4
  115. package/front_end/panels/media/PlayerPropertiesView.ts +1 -1
  116. package/front_end/panels/network/NetworkDataGridNode.ts +2 -44
  117. package/front_end/panels/network/NetworkLogView.ts +6 -4
  118. package/front_end/panels/network/RequestPreviewView.ts +0 -7
  119. package/front_end/panels/network/components/RequestHeadersView.ts +0 -6
  120. package/front_end/panels/network/components/components.ts +0 -2
  121. package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +1 -1
  122. package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +4 -2
  123. package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +12 -19
  124. package/front_end/panels/search/SearchResultsPane.ts +2 -3
  125. package/front_end/panels/security/IPProtectionView.ts +1 -1
  126. package/front_end/panels/settings/emulation/components/userAgentClientHintsForm.css +4 -0
  127. package/front_end/panels/settings/emulation/utils/StructuredHeaders.ts +45 -37
  128. package/front_end/panels/sources/BreakpointsViewUtils.ts +11 -9
  129. package/front_end/panels/sources/DebuggerPlugin.ts +8 -4
  130. package/front_end/panels/sources/SourcesPanel.ts +1 -1
  131. package/front_end/panels/sources/UISourceCodeFrame.ts +1 -1
  132. package/front_end/panels/timeline/CompatibilityTracksAppender.ts +4 -2
  133. package/front_end/panels/timeline/CountersGraph.ts +12 -5
  134. package/front_end/panels/timeline/EasterEgg.d.ts +5 -3
  135. package/front_end/panels/timeline/LayoutShiftsTrackAppender.ts +8 -6
  136. package/front_end/panels/timeline/ModificationsManager.ts +5 -3
  137. package/front_end/panels/timeline/ThreadAppender.ts +7 -5
  138. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +10 -8
  139. package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +1 -1
  140. package/front_end/panels/timeline/TimelinePanel.ts +10 -8
  141. package/front_end/panels/timeline/TimelineSelection.ts +4 -2
  142. package/front_end/panels/timeline/TimelineUIUtils.ts +5 -3
  143. package/front_end/panels/timeline/components/BreadcrumbsUI.ts +6 -4
  144. package/front_end/panels/timeline/components/Utils.ts +1 -1
  145. package/front_end/panels/timeline/overlays/OverlaysImpl.ts +5 -3
  146. package/front_end/panels/timeline/utils/Helpers.ts +1 -1
  147. package/front_end/panels/utils/utils.ts +1 -7
  148. package/front_end/services/trace_bounds/TraceBounds.ts +4 -2
  149. package/front_end/services/tracing/PerformanceTracing.ts +1 -1
  150. package/front_end/third_party/chromium/README.chromium +1 -1
  151. package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
  152. package/front_end/third_party/codemirror.next/chunk/codemirror.js.map +1 -1
  153. package/front_end/third_party/codemirror.next/chunk/php.js +1 -1
  154. package/front_end/third_party/codemirror.next/chunk/php.js.map +1 -1
  155. package/front_end/third_party/codemirror.next/package.json +3 -2
  156. package/front_end/third_party/puppeteer/README.chromium +2 -2
  157. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Dialog.d.ts +8 -10
  158. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Dialog.d.ts.map +1 -1
  159. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Dialog.js +8 -10
  160. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Dialog.js.map +1 -1
  161. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.d.ts +28 -30
  162. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.d.ts.map +1 -1
  163. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.js +27 -29
  164. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.js.map +1 -1
  165. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.d.ts +34 -38
  166. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.d.ts.map +1 -1
  167. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.js +34 -38
  168. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.js.map +1 -1
  169. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPRequest.d.ts +8 -1
  170. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPRequest.d.ts.map +1 -1
  171. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPRequest.js +12 -14
  172. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPRequest.js.map +1 -1
  173. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts +92 -108
  174. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts.map +1 -1
  175. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js +33 -39
  176. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js.map +1 -1
  177. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.d.ts.map +1 -1
  178. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.js +5 -3
  179. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.js.map +1 -1
  180. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.d.ts.map +1 -1
  181. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.js +1 -1
  182. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.js.map +1 -1
  183. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/HTTPRequest.d.ts +4 -2
  184. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/HTTPRequest.d.ts.map +1 -1
  185. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/HTTPRequest.js +14 -5
  186. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/HTTPRequest.js.map +1 -1
  187. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts +1 -0
  188. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts.map +1 -1
  189. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js +12 -6
  190. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js.map +1 -1
  191. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Browser.d.ts.map +1 -1
  192. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Browser.js +24 -2
  193. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Browser.js.map +1 -1
  194. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Realm.d.ts +2 -2
  195. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.d.ts +1 -0
  196. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.d.ts.map +1 -1
  197. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.js +3 -0
  198. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.js.map +1 -1
  199. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/PredefinedNetworkConditions.d.ts +13 -22
  200. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/PredefinedNetworkConditions.d.ts.map +1 -1
  201. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/PredefinedNetworkConditions.js +13 -22
  202. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/PredefinedNetworkConditions.js.map +1 -1
  203. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Device.d.ts +6 -8
  204. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Device.d.ts.map +1 -1
  205. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Device.js +6 -8
  206. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Device.js.map +1 -1
  207. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.d.ts +1 -1
  208. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.js +1 -1
  209. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +1 -1
  210. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.d.ts +1 -1
  211. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
  212. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js +6 -3
  213. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js.map +1 -1
  214. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.d.ts +5 -7
  215. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.d.ts.map +1 -1
  216. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.js +5 -7
  217. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.js.map +1 -1
  218. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.d.ts +3 -3
  219. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +3 -3
  220. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js.map +1 -1
  221. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.d.ts +2 -2
  222. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +188 -224
  223. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +140 -166
  224. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Dialog.d.ts +8 -10
  225. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Dialog.d.ts.map +1 -1
  226. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Dialog.js +8 -10
  227. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Dialog.js.map +1 -1
  228. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.d.ts +28 -30
  229. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.d.ts.map +1 -1
  230. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.js +27 -29
  231. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.js.map +1 -1
  232. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.d.ts +34 -38
  233. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.d.ts.map +1 -1
  234. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.js +34 -38
  235. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.js.map +1 -1
  236. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/HTTPRequest.d.ts +8 -1
  237. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/HTTPRequest.d.ts.map +1 -1
  238. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/HTTPRequest.js +12 -14
  239. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/HTTPRequest.js.map +1 -1
  240. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts +92 -108
  241. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts.map +1 -1
  242. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js +33 -39
  243. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js.map +1 -1
  244. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.d.ts.map +1 -1
  245. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.js +5 -3
  246. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.js.map +1 -1
  247. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.d.ts.map +1 -1
  248. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.js +1 -1
  249. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.js.map +1 -1
  250. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/HTTPRequest.d.ts +4 -2
  251. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/HTTPRequest.d.ts.map +1 -1
  252. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/HTTPRequest.js +15 -6
  253. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/HTTPRequest.js.map +1 -1
  254. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts +1 -0
  255. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts.map +1 -1
  256. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js +12 -6
  257. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js.map +1 -1
  258. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Browser.d.ts.map +1 -1
  259. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Browser.js +24 -2
  260. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Browser.js.map +1 -1
  261. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.d.ts +1 -0
  262. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.d.ts.map +1 -1
  263. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.js +3 -0
  264. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.js.map +1 -1
  265. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/PredefinedNetworkConditions.d.ts +13 -22
  266. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/PredefinedNetworkConditions.d.ts.map +1 -1
  267. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/PredefinedNetworkConditions.js +13 -22
  268. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/PredefinedNetworkConditions.js.map +1 -1
  269. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Device.d.ts +6 -8
  270. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Device.d.ts.map +1 -1
  271. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Device.js +6 -8
  272. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Device.js.map +1 -1
  273. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.d.ts +1 -1
  274. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.js +1 -1
  275. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.d.ts +1 -1
  276. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
  277. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js +6 -3
  278. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js.map +1 -1
  279. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.d.ts +5 -7
  280. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.d.ts.map +1 -1
  281. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.js +5 -7
  282. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.js.map +1 -1
  283. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts +3 -3
  284. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +3 -3
  285. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js.map +1 -1
  286. package/front_end/third_party/puppeteer/package/lib/types.d.ts +188 -224
  287. package/front_end/third_party/puppeteer/package/package.json +3 -3
  288. package/front_end/third_party/puppeteer/package/src/api/Dialog.ts +8 -10
  289. package/front_end/third_party/puppeteer/package/src/api/ElementHandle.ts +27 -29
  290. package/front_end/third_party/puppeteer/package/src/api/Frame.ts +34 -38
  291. package/front_end/third_party/puppeteer/package/src/api/HTTPRequest.ts +17 -14
  292. package/front_end/third_party/puppeteer/package/src/api/Page.ts +92 -108
  293. package/front_end/third_party/puppeteer/package/src/bidi/Browser.ts +5 -3
  294. package/front_end/third_party/puppeteer/package/src/bidi/Frame.ts +5 -1
  295. package/front_end/third_party/puppeteer/package/src/bidi/HTTPRequest.ts +28 -3
  296. package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +16 -7
  297. package/front_end/third_party/puppeteer/package/src/bidi/core/Browser.ts +28 -2
  298. package/front_end/third_party/puppeteer/package/src/cdp/HTTPRequest.ts +4 -0
  299. package/front_end/third_party/puppeteer/package/src/cdp/PredefinedNetworkConditions.ts +13 -22
  300. package/front_end/third_party/puppeteer/package/src/common/Device.ts +6 -8
  301. package/front_end/third_party/puppeteer/package/src/generated/version.ts +1 -1
  302. package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +6 -3
  303. package/front_end/third_party/puppeteer/package/src/node/PuppeteerNode.ts +5 -7
  304. package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
  305. package/front_end/ui/components/chrome_link/ChromeLink.ts +4 -2
  306. package/front_end/ui/components/dialogs/Dialog.ts +13 -9
  307. package/front_end/ui/components/highlighting/HighlightElement.ts +77 -0
  308. package/front_end/ui/components/highlighting/HighlightManager.ts +37 -0
  309. package/front_end/ui/components/highlighting/highlighting.ts +2 -0
  310. package/front_end/ui/components/markdown_view/MarkdownImagesMap.ts +5 -3
  311. package/front_end/ui/components/markdown_view/MarkdownLinksMap.ts +5 -3
  312. package/front_end/ui/components/menus/SelectMenu.ts +6 -4
  313. package/front_end/ui/components/survey_link/SurveyLink.ts +4 -2
  314. package/front_end/ui/components/text_editor/config.ts +10 -6
  315. package/front_end/ui/components/text_editor/javascript.ts +8 -4
  316. package/front_end/ui/legacy/ForwardedInputEventHandler.ts +4 -2
  317. package/front_end/ui/legacy/GlassPane.ts +1 -1
  318. package/front_end/ui/legacy/SettingsUI.ts +1 -5
  319. package/front_end/ui/legacy/Treeoutline.ts +12 -33
  320. package/front_end/ui/legacy/UIUtils.ts +19 -1
  321. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +12 -10
  322. package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +30 -32
  323. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +1 -1
  324. package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +25 -25
  325. package/front_end/ui/legacy/components/data_grid/dataGrid.css +5 -0
  326. package/front_end/ui/legacy/components/inline_editor/AnimationTimingModel.ts +4 -2
  327. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +4 -2
  328. package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +8 -6
  329. package/front_end/ui/legacy/components/perf_ui/PieChart.ts +6 -4
  330. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +3 -3
  331. package/front_end/ui/legacy/components/source_frame/XMLView.ts +22 -16
  332. package/front_end/ui/legacy/components/source_frame/xmlView.css +0 -2
  333. package/front_end/ui/legacy/components/utils/Linkifier.ts +6 -4
  334. package/front_end/ui/visual_logging/Debugging.ts +10 -6
  335. package/front_end/ui/visual_logging/KnownContextValues.ts +1 -3
  336. package/inspector_overlay/common.ts +5 -3
  337. package/inspector_overlay/highlight_grid_common.ts +1 -1
  338. package/package.json +1 -1
  339. package/front_end/Images/src/bundle.svg +0 -3
  340. package/front_end/panels/network/components/WebBundleInfoView.css +0 -27
  341. package/front_end/panels/network/components/WebBundleInfoView.ts +0 -95
@@ -633,9 +633,11 @@ export class HeapSnapshotProgress {
633
633
  }
634
634
  }
635
635
 
636
- // An "interface" to be used when classifying plain JS objects in the snapshot.
637
- // An object matches the interface if it contains every listed property (even
638
- // if it also contains extra properties).
636
+ /**
637
+ * An "interface" to be used when classifying plain JS objects in the snapshot.
638
+ * An object matches the interface if it contains every listed property (even
639
+ * if it also contains extra properties).
640
+ **/
639
641
  interface InterfaceDefinition {
640
642
  name: string;
641
643
  properties: string[];
@@ -680,7 +682,7 @@ export interface Profile {
680
682
 
681
683
  export type LiveObjects = Record<number, {count: number, size: number, ids: number[]}>;
682
684
 
683
- // The first batch of data sent from the primary worker to the secondary.
685
+ /** The first batch of data sent from the primary worker to the secondary. **/
684
686
  interface SecondaryInitArgumentsStep1 {
685
687
  // For each edge ordinal, this array contains the ordinal of the pointed-to node.
686
688
  edgeToNodeOrdinals: Uint32Array;
@@ -692,7 +694,7 @@ interface SecondaryInitArgumentsStep1 {
692
694
  nodeFieldCount: number;
693
695
  }
694
696
 
695
- // The second batch of data sent from the primary worker to the secondary.
697
+ /** The second batch of data sent from the primary worker to the secondary. **/
696
698
  interface SecondaryInitArgumentsStep2 {
697
699
  rootNodeOrdinal: number;
698
700
  // An array with one bit per edge, where each bit indicates whether the edge
@@ -700,7 +702,7 @@ interface SecondaryInitArgumentsStep2 {
700
702
  essentialEdgesBuffer: ArrayBuffer;
701
703
  }
702
704
 
703
- // The third batch of data sent from the primary worker to the secondary.
705
+ /** The third batch of data sent from the primary worker to the secondary. **/
704
706
  interface SecondaryInitArgumentsStep3 {
705
707
  // For each node ordinal, this array contains the node's shallow size.
706
708
  nodeSelfSizes: Uint32Array;
@@ -749,11 +751,13 @@ interface DominatedNodes {
749
751
  dominatedNodes: Uint32Array;
750
752
  }
751
753
 
752
- // The data transferred from the secondary worker to the primary.
754
+ /** The data transferred from the secondary worker to the primary. **/
753
755
  interface ResultsFromSecondWorker extends Retainers, DominatorsAndRetainedSizes, DominatedNodes {}
754
756
 
755
- // Initialization work is split into two threads. This class is the entry point
756
- // for work done by the second thread.
757
+ /**
758
+ * Initialization work is split into two threads. This class is the entry point
759
+ * for work done by the second thread.
760
+ **/
757
761
  export class SecondaryInitManager {
758
762
  argsStep1: Promise<SecondaryInitArgumentsStep1>;
759
763
  argsStep2: Promise<SecondaryInitArgumentsStep2>;
@@ -2153,8 +2157,10 @@ export abstract class HeapSnapshot {
2153
2157
  private inferInterfaceDefinitions(): InterfaceDefinition[] {
2154
2158
  const {edgePropertyType} = this;
2155
2159
 
2156
- // First, produce a set of candidate definitions by iterating the properties
2157
- // on every plain JS Object in the snapshot.
2160
+ /**
2161
+ * First, produce a set of candidate definitions by iterating the properties
2162
+ * on every plain JS Object in the snapshot.
2163
+ **/
2158
2164
  interface InterfaceDefinitionCandidate extends InterfaceDefinition {
2159
2165
  // How many objects start with these properties in this order.
2160
2166
  count: number;
@@ -2229,7 +2235,7 @@ export abstract class HeapSnapshot {
2229
2235
  this.#aggregates = {};
2230
2236
  this.#aggregatesSortedFlags = {};
2231
2237
 
2232
- // Information about a named interface.
2238
+ /** Information about a named interface. **/
2233
2239
  interface MatchInfo {
2234
2240
  name: string;
2235
2241
  // The number of properties listed in the interface definition.
@@ -2248,9 +2254,11 @@ export abstract class HeapSnapshot {
2248
2254
  return a.index <= b.index ? a : b;
2249
2255
  }
2250
2256
 
2251
- // A node in the tree which allows us to search for interfaces matching an object.
2252
- // Each edge in this tree represents adding a property, starting from an empty
2253
- // object. Properties must be iterated in sorted order.
2257
+ /**
2258
+ * A node in the tree which allows us to search for interfaces matching an object.
2259
+ * Each edge in this tree represents adding a property, starting from an empty
2260
+ * object. Properties must be iterated in sorted order.
2261
+ **/
2254
2262
  interface PropertyTreeNode {
2255
2263
  // All possible successors from this node. Keys are property names.
2256
2264
  next: Map<string, PropertyTreeNode>;
@@ -3627,7 +3635,7 @@ export class JSHeapSnapshot extends HeapSnapshot {
3627
3635
  }
3628
3636
  }
3629
3637
 
3630
- // Creates and initializes a JSHeapSnapshot using only one thread.
3638
+ /** Creates and initializes a JSHeapSnapshot using only one thread. **/
3631
3639
  export async function createJSHeapSnapshotForTesting(profile: Profile): Promise<JSHeapSnapshot> {
3632
3640
  const result = new JSHeapSnapshot(profile, new HeapSnapshotProgress());
3633
3641
  const channel = new MessageChannel();
@@ -91,7 +91,8 @@ export class OutermostTargetSelector implements SDK.TargetManager.Observer, UI.S
91
91
  this.listItems.insertWithComparator(target, this.#targetComparator());
92
92
  this.#toolbarItem.setVisible(this.listItems.length > 1);
93
93
 
94
- if (target === UI.Context.Context.instance().flavor(SDK.Target.Target)) {
94
+ const primaryTarget = SDK.TargetManager.TargetManager.instance().primaryPageTarget();
95
+ if (target === primaryTarget || target === UI.Context.Context.instance().flavor(SDK.Target.Target)) {
95
96
  this.#dropDown.selectItem(target);
96
97
  }
97
98
  }
@@ -1022,7 +1022,7 @@ export class PauseListener {
1022
1022
  }
1023
1023
  }
1024
1024
 
1025
- // Unused but mentioned at https://chromedevtools.github.io/devtools-protocol/#:~:text=use%20Main.MainImpl.-,sendOverProtocol,-()%20in%20the
1025
+ /** Unused but mentioned at https://chromedevtools.github.io/devtools-protocol/#:~:text=use%20Main.MainImpl.-,sendOverProtocol,-()%20in%20the **/
1026
1026
  export function sendOverProtocol(
1027
1027
  method: ProtocolClient.InspectorBackend.QualifiedName, params: Object|null): Promise<unknown[]|null> {
1028
1028
  return new Promise((resolve, reject) => {
@@ -1064,9 +1064,11 @@ type ExternalRequestInput = {
1064
1064
  args: {requestUrl: string, prompt: string},
1065
1065
  };
1066
1066
 
1067
- // For backwards-compatibility we iterate over the generator and drop the
1068
- // intermediate results. The final response is transformed to its legacy type.
1069
- // Instead of sending responses of type error, errors are throws.
1067
+ /**
1068
+ * For backwards-compatibility we iterate over the generator and drop the
1069
+ * intermediate results. The final response is transformed to its legacy type.
1070
+ * Instead of sending responses of type error, errors are throws.
1071
+ **/
1070
1072
  export async function handleExternalRequest(input: ExternalRequestInput):
1071
1073
  Promise<{response: string, devToolsLogs: object[]}> {
1072
1074
  const generator = await handleExternalRequestGenerator(input);
@@ -215,7 +215,7 @@ inspectorBackend.registerEvent("Browser.downloadWillBegin", ["frameId", "guid",
215
215
  inspectorBackend.registerEnum("Browser.DownloadProgressEventState", {InProgress: "inProgress", Completed: "completed", Canceled: "canceled"});
216
216
  inspectorBackend.registerEvent("Browser.downloadProgress", ["guid", "totalBytes", "receivedBytes", "state", "filePath"]);
217
217
  inspectorBackend.registerCommand("Browser.setPermission", [{"name": "permission", "type": "object", "optional": false, "description": "Descriptor of permission to override.", "typeRef": "Browser.PermissionDescriptor"}, {"name": "setting", "type": "string", "optional": false, "description": "Setting of the permission.", "typeRef": "Browser.PermissionSetting"}, {"name": "origin", "type": "string", "optional": true, "description": "Requesting origin the permission applies to, all origins if not specified.", "typeRef": null}, {"name": "embeddingOrigin", "type": "string", "optional": true, "description": "Embedding origin the permission applies to. It is ignored unless the requesting origin is present and valid. If the requesting origin is provided but the embedding origin isn't, the requesting origin is used as the embedding origin.", "typeRef": null}, {"name": "browserContextId", "type": "string", "optional": true, "description": "Context to override. When omitted, default browser context is used.", "typeRef": "Browser.BrowserContextID"}], [], "Set permission settings for given requesting and embedding origins.");
218
- inspectorBackend.registerCommand("Browser.grantPermissions", [{"name": "permissions", "type": "array", "optional": false, "description": "", "typeRef": "Browser.PermissionType"}, {"name": "origin", "type": "string", "optional": true, "description": "Origin the permission applies to, all origins if not specified.", "typeRef": null}, {"name": "browserContextId", "type": "string", "optional": true, "description": "BrowserContext to override permissions. When omitted, default browser context is used.", "typeRef": "Browser.BrowserContextID"}], [], "Grant specific permissions to the given origin and reject all others.");
218
+ inspectorBackend.registerCommand("Browser.grantPermissions", [{"name": "permissions", "type": "array", "optional": false, "description": "", "typeRef": "Browser.PermissionType"}, {"name": "origin", "type": "string", "optional": true, "description": "Origin the permission applies to, all origins if not specified.", "typeRef": null}, {"name": "browserContextId", "type": "string", "optional": true, "description": "BrowserContext to override permissions. When omitted, default browser context is used.", "typeRef": "Browser.BrowserContextID"}], [], "Grant specific permissions to the given origin and reject all others. Deprecated. Use setPermission instead.");
219
219
  inspectorBackend.registerCommand("Browser.resetPermissions", [{"name": "browserContextId", "type": "string", "optional": true, "description": "BrowserContext to reset permissions. When omitted, default browser context is used.", "typeRef": "Browser.BrowserContextID"}], [], "Reset all permission management for all origins.");
220
220
  inspectorBackend.registerEnum("Browser.SetDownloadBehaviorRequestBehavior", {Deny: "deny", Allow: "allow", AllowAndName: "allowAndName", Default: "default"});
221
221
  inspectorBackend.registerCommand("Browser.setDownloadBehavior", [{"name": "behavior", "type": "string", "optional": false, "description": "Whether to allow all or deny all download requests, or use default Chrome behavior if available (otherwise deny). |allowAndName| allows download and names files according to their download guids.", "typeRef": "Browser.SetDownloadBehaviorRequestBehavior"}, {"name": "browserContextId", "type": "string", "optional": true, "description": "BrowserContext to set download behavior. When omitted, default browser context is used.", "typeRef": "Browser.BrowserContextID"}, {"name": "downloadPath", "type": "string", "optional": true, "description": "The default path to save downloaded files to. This is required if behavior is set to 'allow' or 'allowAndName'.", "typeRef": null}, {"name": "eventsEnabled", "type": "boolean", "optional": true, "description": "Whether to emit download events (defaults to false).", "typeRef": null}], [], "Set the behavior when downloading a file.");
@@ -870,7 +870,7 @@ inspectorBackend.registerCommand("Network.getResponseBodyForInterception", [{"na
870
870
  inspectorBackend.registerCommand("Network.takeResponseBodyForInterceptionAsStream", [{"name": "interceptionId", "type": "string", "optional": false, "description": "", "typeRef": "Network.InterceptionId"}], ["stream"], "Returns a handle to the stream representing the response body. Note that after this command, the intercepted request can't be continued as is -- you either need to cancel it or to provide the response body. The stream only supports sequential read, IO.read will fail if the position is specified.");
871
871
  inspectorBackend.registerCommand("Network.replayXHR", [{"name": "requestId", "type": "string", "optional": false, "description": "Identifier of XHR to replay.", "typeRef": "Network.RequestId"}], [], "This method sends a new XMLHttpRequest which is identical to the original one. The following parameters should be identical: method, url, async, request body, extra headers, withCredentials attribute, user, password.");
872
872
  inspectorBackend.registerCommand("Network.searchInResponseBody", [{"name": "requestId", "type": "string", "optional": false, "description": "Identifier of the network response to search.", "typeRef": "Network.RequestId"}, {"name": "query", "type": "string", "optional": false, "description": "String to search for.", "typeRef": null}, {"name": "caseSensitive", "type": "boolean", "optional": true, "description": "If true, search is case sensitive.", "typeRef": null}, {"name": "isRegex", "type": "boolean", "optional": true, "description": "If true, treats string parameter as regex.", "typeRef": null}], ["result"], "Searches for given string in response content.");
873
- inspectorBackend.registerCommand("Network.setBlockedURLs", [{"name": "urls", "type": "array", "optional": false, "description": "URL patterns to block. Wildcards ('*') are allowed.", "typeRef": "string"}], [], "Blocks URLs from loading.");
873
+ inspectorBackend.registerCommand("Network.setBlockedURLs", [{"name": "urlPatterns", "type": "array", "optional": true, "description": "URL patterns to block. Patterns use the URLPattern constructor string syntax (https://urlpattern.spec.whatwg.org/). Example: `*://*:*/*.css`.", "typeRef": "string"}, {"name": "urls", "type": "array", "optional": true, "description": "URL patterns to block. Wildcards ('*') are allowed.", "typeRef": "string"}], [], "Blocks URLs from loading.");
874
874
  inspectorBackend.registerCommand("Network.setBypassServiceWorker", [{"name": "bypass", "type": "boolean", "optional": false, "description": "Bypass service worker and load from network.", "typeRef": null}], [], "Toggles ignoring of service worker for each request.");
875
875
  inspectorBackend.registerCommand("Network.setCacheDisabled", [{"name": "cacheDisabled", "type": "boolean", "optional": false, "description": "Cache disabled state.", "typeRef": null}], [], "Toggles ignoring cache for each request. If `true`, cache will not be used.");
876
876
  inspectorBackend.registerCommand("Network.setCookie", [{"name": "name", "type": "string", "optional": false, "description": "Cookie name.", "typeRef": null}, {"name": "value", "type": "string", "optional": false, "description": "Cookie value.", "typeRef": null}, {"name": "url", "type": "string", "optional": true, "description": "The request-URI to associate with the setting of the cookie. This value can affect the default domain, path, source port, and source scheme values of the created cookie.", "typeRef": null}, {"name": "domain", "type": "string", "optional": true, "description": "Cookie domain.", "typeRef": null}, {"name": "path", "type": "string", "optional": true, "description": "Cookie path.", "typeRef": null}, {"name": "secure", "type": "boolean", "optional": true, "description": "True if cookie is secure.", "typeRef": null}, {"name": "httpOnly", "type": "boolean", "optional": true, "description": "True if cookie is http-only.", "typeRef": null}, {"name": "sameSite", "type": "string", "optional": true, "description": "Cookie SameSite type.", "typeRef": "Network.CookieSameSite"}, {"name": "expires", "type": "number", "optional": true, "description": "Cookie expiration date, session cookie if not set", "typeRef": "Network.TimeSinceEpoch"}, {"name": "priority", "type": "string", "optional": true, "description": "Cookie Priority type.", "typeRef": "Network.CookiePriority"}, {"name": "sameParty", "type": "boolean", "optional": true, "description": "True if cookie is SameParty.", "typeRef": null}, {"name": "sourceScheme", "type": "string", "optional": true, "description": "Cookie source scheme type.", "typeRef": "Network.CookieSourceScheme"}, {"name": "sourcePort", "type": "number", "optional": true, "description": "Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future.", "typeRef": null}, {"name": "partitionKey", "type": "object", "optional": true, "description": "Cookie partition key. If not set, the cookie will be set as not partitioned.", "typeRef": "Network.CookiePartitionKey"}], ["success"], "Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.");
@@ -1238,7 +1238,8 @@ export namespace ProtocolMapping {
1238
1238
  returnType: void;
1239
1239
  };
1240
1240
  /**
1241
- * Grant specific permissions to the given origin and reject all others.
1241
+ * Grant specific permissions to the given origin and reject all others. Deprecated. Use
1242
+ * setPermission instead.
1242
1243
  */
1243
1244
  'Browser.grantPermissions': {
1244
1245
  paramsType: [Protocol.Browser.GrantPermissionsRequest];
@@ -3443,7 +3444,7 @@ export namespace ProtocolMapping {
3443
3444
  * Blocks URLs from loading.
3444
3445
  */
3445
3446
  'Network.setBlockedURLs': {
3446
- paramsType: [Protocol.Network.SetBlockedURLsRequest];
3447
+ paramsType: [Protocol.Network.SetBlockedURLsRequest?];
3447
3448
  returnType: void;
3448
3449
  };
3449
3450
  /**
@@ -596,7 +596,9 @@ declare namespace ProtocolProxyApi {
596
596
  invoke_setPermission(params: Protocol.Browser.SetPermissionRequest): Promise<Protocol.ProtocolResponseWithError>;
597
597
 
598
598
  /**
599
- * Grant specific permissions to the given origin and reject all others.
599
+ * Grant specific permissions to the given origin and reject all others. Deprecated. Use
600
+ * setPermission instead.
601
+ * @deprecated
600
602
  */
601
603
  invoke_grantPermissions(params: Protocol.Browser.GrantPermissionsRequest): Promise<Protocol.ProtocolResponseWithError>;
602
604
 
@@ -11606,10 +11606,16 @@ export namespace Network {
11606
11606
  }
11607
11607
 
11608
11608
  export interface SetBlockedURLsRequest {
11609
+ /**
11610
+ * URL patterns to block. Patterns use the URLPattern constructor string syntax
11611
+ * (https://urlpattern.spec.whatwg.org/). Example: `*://*:*\/*.css`.
11612
+ */
11613
+ urlPatterns?: string[];
11609
11614
  /**
11610
11615
  * URL patterns to block. Wildcards ('*') are allowed.
11616
+ * @deprecated
11611
11617
  */
11612
- urls: string[];
11618
+ urls?: string[];
11613
11619
  }
11614
11620
 
11615
11621
  export interface SetBypassServiceWorkerRequest {
@@ -1,21 +1,24 @@
1
1
  Title: StylingAgent describeElement should describe an element with no children, siblings, or parent
2
2
  Content:
3
+ * Element's uid is 99.
3
4
  * Its selector is `div#myElement`
4
5
  === end content
5
6
 
6
7
  Title: StylingAgent describeElement should describe an element with child element and text nodes
7
8
  Content:
9
+ * Element's uid is 99.
8
10
  * Its selector is `div#parentElement`
9
- * It has 2 child element nodes: `span.child1`, `span.child2`
11
+ * It has 2 child element nodes: `span.child1` (uid=undefined), `span.child2` (uid=undefined)
10
12
  * It only has 1 child text node
11
13
  === end content
12
14
 
13
15
  Title: StylingAgent describeElement should describe an element with siblings and a parent
14
16
  Content:
17
+ * Element's uid is 99.
15
18
  * Its selector is `div#parentElement`
16
- * It has a next sibling and it is an element node
19
+ * It has a next sibling and it is an element (uid=undefined) node
17
20
  * It has a previous sibling and it is a non element node
18
- * Its parent's selector is `div#grandparentElement`
21
+ * Its parent's selector is `div#grandparentElement` (uid=undefined)
19
22
  * Its parent is a non element node
20
23
  * Its parent has only 1 child element node
21
24
  * Its parent has only 1 child text node
@@ -52,6 +55,40 @@ Content:
52
55
  }
53
56
  ],
54
57
  "function_declarations": [
58
+ {
59
+ "name": "getStyles",
60
+ "description": "Get computed and source styles for one or multiple elements on the inspected page for multiple elements at once by uid.\n\n**CRITICAL** Use selectors to refer to elements in the text output. Do not use uids.\n**CRITICAL** Always provide the explanation argument to explain what and why you query.",
61
+ "parameters": {
62
+ "type": 6,
63
+ "description": "",
64
+ "nullable": false,
65
+ "properties": {
66
+ "explanation": {
67
+ "type": 1,
68
+ "description": "Explain why you want to get styles",
69
+ "nullable": false
70
+ },
71
+ "elements": {
72
+ "type": 5,
73
+ "description": "A list of element uids to get data for",
74
+ "items": {
75
+ "type": 1,
76
+ "description": "An element uid."
77
+ },
78
+ "nullable": false
79
+ },
80
+ "styleProperties": {
81
+ "type": 5,
82
+ "description": "One or more CSS style property names to fetch.",
83
+ "nullable": false,
84
+ "items": {
85
+ "type": 1,
86
+ "description": "A CSS style property name to retrieve. For example, 'background-color'."
87
+ }
88
+ }
89
+ }
90
+ }
91
+ },
55
92
  {
56
93
  "name": "executeJavaScript",
57
94
  "description": "This function allows you to run JavaScript code on the inspected page to access the element styles and page content.\nCall this function to gather additional information or modify the page state. Call this function enough times to investigate the user request.",
@@ -62,7 +99,7 @@ Content:
62
99
  "properties": {
63
100
  "code": {
64
101
  "type": 1,
65
- "description": "JavaScript code snippet to run on the inspected page. Make sure the code is formatted for readability.\n\n# Instructions\n\n* To return data, define a top-level `data` variable and populate it with data you want to get. Only JSON-serializable objects can be assigned to `data`.\n* If you modify styles on an element, ALWAYS call the pre-defined global `async setElementStyles(el: Element, styles: object)` function. This function is an internal mechanism for you and should never be presented as a command/advice to the user.\n* Use `window.getComputedStyle` to gather **computed** styles and make sure that you take the distinction between authored styles and computed styles into account.\n* **CRITICAL** Only get styles that might be relevant to the user request.\n* **CRITICAL** Call `window.getComputedStyle` only once per element and store results into a local variable. Never try to return all the styles of the element in `data`.\n* **CRITICAL** Never assume a selector for the elements unless you verified your knowledge.\n* **CRITICAL** Consider that `data` variable from the previous function calls are not available in a new function call.\n\nFor example, the code to return basic styles:\n\n```\nconst styles = window.getComputedStyle($0);\nconst data = {\n display: styles['display'],\n visibility: styles['visibility'],\n position: styles['position'],\n left: styles['right'],\n top: styles['top'],\n width: styles['width'],\n height: styles['height'],\n zIndex: styles['z-index']\n};\n```\n\nFor example, the code to change element styles:\n\n```\nawait setElementStyles($0, {\n color: 'blue',\n});\n```\n\nFor example, the code to get current and parent styles at once:\n\n```\nconst styles = window.getComputedStyle($0);\nconst parentStyles = window.getComputedStyle($0.parentElement);\nconst data = {\n currentElementStyles: {\n display: styles['display'],\n visibility: styles['visibility'],\n position: styles['position'],\n left: styles['right'],\n top: styles['top'],\n width: styles['width'],\n height: styles['height'],\n zIndex: styles['z-index'],\n },\n parentElementStyles: {\n display: parentStyles['display'],\n visibility: parentStyles['visibility'],\n position: parentStyles['position'],\n left: parentStyles['right'],\n top: parentStyles['top'],\n width: parentStyles['width'],\n height: parentStyles['height'],\n zIndex: parentStyles['z-index'],\n },\n};\n```\n\nFor example, the code to get check siblings and overlapping elements:\n\n```\nconst computedStyles = window.getComputedStyle($0);\nconst parentComputedStyles = window.getComputedStyle($0.parentElement);\nconst data = {\n numberOfChildren: $0.children.length,\n numberOfSiblings: $0.parentElement.children.length,\n hasPreviousSibling: !!$0.previousElementSibling,\n hasNextSibling: !!$0.nextElementSibling,\n elementStyles: {\n display: computedStyles['display'],\n visibility: computedStyles['visibility'],\n position: computedStyles['position'],\n clipPath: computedStyles['clip-path'],\n zIndex: computedStyles['z-index']\n },\n parentStyles: {\n display: parentComputedStyles['display'],\n visibility: parentComputedStyles['visibility'],\n position: parentComputedStyles['position'],\n clipPath: parentComputedStyles['clip-path'],\n zIndex: parentComputedStyles['z-index']\n },\n overlappingElements: Array.from(document.querySelectorAll('*'))\n .filter(el => {\n const rect = el.getBoundingClientRect();\n const popupRect = $0.getBoundingClientRect();\n return (\n el !== $0 &&\n rect.left < popupRect.right &&\n rect.right > popupRect.left &&\n rect.top < popupRect.bottom &&\n rect.bottom > popupRect.top\n );\n })\n .map(el => ({\n tagName: el.tagName,\n id: el.id,\n className: el.className,\n zIndex: window.getComputedStyle(el)['z-index']\n }))\n};\n```\n"
102
+ "description": "JavaScript code snippet to run on the inspected page. Make sure the code is formatted for readability.\n\n# Instructions\n\n* To return data, define a top-level `data` variable and populate it with data you want to get. Only JSON-serializable objects can be assigned to `data`.\n* If you modify styles on an element, ALWAYS call the pre-defined global `async setElementStyles(el: Element, styles: object)` function. This function is an internal mechanism for you and should never be presented as a command/advice to the user.\n* **CRITICAL** Only get styles that might be relevant to the user request.\n* **CRITICAL** Never assume a selector for the elements unless you verified your knowledge.\n* **CRITICAL** Consider that `data` variable from the previous function calls are not available in a new function call.\n\nFor example, the code to change element styles:\n\n```\nawait setElementStyles($0, {\n color: 'blue',\n});\n```\n\nFor example, the code to get overlapping elements:\n\n```\nconst data = {\n overlappingElements: Array.from(document.querySelectorAll('*'))\n .filter(el => {\n const rect = el.getBoundingClientRect();\n const popupRect = $0.getBoundingClientRect();\n return (\n el !== $0 &&\n rect.left < popupRect.right &&\n rect.right > popupRect.left &&\n rect.top < popupRect.bottom &&\n rect.bottom > popupRect.top\n );\n })\n .map(el => ({\n tagName: el.tagName,\n id: el.id,\n className: el.className,\n zIndex: window.getComputedStyle(el)['z-index']\n }))\n};\n```\n"
66
103
  },
67
104
  "thought": {
68
105
  "type": 1,
@@ -153,7 +190,7 @@ Content:
153
190
  "details": [
154
191
  {
155
192
  "title": "Data used",
156
- "text": "* Its selector is `undefined`"
193
+ "text": "* Element's uid is 99.\n* Its selector is `undefined`"
157
194
  }
158
195
  ]
159
196
  },
@@ -174,7 +211,7 @@ Content:
174
211
  {
175
212
  "parts": [
176
213
  {
177
- "text": "# Inspected element\n\n* Its selector is `undefined`\n\n# User request\n\nQUERY: test"
214
+ "text": "# Inspected element\n\n* Element's uid is 99.\n* Its selector is `undefined`\n\n# User request\n\nQUERY: test"
178
215
  }
179
216
  ],
180
217
  "role": 1
@@ -194,13 +231,13 @@ Title: StylingAgent run correctly handles historical_contexts in AIDA requests
194
231
  Content:
195
232
  [
196
233
  {
197
- "text": "# Inspected element\n\n* Its selector is `undefined`\n\n# User request\n\nQUERY: test"
234
+ "text": "# Inspected element\n\n* Element's uid is 99.\n* Its selector is `undefined`\n\n# User request\n\nQUERY: test"
198
235
  },
199
236
  [
200
237
  {
201
238
  "parts": [
202
239
  {
203
- "text": "# Inspected element\n\n* Its selector is `undefined`\n\n# User request\n\nQUERY: test"
240
+ "text": "# Inspected element\n\n* Element's uid is 99.\n* Its selector is `undefined`\n\n# User request\n\nQUERY: test"
204
241
  }
205
242
  ],
206
243
  "role": 1
@@ -237,7 +274,7 @@ Content:
237
274
  "details": [
238
275
  {
239
276
  "title": "Data used",
240
- "text": "* Its selector is `undefined`"
277
+ "text": "* Element's uid is 99.\n* Its selector is `undefined`"
241
278
  }
242
279
  ]
243
280
  },
@@ -266,7 +303,7 @@ Content:
266
303
  "details": [
267
304
  {
268
305
  "title": "Data used",
269
- "text": "* Its selector is `undefined`"
306
+ "text": "* Element's uid is 99.\n* Its selector is `undefined`"
270
307
  }
271
308
  ]
272
309
  },
@@ -298,7 +335,7 @@ Content:
298
335
  "details": [
299
336
  {
300
337
  "title": "Data used",
301
- "text": "* Its selector is `undefined`"
338
+ "text": "* Element's uid is 99.\n* Its selector is `undefined`"
302
339
  }
303
340
  ]
304
341
  },
@@ -327,7 +364,7 @@ Content:
327
364
  "details": [
328
365
  {
329
366
  "title": "Data used",
330
- "text": "* Its selector is `undefined`"
367
+ "text": "* Element's uid is 99.\n* Its selector is `undefined`"
331
368
  }
332
369
  ]
333
370
  },
@@ -354,7 +391,7 @@ Content:
354
391
  "details": [
355
392
  {
356
393
  "title": "Data used",
357
- "text": "* Its selector is `undefined`"
394
+ "text": "* Element's uid is 99.\n* Its selector is `undefined`"
358
395
  }
359
396
  ]
360
397
  },
@@ -388,7 +425,7 @@ Content:
388
425
  {
389
426
  "parts": [
390
427
  {
391
- "text": "# Inspected element\n\n* Its selector is `undefined`\n\n# User request\n\nQUERY: test"
428
+ "text": "# Inspected element\n\n* Element's uid is 99.\n* Its selector is `undefined`\n\n# User request\n\nQUERY: test"
392
429
  }
393
430
  ],
394
431
  "role": 1
@@ -492,6 +529,7 @@ Title: StylingAgent enhanceQuery does not add multimodal input evaluation prompt
492
529
  Content:
493
530
  # Inspected element
494
531
 
532
+ * Element's uid is 99.
495
533
  * Its selector is `div#myElement`
496
534
 
497
535
  # User request
@@ -503,6 +541,7 @@ Title: StylingAgent enhanceQuery does not add multimodal input evaluation prompt
503
541
  Content:
504
542
  # Inspected element
505
543
 
544
+ * Element's uid is 99.
506
545
  * Its selector is `div#myElement`
507
546
 
508
547
  # User request
@@ -528,6 +567,7 @@ In case query is related to the image, ALWAYS first use image evaluation to get
528
567
 
529
568
  # Inspected element
530
569
 
570
+ * Element's uid is 99.
531
571
  * Its selector is `div#myElement`
532
572
 
533
573
  # User request
@@ -551,6 +591,7 @@ In case query is related to the image, ALWAYS first use image evaluation to get
551
591
 
552
592
  # Inspected element
553
593
 
594
+ * Element's uid is 99.
554
595
  * Its selector is `div#myElement`
555
596
 
556
597
  # User request