chrome-devtools-frontend 1.0.1667564 → 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 (211) hide show
  1. package/.agents/skills/devtools-ci/SKILL.md +65 -0
  2. package/.agents/skills/devtools-setting-migration/SKILL.md +290 -0
  3. package/.agents/skills/gerrit-cli/SKILL.md +59 -0
  4. package/.agents/skills/gerrit-cli/references/commands.md +93 -0
  5. package/.agents/skills/gerrit-cli/references/workflows.md +56 -0
  6. package/.agents/skills/gerrit-cli/scripts/gerrit_client_wrapper.py +47 -0
  7. package/.agents/skills/gerrit-cli/scripts/import_upstream.py +230 -0
  8. package/.agents/skills/ui-eng-vision-widget-promoter/SKILL.md +11 -4
  9. package/.agents/skills/ui-widgets/SKILL.md +25 -1
  10. package/docs/contributing/infrastructure.md +7 -1
  11. package/docs/ui_engineering.md +44 -1
  12. package/front_end/core/common/Settings.ts +11 -4
  13. package/front_end/core/host/AidaClient.ts +66 -47
  14. package/front_end/core/host/GcaClient.ts +4 -6
  15. package/front_end/core/host/ResourceLoader.ts +4 -2
  16. package/front_end/core/root/Runtime.ts +5 -5
  17. package/front_end/core/sdk/CSSModel.test.api.ts +102 -0
  18. package/front_end/core/sdk/CSSModel.ts +3 -2
  19. package/front_end/core/sdk/ConsoleModel.ts +3 -2
  20. package/front_end/core/sdk/DebuggerModel.ts +16 -7
  21. package/front_end/core/sdk/SDKSettings.ts +38 -0
  22. package/front_end/core/sdk/sdk-meta.ts +0 -120
  23. package/front_end/core/sdk/sdk.ts +2 -0
  24. package/front_end/entrypoints/main/MainImpl.ts +10 -3
  25. package/front_end/foundation/Universe.ts +7 -0
  26. package/front_end/generated/InspectorBackendCommands.ts +2 -2
  27. package/front_end/generated/protocol.ts +11 -3
  28. package/front_end/models/ai_assistance/AiAgent2.ts +1 -1
  29. package/front_end/models/ai_assistance/AiUtils.ts +67 -4
  30. package/front_end/models/ai_assistance/BuiltInAi.ts +11 -6
  31. package/front_end/models/ai_assistance/ChangeManager.ts +17 -1
  32. package/front_end/models/ai_assistance/StorageItem.ts +26 -5
  33. package/front_end/models/ai_code_completion/AiCodeCompletion.ts +2 -19
  34. package/front_end/models/ai_code_generation/AiCodeGeneration.ts +2 -3
  35. package/front_end/models/javascript_metadata/NativeFunctions.js +22 -9
  36. package/front_end/models/source_map_scopes/NamesResolver.ts +23 -17
  37. package/front_end/models/trace/handlers/RendererHandler.ts +20 -4
  38. package/front_end/models/trace/types/File.ts +1 -0
  39. package/front_end/models/workspace/UISourceCode.ts +0 -10
  40. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +61 -182
  41. package/front_end/panels/ai_assistance/components/ChatInput.ts +25 -8
  42. package/front_end/panels/ai_assistance/components/ChatMessage.ts +13 -69
  43. package/front_end/panels/ai_assistance/components/ChatView.ts +14 -8
  44. package/front_end/panels/ai_assistance/components/chatMessage.css +2 -20
  45. package/front_end/panels/application/ApplicationPanelSidebar.ts +2 -2
  46. package/front_end/panels/application/ApplicationPanelTreeElement.ts +41 -3
  47. package/front_end/panels/application/ServiceWorkerUpdateCycleView.ts +131 -134
  48. package/front_end/panels/application/ServiceWorkersView.ts +8 -8
  49. package/front_end/panels/application/application.ts +2 -0
  50. package/front_end/panels/application/components/AdsView.ts +10 -6
  51. package/front_end/panels/application/preloading/PreloadingView.ts +53 -45
  52. package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +111 -119
  53. package/front_end/panels/application/preloading/components/preloadingDetailsReportView.css +22 -24
  54. package/front_end/panels/application/serviceWorkerUpdateCycleView.css +105 -102
  55. package/front_end/panels/common/AiCodeCompletionDisclaimer.ts +107 -96
  56. package/front_end/panels/common/AiCodeCompletionSummaryToolbar.ts +17 -19
  57. package/front_end/panels/common/AiCodeCompletionTeaser.ts +6 -6
  58. package/front_end/panels/common/AiCodeGenerationTeaser.ts +28 -26
  59. package/front_end/panels/common/common.ts +1 -1
  60. package/front_end/panels/console/ConsoleInsightTeaser.ts +6 -8
  61. package/front_end/panels/console/ConsoleView.ts +6 -4
  62. package/front_end/panels/console/ConsoleViewMessage.ts +1 -1
  63. package/front_end/panels/console/console-meta.ts +28 -0
  64. package/front_end/panels/elements/StylesAiCodeCompletionProvider.ts +1 -1
  65. package/front_end/panels/elements/StylesSidebarPane.ts +3 -2
  66. package/front_end/panels/emulation/DeviceModeToolbar.ts +2 -2
  67. package/front_end/panels/emulation/DeviceModeView.ts +63 -104
  68. package/front_end/panels/emulation/DeviceModeWrapper.ts +18 -4
  69. package/front_end/panels/explain/components/ConsoleInsight.ts +4 -6
  70. package/front_end/panels/explain/explain-meta.ts +7 -49
  71. package/front_end/panels/network/NetworkDataGridNode.ts +1 -1
  72. package/front_end/panels/network/NetworkLogView.ts +1 -0
  73. package/front_end/panels/network/OriginalResourceChunkView.ts +340 -0
  74. package/front_end/panels/network/ResourceChunkView.ts +72 -46
  75. package/front_end/panels/network/ResourceDirectSocketChunkView.ts +3 -2
  76. package/front_end/panels/network/ResourceWebSocketFrameView.ts +3 -3
  77. package/front_end/panels/network/originalResourceChunkView.css +49 -0
  78. package/front_end/panels/screencast/ScreencastView.ts +401 -260
  79. package/front_end/panels/screencast/screencastView.css +113 -100
  80. package/front_end/panels/sensors/LocationsSettingsTab.ts +329 -135
  81. package/front_end/panels/sensors/locationsSettingsTab.css +78 -4
  82. package/front_end/panels/settings/AISettingsTab.ts +17 -100
  83. package/front_end/panels/snippets/ScriptSnippetFileSystem.ts +2 -2
  84. package/front_end/panels/snippets/SnippetsQuickOpen.ts +4 -4
  85. package/front_end/panels/sources/AddSourceMapURLDialog.ts +3 -3
  86. package/front_end/panels/sources/AiCodeCompletionPlugin.ts +4 -3
  87. package/front_end/panels/sources/BreakpointEditDialog.ts +14 -14
  88. package/front_end/panels/sources/BreakpointsView.ts +14 -14
  89. package/front_end/panels/sources/CallStackSidebarPane.ts +6 -6
  90. package/front_end/panels/sources/CategorizedBreakpointL10n.ts +18 -18
  91. package/front_end/panels/sources/CoveragePlugin.ts +7 -7
  92. package/front_end/panels/sources/DebuggerPausedMessage.ts +23 -23
  93. package/front_end/panels/sources/DebuggerPlugin.ts +31 -31
  94. package/front_end/panels/sources/FilteredUISourceCodeListProvider.ts +2 -2
  95. package/front_end/panels/sources/GoToLineQuickOpen.ts +10 -10
  96. package/front_end/panels/sources/NavigatorView.ts +34 -27
  97. package/front_end/panels/sources/OutlineQuickOpen.ts +3 -3
  98. package/front_end/panels/sources/PersistenceActions.ts +9 -9
  99. package/front_end/panels/sources/ProfilePlugin.ts +1 -1
  100. package/front_end/panels/sources/ScopeChainSidebarPane.ts +5 -5
  101. package/front_end/panels/sources/SnippetsPlugin.ts +2 -2
  102. package/front_end/panels/sources/SourcesNavigator.ts +20 -18
  103. package/front_end/panels/sources/SourcesPanel.ts +26 -25
  104. package/front_end/panels/sources/SourcesView.ts +5 -6
  105. package/front_end/panels/sources/TabbedEditorContainer.ts +3 -3
  106. package/front_end/panels/sources/ThreadsSidebarPane.ts +1 -1
  107. package/front_end/panels/sources/UISourceCodeFrame.ts +0 -2
  108. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +7 -7
  109. package/front_end/panels/sources/components/HeadersView.ts +2 -2
  110. package/front_end/panels/sources/sources-meta.ts +164 -71
  111. package/front_end/panels/sources/sources.ts +0 -2
  112. package/front_end/panels/timeline/TimelineHistoryManager.ts +14 -3
  113. package/front_end/panels/timeline/TimelineLoader.ts +72 -42
  114. package/front_end/panels/timeline/TimelinePanel.ts +29 -4
  115. package/front_end/panels/timeline/timelineHistoryManager.css +4 -0
  116. package/front_end/third_party/chromium/README.chromium +1 -1
  117. package/front_end/third_party/puppeteer/README.chromium +2 -2
  118. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +187 -1
  119. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +91 -38
  120. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.d.ts +145 -2
  121. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.d.ts.map +1 -1
  122. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.js +0 -2
  123. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.js.map +1 -1
  124. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.d.ts +0 -2
  125. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.d.ts.map +1 -1
  126. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.js +0 -2
  127. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.js.map +1 -1
  128. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Dialog.d.ts +3 -2
  129. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Dialog.d.ts.map +1 -1
  130. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Dialog.js +8 -2
  131. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Dialog.js.map +1 -1
  132. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/JSHandle.d.ts +0 -2
  133. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/JSHandle.d.ts.map +1 -1
  134. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/JSHandle.js +0 -2
  135. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/JSHandle.js.map +1 -1
  136. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts +1 -3
  137. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts.map +1 -1
  138. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js +0 -2
  139. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js.map +1 -1
  140. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Realm.d.ts +0 -1
  141. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Realm.d.ts.map +1 -1
  142. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Realm.js +0 -1
  143. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Realm.js.map +1 -1
  144. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BidiOverCdp.d.ts.map +1 -1
  145. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BidiOverCdp.js +2 -2
  146. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BidiOverCdp.js.map +1 -1
  147. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.d.ts +5 -1
  148. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.d.ts.map +1 -1
  149. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.js +12 -0
  150. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.js.map +1 -1
  151. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.d.ts.map +1 -1
  152. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.js +4 -1
  153. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.js.map +1 -1
  154. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Browser.d.ts +5 -1
  155. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Browser.d.ts.map +1 -1
  156. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Browser.js +49 -0
  157. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Browser.js.map +1 -1
  158. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.d.ts +0 -6
  159. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.d.ts.map +1 -1
  160. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.js +0 -6
  161. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.js.map +1 -1
  162. package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.d.ts +1 -1
  163. package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.d.ts.map +1 -1
  164. package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.js +1 -1
  165. package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.js.map +1 -1
  166. package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/util.d.ts.map +1 -1
  167. package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/util.js +3 -0
  168. package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/util.js.map +1 -1
  169. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ScreenRecorder.d.ts +0 -3
  170. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ScreenRecorder.d.ts.map +1 -1
  171. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ScreenRecorder.js +0 -3
  172. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ScreenRecorder.js.map +1 -1
  173. package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.d.ts +3 -3
  174. package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.js +3 -3
  175. package/front_end/third_party/puppeteer/package/lib/puppeteer/util/disposable.d.ts +2 -2
  176. package/front_end/third_party/puppeteer/package/lib/puppeteer/util/disposable.js +2 -2
  177. package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.d.ts +1 -1
  178. package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.js +1 -1
  179. package/front_end/third_party/puppeteer/package/lib/types.d.ts +187 -1
  180. package/front_end/third_party/puppeteer/package/package.json +5 -5
  181. package/front_end/third_party/puppeteer/package/src/api/Browser.ts +155 -2
  182. package/front_end/third_party/puppeteer/package/src/api/BrowserContext.ts +0 -2
  183. package/front_end/third_party/puppeteer/package/src/api/Dialog.ts +10 -2
  184. package/front_end/third_party/puppeteer/package/src/api/JSHandle.ts +0 -2
  185. package/front_end/third_party/puppeteer/package/src/api/Page.ts +1 -3
  186. package/front_end/third_party/puppeteer/package/src/api/Realm.ts +0 -1
  187. package/front_end/third_party/puppeteer/package/src/bidi/BidiOverCdp.ts +4 -2
  188. package/front_end/third_party/puppeteer/package/src/bidi/Browser.ts +17 -0
  189. package/front_end/third_party/puppeteer/package/src/bidi/HTTPResponse.ts +5 -4
  190. package/front_end/third_party/puppeteer/package/src/cdp/Browser.ts +66 -0
  191. package/front_end/third_party/puppeteer/package/src/common/EventEmitter.ts +0 -6
  192. package/front_end/third_party/puppeteer/package/src/generated/injected.ts +1 -1
  193. package/front_end/third_party/puppeteer/package/src/injected/util.ts +4 -1
  194. package/front_end/third_party/puppeteer/package/src/node/ScreenRecorder.ts +0 -3
  195. package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
  196. package/front_end/third_party/puppeteer/package/src/util/disposable.ts +2 -2
  197. package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
  198. package/front_end/ui/components/text_editor/AiCodeCompletionProvider.ts +9 -7
  199. package/front_end/ui/components/text_editor/AiCodeGenerationProvider.ts +7 -8
  200. package/front_end/ui/legacy/Dialog.ts +103 -4
  201. package/front_end/ui/legacy/InspectorView.ts +1 -5
  202. package/front_end/ui/legacy/PopoverHelper.ts +5 -5
  203. package/front_end/ui/legacy/TabbedPane.ts +7 -2
  204. package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +40 -24
  205. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +1 -0
  206. package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +8 -4
  207. package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +14 -7
  208. package/front_end/ui/legacy/components/quick_open/CommandMenu.ts +11 -1
  209. package/front_end/ui/visual_logging/KnownContextValues.ts +3 -0
  210. package/package.json +1 -1
  211. package/front_end/panels/sources/AiWarningInfobarPlugin.ts +0 -78
