chrome-devtools-frontend 1.0.943986 → 1.0.944427
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/host/UserMetrics.ts +0 -1
- package/front_end/core/i18n/locales/en-US.json +0 -12
- package/front_end/core/i18n/locales/en-XL.json +0 -12
- package/front_end/core/sdk/CSSStyleDeclaration.ts +4 -0
- package/front_end/core/sdk/OverlayModel.ts +0 -9
- package/front_end/core/sdk/sdk-meta.ts +0 -26
- package/front_end/entrypoints/inspector_main/RenderingOptions.ts +0 -13
- package/front_end/entrypoints/main/MainImpl.ts +0 -2
- package/front_end/models/timeline_model/TimelineJSProfile.ts +3 -16
- package/front_end/models/timeline_model/TimelineModel.ts +0 -1
- package/front_end/panels/console/ConsolePinPane.ts +1 -0
- package/front_end/panels/console/ConsolePrompt.ts +121 -171
- package/front_end/panels/console/ConsoleView.ts +1 -1
- package/front_end/panels/console/consoleView.css +1 -1
- package/front_end/panels/css_overview/cssOverviewCompletedView.css +2 -2
- package/front_end/panels/elements/AccessibilityTreeUtils.ts +2 -1
- package/front_end/panels/elements/ElementsTreeElement.ts +1 -0
- package/front_end/panels/elements/StyleEditorWidget.ts +13 -2
- package/front_end/panels/elements/StylePropertyHighlighter.ts +29 -19
- package/front_end/panels/elements/StylePropertyTreeElement.ts +7 -4
- package/front_end/panels/elements/StylesSidebarPane.ts +1 -1
- package/front_end/panels/elements/components/AccessibilityTreeNode.ts +27 -3
- package/front_end/panels/network/NetworkDataGridNode.ts +5 -1
- package/front_end/panels/sources/BreakpointEditDialog.ts +1 -0
- package/front_end/panels/timeline/TimelineController.ts +0 -3
- package/front_end/third_party/codemirror.next/bundle.ts +3 -2
- package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
- package/front_end/third_party/codemirror.next/codemirror.next.d.ts +32 -1
- package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
- package/front_end/third_party/codemirror.next/package.json +4 -4
- package/front_end/ui/components/text_editor/config.ts +34 -14
- package/front_end/ui/components/text_editor/javascript.ts +14 -9
- package/front_end/ui/components/text_editor/theme.ts +29 -4
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +1 -0
- package/front_end/ui/legacy/components/utils/Linkifier.ts +49 -79
- package/front_end/ui/legacy/themeColors.css +2 -0
- package/package.json +1 -1
|
@@ -598,7 +598,6 @@ export const DevtoolsExperiments: {
|
|
|
598
598
|
'timelineEventInitiators': 24,
|
|
599
599
|
'timelineInvalidationTracking': 26,
|
|
600
600
|
'timelineShowAllEvents': 27,
|
|
601
|
-
'timelineV8RuntimeCallStats': 28,
|
|
602
601
|
'timelineWebGL': 29,
|
|
603
602
|
'timelineReplayEvent': 30,
|
|
604
603
|
'wasmDWARFDebugging': 31,
|
|
@@ -710,9 +710,6 @@
|
|
|
710
710
|
"core/sdk/sdk-meta.ts | hideFramesPerSecondFpsMeter": {
|
|
711
711
|
"message": "Hide frames per second (FPS) meter"
|
|
712
712
|
},
|
|
713
|
-
"core/sdk/sdk-meta.ts | hideHittestBorders": {
|
|
714
|
-
"message": "Hide hit-test borders"
|
|
715
|
-
},
|
|
716
713
|
"core/sdk/sdk-meta.ts | hideLayerBorders": {
|
|
717
714
|
"message": "Hide layer borders"
|
|
718
715
|
},
|
|
@@ -767,9 +764,6 @@
|
|
|
767
764
|
"core/sdk/sdk-meta.ts | showGridTrackSizes": {
|
|
768
765
|
"message": "Show grid track sizes"
|
|
769
766
|
},
|
|
770
|
-
"core/sdk/sdk-meta.ts | showHittestBorders": {
|
|
771
|
-
"message": "Show hit-test borders"
|
|
772
|
-
},
|
|
773
767
|
"core/sdk/sdk-meta.ts | showLayerBorders": {
|
|
774
768
|
"message": "Show layer borders"
|
|
775
769
|
},
|
|
@@ -992,9 +986,6 @@
|
|
|
992
986
|
"entrypoints/inspector_main/RenderingOptions.ts | highlightsFramesRedDetectedToBe": {
|
|
993
987
|
"message": "Highlights frames (red) detected to be ads."
|
|
994
988
|
},
|
|
995
|
-
"entrypoints/inspector_main/RenderingOptions.ts | hittestBorders": {
|
|
996
|
-
"message": "Hit-test borders"
|
|
997
|
-
},
|
|
998
989
|
"entrypoints/inspector_main/RenderingOptions.ts | layerBorders": {
|
|
999
990
|
"message": "Layer borders"
|
|
1000
991
|
},
|
|
@@ -1016,9 +1007,6 @@
|
|
|
1016
1007
|
"entrypoints/inspector_main/RenderingOptions.ts | showsAnOverlayWithCoreWebVitals": {
|
|
1017
1008
|
"message": "Shows an overlay with Core Web Vitals."
|
|
1018
1009
|
},
|
|
1019
|
-
"entrypoints/inspector_main/RenderingOptions.ts | showsBordersAroundHittestRegions": {
|
|
1020
|
-
"message": "Shows borders around hit-test regions."
|
|
1021
|
-
},
|
|
1022
1010
|
"entrypoints/inspector_main/RenderingOptions.ts | showsLayerBordersOrangeoliveAnd": {
|
|
1023
1011
|
"message": "Shows layer borders (orange/olive) and tiles (cyan)."
|
|
1024
1012
|
},
|
|
@@ -710,9 +710,6 @@
|
|
|
710
710
|
"core/sdk/sdk-meta.ts | hideFramesPerSecondFpsMeter": {
|
|
711
711
|
"message": "Ĥíd̂é f̂ŕâḿêś p̂ér̂ śêćôńd̂ (F́P̂Ś) m̂ét̂ér̂"
|
|
712
712
|
},
|
|
713
|
-
"core/sdk/sdk-meta.ts | hideHittestBorders": {
|
|
714
|
-
"message": "Ĥíd̂é ĥít̂-t́êśt̂ b́ôŕd̂ér̂ś"
|
|
715
|
-
},
|
|
716
713
|
"core/sdk/sdk-meta.ts | hideLayerBorders": {
|
|
717
714
|
"message": "Ĥíd̂é l̂áŷér̂ b́ôŕd̂ér̂ś"
|
|
718
715
|
},
|
|
@@ -767,9 +764,6 @@
|
|
|
767
764
|
"core/sdk/sdk-meta.ts | showGridTrackSizes": {
|
|
768
765
|
"message": "Ŝh́ôẃ ĝŕîd́ t̂ŕâćk̂ śîźêś"
|
|
769
766
|
},
|
|
770
|
-
"core/sdk/sdk-meta.ts | showHittestBorders": {
|
|
771
|
-
"message": "Ŝh́ôẃ ĥít̂-t́êśt̂ b́ôŕd̂ér̂ś"
|
|
772
|
-
},
|
|
773
767
|
"core/sdk/sdk-meta.ts | showLayerBorders": {
|
|
774
768
|
"message": "Ŝh́ôẃ l̂áŷér̂ b́ôŕd̂ér̂ś"
|
|
775
769
|
},
|
|
@@ -992,9 +986,6 @@
|
|
|
992
986
|
"entrypoints/inspector_main/RenderingOptions.ts | highlightsFramesRedDetectedToBe": {
|
|
993
987
|
"message": "Ĥíĝh́l̂íĝh́t̂ś f̂ŕâḿêś (r̂éd̂) d́êt́êćt̂éd̂ t́ô b́ê ád̂ś."
|
|
994
988
|
},
|
|
995
|
-
"entrypoints/inspector_main/RenderingOptions.ts | hittestBorders": {
|
|
996
|
-
"message": "Ĥít̂-t́êśt̂ b́ôŕd̂ér̂ś"
|
|
997
|
-
},
|
|
998
989
|
"entrypoints/inspector_main/RenderingOptions.ts | layerBorders": {
|
|
999
990
|
"message": "L̂áŷér̂ b́ôŕd̂ér̂ś"
|
|
1000
991
|
},
|
|
@@ -1016,9 +1007,6 @@
|
|
|
1016
1007
|
"entrypoints/inspector_main/RenderingOptions.ts | showsAnOverlayWithCoreWebVitals": {
|
|
1017
1008
|
"message": "Ŝh́ôẃŝ án̂ óv̂ér̂ĺâý ŵít̂h́ Ĉór̂é Ŵéb̂ V́ît́âĺŝ."
|
|
1018
1009
|
},
|
|
1019
|
-
"entrypoints/inspector_main/RenderingOptions.ts | showsBordersAroundHittestRegions": {
|
|
1020
|
-
"message": "Ŝh́ôẃŝ b́ôŕd̂ér̂ś âŕôún̂d́ ĥít̂-t́êśt̂ ŕêǵîón̂ś."
|
|
1021
|
-
},
|
|
1022
1010
|
"entrypoints/inspector_main/RenderingOptions.ts | showsLayerBordersOrangeoliveAnd": {
|
|
1023
1011
|
"message": "Ŝh́ôẃŝ ĺâýêŕ b̂ór̂d́êŕŝ (ór̂án̂ǵê/ól̂ív̂é) âńd̂ t́îĺêś (ĉýâń)."
|
|
1024
1012
|
},
|
|
@@ -289,6 +289,10 @@ export class CSSStyleDeclaration {
|
|
|
289
289
|
return this.#allPropertiesInternal;
|
|
290
290
|
}
|
|
291
291
|
|
|
292
|
+
hasActiveProperty(name: string): boolean {
|
|
293
|
+
return this.#activePropertyMap.has(name);
|
|
294
|
+
}
|
|
295
|
+
|
|
292
296
|
getPropertyValue(name: string): string {
|
|
293
297
|
const property = this.#activePropertyMap.get(name);
|
|
294
298
|
return property ? property.value : '';
|
|
@@ -79,9 +79,6 @@ export class OverlayModel extends SDKModel<EventTypes> implements ProtocolProxyA
|
|
|
79
79
|
#showScrollBottleneckRectsSetting: Common.Settings.Setting<any>;
|
|
80
80
|
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
81
81
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
82
|
-
#showHitTestBordersSetting: Common.Settings.Setting<any>;
|
|
83
|
-
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
84
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
85
82
|
#showWebVitalsSetting: Common.Settings.Setting<any>;
|
|
86
83
|
#registeredListeners: Common.EventTarget.EventDescriptor[];
|
|
87
84
|
#showViewportSizeOnResize: boolean;
|
|
@@ -123,7 +120,6 @@ export class OverlayModel extends SDKModel<EventTypes> implements ProtocolProxyA
|
|
|
123
120
|
this.#showFPSCounterSetting = Common.Settings.Settings.instance().moduleSetting('showFPSCounter');
|
|
124
121
|
this.#showScrollBottleneckRectsSetting =
|
|
125
122
|
Common.Settings.Settings.instance().moduleSetting('showScrollBottleneckRects');
|
|
126
|
-
this.#showHitTestBordersSetting = Common.Settings.Settings.instance().moduleSetting('showHitTestBorders');
|
|
127
123
|
this.#showWebVitalsSetting = Common.Settings.Settings.instance().moduleSetting('showWebVitals');
|
|
128
124
|
|
|
129
125
|
this.#registeredListeners = [];
|
|
@@ -213,8 +209,6 @@ export class OverlayModel extends SDKModel<EventTypes> implements ProtocolProxyA
|
|
|
213
209
|
this.#showScrollBottleneckRectsSetting.addChangeListener(
|
|
214
210
|
() => this.overlayAgent.invoke_setShowScrollBottleneckRects(
|
|
215
211
|
{show: this.#showScrollBottleneckRectsSetting.get()})),
|
|
216
|
-
this.#showHitTestBordersSetting.addChangeListener(
|
|
217
|
-
() => this.overlayAgent.invoke_setShowHitTestBorders({show: this.#showHitTestBordersSetting.get()})),
|
|
218
212
|
this.#showWebVitalsSetting.addChangeListener(
|
|
219
213
|
() => this.overlayAgent.invoke_setShowWebVitals({show: this.#showWebVitalsSetting.get()})),
|
|
220
214
|
];
|
|
@@ -237,9 +231,6 @@ export class OverlayModel extends SDKModel<EventTypes> implements ProtocolProxyA
|
|
|
237
231
|
if (this.#showScrollBottleneckRectsSetting.get()) {
|
|
238
232
|
this.overlayAgent.invoke_setShowScrollBottleneckRects({show: true});
|
|
239
233
|
}
|
|
240
|
-
if (this.#showHitTestBordersSetting.get()) {
|
|
241
|
-
this.overlayAgent.invoke_setShowHitTestBorders({show: true});
|
|
242
|
-
}
|
|
243
234
|
if (this.#showWebVitalsSetting.get()) {
|
|
244
235
|
this.overlayAgent.invoke_setShowWebVitals({show: true});
|
|
245
236
|
}
|
|
@@ -155,14 +155,6 @@ const UIStrings = {
|
|
|
155
155
|
*/
|
|
156
156
|
hideScrollPerformanceBottlenecks: 'Hide scroll performance bottlenecks',
|
|
157
157
|
/**
|
|
158
|
-
*@description Title of a setting under the Rendering category that can be invoked through the Command Menu
|
|
159
|
-
*/
|
|
160
|
-
showHittestBorders: 'Show hit-test borders',
|
|
161
|
-
/**
|
|
162
|
-
*@description Title of a setting under the Rendering category that can be invoked through the Command Menu
|
|
163
|
-
*/
|
|
164
|
-
hideHittestBorders: 'Hide hit-test borders',
|
|
165
|
-
/**
|
|
166
158
|
*@description Title of a Rendering setting that can be invoked through the Command Menu
|
|
167
159
|
*/
|
|
168
160
|
emulateAFocusedPage: 'Emulate a focused page',
|
|
@@ -665,24 +657,6 @@ Common.Settings.registerSettingExtension({
|
|
|
665
657
|
defaultValue: false,
|
|
666
658
|
});
|
|
667
659
|
|
|
668
|
-
Common.Settings.registerSettingExtension({
|
|
669
|
-
category: Common.Settings.SettingCategory.RENDERING,
|
|
670
|
-
settingName: 'showHitTestBorders',
|
|
671
|
-
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
672
|
-
storageType: Common.Settings.SettingStorageType.Session,
|
|
673
|
-
options: [
|
|
674
|
-
{
|
|
675
|
-
value: true,
|
|
676
|
-
title: i18nLazyString(UIStrings.showHittestBorders),
|
|
677
|
-
},
|
|
678
|
-
{
|
|
679
|
-
value: false,
|
|
680
|
-
title: i18nLazyString(UIStrings.hideHittestBorders),
|
|
681
|
-
},
|
|
682
|
-
],
|
|
683
|
-
defaultValue: false,
|
|
684
|
-
});
|
|
685
|
-
|
|
686
660
|
Common.Settings.registerSettingExtension({
|
|
687
661
|
category: Common.Settings.SettingCategory.RENDERING,
|
|
688
662
|
title: i18nLazyString(UIStrings.emulateAFocusedPage),
|
|
@@ -95,16 +95,6 @@ const UIStrings = {
|
|
|
95
95
|
*/
|
|
96
96
|
highlightsFramesRedDetectedToBe: 'Highlights frames (red) detected to be ads.',
|
|
97
97
|
/**
|
|
98
|
-
* @description The name of a checkbox setting in the Rendering tool. This setting shows borders
|
|
99
|
-
* around hit-test regions. 'hit-test regions' are areas on the page where the browser is listening
|
|
100
|
-
* for mouse clicks.
|
|
101
|
-
*/
|
|
102
|
-
hittestBorders: 'Hit-test borders',
|
|
103
|
-
/**
|
|
104
|
-
* @description Explanation text for the 'Hit-test borders' setting in the Rendering tool.
|
|
105
|
-
*/
|
|
106
|
-
showsBordersAroundHittestRegions: 'Shows borders around hit-test regions.',
|
|
107
|
-
/**
|
|
108
98
|
* @description The name of a checkbox setting in the Rendering tool. This setting shows an overlay
|
|
109
99
|
* with Core Web Vitals. Core Web Vitals: https://support.google.com/webmasters/answer/9205520?hl=en
|
|
110
100
|
*/
|
|
@@ -246,9 +236,6 @@ export class RenderingOptionsView extends UI.Widget.VBox {
|
|
|
246
236
|
this.appendCheckbox(
|
|
247
237
|
i18nString(UIStrings.highlightAdFrames), i18nString(UIStrings.highlightsFramesRedDetectedToBe),
|
|
248
238
|
Common.Settings.Settings.instance().moduleSetting('showAdHighlights'));
|
|
249
|
-
this.appendCheckbox(
|
|
250
|
-
i18nString(UIStrings.hittestBorders), i18nString(UIStrings.showsBordersAroundHittestRegions),
|
|
251
|
-
Common.Settings.Settings.instance().moduleSetting('showHitTestBorders'));
|
|
252
239
|
this.appendCheckbox(
|
|
253
240
|
i18nString(UIStrings.coreWebVitals), i18nString(UIStrings.showsAnOverlayWithCoreWebVitals),
|
|
254
241
|
Common.Settings.Settings.instance().moduleSetting('showWebVitals'));
|
|
@@ -306,8 +306,6 @@ export class MainImpl {
|
|
|
306
306
|
Root.Runtime.experiments.register('timelineEventInitiators', 'Timeline: event initiators');
|
|
307
307
|
Root.Runtime.experiments.register('timelineInvalidationTracking', 'Timeline: invalidation tracking', true);
|
|
308
308
|
Root.Runtime.experiments.register('timelineShowAllEvents', 'Timeline: show all events', true);
|
|
309
|
-
Root.Runtime.experiments.register(
|
|
310
|
-
'timelineV8RuntimeCallStats', 'Timeline: V8 Runtime Call Stats on Timeline', true);
|
|
311
309
|
Root.Runtime.experiments.register('timelineWebGL', 'Timeline: WebGL-based flamechart');
|
|
312
310
|
Root.Runtime.experiments.register('timelineReplayEvent', 'Timeline: Replay input events', true);
|
|
313
311
|
Root.Runtime.experiments.register(
|
|
@@ -59,7 +59,6 @@ export class TimelineJSProfileProcessor {
|
|
|
59
59
|
|
|
60
60
|
static generateJSFrameEvents(events: SDK.TracingModel.Event[], config: {
|
|
61
61
|
showAllEvents: boolean,
|
|
62
|
-
showRuntimeCallStats: boolean,
|
|
63
62
|
showNativeFunctions: boolean,
|
|
64
63
|
}): SDK.TracingModel.Event[] {
|
|
65
64
|
function equalFrames(frame1: Protocol.Runtime.CallFrame, frame2: Protocol.Runtime.CallFrame): boolean {
|
|
@@ -85,7 +84,7 @@ export class TimelineJSProfileProcessor {
|
|
|
85
84
|
const lockedJsStackDepth: number[] = [];
|
|
86
85
|
let ordinal = 0;
|
|
87
86
|
let fakeJSInvocation = false;
|
|
88
|
-
const {showAllEvents,
|
|
87
|
+
const {showAllEvents, showNativeFunctions} = config;
|
|
89
88
|
|
|
90
89
|
function onStartEvent(e: SDK.TracingModel.Event): void {
|
|
91
90
|
if (fakeJSInvocation) {
|
|
@@ -135,15 +134,10 @@ export class TimelineJSProfileProcessor {
|
|
|
135
134
|
jsFramesStack.length = depth;
|
|
136
135
|
}
|
|
137
136
|
|
|
138
|
-
function showNativeName(name: string): boolean {
|
|
139
|
-
return showRuntimeCallStats && Boolean(TimelineJSProfileProcessor.nativeGroup(name));
|
|
140
|
-
}
|
|
141
|
-
|
|
142
137
|
function filterStackFrames(stack: Protocol.Runtime.CallFrame[]): void {
|
|
143
138
|
if (showAllEvents) {
|
|
144
139
|
return;
|
|
145
140
|
}
|
|
146
|
-
let previousNativeFrameName: (string|null)|null = null;
|
|
147
141
|
let j = 0;
|
|
148
142
|
for (let i = 0; i < stack.length; ++i) {
|
|
149
143
|
const frame = stack[i];
|
|
@@ -153,16 +147,9 @@ export class TimelineJSProfileProcessor {
|
|
|
153
147
|
continue;
|
|
154
148
|
}
|
|
155
149
|
const isNativeRuntimeFrame = TimelineJSProfileProcessor.isNativeRuntimeFrame(frame);
|
|
156
|
-
if (isNativeRuntimeFrame
|
|
157
|
-
|
|
158
|
-
}
|
|
159
|
-
const nativeFrameName =
|
|
160
|
-
isNativeRuntimeFrame ? TimelineJSProfileProcessor.nativeGroup(frame.functionName) : null;
|
|
161
|
-
if (previousNativeFrameName && previousNativeFrameName === nativeFrameName) {
|
|
162
|
-
continue;
|
|
150
|
+
if (!isNativeRuntimeFrame) {
|
|
151
|
+
stack[j++] = frame;
|
|
163
152
|
}
|
|
164
|
-
previousNativeFrameName = nativeFrameName;
|
|
165
|
-
stack[j++] = frame;
|
|
166
153
|
}
|
|
167
154
|
stack.length = j;
|
|
168
155
|
}
|
|
@@ -678,7 +678,6 @@ export class TimelineModelImpl {
|
|
|
678
678
|
if (jsSamples || events.some(e => e.name === RecordType.JSSample)) {
|
|
679
679
|
const jsFrameEvents = TimelineJSProfileProcessor.generateJSFrameEvents(events, {
|
|
680
680
|
showAllEvents: Root.Runtime.experiments.isEnabled('timelineShowAllEvents'),
|
|
681
|
-
showRuntimeCallStats: Root.Runtime.experiments.isEnabled('timelineV8RuntimeCallStats'),
|
|
682
681
|
showNativeFunctions: Common.Settings.Settings.instance().moduleSetting('showNativeFunctionsInJSProfile').get(),
|
|
683
682
|
});
|
|
684
683
|
if (jsFrameEvents && jsFrameEvents.length) {
|
|
@@ -255,6 +255,7 @@ export class ConsolePin {
|
|
|
255
255
|
]),
|
|
256
256
|
CodeMirror.EditorView.domEventHandlers({blur: (_e, view) => this.onBlur(view)}),
|
|
257
257
|
TextEditor.Config.baseConfiguration(expression),
|
|
258
|
+
TextEditor.Config.closeBrackets,
|
|
258
259
|
TextEditor.Config.autocompletion,
|
|
259
260
|
],
|
|
260
261
|
}));
|