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.
- package/.agents/skills/devtools-ci/SKILL.md +65 -0
- package/.agents/skills/devtools-setting-migration/SKILL.md +290 -0
- package/.agents/skills/gerrit-cli/SKILL.md +59 -0
- package/.agents/skills/gerrit-cli/references/commands.md +93 -0
- package/.agents/skills/gerrit-cli/references/workflows.md +56 -0
- package/.agents/skills/gerrit-cli/scripts/gerrit_client_wrapper.py +47 -0
- package/.agents/skills/gerrit-cli/scripts/import_upstream.py +230 -0
- package/.agents/skills/ui-eng-vision-widget-promoter/SKILL.md +11 -4
- package/.agents/skills/ui-widgets/SKILL.md +25 -1
- package/docs/contributing/infrastructure.md +7 -1
- package/docs/ui_engineering.md +44 -1
- package/front_end/core/common/Settings.ts +11 -4
- package/front_end/core/host/AidaClient.ts +66 -47
- package/front_end/core/host/GcaClient.ts +4 -6
- package/front_end/core/host/ResourceLoader.ts +4 -2
- package/front_end/core/root/Runtime.ts +5 -5
- package/front_end/core/sdk/CSSModel.test.api.ts +102 -0
- package/front_end/core/sdk/CSSModel.ts +3 -2
- package/front_end/core/sdk/ConsoleModel.ts +3 -2
- package/front_end/core/sdk/DebuggerModel.ts +16 -7
- package/front_end/core/sdk/SDKSettings.ts +38 -0
- package/front_end/core/sdk/sdk-meta.ts +0 -120
- package/front_end/core/sdk/sdk.ts +2 -0
- package/front_end/entrypoints/main/MainImpl.ts +10 -3
- package/front_end/foundation/Universe.ts +7 -0
- package/front_end/generated/InspectorBackendCommands.ts +2 -2
- package/front_end/generated/protocol.ts +11 -3
- package/front_end/models/ai_assistance/AiAgent2.ts +1 -1
- package/front_end/models/ai_assistance/AiUtils.ts +67 -4
- package/front_end/models/ai_assistance/BuiltInAi.ts +11 -6
- package/front_end/models/ai_assistance/ChangeManager.ts +17 -1
- package/front_end/models/ai_assistance/StorageItem.ts +26 -5
- package/front_end/models/ai_code_completion/AiCodeCompletion.ts +2 -19
- package/front_end/models/ai_code_generation/AiCodeGeneration.ts +2 -3
- package/front_end/models/javascript_metadata/NativeFunctions.js +22 -9
- package/front_end/models/source_map_scopes/NamesResolver.ts +23 -17
- package/front_end/models/trace/handlers/RendererHandler.ts +20 -4
- package/front_end/models/trace/types/File.ts +1 -0
- package/front_end/models/workspace/UISourceCode.ts +0 -10
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +61 -182
- package/front_end/panels/ai_assistance/components/ChatInput.ts +25 -8
- package/front_end/panels/ai_assistance/components/ChatMessage.ts +13 -69
- package/front_end/panels/ai_assistance/components/ChatView.ts +14 -8
- package/front_end/panels/ai_assistance/components/chatMessage.css +2 -20
- package/front_end/panels/application/ApplicationPanelSidebar.ts +2 -2
- package/front_end/panels/application/ApplicationPanelTreeElement.ts +41 -3
- package/front_end/panels/application/ServiceWorkerUpdateCycleView.ts +131 -134
- package/front_end/panels/application/ServiceWorkersView.ts +8 -8
- package/front_end/panels/application/application.ts +2 -0
- package/front_end/panels/application/components/AdsView.ts +10 -6
- package/front_end/panels/application/preloading/PreloadingView.ts +53 -45
- package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +111 -119
- package/front_end/panels/application/preloading/components/preloadingDetailsReportView.css +22 -24
- package/front_end/panels/application/serviceWorkerUpdateCycleView.css +105 -102
- package/front_end/panels/common/AiCodeCompletionDisclaimer.ts +107 -96
- package/front_end/panels/common/AiCodeCompletionSummaryToolbar.ts +17 -19
- package/front_end/panels/common/AiCodeCompletionTeaser.ts +6 -6
- package/front_end/panels/common/AiCodeGenerationTeaser.ts +28 -26
- package/front_end/panels/common/common.ts +1 -1
- package/front_end/panels/console/ConsoleInsightTeaser.ts +6 -8
- package/front_end/panels/console/ConsoleView.ts +6 -4
- package/front_end/panels/console/ConsoleViewMessage.ts +1 -1
- package/front_end/panels/console/console-meta.ts +28 -0
- package/front_end/panels/elements/StylesAiCodeCompletionProvider.ts +1 -1
- package/front_end/panels/elements/StylesSidebarPane.ts +3 -2
- package/front_end/panels/emulation/DeviceModeToolbar.ts +2 -2
- package/front_end/panels/emulation/DeviceModeView.ts +63 -104
- package/front_end/panels/emulation/DeviceModeWrapper.ts +18 -4
- package/front_end/panels/explain/components/ConsoleInsight.ts +4 -6
- package/front_end/panels/explain/explain-meta.ts +7 -49
- package/front_end/panels/network/NetworkDataGridNode.ts +1 -1
- package/front_end/panels/network/NetworkLogView.ts +1 -0
- package/front_end/panels/network/OriginalResourceChunkView.ts +340 -0
- package/front_end/panels/network/ResourceChunkView.ts +72 -46
- package/front_end/panels/network/ResourceDirectSocketChunkView.ts +3 -2
- package/front_end/panels/network/ResourceWebSocketFrameView.ts +3 -3
- package/front_end/panels/network/originalResourceChunkView.css +49 -0
- package/front_end/panels/screencast/ScreencastView.ts +401 -260
- package/front_end/panels/screencast/screencastView.css +113 -100
- package/front_end/panels/sensors/LocationsSettingsTab.ts +329 -135
- package/front_end/panels/sensors/locationsSettingsTab.css +78 -4
- package/front_end/panels/settings/AISettingsTab.ts +17 -100
- package/front_end/panels/snippets/ScriptSnippetFileSystem.ts +2 -2
- package/front_end/panels/snippets/SnippetsQuickOpen.ts +4 -4
- package/front_end/panels/sources/AddSourceMapURLDialog.ts +3 -3
- package/front_end/panels/sources/AiCodeCompletionPlugin.ts +4 -3
- package/front_end/panels/sources/BreakpointEditDialog.ts +14 -14
- package/front_end/panels/sources/BreakpointsView.ts +14 -14
- package/front_end/panels/sources/CallStackSidebarPane.ts +6 -6
- package/front_end/panels/sources/CategorizedBreakpointL10n.ts +18 -18
- package/front_end/panels/sources/CoveragePlugin.ts +7 -7
- package/front_end/panels/sources/DebuggerPausedMessage.ts +23 -23
- package/front_end/panels/sources/DebuggerPlugin.ts +31 -31
- package/front_end/panels/sources/FilteredUISourceCodeListProvider.ts +2 -2
- package/front_end/panels/sources/GoToLineQuickOpen.ts +10 -10
- package/front_end/panels/sources/NavigatorView.ts +34 -27
- package/front_end/panels/sources/OutlineQuickOpen.ts +3 -3
- package/front_end/panels/sources/PersistenceActions.ts +9 -9
- package/front_end/panels/sources/ProfilePlugin.ts +1 -1
- package/front_end/panels/sources/ScopeChainSidebarPane.ts +5 -5
- package/front_end/panels/sources/SnippetsPlugin.ts +2 -2
- package/front_end/panels/sources/SourcesNavigator.ts +20 -18
- package/front_end/panels/sources/SourcesPanel.ts +26 -25
- package/front_end/panels/sources/SourcesView.ts +5 -6
- package/front_end/panels/sources/TabbedEditorContainer.ts +3 -3
- package/front_end/panels/sources/ThreadsSidebarPane.ts +1 -1
- package/front_end/panels/sources/UISourceCodeFrame.ts +0 -2
- package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +7 -7
- package/front_end/panels/sources/components/HeadersView.ts +2 -2
- package/front_end/panels/sources/sources-meta.ts +164 -71
- package/front_end/panels/sources/sources.ts +0 -2
- package/front_end/panels/timeline/TimelineHistoryManager.ts +14 -3
- package/front_end/panels/timeline/TimelineLoader.ts +72 -42
- package/front_end/panels/timeline/TimelinePanel.ts +29 -4
- package/front_end/panels/timeline/timelineHistoryManager.css +4 -0
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/puppeteer/README.chromium +2 -2
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +187 -1
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +91 -38
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.d.ts +145 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.js +0 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.d.ts +0 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.js +0 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Dialog.d.ts +3 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Dialog.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Dialog.js +8 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Dialog.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/JSHandle.d.ts +0 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/JSHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/JSHandle.js +0 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/JSHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts +1 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js +0 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Realm.d.ts +0 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Realm.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Realm.js +0 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Realm.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BidiOverCdp.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BidiOverCdp.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BidiOverCdp.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.d.ts +5 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.js +12 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.js +4 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Browser.d.ts +5 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Browser.js +49 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.d.ts +0 -6
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.js +0 -6
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/util.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/util.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/util.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ScreenRecorder.d.ts +0 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ScreenRecorder.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ScreenRecorder.js +0 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ScreenRecorder.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/disposable.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/disposable.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +187 -1
- package/front_end/third_party/puppeteer/package/package.json +5 -5
- package/front_end/third_party/puppeteer/package/src/api/Browser.ts +155 -2
- package/front_end/third_party/puppeteer/package/src/api/BrowserContext.ts +0 -2
- package/front_end/third_party/puppeteer/package/src/api/Dialog.ts +10 -2
- package/front_end/third_party/puppeteer/package/src/api/JSHandle.ts +0 -2
- package/front_end/third_party/puppeteer/package/src/api/Page.ts +1 -3
- package/front_end/third_party/puppeteer/package/src/api/Realm.ts +0 -1
- package/front_end/third_party/puppeteer/package/src/bidi/BidiOverCdp.ts +4 -2
- package/front_end/third_party/puppeteer/package/src/bidi/Browser.ts +17 -0
- package/front_end/third_party/puppeteer/package/src/bidi/HTTPResponse.ts +5 -4
- package/front_end/third_party/puppeteer/package/src/cdp/Browser.ts +66 -0
- package/front_end/third_party/puppeteer/package/src/common/EventEmitter.ts +0 -6
- package/front_end/third_party/puppeteer/package/src/generated/injected.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/injected/util.ts +4 -1
- package/front_end/third_party/puppeteer/package/src/node/ScreenRecorder.ts +0 -3
- package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/util/disposable.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
- package/front_end/ui/components/text_editor/AiCodeCompletionProvider.ts +9 -7
- package/front_end/ui/components/text_editor/AiCodeGenerationProvider.ts +7 -8
- package/front_end/ui/legacy/Dialog.ts +103 -4
- package/front_end/ui/legacy/InspectorView.ts +1 -5
- package/front_end/ui/legacy/PopoverHelper.ts +5 -5
- package/front_end/ui/legacy/TabbedPane.ts +7 -2
- package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +40 -24
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +1 -0
- package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +8 -4
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +14 -7
- package/front_end/ui/legacy/components/quick_open/CommandMenu.ts +11 -1
- package/front_end/ui/visual_logging/KnownContextValues.ts +3 -0
- package/package.json +1 -1
- package/front_end/panels/sources/AiWarningInfobarPlugin.ts +0 -78
|
@@ -4,18 +4,18 @@
|
|
|
4
4
|
* found in the LICENSE file.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
font-family: var(--default-font-family);
|
|
9
|
-
}
|
|
10
|
-
|
|
7
|
+
devtools-button.add-locations-button:not(:first-child),
|
|
11
8
|
.add-locations-button {
|
|
12
9
|
margin-bottom: var(--sys-size-5);
|
|
13
10
|
border: none;
|
|
14
11
|
}
|
|
15
12
|
|
|
13
|
+
devtools-list.locations-list,
|
|
16
14
|
.locations-list {
|
|
17
15
|
margin-top: var(--sys-size-3);
|
|
18
16
|
flex: auto;
|
|
17
|
+
display: flex;
|
|
18
|
+
border: 1px solid var(--sys-color-divider);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.locations-list-item {
|
|
@@ -89,3 +89,77 @@
|
|
|
89
89
|
align-items: center;
|
|
90
90
|
gap: var(--sys-size-9);
|
|
91
91
|
}
|
|
92
|
+
|
|
93
|
+
.location-dialog-content {
|
|
94
|
+
padding: var(--sys-size-6);
|
|
95
|
+
display: flex;
|
|
96
|
+
flex-direction: column;
|
|
97
|
+
gap: var(--sys-size-6);
|
|
98
|
+
width: var(--sys-size-33);
|
|
99
|
+
min-width: var(--sys-size-33);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.editor-grid {
|
|
103
|
+
display: grid;
|
|
104
|
+
grid-template-columns: 1fr 1fr;
|
|
105
|
+
gap: var(--sys-size-5) var(--sys-size-6);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.editor-field-full-width {
|
|
109
|
+
grid-column: 1 / -1;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.editor-field {
|
|
113
|
+
display: flex;
|
|
114
|
+
flex-direction: column;
|
|
115
|
+
gap: var(--sys-size-2);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.editor-field-label {
|
|
119
|
+
color: var(--sys-color-on-surface);
|
|
120
|
+
font-size: var(--sys-size-6);
|
|
121
|
+
font-weight: var(--ref-typeface-weight-medium);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.editor-field input {
|
|
125
|
+
width: 100%;
|
|
126
|
+
box-sizing: border-box;
|
|
127
|
+
padding: var(--sys-size-3) var(--sys-size-4);
|
|
128
|
+
height: var(--sys-size-11);
|
|
129
|
+
border: var(--sys-size-1) solid var(--sys-color-neutral-outline);
|
|
130
|
+
border-radius: var(--sys-size-2);
|
|
131
|
+
outline: none;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.editor-field.has-error input {
|
|
135
|
+
border-color: var(--sys-color-error);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.editor-field-error {
|
|
139
|
+
color: var(--sys-color-error);
|
|
140
|
+
font-size: var(--sys-size-6);
|
|
141
|
+
overflow-wrap: break-word;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.dialog-buttons {
|
|
145
|
+
display: flex;
|
|
146
|
+
justify-content: flex-end;
|
|
147
|
+
gap: var(--sys-size-3);
|
|
148
|
+
margin-top: var(--sys-size-3);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.dialog-header {
|
|
152
|
+
display: flex;
|
|
153
|
+
justify-content: space-between;
|
|
154
|
+
align-items: center;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.dialog-title {
|
|
158
|
+
font-size: var(--sys-size-7);
|
|
159
|
+
font-weight: var(--ref-typeface-weight-medium);
|
|
160
|
+
color: var(--sys-color-on-surface);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.dialog-close-button {
|
|
164
|
+
flex-shrink: 0;
|
|
165
|
+
}
|
|
@@ -116,42 +116,25 @@ const UIStrings = {
|
|
|
116
116
|
/**
|
|
117
117
|
* @description Text describing the AI assistance feature.
|
|
118
118
|
*/
|
|
119
|
-
|
|
119
|
+
aiAssistanceDescription: 'Get context-aware help on the inspected page',
|
|
120
120
|
/**
|
|
121
|
-
* @description
|
|
122
|
-
*/
|
|
123
|
-
helpUnderstandStylingAndNetworkRequest: 'Get help with understanding CSS styles and network requests',
|
|
124
|
-
/**
|
|
125
|
-
* @description Text describing the AI assistance feature.
|
|
126
|
-
*/
|
|
127
|
-
helpUnderstandStylingNetworkAndFile: 'Get help with understanding CSS styles, network requests, and files',
|
|
128
|
-
/**
|
|
129
|
-
* @description Text describing the AI assistance feature.
|
|
130
|
-
*/
|
|
131
|
-
helpUnderstandStylingNetworkPerformanceAndFile:
|
|
132
|
-
'Get help with understanding CSS styles, network requests, performance, and files',
|
|
133
|
-
/**
|
|
134
|
-
* @description Text describing the AI assistance feature when V2 is enabled.
|
|
121
|
+
* @description First item in the description of the AI assistance feature.
|
|
135
122
|
*/
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* @description First item in the description of the AI assistance feature when V2 is enabled.
|
|
139
|
-
*/
|
|
140
|
-
aiAssistanceWhenOnItem1V2:
|
|
123
|
+
aiAssistanceWhenOnItem1:
|
|
141
124
|
'Debug styling, network, performance, source code, accessibility and storage issues with DevTools AI assistance',
|
|
142
125
|
/**
|
|
143
|
-
* @description Second item in the description of the AI assistance feature
|
|
126
|
+
* @description Second item in the description of the AI assistance feature.
|
|
144
127
|
*/
|
|
145
|
-
|
|
128
|
+
aiAssistanceWhenOnItem2: 'Follow the agent’s reasoning step-by-step and quickly jump to the relevant source data',
|
|
146
129
|
/**
|
|
147
|
-
* @description Explainer for which data is being sent by the AI assistance feature
|
|
130
|
+
* @description Explainer for which data is being sent by the AI assistance feature.
|
|
148
131
|
*/
|
|
149
|
-
|
|
132
|
+
aiAssistanceThingsToConsider:
|
|
150
133
|
'To generate explanations, chat messages, data accessible for this site via DevTools panels and Web APIs, and items you select such as network requests, files, and performance traces are sent to Google and may be seen by human reviewers to improve this feature. This is an experimental AI feature and won’t always get it right.',
|
|
151
134
|
/**
|
|
152
|
-
* @description Explainer for which data is being sent by the AI assistance feature when
|
|
135
|
+
* @description Explainer for which data is being sent by the AI assistance feature when logging is disabled.
|
|
153
136
|
*/
|
|
154
|
-
|
|
137
|
+
aiAssistanceThingsToConsiderNoLogging:
|
|
155
138
|
'To generate explanations, chat messages, data accessible for this site via DevTools panels and Web APIs, and items you select such as network requests, files, and performance traces are sent to Google. The content you submit and that is generated by this feature will not be used to improve Google’s AI models. This is an experimental AI feature and won’t always get it right.',
|
|
156
139
|
/**
|
|
157
140
|
* @description Text describing the code suggestions feature.
|
|
@@ -161,37 +144,6 @@ const UIStrings = {
|
|
|
161
144
|
* @description Text which is a hyperlink to more documentation.
|
|
162
145
|
*/
|
|
163
146
|
learnMore: 'Learn more',
|
|
164
|
-
/**
|
|
165
|
-
* @description Description of the AI assistance feature.
|
|
166
|
-
*/
|
|
167
|
-
explainStyling: 'Understand CSS styles with AI-powered insights',
|
|
168
|
-
/**
|
|
169
|
-
* @description Description of the AI assistance feature.
|
|
170
|
-
*/
|
|
171
|
-
explainStylingAndNetworkRequest: 'Understand CSS styles and network activity with AI-powered insights',
|
|
172
|
-
/**
|
|
173
|
-
* @description Description of the AI assistance feature.
|
|
174
|
-
*/
|
|
175
|
-
explainStylingNetworkAndFile: 'Understand CSS styles, network activity, and file origins with AI-powered insights',
|
|
176
|
-
/**
|
|
177
|
-
* @description Description of the AI assistance feature.
|
|
178
|
-
*/
|
|
179
|
-
explainStylingNetworkPerformanceAndFile:
|
|
180
|
-
'Understand CSS styles, network activity, performance bottlenecks, and file origins with AI-powered insights',
|
|
181
|
-
/**
|
|
182
|
-
* @description Description of the AI assistance feature.
|
|
183
|
-
*/
|
|
184
|
-
receiveStylingSuggestions: 'Improve your development workflow with contextual explanations and suggestions',
|
|
185
|
-
/**
|
|
186
|
-
* @description Explainer for which data is being sent by the AI assistance feature.
|
|
187
|
-
*/
|
|
188
|
-
freestylerSendsData:
|
|
189
|
-
'To generate explanations, your chat messages, any data the inspected page can see using Web APIs, and the items you select such as files, network requests, and performance traces are sent to Google. This data may be seen by human reviewers to improve this feature. Don’t use on pages with personal or sensitive information.',
|
|
190
|
-
/**
|
|
191
|
-
* @description Explainer for which data is being sent by the AI assistance feature without logging.
|
|
192
|
-
*/
|
|
193
|
-
freestylerSendsDataNoLogging:
|
|
194
|
-
'To generate explanations, your chat messages, any data the inspected page can see using Web APIs, and the items you select such as files, network requests, and performance traces are sent to Google. This data will not be used to improve Google’s AI models. Your organization may change these settings at any time.',
|
|
195
147
|
/**
|
|
196
148
|
* @description Explainer for which data is being sent by the AI-generated annotations feature.
|
|
197
149
|
*/
|
|
@@ -562,10 +514,9 @@ export class AISettingsTab extends UI.Widget.VBox {
|
|
|
562
514
|
}
|
|
563
515
|
|
|
564
516
|
if (this.#aiAssistanceSetting) {
|
|
565
|
-
const isV2 = Root.Runtime.hostConfig.devToolsAiAssistanceV2?.enabled;
|
|
566
517
|
const aiAssistanceData: AiSettingParams = {
|
|
567
|
-
settingName: i18n.i18n.lockedString(
|
|
568
|
-
|
|
518
|
+
settingName: i18n.i18n.lockedString(AiAssistanceModel.AiUtils.isGeminiBranding() ? 'Gemini in Chrome DevTools' :
|
|
519
|
+
'AI assistance'),
|
|
569
520
|
iconName: AiAssistanceModel.AiUtils.getIconName(),
|
|
570
521
|
settingDescription: this.#getAiAssistanceSettingDescription(),
|
|
571
522
|
enableSettingText: i18nString(UIStrings.enableAiAssistance),
|
|
@@ -573,16 +524,13 @@ export class AISettingsTab extends UI.Widget.VBox {
|
|
|
573
524
|
{iconName: 'info', text: this.#getAiAssistanceSettingInfo()},
|
|
574
525
|
{
|
|
575
526
|
iconName: 'pen-spark',
|
|
576
|
-
text:
|
|
577
|
-
i18nString(UIStrings.receiveStylingSuggestions),
|
|
527
|
+
text: i18nString(UIStrings.aiAssistanceWhenOnItem2),
|
|
578
528
|
},
|
|
579
529
|
],
|
|
580
530
|
toConsiderSettingItems: [{
|
|
581
531
|
iconName: 'google',
|
|
582
|
-
text:
|
|
583
|
-
|
|
584
|
-
(noLogging ? i18nString(UIStrings.freestylerSendsDataNoLogging) :
|
|
585
|
-
i18nString(UIStrings.freestylerSendsData)),
|
|
532
|
+
text: noLogging ? i18nString(UIStrings.aiAssistanceThingsToConsiderNoLogging) :
|
|
533
|
+
i18nString(UIStrings.aiAssistanceThingsToConsider),
|
|
586
534
|
}],
|
|
587
535
|
learnMoreLink: {
|
|
588
536
|
url: 'https://developer.chrome.com/docs/devtools/ai-assistance',
|
|
@@ -673,37 +621,11 @@ export class AISettingsTab extends UI.Widget.VBox {
|
|
|
673
621
|
}
|
|
674
622
|
|
|
675
623
|
#getAiAssistanceSettingDescription(): Platform.UIString.LocalizedString {
|
|
676
|
-
|
|
677
|
-
if (hostConfig.devToolsAiAssistanceV2?.enabled) {
|
|
678
|
-
return i18nString(UIStrings.aiAssistanceDescriptionV2);
|
|
679
|
-
}
|
|
680
|
-
if (hostConfig.devToolsAiAssistancePerformanceAgent?.enabled) {
|
|
681
|
-
return i18nString(UIStrings.helpUnderstandStylingNetworkPerformanceAndFile);
|
|
682
|
-
}
|
|
683
|
-
if (hostConfig.devToolsAiAssistanceFileAgent?.enabled) {
|
|
684
|
-
return i18nString(UIStrings.helpUnderstandStylingNetworkAndFile);
|
|
685
|
-
}
|
|
686
|
-
if (hostConfig.devToolsAiAssistanceNetworkAgent?.enabled) {
|
|
687
|
-
return i18nString(UIStrings.helpUnderstandStylingAndNetworkRequest);
|
|
688
|
-
}
|
|
689
|
-
return i18nString(UIStrings.helpUnderstandStyling);
|
|
624
|
+
return i18nString(UIStrings.aiAssistanceDescription);
|
|
690
625
|
}
|
|
691
626
|
|
|
692
627
|
#getAiAssistanceSettingInfo(): Platform.UIString.LocalizedString {
|
|
693
|
-
|
|
694
|
-
if (hostConfig.devToolsAiAssistanceV2?.enabled) {
|
|
695
|
-
return i18nString(UIStrings.aiAssistanceWhenOnItem1V2);
|
|
696
|
-
}
|
|
697
|
-
if (hostConfig.devToolsAiAssistancePerformanceAgent?.enabled) {
|
|
698
|
-
return i18nString(UIStrings.explainStylingNetworkPerformanceAndFile);
|
|
699
|
-
}
|
|
700
|
-
if (hostConfig.devToolsAiAssistanceFileAgent?.enabled) {
|
|
701
|
-
return i18nString(UIStrings.explainStylingNetworkAndFile);
|
|
702
|
-
}
|
|
703
|
-
if (hostConfig.devToolsAiAssistanceNetworkAgent?.enabled) {
|
|
704
|
-
return i18nString(UIStrings.explainStylingAndNetworkRequest);
|
|
705
|
-
}
|
|
706
|
-
return i18nString(UIStrings.explainStyling);
|
|
628
|
+
return i18nString(UIStrings.aiAssistanceWhenOnItem1);
|
|
707
629
|
}
|
|
708
630
|
|
|
709
631
|
#expandSetting(setting: Common.Settings.Setting<boolean>): void {
|
|
@@ -753,12 +675,7 @@ export class AISettingsTab extends UI.Widget.VBox {
|
|
|
753
675
|
void AiAssistanceModel.AiHistoryStorage.AiHistoryStorage.instance().deleteAll();
|
|
754
676
|
}
|
|
755
677
|
|
|
756
|
-
if (
|
|
757
|
-
// If the user turns on ai-assistance whilst on the V2 experiment, they
|
|
758
|
-
// do not need to see the opt-in change management dialog. This dialog
|
|
759
|
-
// exists to inform users who opted-in to "V1" that in "V2" there are
|
|
760
|
-
// some data access changes. But if a user opts-in when on "V2", they
|
|
761
|
-
// do not need to see that dialog.
|
|
678
|
+
if (setting.get()) {
|
|
762
679
|
Common.Settings.Settings.instance().moduleSetting('ai-assistance-v2-opt-in-change-dialog-seen').set(true);
|
|
763
680
|
}
|
|
764
681
|
}
|
|
@@ -14,12 +14,12 @@ import * as UI from '../../ui/legacy/legacy.js';
|
|
|
14
14
|
|
|
15
15
|
const UIStrings = {
|
|
16
16
|
/**
|
|
17
|
-
* @description Default snippet name when a new snippet is created in the Sources panel
|
|
17
|
+
* @description Default snippet name when a new snippet is created in the Sources panel.
|
|
18
18
|
* @example {1} PH1
|
|
19
19
|
*/
|
|
20
20
|
scriptSnippet: 'Script snippet #{PH1}',
|
|
21
21
|
/**
|
|
22
|
-
* @description Text to show something is linked to another
|
|
22
|
+
* @description Text to show something is linked to another.
|
|
23
23
|
* @example {example.url} PH1
|
|
24
24
|
*/
|
|
25
25
|
linkedTo: 'Linked to {PH1}',
|
|
@@ -14,19 +14,19 @@ import {evaluateScriptSnippet, findSnippetsProject} from './ScriptSnippetFileSys
|
|
|
14
14
|
|
|
15
15
|
const UIStrings = {
|
|
16
16
|
/**
|
|
17
|
-
* @description Text in Snippets Quick Open of the Sources panel when opening snippets
|
|
17
|
+
* @description Text in Snippets Quick Open of the Sources panel when opening snippets.
|
|
18
18
|
*/
|
|
19
19
|
noSnippetsFound: 'No snippets found.',
|
|
20
20
|
/**
|
|
21
|
-
* @description Text for command prefix of
|
|
21
|
+
* @description Text for command prefix of running a code snippet.
|
|
22
22
|
*/
|
|
23
23
|
run: 'Run',
|
|
24
24
|
/**
|
|
25
|
-
* @description Text for suggestion of
|
|
25
|
+
* @description Text for suggestion of running a code snippet.
|
|
26
26
|
*/
|
|
27
27
|
snippet: 'Snippet',
|
|
28
28
|
/**
|
|
29
|
-
* @description Text for help title of
|
|
29
|
+
* @description Text for help title of running a code snippet.
|
|
30
30
|
*/
|
|
31
31
|
runSnippet: 'Run snippet',
|
|
32
32
|
} as const;
|
|
@@ -13,15 +13,15 @@ import dialogStyles from './dialog.css.js';
|
|
|
13
13
|
|
|
14
14
|
const UIStrings = {
|
|
15
15
|
/**
|
|
16
|
-
* @description Text in Add
|
|
16
|
+
* @description Text in Add source map URL dialog of the Sources panel.
|
|
17
17
|
*/
|
|
18
18
|
sourceMapUrl: 'Source map URL: ',
|
|
19
19
|
/**
|
|
20
|
-
* @description Text in Add
|
|
20
|
+
* @description Text in Add debug info URL dialog of the Sources panel.
|
|
21
21
|
*/
|
|
22
22
|
debugInfoUrl: 'DWARF symbols URL: ',
|
|
23
23
|
/**
|
|
24
|
-
* @description Text to add something
|
|
24
|
+
* @description Text to add something.
|
|
25
25
|
*/
|
|
26
26
|
add: 'Add',
|
|
27
27
|
} as const;
|
|
@@ -59,7 +59,8 @@ export class AiCodeCompletionPlugin extends Plugin {
|
|
|
59
59
|
onSuggestionAccepted: this.#onAiCodeCompletionSuggestionAccepted.bind(this),
|
|
60
60
|
onRequestTriggered: this.#onAiRequestTriggered.bind(this),
|
|
61
61
|
onResponseReceived: this.#onAiResponseReceived.bind(this),
|
|
62
|
-
|
|
62
|
+
disclaimerTooltipId: DISCLAIMER_TOOLTIP_ID,
|
|
63
|
+
disclaimerTextVariant: 'sources',
|
|
63
64
|
};
|
|
64
65
|
this.#aiCodeCompletionProvider =
|
|
65
66
|
TextEditor.AiCodeCompletionProvider.AiCodeCompletionProvider.createInstance(this.aiCodeCompletionConfig);
|
|
@@ -105,7 +106,7 @@ export class AiCodeCompletionPlugin extends Plugin {
|
|
|
105
106
|
this.#aiCodeCompletionDisclaimer = new PanelCommon.AiCodeCompletionDisclaimer();
|
|
106
107
|
this.#aiCodeCompletionDisclaimer.disclaimerTooltipId = DISCLAIMER_TOOLTIP_ID;
|
|
107
108
|
this.#aiCodeCompletionDisclaimer.spinnerTooltipId = SPINNER_TOOLTIP_ID;
|
|
108
|
-
this.#aiCodeCompletionDisclaimer.
|
|
109
|
+
this.#aiCodeCompletionDisclaimer.disclaimerTextVariant = 'sources';
|
|
109
110
|
this.#aiCodeCompletionDisclaimer.show(this.#aiCodeCompletionDisclaimerContainer, undefined, true);
|
|
110
111
|
}
|
|
111
112
|
|
|
@@ -117,7 +118,7 @@ export class AiCodeCompletionPlugin extends Plugin {
|
|
|
117
118
|
new PanelCommon.AiCodeCompletionSummaryToolbar.AiCodeCompletionSummaryToolbar({
|
|
118
119
|
citationsTooltipId: CITATIONS_TOOLTIP_ID,
|
|
119
120
|
hasTopBorder: true,
|
|
120
|
-
|
|
121
|
+
disclaimerTextVariant: 'sources',
|
|
121
122
|
});
|
|
122
123
|
this.#aiCodeCompletionCitationsToolbar.show(this.#aiCodeCompletionCitationsToolbarContainer, undefined, true);
|
|
123
124
|
}
|
|
@@ -23,46 +23,46 @@ const {Direction} = TextEditor.TextEditorHistory;
|
|
|
23
23
|
|
|
24
24
|
const UIStrings = {
|
|
25
25
|
/**
|
|
26
|
-
* @description Screen reader label for a select box that chooses the breakpoint type in the Sources panel when editing a breakpoint
|
|
26
|
+
* @description Screen reader label for a select box that chooses the breakpoint type in the Sources panel when editing a breakpoint.
|
|
27
27
|
*/
|
|
28
28
|
breakpointType: 'Breakpoint type',
|
|
29
29
|
/**
|
|
30
|
-
* @description Text in Breakpoint
|
|
30
|
+
* @description Text in Breakpoint edit dialog of the Sources panel.
|
|
31
31
|
*/
|
|
32
32
|
breakpoint: 'Breakpoint',
|
|
33
33
|
/**
|
|
34
|
-
* @description Tooltip text in Breakpoint
|
|
34
|
+
* @description Tooltip text in Breakpoint edit dialog of the Sources panel that shows up when hovering over the close icon.
|
|
35
35
|
*/
|
|
36
36
|
closeDialog: 'Close edit dialog and save changes',
|
|
37
37
|
/**
|
|
38
|
-
* @description Text in Breakpoint
|
|
38
|
+
* @description Text in Breakpoint edit dialog of the Sources panel.
|
|
39
39
|
*/
|
|
40
40
|
conditionalBreakpoint: 'Conditional breakpoint',
|
|
41
41
|
/**
|
|
42
|
-
* @description Text in Breakpoint
|
|
42
|
+
* @description Text in Breakpoint edit dialog of the Sources panel.
|
|
43
43
|
*/
|
|
44
44
|
logpoint: 'Logpoint',
|
|
45
45
|
/**
|
|
46
|
-
* @description Text in Breakpoint
|
|
46
|
+
* @description Text in Breakpoint edit dialog of the Sources panel.
|
|
47
47
|
*/
|
|
48
48
|
expressionToCheckBeforePausingEg: 'Expression to check before pausing, e.g. x > 5',
|
|
49
49
|
/**
|
|
50
|
-
* @description Type selector element title in Breakpoint
|
|
50
|
+
* @description Type selector element title in Breakpoint edit dialog of the Sources panel.
|
|
51
51
|
*/
|
|
52
52
|
pauseOnlyWhenTheConditionIsTrue: 'Pause only when the condition is true',
|
|
53
53
|
/**
|
|
54
|
-
* @description Link text in the Breakpoint
|
|
54
|
+
* @description Link text in the Breakpoint edit dialog of the Sources panel.
|
|
55
55
|
*/
|
|
56
|
-
learnMoreOnBreakpointTypes: 'Learn more: Breakpoint
|
|
56
|
+
learnMoreOnBreakpointTypes: 'Learn more: Breakpoint types',
|
|
57
57
|
/**
|
|
58
|
-
* @description Text in Breakpoint
|
|
59
|
-
*the placeholder for a text input field before the user enters text. Provides the user with
|
|
60
|
-
*an example on how to use Logpoints. 'Log' is a verb and 'message' is a noun.
|
|
61
|
-
*See: https://developer.chrome.com/blog/new-in-devtools-73/#logpoints
|
|
58
|
+
* @description Text in Breakpoint edit dialog of the Sources panel. It is used as
|
|
59
|
+
* the placeholder for a text input field before the user enters text. Provides the user with
|
|
60
|
+
* an example on how to use Logpoints. 'Log' is a verb and 'message' is a noun.
|
|
61
|
+
* See: https://developer.chrome.com/blog/new-in-devtools-73/#logpoints
|
|
62
62
|
*/
|
|
63
63
|
logMessageEgXIsX: 'Log message, e.g. `\'x is\', x`',
|
|
64
64
|
/**
|
|
65
|
-
* @description Type selector element title in Breakpoint
|
|
65
|
+
* @description Type selector element title in Breakpoint edit dialog of the Sources panel.
|
|
66
66
|
*/
|
|
67
67
|
logAMessageToConsoleDoNotBreak: 'Log a message to Console, do not break',
|
|
68
68
|
} as const;
|
|
@@ -31,7 +31,7 @@ const UIStrings = {
|
|
|
31
31
|
*/
|
|
32
32
|
pauseOnUncaughtExceptions: 'Pause on uncaught exceptions',
|
|
33
33
|
/**
|
|
34
|
-
* @description Label for a checkbox to
|
|
34
|
+
* @description Label for a checkbox to toggle pausing on caught exceptions in the breakpoint sidebar of the Sources panel. When the checkbox is checked, DevTools will pause if an exception is thrown, but caught (handled) at runtime.
|
|
35
35
|
*/
|
|
36
36
|
pauseOnCaughtExceptions: 'Pause on caught exceptions',
|
|
37
37
|
/**
|
|
@@ -52,43 +52,43 @@ const UIStrings = {
|
|
|
52
52
|
*/
|
|
53
53
|
breakpointHit: '{PH1} breakpoint hit',
|
|
54
54
|
/**
|
|
55
|
-
* @description Tooltip text that shows when hovered over a remove button that appears next to a filename in the breakpoint sidebar of the
|
|
55
|
+
* @description Tooltip text that shows when hovered over a remove button that appears next to a filename in the breakpoint sidebar of the Sources panel. Also used in the context menu for breakpoint groups.
|
|
56
56
|
*/
|
|
57
57
|
removeAllBreakpointsInFile: 'Remove all breakpoints in file',
|
|
58
58
|
/**
|
|
59
|
-
* @description Context menu item in the
|
|
59
|
+
* @description Context menu item in the breakpoint sidebar of the Sources panel that disables all breakpoints in a file.
|
|
60
60
|
*/
|
|
61
61
|
disableAllBreakpointsInFile: 'Disable all breakpoints in file',
|
|
62
62
|
/**
|
|
63
|
-
* @description Context menu item in the
|
|
63
|
+
* @description Context menu item in the breakpoint sidebar of the Sources panel that enables all breakpoints in a file.
|
|
64
64
|
*/
|
|
65
65
|
enableAllBreakpointsInFile: 'Enable all breakpoints in file',
|
|
66
66
|
/**
|
|
67
|
-
* @description Tooltip text that shows when hovered over an edit button that appears next to a breakpoint or conditional breakpoint in the breakpoint sidebar of the
|
|
67
|
+
* @description Tooltip text that shows when hovered over an edit button that appears next to a breakpoint or conditional breakpoint in the breakpoint sidebar of the Sources panel.
|
|
68
68
|
*/
|
|
69
69
|
editCondition: 'Edit condition',
|
|
70
70
|
/**
|
|
71
|
-
* @description Tooltip text that shows when hovered over an edit button that appears next to a logpoint in the breakpoint sidebar of the
|
|
71
|
+
* @description Tooltip text that shows when hovered over an edit button that appears next to a logpoint in the breakpoint sidebar of the Sources panel.
|
|
72
72
|
*/
|
|
73
73
|
editLogpoint: 'Edit logpoint',
|
|
74
74
|
/**
|
|
75
|
-
* @description Context menu item in the
|
|
75
|
+
* @description Context menu item in the breakpoint sidebar of the Sources panel that disables all breakpoints.
|
|
76
76
|
*/
|
|
77
77
|
disableAllBreakpoints: 'Disable all breakpoints',
|
|
78
78
|
/**
|
|
79
|
-
* @description Context menu item in the
|
|
79
|
+
* @description Context menu item in the breakpoint sidebar of the Sources panel that enables all breakpoints.
|
|
80
80
|
*/
|
|
81
81
|
enableAllBreakpoints: 'Enable all breakpoints',
|
|
82
82
|
/**
|
|
83
|
-
* @description Tooltip text that shows when hovered over a remove button that appears next to a breakpoint in the breakpoint sidebar of the
|
|
83
|
+
* @description Tooltip text that shows when hovered over a remove button that appears next to a breakpoint in the breakpoint sidebar of the Sources panel. Also used in the context menu for breakpoint items.
|
|
84
84
|
*/
|
|
85
85
|
removeBreakpoint: 'Remove breakpoint',
|
|
86
86
|
/**
|
|
87
|
-
* @description Text to remove all breakpoints
|
|
87
|
+
* @description Text to remove all breakpoints.
|
|
88
88
|
*/
|
|
89
89
|
removeAllBreakpoints: 'Remove all breakpoints',
|
|
90
90
|
/**
|
|
91
|
-
* @description Text in
|
|
91
|
+
* @description Text in the breakpoint sidebar of the Sources panel.
|
|
92
92
|
*/
|
|
93
93
|
removeOtherBreakpoints: 'Remove other breakpoints',
|
|
94
94
|
/**
|
|
@@ -96,12 +96,12 @@ const UIStrings = {
|
|
|
96
96
|
*/
|
|
97
97
|
revealLocation: 'Reveal location',
|
|
98
98
|
/**
|
|
99
|
-
* @description Tooltip text that shows when hovered over a piece of code of a breakpoint in the breakpoint sidebar of the
|
|
99
|
+
* @description Tooltip text that shows when hovered over a piece of code of a breakpoint in the breakpoint sidebar of the Sources panel. It shows the condition, on which the breakpoint will stop.
|
|
100
100
|
* @example {x < 3} PH1
|
|
101
101
|
*/
|
|
102
102
|
conditionCode: 'Condition: {PH1}',
|
|
103
103
|
/**
|
|
104
|
-
* @description Tooltip text that shows when hovered over a piece of code of a breakpoint in the breakpoint sidebar of the
|
|
104
|
+
* @description Tooltip text that shows when hovered over a piece of code of a breakpoint in the breakpoint sidebar of the Sources panel. It shows what is going to be printed in the console, if execution hits this breakpoint.
|
|
105
105
|
* @example {'hello'} PH1
|
|
106
106
|
*/
|
|
107
107
|
logpointCode: 'Logpoint: {PH1}',
|
|
@@ -174,7 +174,7 @@ export class BreakpointsSidebarController implements UI.ContextFlavorListener.Co
|
|
|
174
174
|
this.#breakpointsActiveSetting.addChangeListener(this.update, this);
|
|
175
175
|
this.#pauseOnUncaughtExceptionSetting = settings.moduleSetting('pause-on-uncaught-exception');
|
|
176
176
|
this.#pauseOnUncaughtExceptionSetting.addChangeListener(this.update, this);
|
|
177
|
-
this.#pauseOnCaughtExceptionSetting = settings.
|
|
177
|
+
this.#pauseOnCaughtExceptionSetting = settings.resolve(SDK.SDKSettings.pauseOnCaughtExceptionSettingDescriptor);
|
|
178
178
|
this.#pauseOnCaughtExceptionSetting.addChangeListener(this.update, this);
|
|
179
179
|
}
|
|
180
180
|
|
|
@@ -48,11 +48,11 @@ import {QuickSourceView, SourcesPanel} from './SourcesPanel.js';
|
|
|
48
48
|
|
|
49
49
|
const UIStrings = {
|
|
50
50
|
/**
|
|
51
|
-
* @description Text in
|
|
51
|
+
* @description Text in the call stack sidebar of the Sources panel
|
|
52
52
|
*/
|
|
53
53
|
callStack: 'Call Stack',
|
|
54
54
|
/**
|
|
55
|
-
* @description Not paused message element text content in
|
|
55
|
+
* @description Not paused message element text content in the call stack sidebar of the Sources panel
|
|
56
56
|
*/
|
|
57
57
|
notPaused: 'Not paused',
|
|
58
58
|
/**
|
|
@@ -60,7 +60,7 @@ const UIStrings = {
|
|
|
60
60
|
*/
|
|
61
61
|
onIgnoreList: 'on ignore list',
|
|
62
62
|
/**
|
|
63
|
-
* @description Show all link text content in
|
|
63
|
+
* @description Show all link text content in the call stack sidebar of the Sources panel
|
|
64
64
|
*/
|
|
65
65
|
showIgnorelistedFrames: 'Show ignore-listed frames',
|
|
66
66
|
/**
|
|
@@ -68,11 +68,11 @@ const UIStrings = {
|
|
|
68
68
|
*/
|
|
69
69
|
showMore: 'Show more',
|
|
70
70
|
/**
|
|
71
|
-
* @description A context menu item in the
|
|
71
|
+
* @description A context menu item in the call stack sidebar of the Sources panel
|
|
72
72
|
*/
|
|
73
73
|
copyStackTrace: 'Copy stack trace',
|
|
74
74
|
/**
|
|
75
|
-
* @description Text in
|
|
75
|
+
* @description Text in the call stack sidebar of the Sources panel when some call frames have warnings
|
|
76
76
|
*/
|
|
77
77
|
callFrameWarnings: 'Some call frames have warnings',
|
|
78
78
|
/**
|
|
@@ -81,7 +81,7 @@ const UIStrings = {
|
|
|
81
81
|
*/
|
|
82
82
|
debugFileNotFound: 'Failed to load debug file "{PH1}".',
|
|
83
83
|
/**
|
|
84
|
-
* @description A context menu item in the
|
|
84
|
+
* @description A context menu item in the call stack sidebar pane. "Restart" is a verb and
|
|
85
85
|
* "frame" is a noun. "Frame" refers to an individual item in the call stack, i.e. a call frame.
|
|
86
86
|
* The user opens this context menu by selecting a specific call frame in the call stack sidebar pane.
|
|
87
87
|
*/
|
|
@@ -39,73 +39,73 @@ const UIStrings = {
|
|
|
39
39
|
*/
|
|
40
40
|
beforeSellerWorkletReportingStart: 'Seller Reporting Phase Start',
|
|
41
41
|
/**
|
|
42
|
-
* @description Text in the Event Listener Breakpoints
|
|
42
|
+
* @description Text in the Event Listener Breakpoints panel of the JavaScript Debugger in the Sources panel.
|
|
43
43
|
* @example {setTimeout} PH1
|
|
44
44
|
*/
|
|
45
45
|
setTimeoutOrIntervalFired: '{PH1} fired',
|
|
46
46
|
/**
|
|
47
|
-
* @description Text in the Event Listener Breakpoints
|
|
47
|
+
* @description Text in the Event Listener Breakpoints panel of the JavaScript Debugger in the Sources panel.
|
|
48
48
|
*/
|
|
49
49
|
scriptFirstStatement: 'Script First Statement',
|
|
50
50
|
/**
|
|
51
|
-
* @description Text in the Event Listener Breakpoints
|
|
51
|
+
* @description Text in the Event Listener Breakpoints panel of the JavaScript Debugger in the Sources panel.
|
|
52
52
|
*/
|
|
53
53
|
scriptBlockedByContentSecurity: 'Script Blocked by Content Security Policy',
|
|
54
54
|
/**
|
|
55
|
-
* @description Text for the request animation frame event
|
|
55
|
+
* @description Text for the request animation frame event.
|
|
56
56
|
*/
|
|
57
57
|
requestAnimationFrame: 'Request Animation Frame',
|
|
58
58
|
/**
|
|
59
|
-
* @description Text to cancel the animation frame
|
|
59
|
+
* @description Text to cancel the animation frame.
|
|
60
60
|
*/
|
|
61
61
|
cancelAnimationFrame: 'Cancel Animation Frame',
|
|
62
62
|
/**
|
|
63
|
-
* @description Text for the event that an animation frame is fired
|
|
63
|
+
* @description Text for the event that an animation frame is fired.
|
|
64
64
|
*/
|
|
65
65
|
animationFrameFired: 'Animation Frame Fired',
|
|
66
66
|
/**
|
|
67
|
-
* @description Text in the Event Listener Breakpoints
|
|
67
|
+
* @description Text in the Event Listener Breakpoints panel of the JavaScript Debugger in the Sources panel.
|
|
68
68
|
*/
|
|
69
69
|
webglErrorFired: 'WebGL Error Fired',
|
|
70
70
|
/**
|
|
71
|
-
* @description Text in the Event Listener Breakpoints
|
|
71
|
+
* @description Text in the Event Listener Breakpoints panel of the JavaScript Debugger in the Sources panel.
|
|
72
72
|
*/
|
|
73
73
|
webglWarningFired: 'WebGL Warning Fired',
|
|
74
74
|
/**
|
|
75
|
-
* @description Text in the Event Listener Breakpoints
|
|
75
|
+
* @description Text in the Event Listener Breakpoints panel of the JavaScript Debugger in the Sources panel.
|
|
76
76
|
*/
|
|
77
77
|
setInnerhtml: 'Set `innerHTML`',
|
|
78
78
|
/**
|
|
79
|
-
* @description Name of a breakpoint type in the Sources
|
|
79
|
+
* @description Name of a breakpoint type in the Sources panel.
|
|
80
80
|
*/
|
|
81
81
|
createCanvasContext: 'Create canvas context',
|
|
82
82
|
/**
|
|
83
|
-
* @description Name of a breakpoint type in the Sources
|
|
83
|
+
* @description Name of a breakpoint type in the Sources panel.
|
|
84
84
|
*/
|
|
85
85
|
createAudiocontext: 'Create `AudioContext`',
|
|
86
86
|
/**
|
|
87
|
-
* @description Name of a breakpoint type in the Sources
|
|
87
|
+
* @description Name of a breakpoint type in the Sources panel. Close is a verb.
|
|
88
88
|
*/
|
|
89
89
|
closeAudiocontext: 'Close `AudioContext`',
|
|
90
90
|
/**
|
|
91
|
-
* @description Name of a breakpoint type in the Sources
|
|
91
|
+
* @description Name of a breakpoint type in the Sources panel. Resume is a verb.
|
|
92
92
|
*/
|
|
93
93
|
resumeAudiocontext: 'Resume `AudioContext`',
|
|
94
94
|
/**
|
|
95
|
-
* @description Name of a breakpoint type in the Sources
|
|
95
|
+
* @description Name of a breakpoint type in the Sources panel.
|
|
96
96
|
*/
|
|
97
97
|
suspendAudiocontext: 'Suspend `AudioContext`',
|
|
98
98
|
/**
|
|
99
99
|
* @description Noun. Title for a checkbox that turns on breakpoints on Trusted Type sink violations.
|
|
100
100
|
* "Trusted Types" is a Web API. A "Sink" (Noun, singular) is a special function, akin to a data sink, that expects
|
|
101
101
|
* to receive data in a specific format. Should the data be in the wrong format, or something else
|
|
102
|
-
* go wrong,
|
|
102
|
+
* go wrong, it's called a "sink violation".
|
|
103
103
|
*/
|
|
104
|
-
sinkViolations: 'Sink
|
|
104
|
+
sinkViolations: 'Sink violations',
|
|
105
105
|
/**
|
|
106
|
-
* @description Title for a checkbox that turns on breakpoints on Trusted Type policy violations
|
|
106
|
+
* @description Title for a checkbox that turns on breakpoints on Trusted Type policy violations.
|
|
107
107
|
*/
|
|
108
|
-
policyViolations: 'Policy
|
|
108
|
+
policyViolations: 'Policy violations',
|
|
109
109
|
} as const;
|
|
110
110
|
const str_ = i18n.i18n.registerUIStrings('panels/sources/CategorizedBreakpointL10n.ts', UIStrings);
|
|
111
111
|
const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
|