@@ -13,10 +13,19 @@ import * as Workspace from '../../models/workspace/workspace.js';
13
13
  import * as ObjectUI from '../../ui/legacy/components/object_ui/object_ui.js';
14
14
  import * as QuickOpen from '../../ui/legacy/components/quick_open/quick_open.js';
15
15
  import * as UI from '../../ui/legacy/legacy.js';
16
+ import * as SettingsUI from '../../ui/settings/settings.js';
16
17
 
17
18
  import type * as Sources from './sources.js';
18
19
 
19
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',
20
29
  /**
21
30
  * @description Command for showing the 'Sources' tool
22
31
  */
@@ -90,11 +99,11 @@ const UIStrings = {
90
99
  */
91
100
  breakpoints: 'Breakpoints',
92
101
  /**
93
- * @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
94
103
  */
95
104
  pauseScriptExecution: 'Pause script execution',
96
105
  /**
97
- * @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
98
107
  */
99
108
  resumeScriptExecution: 'Resume script execution',
100
109
  /**
@@ -118,75 +127,75 @@ const UIStrings = {
118
127
  */
119
128
  runSnippet: 'Run snippet',
120
129
  /**
121
- * @description Text in Java Script Breakpoints Sidebar Pane of the Sources panel
130
+ * @description Text in JavaScript breakpoint sidebar of the Sources panel.
122
131
  */
123
132
  deactivateBreakpoints: 'Deactivate breakpoints',
124
133
  /**
125
- * @description Text in Java Script Breakpoints Sidebar Pane of the Sources panel
134
+ * @description Text in JavaScript breakpoint sidebar of the Sources panel.
126
135
  */
127
136
  activateBreakpoints: 'Activate breakpoints',
128
137
  /**
129
- * @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.
130
139
  */
131
140
  addSelectedTextToWatches: 'Add selected text to watches',
132
141
  /**
133
- * @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.
134
143
  */
135
144
  evaluateSelectedTextInConsole: 'Evaluate selected text in console',
136
145
  /**
137
- * @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.
138
147
  */
139
148
  switchFile: 'Switch file',
140
149
  /**
141
- * @description Title of a sources panel action that renames a file
150
+ * @description Title of a sources panel action that renames a file.
142
151
  */
143
152
  rename: 'Rename',
144
153
  /**
145
- * @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.
146
155
  */
147
156
  closeAll: 'Close all',
148
157
  /**
149
- * @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).
150
159
  */
151
160
  jumpToPreviousEditingLocation: 'Jump to previous editing location',
152
161
  /**
153
- * @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).
154
163
  */
155
164
  jumpToNextEditingLocation: 'Jump to next editing location',
156
165
  /**
157
- * @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.
158
167
  */
159
168
  closeTheActiveTab: 'Close the active tab',
160
169
  /**
161
- * @description Text to go to a given line
170
+ * @description Text to go to a given line.
162
171
  */
163
172
  goToLine: 'Go to line',
164
173
  /**
165
- * @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.
166
175
  */
167
176
  goToAFunctionDeclarationruleSet: 'Go to a function declaration/rule set',
168
177
  /**
169
- * @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).
170
179
  */
171
180
  toggleBreakpoint: 'Toggle breakpoint',
172
181
  /**
173
- * @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).
174
183
  */
175
184
  toggleBreakpointEnabled: 'Toggle breakpoint enabled',
176
185
  /**
177
- * @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.
178
187
  */
179
188
  toggleBreakpointInputWindow: 'Toggle breakpoint input window',
180
189
  /**
181
- * @description Text to save something
190
+ * @description Text to save something.
182
191
  */
183
192
  save: 'Save',
184
193
  /**
185
- * @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.
186
195
  */
187
196
  saveAll: 'Save all',
188
197
  /**
189
- * @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.
190
199
  */
191
200
  createNewSnippet: 'Create new snippet',
192
201
  /**
@@ -200,37 +209,37 @@ const UIStrings = {
200
209
  */
201
210
  addFolderToWorkspace: 'Add folder to workspace',
202
211
  /**
203
- * @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.
204
213
  */
205
214
  previousCallFrame: 'Previous call frame',
206
215
  /**
207
- * @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.
208
217
  */
209
218
  nextCallFrame: 'Next call frame',
210
219
  /**
211
- * @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).
212
221
  * @example {10} PH1
213
222
  */
214
223
  incrementCssUnitBy: 'Increment CSS unit by {PH1}',
215
224
  /**
216
- * @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).
217
226
  * @example {10} PH1
218
227
  */
219
228
  decrementCssUnitBy: 'Decrement CSS unit by {PH1}',
220
229
  /**
221
- * @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.
222
231
  */
223
232
  searchInAnonymousAndContent: 'Search in anonymous and content scripts',
224
233
  /**
225
- * @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.
226
235
  */
227
236
  doNotSearchInAnonymousAndContent: 'Do not search in anonymous and content scripts',
228
237
  /**
229
- * @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.
230
239
  */
231
240
  automaticallyRevealFilesIn: 'Automatically reveal files in sidebar',
232
241
  /**
233
- * @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.
234
243
  */
235
244
  doNotAutomaticallyRevealFilesIn: 'Do not automatically reveal files in sidebar',
236
245
  /**
@@ -242,7 +251,7 @@ const UIStrings = {
242
251
  */
243
252
  tabMovesFocus: 'Tab moves focus',
244
253
  /**
245
- * @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.
246
255
  *'tab moves focus' is the name of the setting, which means that when the user
247
256
  *hits the tab key, the focus in the UI will be moved to the next part of the
248
257
  *text editor, as opposed to inserting a tab character into the text in the
@@ -250,7 +259,7 @@ const UIStrings = {
250
259
  */
251
260
  enableTabMovesFocus: 'Enable tab moves focus',
252
261
  /**
253
- * @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.
254
263
  *'tab moves focus' is the name of the setting, which means that when the user
255
264
  *hits the tab key, the focus in the UI will be moved to the next part of the
256
265
  *text editor, as opposed to inserting a tab character into the text in the
@@ -258,79 +267,79 @@ const UIStrings = {
258
267
  */
259
268
  disableTabMovesFocus: 'Disable tab moves focus',
260
269
  /**
261
- * @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.
262
271
  */
263
272
  detectIndentation: 'Detect indentation',
264
273
  /**
265
- * @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.
266
275
  */
267
276
  doNotDetectIndentation: 'Do not detect indentation',
268
277
  /**
269
- * @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.
270
279
  *This setting turns on the automatic formatting of source files in the Sources panel that are detected
271
280
  *to be minified.
272
281
  */
273
282
  automaticallyPrettyPrintMinifiedSources: 'Automatically pretty print minified sources',
274
283
  /**
275
- * @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.
276
285
  *This setting turns off the automatic formatting of source files in the Sources panel that are detected
277
286
  *to be minified.
278
287
  */
279
288
  doNotAutomaticallyPrettyPrintMinifiedSources: 'Do not automatically pretty print minified sources',
280
289
  /**
281
- * @description Text for autocompletion
290
+ * @description Text for autocompletion.
282
291
  */
283
292
  autocompletion: 'Autocompletion',
284
293
  /**
285
- * @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.
286
295
  */
287
296
  enableAutocompletion: 'Enable autocompletion',
288
297
  /**
289
- * @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.
290
299
  */
291
300
  disableAutocompletion: 'Disable autocompletion',
292
301
  /**
293
- * @description Title of a setting under the Sources category in Settings
302
+ * @description Title of a setting under the Sources category in Settings.
294
303
  */
295
304
  bracketClosing: 'Auto closing brackets',
296
305
  /**
297
- * @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.
298
307
  */
299
308
  enableBracketClosing: 'Enable auto closing brackets',
300
309
  /**
301
- * @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.
302
311
  */
303
312
  disableBracketClosing: 'Disable auto closing brackets',
304
313
  /**
305
- * @description Title of a setting under the Sources category in Settings
314
+ * @description Title of a setting under the Sources category in Settings.
306
315
  */
307
316
  bracketMatching: 'Bracket matching',
308
317
  /**
309
- * @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.
310
319
  */
311
320
  enableBracketMatching: 'Enable bracket matching',
312
321
  /**
313
- * @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.
314
323
  */
315
324
  disableBracketMatching: 'Disable bracket matching',
316
325
  /**
317
- * @description Title of a setting under the Sources category in Settings
326
+ * @description Title of a setting under the Sources category in Settings.
318
327
  */
319
328
  codeFolding: 'Code folding',
320
329
  /**
321
- * @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.
322
331
  */
323
332
  enableCodeFolding: 'Enable code folding',
324
333
  /**
325
- * @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.
326
335
  */
327
336
  disableCodeFolding: 'Disable code folding',
328
337
  /**
329
- * @description Title of a setting under the Sources category in Settings
338
+ * @description Title of a setting under the Sources category in Settings.
330
339
  */
331
340
  showWhitespaceCharacters: 'Show whitespace characters:',
332
341
  /**
333
- * @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.
334
343
  */
335
344
  doNotShowWhitespaceCharacters: 'Do not show whitespace characters',
336
345
  /**
@@ -339,84 +348,84 @@ const UIStrings = {
339
348
  */
340
349
  none: 'None',
341
350
  /**
342
- * @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.
343
352
  */
344
353
  showAllWhitespaceCharacters: 'Show all whitespace characters',
345
354
  /**
346
- * @description Text for everything
355
+ * @description Text for everything.
347
356
  */
348
357
  all: 'All',
349
358
  /**
350
- * @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.
351
360
  */
352
361
  showTrailingWhitespaceCharacters: 'Show trailing whitespace characters',
353
362
  /**
354
- * @description A drop-down menu option to show trailing whitespace characters
363
+ * @description A drop-down menu option to show trailing whitespace characters.
355
364
  */
356
365
  trailing: 'Trailing',
357
366
  /**
358
- * @description Title of a setting under the Sources category
367
+ * @description Title of a setting under the Sources category.
359
368
  */
360
369
  variableValuesInlineWhile: 'Variable values inline',
361
370
  /**
362
- * @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.
363
372
  */
364
373
  displayVariableValuesInlineWhile: 'Display variable values inline while debugging',
365
374
  /**
366
- * @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.
367
376
  */
368
377
  doNotDisplayVariableValuesInline: 'Don’t show variable values inline',
369
378
  /**
370
- * @description Title of a setting under the Sources category in Settings
379
+ * @description Title of a setting under the Sources category in Settings.
371
380
  */
372
381
  allowScrollingPastEndOfFile: 'Allow scrolling past end of file',
373
382
  /**
374
- * @description Title of a setting under the Sources category in Settings
383
+ * @description Title of a setting under the Sources category in Settings.
375
384
  */
376
385
  disallowScrollingPastEndOfFile: 'Disallow scrolling past end of file',
377
386
  /**
378
- * @description Title of a setting under the Sources category in Settings
387
+ * @description Title of a setting under the Sources category in Settings.
379
388
  */
380
389
  wasmAutoStepping: 'Wasm auto-stepping bytecode',
381
390
  /**
382
- * @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.
383
392
  */
384
393
  wasmAutoSteppingInfo: 'When debugging Wasm with debug information, try to skip wasm bytecode',
385
394
  /**
386
- * @description Title of a setting under the Sources category in Settings
395
+ * @description Title of a setting under the Sources category in Settings.
387
396
  */
388
397
  enableWasmAutoStepping: 'Enable Wasm auto-stepping',
389
398
  /**
390
- * @description Title of a setting under the Sources category in Settings
399
+ * @description Title of a setting under the Sources category in Settings.
391
400
  */
392
401
  disableWasmAutoStepping: 'Disable Wasm auto-stepping',
393
402
 
394
403
  /**
395
- * @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.
396
405
  */
397
406
  goTo: 'Go to',
398
407
  /**
399
- * @description Text for command suggestion of go to a given line
408
+ * @description Text for command suggestion of go to a given line.
400
409
  */
401
410
  line: 'Line',
402
411
  /**
403
- * @description Text for command suggestion of go to a given symbol
412
+ * @description Text for command suggestion of go to a given symbol.
404
413
  */
405
414
  symbol: 'Symbol',
406
415
  /**
407
- * @description Text for help title of go to symbol menu
416
+ * @description Text for help title of go to symbol menu.
408
417
  */
409
418
  goToSymbol: 'Go to symbol',
410
419
  /**
411
- * @description Text for command prefix of open a file
420
+ * @description Text for command prefix of open a file.
412
421
  */
413
422
  open: 'Open',
414
423
  /**
415
- * @description Text for command suggestion of open a file
424
+ * @description Text for command suggestion of open a file.
416
425
  */
417
426
  file: 'File',
418
427
  /**
419
- * @description Text for help title of open file menu
428
+ * @description Text for help title of open file menu.
420
429
  */
421
430
  openFile: 'Open file',
422
431
  /**
@@ -432,15 +441,15 @@ const UIStrings = {
432
441
  */
433
442
  enableAutoFocusOnDebuggerPaused: 'Focus Sources panel when triggering a breakpoint',
434
443
  /**
435
- * @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.
436
445
  */
437
446
  revealActiveFileInSidebar: 'Reveal active file in navigator sidebar',
438
447
  /**
439
- * @description Text for command of toggling navigator sidebar in Sources panel
448
+ * @description Text for command of toggling navigator sidebar in Sources panel.
440
449
  */
441
450
  toggleNavigatorSidebar: 'Toggle navigator sidebar',
442
451
  /**
443
- * @description Text for command of toggling debugger sidebar in Sources panel
452
+ * @description Text for command of toggling debugger sidebar in Sources panel.
444
453
  */
445
454
  toggleDebuggerSidebar: 'Toggle debugger sidebar',
446
455
  /**
@@ -463,6 +472,30 @@ const UIStrings = {
463
472
  * wrap' setting.
464
473
  */
465
474
  toggleWordWrap: 'Toggle word wrap',
475
+ /**
476
+ * @description Setting under the Sources category to toggle usage of JavaScript source maps.
477
+ */
478
+ javaScriptSourceMaps: 'JavaScript source maps',
479
+ /**
480
+ * @description Title of an option under the Sources category that can be invoked through the Command Menu.
481
+ */
482
+ enableJavaScriptSourceMaps: 'Enable JavaScript source maps',
483
+ /**
484
+ * @description Title of an option under the Sources category that can be invoked through the Command Menu.
485
+ */
486
+ disableJavaScriptSourceMaps: 'Disable JavaScript source maps',
487
+ /**
488
+ * @description Setting under the Sources category to toggle usage of CSS source maps.
489
+ */
490
+ cssSourceMaps: 'CSS source maps',
491
+ /**
492
+ * @description Title of an option under the Sources category that can be invoked through the Command Menu.
493
+ */
494
+ enableCssSourceMaps: 'Enable CSS source maps',
495
+ /**
496
+ * @description Title of an option under the Sources category that can be invoked through the Command Menu.
497
+ */
498
+ disableCssSourceMaps: 'Disable CSS source maps',
466
499
  } as const;
