chrome-devtools-frontend 1.0.933786 → 1.0.934857
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/config/gni/all_devtools_files.gni +0 -8
- package/config/gni/devtools_grd_files.gni +3 -3
- package/front_end/Tests.js +2 -2
- package/front_end/core/host/UserMetrics.ts +0 -1
- package/front_end/core/i18n/locales/en-US.json +3 -0
- package/front_end/core/i18n/locales/en-XL.json +3 -0
- package/front_end/core/root/Runtime.ts +0 -1
- package/front_end/core/sdk/ChildTargetManager.ts +2 -2
- package/front_end/core/sdk/DOMModel.ts +6 -10
- package/front_end/core/sdk/sdk-meta.ts +3 -0
- package/front_end/entrypoints/inspector_main/inspector_main-meta.ts +1 -0
- package/front_end/entrypoints/main/MainImpl.ts +1 -11
- package/front_end/entrypoints/main/main-meta.ts +2 -1
- package/front_end/entrypoints/shell/shell.json +0 -3
- package/front_end/models/emulation/EmulatedDevices.ts +306 -84
- package/front_end/panels/changes/changes-meta.ts +0 -3
- package/front_end/panels/console/ConsoleContextSelector.ts +1 -1
- package/front_end/panels/elements/elements-meta.ts +5 -0
- package/front_end/panels/lighthouse/LighthouseProtocolService.ts +1 -5
- package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +0 -5
- package/front_end/panels/mobile_throttling/mobile_throttling-meta.ts +1 -0
- package/front_end/panels/network/network-meta.ts +2 -0
- package/front_end/panels/profiler/profiler-meta.ts +1 -0
- package/front_end/panels/sensors/sensors-meta.ts +1 -0
- package/front_end/panels/sources/CallStackSidebarPane.ts +21 -0
- package/front_end/panels/sources/module.json +0 -2
- package/front_end/panels/sources/sources-meta.ts +12 -0
- package/front_end/panels/timeline/timeline-meta.ts +1 -0
- package/front_end/ui/components/text_editor/config.ts +1 -1
- package/front_end/ui/components/text_editor/theme.ts +8 -0
- package/front_end/ui/legacy/GlassPane.ts +4 -0
- package/front_end/ui/legacy/InspectorView.ts +0 -4
- package/front_end/ui/legacy/ViewManager.ts +10 -2
- package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +2 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +4 -3
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +5 -5
- package/front_end/ui/legacy/components/object_ui/module.json +0 -6
- package/front_end/ui/legacy/components/perf_ui/perf_ui-meta.ts +1 -0
- package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +3 -1
- package/front_end/ui/legacy/components/quick_open/quick_open-meta.ts +0 -3
- package/front_end/ui/legacy/components/source_frame/source_frame-meta.ts +1 -0
- package/front_end/ui/legacy/themeColors.css +4 -0
- package/front_end/ui/legacy/toolbar.css +18 -4
- package/package.json +1 -1
- package/front_end/panels/changes/module.json +0 -7
- package/front_end/panels/snippets/module.json +0 -6
- package/front_end/ui/legacy/components/quick_open/module.json +0 -8
|
@@ -35,7 +35,6 @@ all_devtools_files = [
|
|
|
35
35
|
"front_end/legacy_test_runner/bindings_test_runner/OverridesTestRunner.js",
|
|
36
36
|
"front_end/legacy_test_runner/bindings_test_runner/PersistenceTestRunner.js",
|
|
37
37
|
"front_end/panels/browser_debugger/module.json",
|
|
38
|
-
"front_end/panels/changes/module.json",
|
|
39
38
|
"front_end/third_party/codemirror/codemirror.css",
|
|
40
39
|
"front_end/ui/legacy/components/color_picker/module.json",
|
|
41
40
|
"front_end/ui/legacy/components/color_picker/spectrum.css",
|
|
@@ -102,11 +101,7 @@ all_devtools_files = [
|
|
|
102
101
|
"front_end/panels/network/module.json",
|
|
103
102
|
"front_end/entrypoints/node_main/module.json",
|
|
104
103
|
"front_end/entrypoints/node_main/nodeConnectionsPanel.css",
|
|
105
|
-
"front_end/ui/legacy/components/object_ui/customPreviewComponent.css",
|
|
106
104
|
"front_end/ui/legacy/components/object_ui/module.json",
|
|
107
|
-
"front_end/ui/legacy/components/object_ui/objectPopover.css",
|
|
108
|
-
"front_end/ui/legacy/components/object_ui/objectPropertiesSection.css",
|
|
109
|
-
"front_end/ui/legacy/components/object_ui/objectValue.css",
|
|
110
105
|
"front_end/ui/legacy/components/perf_ui/chartViewport.css",
|
|
111
106
|
"front_end/ui/legacy/components/perf_ui/filmStripView.css",
|
|
112
107
|
"front_end/ui/legacy/components/perf_ui/flameChart.css",
|
|
@@ -180,8 +175,6 @@ all_devtools_files = [
|
|
|
180
175
|
"front_end/models/issues_manager/descriptions/TwaPageUnavailableOffline.md",
|
|
181
176
|
"front_end/panels/developer_resources/module.json",
|
|
182
177
|
"front_end/panels/protocol_monitor/module.json",
|
|
183
|
-
"front_end/ui/legacy/components/quick_open/filteredListWidget.css",
|
|
184
|
-
"front_end/ui/legacy/components/quick_open/module.json",
|
|
185
178
|
"front_end/panels/application/module.json",
|
|
186
179
|
"front_end/panels/screencast/module.json",
|
|
187
180
|
"front_end/legacy_test_runner/sdk_test_runner/sdk_test_runner.js",
|
|
@@ -190,7 +183,6 @@ all_devtools_files = [
|
|
|
190
183
|
"front_end/panels/security/module.json",
|
|
191
184
|
"front_end/panels/settings/module.json",
|
|
192
185
|
"front_end/entrypoints/shell/shell.json",
|
|
193
|
-
"front_end/panels/snippets/module.json",
|
|
194
186
|
"front_end/ui/legacy/components/source_frame/fontView.css",
|
|
195
187
|
"front_end/ui/legacy/components/source_frame/imageView.css",
|
|
196
188
|
"front_end/ui/legacy/components/source_frame/jsonView.css",
|
|
@@ -344,7 +344,6 @@ grd_files_release_sources = [
|
|
|
344
344
|
"front_end/panels/changes/changes-legacy.js",
|
|
345
345
|
"front_end/panels/changes/changes-meta.js",
|
|
346
346
|
"front_end/panels/changes/changes.js",
|
|
347
|
-
"front_end/panels/changes/changes_module.js",
|
|
348
347
|
"front_end/panels/console/console-legacy.js",
|
|
349
348
|
"front_end/panels/console/console-meta.js",
|
|
350
349
|
"front_end/panels/console/console.js",
|
|
@@ -441,7 +440,6 @@ grd_files_release_sources = [
|
|
|
441
440
|
"front_end/panels/settings/settings_module.js",
|
|
442
441
|
"front_end/panels/snippets/snippets-legacy.js",
|
|
443
442
|
"front_end/panels/snippets/snippets.js",
|
|
444
|
-
"front_end/panels/snippets/snippets_module.js",
|
|
445
443
|
"front_end/panels/sources/sources-legacy.js",
|
|
446
444
|
"front_end/panels/sources/sources-meta.js",
|
|
447
445
|
"front_end/panels/sources/sources.js",
|
|
@@ -531,7 +529,6 @@ grd_files_release_sources = [
|
|
|
531
529
|
"front_end/ui/legacy/components/quick_open/quick_open-legacy.js",
|
|
532
530
|
"front_end/ui/legacy/components/quick_open/quick_open-meta.js",
|
|
533
531
|
"front_end/ui/legacy/components/quick_open/quick_open.js",
|
|
534
|
-
"front_end/ui/legacy/components/quick_open/quick_open_module.js",
|
|
535
532
|
"front_end/ui/legacy/components/source_frame/source_frame-legacy.js",
|
|
536
533
|
"front_end/ui/legacy/components/source_frame/source_frame-meta.js",
|
|
537
534
|
"front_end/ui/legacy/components/source_frame/source_frame.js",
|
|
@@ -1536,6 +1533,8 @@ grd_files_debug_sources = [
|
|
|
1536
1533
|
"front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.js",
|
|
1537
1534
|
"front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.js",
|
|
1538
1535
|
"front_end/ui/legacy/components/object_ui/RemoteObjectPreviewFormatter.js",
|
|
1536
|
+
"front_end/ui/legacy/components/object_ui/customPreviewComponent.css.js",
|
|
1537
|
+
"front_end/ui/legacy/components/object_ui/objectPopover.css.js",
|
|
1539
1538
|
"front_end/ui/legacy/components/object_ui/objectPropertiesSection.css.js",
|
|
1540
1539
|
"front_end/ui/legacy/components/object_ui/objectValue.css.js",
|
|
1541
1540
|
"front_end/ui/legacy/components/perf_ui/ChartViewport.js",
|
|
@@ -1556,6 +1555,7 @@ grd_files_debug_sources = [
|
|
|
1556
1555
|
"front_end/ui/legacy/components/quick_open/QuickInput.js",
|
|
1557
1556
|
"front_end/ui/legacy/components/quick_open/QuickOpen.js",
|
|
1558
1557
|
"front_end/ui/legacy/components/quick_open/QuickPick.js",
|
|
1558
|
+
"front_end/ui/legacy/components/quick_open/filteredListWidget.css.js",
|
|
1559
1559
|
"front_end/ui/legacy/components/source_frame/BinaryResourceViewFactory.js",
|
|
1560
1560
|
"front_end/ui/legacy/components/source_frame/FontView.js",
|
|
1561
1561
|
"front_end/ui/legacy/components/source_frame/ImageView.js",
|
package/front_end/Tests.js
CHANGED
|
@@ -145,10 +145,10 @@
|
|
|
145
145
|
* Run specified test on a fresh instance of the test suite.
|
|
146
146
|
* @param {Array<string>} args method name followed by its parameters.
|
|
147
147
|
*/
|
|
148
|
-
TestSuite.prototype.dispatchOnTestSuite = function(args) {
|
|
148
|
+
TestSuite.prototype.dispatchOnTestSuite = async function(args) {
|
|
149
149
|
const methodName = args.shift();
|
|
150
150
|
try {
|
|
151
|
-
this[methodName].apply(this, args);
|
|
151
|
+
await this[methodName].apply(this, args);
|
|
152
152
|
if (!this.controlTaken_) {
|
|
153
153
|
this.reportOk_();
|
|
154
154
|
}
|
|
@@ -569,7 +569,6 @@ export const DevtoolsExperiments: {
|
|
|
569
569
|
'ignoreListJSFramesOnTimeline': 43,
|
|
570
570
|
'contrastIssues': 44,
|
|
571
571
|
'experimentalCookieFeatures': 45,
|
|
572
|
-
'localizedDevTools': 46,
|
|
573
572
|
'bfcacheDebugging': 47,
|
|
574
573
|
'hideIssuesFeature': 48,
|
|
575
574
|
'reportingApiDebugging': 49,
|
|
@@ -9104,6 +9104,9 @@
|
|
|
9104
9104
|
"panels/sources/CallStackSidebarPane.ts | addScriptToIgnoreList": {
|
|
9105
9105
|
"message": "Add script to ignore list"
|
|
9106
9106
|
},
|
|
9107
|
+
"panels/sources/CallStackSidebarPane.ts | callFrameWarnings": {
|
|
9108
|
+
"message": "Some call frames have warnings"
|
|
9109
|
+
},
|
|
9107
9110
|
"panels/sources/CallStackSidebarPane.ts | callStack": {
|
|
9108
9111
|
"message": "Call Stack"
|
|
9109
9112
|
},
|
|
@@ -9104,6 +9104,9 @@
|
|
|
9104
9104
|
"panels/sources/CallStackSidebarPane.ts | addScriptToIgnoreList": {
|
|
9105
9105
|
"message": "Âd́d̂ śĉŕîṕt̂ t́ô íĝńôŕê ĺîśt̂"
|
|
9106
9106
|
},
|
|
9107
|
+
"panels/sources/CallStackSidebarPane.ts | callFrameWarnings": {
|
|
9108
|
+
"message": "Ŝóm̂é ĉál̂ĺ f̂ŕâḿêś ĥáv̂é ŵár̂ńîńĝś"
|
|
9109
|
+
},
|
|
9107
9110
|
"panels/sources/CallStackSidebarPane.ts | callStack": {
|
|
9108
9111
|
"message": "Ĉál̂ĺ Ŝt́âćk̂"
|
|
9109
9112
|
},
|
|
@@ -118,14 +118,14 @@ export class ChildTargetManager extends SDKModel<EventTypes> implements Protocol
|
|
|
118
118
|
let targetName = '';
|
|
119
119
|
if (targetInfo.type === 'worker' && targetInfo.title && targetInfo.title !== targetInfo.url) {
|
|
120
120
|
targetName = targetInfo.title;
|
|
121
|
-
} else if (targetInfo.type !== 'iframe') {
|
|
121
|
+
} else if (targetInfo.type !== 'iframe' && targetInfo.type !== 'webview') {
|
|
122
122
|
const parsedURL = Common.ParsedURL.ParsedURL.fromString(targetInfo.url);
|
|
123
123
|
targetName =
|
|
124
124
|
parsedURL ? parsedURL.lastPathComponentWithFragment() : '#' + (++ChildTargetManager.lastAnonymousTargetId);
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
let type = Type.Browser;
|
|
128
|
-
if (targetInfo.type === 'iframe') {
|
|
128
|
+
if (targetInfo.type === 'iframe' || targetInfo.type === 'webview') {
|
|
129
129
|
type = Type.Frame;
|
|
130
130
|
}
|
|
131
131
|
// TODO(lfg): ensure proper capabilities for child pages (e.g. portals).
|
|
@@ -159,14 +159,14 @@ export class DOMNode {
|
|
|
159
159
|
this.childrenInternal = [];
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
+
const frameOwnerTags = new Set(['EMBED', 'IFRAME', 'OBJECT', 'PORTAL']);
|
|
162
163
|
if (payload.contentDocument) {
|
|
163
164
|
this.contentDocumentInternal = new DOMDocument(this.#domModelInternal, payload.contentDocument);
|
|
164
165
|
this.contentDocumentInternal.parentNode = this;
|
|
165
166
|
this.childrenInternal = [];
|
|
166
|
-
} else if (
|
|
167
|
-
// At this point we know we are in an OOPIF, otherwise
|
|
168
|
-
this.childDocumentPromiseForTesting =
|
|
169
|
-
this.createChildDocumentPromiseForTesting(payload.frameId, this.#domModelInternal.target());
|
|
167
|
+
} else if (payload.frameId && frameOwnerTags.has(payload.nodeName)) {
|
|
168
|
+
// At this point we know we are in an OOPIF, otherwise `payload.contentDocument` would have been set.
|
|
169
|
+
this.childDocumentPromiseForTesting = this.requestChildDocument(payload.frameId, this.#domModelInternal.target());
|
|
170
170
|
this.childrenInternal = [];
|
|
171
171
|
}
|
|
172
172
|
|
|
@@ -205,14 +205,10 @@ export class DOMNode {
|
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
-
private async
|
|
209
|
-
Promise<DOMDocument|null> {
|
|
208
|
+
private async requestChildDocument(frameId: Protocol.Page.FrameId, notInTarget: Target): Promise<DOMDocument|null> {
|
|
210
209
|
const frame = await FrameManager.instance().getOrWaitForFrame(frameId, notInTarget);
|
|
211
210
|
const childModel = frame.resourceTreeModel()?.target().model(DOMModel);
|
|
212
|
-
|
|
213
|
-
return childModel.requestDocument();
|
|
214
|
-
}
|
|
215
|
-
return null;
|
|
211
|
+
return childModel?.requestDocument() || null;
|
|
216
212
|
}
|
|
217
213
|
|
|
218
214
|
isAdFrameNode(): boolean {
|
|
@@ -331,12 +331,14 @@ const str_ = i18n.i18n.registerUIStrings('core/sdk/sdk-meta.ts', UIStrings);
|
|
|
331
331
|
const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
|
|
332
332
|
|
|
333
333
|
Common.Settings.registerSettingExtension({
|
|
334
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
334
335
|
settingName: 'skipStackFramesPattern',
|
|
335
336
|
settingType: Common.Settings.SettingType.REGEX,
|
|
336
337
|
defaultValue: '',
|
|
337
338
|
});
|
|
338
339
|
|
|
339
340
|
Common.Settings.registerSettingExtension({
|
|
341
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
340
342
|
settingName: 'skipContentScripts',
|
|
341
343
|
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
342
344
|
defaultValue: false,
|
|
@@ -433,6 +435,7 @@ Common.Settings.registerSettingExtension({
|
|
|
433
435
|
|
|
434
436
|
Common.Settings.registerSettingExtension({
|
|
435
437
|
category: Common.Settings.SettingCategory.ELEMENTS,
|
|
438
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
436
439
|
title: i18nLazyString(UIStrings.showRulers),
|
|
437
440
|
settingName: 'showMetricsRulers',
|
|
438
441
|
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
@@ -216,6 +216,7 @@ Common.Settings.registerSettingExtension({
|
|
|
216
216
|
|
|
217
217
|
Common.Settings.registerSettingExtension({
|
|
218
218
|
category: Common.Settings.SettingCategory.GLOBAL,
|
|
219
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
219
220
|
title: i18nLazyString(UIStrings.autoOpenDevTools),
|
|
220
221
|
settingName: 'autoAttachToCreatedPages',
|
|
221
222
|
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
@@ -151,13 +151,7 @@ export class MainImpl {
|
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
async requestAndRegisterLocaleData(): Promise<void> {
|
|
154
|
-
|
|
155
|
-
// TODO(crbug.com/1163928): Remove the check when the experiment is gone.
|
|
156
|
-
let settingLanguage = 'en-US';
|
|
157
|
-
if (Root.Runtime.experiments.isEnabled(Root.Runtime.ExperimentName.LOCALIZED_DEVTOOLS)) {
|
|
158
|
-
settingLanguage = Common.Settings.Settings.instance().moduleSetting<string>('language').get();
|
|
159
|
-
}
|
|
160
|
-
|
|
154
|
+
const settingLanguage = Common.Settings.Settings.instance().moduleSetting<string>('language').get();
|
|
161
155
|
const devToolsLocale = i18n.DevToolsLocale.DevToolsLocale.instance({
|
|
162
156
|
create: true,
|
|
163
157
|
data: {
|
|
@@ -325,15 +319,11 @@ export class MainImpl {
|
|
|
325
319
|
// Hide Issues Feature.
|
|
326
320
|
Root.Runtime.experiments.register('groupAndHideIssuesByKind', 'Allow grouping and hiding of issues by IssueKind');
|
|
327
321
|
|
|
328
|
-
// Localized DevTools, hide "locale selector" setting behind an experiment.
|
|
329
|
-
Root.Runtime.experiments.register(Root.Runtime.ExperimentName.LOCALIZED_DEVTOOLS, 'Enable localized DevTools');
|
|
330
|
-
|
|
331
322
|
// Checkbox in the Settings UI to enable Chrome Sync is behind this experiment.
|
|
332
323
|
Root.Runtime.experiments.register(
|
|
333
324
|
Root.Runtime.ExperimentName.SYNC_SETTINGS, 'Sync DevTools settings with Chrome Sync');
|
|
334
325
|
|
|
335
326
|
Root.Runtime.experiments.enableExperimentsByDefault([
|
|
336
|
-
Root.Runtime.ExperimentName.LOCALIZED_DEVTOOLS,
|
|
337
327
|
'sourceOrderViewer',
|
|
338
328
|
'hideIssuesFeature',
|
|
339
329
|
'bfcacheDebugging',
|
|
@@ -717,6 +717,7 @@ Common.Settings.registerSettingExtension({
|
|
|
717
717
|
});
|
|
718
718
|
|
|
719
719
|
Common.Settings.registerSettingExtension({
|
|
720
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
720
721
|
settingName: 'activeKeybindSet',
|
|
721
722
|
settingType: Common.Settings.SettingType.ENUM,
|
|
722
723
|
defaultValue: 'devToolsDefault',
|
|
@@ -768,7 +769,6 @@ Common.Settings.registerSettingExtension({
|
|
|
768
769
|
...filterLocalesForSettings().map(locale => createOptionForLocale(locale)),
|
|
769
770
|
],
|
|
770
771
|
reloadRequired: true,
|
|
771
|
-
experiment: Root.Runtime.ExperimentName.LOCALIZED_DEVTOOLS,
|
|
772
772
|
});
|
|
773
773
|
|
|
774
774
|
Common.Settings.registerSettingExtension({
|
|
@@ -783,6 +783,7 @@ Common.Settings.registerSettingExtension({
|
|
|
783
783
|
});
|
|
784
784
|
|
|
785
785
|
Common.Settings.registerSettingExtension({
|
|
786
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
786
787
|
settingName: 'userShortcuts',
|
|
787
788
|
settingType: Common.Settings.SettingType.ARRAY,
|
|
788
789
|
defaultValue: [],
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
{ "name": "entrypoints/main", "type": "autostart" },
|
|
5
5
|
{ "name": "ui/legacy", "type": "autostart" },
|
|
6
6
|
|
|
7
|
-
{ "name": "panels/changes" },
|
|
8
7
|
{ "name": "ui/legacy/components/color_picker" },
|
|
9
8
|
{ "name": "panels/console" },
|
|
10
9
|
{ "name": "panels/coverage" },
|
|
@@ -16,10 +15,8 @@
|
|
|
16
15
|
{ "name": "ui/legacy/components/perf_ui" },
|
|
17
16
|
{ "name": "panels/profiler" },
|
|
18
17
|
{ "name": "panels/protocol_monitor"},
|
|
19
|
-
{ "name": "ui/legacy/components/quick_open" },
|
|
20
18
|
{ "name": "panels/search" },
|
|
21
19
|
{ "name": "panels/settings" },
|
|
22
|
-
{ "name": "panels/snippets" },
|
|
23
20
|
{ "name": "ui/legacy/components/source_frame" },
|
|
24
21
|
{ "name": "panels/sources" },
|
|
25
22
|
{ "name": "ui/legacy/components/text_editor" }
|