chrome-devtools-frontend 1.0.1576287 → 1.0.1576915
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/front_end/core/sdk/DebuggerModel.ts +14 -4
- package/front_end/generated/SupportedCSSProperties.js +37 -0
- package/front_end/models/bindings/DebuggerLanguagePlugins.ts +37 -38
- package/front_end/models/javascript_metadata/NativeFunctions.js +8 -0
- package/front_end/models/stack_trace/StackTrace.ts +19 -18
- package/front_end/panels/accessibility/AXBreadcrumbsPane.ts +5 -3
- package/front_end/panels/ai_assistance/components/ChatMessage.ts +5 -1
- package/front_end/panels/animation/AnimationGroupPreviewUI.ts +1 -1
- package/front_end/panels/application/ServiceWorkerUpdateCycleView.ts +1 -0
- package/front_end/panels/application/components/BackForwardCacheView.ts +4 -2
- package/front_end/panels/autofill/AutofillView.ts +1 -1
- package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +1 -0
- package/front_end/panels/console/ConsoleViewMessage.ts +1 -0
- package/front_end/panels/elements/ElementsTreeElement.ts +1 -0
- package/front_end/panels/elements/LayoutPane.ts +8 -7
- package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +1 -1
- package/front_end/panels/elements/components/StylePropertyEditor.ts +2 -1
- package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +1 -1
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryValueInterpreter.ts +1 -1
- package/front_end/panels/linear_memory_inspector/components/ValueInterpreterDisplay.ts +1 -1
- package/front_end/panels/media/PlayerListView.ts +1 -1
- package/front_end/panels/network/NetworkLogViewColumns.ts +2 -1
- package/front_end/panels/network/RequestPayloadView.ts +42 -91
- package/front_end/panels/network/ShowMoreDetailsWidget.ts +96 -0
- package/front_end/panels/network/components/RequestHeaderSection.ts +1 -1
- package/front_end/panels/network/network.ts +2 -0
- package/front_end/panels/protocol_monitor/JSONEditor.ts +1 -1
- package/front_end/panels/recorder/components/RecordingListView.ts +1 -1
- package/front_end/panels/recorder/components/StepEditor.ts +3 -3
- package/front_end/panels/settings/KeybindsSettingsTab.ts +2 -1
- package/front_end/panels/sources/CallStackSidebarPane.ts +58 -11
- package/front_end/panels/sources/DebuggerPlugin.ts +19 -22
- package/front_end/panels/sources/SourcesPanel.ts +6 -24
- package/front_end/panels/sources/components/HeadersView.ts +2 -2
- package/front_end/panels/timeline/components/BreadcrumbsUI.ts +1 -1
- package/front_end/panels/timeline/components/SidebarAnnotationsTab.ts +1 -1
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/ui/components/report_view/ReportView.ts +2 -2
- package/front_end/ui/components/report_view/report.css +1 -0
- package/front_end/ui/components/suggestion_input/SuggestionInput.ts +7 -12
- package/front_end/ui/components/tree_outline/TreeOutline.ts +1 -1
- package/front_end/ui/legacy/ContextMenu.ts +12 -7
- package/front_end/ui/legacy/ListControl.ts +2 -1
- package/front_end/ui/legacy/ListWidget.ts +1 -1
- package/front_end/ui/legacy/SoftContextMenu.ts +2 -1
- package/front_end/ui/legacy/Treeoutline.ts +1 -0
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +4 -2
- package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +1 -1
- package/front_end/ui/visual_logging/KnownContextValues.ts +1 -0
- package/package.json +1 -1
|
@@ -217,7 +217,6 @@ export class SourcesPanel extends UI.Panel.Panel implements
|
|
|
217
217
|
private threadsSidebarPane: UI.View.View|null;
|
|
218
218
|
private readonly watchSidebarPane: UI.View.View;
|
|
219
219
|
private readonly callstackPane: CallStackSidebarPane;
|
|
220
|
-
private liveLocationPool: Bindings.LiveLocation.LiveLocationPool;
|
|
221
220
|
private lastModificationTime: number;
|
|
222
221
|
#paused?: boolean;
|
|
223
222
|
private switchToPausedTargetTimeout?: number;
|
|
@@ -319,8 +318,6 @@ export class SourcesPanel extends UI.Panel.Panel implements
|
|
|
319
318
|
|
|
320
319
|
void this.updateDebuggerButtonsAndStatus();
|
|
321
320
|
|
|
322
|
-
this.liveLocationPool = new Bindings.LiveLocation.LiveLocationPool();
|
|
323
|
-
|
|
324
321
|
this.setTarget(UI.Context.Context.instance().flavor(SDK.Target.Target));
|
|
325
322
|
Common.Settings.Settings.instance()
|
|
326
323
|
.moduleSetting('breakpoints-active')
|
|
@@ -683,34 +680,20 @@ export class SourcesPanel extends UI.Panel.Panel implements
|
|
|
683
680
|
this.lastModificationTime = window.performance.now();
|
|
684
681
|
}
|
|
685
682
|
|
|
686
|
-
private async
|
|
687
|
-
const
|
|
688
|
-
if (
|
|
689
|
-
return;
|
|
690
|
-
}
|
|
691
|
-
if (!uiLocation) {
|
|
683
|
+
private async callFrameChanged(): Promise<void> {
|
|
684
|
+
const frameFlavor = UI.Context.Context.instance().flavor(StackTrace.StackTrace.DebuggableFrameFlavor);
|
|
685
|
+
if (!frameFlavor?.frame.uiSourceCode) {
|
|
692
686
|
return;
|
|
693
687
|
}
|
|
688
|
+
|
|
689
|
+
const uiLocation = new Workspace.UISourceCode.UILocation(
|
|
690
|
+
frameFlavor.frame.uiSourceCode, frameFlavor.frame.line, frameFlavor.frame.column);
|
|
694
691
|
if (window.performance.now() - this.lastModificationTime < lastModificationTimeout) {
|
|
695
692
|
return;
|
|
696
693
|
}
|
|
697
694
|
this.#sourcesView.showSourceLocation(uiLocation.uiSourceCode, uiLocation, undefined, true);
|
|
698
695
|
}
|
|
699
696
|
|
|
700
|
-
private async callFrameChanged(): Promise<void> {
|
|
701
|
-
const callFrame = UI.Context.Context.instance().flavor(StackTrace.StackTrace.DebuggableFrameFlavor);
|
|
702
|
-
if (!callFrame) {
|
|
703
|
-
return;
|
|
704
|
-
}
|
|
705
|
-
if (this.executionLineLocation) {
|
|
706
|
-
this.executionLineLocation.dispose();
|
|
707
|
-
}
|
|
708
|
-
// TODO(crbug.com/465879478): Remove LiveLocation once `DebuggableFrameFlavor` is backed by a "real" StackTrace.
|
|
709
|
-
this.executionLineLocation =
|
|
710
|
-
await Bindings.DebuggerWorkspaceBinding.DebuggerWorkspaceBinding.instance().createCallFrameLiveLocation(
|
|
711
|
-
callFrame.sdkFrame.location(), this.executionLineChanged.bind(this), this.liveLocationPool);
|
|
712
|
-
}
|
|
713
|
-
|
|
714
697
|
private async updateDebuggerButtonsAndStatus(): Promise<void> {
|
|
715
698
|
const currentTarget = UI.Context.Context.instance().flavor(SDK.Target.Target);
|
|
716
699
|
const currentDebuggerModel = currentTarget ? currentTarget.model(SDK.DebuggerModel.DebuggerModel) : null;
|
|
@@ -758,7 +741,6 @@ export class SourcesPanel extends UI.Panel.Panel implements
|
|
|
758
741
|
if (this.switchToPausedTargetTimeout) {
|
|
759
742
|
clearTimeout(this.switchToPausedTargetTimeout);
|
|
760
743
|
}
|
|
761
|
-
this.liveLocationPool.disposeAll();
|
|
762
744
|
}
|
|
763
745
|
|
|
764
746
|
private switchToPausedTarget(debuggerModel: SDK.DebuggerModel.DebuggerModel): void {
|
|
@@ -404,7 +404,7 @@ export class HeadersViewComponent extends HTMLElement {
|
|
|
404
404
|
// clang-format off
|
|
405
405
|
return html`
|
|
406
406
|
<div class="row" data-block-index=${blockIndex}
|
|
407
|
-
jslog=${VisualLogging.treeItem(pattern === '*' ? pattern : undefined)}>
|
|
407
|
+
jslog=${VisualLogging.treeItem(pattern === '*' ? pattern : undefined).track({resize: true})}>
|
|
408
408
|
<div>${i18n.i18n.lockedString('Apply to')}</div>
|
|
409
409
|
<div class="separator">:</div>
|
|
410
410
|
${this.#renderEditable(pattern, 'apply-to')}
|
|
@@ -427,7 +427,7 @@ export class HeadersViewComponent extends HTMLElement {
|
|
|
427
427
|
// clang-format off
|
|
428
428
|
return html`
|
|
429
429
|
<div class="row padded" data-block-index=${blockIndex} data-header-index=${headerIndex}
|
|
430
|
-
jslog=${VisualLogging.treeItem(header.name).parent('headers-editor-row-parent')}>
|
|
430
|
+
jslog=${VisualLogging.treeItem(header.name).parent('headers-editor-row-parent').track({resize: true})}>
|
|
431
431
|
${this.#renderEditable(header.name, 'header-name red', true)}
|
|
432
432
|
<div class="separator">:</div>
|
|
433
433
|
${this.#renderEditable(header.value, 'header-value')}
|
|
@@ -111,7 +111,7 @@ export class BreadcrumbsUI extends HTMLElement {
|
|
|
111
111
|
// clang-format off
|
|
112
112
|
return html`
|
|
113
113
|
<div class="breadcrumb" @contextmenu=${(event: Event) => this.#onContextMenu(event, breadcrumb)} @click=${() => this.#activateBreadcrumb(breadcrumb)}
|
|
114
|
-
jslog=${VisualLogging.item('timeline.breadcrumb-select').track({click: true})}>
|
|
114
|
+
jslog=${VisualLogging.item('timeline.breadcrumb-select').track({click: true, resize: true})}>
|
|
115
115
|
<span class="${(breadcrumb === this.#activeBreadcrumb) ? 'active-breadcrumb' : ''} range">
|
|
116
116
|
${(index === 0) ?
|
|
117
117
|
`Full range (${i18n.TimeUtilities.preciseMillisToString(breadcrumbRange, 2)})` :
|
|
@@ -424,7 +424,7 @@ export const DEFAULT_VIEW: (input: SidebarAnnotationsTabViewInput, output: objec
|
|
|
424
424
|
@mouseout=${() => (annotation.type === 'ENTRY_LABEL') ? input.onAnnotationHoverOut() : null}
|
|
425
425
|
aria-label=${label}
|
|
426
426
|
tabindex="0"
|
|
427
|
-
jslog=${VisualLogging.item(`timeline.annotation-sidebar.annotation-${jslogForAnnotation(annotation)}`).track({click: true})}
|
|
427
|
+
jslog=${VisualLogging.item(`timeline.annotation-sidebar.annotation-${jslogForAnnotation(annotation)}`).track({click: true, resize: true})}
|
|
428
428
|
>
|
|
429
429
|
<div class="annotation">
|
|
430
430
|
${renderAnnotationIdentifier(annotation, input.annotationEntryToColorMap)}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Name: Dependencies sourced from the upstream `chromium` repository
|
|
2
2
|
URL: https://chromium.googlesource.com/chromium/src
|
|
3
3
|
Version: N/A
|
|
4
|
-
Revision:
|
|
4
|
+
Revision: 7b471f64da6b27f50ddd9944c7246a80dc726b40
|
|
5
5
|
Update Mechanism: Manual (https://crbug.com/428069060)
|
|
6
6
|
License: BSD-3-Clause
|
|
7
7
|
License File: LICENSE
|
|
@@ -57,11 +57,11 @@ export class Report extends HTMLElement {
|
|
|
57
57
|
// clang-format off
|
|
58
58
|
render(html`
|
|
59
59
|
<style>${reportStyles}</style>
|
|
60
|
-
${this.#reportTitle ? html`<
|
|
60
|
+
${this.#reportTitle ? html`<h1 class="report-title">
|
|
61
61
|
${this.#reportTitle}
|
|
62
62
|
${this.#reportUrl ? Components.Linkifier.Linkifier.linkifyURL(this.#reportUrl, {
|
|
63
63
|
tabStop: true, jslogContext: 'source-location', className: 'report-url'}) : nothing}
|
|
64
|
-
</
|
|
64
|
+
</h1>` : nothing}
|
|
65
65
|
<div class="content">
|
|
66
66
|
<slot></slot>
|
|
67
67
|
</div>
|
|
@@ -217,21 +217,16 @@ class SuggestionBox extends LitElement {
|
|
|
217
217
|
return;
|
|
218
218
|
}
|
|
219
219
|
|
|
220
|
+
// clang-format off
|
|
220
221
|
return html`<style>${contentEditableStyles}</style><ul class="suggestions">
|
|
221
|
-
${this.#suggestions.map((suggestion, index) =>
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
})}
|
|
226
|
-
@mousedown=${this.#dispatchSuggestEvent.bind(this, suggestion)}
|
|
227
|
-
jslog=${VisualLogging.item('suggestion').track({
|
|
228
|
-
click: true,
|
|
229
|
-
})}
|
|
230
|
-
>
|
|
222
|
+
${this.#suggestions.map((suggestion, index) => html`
|
|
223
|
+
<li class=${classMap({selected: index === this.cursor})}
|
|
224
|
+
@mousedown=${this.#dispatchSuggestEvent.bind(this, suggestion)}
|
|
225
|
+
jslog=${VisualLogging.item('suggestion').track({ click: true, resize: true })}>
|
|
231
226
|
${suggestion}
|
|
232
|
-
</li
|
|
233
|
-
})}
|
|
227
|
+
</li>`)}
|
|
234
228
|
</ul>`;
|
|
229
|
+
// clang-format on
|
|
235
230
|
}
|
|
236
231
|
}
|
|
237
232
|
|
|
@@ -475,7 +475,7 @@ export class TreeOutline<TreeNodeDataType> extends HTMLElement {
|
|
|
475
475
|
aria-level=${depth + 1}
|
|
476
476
|
aria-posinset=${positionInSet + 1}
|
|
477
477
|
class=${listItemClasses}
|
|
478
|
-
jslog=${VisualLogging.treeItem(node.jslogContext).track({click: true, keydown: 'ArrowUp|ArrowDown|ArrowLeft|ArrowRight|Enter|Space|Home|End'})}
|
|
478
|
+
jslog=${VisualLogging.treeItem(node.jslogContext).track({click: true, resize: true, keydown: 'ArrowUp|ArrowDown|ArrowLeft|ArrowRight|Enter|Space|Home|End'})}
|
|
479
479
|
@click=${this.#onNodeClick}
|
|
480
480
|
track-dom-node-to-tree-node=${trackDOMNodeToTreeNode(this.#domNodeToTreeNodeMap, node)}
|
|
481
481
|
${Lit.Directives.ref(domNode => {
|
|
@@ -221,12 +221,12 @@ export class Section {
|
|
|
221
221
|
|
|
222
222
|
/**
|
|
223
223
|
* Appends a standard clickable item to this section.
|
|
224
|
-
* @param
|
|
224
|
+
* @param labelOrItem The text to display for the item, or a premade Item. In the latter case, `option` is ignored.
|
|
225
225
|
* @param handler The function to execute when the item is clicked.
|
|
226
226
|
* @param options Optional settings for the item.
|
|
227
227
|
* @returns The newly created `Item`.
|
|
228
228
|
*/
|
|
229
|
-
appendItem(
|
|
229
|
+
appendItem(labelOrItem: string|Item, handler: () => void, options?: {
|
|
230
230
|
accelerator?: Host.InspectorFrontendHostAPI.AcceleratorDescriptor,
|
|
231
231
|
isPreviewFeature?: boolean,
|
|
232
232
|
disabled?: boolean,
|
|
@@ -235,11 +235,16 @@ export class Section {
|
|
|
235
235
|
jslogContext?: string,
|
|
236
236
|
featureName?: string,
|
|
237
237
|
}): Item {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
item
|
|
238
|
+
let item;
|
|
239
|
+
if (labelOrItem instanceof Item) {
|
|
240
|
+
item = labelOrItem;
|
|
241
|
+
} else {
|
|
242
|
+
item = new Item(
|
|
243
|
+
this.contextMenu, 'item', labelOrItem, options?.isPreviewFeature, options?.disabled, undefined,
|
|
244
|
+
options?.accelerator, options?.tooltip, options?.jslogContext, options?.featureName);
|
|
245
|
+
if (options?.additionalElement) {
|
|
246
|
+
item.customElement = options?.additionalElement;
|
|
247
|
+
}
|
|
243
248
|
}
|
|
244
249
|
this.items.push(item);
|
|
245
250
|
if (this.contextMenu) {
|
|
@@ -364,7 +364,8 @@ export class ListControl<T> {
|
|
|
364
364
|
element = this.delegate.createElementForItem(item);
|
|
365
365
|
if (!element.hasAttribute('jslog')) {
|
|
366
366
|
element.setAttribute(
|
|
367
|
-
'jslog',
|
|
367
|
+
'jslog',
|
|
368
|
+
`${VisualLogging.item().track({click: true, resize: true, keydown: 'ArrowUp|ArrowDown|PageUp|PageDown'})}`);
|
|
368
369
|
}
|
|
369
370
|
this.itemToElement.set(item, element);
|
|
370
371
|
this.updateElementARIA(element, index);
|
|
@@ -150,7 +150,7 @@ export class ListWidget<T> extends VBox {
|
|
|
150
150
|
}
|
|
151
151
|
const content = this.delegate.renderItem(item, editable, this.#items.length - 1);
|
|
152
152
|
if (!content.hasAttribute('jslog')) {
|
|
153
|
-
element.setAttribute('jslog', `${VisualLogging.item()}`);
|
|
153
|
+
element.setAttribute('jslog', `${VisualLogging.item().track({resize: true})}`);
|
|
154
154
|
}
|
|
155
155
|
element.appendChild(content);
|
|
156
156
|
if (editable) {
|
|
@@ -335,7 +335,8 @@ export class SoftContextMenu {
|
|
|
335
335
|
menuItemElement.addEventListener('mouseleave', (this.menuItemMouseLeave.bind(this) as EventListener), false);
|
|
336
336
|
|
|
337
337
|
if (item.jslogContext) {
|
|
338
|
-
menuItemElement.setAttribute(
|
|
338
|
+
menuItemElement.setAttribute(
|
|
339
|
+
'jslog', `${VisualLogging.item(item.jslogContext).track({click: true, resize: true})}`);
|
|
339
340
|
}
|
|
340
341
|
return menuItemElement;
|
|
341
342
|
}
|
|
@@ -499,6 +499,7 @@ export class TreeElement {
|
|
|
499
499
|
this.listItemNode.setAttribute(
|
|
500
500
|
'jslog', `${VisualLogging.treeItem().parent('parentTreeItem').context(jslogContext).track({
|
|
501
501
|
click: true,
|
|
502
|
+
resize: true,
|
|
502
503
|
keydown: 'ArrowUp|ArrowDown|ArrowLeft|ArrowRight|Backspace|Delete|Enter|Space|Home|End',
|
|
503
504
|
})}`);
|
|
504
505
|
ARIAUtils.markAsTreeitem(this.listItemNode);
|
|
@@ -1762,8 +1762,10 @@ export class DataGridNode<T> {
|
|
|
1762
1762
|
|
|
1763
1763
|
protected createElement(): HTMLElement {
|
|
1764
1764
|
this.elementInternal = document.createElement('tr');
|
|
1765
|
-
this.elementInternal.setAttribute(
|
|
1766
|
-
|
|
1765
|
+
this.elementInternal.setAttribute('jslog', `${VisualLogging.tableRow().track({
|
|
1766
|
+
resize: true,
|
|
1767
|
+
keydown: 'ArrowUp|ArrowDown|ArrowLeft|ArrowRight|Enter|Space'
|
|
1768
|
+
})}`);
|
|
1767
1769
|
this.elementInternal.classList.add('data-grid-data-grid-node');
|
|
1768
1770
|
if (this.dataGrid) {
|
|
1769
1771
|
this.dataGrid.elementToDataGridNode.set(this.elementInternal, this);
|
|
@@ -280,7 +280,7 @@ export class FilteredListWidget extends Common.ObjectWrapper.eventMixin<EventTyp
|
|
|
280
280
|
if (this.provider) {
|
|
281
281
|
render(this.provider.renderItem(item, this.cleanValue()), wrapperElement);
|
|
282
282
|
wrapperElement.setAttribute(
|
|
283
|
-
'jslog', `${VisualLogging.item(this.provider.jslogContextAt(item)).track({click: true})}`);
|
|
283
|
+
'jslog', `${VisualLogging.item(this.provider.jslogContextAt(item)).track({click: true, resize: true})}`);
|
|
284
284
|
}
|
|
285
285
|
UI.ARIAUtils.markAsOption(wrapperElement);
|
|
286
286
|
return wrapperElement;
|
|
@@ -1689,6 +1689,7 @@ export const knownContextValues = new Set([
|
|
|
1689
1689
|
'frame',
|
|
1690
1690
|
'frame-creation-stack-trace',
|
|
1691
1691
|
'frame-resource',
|
|
1692
|
+
'frame-sizing',
|
|
1692
1693
|
'frame-viewer-hide-chrome-window',
|
|
1693
1694
|
'frame-viewer-show-paints',
|
|
1694
1695
|
'frame-viewer-show-slow-scroll-rects',
|
package/package.json
CHANGED