467
500
  const str_ = i18n.i18n.registerUIStrings('panels/sources/sources-meta.ts', UIStrings);
468
501
  const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
@@ -1083,6 +1116,14 @@ UI.ActionRegistration.registerActionExtension({
1083
1116
  UI.ActionRegistration.KeybindSet.VS_CODE,
1084
1117
  ],
1085
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
+ },
1086
1127
  ],
1087
1128
  });
1088
1129
 
@@ -1302,6 +1343,10 @@ UI.ActionRegistration.registerActionExtension({
1302
1343
  {
1303
1344
  shortcut: 'Ctrl+,',
1304
1345
  },
1346
+ {
1347
+ platform: UI.ActionRegistration.Platforms.MAC,
1348
+ shortcut: 'Meta+,',
1349
+ },
1305
1350
  ],
1306
1351
  });
1307
1352
 
@@ -1320,6 +1365,10 @@ UI.ActionRegistration.registerActionExtension({
1320
1365
  {
1321
1366
  shortcut: 'Ctrl+.',
1322
1367
  },
1368
+ {
1369
+ platform: UI.ActionRegistration.Platforms.MAC,
1370
+ shortcut: 'Meta+.',
1371
+ },
1323
1372
  ],
1324
1373
  });
1325
1374
 
@@ -1512,6 +1561,50 @@ Common.Settings.registerSettingExtension({
1512
1561
  defaultValue: false,
1513
1562
  });
