chrome-devtools-frontend 1.0.946351 → 1.0.946920

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.
Files changed (30) hide show
  1. package/config/gni/all_devtools_files.gni +0 -2
  2. package/config/gni/devtools_grd_files.gni +3 -6
  3. package/front_end/core/host/InspectorFrontendHostAPI.ts +0 -1
  4. package/front_end/core/host/UserMetrics.ts +0 -21
  5. package/front_end/core/i18n/locales/en-US.json +21 -15
  6. package/front_end/core/i18n/locales/en-XL.json +21 -15
  7. package/front_end/devtools_compatibility.js +1 -1
  8. package/front_end/entrypoints/{node_main → node_app}/NodeConnectionsPanel.ts +1 -1
  9. package/front_end/entrypoints/{node_main → node_app}/NodeMain.ts +2 -4
  10. package/front_end/entrypoints/{node_main → node_app}/nodeConnectionsPanel.css +0 -0
  11. package/front_end/entrypoints/node_app/node_app.ts +81 -0
  12. package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +0 -11
  13. package/front_end/panels/elements/StylesSidebarPane.ts +0 -1
  14. package/front_end/panels/emulation/DeviceModeToolbar.ts +0 -16
  15. package/front_end/panels/sources/DebuggerPlugin.ts +1 -1
  16. package/front_end/panels/timeline/TimelineTreeView.ts +1 -0
  17. package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
  18. package/front_end/third_party/codemirror.next/codemirror.next.d.ts +1486 -1423
  19. package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
  20. package/front_end/third_party/codemirror.next/package.json +9 -9
  21. package/front_end/ui/components/text_editor/javascript.ts +7 -7
  22. package/front_end/ui/legacy/InspectorView.ts +10 -0
  23. package/inspector_overlay/main.ts +2 -12
  24. package/package.json +1 -1
  25. package/scripts/check_gn.js +1 -1
  26. package/front_end/entrypoints/node_app/node_app-meta.ts +0 -43
  27. package/front_end/entrypoints/node_app/node_app.js +0 -16
  28. package/front_end/entrypoints/node_app/node_app.json +0 -3
  29. package/front_end/entrypoints/node_main/node_main-meta.ts +0 -48
  30. package/front_end/entrypoints/node_main/node_main.ts +0 -11
