chrome-devtools-frontend 1.0.1668390 → 1.0.1669021

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 (192) hide show
  1. package/.agents/skills/devtools-ci/SKILL.md +65 -0
  2. package/.agents/skills/gerrit-cli/SKILL.md +59 -0
  3. package/.agents/skills/gerrit-cli/references/commands.md +93 -0
  4. package/.agents/skills/gerrit-cli/references/workflows.md +56 -0
  5. package/.agents/skills/gerrit-cli/scripts/gerrit_client_wrapper.py +47 -0
  6. package/.agents/skills/gerrit-cli/scripts/import_upstream.py +230 -0
  7. package/docs/contributing/infrastructure.md +7 -1
  8. package/front_end/core/host/AidaClient.ts +66 -47
  9. package/front_end/core/host/GcaClient.ts +4 -6
  10. package/front_end/core/host/ResourceLoader.ts +4 -2
  11. package/front_end/core/root/Runtime.ts +0 -5
  12. package/front_end/core/sdk/ConsoleModel.ts +3 -2
  13. package/front_end/core/sdk/DebuggerModel.ts +14 -6
  14. package/front_end/core/sdk/SDKSettings.ts +19 -0
  15. package/front_end/core/sdk/sdk-meta.ts +0 -58
  16. package/front_end/generated/InspectorBackendCommands.ts +2 -2
  17. package/front_end/generated/protocol.ts +11 -3
  18. package/front_end/models/ai_assistance/AiUtils.ts +67 -4
  19. package/front_end/models/ai_assistance/StorageItem.ts +26 -5
  20. package/front_end/models/ai_code_completion/AiCodeCompletion.ts +2 -19
  21. package/front_end/models/ai_code_generation/AiCodeGeneration.ts +2 -3
  22. package/front_end/models/trace/handlers/RendererHandler.ts +20 -4
  23. package/front_end/models/trace/types/File.ts +1 -0
  24. package/front_end/models/workspace/UISourceCode.ts +0 -10
  25. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +61 -182
  26. package/front_end/panels/ai_assistance/components/ChatInput.ts +25 -8
  27. package/front_end/panels/ai_assistance/components/ChatMessage.ts +13 -69
  28. package/front_end/panels/ai_assistance/components/ChatView.ts +14 -8
  29. package/front_end/panels/ai_assistance/components/chatMessage.css +2 -20
  30. package/front_end/panels/application/ApplicationPanelSidebar.ts +2 -2
  31. package/front_end/panels/application/ApplicationPanelTreeElement.ts +41 -3
  32. package/front_end/panels/application/ServiceWorkerUpdateCycleView.ts +116 -79
  33. package/front_end/panels/application/ServiceWorkersView.ts +8 -8
  34. package/front_end/panels/application/application.ts +2 -0
  35. package/front_end/panels/application/components/AdsView.ts +10 -6
  36. package/front_end/panels/application/preloading/PreloadingView.ts +53 -45
  37. package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +111 -119
  38. package/front_end/panels/application/preloading/components/preloadingDetailsReportView.css +21 -23
  39. package/front_end/panels/application/serviceWorkerUpdateCycleView.css +105 -102
  40. package/front_end/panels/common/AiCodeCompletionDisclaimer.ts +107 -96
  41. package/front_end/panels/common/AiCodeCompletionSummaryToolbar.ts +17 -19
  42. package/front_end/panels/common/AiCodeCompletionTeaser.ts +6 -6
  43. package/front_end/panels/common/AiCodeGenerationTeaser.ts +28 -26
  44. package/front_end/panels/common/common.ts +1 -1
  45. package/front_end/panels/console/ConsoleInsightTeaser.ts +3 -6
  46. package/front_end/panels/console/ConsoleView.ts +6 -4
  47. package/front_end/panels/console/ConsoleViewMessage.ts +1 -1
  48. package/front_end/panels/console/console-meta.ts +28 -0
  49. package/front_end/panels/elements/StylesAiCodeCompletionProvider.ts +1 -1
  50. package/front_end/panels/elements/StylesSidebarPane.ts +3 -2
  51. package/front_end/panels/emulation/DeviceModeWrapper.ts +18 -4
  52. package/front_end/panels/explain/components/ConsoleInsight.ts +4 -6
  53. package/front_end/panels/explain/explain-meta.ts +7 -49
  54. package/front_end/panels/network/NetworkDataGridNode.ts +1 -1
  55. package/front_end/panels/network/NetworkLogView.ts +1 -0
  56. package/front_end/panels/network/OriginalResourceChunkView.ts +340 -0
  57. package/front_end/panels/network/ResourceChunkView.ts +72 -46
  58. package/front_end/panels/network/ResourceDirectSocketChunkView.ts +3 -2
  59. package/front_end/panels/network/ResourceWebSocketFrameView.ts +3 -3
  60. package/front_end/panels/network/originalResourceChunkView.css +49 -0
  61. package/front_end/panels/screencast/ScreencastView.ts +401 -260
  62. package/front_end/panels/screencast/screencastView.css +113 -100
  63. package/front_end/panels/sensors/LocationsSettingsTab.ts +106 -122
  64. package/front_end/panels/sensors/locationsSettingsTab.css +4 -4
  65. package/front_end/panels/settings/AISettingsTab.ts +17 -100
  66. package/front_end/panels/snippets/ScriptSnippetFileSystem.ts +2 -2
  67. package/front_end/panels/snippets/SnippetsQuickOpen.ts +4 -4
  68. package/front_end/panels/sources/AddSourceMapURLDialog.ts +3 -3
  69. package/front_end/panels/sources/AiCodeCompletionPlugin.ts +4 -3
  70. package/front_end/panels/sources/BreakpointEditDialog.ts +14 -14
  71. package/front_end/panels/sources/BreakpointsView.ts +14 -14
  72. package/front_end/panels/sources/CallStackSidebarPane.ts +6 -6
  73. package/front_end/panels/sources/CategorizedBreakpointL10n.ts +18 -18
  74. package/front_end/panels/sources/CoveragePlugin.ts +7 -7
  75. package/front_end/panels/sources/DebuggerPausedMessage.ts +23 -23
  76. package/front_end/panels/sources/DebuggerPlugin.ts +29 -29
  77. package/front_end/panels/sources/FilteredUISourceCodeListProvider.ts +2 -2
  78. package/front_end/panels/sources/GoToLineQuickOpen.ts +10 -10
  79. package/front_end/panels/sources/NavigatorView.ts +34 -27
  80. package/front_end/panels/sources/OutlineQuickOpen.ts +3 -3
  81. package/front_end/panels/sources/PersistenceActions.ts +9 -9
  82. package/front_end/panels/sources/ProfilePlugin.ts +1 -1
  83. package/front_end/panels/sources/ScopeChainSidebarPane.ts +5 -5
  84. package/front_end/panels/sources/SnippetsPlugin.ts +2 -2
  85. package/front_end/panels/sources/SourcesNavigator.ts +20 -18
  86. package/front_end/panels/sources/SourcesPanel.ts +26 -25
  87. package/front_end/panels/sources/SourcesView.ts +5 -6
  88. package/front_end/panels/sources/TabbedEditorContainer.ts +3 -3
  89. package/front_end/panels/sources/ThreadsSidebarPane.ts +1 -1
  90. package/front_end/panels/sources/UISourceCodeFrame.ts +0 -2
  91. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +7 -7
  92. package/front_end/panels/sources/components/HeadersView.ts +2 -2
  93. package/front_end/panels/sources/sources-meta.ts +109 -71
  94. package/front_end/panels/sources/sources.ts +0 -2
  95. package/front_end/panels/timeline/TimelineHistoryManager.ts +14 -3
  96. package/front_end/panels/timeline/TimelineLoader.ts +72 -42
  97. package/front_end/panels/timeline/TimelinePanel.ts +29 -4
  98. package/front_end/panels/timeline/timelineHistoryManager.css +4 -0
  99. package/front_end/third_party/chromium/README.chromium +1 -1
  100. package/front_end/third_party/puppeteer/README.chromium +2 -2
  101. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +187 -1
  102. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +91 -38
  103. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.d.ts +145 -2
  104. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.d.ts.map +1 -1
  105. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.js +0 -2
  106. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.js.map +1 -1
  107. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.d.ts +0 -2
  108. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.d.ts.map +1 -1
  109. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.js +0 -2
  110. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.js.map +1 -1
  111. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Dialog.d.ts +3 -2
  112. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Dialog.d.ts.map +1 -1
  113. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Dialog.js +8 -2
  114. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Dialog.js.map +1 -1
  115. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/JSHandle.d.ts +0 -2
  116. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/JSHandle.d.ts.map +1 -1
  117. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/JSHandle.js +0 -2
  118. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/JSHandle.js.map +1 -1
  119. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts +1 -3
  120. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts.map +1 -1
  121. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js +0 -2
  122. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js.map +1 -1
  123. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Realm.d.ts +0 -1
  124. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Realm.d.ts.map +1 -1
  125. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Realm.js +0 -1
  126. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Realm.js.map +1 -1
  127. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BidiOverCdp.d.ts.map +1 -1
  128. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BidiOverCdp.js +2 -2
  129. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BidiOverCdp.js.map +1 -1
  130. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.d.ts +5 -1
  131. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.d.ts.map +1 -1
  132. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.js +12 -0
  133. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.js.map +1 -1
  134. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.d.ts.map +1 -1
  135. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.js +4 -1
  136. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.js.map +1 -1
  137. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Browser.d.ts +5 -1
  138. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Browser.d.ts.map +1 -1
  139. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Browser.js +49 -0
  140. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Browser.js.map +1 -1
  141. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.d.ts +0 -6
  142. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.d.ts.map +1 -1
  143. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.js +0 -6
  144. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.js.map +1 -1
  145. package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.d.ts +1 -1
  146. package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.d.ts.map +1 -1
  147. package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.js +1 -1
  148. package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.js.map +1 -1
  149. package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/util.d.ts.map +1 -1
  150. package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/util.js +3 -0
  151. package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/util.js.map +1 -1
  152. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ScreenRecorder.d.ts +0 -3
  153. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ScreenRecorder.d.ts.map +1 -1
  154. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ScreenRecorder.js +0 -3
  155. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ScreenRecorder.js.map +1 -1
  156. package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.d.ts +3 -3
  157. package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.js +3 -3
  158. package/front_end/third_party/puppeteer/package/lib/puppeteer/util/disposable.d.ts +2 -2
  159. package/front_end/third_party/puppeteer/package/lib/puppeteer/util/disposable.js +2 -2
  160. package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.d.ts +1 -1
  161. package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.js +1 -1
  162. package/front_end/third_party/puppeteer/package/lib/types.d.ts +187 -1
  163. package/front_end/third_party/puppeteer/package/package.json +5 -5
  164. package/front_end/third_party/puppeteer/package/src/api/Browser.ts +155 -2
  165. package/front_end/third_party/puppeteer/package/src/api/BrowserContext.ts +0 -2
  166. package/front_end/third_party/puppeteer/package/src/api/Dialog.ts +10 -2
  167. package/front_end/third_party/puppeteer/package/src/api/JSHandle.ts +0 -2
  168. package/front_end/third_party/puppeteer/package/src/api/Page.ts +1 -3
  169. package/front_end/third_party/puppeteer/package/src/api/Realm.ts +0 -1
  170. package/front_end/third_party/puppeteer/package/src/bidi/BidiOverCdp.ts +4 -2
  171. package/front_end/third_party/puppeteer/package/src/bidi/Browser.ts +17 -0
  172. package/front_end/third_party/puppeteer/package/src/bidi/HTTPResponse.ts +5 -4
  173. package/front_end/third_party/puppeteer/package/src/cdp/Browser.ts +66 -0
  174. package/front_end/third_party/puppeteer/package/src/common/EventEmitter.ts +0 -6
  175. package/front_end/third_party/puppeteer/package/src/generated/injected.ts +1 -1
  176. package/front_end/third_party/puppeteer/package/src/injected/util.ts +4 -1
  177. package/front_end/third_party/puppeteer/package/src/node/ScreenRecorder.ts +0 -3
  178. package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
  179. package/front_end/third_party/puppeteer/package/src/util/disposable.ts +2 -2
  180. package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
  181. package/front_end/ui/components/text_editor/AiCodeCompletionProvider.ts +9 -7
  182. package/front_end/ui/components/text_editor/AiCodeGenerationProvider.ts +7 -8
  183. package/front_end/ui/legacy/Dialog.ts +12 -2
  184. package/front_end/ui/legacy/TabbedPane.ts +7 -2
  185. package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +40 -24
  186. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +1 -0
  187. package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +8 -4
  188. package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +14 -7
  189. package/front_end/ui/legacy/components/quick_open/CommandMenu.ts +11 -1
  190. package/front_end/ui/visual_logging/KnownContextValues.ts +2 -0
  191. package/package.json +1 -1
  192. package/front_end/panels/sources/AiWarningInfobarPlugin.ts +0 -78