1514
1563
 
1564
+ SettingsUI.SettingUIRegistration.register(SDK.SDKSettings.jsSourceMapsEnabledSettingDescriptor, {
1565
+ category: Common.Settings.SettingCategory.SOURCES,
1566
+ title: i18nLazyString(UIStrings.javaScriptSourceMaps),
1567
+ options: [
1568
+ {
1569
+ value: true,
1570
+ title: i18nLazyString(UIStrings.enableJavaScriptSourceMaps),
1571
+ },
1572
+ {
1573
+ value: false,
1574
+ title: i18nLazyString(UIStrings.disableJavaScriptSourceMaps),
1575
+ },
1576
+ ],
1577
+ });
1578
+
1579
+ SettingsUI.SettingUIRegistration.register(SDK.SDKSettings.cssSourceMapsEnabledSettingDescriptor, {
1580
+ category: Common.Settings.SettingCategory.SOURCES,
1581
+ title: i18nLazyString(UIStrings.cssSourceMaps),
1582
+ options: [
1583
+ {
1584
+ value: true,
1585
+ title: i18nLazyString(UIStrings.enableCssSourceMaps),
1586
+ },
1587
+ {
1588
+ value: false,
1589
+ title: i18nLazyString(UIStrings.disableCssSourceMaps),
1590
+ },
1591
+ ],
1592
+ });
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
+
1515
1608
  Common.Settings.registerSettingExtension({
1516
1609
  category: Common.Settings.SettingCategory.SOURCES,
1517
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)}