@@ -10,7 +10,6 @@ all_devtools_files = [
10
10
  "front_end/entrypoints/inspector/inspector.js",
11
11
  "front_end/entrypoints/js_app/js_app.js",
12
12
  "front_end/entrypoints/ndb_app/ndb_app.js",
13
- "front_end/entrypoints/node_app/node_app.js",
14
13
  "front_end/entrypoints/worker_app/worker_app.js",
15
14
  "front_end/legacy_test_runner/accessibility_test_runner/accessibility_test_runner.js",
16
15
  "front_end/legacy_test_runner/application_test_runner/application_test_runner.js",
@@ -50,7 +49,6 @@ all_devtools_files = [
50
49
  "front_end/legacy_test_runner/layers_test_runner/layers_test_runner.js",
51
50
  "front_end/entrypoints/ndb_app/ndb_app.json",
52
51
  "front_end/legacy_test_runner/network_test_runner/network_test_runner.js",
53
- "front_end/entrypoints/node_main/nodeConnectionsPanel.css",
54
52
  "front_end/legacy_test_runner/performance_test_runner/performance_test_runner.js",
55
53
  "front_end/legacy_test_runner/performance_test_runner/TimelineDataTestRunner.js",
56
54
  "front_end/legacy_test_runner/performance_test_runner/TimelineTestRunner.js",
@@ -222,10 +222,7 @@ grd_files_release_sources = [
222
222
  "front_end/entrypoints/main/main-meta.js",
223
223
  "front_end/entrypoints/main/main.js",
224
224
  "front_end/entrypoints/ndb_app/ndb_app.js",
225
- "front_end/entrypoints/node_app/node_app-meta.js",
226
225
  "front_end/entrypoints/node_app/node_app.js",
227
- "front_end/entrypoints/node_main/node_main-meta.js",
228
- "front_end/entrypoints/node_main/node_main.js",
229
226
  "front_end/entrypoints/shell/shell.js",
230
227
  "front_end/entrypoints/startup/startup.js",
231
228
  "front_end/entrypoints/wasmparser_worker/wasmparser_worker-entrypoint.js",
@@ -653,9 +650,9 @@ grd_files_debug_sources = [
653
650
  "front_end/entrypoints/main/ExecutionContextSelector.js",
654
651
  "front_end/entrypoints/main/MainImpl.js",
655
652
  "front_end/entrypoints/main/SimpleApp.js",
656
- "front_end/entrypoints/node_main/NodeConnectionsPanel.js",
657
- "front_end/entrypoints/node_main/NodeMain.js",
658
- "front_end/entrypoints/node_main/nodeConnectionsPanel.css.js",
653
+ "front_end/entrypoints/node_app/NodeConnectionsPanel.js",
654
+ "front_end/entrypoints/node_app/NodeMain.js",
655
+ "front_end/entrypoints/node_app/nodeConnectionsPanel.css.js",
659
656
  "front_end/entrypoints/startup/RuntimeInstantiator.js",
660
657
  "front_end/entrypoints/wasmparser_worker/WasmParserWorker.js",
661
658
  "front_end/generated/ARIAProperties.js",
@@ -361,7 +361,6 @@ export enum EnumeratedHistogram {
361
361
  ExperimentEnabledAtLaunch = 'DevTools.ExperimentEnabledAtLaunch',
362
362
  ExperimentEnabled = 'DevTools.ExperimentEnabled',
363
363
  ExperimentDisabled = 'DevTools.ExperimentDisabled',
364
- CssEditorOpened = 'DevTools.CssEditorOpened',
365
364
  DeveloperResourceLoaded = 'DevTools.DeveloperResourceLoaded',
366
365
  DeveloperResourceScheme = 'DevTools.DeveloperResourceScheme',
367
366
  LinearMemoryInspectorRevealedFrom = 'DevTools.LinearMemoryInspector.RevealedFrom',
@@ -164,18 +164,6 @@ export class UserMetrics {
164
164
  EnumeratedHistogram.DualScreenDeviceEmulated, emulationAction, size);
165
165
  }
166
166
 
167
- cssEditorOpened(editorName: string): void {
168
- const size = Object.keys(CssEditorOpened).length + 1;
169
- const key = editorName;
170
- const value = CssEditorOpened[key];
171
-
172
- if (value === undefined) {
173
- return;
174
- }
175
-
176
- InspectorFrontendHostInstance.recordEnumeratedHistogram(EnumeratedHistogram.CssEditorOpened, value, size);
177
- }
178
-
179
167
  experimentEnabledAtLaunch(experimentId: string): void {
180
168
  const size = DevtoolsExperiments['__lastValidEnumPosition'] + 1;
181
169
  const experiment = DevtoolsExperiments[experimentId];
@@ -557,15 +545,6 @@ export enum DualScreenDeviceEmulated {
557
545
  PlatformSupportUsed = 2, // user starts to use platform dual screen support feature.
558
546
  }
559
547
 
560
- export const CssEditorOpened: {
561
- [x: string]: number,
562
- } = {
563
- 'colorPicker': 0,
564
- 'shadowEditor': 1,
565
- 'bezierEditor': 2,
566
- 'fontEditor': 3,
567
- };
568
-
569
548
  /**
570
549
  * This list should contain the currently active Devtools Experiments.
571
550
  * Therefore, it is possible that the id's will no longer be continuous
@@ -1208,40 +1208,40 @@
1208
1208
  "entrypoints/main/MainImpl.ts | undockIntoSeparateWindow": {
1209
1209
  "message": "Undock into separate window"
1210
1210
  },
1211
- "entrypoints/node_app/node_app-meta.ts | node": {
1212
- "message": "Node"
1211
+ "entrypoints/node_app/node_app.ts | connection": {
1212
+ "message": "Connection"
1213
1213
  },
1214
- "entrypoints/node_app/node_app-meta.ts | showNode": {
1214
+ "entrypoints/node_app/node_app.ts | networkTitle": {
1215
1215
  "message": "Node"
1216
1216
  },
1217
- "entrypoints/node_main/node_main-meta.ts | connection": {
1218
- "message": "Connection"
1219
- },
1220
- "entrypoints/node_main/node_main-meta.ts | node": {
1217
+ "entrypoints/node_app/node_app.ts | node": {
1221
1218
  "message": "node"
1222
1219
  },
1223
- "entrypoints/node_main/node_main-meta.ts | showConnection": {
1220
+ "entrypoints/node_app/node_app.ts | showConnection": {
1224
1221
  "message": "Show Connection"
1225
1222
  },
1226
- "entrypoints/node_main/NodeConnectionsPanel.ts | addConnection": {
1223
+ "entrypoints/node_app/node_app.ts | showNode": {
1224
+ "message": "Node"
1225
+ },
1226
+ "entrypoints/node_app/NodeConnectionsPanel.ts | addConnection": {
1227
1227
  "message": "Add connection"
1228
1228
  },
1229
- "entrypoints/node_main/NodeConnectionsPanel.ts | networkAddressEgLocalhost": {
1229
+ "entrypoints/node_app/NodeConnectionsPanel.ts | networkAddressEgLocalhost": {
1230
1230
  "message": "Network address (e.g. localhost:9229)"
1231
1231
  },
1232
- "entrypoints/node_main/NodeConnectionsPanel.ts | noConnectionsSpecified": {
1232
+ "entrypoints/node_app/NodeConnectionsPanel.ts | noConnectionsSpecified": {
1233
1233
  "message": "No connections specified"
1234
1234
  },
1235
- "entrypoints/node_main/NodeConnectionsPanel.ts | nodejsDebuggingGuide": {
1235
+ "entrypoints/node_app/NodeConnectionsPanel.ts | nodejsDebuggingGuide": {
1236
1236
  "message": "Node.js debugging guide"
1237
1237
  },
1238
- "entrypoints/node_main/NodeConnectionsPanel.ts | specifyNetworkEndpointAnd": {
1238
+ "entrypoints/node_app/NodeConnectionsPanel.ts | specifyNetworkEndpointAnd": {
1239
1239
  "message": "Specify network endpoint and DevTools will connect to it automatically. Read {PH1} to learn more."
1240
1240
  },
1241
- "entrypoints/node_main/NodeMain.ts | main": {
1241
+ "entrypoints/node_app/NodeMain.ts | main": {
1242
1242
  "message": "Main"
1243
1243
  },
1244
- "entrypoints/node_main/NodeMain.ts | nodejsS": {
1244
+ "entrypoints/node_app/NodeMain.ts | nodejsS": {
1245
1245
  "message": "Node.js: {PH1}"
1246
1246
  },
1247
1247
  "entrypoints/worker_app/WorkerMain.ts | main": {
@@ -12065,6 +12065,12 @@
12065
12065
  "ui/legacy/InspectorView.ts | drawer": {
12066
12066
  "message": "Tool drawer"
12067
12067
  },
12068
+ "ui/legacy/InspectorView.ts | drawerHidden": {
12069
+ "message": "Drawer hidden"
12070
+ },
12071
+ "ui/legacy/InspectorView.ts | drawerShown": {
12072
+ "message": "Drawer shown"
12073
+ },
12068
12074
  "ui/legacy/InspectorView.ts | mainToolbar": {
12069
12075
  "message": "Main toolbar"
12070
12076
  },
@@ -1208,40 +1208,40 @@
1208
1208
  "entrypoints/main/MainImpl.ts | undockIntoSeparateWindow": {
1209
1209
  "message": "Ûńd̂óĉḱ îńt̂ó ŝép̂ár̂át̂é ŵín̂d́ôẃ"
1210
1210
  },
1211
- "entrypoints/node_app/node_app-meta.ts | node": {
1212
- "message": "N̂ód̂é"
1211
+ "entrypoints/node_app/node_app.ts | connection": {
1212
+ "message": "Ĉón̂êćt̂íôń"
1213
1213
  },
1214
- "entrypoints/node_app/node_app-meta.ts | showNode": {
1214
+ "entrypoints/node_app/node_app.ts | networkTitle": {
1215
1215
  "message": "N̂ód̂é"
1216
1216
  },
1217
- "entrypoints/node_main/node_main-meta.ts | connection": {
1218
- "message": "Ĉón̂ńêćt̂íôń"
1219
- },
1220
- "entrypoints/node_main/node_main-meta.ts | node": {
1217
+ "entrypoints/node_app/node_app.ts | node": {
1221
1218
  "message": "n̂ód̂é"
1222
1219
  },
1223
- "entrypoints/node_main/node_main-meta.ts | showConnection": {
1220
+ "entrypoints/node_app/node_app.ts | showConnection": {
1224
1221
  "message": "Ŝh́ôẃ Ĉón̂ńêćt̂íôń"
1225
1222
  },
1226
- "entrypoints/node_main/NodeConnectionsPanel.ts | addConnection": {
1223
+ "entrypoints/node_app/node_app.ts | showNode": {
1224
+ "message": "N̂ód̂é"
1225
+ },
1226
+ "entrypoints/node_app/NodeConnectionsPanel.ts | addConnection": {
1227
1227
  "message": "Âd́d̂ ćôńn̂éĉt́îón̂"
1228
1228
  },
1229
- "entrypoints/node_main/NodeConnectionsPanel.ts | networkAddressEgLocalhost": {
1229
+ "entrypoints/node_app/NodeConnectionsPanel.ts | networkAddressEgLocalhost": {
1230
1230
  "message": "N̂ét̂ẃôŕk̂ ád̂d́r̂éŝś (ê.ǵ. l̂óĉál̂h́ôśt̂:9229)"
1231
1231
  },
1232
- "entrypoints/node_main/NodeConnectionsPanel.ts | noConnectionsSpecified": {
1232
+ "entrypoints/node_app/NodeConnectionsPanel.ts | noConnectionsSpecified": {
1233
1233
  "message": "N̂ó ĉón̂ńêćt̂íôńŝ śp̂éĉíf̂íêd́"
1234
1234
  },
1235
- "entrypoints/node_main/NodeConnectionsPanel.ts | nodejsDebuggingGuide": {
1235
+ "entrypoints/node_app/NodeConnectionsPanel.ts | nodejsDebuggingGuide": {
1236
1236
  "message": "N̂ód̂é.ĵś d̂éb̂úĝǵîńĝ ǵûíd̂é"
1237
1237
  },
1238
- "entrypoints/node_main/NodeConnectionsPanel.ts | specifyNetworkEndpointAnd": {
1238
+ "entrypoints/node_app/NodeConnectionsPanel.ts | specifyNetworkEndpointAnd": {
1239
1239
  "message": "Ŝṕêćîf́ŷ ńêt́ŵór̂ḱ êńd̂ṕôín̂t́ âńd̂ D́êv́T̂óôĺŝ ẃîĺl̂ ćôńn̂éĉt́ t̂ó ît́ âút̂óm̂át̂íĉál̂ĺŷ. Ŕêád̂ {PH1} t́ô ĺêár̂ń m̂ór̂é."
1240
1240
  },
1241
- "entrypoints/node_main/NodeMain.ts | main": {
1241
+ "entrypoints/node_app/NodeMain.ts | main": {
1242
1242
  "message": "M̂áîń"
1243
1243
  },
1244
- "entrypoints/node_main/NodeMain.ts | nodejsS": {
1244
+ "entrypoints/node_app/NodeMain.ts | nodejsS": {
1245
1245
  "message": "N̂ód̂é.ĵś: {PH1}"
1246
1246
  },
1247
1247
  "entrypoints/worker_app/WorkerMain.ts | main": {
@@ -12065,6 +12065,12 @@
12065
12065
  "ui/legacy/InspectorView.ts | drawer": {
12066
12066
  "message": "T̂óôĺ d̂ŕâẃêŕ"
12067
12067
  },
12068
+ "ui/legacy/InspectorView.ts | drawerHidden": {
12069
+ "message": "D̂ŕâẃêŕ ĥíd̂d́êń"
12070
+ },
12071
+ "ui/legacy/InspectorView.ts | drawerShown": {
12072
+ "message": "D̂ŕâẃêŕ ŝh́ôẃn̂"
12073
+ },
12068
12074
  "ui/legacy/InspectorView.ts | mainToolbar": {
12069
12075
  "message": "M̂áîń t̂óôĺb̂ár̂"
12070
12076
  },
@@ -389,7 +389,6 @@
389
389
  ExperimentEnabledAtLaunch: 'DevTools.ExperimentEnabledAtLaunch',
390
390
  ExperimentEnabled: 'DevTools.ExperimentEnabled',
391
391
  ExperimentDisabled: 'DevTools.ExperimentDisabled',
392
- CssEditorOpened: 'DevTools.CssEditorOpened',
393
392
  DeveloperResourceLoaded: 'DevTools.DeveloperResourceLoaded',
394
393
  DeveloperResourceScheme: 'DevTools.DeveloperResourceScheme',
395
394
  LinearMemoryInspectorRevealedFrom: 'DevTools.LinearMemoryInspector.RevealedFrom',
@@ -401,6 +400,7 @@
401
400
  RecordingReplayFinished: 'DevTools.RecordingReplayFinished',
402
401
  RecordingReplayStarted: 'DevTools.RecordingReplayStarted',
403
402
  RecordingToggled: 'DevTools.RecordingToggled',
403
+ SyncSetting: 'DevTools.SyncSetting',
404
404
  };
405
405
 
406
406
  /**
@@ -32,7 +32,7 @@ const UIStrings = {
32
32
  */
33
33
  networkAddressEgLocalhost: 'Network address (e.g. localhost:9229)',
34
34
  };
35
- const str_ = i18n.i18n.registerUIStrings('entrypoints/node_main/NodeConnectionsPanel.ts', UIStrings);
35
+ const str_ = i18n.i18n.registerUIStrings('entrypoints/node_app/NodeConnectionsPanel.ts', UIStrings);
36
36
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
37
37
 
38
38
  let nodeConnectionsPanelInstance: NodeConnectionsPanel;
@@ -2,7 +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
 
5
- import * as Common from '../../core/common/common.js';
5
+ import type * as Common from '../../core/common/common.js';
6
6
  import * as Host from '../../core/host/host.js';
7
7
  import * as i18n from '../../core/i18n/i18n.js';
8
8
  import * as Components from '../../ui/legacy/components/utils/utils.js';
@@ -23,7 +23,7 @@ const UIStrings = {
23
23
  */
24
24
  nodejsS: 'Node.js: {PH1}',
25
25
  };
26
- const str_ = i18n.i18n.registerUIStrings('entrypoints/node_main/NodeMain.ts', UIStrings);
26
+ const str_ = i18n.i18n.registerUIStrings('entrypoints/node_app/NodeMain.ts', UIStrings);
27
27
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
28
28
  let nodeMainImplInstance: NodeMainImpl;
29
29
 
@@ -45,8 +45,6 @@ export class NodeMainImpl implements Common.Runnable.Runnable {
45
45
  }
46
46
  }
47
47
 
48
- Common.Runnable.registerEarlyInitializationRunnable(NodeMainImpl.instance);
49
-
50
48
  export class NodeChildTargetManager extends SDK.SDKModel.SDKModel<void> implements ProtocolProxyApi.TargetDispatcher {
51
49
  private readonly targetManager: SDK.TargetManager.TargetManager;
52
50
  private readonly parentTarget: SDK.Target.Target;
@@ -0,0 +1,81 @@
1
+ // Copyright 2018 The Chromium Authors. All rights reserved.
2
+ // Use of this source code is governed by a BSD-style license that can be
3
+ // found in the LICENSE file.
4
+ import '../shell/shell.js';
5
+ import '../../panels/js_profiler/js_profiler-meta.js';
6
+ import type * as Sources from '../../panels/sources/sources.js';
7
+ import * as i18n from '../../core/i18n/i18n.js';
8
+ import * as UI from '../../ui/legacy/legacy.js';
9
+ import * as Common from '../../core/common/common.js';
10
+ import * as Root from '../../core/root/root.js';
11
+ import * as Main from '../main/main.js';
12
+
13
+ import {NodeMainImpl} from './NodeMain.js'; // eslint-disable-line rulesdir/es_modules_import
14
+ import {NodeConnectionsPanel} from './NodeConnectionsPanel.js'; // eslint-disable-line rulesdir/es_modules_import
15
+
16
+ const UIStrings = {
17
+ /**
18
+ *@description Text that refers to the network connection
19
+ */
20
+ connection: 'Connection',
21
+ /**
22
+ *@description A tag of Node.js Connection Panel that can be searched in the command menu
23
+ */
24
+ node: 'node',
25
+ /**
26
+ *@description Command for showing the Connection tool
27
+ */
28
+ showConnection: 'Show Connection',
29
+ /**
30
+ *@description Title of the 'Node' tool in the Network Navigator View, which is part of the Sources tool
31
+ */
32
+ networkTitle: 'Node',
33
+ /**
34
+ *@description Command for showing the 'Node' tool in the Network Navigator View, which is part of the Sources tool
35
+ */
36
+ showNode: 'Node',
37
+ };
38
+
39
+ const str_ = i18n.i18n.registerUIStrings('entrypoints/node_app/node_app.ts', UIStrings);
40
+ const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
41
+
42
+ let loadedSourcesModule: (typeof Sources|undefined);
43
+
44
+ async function loadSourcesModule(): Promise<typeof Sources> {
45
+ if (!loadedSourcesModule) {
46
+ loadedSourcesModule = await import('../../panels/sources/sources.js');
47
+ }
48
+ return loadedSourcesModule;
49
+ }
50
+
51
+ UI.ViewManager.registerViewExtension({
52
+ location: UI.ViewManager.ViewLocationValues.PANEL,
53
+ id: 'node-connection',
54
+ title: i18nLazyString(UIStrings.connection),
55
+ commandPrompt: i18nLazyString(UIStrings.showConnection),
56
+ order: 0,
57
+ async loadView() {
58
+ return NodeConnectionsPanel.instance();
59
+ },
60
+ tags: [i18nLazyString(UIStrings.node)],
61
+ });
62
+
63
+ UI.ViewManager.registerViewExtension({
64
+ location: UI.ViewManager.ViewLocationValues.NAVIGATOR_VIEW,
65
+ id: 'navigator-network',
66
+ title: i18nLazyString(UIStrings.networkTitle),
67
+ commandPrompt: i18nLazyString(UIStrings.showNode),
68
+ order: 2,
69
+ persistence: UI.ViewManager.ViewPersistence.PERMANENT,
70
+ async loadView() {
71
+ const Sources = await loadSourcesModule();
72
+ return Sources.SourcesNavigator.NetworkNavigatorView.instance();
73
+ },
74
+ });
75
+
76
+ const runtimeInstance = Root.Runtime.Runtime.instance({forceNew: true, moduleDescriptors: []});
77
+ // @ts-ignore Exposed for legacy layout tests
78
+ self.runtime = runtimeInstance;
79
+ Common.Runnable.registerEarlyInitializationRunnable(NodeMainImpl.instance);
80
+ new Main.MainImpl.MainImpl();
81
+ Root.Runtime.appStartedPromiseCallback();
@@ -3,9 +3,7 @@
3
3
  // found in the LICENSE file.
4
4
 
5
5
  import * as Common from '../../core/common/common.js';
6
- import * as Host from '../../core/host/host.js';
7
6
  import * as i18n from '../../core/i18n/i18n.js';
8
- import * as Root from '../../core/root/root.js';
9
7
  import * as Bindings from '../../models/bindings/bindings.js';
10
8
  import * as ColorPicker from '../../ui/legacy/components/color_picker/color_picker.js';
11
9
  import * as InlineEditor from '../../ui/legacy/components/inline_editor/inline_editor.js';
@@ -55,9 +53,6 @@ export class BezierPopoverIcon {
55
53
  }
56
54
 
57
55
  private iconClick(event: Event): void {
58
- if (Root.Runtime.experiments.isEnabled('fontEditor')) {
59
- Host.userMetrics.cssEditorOpened('bezierEditor');
60
- }
61
56
  event.consume(true);
62
57
  if (this.swatchPopoverHelper.isShowing()) {
63
58
  this.swatchPopoverHelper.hide(true);
@@ -163,9 +158,6 @@ export class ColorSwatchPopoverIcon {
163
158
  }
164
159
 
165
160
  private iconClick(event: Event): void {
166
- if (Root.Runtime.experiments.isEnabled('fontEditor')) {
167
- Host.userMetrics.cssEditorOpened('colorPicker');
168
- }
169
161
  event.consume(true);
170
162
  this.showPopover();
171
163
  }
@@ -278,9 +270,6 @@ export class ShadowSwatchPopoverHelper {
278
270
  }
279
271
 
280
272
  private iconClick(event: Event): void {
281
- if (Root.Runtime.experiments.isEnabled('fontEditor')) {
282
- Host.userMetrics.cssEditorOpened('shadowEditor');
283
- }
284
273
  event.consume(true);
285
274
  this.showPopover();
286
275
  }
@@ -1616,7 +1616,6 @@ export class StylePropertiesSection {
1616
1616
 
1617
1617
  private onFontEditorButtonClicked(): void {
1618
1618
  if (this.fontEditorSectionManager && this.fontEditorButton) {
1619
- Host.userMetrics.cssEditorOpened('fontEditor');
1620
1619
  this.fontEditorSectionManager.showPopover(this.fontEditorButton.element, this.parentPane);
1621
1620
  }
1622
1621
  }
@@ -225,10 +225,6 @@ export class DeviceModeToolbar {
225
225
  showMediaInspectorSetting: Common.Settings.Setting<boolean>,
226
226
  showRulersSetting: Common.Settings.Setting<boolean>) {
227
227
  this.model = model;
228
- const device = model.device();
229
- if (device) {
230
- this.recordDeviceChange(device, null);
231
- }
232
228
  this.showMediaInspectorSetting = showMediaInspectorSetting;
233
229
  this.showRulersSetting = showRulersSetting;
234
230
 
@@ -302,16 +298,6 @@ export class DeviceModeToolbar {
302
298
  }
303
299
  }
304
300
 
305
- private recordDeviceChange(
306
- device: EmulationModel.EmulatedDevices.EmulatedDevice,
307
- oldDevice: EmulationModel.EmulatedDevices.EmulatedDevice|null): void {
308
- if (device !== oldDevice && device && device.isDualScreen) {
309
- // When we start emulating a device, whether we start a new emulation session, or switch to
310
- // a new device, if the device is dual screen, we count this once.
311
- Host.userMetrics.dualScreenDeviceEmulated(Host.UserMetrics.DualScreenDeviceEmulated.DualScreenDeviceSelected);
312
- }
313
- }
314
-
315
301
  private createEmptyToolbarElement(): Element {
316
302
  const element = document.createElement('div');
317
303
  element.classList.add('device-mode-empty-toolbar-element');
@@ -527,7 +513,6 @@ export class DeviceModeToolbar {
527
513
 
528
514
  private emulateDevice(device: EmulationModel.EmulatedDevices.EmulatedDevice): void {
529
515
  const scale = this.autoAdjustScaleSetting.get() ? undefined : this.model.scaleSetting().get();
530
- this.recordDeviceChange(device, this.model.device());
531
516
  this.model.emulate(
532
517
  EmulationModel.DeviceModeModel.Type.Device, device, this.lastMode.get(device) || device.modes[0], scale);
533
518
  }
@@ -615,7 +600,6 @@ export class DeviceModeToolbar {
615
600
  return;
616
601
  }
617
602
 
618
- Host.userMetrics.dualScreenDeviceEmulated(Host.UserMetrics.DualScreenDeviceEmulated.SpanButtonClicked);
619
603
  const scale = this.autoAdjustScaleSetting.get() ? undefined : this.model.scaleSetting().get();
620
604
  const mode = this.model.mode();
621
605
  if (!mode) {
@@ -1302,7 +1302,7 @@ export class DebuggerPlugin extends Plugin {
1302
1302
  Bindings.ResourceScriptMapping.ResourceScriptFile.Events.DidMergeToVM, this.didMergeToVM, this);
1303
1303
  oldScriptFile.removeEventListener(
1304
1304
  Bindings.ResourceScriptMapping.ResourceScriptFile.Events.DidDivergeFromVM, this.didDivergeFromVM, this);
1305
- if (this.muted && !this.uiSourceCode.isDirty() && this.consistentScripts) {
1305
+ if (this.muted && !this.uiSourceCode.isDirty() && this.consistentScripts()) {
1306
1306
  this.setMuted(false);
1307
1307
  }
1308
1308
  }
@@ -651,6 +651,7 @@ export class GridNode extends DataGrid.SortableDataGrid.SortableDataGridNode<Gri
651
651
  }
652
652
  const cell = this.createTD(columnId);
653
653
  cell.className = 'numeric-column';
654
+ cell.setAttribute('title', i18nString(UIStrings.fms, {PH1: value.toFixed(4)}));
654
655
  const textDiv = cell.createChild('div');
655
656
  textDiv.createChild('span').textContent = i18nString(UIStrings.fms, {PH1: value.toFixed(1)});
656
657