chrome-devtools-frontend 1.0.1575174 → 1.0.1576287
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/.stylelintrc.json +1 -1
- package/front_end/core/host/AidaClient.ts +21 -0
- package/front_end/core/host/InspectorFrontendHostAPI.ts +2 -0
- package/front_end/core/sdk/CSSMatchedStyles.ts +27 -0
- package/front_end/core/sdk/NetworkManager.ts +3 -1
- package/front_end/core/sdk/NetworkRequest.ts +7 -0
- package/front_end/core/sdk/SourceMapScopesInfo.ts +2 -1
- package/front_end/entrypoints/main/MainImpl.ts +13 -7
- package/front_end/entrypoints/node_app/app/NodeConnectionsPanel.ts +3 -2
- package/front_end/generated/InspectorBackendCommands.ts +37 -0
- package/front_end/generated/SupportedCSSProperties.js +7 -0
- package/front_end/generated/protocol-mapping.d.ts +257 -0
- package/front_end/generated/protocol-proxy-api.d.ts +256 -0
- package/front_end/generated/protocol.ts +359 -0
- package/front_end/models/ai_assistance/AiConversation.ts +31 -10
- package/front_end/models/ai_assistance/AiHistoryStorage.ts +1 -0
- package/front_end/models/ai_assistance/agents/AiAgent.ts +35 -5
- package/front_end/models/ai_assistance/agents/ContextSelectionAgent.snapshot.txt +73 -0
- package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +141 -0
- package/front_end/models/ai_assistance/ai_assistance.ts +2 -0
- package/front_end/models/ai_code_generation/AiCodeGeneration.ts +6 -0
- package/front_end/models/javascript_metadata/NativeFunctions.js +9 -0
- package/front_end/models/live-metrics/LiveMetrics.ts +31 -51
- package/front_end/models/source_map_scopes/NamesResolver.ts +5 -8
- package/front_end/models/stack_trace/StackTrace.ts +2 -1
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +84 -6
- package/front_end/panels/ai_assistance/ai_assistance-meta.ts +1 -0
- package/front_end/panels/ai_assistance/components/ChatMessage.ts +6 -4
- package/front_end/panels/ai_assistance/components/ChatView.ts +5 -6
- package/front_end/panels/ai_assistance/components/chatView.css +10 -0
- package/front_end/panels/application/DeviceBoundSessionsTreeElement.ts +22 -1
- package/front_end/panels/application/DeviceBoundSessionsView.ts +44 -33
- package/front_end/panels/application/StorageView.ts +3 -3
- package/front_end/panels/application/deviceBoundSessionsView.css +1 -1
- package/front_end/panels/application/preloading/components/preloadingDisabledInfobar.css +1 -1
- package/front_end/panels/common/AiCodeGenerationUpgradeDialog.ts +12 -4
- package/front_end/panels/common/GeminiRebrandPromoDialog.ts +5 -5
- package/front_end/panels/common/aiCodeCompletionSummaryToolbar.css +1 -1
- package/front_end/panels/console/ConsoleContextSelector.ts +4 -3
- package/front_end/panels/elements/ElementsTreeElement.ts +2 -2
- package/front_end/panels/elements/StylePropertyTreeElement.ts +63 -0
- package/front_end/panels/elements/StylesSidebarPane.ts +17 -2
- package/front_end/panels/elements/stylePropertiesTreeOutline.css +4 -0
- package/front_end/panels/issues/AffectedMetadataAllowedSitesView.ts +3 -3
- package/front_end/panels/layer_viewer/Layers3DView.ts +2 -1
- package/front_end/panels/lighthouse/LighthouseStartView.ts +7 -6
- package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorPane.ts +3 -2
- package/front_end/panels/network/NetworkItemView.ts +32 -3
- package/front_end/panels/network/RequestConditionsDrawer.ts +2 -3
- package/front_end/panels/network/RequestDeviceBoundSessionsView.ts +160 -0
- package/front_end/panels/network/RequestPayloadView.ts +72 -97
- package/front_end/panels/network/SignedExchangeInfoView.ts +3 -4
- package/front_end/panels/network/components/HeaderSectionRow.css +1 -1
- package/front_end/panels/network/forward/UIRequestLocation.ts +1 -0
- package/front_end/panels/network/network.ts +3 -0
- package/front_end/panels/network/requestDeviceBoundSessionsView.css +14 -0
- package/front_end/panels/recorder/components/RecordingView.ts +2 -2
- package/front_end/panels/recorder/components/recordingView.css +5 -0
- package/front_end/panels/security/SecurityPanelSidebar.ts +10 -9
- package/front_end/panels/settings/AISettingsTab.ts +4 -3
- package/front_end/panels/settings/KeybindsSettingsTab.ts +3 -5
- package/front_end/panels/settings/SettingsScreen.ts +2 -3
- package/front_end/panels/sources/CallStackSidebarPane.ts +10 -0
- package/front_end/panels/sources/DebuggerPlugin.ts +18 -12
- package/front_end/panels/sources/ScopeChainSidebarPane.ts +4 -3
- package/front_end/panels/sources/SourcesNavigator.ts +2 -2
- package/front_end/panels/sources/SourcesPanel.ts +6 -3
- package/front_end/panels/sources/TabbedEditorContainer.ts +2 -2
- package/front_end/panels/sources/sources-meta.ts +2 -1
- package/front_end/panels/timeline/TimelinePanel.ts +2 -1
- package/front_end/panels/timeline/TimelineUIUtils.ts +2 -2
- package/front_end/panels/timeline/components/DetailsView.ts +7 -7
- package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +2 -2
- package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +11 -4
- package/front_end/panels/whats_new/releaseNoteView.css +1 -1
- package/front_end/panels/whats_new/resources/WNDT.md +1 -1
- 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/cjs/puppeteer/cdp/TargetManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.js +30 -25
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +30 -21
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.js +31 -26
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/package.json +3 -3
- package/front_end/third_party/puppeteer/package/src/cdp/TargetManager.ts +45 -44
- package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
- package/front_end/third_party/source-map-scopes-codec/README.chromium +2 -2
- package/front_end/third_party/source-map-scopes-codec/package/_dist/src/decode/decode.d.ts +2 -2
- package/front_end/third_party/source-map-scopes-codec/package/_dist/src/decode/decode.d.ts.map +1 -1
- package/front_end/third_party/source-map-scopes-codec/package/_dist/src/mod.d.ts +1 -1
- package/front_end/third_party/source-map-scopes-codec/package/_dist/src/mod.d.ts.map +1 -1
- package/front_end/third_party/source-map-scopes-codec/package/_dist/src/scopes.d.ts +9 -1
- package/front_end/third_party/source-map-scopes-codec/package/_dist/src/scopes.d.ts.map +1 -1
- package/front_end/third_party/source-map-scopes-codec/package/deno.json +8 -1
- package/front_end/third_party/source-map-scopes-codec/package/package.json +1 -1
- package/front_end/third_party/source-map-scopes-codec/package/src/decode/decode.js +20 -7
- package/front_end/third_party/source-map-scopes-codec/package/src/decode/decode.js.map +1 -1
- package/front_end/third_party/source-map-scopes-codec/package/src/decode/decode.ts +29 -9
- package/front_end/third_party/source-map-scopes-codec/package/src/mod.js.map +1 -1
- package/front_end/third_party/source-map-scopes-codec/package/src/mod.ts +1 -0
- package/front_end/third_party/source-map-scopes-codec/package/src/scopes.js +1 -1
- package/front_end/third_party/source-map-scopes-codec/package/src/scopes.ts +12 -1
- package/front_end/ui/components/buttons/Button.ts +2 -2
- package/front_end/ui/components/panel_feedback/PreviewToggle.ts +1 -1
- package/front_end/ui/components/panel_feedback/panelFeedback.css +1 -1
- package/front_end/ui/components/text_editor/AiCodeGenerationProvider.ts +37 -5
- package/front_end/ui/kit/link/Link.ts +31 -0
- package/front_end/ui/legacy/LinkContextMenuProvider.ts +3 -5
- package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +2 -2
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +336 -250
- package/front_end/ui/legacy/inspectorCommon.css +0 -1
- package/front_end/ui/legacy/legacy.ts +0 -4
- package/front_end/ui/visual_logging/KnownContextValues.ts +11 -0
- package/front_end/ui/visual_logging/LoggingDriver.ts +10 -6
- package/package.json +1 -1
- package/front_end/ui/legacy/XElement.ts +0 -41
- package/front_end/ui/legacy/XLink.ts +0 -128
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright 2021 The Chromium Authors
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
|
-
/* eslint-disable @devtools/no-imperative-dom-api */
|
|
4
|
+
/* eslint-disable @devtools/no-imperative-dom-api,@devtools/no-lit-render-outside-of-view */
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
7
|
* Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
|
|
@@ -44,11 +44,13 @@ import objectPropertiesSectionStyles from '../../ui/legacy/components/object_ui/
|
|
|
44
44
|
// eslint-disable-next-line @devtools/es-modules-import
|
|
45
45
|
import objectValueStyles from '../../ui/legacy/components/object_ui/objectValue.css.js';
|
|
46
46
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
47
|
+
import {Directives, html, type LitTemplate, render} from '../../ui/lit/lit.js';
|
|
47
48
|
import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
|
|
48
49
|
|
|
49
50
|
import requestPayloadTreeStyles from './requestPayloadTree.css.js';
|
|
50
51
|
import requestPayloadViewStyles from './requestPayloadView.css.js';
|
|
51
52
|
|
|
53
|
+
const {classMap} = Directives;
|
|
52
54
|
const UIStrings = {
|
|
53
55
|
/**
|
|
54
56
|
* @description A context menu item Payload View of the Network panel to copy a parsed value.
|
|
@@ -163,34 +165,6 @@ export class RequestPayloadView extends UI.Widget.VBox {
|
|
|
163
165
|
});
|
|
164
166
|
}
|
|
165
167
|
|
|
166
|
-
static formatParameter(value: string, className: string, decodeParameters: boolean): Element {
|
|
167
|
-
let errorDecoding = false;
|
|
168
|
-
|
|
169
|
-
if (decodeParameters) {
|
|
170
|
-
value = value.replace(/\+/g, ' ');
|
|
171
|
-
if (value.indexOf('%') >= 0) {
|
|
172
|
-
try {
|
|
173
|
-
value = decodeURIComponent(value);
|
|
174
|
-
} catch {
|
|
175
|
-
errorDecoding = true;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
const div = document.createElement('div');
|
|
180
|
-
if (className) {
|
|
181
|
-
div.className = className;
|
|
182
|
-
}
|
|
183
|
-
if (value === '') {
|
|
184
|
-
div.classList.add('empty-value');
|
|
185
|
-
}
|
|
186
|
-
if (errorDecoding) {
|
|
187
|
-
div.createChild('span', 'payload-decode-error').textContent = i18nString(UIStrings.unableToDecodeValue);
|
|
188
|
-
} else {
|
|
189
|
-
div.textContent = value;
|
|
190
|
-
}
|
|
191
|
-
return div;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
168
|
private refreshQueryString(): void {
|
|
195
169
|
const queryString = this.request.queryString();
|
|
196
170
|
const queryParameters = this.request.queryParameters;
|
|
@@ -270,35 +244,8 @@ export class RequestPayloadView extends UI.Widget.VBox {
|
|
|
270
244
|
private refreshParams(
|
|
271
245
|
title: string, params: SDK.NetworkRequest.NameValue[]|null, sourceText: string|null,
|
|
272
246
|
paramsTreeElement: UI.TreeOutline.TreeElement): void {
|
|
273
|
-
paramsTreeElement.removeChildren();
|
|
274
|
-
|
|
275
|
-
paramsTreeElement.listItemElement.removeChildren();
|
|
276
|
-
paramsTreeElement.listItemElement.createChild('div', 'selection fill');
|
|
277
|
-
UI.UIUtils.createTextChild(paramsTreeElement.listItemElement, title);
|
|
278
|
-
|
|
279
|
-
const payloadCount = document.createElement('span');
|
|
280
|
-
payloadCount.classList.add('payload-count');
|
|
281
|
-
const numberOfParams = params ? params.length : 0;
|
|
282
|
-
payloadCount.textContent = `\xA0(${numberOfParams})`;
|
|
283
|
-
paramsTreeElement.listItemElement.appendChild(payloadCount);
|
|
284
|
-
|
|
285
|
-
const shouldViewSource = viewSourceForItems.has(paramsTreeElement);
|
|
286
|
-
if (shouldViewSource) {
|
|
287
|
-
this.appendParamsSource(title, params, sourceText, paramsTreeElement);
|
|
288
|
-
} else {
|
|
289
|
-
this.appendParamsParsed(title, params, sourceText, paramsTreeElement);
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
private appendParamsSource(
|
|
294
|
-
title: string, params: SDK.NetworkRequest.NameValue[]|null, sourceText: string|null,
|
|
295
|
-
paramsTreeElement: UI.TreeOutline.TreeElement): void {
|
|
296
|
-
this.populateTreeElementWithSourceText(paramsTreeElement, sourceText);
|
|
297
|
-
|
|
298
|
-
const listItemElement = paramsTreeElement.listItemElement;
|
|
299
|
-
|
|
300
247
|
const viewParsed = function(this: RequestPayloadView, event: Event): void {
|
|
301
|
-
listItemElement.removeEventListener('contextmenu', viewParsedContextMenu);
|
|
248
|
+
paramsTreeElement.listItemElement.removeEventListener('contextmenu', viewParsedContextMenu);
|
|
302
249
|
|
|
303
250
|
viewSourceForItems.delete(paramsTreeElement);
|
|
304
251
|
this.refreshParams(title, params, sourceText, paramsTreeElement);
|
|
@@ -315,38 +262,8 @@ export class RequestPayloadView extends UI.Widget.VBox {
|
|
|
315
262
|
void contextMenu.show();
|
|
316
263
|
};
|
|
317
264
|
|
|
318
|
-
const viewParsedButton = this.createViewSourceToggle(/* viewSource */ true, viewParsed.bind(this));
|
|
319
|
-
listItemElement.appendChild(viewParsedButton);
|
|
320
|
-
|
|
321
|
-
listItemElement.addEventListener('contextmenu', viewParsedContextMenu);
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
private appendParamsParsed(
|
|
325
|
-
title: string, params: SDK.NetworkRequest.NameValue[]|null, sourceText: string|null,
|
|
326
|
-
paramsTreeElement: UI.TreeOutline.TreeElement): void {
|
|
327
|
-
for (const param of params || []) {
|
|
328
|
-
const paramNameValue = document.createDocumentFragment();
|
|
329
|
-
if (param.name !== '') {
|
|
330
|
-
const name = RequestPayloadView.formatParameter(param.name, 'payload-name', this.decodeRequestParameters);
|
|
331
|
-
const value =
|
|
332
|
-
RequestPayloadView.formatParameter(param.value, 'payload-value source-code', this.decodeRequestParameters);
|
|
333
|
-
paramNameValue.appendChild(name);
|
|
334
|
-
paramNameValue.appendChild(value);
|
|
335
|
-
} else {
|
|
336
|
-
paramNameValue.appendChild(RequestPayloadView.formatParameter(
|
|
337
|
-
i18nString(UIStrings.empty), 'empty-request-payload', this.decodeRequestParameters));
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
const paramTreeElement = new UI.TreeOutline.TreeElement(paramNameValue);
|
|
341
|
-
this.addEntryContextMenuHandler(
|
|
342
|
-
paramTreeElement, i18nString(UIStrings.copyValue), 'copy-value', () => decodeURIComponent(param.value));
|
|
343
|
-
paramsTreeElement.appendChild(paramTreeElement);
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
const listItemElement = paramsTreeElement.listItemElement;
|
|
347
|
-
|
|
348
265
|
const viewSource = function(this: RequestPayloadView, event: Event): void {
|
|
349
|
-
listItemElement.removeEventListener('contextmenu', viewSourceContextMenu);
|
|
266
|
+
paramsTreeElement.listItemElement.removeEventListener('contextmenu', viewSourceContextMenu);
|
|
350
267
|
|
|
351
268
|
viewSourceForItems.add(paramsTreeElement);
|
|
352
269
|
this.refreshParams(title, params, sourceText, paramsTreeElement);
|
|
@@ -354,7 +271,7 @@ export class RequestPayloadView extends UI.Widget.VBox {
|
|
|
354
271
|
};
|
|
355
272
|
|
|
356
273
|
const toggleURLDecoding = function(this: RequestPayloadView, event: Event): void {
|
|
357
|
-
listItemElement.removeEventListener('contextmenu', viewSourceContextMenu);
|
|
274
|
+
paramsTreeElement.listItemElement.removeEventListener('contextmenu', viewSourceContextMenu);
|
|
358
275
|
this.toggleURLDecoding(event);
|
|
359
276
|
};
|
|
360
277
|
|
|
@@ -372,16 +289,74 @@ export class RequestPayloadView extends UI.Widget.VBox {
|
|
|
372
289
|
void contextMenu.show();
|
|
373
290
|
};
|
|
374
291
|
|
|
375
|
-
const
|
|
376
|
-
|
|
292
|
+
const count = `\xA0(${params?.length ?? 0})`;
|
|
293
|
+
const shouldViewSource = viewSourceForItems.has(paramsTreeElement);
|
|
294
|
+
render(
|
|
295
|
+
html`<div class="selection fill"></div>${title}<span class=payload-count>${count}</span>${
|
|
296
|
+
shouldViewSource ? this.createViewSourceToggle(/* viewSource */ true, viewParsed.bind(this)) :
|
|
297
|
+
html`${this.createViewSourceToggle(/* viewSource */ false, viewSource.bind(this))}
|
|
298
|
+
<devtools-button
|
|
299
|
+
class=payload-toggle
|
|
300
|
+
jslogi=${VisualLogging.action().track({click: true}).context('decode-encode')}
|
|
301
|
+
.variant=${Buttons.Button.Variant.OUTLINED}
|
|
302
|
+
@click=${toggleURLDecoding.bind(this)}>
|
|
303
|
+
${this.decodeRequestParameters ? i18nString(UIStrings.viewUrlEncoded) : i18nString(UIStrings.viewDecoded)}
|
|
304
|
+
</devtools-button>`}`,
|
|
305
|
+
paramsTreeElement.listItemElement);
|
|
377
306
|
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
307
|
+
paramsTreeElement.removeChildren();
|
|
308
|
+
if (shouldViewSource) {
|
|
309
|
+
this.populateTreeElementWithSourceText(paramsTreeElement, sourceText);
|
|
310
|
+
paramsTreeElement.listItemElement.addEventListener('contextmenu', viewParsedContextMenu);
|
|
311
|
+
} else {
|
|
312
|
+
this.populateTreeElementWithParsedParameters(paramsTreeElement, params);
|
|
313
|
+
paramsTreeElement.listItemElement.addEventListener('contextmenu', viewSourceContextMenu);
|
|
314
|
+
}
|
|
315
|
+
}
|
|
383
316
|
|
|
384
|
-
|
|
317
|
+
static formatParameter(value: string, className: string, decodeParameters: boolean): LitTemplate {
|
|
318
|
+
let errorDecoding = false;
|
|
319
|
+
|
|
320
|
+
if (decodeParameters) {
|
|
321
|
+
value = value.replace(/\+/g, ' ');
|
|
322
|
+
if (value.indexOf('%') >= 0) {
|
|
323
|
+
try {
|
|
324
|
+
value = decodeURIComponent(value);
|
|
325
|
+
} catch {
|
|
326
|
+
errorDecoding = true;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
const classes = classMap({[className]: !!className, 'empty-value': value === ''});
|
|
331
|
+
return html`<div class=${classes}>
|
|
332
|
+
${
|
|
333
|
+
errorDecoding ? html`<span class=payload-decode-error>${i18nString(UIStrings.unableToDecodeValue)}</span>` :
|
|
334
|
+
value}
|
|
335
|
+
</div>`;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
private populateTreeElementWithParsedParameters(
|
|
339
|
+
paramsTreeElement: UI.TreeOutline.TreeElement, params: SDK.NetworkRequest.NameValue[]|null): void {
|
|
340
|
+
for (const param of params || []) {
|
|
341
|
+
const paramNameValue = document.createDocumentFragment();
|
|
342
|
+
if (param.name !== '') {
|
|
343
|
+
render(
|
|
344
|
+
html`${RequestPayloadView.formatParameter(param.name, 'payload-name', this.decodeRequestParameters)}${
|
|
345
|
+
RequestPayloadView.formatParameter(
|
|
346
|
+
param.value, 'payload-value source-code', this.decodeRequestParameters)}`,
|
|
347
|
+
paramNameValue);
|
|
348
|
+
} else {
|
|
349
|
+
render(
|
|
350
|
+
RequestPayloadView.formatParameter(
|
|
351
|
+
i18nString(UIStrings.empty), 'empty-request-payload', this.decodeRequestParameters),
|
|
352
|
+
paramNameValue);
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
const paramTreeElement = new UI.TreeOutline.TreeElement(paramNameValue);
|
|
356
|
+
this.addEntryContextMenuHandler(
|
|
357
|
+
paramTreeElement, i18nString(UIStrings.copyValue), 'copy-value', () => decodeURIComponent(param.value));
|
|
358
|
+
paramsTreeElement.appendChild(paramTreeElement);
|
|
359
|
+
}
|
|
385
360
|
}
|
|
386
361
|
|
|
387
362
|
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration)
|
|
@@ -7,7 +7,7 @@ import * as Host from '../../core/host/host.js';
|
|
|
7
7
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
8
8
|
import type * as SDK from '../../core/sdk/sdk.js';
|
|
9
9
|
import * as Protocol from '../../generated/protocol.js';
|
|
10
|
-
import {Icon} from '../../ui/kit/kit.js';
|
|
10
|
+
import {Icon, Link} from '../../ui/kit/kit.js';
|
|
11
11
|
import * as Components from '../../ui/legacy/components/utils/utils.js';
|
|
12
12
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
13
13
|
|
|
@@ -146,9 +146,8 @@ export class SignedExchangeInfoView extends UI.Widget.VBox {
|
|
|
146
146
|
|
|
147
147
|
const titleElement = document.createDocumentFragment();
|
|
148
148
|
titleElement.createChild('div', 'header-name').textContent = i18nString(UIStrings.signedHttpExchange);
|
|
149
|
-
const learnMoreNode =
|
|
150
|
-
'https://github.com/WICG/webpackage', i18nString(UIStrings.learnmore), 'header-toggle',
|
|
151
|
-
'learn-more');
|
|
149
|
+
const learnMoreNode = Link.create(
|
|
150
|
+
'https://github.com/WICG/webpackage', i18nString(UIStrings.learnmore), 'header-toggle', 'learn-more');
|
|
152
151
|
titleElement.appendChild(learnMoreNode);
|
|
153
152
|
const headerCategory = new Category(root, titleElement);
|
|
154
153
|
if (signedExchangeInfo.header) {
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import './BinaryResourceView.js';
|
|
6
6
|
import './RequestConditionsDrawer.js';
|
|
7
|
+
import './RequestDeviceBoundSessionsView.js';
|
|
7
8
|
import './EventSourceMessagesView.js';
|
|
8
9
|
import './NetworkConfigView.js';
|
|
9
10
|
import './NetworkDataGridNode.js';
|
|
@@ -42,6 +43,7 @@ import * as NetworkSearchScope from './NetworkSearchScope.js';
|
|
|
42
43
|
import * as NetworkWaterfallColumn from './NetworkWaterfallColumn.js';
|
|
43
44
|
import * as RequestConditionsDrawer from './RequestConditionsDrawer.js';
|
|
44
45
|
import * as RequestCookiesView from './RequestCookiesView.js';
|
|
46
|
+
import * as RequestDeviceBoundSessionsView from './RequestDeviceBoundSessionsView.js';
|
|
45
47
|
import * as RequestHTMLView from './RequestHTMLView.js';
|
|
46
48
|
import * as RequestInitiatorView from './RequestInitiatorView.js';
|
|
47
49
|
import * as RequestPayloadView from './RequestPayloadView.js';
|
|
@@ -68,6 +70,7 @@ export {
|
|
|
68
70
|
NetworkWaterfallColumn,
|
|
69
71
|
RequestConditionsDrawer,
|
|
70
72
|
RequestCookiesView,
|
|
73
|
+
RequestDeviceBoundSessionsView,
|
|
71
74
|
RequestHTMLView,
|
|
72
75
|
RequestInitiatorView,
|
|
73
76
|
RequestPayloadView,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026 The Chromium Authors
|
|
3
|
+
* Use of this source code is governed by a BSD-style license that can be
|
|
4
|
+
* found in the LICENSE file.
|
|
5
|
+
*/
|
|
6
|
+
.request-device-bound-sessions-view {
|
|
7
|
+
margin: 20px;
|
|
8
|
+
overflow-y: auto;
|
|
9
|
+
scroll-behavior: smooth;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.device-bound-session-grid-wrapper devtools-data-grid {
|
|
13
|
+
display: block;
|
|
14
|
+
}
|
|
@@ -454,7 +454,7 @@ function renderTextEditor(input: ViewInput, output: ViewOutput): Lit.TemplateRes
|
|
|
454
454
|
// clang-format off
|
|
455
455
|
return html`
|
|
456
456
|
<div class="text-editor" jslog=${VisualLogging.textField().track({change: true})}>
|
|
457
|
-
<devtools-text-editor .state=${input.editorState} ${Lit.Directives.ref(
|
|
457
|
+
<devtools-text-editor .state=${input.editorState} ${Lit.Directives.ref(editor => {
|
|
458
458
|
if (!editor || !(editor instanceof TextEditor.TextEditor.TextEditor)) {
|
|
459
459
|
return;
|
|
460
460
|
}
|
|
@@ -645,7 +645,7 @@ function renderSections(input: ViewInput): Lit.LitTemplate {
|
|
|
645
645
|
)}
|
|
646
646
|
</div>
|
|
647
647
|
`;
|
|
648
|
-
|
|
648
|
+
// clang-format on
|
|
649
649
|
}
|
|
650
650
|
|
|
651
651
|
function renderHeader(input: ViewInput): Lit.LitTemplate {
|
|
@@ -323,18 +323,19 @@ export class SecurityPanelSidebar extends UI.Widget.VBox {
|
|
|
323
323
|
const icon = isOverviewElement ?
|
|
324
324
|
getSecurityStateIconForOverview(securityState, `lock-icon lock-icon-${securityState}`) :
|
|
325
325
|
getSecurityStateIconForDetailedView(securityState, `security-property security-property-${securityState}`);
|
|
326
|
-
const elementTitle = isOverviewElement ? ((): Element => {
|
|
327
|
-
const title = document.createElement('span');
|
|
328
|
-
title.classList.add('title');
|
|
329
|
-
title.textContent = i18nString(UIStrings.overview);
|
|
330
|
-
return title;
|
|
331
|
-
})() : createHighlightedUrl(element.origin() ?? Platform.DevToolsPath.EmptyUrlString, securityState);
|
|
332
326
|
|
|
333
327
|
element.setLeadingIcons([icon]);
|
|
334
|
-
|
|
335
|
-
|
|
328
|
+
|
|
329
|
+
if (isOverviewElement) {
|
|
330
|
+
element.title = i18nString(UIStrings.overview);
|
|
331
|
+
} else {
|
|
332
|
+
const elementTitle =
|
|
333
|
+
createHighlightedUrl(element.origin() ?? Platform.DevToolsPath.EmptyUrlString, securityState);
|
|
334
|
+
if (element.listItemElement.lastChild) {
|
|
335
|
+
element.listItemElement.removeChild(element.listItemElement.lastChild);
|
|
336
|
+
}
|
|
337
|
+
element.listItemElement.appendChild(elementTitle);
|
|
336
338
|
}
|
|
337
|
-
element.listItemElement.appendChild(elementTitle);
|
|
338
339
|
}
|
|
339
340
|
}
|
|
340
341
|
}
|
|
@@ -154,12 +154,12 @@ const UIStrings = {
|
|
|
154
154
|
* @description Explainer for which data is being sent by the AI assistance feature
|
|
155
155
|
*/
|
|
156
156
|
freestylerSendsData:
|
|
157
|
-
'To generate explanations,
|
|
157
|
+
'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.',
|
|
158
158
|
/**
|
|
159
159
|
* @description Explainer for which data is being sent by the AI assistance feature
|
|
160
160
|
*/
|
|
161
161
|
freestylerSendsDataNoLogging:
|
|
162
|
-
'To generate explanations,
|
|
162
|
+
'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.',
|
|
163
163
|
/**
|
|
164
164
|
* @description Explainer for which data is being sent by the AI generated annotations feature
|
|
165
165
|
*/
|
|
@@ -482,7 +482,8 @@ export class AISettingsTab extends UI.Widget.VBox {
|
|
|
482
482
|
|
|
483
483
|
if (this.#aiAssistanceSetting) {
|
|
484
484
|
const aiAssistanceData: AiSettingParams = {
|
|
485
|
-
settingName: i18n.i18n.lockedString(
|
|
485
|
+
settingName: i18n.i18n.lockedString(
|
|
486
|
+
AiAssistanceModel.AiUtils.isGeminiBranding() ? 'Gemini in Chrome DevTools' : 'AI assistance'),
|
|
486
487
|
iconName: AiAssistanceModel.AiUtils.getIconName(),
|
|
487
488
|
settingDescription: this.#getAiAssistanceSettingDescription(),
|
|
488
489
|
enableSettingText: i18nString(UIStrings.enableAiAssistance),
|
|
@@ -3,14 +3,12 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
/* eslint-disable @devtools/no-imperative-dom-api */
|
|
5
5
|
|
|
6
|
-
import '../../ui/kit/kit.js';
|
|
7
|
-
|
|
8
6
|
import * as Common from '../../core/common/common.js';
|
|
9
7
|
import * as Host from '../../core/host/host.js';
|
|
10
8
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
11
9
|
import * as Platform from '../../core/platform/platform.js';
|
|
12
10
|
import * as Buttons from '../../ui/components/buttons/buttons.js';
|
|
13
|
-
import {createIcon, type Icon} from '../../ui/kit/kit.js';
|
|
11
|
+
import {createIcon, type Icon, Link} from '../../ui/kit/kit.js';
|
|
14
12
|
import * as SettingsUI from '../../ui/legacy/components/settings_ui/settings_ui.js';
|
|
15
13
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
16
14
|
import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
|
|
@@ -146,9 +144,9 @@ export class KeybindsSettingsTab extends UI.Widget.VBox implements UI.ListContro
|
|
|
146
144
|
UI.ARIAUtils.setLabel(this.list.element, i18nString(UIStrings.keyboardShortcutsList));
|
|
147
145
|
const footer = document.createElement('div');
|
|
148
146
|
footer.classList.add('keybinds-footer');
|
|
149
|
-
const docsLink =
|
|
147
|
+
const docsLink = Link.create(
|
|
150
148
|
'https://developer.chrome.com/docs/devtools/shortcuts/', i18nString(UIStrings.FullListOfDevtoolsKeyboard),
|
|
151
|
-
undefined,
|
|
149
|
+
undefined, 'learn-more');
|
|
152
150
|
docsLink.classList.add('docs-link');
|
|
153
151
|
footer.appendChild(docsLink);
|
|
154
152
|
const restoreDefaultShortcutsButton =
|
|
@@ -14,7 +14,7 @@ import * as Root from '../../core/root/root.js';
|
|
|
14
14
|
import * as GreenDev from '../../models/greendev/greendev.js';
|
|
15
15
|
import * as Buttons from '../../ui/components/buttons/buttons.js';
|
|
16
16
|
import * as UIHelpers from '../../ui/helpers/helpers.js';
|
|
17
|
-
import {type Card, createIcon} from '../../ui/kit/kit.js';
|
|
17
|
+
import {type Card, createIcon, Link} from '../../ui/kit/kit.js';
|
|
18
18
|
import * as SettingsUI from '../../ui/legacy/components/settings_ui/settings_ui.js';
|
|
19
19
|
import * as Components from '../../ui/legacy/components/utils/utils.js';
|
|
20
20
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
@@ -491,8 +491,7 @@ export class ExperimentsSettingsTab extends UI.Widget.VBox implements SettingsTa
|
|
|
491
491
|
}
|
|
492
492
|
|
|
493
493
|
if (experiment.feedbackLink) {
|
|
494
|
-
const link =
|
|
495
|
-
experiment.feedbackLink, undefined, undefined, undefined, `${experiment.name}-feedback`);
|
|
494
|
+
const link = Link.create(experiment.feedbackLink, undefined, undefined, `${experiment.name}-feedback`);
|
|
496
495
|
link.textContent = i18nString(UIStrings.sendFeedback);
|
|
497
496
|
link.classList.add('feedback-link');
|
|
498
497
|
|
|
@@ -38,6 +38,7 @@ import type * as Protocol from '../../generated/protocol.js';
|
|
|
38
38
|
import * as Bindings from '../../models/bindings/bindings.js';
|
|
39
39
|
import * as Persistence from '../../models/persistence/persistence.js';
|
|
40
40
|
import * as SourceMapScopes from '../../models/source_map_scopes/source_map_scopes.js';
|
|
41
|
+
import * as StackTrace from '../../models/stack_trace/stack_trace.js';
|
|
41
42
|
import * as Workspace from '../../models/workspace/workspace.js';
|
|
42
43
|
import {Icon} from '../../ui/kit/kit.js';
|
|
43
44
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
@@ -243,6 +244,7 @@ export class CallStackSidebarPane extends UI.View.SimpleView implements UI.Conte
|
|
|
243
244
|
this.showMoreMessageElement.classList.add('hidden');
|
|
244
245
|
this.items.replaceAll([]);
|
|
245
246
|
UI.Context.Context.instance().setFlavor(SDK.DebuggerModel.CallFrame, null);
|
|
247
|
+
UI.Context.Context.instance().setFlavor(StackTrace.StackTrace.DebuggableFrameFlavor, null);
|
|
246
248
|
return;
|
|
247
249
|
}
|
|
248
250
|
|
|
@@ -432,6 +434,14 @@ export class CallStackSidebarPane extends UI.View.SimpleView implements UI.Conte
|
|
|
432
434
|
if (debuggerCallFrame && oldItem !== item) {
|
|
433
435
|
debuggerCallFrame.debuggerModel.setSelectedCallFrame(debuggerCallFrame);
|
|
434
436
|
UI.Context.Context.instance().setFlavor(SDK.DebuggerModel.CallFrame, debuggerCallFrame);
|
|
437
|
+
UI.Context.Context.instance().setFlavor(
|
|
438
|
+
StackTrace.StackTrace.DebuggableFrameFlavor,
|
|
439
|
+
StackTrace.StackTrace.DebuggableFrameFlavor.for({
|
|
440
|
+
uiSourceCode: item.uiLocation?.uiSourceCode,
|
|
441
|
+
line: uiLocation.lineNumber,
|
|
442
|
+
column: uiLocation.columnNumber ?? -1,
|
|
443
|
+
sdkFrame: debuggerCallFrame,
|
|
444
|
+
}));
|
|
435
445
|
if (oldItem) {
|
|
436
446
|
this.refreshItem(oldItem);
|
|
437
447
|
}
|
|
@@ -15,6 +15,7 @@ import * as Bindings from '../../models/bindings/bindings.js';
|
|
|
15
15
|
import * as Breakpoints from '../../models/breakpoints/breakpoints.js';
|
|
16
16
|
import * as Formatter from '../../models/formatter/formatter.js';
|
|
17
17
|
import * as SourceMapScopes from '../../models/source_map_scopes/source_map_scopes.js';
|
|
18
|
+
import * as StackTrace from '../../models/stack_trace/stack_trace.js';
|
|
18
19
|
import * as TextUtils from '../../models/text_utils/text_utils.js';
|
|
19
20
|
import * as Workspace from '../../models/workspace/workspace.js';
|
|
20
21
|
import * as CodeMirror from '../../third_party/codemirror.next/codemirror.next.js';
|
|
@@ -249,7 +250,8 @@ export class DebuggerPlugin extends Plugin {
|
|
|
249
250
|
this.ignoreListCallback = this.showIgnoreListInfobarIfNeeded.bind(this);
|
|
250
251
|
Workspace.IgnoreListManager.IgnoreListManager.instance().addChangeListener(this.ignoreListCallback);
|
|
251
252
|
|
|
252
|
-
UI.Context.Context.instance().addFlavorChangeListener(
|
|
253
|
+
UI.Context.Context.instance().addFlavorChangeListener(
|
|
254
|
+
StackTrace.StackTrace.DebuggableFrameFlavor, this.callFrameChanged, this);
|
|
253
255
|
this.liveLocationPool = new Bindings.LiveLocation.LiveLocationPool();
|
|
254
256
|
|
|
255
257
|
this.updateScriptFiles();
|
|
@@ -649,11 +651,11 @@ export class DebuggerPlugin extends Plugin {
|
|
|
649
651
|
return null;
|
|
650
652
|
}
|
|
651
653
|
|
|
652
|
-
const
|
|
653
|
-
|
|
654
|
-
if (!selectedCallFrame) {
|
|
654
|
+
const debuggableFrame = UI.Context.Context.instance().flavor(StackTrace.StackTrace.DebuggableFrameFlavor);
|
|
655
|
+
if (!debuggableFrame) {
|
|
655
656
|
return null;
|
|
656
657
|
}
|
|
658
|
+
const selectedCallFrame = debuggableFrame.sdkFrame;
|
|
657
659
|
|
|
658
660
|
let textPosition = editor.editor.posAtCoords(event);
|
|
659
661
|
if (!textPosition) {
|
|
@@ -729,8 +731,9 @@ export class DebuggerPlugin extends Plugin {
|
|
|
729
731
|
}
|
|
730
732
|
objectPopoverHelper =
|
|
731
733
|
await ObjectUI.ObjectPopoverHelper.ObjectPopoverHelper.buildObjectPopover(result.object, popover);
|
|
732
|
-
const potentiallyUpdatedCallFrame =
|
|
733
|
-
|
|
734
|
+
const potentiallyUpdatedCallFrame =
|
|
735
|
+
UI.Context.Context.instance().flavor(StackTrace.StackTrace.DebuggableFrameFlavor);
|
|
736
|
+
if (!objectPopoverHelper || debuggableFrame !== potentiallyUpdatedCallFrame) {
|
|
734
737
|
debuggerModel.runtimeModel().releaseObjectGroup('popover');
|
|
735
738
|
if (objectPopoverHelper) {
|
|
736
739
|
objectPopoverHelper.dispose();
|
|
@@ -988,10 +991,11 @@ export class DebuggerPlugin extends Plugin {
|
|
|
988
991
|
if (!executionContext) {
|
|
989
992
|
return null;
|
|
990
993
|
}
|
|
991
|
-
const
|
|
992
|
-
if (!
|
|
994
|
+
const debuggableFrame = UI.Context.Context.instance().flavor(StackTrace.StackTrace.DebuggableFrameFlavor);
|
|
995
|
+
if (!debuggableFrame) {
|
|
993
996
|
return null;
|
|
994
997
|
}
|
|
998
|
+
const callFrame = debuggableFrame.sdkFrame;
|
|
995
999
|
const url = this.uiSourceCode.url();
|
|
996
1000
|
|
|
997
1001
|
const rawLocationToEditorOffset: (location: SDK.DebuggerModel.Location|null) => Promise<number|null> = location =>
|
|
@@ -1058,10 +1062,11 @@ export class DebuggerPlugin extends Plugin {
|
|
|
1058
1062
|
if (!executionContext || !this.editor) {
|
|
1059
1063
|
return;
|
|
1060
1064
|
}
|
|
1061
|
-
const
|
|
1062
|
-
if (!
|
|
1065
|
+
const debuggableFrame = UI.Context.Context.instance().flavor(StackTrace.StackTrace.DebuggableFrameFlavor);
|
|
1066
|
+
if (!debuggableFrame) {
|
|
1063
1067
|
return;
|
|
1064
1068
|
}
|
|
1069
|
+
const callFrame = debuggableFrame.sdkFrame;
|
|
1065
1070
|
const start = callFrame.functionLocation() || callFrame.location();
|
|
1066
1071
|
const debuggerModel = callFrame.debuggerModel;
|
|
1067
1072
|
|
|
@@ -1651,10 +1656,11 @@ export class DebuggerPlugin extends Plugin {
|
|
|
1651
1656
|
|
|
1652
1657
|
private async callFrameChanged(): Promise<void> {
|
|
1653
1658
|
this.liveLocationPool.disposeAll();
|
|
1654
|
-
const
|
|
1655
|
-
if (!
|
|
1659
|
+
const debuggableFrame = UI.Context.Context.instance().flavor(StackTrace.StackTrace.DebuggableFrameFlavor);
|
|
1660
|
+
if (!debuggableFrame) {
|
|
1656
1661
|
this.setExecutionLocation(null);
|
|
1657
1662
|
} else {
|
|
1663
|
+
const callFrame = debuggableFrame.sdkFrame;
|
|
1658
1664
|
await Bindings.DebuggerWorkspaceBinding.DebuggerWorkspaceBinding.instance().createCallFrameLiveLocation(
|
|
1659
1665
|
callFrame.location(), async (liveLocation: Bindings.LiveLocation.LiveLocation) => {
|
|
1660
1666
|
const uiLocation = await liveLocation.uiLocation();
|
|
@@ -34,6 +34,7 @@ import * as i18n from '../../core/i18n/i18n.js';
|
|
|
34
34
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
35
35
|
import * as Protocol from '../../generated/protocol.js';
|
|
36
36
|
import * as SourceMapScopes from '../../models/source_map_scopes/source_map_scopes.js';
|
|
37
|
+
import * as StackTrace from '../../models/stack_trace/stack_trace.js';
|
|
37
38
|
import * as ObjectUI from '../../ui/legacy/components/object_ui/object_ui.js';
|
|
38
39
|
import * as Components from '../../ui/legacy/components/utils/utils.js';
|
|
39
40
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
@@ -93,7 +94,7 @@ export class ScopeChainSidebarPane extends UI.Widget.VBox implements UI.ContextF
|
|
|
93
94
|
this.infoElement = document.createElement('div');
|
|
94
95
|
this.infoElement.className = 'gray-info-message';
|
|
95
96
|
this.infoElement.tabIndex = -1;
|
|
96
|
-
this.flavorChanged(UI.Context.Context.instance().flavor(
|
|
97
|
+
this.flavorChanged(UI.Context.Context.instance().flavor(StackTrace.StackTrace.DebuggableFrameFlavor));
|
|
97
98
|
}
|
|
98
99
|
|
|
99
100
|
static instance(): ScopeChainSidebarPane {
|
|
@@ -103,7 +104,7 @@ export class ScopeChainSidebarPane extends UI.Widget.VBox implements UI.ContextF
|
|
|
103
104
|
return scopeChainSidebarPaneInstance;
|
|
104
105
|
}
|
|
105
106
|
|
|
106
|
-
flavorChanged(callFrame:
|
|
107
|
+
flavorChanged(callFrame: StackTrace.StackTrace.DebuggableFrameFlavor|null): void {
|
|
107
108
|
this.#scopeChainModel?.dispose();
|
|
108
109
|
this.#scopeChainModel = null;
|
|
109
110
|
|
|
@@ -116,7 +117,7 @@ export class ScopeChainSidebarPane extends UI.Widget.VBox implements UI.ContextF
|
|
|
116
117
|
// is happening (see https://crbug.com/1162416).
|
|
117
118
|
this.infoElement.textContent = i18nString(UIStrings.loading);
|
|
118
119
|
|
|
119
|
-
this.#scopeChainModel = new SourceMapScopes.ScopeChainModel.ScopeChainModel(callFrame);
|
|
120
|
+
this.#scopeChainModel = new SourceMapScopes.ScopeChainModel.ScopeChainModel(callFrame.sdkFrame);
|
|
120
121
|
this.#scopeChainModel.addEventListener(
|
|
121
122
|
SourceMapScopes.ScopeChainModel.Events.SCOPE_CHAIN_UPDATED, event => this.buildScopeTreeOutline(event.data),
|
|
122
123
|
this);
|
|
@@ -16,6 +16,7 @@ import * as Persistence from '../../models/persistence/persistence.js';
|
|
|
16
16
|
import * as TextUtils from '../../models/text_utils/text_utils.js';
|
|
17
17
|
import * as Workspace from '../../models/workspace/workspace.js';
|
|
18
18
|
import * as uiI18n from '../../ui/i18n/i18n.js';
|
|
19
|
+
import {Link} from '../../ui/kit/kit.js';
|
|
19
20
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
20
21
|
import * as Snippets from '../snippets/snippets.js';
|
|
21
22
|
|
|
@@ -188,8 +189,7 @@ export class FilesNavigatorView extends NavigatorView {
|
|
|
188
189
|
this.setPlaceholder(placeholder);
|
|
189
190
|
placeholder.link = 'https://developer.chrome.com/docs/devtools/workspaces/' as Platform.DevToolsPath.UrlString;
|
|
190
191
|
|
|
191
|
-
const link =
|
|
192
|
-
UI.XLink.XLink.create('https://goo.gle/devtools-automatic-workspace-folders', 'com.chrome.devtools.json');
|
|
192
|
+
const link = Link.create('https://goo.gle/devtools-automatic-workspace-folders', 'com.chrome.devtools.json');
|
|
193
193
|
this.#automaticFileSystemNudge =
|
|
194
194
|
uiI18n.getFormatLocalizedString(str_, UIStrings.automaticWorkspaceNudge, {PH1: link});
|
|
195
195
|
this.#automaticFileSystemNudge.classList.add('automatic-file-system-nudge');
|