chrome-devtools-frontend 1.0.1593518 → 1.0.1595090
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/docs/contributing/settings-experiments-features.md +93 -98
- package/front_end/core/common/README.md +126 -0
- package/front_end/core/host/UserMetrics.ts +1 -2
- package/front_end/core/protocol_client/InspectorBackend.ts +4 -0
- package/front_end/core/root/ExperimentNames.ts +0 -1
- package/front_end/core/sdk/CSSModel.ts +22 -0
- package/front_end/core/sdk/CSSNavigation.ts +33 -0
- package/front_end/core/sdk/CSSRule.ts +12 -2
- package/front_end/core/sdk/EmulationModel.ts +41 -1
- package/front_end/core/sdk/sdk-meta.ts +22 -18
- package/front_end/core/sdk/sdk.ts +2 -0
- package/front_end/design_system_tokens.css +538 -259
- package/front_end/entrypoints/main/MainImpl.ts +0 -6
- package/front_end/entrypoints/main/main-meta.ts +2 -2
- package/front_end/generated/InspectorBackendCommands.ts +6 -4
- package/front_end/generated/SupportedCSSProperties.js +12 -0
- package/front_end/generated/protocol-mapping.d.ts +7 -0
- package/front_end/generated/protocol-proxy-api.d.ts +5 -0
- package/front_end/generated/protocol.ts +47 -0
- package/front_end/models/ai_code_completion/AiCodeCompletion.ts +1 -0
- package/front_end/models/emulation/DeviceModeModel.ts +47 -0
- package/front_end/models/issues_manager/Issue.ts +1 -0
- package/front_end/models/issues_manager/IssueAggregator.ts +9 -9
- package/front_end/models/issues_manager/IssuesManager.ts +5 -5
- package/front_end/models/issues_manager/SelectivePermissionsInterventionIssue.ts +65 -0
- package/front_end/models/issues_manager/descriptions/selectivePermissionsIntervention.md +7 -0
- package/front_end/models/issues_manager/issues_manager.ts +2 -4
- package/front_end/models/javascript_metadata/NativeFunctions.js +48 -9
- package/front_end/models/lighthouse/lighthouse.ts +9 -0
- package/front_end/models/persistence/persistence-meta.ts +4 -4
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +12 -1
- package/front_end/panels/ai_assistance/components/ChatInput.ts +37 -30
- package/front_end/panels/ai_assistance/components/ChatView.ts +4 -2
- package/front_end/panels/ai_assistance/components/chatInput.css +26 -1
- package/front_end/panels/application/StorageView.ts +8 -2
- package/front_end/panels/application/preloading/PreloadingView.ts +105 -7
- package/front_end/panels/application/preloading/preloadingView.css +4 -0
- package/front_end/panels/common/AiCodeCompletionDisclaimer.ts +3 -0
- package/front_end/panels/common/AiCodeGenerationTeaser.ts +3 -0
- package/front_end/panels/console/ConsoleView.ts +2 -2
- package/front_end/panels/console/console-meta.ts +18 -14
- package/front_end/panels/elements/ComputedStyleWidget.ts +12 -7
- package/front_end/panels/elements/ElementsPanel.ts +1 -1
- package/front_end/panels/elements/ElementsTreeOutline.ts +4 -6
- package/front_end/panels/elements/ImagePreviewPopover.ts +6 -9
- package/front_end/panels/elements/StylePropertiesSection.ts +30 -0
- package/front_end/panels/elements/StylesAiCodeCompletionProvider.ts +1 -6
- package/front_end/panels/elements/StylesSidebarPane.ts +92 -7
- package/front_end/panels/elements/elements-meta.ts +12 -8
- package/front_end/panels/emulation/DeviceModeToolbar.ts +206 -66
- package/front_end/panels/issues/AffectedSelectivePermissionsInterventionView.ts +120 -0
- package/front_end/panels/issues/HiddenIssuesRow.ts +1 -1
- package/front_end/panels/issues/IssueKindView.ts +2 -1
- package/front_end/panels/issues/IssueView.ts +4 -4
- package/front_end/panels/issues/IssuesPane.ts +8 -2
- package/front_end/panels/issues/issues.ts +2 -0
- package/front_end/panels/lighthouse/LighthouseController.ts +3 -3
- package/front_end/panels/lighthouse/LighthousePanel.ts +9 -5
- package/front_end/panels/lighthouse/LighthouseProtocolService.ts +5 -5
- package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +6 -7
- package/front_end/panels/lighthouse/LighthouseReportSelector.ts +4 -3
- package/front_end/panels/lighthouse/LighthouseStartView.ts +99 -38
- package/front_end/panels/lighthouse/LighthouseTimespanView.ts +53 -14
- package/front_end/panels/lighthouse/RadioSetting.ts +33 -19
- package/front_end/panels/lighthouse/lighthouse.ts +2 -2
- package/front_end/panels/media/PlayerMessagesView.ts +62 -49
- package/front_end/panels/media/media.ts +2 -0
- package/front_end/panels/media/playerMessagesView.css +1 -1
- package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +49 -24
- package/front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts +2 -2
- package/front_end/panels/sources/sources-meta.ts +8 -4
- package/front_end/panels/utils/utils.ts +11 -5
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/lit/lib/async-directive.d.ts +465 -0
- package/front_end/third_party/lit/lib/async-directive.js +23 -0
- package/front_end/third_party/lit/lib/async-directive.js.map +1 -0
- package/front_end/third_party/lit/lib/decorators.d.ts +7 -1
- package/front_end/third_party/lit/lib/decorators.js +2 -2
- package/front_end/third_party/lit/lib/decorators.js.map +1 -1
- package/front_end/third_party/lit/lib/directive.js.map +1 -1
- package/front_end/third_party/lit/lib/directives.d.ts +27 -8
- package/front_end/third_party/lit/lib/directives.js +8 -8
- package/front_end/third_party/lit/lib/directives.js.map +1 -1
- package/front_end/third_party/lit/lib/lit.d.ts +15 -5
- package/front_end/third_party/lit/lib/lit.js +4 -4
- package/front_end/third_party/lit/lib/lit.js.map +1 -1
- package/front_end/third_party/lit/lib/static-html.js +2 -2
- package/front_end/third_party/lit/lib/static-html.js.map +1 -1
- package/front_end/third_party/lit/lit.ts +2 -1
- package/front_end/third_party/lit/rollup.config.mjs +1 -1
- package/front_end/third_party/source-map-scopes-codec/package/deno.json +1 -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 +1 -1
- 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 +1 -1
- package/front_end/third_party/source-map-scopes-codec/package/src/encode/encoder.js +1 -1
- package/front_end/third_party/source-map-scopes-codec/package/src/encode/encoder.js.map +1 -1
- package/front_end/third_party/source-map-scopes-codec/package/src/encode/encoder.ts +2 -2
- package/front_end/ui/components/markdown_view/MarkdownLinksMap.ts +5 -0
- package/front_end/ui/legacy/SuggestBox.ts +4 -0
- package/front_end/ui/legacy/TextPrompt.ts +1 -1
- package/front_end/ui/legacy/components/utils/ImagePreview.ts +27 -23
- package/front_end/ui/lit/lit.ts +1 -0
- package/front_end/ui/visual_logging/Debugging.ts +1 -1
- package/front_end/ui/visual_logging/KnownContextValues.ts +19 -0
- package/inspector_overlay/highlight_grid_common.ts +11 -8
- package/package.json +1 -1
- package/front_end/models/issues_manager/ContrastCheckTrigger.ts +0 -78
- package/front_end/models/issues_manager/LowTextContrastIssue.ts +0 -63
- package/front_end/panels/issues/AffectedElementsWithLowContrastView.ts +0 -91
- /package/front_end/{panels → models}/lighthouse/LighthouseReporterTypes.ts +0 -0
|
@@ -2,6 +2,7 @@
|
|
|
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
4
|
/* eslint-disable @devtools/no-imperative-dom-api */
|
|
5
|
+
/* eslint-disable @devtools/no-lit-render-outside-of-view */
|
|
5
6
|
|
|
6
7
|
import '../../ui/legacy/legacy.js';
|
|
7
8
|
|
|
@@ -9,6 +10,7 @@ import type * as Common from '../../core/common/common.js';
|
|
|
9
10
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
10
11
|
import type * as Protocol from '../../generated/protocol.js';
|
|
11
12
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
13
|
+
import {html, type LitTemplate, nothing, render} from '../../ui/lit/lit.js';
|
|
12
14
|
import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
|
|
13
15
|
|
|
14
16
|
import playerMessagesViewStyles from './playerMessagesView.css.js';
|
|
@@ -339,59 +341,70 @@ export class PlayerMessagesView extends UI.Widget.VBox {
|
|
|
339
341
|
UI.UIUtils.createTextChild(container, message.message);
|
|
340
342
|
}
|
|
341
343
|
|
|
342
|
-
private
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
344
|
+
private renderError(error: Protocol.Media.PlayerError): LitTemplate {
|
|
345
|
+
// clang-format off
|
|
346
|
+
return html`
|
|
347
|
+
<div class="status-error-box">
|
|
348
|
+
<div class="status-error-field-labeled">
|
|
349
|
+
<span class="status-error-field-label"
|
|
350
|
+
>${i18nString(UIStrings.errorGroupLabel)}</span
|
|
351
|
+
>
|
|
352
|
+
<span>${error.errorType}</span>
|
|
353
|
+
</div>
|
|
354
|
+
<div class="status-error-field-labeled">
|
|
355
|
+
<span class="status-error-field-label"
|
|
356
|
+
>${i18nString(UIStrings.errorCodeLabel)}</span
|
|
357
|
+
>
|
|
358
|
+
<span>${error.code}</span>
|
|
359
|
+
</div>
|
|
360
|
+
<div class="status-error-field-labeled">
|
|
361
|
+
${
|
|
362
|
+
Object.keys(error.data).length !== 0
|
|
363
|
+
? html`<span class="status-error-field-label"
|
|
364
|
+
>${i18nString(UIStrings.errorDataLabel)}</span
|
|
365
|
+
>
|
|
366
|
+
<div>
|
|
367
|
+
${Object.entries(error.data).map(
|
|
368
|
+
([key, value]) => html`<div>${key}: ${value}</div>`,
|
|
369
|
+
)}
|
|
370
|
+
</div>`
|
|
371
|
+
: nothing
|
|
372
|
+
}
|
|
373
|
+
</div>
|
|
374
|
+
<div class="status-error-field-labeled">
|
|
375
|
+
${
|
|
376
|
+
error.stack.length !== 0
|
|
377
|
+
? html`<span class="status-error-field-label"
|
|
378
|
+
>${i18nString(UIStrings.errorStackLabel)}</span
|
|
379
|
+
>
|
|
380
|
+
<div>
|
|
381
|
+
${error.stack.map(
|
|
382
|
+
stackEntry =>
|
|
383
|
+
html`<div>${stackEntry.file}:${stackEntry.line}</div>`,
|
|
384
|
+
)}
|
|
385
|
+
</div>`
|
|
386
|
+
: nothing
|
|
387
|
+
}
|
|
388
|
+
</div>
|
|
389
|
+
<div class="status-error-field-labeled">
|
|
390
|
+
${
|
|
391
|
+
error.cause.length !== 0
|
|
392
|
+
? html`
|
|
393
|
+
<span class="status-error-field-label"
|
|
394
|
+
>${i18nString(UIStrings.errorCauseLabel)}</span
|
|
395
|
+
>
|
|
396
|
+
${this.renderError(error.cause[0])}
|
|
397
|
+
`
|
|
398
|
+
: nothing
|
|
399
|
+
}
|
|
400
|
+
</div>
|
|
401
|
+
</div>
|
|
359
402
|
`;
|
|
360
|
-
|
|
361
|
-
entry.$('status-error-group').textContent = i18nString(UIStrings.errorGroupLabel);
|
|
362
|
-
entry.$('status-error-code').textContent = i18nString(UIStrings.errorCodeLabel);
|
|
363
|
-
|
|
364
|
-
if (Object.keys(error.data).length !== 0) {
|
|
365
|
-
const label = entry.$('status-error-data').createChild('span', 'status-error-field-label');
|
|
366
|
-
UI.UIUtils.createTextChild(label, i18nString(UIStrings.errorDataLabel));
|
|
367
|
-
const dataContent = entry.$('status-error-data').createChild('div');
|
|
368
|
-
for (const [key, value] of Object.entries(error.data)) {
|
|
369
|
-
const datumContent = dataContent.createChild('div');
|
|
370
|
-
UI.UIUtils.createTextChild(datumContent, `${key}: ${value}`);
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
if (error.stack.length !== 0) {
|
|
375
|
-
const label = entry.$('status-error-stack').createChild('span', 'status-error-field-label');
|
|
376
|
-
UI.UIUtils.createTextChild(label, i18nString(UIStrings.errorStackLabel));
|
|
377
|
-
const stackContent = entry.$('status-error-stack').createChild('div');
|
|
378
|
-
for (const stackEntry of error.stack) {
|
|
379
|
-
const frameBox = stackContent.createChild('div');
|
|
380
|
-
UI.UIUtils.createTextChild(frameBox, `${stackEntry.file}:${stackEntry.line}`);
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
if (error.cause.length !== 0) {
|
|
385
|
-
const label = entry.$('status-error-cause').createChild('span', 'status-error-field-label');
|
|
386
|
-
UI.UIUtils.createTextChild(label, i18nString(UIStrings.errorCauseLabel));
|
|
387
|
-
entry.$('status-error-cause').appendChild(this.errorToDiv(error.cause[0]));
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
return entry.element();
|
|
403
|
+
// clang-format on
|
|
391
404
|
}
|
|
392
405
|
|
|
393
406
|
addError(error: Protocol.Media.PlayerError): void {
|
|
394
407
|
const container = this.bodyPanel.createChild('div', 'media-messages-message-container media-message-error');
|
|
395
|
-
|
|
408
|
+
render(this.renderError(error), container);
|
|
396
409
|
}
|
|
397
410
|
}
|
|
@@ -16,6 +16,7 @@ import * as MainView from './MainView.js';
|
|
|
16
16
|
import * as MediaModel from './MediaModel.js';
|
|
17
17
|
import * as PlayerDetailView from './PlayerDetailView.js';
|
|
18
18
|
import * as PlayerListView from './PlayerListView.js';
|
|
19
|
+
import * as PlayerMessagesView from './PlayerMessagesView.js';
|
|
19
20
|
import * as PlayerPropertiesView from './PlayerPropertiesView.js';
|
|
20
21
|
import * as TickingFlameChart from './TickingFlameChart.js';
|
|
21
22
|
import * as TickingFlameChartHelpers from './TickingFlameChartHelpers.js';
|
|
@@ -26,6 +27,7 @@ export {
|
|
|
26
27
|
PlayerDetailView,
|
|
27
28
|
PlayerEventsView,
|
|
28
29
|
PlayerListView,
|
|
30
|
+
PlayerMessagesView,
|
|
29
31
|
PlayerPropertiesView,
|
|
30
32
|
TickingFlameChart,
|
|
31
33
|
TickingFlameChartHelpers,
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
/* eslint-disable @devtools/no-imperative-dom-api */
|
|
6
|
+
/* eslint-disable @devtools/no-lit-render-outside-of-view */
|
|
6
7
|
|
|
7
8
|
import * as Common from '../../core/common/common.js';
|
|
8
9
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
@@ -13,6 +14,7 @@ import * as HeapSnapshotModel from '../../models/heap_snapshot_model/heap_snapsh
|
|
|
13
14
|
import {createIcon} from '../../ui/kit/kit.js';
|
|
14
15
|
import * as DataGrid from '../../ui/legacy/components/data_grid/data_grid.js';
|
|
15
16
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
17
|
+
import {Directives, html, render} from '../../ui/lit/lit.js';
|
|
16
18
|
import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
|
|
17
19
|
|
|
18
20
|
import type {ChildrenProvider} from './ChildrenProvider.js';
|
|
@@ -269,25 +271,32 @@ export class HeapSnapshotGridNode extends
|
|
|
269
271
|
|
|
270
272
|
createValueCell(columnId: string): HTMLElement {
|
|
271
273
|
const jslog = VisualLogging.tableCell('numeric-column').track({click: true});
|
|
272
|
-
const cell = (
|
|
274
|
+
const cell = document.createElement('td');
|
|
275
|
+
cell.className = 'numeric-column';
|
|
276
|
+
cell.setAttribute('jslog', jslog.toString());
|
|
273
277
|
const dataGrid = (this.dataGrid as HeapSnapshotSortableDataGrid);
|
|
274
278
|
if (dataGrid.snapshot && dataGrid.snapshot.totalSize !== 0) {
|
|
275
|
-
const
|
|
276
|
-
const valueSpan = UI.Fragment.html`<span>${this.data[columnId]}</span>`;
|
|
277
|
-
div.appendChild(valueSpan);
|
|
279
|
+
const value = this.data[columnId];
|
|
278
280
|
const percentColumn = columnId + '-percent';
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
281
|
+
const percent = this.data[percentColumn];
|
|
282
|
+
if (percent) {
|
|
283
|
+
render(
|
|
284
|
+
html`
|
|
285
|
+
<div class="profile-multiple-values">
|
|
286
|
+
<span aria-hidden="true">${value}</span>
|
|
287
|
+
<span class="percent-column" aria-hidden="true">${percent}</span>
|
|
288
|
+
</div>`,
|
|
289
|
+
cell);
|
|
285
290
|
this.setCellAccessibleName(
|
|
286
|
-
i18nString(
|
|
287
|
-
|
|
288
|
-
|
|
291
|
+
i18nString(UIStrings.genericStringsTwoPlaceholders, {PH1: value, PH2: percent}), cell, columnId);
|
|
292
|
+
} else {
|
|
293
|
+
render(
|
|
294
|
+
html`
|
|
295
|
+
<div>
|
|
296
|
+
<span>${value}</span>
|
|
297
|
+
</div>`,
|
|
298
|
+
cell);
|
|
289
299
|
}
|
|
290
|
-
cell.appendChild(div);
|
|
291
300
|
}
|
|
292
301
|
return cell;
|
|
293
302
|
}
|
|
@@ -621,14 +630,30 @@ export abstract class HeapSnapshotGenericObjectNode extends HeapSnapshotGridNode
|
|
|
621
630
|
|
|
622
631
|
createObjectCellWithValue(valueStyle: string, value: string): HTMLElement {
|
|
623
632
|
const jslog = VisualLogging.tableCell('object-column').track({click: true});
|
|
624
|
-
const
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
633
|
+
const cell = document.createElement('td');
|
|
634
|
+
cell.className = 'object-column disclosure';
|
|
635
|
+
cell.setAttribute('jslog', jslog.toString());
|
|
636
|
+
const output: {div?: Element} = {};
|
|
637
|
+
// clang-format off
|
|
638
|
+
render(
|
|
639
|
+
html`<div
|
|
640
|
+
class="source-code event-properties"
|
|
641
|
+
style="overflow: visible;"
|
|
642
|
+
${Directives.ref(el => {
|
|
643
|
+
output.div = el;
|
|
644
|
+
})}
|
|
645
|
+
>
|
|
646
|
+
<span class="value object-value-${valueStyle}">${value}</span>
|
|
647
|
+
<span class="object-value-id">@${this.snapshotNodeId}</span>
|
|
648
|
+
</div>`,
|
|
649
|
+
cell,
|
|
650
|
+
);
|
|
651
|
+
// clang-format on
|
|
652
|
+
const div = output.div;
|
|
653
|
+
if (!div) {
|
|
654
|
+
throw new Error('Expected div to exists');
|
|
655
|
+
}
|
|
656
|
+
|
|
632
657
|
this.prefixObjectCell(div);
|
|
633
658
|
if (this.reachableFromWindow) {
|
|
634
659
|
const frameIcon = createIcon('frame', 'heap-object-tag');
|
|
@@ -641,7 +666,6 @@ export abstract class HeapSnapshotGenericObjectNode extends HeapSnapshotGridNode
|
|
|
641
666
|
div.appendChild(frameIcon);
|
|
642
667
|
}
|
|
643
668
|
void this.appendSourceLocation(div);
|
|
644
|
-
const cell = (fragment.element() as HTMLElement);
|
|
645
669
|
if (this.depth) {
|
|
646
670
|
cell.style.setProperty(
|
|
647
671
|
'padding-left', (this.depth * (this.dataGrid as HeapSnapshotSortableDataGrid).indentWidth) + 'px');
|
|
@@ -653,7 +677,8 @@ export abstract class HeapSnapshotGenericObjectNode extends HeapSnapshotGridNode
|
|
|
653
677
|
}
|
|
654
678
|
|
|
655
679
|
async appendSourceLocation(div: Element): Promise<void> {
|
|
656
|
-
const linkContainer =
|
|
680
|
+
const linkContainer = document.createElement('span');
|
|
681
|
+
linkContainer.className = 'heap-object-source-link';
|
|
657
682
|
div.appendChild(linkContainer);
|
|
658
683
|
const link = await this.dataGridInternal.dataDisplayDelegate().linkifyObject((this.snapshotNodeIndex as number));
|
|
659
684
|
if (link) {
|
|
@@ -41,7 +41,7 @@ const UIStrings = {
|
|
|
41
41
|
/**
|
|
42
42
|
* @description Text in Framework Ignore List Settings Tab of the Settings
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
ignoreListing: 'Ignore listing',
|
|
45
45
|
/**
|
|
46
46
|
* @description Text in Framework Ignore List Settings Tab of the Settings
|
|
47
47
|
*/
|
|
@@ -114,7 +114,7 @@ export class FrameworkIgnoreListSettingsTab extends UI.Widget.VBox implements
|
|
|
114
114
|
const enabledSetting = Common.Settings.Settings.instance().moduleSetting('enable-ignore-listing');
|
|
115
115
|
const enableIgnoreListing = this.contentElement.createChild('div', 'enable-ignore-listing');
|
|
116
116
|
enableIgnoreListing.appendChild(
|
|
117
|
-
SettingsUI.SettingsUI.createSettingCheckbox(i18nString(UIStrings.
|
|
117
|
+
SettingsUI.SettingsUI.createSettingCheckbox(i18nString(UIStrings.ignoreListing), enabledSetting));
|
|
118
118
|
UI.Tooltip.Tooltip.install(enableIgnoreListing, i18nString(UIStrings.enableIgnoreListingTooltip));
|
|
119
119
|
|
|
120
120
|
const enableIgnoreListingCard = settingsContent.createChild('devtools-card');
|
|
@@ -355,13 +355,17 @@ const UIStrings = {
|
|
|
355
355
|
*/
|
|
356
356
|
trailing: 'Trailing',
|
|
357
357
|
/**
|
|
358
|
-
* @description Title of a setting under the Sources category
|
|
358
|
+
* @description Title of a setting under the Sources category
|
|
359
|
+
*/
|
|
360
|
+
variableValuesInlineWhile: 'Variable values inline',
|
|
361
|
+
/**
|
|
362
|
+
* @description Title of an option under the Sources category that can be invoked through the Command Menu
|
|
359
363
|
*/
|
|
360
364
|
displayVariableValuesInlineWhile: 'Display variable values inline while debugging',
|
|
361
365
|
/**
|
|
362
|
-
* @description Title of
|
|
366
|
+
* @description Title of an option under the Sources category that can be invoked through the Command Menu
|
|
363
367
|
*/
|
|
364
|
-
doNotDisplayVariableValuesInline: '
|
|
368
|
+
doNotDisplayVariableValuesInline: 'Don\'t show variable values inline',
|
|
365
369
|
/**
|
|
366
370
|
* @description Title of a setting under the Sources category in Settings
|
|
367
371
|
*/
|
|
@@ -1703,7 +1707,7 @@ UI.ActionRegistration.registerActionExtension({
|
|
|
1703
1707
|
Common.Settings.registerSettingExtension({
|
|
1704
1708
|
category: Common.Settings.SettingCategory.SOURCES,
|
|
1705
1709
|
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
1706
|
-
title: i18nLazyString(UIStrings.
|
|
1710
|
+
title: i18nLazyString(UIStrings.variableValuesInlineWhile),
|
|
1707
1711
|
settingName: 'inline-variable-values',
|
|
1708
1712
|
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
1709
1713
|
defaultValue: true,
|
|
@@ -97,8 +97,11 @@ export class PanelUtils {
|
|
|
97
97
|
|
|
98
98
|
// clang-format off
|
|
99
99
|
return html`<devtools-icon
|
|
100
|
-
class="icon"
|
|
101
|
-
|
|
100
|
+
class="icon"
|
|
101
|
+
name=${iconName}
|
|
102
|
+
title=${title}
|
|
103
|
+
role=img
|
|
104
|
+
></devtools-icon>`;
|
|
102
105
|
// clang-format on
|
|
103
106
|
}
|
|
104
107
|
|
|
@@ -261,9 +264,12 @@ export class PanelUtils {
|
|
|
261
264
|
binding ? PanelCommon.PersistenceUtils.PersistenceUtils.tooltipForUISourceCode(uiSourceCode) : undefined;
|
|
262
265
|
// clang-format off
|
|
263
266
|
return html`<devtools-file-source-icon
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
+
class="icon"
|
|
268
|
+
name=${iconType}
|
|
269
|
+
title=${ifDefined(title)}
|
|
270
|
+
.data=${{
|
|
271
|
+
contentType: uiSourceCode.contentType().name(), hasDotBadge, isDotPurple, iconType}
|
|
272
|
+
}></devtools-file-source-icon>`;
|
|
267
273
|
// clang-format on
|
|
268
274
|
}
|
|
269
275
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Name: Dependencies sourced from the upstream `chromium` repository
|
|
2
2
|
URL: Internal
|
|
3
3
|
Version: N/A
|
|
4
|
-
Revision:
|
|
4
|
+
Revision: cf64a516ef49cbc20688475f5ee7ec91c5bbe2da
|
|
5
5
|
Update Mechanism: Manual (https://crbug.com/428069060)
|
|
6
6
|
License: BSD-3-Clause
|
|
7
7
|
License File: LICENSE
|