@@ -18,6 +18,14 @@ import * as SettingsUI from '../../ui/settings/settings.js';
18
18
  import type * as Sources from './sources.js';
19
19
 
20
20
  const UIStrings = {
21
+ /**
22
+ * @description Text for pausing the debugger on exceptions.
23
+ */
24
+ pauseOnExceptions: 'Pause on exceptions',
25
+ /**
26
+ * @description Title of a setting under the Debugger category that can be invoked through the Command Menu.
27
+ */
28
+ doNotPauseOnExceptions: 'Do not pause on exceptions',
21
29
  /**
22
30
  * @description Command for showing the 'Sources' tool
23
31
  */
@@ -91,11 +99,11 @@ const UIStrings = {
91
99
  */
92
100
  breakpoints: 'Breakpoints',
93
101
  /**
94
- * @description Title of an action under the Debugger category that can be invoked through the Command Menu
102
+ * @description Title of an action under the Debugger category that can be invoked through the command menu
95
103
  */
96
104
  pauseScriptExecution: 'Pause script execution',
97
105
  /**
98
- * @description Title of an action under the Debugger category that can be invoked through the Command Menu
106
+ * @description Title of an action under the Debugger category that can be invoked through the command menu
99
107
  */
100
108
  resumeScriptExecution: 'Resume script execution',
101
109
  /**
@@ -119,75 +127,75 @@ const UIStrings = {
119
127
  */
120
128
  runSnippet: 'Run snippet',
121
129
  /**
122
- * @description Text in Java Script Breakpoints Sidebar Pane of the Sources panel
130
+ * @description Text in JavaScript breakpoint sidebar of the Sources panel.
123
131
  */
124
132
  deactivateBreakpoints: 'Deactivate breakpoints',
125
133
  /**
126
- * @description Text in Java Script Breakpoints Sidebar Pane of the Sources panel
134
+ * @description Text in JavaScript breakpoint sidebar of the Sources panel.
127
135
  */
128
136
  activateBreakpoints: 'Activate breakpoints',
129
137
  /**
130
- * @description Title of an action in the sources tool to add to watch
138
+ * @description Title of an action in the sources tool to add to watch.
131
139
  */
132
140
  addSelectedTextToWatches: 'Add selected text to watches',
133
141
  /**
134
- * @description Title of an action in the debugger tool to evaluate selection
142
+ * @description Title of an action in the debugger tool to evaluate selection.
135
143
  */
136
144
  evaluateSelectedTextInConsole: 'Evaluate selected text in console',
137
145
  /**
138
- * @description Title of an action that switches files in the Sources panel
146
+ * @description Title of an action that switches files in the Sources panel.
139
147
  */
140
148
  switchFile: 'Switch file',
141
149
  /**
142
- * @description Title of a sources panel action that renames a file
150
+ * @description Title of a sources panel action that renames a file.
143
151
  */
144
152
  rename: 'Rename',
145
153
  /**
146
- * @description Title of an action in the sources tool to close all
154
+ * @description Title of an action in the sources tool to close all.
147
155
  */
148
156
  closeAll: 'Close all',
149
157
  /**
150
- * @description Text in the Shortcuts page to explain a keyboard shortcut (jump to previous editing location in text editor)
158
+ * @description Text in the Shortcuts page to explain a keyboard shortcut (jump to previous editing location in text editor).
151
159
  */
152
160
  jumpToPreviousEditingLocation: 'Jump to previous editing location',
153
161
  /**
154
- * @description Text in the Shortcuts page to explain a keyboard shortcut (jump to next editing location in text editor)
162
+ * @description Text in the Shortcuts page to explain a keyboard shortcut (jump to next editing location in text editor).
155
163
  */
156
164
  jumpToNextEditingLocation: 'Jump to next editing location',
157
165
  /**
158
- * @description Title of an action that closes the active editor tab in the Sources panel
166
+ * @description Title of an action that closes the active editor tab in the Sources panel.
159
167
  */
160
168
  closeTheActiveTab: 'Close the active tab',
161
169
  /**
162
- * @description Text to go to a given line
170
+ * @description Text to go to a given line.
163
171
  */
164
172
  goToLine: 'Go to line',
165
173
  /**
166
- * @description Title of an action that opens the go to member menu
174
+ * @description Title of an action that opens the go to member menu.
167
175
  */
168
176
  goToAFunctionDeclarationruleSet: 'Go to a function declaration/rule set',
169
177
  /**
170
- * @description Text in the Shortcuts page to explain a keyboard shortcut (toggle breakpoint in debugger)
178
+ * @description Text in the Shortcuts page to explain a keyboard shortcut (toggle breakpoint in debugger).
171
179
  */
172
180
  toggleBreakpoint: 'Toggle breakpoint',
173
181
  /**
174
- * @description Text in the Shortcuts page to explain a keyboard shortcut (enable toggle breakpoint shortcut in debugger)
182
+ * @description Text in the Shortcuts page to explain a keyboard shortcut (enable toggle breakpoint shortcut in debugger).
175
183
  */
176
184
  toggleBreakpointEnabled: 'Toggle breakpoint enabled',
177
185
  /**
178
- * @description Title of a sources panel action that opens the breakpoint input window
186
+ * @description Title of a sources panel action that opens the breakpoint input window.
179
187
  */
180
188
  toggleBreakpointInputWindow: 'Toggle breakpoint input window',
181
189
  /**
182
- * @description Text to save something
190
+ * @description Text to save something.
183
191
  */
184
192
  save: 'Save',
185
193
  /**
186
- * @description Title of an action to save all files in the Sources panel
194
+ * @description Title of an action to save all files in the Sources panel.
187
195
  */
188
196
  saveAll: 'Save all',
189
197
  /**
190
- * @description Title of an action in the sources tool to create snippet
198
+ * @description Title of an action in the sources tool to create a snippet.
191
199
  */
192
200
  createNewSnippet: 'Create new snippet',
193
201
  /**
@@ -201,37 +209,37 @@ const UIStrings = {
201
209
  */
202
210
  addFolderToWorkspace: 'Add folder to workspace',
203
211
  /**
204
- * @description Title of an action in the debugger tool to previous call frame
212
+ * @description Title of an action in the debugger tool to previous call frame.
205
213
  */
206
214
  previousCallFrame: 'Previous call frame',
207
215
  /**
208
- * @description Title of an action in the debugger tool to next call frame
216
+ * @description Title of an action in the debugger tool to next call frame.
209
217
  */
210
218
  nextCallFrame: 'Next call frame',
211
219
  /**
212
- * @description Text in the Shortcuts page to explain a keyboard shortcut (increment CSS unit by the amount passed in the placeholder in Styles pane)
220
+ * @description Text in the Shortcuts page to explain a keyboard shortcut (increment CSS unit by the amount passed in the placeholder in Styles pane).
213
221
  * @example {10} PH1
214
222
  */
215
223
  incrementCssUnitBy: 'Increment CSS unit by {PH1}',
216
224
  /**
217
- * @description Text in the Shortcuts page to explain a keyboard shortcut (decrement CSS unit by the amount passed in the placeholder in Styles pane)
225
+ * @description Text in the Shortcuts page to explain a keyboard shortcut (decrement CSS unit by the amount passed in the placeholder in Styles pane).
218
226
  * @example {10} PH1
219
227
  */
220
228
  decrementCssUnitBy: 'Decrement CSS unit by {PH1}',
221
229
  /**
222
- * @description Title of a setting under the Sources category that can be invoked through the Command Menu
230
+ * @description Title of a setting under the Sources category that can be invoked through the command menu.
223
231
  */
224
232
  searchInAnonymousAndContent: 'Search in anonymous and content scripts',
225
233
  /**
226
- * @description Title of a setting under the Sources category that can be invoked through the Command Menu
234
+ * @description Title of a setting under the Sources category that can be invoked through the command menu.
227
235
  */
228
236
  doNotSearchInAnonymousAndContent: 'Do not search in anonymous and content scripts',
229
237
  /**
230
- * @description Title of a setting under the Sources category that can be invoked through the Command Menu
238
+ * @description Title of a setting under the Sources category that can be invoked through the command menu.
231
239
  */
232
240
  automaticallyRevealFilesIn: 'Automatically reveal files in sidebar',
233
241
  /**
234
- * @description Title of a setting under the Sources category that can be invoked through the Command Menu
242
+ * @description Title of a setting under the Sources category that can be invoked through the command menu.
235
243
  */
236
244
  doNotAutomaticallyRevealFilesIn: 'Do not automatically reveal files in sidebar',
237
245
  /**
@@ -243,7 +251,7 @@ const UIStrings = {
243
251
  */
244
252
  tabMovesFocus: 'Tab moves focus',
245
253
  /**
246
- * @description Title of a setting that can be invoked through the Command Menu.
254
+ * @description Title of a setting that can be invoked through the command menu.
247
255
  *'tab moves focus' is the name of the setting, which means that when the user
248
256
  *hits the tab key, the focus in the UI will be moved to the next part of the
249
257
  *text editor, as opposed to inserting a tab character into the text in the
@@ -251,7 +259,7 @@ const UIStrings = {
251
259
  */
252
260
  enableTabMovesFocus: 'Enable tab moves focus',
253
261
  /**
254
- * @description Title of a setting that can be invoked through the Command Menu.
262
+ * @description Title of a setting that can be invoked through the command menu.
255
263
  *'tab moves focus' is the name of the setting, which means that when the user
256
264
  *hits the tab key, the focus in the UI will be moved to the next part of the
257
265
  *text editor, as opposed to inserting a tab character into the text in the
@@ -259,79 +267,79 @@ const UIStrings = {
259
267
  */
260
268
  disableTabMovesFocus: 'Disable tab moves focus',
261
269
  /**
262
- * @description Title of a setting under the Sources category that can be invoked through the Command Menu
270
+ * @description Title of a setting under the Sources category that can be invoked through the command menu.
263
271
  */
264
272
  detectIndentation: 'Detect indentation',
265
273
  /**
266
- * @description Title of a setting under the Sources category that can be invoked through the Command Menu
274
+ * @description Title of a setting under the Sources category that can be invoked through the command menu.
267
275
  */
268
276
  doNotDetectIndentation: 'Do not detect indentation',
269
277
  /**
270
- * @description Title of a setting under Sources category that can be invoked through the Command Menu.
278
+ * @description Title of a setting under Sources category that can be invoked through the command menu.
271
279
  *This setting turns on the automatic formatting of source files in the Sources panel that are detected
272
280
  *to be minified.
273
281
  */
274
282
  automaticallyPrettyPrintMinifiedSources: 'Automatically pretty print minified sources',
275
283
  /**
276
- * @description Title of a setting under Sources category that can be invoked through the Command Menu.
284
+ * @description Title of a setting under Sources category that can be invoked through the command menu.
277
285
  *This setting turns off the automatic formatting of source files in the Sources panel that are detected
278
286
  *to be minified.
279
287
  */
280
288
  doNotAutomaticallyPrettyPrintMinifiedSources: 'Do not automatically pretty print minified sources',
281
289
  /**
282
- * @description Text for autocompletion
290
+ * @description Text for autocompletion.
283
291
  */
284
292
  autocompletion: 'Autocompletion',
285
293
  /**
286
- * @description Title of a setting under the Sources category that can be invoked through the Command Menu
294
+ * @description Title of a setting under the Sources category that can be invoked through the command menu.
287
295
  */
288
296
  enableAutocompletion: 'Enable autocompletion',
289
297
  /**
290
- * @description Title of a setting under the Sources category that can be invoked through the Command Menu
298
+ * @description Title of a setting under the Sources category that can be invoked through the command menu.
291
299
  */
292
300
  disableAutocompletion: 'Disable autocompletion',
293
301
  /**
294
- * @description Title of a setting under the Sources category in Settings
302
+ * @description Title of a setting under the Sources category in Settings.
295
303
  */
296
304
  bracketClosing: 'Auto closing brackets',
297
305
  /**
298
- * @description Title of a setting under the Sources category that can be invoked through the Command Menu
306
+ * @description Title of a setting under the Sources category that can be invoked through the command menu.
299
307
  */
300
308
  enableBracketClosing: 'Enable auto closing brackets',
301
309
  /**
302
- * @description Title of a setting under the Sources category that can be invoked through the Command Menu
310
+ * @description Title of a setting under the Sources category that can be invoked through the command menu.
303
311
  */
304
312
  disableBracketClosing: 'Disable auto closing brackets',
305
313
  /**
306
- * @description Title of a setting under the Sources category in Settings
314
+ * @description Title of a setting under the Sources category in Settings.
307
315
  */
308
316
  bracketMatching: 'Bracket matching',
309
317
  /**
310
- * @description Title of a setting under the Sources category that can be invoked through the Command Menu
318
+ * @description Title of a setting under the Sources category that can be invoked through the command menu.
311
319
  */
312
320
  enableBracketMatching: 'Enable bracket matching',
313
321
  /**
314
- * @description Title of a setting under the Sources category that can be invoked through the Command Menu
322
+ * @description Title of a setting under the Sources category that can be invoked through the command menu.
315
323
  */
316
324
  disableBracketMatching: 'Disable bracket matching',
317
325
  /**
318
- * @description Title of a setting under the Sources category in Settings
326
+ * @description Title of a setting under the Sources category in Settings.
319
327
  */
320
328
  codeFolding: 'Code folding',
321
329
  /**
322
- * @description Title of a setting under the Sources category that can be invoked through the Command Menu
330
+ * @description Title of a setting under the Sources category that can be invoked through the command menu.
323
331
  */
324
332
  enableCodeFolding: 'Enable code folding',
325
333
  /**
326
- * @description Title of a setting under the Sources category that can be invoked through the Command Menu
334
+ * @description Title of a setting under the Sources category that can be invoked through the command menu.
327
335
  */
328
336
  disableCodeFolding: 'Disable code folding',
329
337
  /**
330
- * @description Title of a setting under the Sources category in Settings
338
+ * @description Title of a setting under the Sources category in Settings.
331
339
  */
332
340
  showWhitespaceCharacters: 'Show whitespace characters:',
333
341
  /**
334
- * @description Title of a setting under the Sources category that can be invoked through the Command Menu
342
+ * @description Title of a setting under the Sources category that can be invoked through the command menu.
335
343
  */
336
344
  doNotShowWhitespaceCharacters: 'Do not show whitespace characters',
337
345
  /**
@@ -340,84 +348,84 @@ const UIStrings = {
340
348
  */
341
349
  none: 'None',
342
350
  /**
343
- * @description Title of a setting under the Sources category that can be invoked through the Command Menu
351
+ * @description Title of a setting under the Sources category that can be invoked through the command menu.
344
352
  */
345
353
  showAllWhitespaceCharacters: 'Show all whitespace characters',
346
354
  /**
347
- * @description Text for everything
355
+ * @description Text for everything.
348
356
  */
349
357
  all: 'All',
350
358
  /**
351
- * @description Title of a setting under the Sources category that can be invoked through the Command Menu
359
+ * @description Title of a setting under the Sources category that can be invoked through the command menu.
352
360
  */
353
361
  showTrailingWhitespaceCharacters: 'Show trailing whitespace characters',
354
362
  /**
355
- * @description A drop-down menu option to show trailing whitespace characters
363
+ * @description A drop-down menu option to show trailing whitespace characters.
356
364
  */
357
365
  trailing: 'Trailing',
358
366
  /**
359
- * @description Title of a setting under the Sources category
367
+ * @description Title of a setting under the Sources category.
360
368
  */
361
369
  variableValuesInlineWhile: 'Variable values inline',
362
370
  /**
363
- * @description Title of an option under the Sources category that can be invoked through the Command Menu
371
+ * @description Title of an option under the Sources category that can be invoked through the command menu.
364
372
  */
365
373
  displayVariableValuesInlineWhile: 'Display variable values inline while debugging',
366
374
  /**
367
- * @description Title of an option under the Sources category that can be invoked through the Command Menu
375
+ * @description Title of an option under the Sources category that can be invoked through the command menu.
368
376
  */
369
377
  doNotDisplayVariableValuesInline: 'Don’t show variable values inline',
370
378
  /**
371
- * @description Title of a setting under the Sources category in Settings
379
+ * @description Title of a setting under the Sources category in Settings.
372
380
  */
373
381
  allowScrollingPastEndOfFile: 'Allow scrolling past end of file',
374
382
  /**
375
- * @description Title of a setting under the Sources category in Settings
383
+ * @description Title of a setting under the Sources category in Settings.
376
384
  */
377
385
  disallowScrollingPastEndOfFile: 'Disallow scrolling past end of file',
378
386
  /**
379
- * @description Title of a setting under the Sources category in Settings
387
+ * @description Title of a setting under the Sources category in Settings.
380
388
  */
381
389
  wasmAutoStepping: 'Wasm auto-stepping bytecode',
382
390
  /**
383
- * @description Tooltip text for a setting that controls Wasm will try to skip wasm bytecode
391
+ * @description Tooltip text for a setting that controls Wasm will try to skip wasm bytecode.
384
392
  */
385
393
  wasmAutoSteppingInfo: 'When debugging Wasm with debug information, try to skip wasm bytecode',
386
394
  /**
387
- * @description Title of a setting under the Sources category in Settings
395
+ * @description Title of a setting under the Sources category in Settings.
388
396
  */
389
397
  enableWasmAutoStepping: 'Enable Wasm auto-stepping',
390
398
  /**
391
- * @description Title of a setting under the Sources category in Settings
399
+ * @description Title of a setting under the Sources category in Settings.
392
400
  */
393
401
  disableWasmAutoStepping: 'Disable Wasm auto-stepping',
394
402
 
395
403
  /**
396
- * @description Text for command prefix of go to a given line or symbol
404
+ * @description Text for command prefix of go to a given line or symbol.
397
405
  */
398
406
  goTo: 'Go to',
399
407
  /**
400
- * @description Text for command suggestion of go to a given line
408
+ * @description Text for command suggestion of go to a given line.
401
409
  */
402
410
  line: 'Line',
403
411
  /**
404
- * @description Text for command suggestion of go to a given symbol
412
+ * @description Text for command suggestion of go to a given symbol.
405
413
  */
406
414
  symbol: 'Symbol',
407
415
  /**
408
- * @description Text for help title of go to symbol menu
416
+ * @description Text for help title of go to symbol menu.
409
417
  */
410
418
  goToSymbol: 'Go to symbol',
411
419
  /**
412
- * @description Text for command prefix of open a file
420
+ * @description Text for command prefix of open a file.
413
421
  */
414
422
  open: 'Open',
415
423
  /**
416
- * @description Text for command suggestion of open a file
424
+ * @description Text for command suggestion of open a file.
417
425
  */
418
426
  file: 'File',
419
427
  /**
420
- * @description Text for help title of open file menu
428
+ * @description Text for help title of open file menu.
421
429
  */
422
430
  openFile: 'Open file',
423
431
  /**
@@ -433,15 +441,15 @@ const UIStrings = {
433
441
  */
434
442
  enableAutoFocusOnDebuggerPaused: 'Focus Sources panel when triggering a breakpoint',
435
443
  /**
436
- * @description Title of an action to reveal the active file in the navigator sidebar of the Sources panel
444
+ * @description Title of an action to reveal the active file in the navigator sidebar of the Sources panel.
437
445
  */
438
446
  revealActiveFileInSidebar: 'Reveal active file in navigator sidebar',
439
447
  /**
440
- * @description Text for command of toggling navigator sidebar in Sources panel
448
+ * @description Text for command of toggling navigator sidebar in Sources panel.
441
449
  */
442
450
  toggleNavigatorSidebar: 'Toggle navigator sidebar',
443
451
  /**
444
- * @description Text for command of toggling debugger sidebar in Sources panel
452
+ * @description Text for command of toggling debugger sidebar in Sources panel.
445
453
  */
446
454
  toggleDebuggerSidebar: 'Toggle debugger sidebar',
447
455
  /**
@@ -1108,6 +1116,14 @@ UI.ActionRegistration.registerActionExtension({
1108
1116
  UI.ActionRegistration.KeybindSet.VS_CODE,
1109
1117
  ],
1110
1118
  },
1119
+ {
1120
+ platform: UI.ActionRegistration.Platforms.MAC,
1121
+ shortcut: 'Meta+g',
1122
+ keybindSets: [
1123
+ UI.ActionRegistration.KeybindSet.DEVTOOLS_DEFAULT,
1124
+ UI.ActionRegistration.KeybindSet.VS_CODE,
1125
+ ],
1126
+ },
1111
1127
  ],
1112
1128
  });
1113
1129
 
@@ -1327,6 +1343,10 @@ UI.ActionRegistration.registerActionExtension({
1327
1343
  {
1328
1344
  shortcut: 'Ctrl+,',
1329
1345
  },
1346
+ {
1347
+ platform: UI.ActionRegistration.Platforms.MAC,
1348
+ shortcut: 'Meta+,',
1349
+ },
1330
1350
  ],
1331
1351
  });
1332
1352
 
@@ -1345,6 +1365,10 @@ UI.ActionRegistration.registerActionExtension({
1345
1365
  {
1346
1366
  shortcut: 'Ctrl+.',
1347
1367
  },
1368
+ {
1369
+ platform: UI.ActionRegistration.Platforms.MAC,
1370
+ shortcut: 'Meta+.',
1371
+ },
1348
1372
  ],
1349
1373
  });
1350
1374
 
@@ -1567,6 +1591,20 @@ SettingsUI.SettingUIRegistration.register(SDK.SDKSettings.cssSourceMapsEnabledSe
1567
1591
  ],
1568
1592
  });
1569
1593
 
1594
+ SettingsUI.SettingUIRegistration.register(SDK.SDKSettings.pauseOnExceptionEnabledSettingDescriptor, {
1595
+ category: Common.Settings.SettingCategory.DEBUGGER,
1596
+ options: [
1597
+ {
1598
+ value: true,
1599
+ title: i18nLazyString(UIStrings.pauseOnExceptions),
1600
+ },
1601
+ {
1602
+ value: false,
1603
+ title: i18nLazyString(UIStrings.doNotPauseOnExceptions),
1604
+ },
1605
+ ],
1606
+ });
1607
+
1570
1608
  Common.Settings.registerSettingExtension({
1571
1609
  category: Common.Settings.SettingCategory.SOURCES,
1572
1610
  storageType: Common.Settings.SettingStorageType.SYNCED,
@@ -4,7 +4,6 @@
4
4
 
5
5
  import * as AddSourceMapURLDialog from './AddSourceMapURLDialog.js';
6
6
  import * as AiCodeCompletionPlugin from './AiCodeCompletionPlugin.js';
7
- import * as AiWarningInfobarPlugin from './AiWarningInfobarPlugin.js';
8
7
  import * as BreakpointEditDialog from './BreakpointEditDialog.js';
9
8
  import * as BreakpointsView from './BreakpointsView.js';
10
9
  import * as BreakpointsViewUtils from './BreakpointsViewUtils.js';
@@ -39,7 +38,6 @@ import * as WatchExpressionsSidebarPane from './WatchExpressionsSidebarPane.js';
39
38
  export {
40
39
  AddSourceMapURLDialog,
41
40
  AiCodeCompletionPlugin,
42
- AiWarningInfobarPlugin,
43
41
  BreakpointEditDialog,
44
42
  BreakpointsView,
45
43
  BreakpointsViewUtils,
@@ -49,6 +49,12 @@ const UIStrings = {
49
49
  * @example {2} PH2
50
50
  */
51
51
  sD: '{PH1} #{PH2}',
52
+ /**
53
+ * @description Text in Timeline History Manager showing custom title alongside domain sequence number
54
+ * @example {Custom Profile} PH1
55
+ * @example {example.com #2} PH2
56
+ */
57
+ customTitleWithSequence: '{PH1} ({PH2})',
52
58
  /**
53
59
  * @description Accessible label for the timeline session selection menu
54
60
  */
@@ -346,7 +352,8 @@ export class TimelineHistoryManager {
346
352
  const domain = parsedURL ? parsedURL.host : '';
347
353
 
348
354
  const sequenceNumber = this.nextNumberByDomain.get(domain) || 1;
349
- const titleWithSequenceNumber = i18nString(UIStrings.sD, {PH1: domain, PH2: sequenceNumber});
355
+ const titleWithSequenceNumber =
356
+ domain ? i18nString(UIStrings.sD, {PH1: domain, PH2: sequenceNumber}) : `#${sequenceNumber}`;
350
357
  this.nextNumberByDomain.set(domain, sequenceNumber + 1);
351
358
 
352
359
  const preview = document.createElement('div');
@@ -354,16 +361,20 @@ export class TimelineHistoryManager {
354
361
  preview.classList.add('vbox');
355
362
  preview.setAttribute('jslog', `${VisualLogging.dropDown('timeline.history-item').track({click: true})}`);
356
363
  preview.style.width = `${previewWidth}px`;
364
+ const customTitle = parsedTrace.metadata.title;
365
+ const title = customTitle ?
366
+ i18nString(UIStrings.customTitleWithSequence, {PH1: customTitle, PH2: titleWithSequenceNumber}) :
367
+ titleWithSequenceNumber;
357
368
  const data = {
358
369
  preview,
359
- title: titleWithSequenceNumber,
370
+ title,
360
371
  lastUsed: Date.now(),
361
372
  };
362
373
  parsedTraceIndexToPerformancePreviewData.set(parsedTraceIndex, data);
363
374
 
364
375
  // eslint-disable-next-line @devtools/no-lit-render-outside-of-view
365
376
  render(html`
366
- ${this.#renderTextDetails(parsedTrace.metadata, domain)}
377
+ ${this.#renderTextDetails(parsedTrace.metadata, title)}
367
378
  <div class="hbox">
368
379
  ${this.#renderScreenshotThumbnail(filmStrip)}
369
380
  ${this.#buildOverview(parsedTrace)}