chrome-devtools-frontend 1.0.1674545 → 1.0.1675430

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 (45) hide show
  1. package/.agents/skills/devtools-ux-writing-refactor/SKILL.md +26 -9
  2. package/front_end/core/common/ParsedURL.ts +5 -1
  3. package/front_end/core/common/SettingRegistration.ts +29 -8
  4. package/front_end/core/common/Settings.ts +0 -11
  5. package/front_end/core/root/Runtime.ts +4 -0
  6. package/front_end/core/sdk/TargetManager.ts +18 -0
  7. package/front_end/entrypoints/main/MainImpl.ts +1 -0
  8. package/front_end/foundation/Universe.ts +44 -29
  9. package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +15 -5
  10. package/front_end/models/emulation/DeviceModeModel.ts +60 -71
  11. package/front_end/models/emulation/EmulatedDevices.ts +18 -66
  12. package/front_end/models/persistence/AutomaticFileSystemManager.ts +2 -2
  13. package/front_end/models/persistence/IsolatedFileSystemManager.ts +20 -29
  14. package/front_end/models/workspace/FileManager.ts +13 -6
  15. package/front_end/panels/application/WebMCPView.ts +13 -5
  16. package/front_end/panels/application/components/AdsView.ts +24 -1
  17. package/front_end/panels/application/components/adsView.css +27 -21
  18. package/front_end/panels/autofill/AutofillView.ts +12 -12
  19. package/front_end/panels/autofill/autofill-meta.ts +2 -2
  20. package/front_end/panels/elements/ElementsTreeElement.ts +550 -327
  21. package/front_end/panels/elements/ElementsTreeOutline.ts +1 -1
  22. package/front_end/panels/js_timeline/js_timeline-meta.ts +8 -8
  23. package/front_end/panels/layer_viewer/LayerDetailsView.ts +30 -30
  24. package/front_end/panels/layer_viewer/LayerTreeOutline.ts +6 -6
  25. package/front_end/panels/layer_viewer/LayerViewHost.ts +1 -1
  26. package/front_end/panels/layer_viewer/Layers3DView.ts +11 -11
  27. package/front_end/panels/layer_viewer/PaintProfilerView.ts +8 -8
  28. package/front_end/panels/layer_viewer/TransformController.ts +3 -3
  29. package/front_end/panels/layer_viewer/layer_viewer-meta.ts +11 -11
  30. package/front_end/panels/mobile_throttling/ThrottlingManager.ts +1 -58
  31. package/front_end/panels/mobile_throttling/mobile_throttling.ts +0 -10
  32. package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +7 -0
  33. package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +1 -2
  34. package/front_end/third_party/chromium/README.chromium +1 -1
  35. package/front_end/ui/comments/CommentAnchorResolver.ts +132 -0
  36. package/front_end/ui/comments/comments.ts +9 -0
  37. package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +40 -0
  38. package/front_end/ui/legacy/components/utils/Linkifier.ts +1 -0
  39. package/front_end/ui/settings/SettingUIRegistration.ts +4 -0
  40. package/front_end/ui/visual_logging/Debugging.ts +1 -5
  41. package/front_end/ui/visual_logging/KnownContextValues.ts +1 -0
  42. package/front_end/ui/visual_logging/LoggingConfig.ts +21 -0
  43. package/front_end/ui/visual_logging/visual_logging.ts +9 -0
  44. package/package.json +1 -1
  45. package/front_end/panels/mobile_throttling/MobileThrottlingSelector.ts +0 -92
@@ -1188,7 +1188,7 @@ export class ElementsTreeOutline extends
1188
1188
  if (!treeElement) {
1189
1189
  return false;
1190
1190
  }
1191
- return treeElement.isEditing() || false;
1191
+ return treeElement.isEditing || false;
1192
1192
  }
1193
1193
 
1194
1194
  update(): void {
@@ -9,35 +9,35 @@ import type * as Timeline from '../timeline/timeline.js';
9
9
 
10
10
  const UIStrings = {
11
11
  /**
12
- * @description Text for the performance of something
12
+ * @description Title of the Performance panel.
13
13
  */
14
14
  performance: 'Performance',
15
15
  /**
16
- * @description Command for showing the 'Performance' tool
16
+ * @description Command for showing the Performance panel.
17
17
  */
18
18
  showPerformance: 'Show Performance',
19
19
  /**
20
- * @description Title of an action in the timeline tool to show history
20
+ * @description Title of an action in the Performance panel to show history.
21
21
  */
22
22
  showRecentTimelineSessions: 'Show recent timeline sessions',
23
23
  /**
24
- * @description Text to record a series of actions for analysis
24
+ * @description Text to record a series of actions for analysis.
25
25
  */
26
26
  record: 'Record',
27
27
  /**
28
- * @description Text of an item that stops the running task
28
+ * @description Text of an item that stops the running task.
29
29
  */
30
30
  stop: 'Stop',
31
31
  /**
32
- * @description Title of an action in the timeline tool to record a reload of the current page
32
+ * @description Title of an action in the Performance panel to record a reload of the current page.
33
33
  */
34
34
  recordAndReload: 'Record and reload',
35
35
  /**
36
- * @description Title of a setting under the Performance category in Settings
36
+ * @description Title of a setting under the Performance category in Settings.
37
37
  */
38
38
  timelineShowAllEvents: 'Show all events',
39
39
  /**
40
- * @description Title of a setting under the Performance category in Settings
40
+ * @description Title of a setting under the Performance category in Settings.
41
41
  */
42
42
  timelineDebugMode: 'Timeline debug mode (trace event details, etc.)',
43
43
  } as const;
@@ -24,15 +24,15 @@ const {widget} = UI.Widget;
24
24
 
25
25
  const UIStrings = {
26
26
  /**
27
- * @description Text in Layer Details View of the Layers panel
27
+ * @description Text in layer details view of the Layers panel.
28
28
  */
29
29
  selectALayerToSeeItsDetails: 'Select a layer to see its details',
30
30
  /**
31
- * @description Text in Layer Details View of the Layers panel if no layer is selected for viewing its content
31
+ * @description Text in layer details view of the Layers panel if no layer is selected for viewing its content.
32
32
  */
33
33
  noLayerSelected: 'No layer selected',
34
34
  /**
35
- * @description Element text content in Layer Details View of the Layers panel
35
+ * @description Element text content in layer details view of the Layers panel.
36
36
  * @example {Touch event handler} PH1
37
37
  * @example {10} PH2
38
38
  * @example {10} PH3
@@ -41,46 +41,46 @@ const UIStrings = {
41
41
  */
42
42
  scrollRectangleDimensions: '{PH1} {PH2} × {PH3} (at {PH4}, {PH5})',
43
43
  /**
44
- * @description Text in Layer Details View of the Layers panel. Used to indicate that a particular
44
+ * @description Text in layer details view of the Layers panel. Used to indicate that a particular
45
45
  * layer of the website is unnamed (was not given a name/doesn't have one).
46
46
  */
47
47
  unnamed: '<unnamed>',
48
48
  /**
49
- * @description Text in Layer Details View of the Layers panel
50
- * @example {Nearest Layer Shifting Sticky Box} PH1
49
+ * @description Text in layer details view of the Layers panel.
50
+ * @example {Nearest layer shifting sticky box} PH1
51
51
  * @example {&lt;unnamed&gt;} PH2
52
52
  * @example {5} PH3
53
53
  */
54
54
  stickyAncestorLayersS: '{PH1}: {PH2} ({PH3})',
55
55
  /**
56
- * @description Sticky box rect element text content in Layer Details View of the Layers panel
56
+ * @description Sticky box rect element text content in layer details view of the Layers panel.
57
57
  * @example {10} PH1
58
58
  * @example {10} PH2
59
59
  * @example {10} PH3
60
60
  * @example {10} PH4
61
61
  */
62
- stickyBoxRectangleDimensions: 'Sticky Box {PH1} × {PH2} (at {PH3}, {PH4})',
62
+ stickyBoxRectangleDimensions: 'Sticky box {PH1} × {PH2} (at {PH3}, {PH4})',
63
63
  /**
64
- * @description Containing block rect element text content in Layer Details View of the Layers panel.
65
- * The placeholder are width, height, x position, and y position respectively.
64
+ * @description Containing block rect element text content in layer details view of the Layers panel.
65
+ * The placeholders are width, height, x position, and y position respectively.
66
66
  * @example {10} PH1
67
67
  * @example {10} PH2
68
68
  * @example {10} PH3
69
69
  * @example {10} PH4
70
70
  */
71
- containingBlocRectangleDimensions: 'Containing Block {PH1} × {PH2} (at {PH3}, {PH4})',
71
+ containingBlocRectangleDimensions: 'Containing block {PH1} × {PH2} (at {PH3}, {PH4})',
72
72
  /**
73
- * @description Text in Layer Details View of the Layers panel. This also means "The nearest sticky
73
+ * @description Text in layer details view of the Layers panel. This also means "The nearest sticky
74
74
  * box that causes a layer shift".
75
75
  */
76
- nearestLayerShiftingStickyBox: 'Nearest Layer Shifting Sticky Box',
76
+ nearestLayerShiftingStickyBox: 'Nearest layer shifting sticky box',
77
77
  /**
78
- * @description Text in Layer Details View of the Layers panel. This also means "The nearest block
78
+ * @description Text in layer details view of the Layers panel. This also means "The nearest block
79
79
  * that causes a layer shift".
80
80
  */
81
- nearestLayerShiftingContaining: 'Nearest Layer Shifting Containing Block',
81
+ nearestLayerShiftingContaining: 'Nearest layer shifting containing block',
82
82
  /**
83
- * @description Size cell text content in Layer Details View of the Layers panel
83
+ * @description Size cell text content in layer details view of the Layers panel.
84
84
  * @example {10} PH1
85
85
  * @example {10} PH2
86
86
  * @example {10} PH3
@@ -88,53 +88,53 @@ const UIStrings = {
88
88
  */
89
89
  updateRectangleDimensions: '{PH1} × {PH2} (at {PH3}, {PH4})',
90
90
  /**
91
- * @description Text for the size of something
91
+ * @description Text for the size of something.
92
92
  */
93
93
  size: 'Size',
94
94
  /**
95
- * @description Text in Layer Details View of the Layers panel
95
+ * @description Text in layer details view of the Layers panel.
96
96
  */
97
- compositingReasons: 'Compositing Reasons',
97
+ compositingReasons: 'Compositing reasons',
98
98
  /**
99
- * @description Text in Layer Details View of the Layers panel
99
+ * @description Text in layer details view of the Layers panel.
100
100
  */
101
101
  memoryEstimate: 'Memory estimate',
102
102
  /**
103
- * @description Text in Layer Details View of the Layers panel
103
+ * @description Text in layer details view of the Layers panel.
104
104
  */
105
105
  paintCount: 'Paint count',
106
106
  /**
107
- * @description Text in Layer Details View of the Layers panel
107
+ * @description Text in layer details view of the Layers panel.
108
108
  */
109
109
  slowScrollRegions: 'Slow scroll regions',
110
110
  /**
111
- * @description Text in Layer Details View of the Layers panel
111
+ * @description Text in layer details view of the Layers panel.
112
112
  */
113
113
  stickyPositionConstraint: 'Sticky position constraint',
114
114
  /**
115
- * @description Title of the paint profiler, old name of the performance pane
115
+ * @description Label for button to open the paint profiler in the layer details view of the Layers panel.
116
116
  */
117
- paintProfiler: 'Paint Profiler',
117
+ paintProfiler: 'Paint profiler',
118
118
  /**
119
- * @description Text in Layer Details View of the Layers panel
119
+ * @description Text in layer details view of the Layers panel.
120
120
  */
121
121
  nonFastScrollable: 'Non fast scrollable',
122
122
  /**
123
- * @description Text in Layer Details View of the Layers panel
123
+ * @description Text in layer details view of the Layers panel.
124
124
  */
125
125
  touchEventHandler: 'Touch event handler',
126
126
  /**
127
- * @description Text in Layer Details View of the Layers panel
127
+ * @description Text in layer details view of the Layers panel.
128
128
  */
129
129
  wheelEventHandler: 'Wheel event handler',
130
130
  /**
131
- * @description Text in Layer Details View of the Layers panel. Means that this rectangle needs to
131
+ * @description Text in layer details view of the Layers panel. Means that this rectangle needs to
132
132
  * be repainted when the webpage is scrolled. 'repaints' means that the browser engine needs to
133
133
  * draw the pixels for this rectangle to the user's monitor again.
134
134
  */
135
135
  repaintsOnScroll: 'Repaints on scroll',
136
136
  /**
137
- * @description Text in Layer Details View of the Layers panel
137
+ * @description Text in layer details view of the Layers panel.
138
138
  */
139
139
  mainThreadScrollingReason: 'Main thread scrolling reason',
140
140
  } as const;
@@ -20,20 +20,20 @@ import {
20
20
 
21
21
  const UIStrings = {
22
22
  /**
23
- * @description A count of the number of rendering layers in Layer Tree Outline of the Layers panel
23
+ * @description A count of the number of rendering layers in layer tree outline of the Layers panel.
24
24
  * @example {10} PH1
25
25
  */
26
26
  layerCount: '{PH1} layers',
27
27
  /**
28
- * @description Label for layers sidepanel tree
28
+ * @description Label for layers sidebar tree.
29
29
  */
30
- layersTreePane: 'Layers Tree Pane',
30
+ layersTreePane: 'Layers tree',
31
31
  /**
32
- * @description A context menu item in the DView of the Layers panel
32
+ * @description Context menu item in the 3D view of the Layers panel.
33
33
  */
34
- showPaintProfiler: 'Show Paint Profiler',
34
+ showPaintProfiler: 'Show paint profiler',
35
35
  /**
36
- * @description Details text content in Layer Tree Outline of the Layers panel
36
+ * @description Details text content in layer tree outline of the Layers panel.
37
37
  * @example {10} PH1
38
38
  * @example {10} PH2
39
39
  */
@@ -9,7 +9,7 @@ import type * as UI from '../../ui/legacy/legacy.js';
9
9
 
10
10
  const UIStrings = {
11
11
  /**
12
- * @description Text in Layer View Host of the Layers panel
12
+ * @description Text in layer view host of the Layers panel.
13
13
  */
14
14
  showInternalLayers: 'Show internal layers',
15
15
  } as const;
@@ -31,38 +31,38 @@ const {widget} = UI.Widget;
31
31
 
32
32
  const UIStrings = {
33
33
  /**
34
- * @description Text of a DOM element in DView of the Layers panel
34
+ * @description Text of a DOM element in 3D view of the Layers panel.
35
35
  */
36
36
  noLayerInformation: 'No layers detected yet',
37
37
  /**
38
- * @description Text of a DOM element in DView of the Layers panel that explains the panel
38
+ * @description Text of a DOM element in 3D view of the Layers panel that explains the panel.
39
39
  */
40
40
  layerExplanation: 'On this page you will be able to view and inspect document layers.',
41
41
  /**
42
- * @description Accessibility label for canvas view in Layers tool
42
+ * @description Accessibility label for canvas view in Layers panel.
43
43
  */
44
- dLayersView: '3D Layers View',
44
+ dLayersView: '3D layers view',
45
45
  /**
46
- * @description Text in DView of the Layers panel
46
+ * @description Text in 3D view of the Layers panel.
47
47
  */
48
48
  cantDisplayLayers: 'Can’t display layers',
49
49
  /**
50
- * @description Text in DView of the Layers panel
50
+ * @description Text in 3D view of the Layers panel.
51
51
  */
52
52
  webglSupportIsDisabledInYour: 'WebGL support is disabled in your browser.',
53
53
  /**
54
- * @description Text in DView of the Layers panel
54
+ * @description Text in 3D view of the Layers panel.
55
55
  * @example {about:gpu} PH1
56
56
  */
57
57
  checkSForPossibleReasons: 'Check {PH1} for possible reasons.',
58
58
  /**
59
- * @description A context menu item in the DView of the Layers panel
59
+ * @description Context menu item in the 3D view of the Layers panel.
60
60
  */
61
- resetView: 'Reset View',
61
+ resetView: 'Reset view',
62
62
  /**
63
- * @description A context menu item in the DView of the Layers panel
63
+ * @description Context menu item in the 3D view of the Layers panel.
64
64
  */
65
- showPaintProfiler: 'Show Paint Profiler',
65
+ showPaintProfiler: 'Show paint profiler',
66
66
  } as const;
67
67
  const str_ = i18n.i18n.registerUIStrings('panels/layer_viewer/Layers3DView.ts', UIStrings);
68
68
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
@@ -18,33 +18,33 @@ const {ref} = Lit.Directives;
18
18
 
19
19
  const UIStrings = {
20
20
  /**
21
- * @description Text to indicate the progress of a profile
21
+ * @description Text to indicate the progress of a profile.
22
22
  */
23
23
  profiling: 'Profiling…',
24
24
  /**
25
- * @description Text in Paint Profiler View of the Layers panel
25
+ * @description Text in paint profiler view of the Layers panel.
26
26
  */
27
27
  shapes: 'Shapes',
28
28
  /**
29
- * @description Text in Paint Profiler View of the Layers panel
29
+ * @description Text in paint profiler view of the Layers panel.
30
30
  */
31
31
  bitmap: 'Bitmap',
32
32
  /**
33
- * @description Generic label for any text
33
+ * @description Generic label for any text.
34
34
  */
35
35
  text: 'Text',
36
36
  /**
37
- * @description Text in Paint Profiler View of the Layers panel
37
+ * @description Text in paint profiler view of the Layers panel.
38
38
  */
39
39
  misc: 'Misc',
40
40
  /**
41
- * @description ARIA label for a pie chart that shows the results of the paint profiler
41
+ * @description ARIA label for a pie chart that shows the results of the paint profiler.
42
42
  */
43
43
  profilingResults: 'Profiling results',
44
44
  /**
45
- * @description Label for command log tree in the Profiler tab
45
+ * @description Label for command log tree in the paint profiler.
46
46
  */
47
- commandLog: 'Command Log',
47
+ commandLog: 'Command log',
48
48
  } as const;
49
49
  const str_ = i18n.i18n.registerUIStrings('panels/layer_viewer/PaintProfilerView.ts', UIStrings);
50
50
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
@@ -13,15 +13,15 @@ import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
13
13
 
14
14
  const UIStrings = {
15
15
  /**
16
- * @description Tooltip text that appears when hovering over largeicon pan button in Transform Controller of the Layers panel
16
+ * @description Tooltip text that appears when hovering over largeicon pan button in transform controller of the Layers panel.
17
17
  */
18
18
  panModeX: 'Pan mode (X)',
19
19
  /**
20
- * @description Tooltip text that appears when hovering over largeicon rotate button in Transform Controller of the Layers panel
20
+ * @description Tooltip text that appears when hovering over largeicon rotate button in transform controller of the Layers panel.
21
21
  */
22
22
  rotateModeV: 'Rotate mode (V)',
23
23
  /**
24
- * @description Tooltip text that appears when hovering over the largeicon center button in the Transform Controller of the Layers panel
24
+ * @description Tooltip text that appears when hovering over the largeicon center button in the transform controller of the Layers panel.
25
25
  */
26
26
  resetTransform: 'Reset transform (0)',
27
27
  } as const;
@@ -8,47 +8,47 @@ import * as UI from '../../ui/legacy/legacy.js';
8
8
 
9
9
  const UIStrings = {
10
10
  /**
11
- * @description Title of a setting in Layer Viewer.
11
+ * @description Title of a setting in layer viewer.
12
12
  */
13
13
  paints: 'Paints',
14
14
  /**
15
- * @description Title of a setting in Layer Viewer.
15
+ * @description Title of a setting in layer viewer.
16
16
  */
17
17
  slowScrollRects: 'Slow scroll rects',
18
18
  /**
19
- * @description Text in the Shortcuts page to explain a keyboard shortcut (reset view in Layers Panel)
19
+ * @description Text in the Shortcuts page to explain a keyboard shortcut (reset view in Layers panel).
20
20
  */
21
21
  resetView: 'Reset view',
22
22
  /**
23
- * @description Text in the Shortcuts page to explain a keyboard shortcut (switch to pan in Layers Panel)
23
+ * @description Text in the Shortcuts page to explain a keyboard shortcut (switch to pan in Layers panel).
24
24
  */
25
25
  switchToPanMode: 'Switch to pan mode',
26
26
  /**
27
- * @description Text in the Shortcuts page to explain a keyboard shortcut (switch to rotate mode in Layers Panel)
27
+ * @description Text in the Shortcuts page to explain a keyboard shortcut (switch to rotate mode in Layers panel).
28
28
  */
29
29
  switchToRotateMode: 'Switch to rotate mode',
30
30
  /**
31
- * @description Text in the Shortcuts page to explain a keyboard shortcut (zoom in)
31
+ * @description Text in the Shortcuts page to explain a keyboard shortcut (zoom in).
32
32
  */
33
33
  zoomIn: 'Zoom in',
34
34
  /**
35
- * @description Text in the Shortcuts page to explain a keyboard shortcut (zoom out)
35
+ * @description Text in the Shortcuts page to explain a keyboard shortcut (zoom out).
36
36
  */
37
37
  zoomOut: 'Zoom out',
38
38
  /**
39
- * @description Description of a shortcut that pans or rotates the layer viewer up
39
+ * @description Description of a shortcut that pans or rotates the layer viewer up.
40
40
  */
41
41
  panOrRotateUp: 'Pan or rotate up',
42
42
  /**
43
- * @description Description of a shortcut that pans or rotates the layer viewer down
43
+ * @description Description of a shortcut that pans or rotates the layer viewer down.
44
44
  */
45
45
  panOrRotateDown: 'Pan or rotate down',
46
46
  /**
47
- * @description Description of a shortcut that pans or rotates the layer viewer left
47
+ * @description Description of a shortcut that pans or rotates the layer viewer left.
48
48
  */
49
49
  panOrRotateLeft: 'Pan or rotate left',
50
50
  /**
51
- * @description Description of a shortcut that pans or rotates the layer viewer right
51
+ * @description Description of a shortcut that pans or rotates the layer viewer right.
52
52
  */
53
53
  panOrRotateRight: 'Pan or rotate right',
54
54
  } as const;
@@ -13,13 +13,7 @@ import {html, render} from '../../ui/lit/lit.js';
13
13
  import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
14
14
  import * as PanelsCommon from '../common/common.js';
15
15
 
16
- import {MobileThrottlingSelector} from './MobileThrottlingSelector.js';
17
- import {
18
- type Conditions,
19
- type ConditionsList,
20
- type MobileThrottlingConditionsGroup,
21
- ThrottlingPresets,
22
- } from './ThrottlingPresets.js';
16
+ import {ThrottlingPresets} from './ThrottlingPresets.js';
23
17
 
24
18
  export interface CPUThrottlingSelectorWrapper {
25
19
  control: UI.Toolbar.ToolbarComboBox;
@@ -35,10 +29,6 @@ const UIStrings = {
35
29
  * @description Text in throttling manager of the Network panel.
36
30
  */
37
31
  forceDisconnectedFromNetwork: 'Force disconnected from network',
38
- /**
39
- * @description Text for throttling the network.
40
- */
41
- throttling: 'Throttling',
42
32
  /**
43
33
  * @description Icon title in throttling manager of the Network panel.
44
34
  */
@@ -206,53 +196,6 @@ export class ThrottlingManager extends Common.ObjectWrapper.ObjectWrapper<Thrott
206
196
  return checkbox;
207
197
  }
208
198
 
209
- createMobileThrottlingButton(): UI.Toolbar.ToolbarMenuButton {
210
- const button = new UI.Toolbar.ToolbarMenuButton(appendItems, undefined, undefined, 'mobile-throttling');
211
- button.setTitle(i18nString(UIStrings.throttling));
212
- button.setDarkText();
213
-
214
- let options: ConditionsList = [];
215
- let selectedIndex = -1;
216
- const selector = new MobileThrottlingSelector(populate, select);
217
- return button;
218
-
219
- function appendItems(contextMenu: UI.ContextMenu.ContextMenu): void {
220
- for (let index = 0; index < options.length; ++index) {
221
- const conditions = options[index];
222
- if (!conditions) {
223
- continue;
224
- }
225
- if (conditions.title === ThrottlingPresets.getCustomConditions().title &&
226
- conditions.description === ThrottlingPresets.getCustomConditions().description) {
227
- continue;
228
- }
229
- contextMenu.defaultSection().appendCheckboxItem(
230
- conditions.title, selector.optionSelected.bind(selector, conditions as Conditions),
231
- {checked: selectedIndex === index, jslogContext: conditions.jslogContext});
232
- }
233
- }
234
-
235
- function populate(groups: MobileThrottlingConditionsGroup[]): ConditionsList {
236
- options = [];
237
- for (const group of groups) {
238
- for (const conditions of group.items) {
239
- options.push(conditions);
240
- }
241
- options.push(null);
242
- }
243
- return options;
244
- }
245
-
246
- function select(index: number): void {
247
- selectedIndex = index;
248
- const option = options[index];
249
- if (option) {
250
- button.setText(option.title);
251
- button.setTitle(`${option.title}: ${option.description}`);
252
- }
253
- }
254
- }
255
-
256
199
  private updatePanelIcon(): void {
257
200
  const warnings = [];
258
201
  if (this.cpuThrottlingManager.cpuThrottlingRate() !==
@@ -2,16 +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 './ThrottlingPresets.js';
6
- import './MobileThrottlingSelector.js';
7
- import './NetworkPanelIndicator.js';
8
- import './NetworkThrottlingSelector.js';
9
- import './CPUThrottlingSelector.js';
10
- import './ThrottlingSettingsTab.js';
11
- import './ThrottlingManager.js';
12
-
13
5
  import * as CPUThrottlingSelector from './CPUThrottlingSelector.js';
14
- import * as MobileThrottlingSelector from './MobileThrottlingSelector.js';
15
6
  import * as NetworkPanelIndicator from './NetworkPanelIndicator.js';
16
7
  import * as NetworkThrottlingSelector from './NetworkThrottlingSelector.js';
17
8
  import * as ThrottlingManager from './ThrottlingManager.js';
@@ -20,7 +11,6 @@ import * as ThrottlingSettingsTab from './ThrottlingSettingsTab.js';
20
11
 
21
12
  export {
22
13
  CPUThrottlingSelector,
23
- MobileThrottlingSelector,
24
14
  NetworkPanelIndicator,
25
15
  NetworkThrottlingSelector,
26
16
  ThrottlingManager,
@@ -5,6 +5,7 @@
5
5
  import '../../ui/legacy/legacy.js';
6
6
  import '../../ui/legacy/components/data_grid/data_grid.js';
7
7
 
8
+ import * as Common from '../../core/common/common.js';
8
9
  import * as i18n from '../../core/i18n/i18n.js';
9
10
  import * as Platform from '../../core/platform/platform.js';
10
11
  import * as ProtocolClient from '../../core/protocol_client/protocol_client.js';
@@ -24,6 +25,7 @@ import protocolMonitorStyles from './protocolMonitor.css.js';
24
25
 
25
26
  const {styleMap} = Directives;
26
27
  const {widget, widgetRef} = UI.Widget;
28
+
27
29
  const UIStrings = {
28
30
  /**
29
31
  * @description Table column header in the Protocol monitor data grid that displays the CDP method name (for example, Page.navigate or Network.enable).
@@ -180,6 +182,7 @@ export interface ViewInput {
180
182
  onTargetChange: (targetId: string) => void;
181
183
  onToggleSidebar: () => void;
182
184
  onEditorSubmit: (command: string, parameters: Record<string, unknown>, targetId?: string) => void;
185
+ columnsVisibilitySetting: Common.Settings.Setting<Record<string, {visible: boolean}>>;
183
186
  targets: SDK.Target.Target[];
184
187
  selectedTargetId: string;
185
188
  }
@@ -239,6 +242,7 @@ export const DEFAULT_VIEW: View = (input, output, target) => {
239
242
  <devtools-data-grid
240
243
  striped
241
244
  slot="main"
245
+ .columnsVisibilitySetting=${input.columnsVisibilitySetting}
242
246
  .filters=${input.parseFilter(input.filter)}>
243
247
  <table>
244
248
  <tr>
@@ -372,6 +376,8 @@ export class ProtocolMonitorImpl extends UI.Panel.Panel implements SDK.TargetMan
372
376
  #filter = '';
373
377
  #editorWidget!: JSONEditor;
374
378
  #targetsBySessionId = new Map<string, SDK.Target.Target>();
379
+ #columnsVisibilitySetting = Common.Settings.Settings.instance().createSetting<Record<string, {visible: boolean}>>(
380
+ 'protocol-monitor-columns', {});
375
381
  constructor(view: View = DEFAULT_VIEW) {
376
382
  super('protocol-monitor', true);
377
383
  this.#view = view;
@@ -469,6 +475,7 @@ export class ProtocolMonitorImpl extends UI.Panel.Panel implements SDK.TargetMan
469
475
  onEditorSubmit: (command: string, parameters: Record<string, unknown>, targetId?: string) => {
470
476
  this.onCommandSend(command, parameters, targetId);
471
477
  },
478
+ columnsVisibilitySetting: this.#columnsVisibilitySetting,
472
479
  targets: SDK.TargetManager.TargetManager.instance().targets(),
473
480
  selectedTargetId: this.#selectedTargetId,
474
481
  };
@@ -438,7 +438,6 @@ export class DevicesSettingsTab extends UI.Widget.VBox implements
438
438
  title: '',
439
439
  orientation: EmulationModel.EmulatedDevices.Vertical,
440
440
  insets: new EmulationModel.DeviceModeModel.Insets(0, 0, 0, 0),
441
- image: null,
442
441
  };
443
442
  const safeAreaInsets = this.safeAreaInsetsFromEditor(editor);
444
443
  if (safeAreaInsets) {
@@ -453,7 +452,7 @@ export class DevicesSettingsTab extends UI.Widget.VBox implements
453
452
  title: '',
454
453
  orientation: EmulationModel.EmulatedDevices.Horizontal,
455
454
  insets: new EmulationModel.DeviceModeModel.Insets(0, 0, 0, 0),
456
- image: null,
455
+
457
456
  };
458
457
  const landscapeSafeAreaInsets = this.safeAreaInsetsFromEditor(editor, 'landscape-');
459
458
  if (landscapeSafeAreaInsets) {
@@ -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: 1b1cf0f7236a27d60a4a348433bdd531893796c7
4
+ Revision: cd73d963934f9330aa868dcc05bbce063513294b
5
5
  Update Mechanism: Manual (https://crbug.com/428069060)
6
6
  License: BSD-3-Clause
7
7
  License File: LICENSE