chrome-devtools-frontend 1.0.1681091 → 1.0.1681498

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 (86) hide show
  1. package/front_end/core/sdk/DOMModel.ts +8 -0
  2. package/front_end/core/sdk/NetworkManager.ts +9 -4
  3. package/front_end/core/sdk/OverlayModel.ts +3 -2
  4. package/front_end/core/sdk/SDKSettings.ts +19 -0
  5. package/front_end/entrypoints/main/main-meta.ts +82 -0
  6. package/front_end/entrypoints/shell/shell.ts +0 -3
  7. package/front_end/entrypoints/trace_app/trace_app.ts +0 -3
  8. package/front_end/models/ai_code_completion/debug.ts +6 -3
  9. package/front_end/models/ai_code_generation/debug.ts +6 -3
  10. package/front_end/models/badges/UserBadges.ts +9 -2
  11. package/front_end/models/emulation/DeviceModeModel.ts +16 -27
  12. package/front_end/models/emulation/EmulatedDevices.ts +30 -125
  13. package/front_end/models/extensions/ExtensionAPI.ts +34 -23
  14. package/front_end/models/logs/NetworkLog.ts +3 -3
  15. package/front_end/models/logs/logs-meta.ts +0 -60
  16. package/front_end/models/persistence/NetworkPersistenceManager.ts +7 -1
  17. package/front_end/panels/application/ServiceWorkersView.ts +1 -1
  18. package/front_end/panels/application/StorageView.ts +2 -0
  19. package/front_end/panels/common/BadgeNotification.ts +1 -1
  20. package/front_end/panels/common/ExtensionPanel.ts +12 -7
  21. package/front_end/panels/common/ExtensionServer.ts +76 -16
  22. package/front_end/panels/common/GdpSignUpDialog.ts +1 -1
  23. package/front_end/panels/console/ConsoleView.ts +2 -1
  24. package/front_end/panels/console/ConsoleViewMessage.ts +3 -2
  25. package/front_end/panels/console/console-meta.ts +9 -0
  26. package/front_end/panels/elements/CSSRuleValidator.ts +12 -12
  27. package/front_end/panels/elements/CSSSpecificityBreakdown.ts +1 -1
  28. package/front_end/panels/elements/ClassesPaneWidget.ts +6 -6
  29. package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +1 -1
  30. package/front_end/panels/elements/ComputedStyleWidget.ts +4 -5
  31. package/front_end/panels/elements/DOMTreeContextMenu.ts +3 -6
  32. package/front_end/panels/elements/ElementIssueUtils.ts +20 -20
  33. package/front_end/panels/elements/ElementStatePaneWidget.ts +6 -6
  34. package/front_end/panels/elements/ElementsPanel.ts +10 -10
  35. package/front_end/panels/elements/ElementsTreeElement.ts +28 -28
  36. package/front_end/panels/elements/ElementsTreeOutline.ts +5 -20
  37. package/front_end/panels/elements/EventListenersWidget.ts +8 -8
  38. package/front_end/panels/elements/LayersWidget.ts +4 -4
  39. package/front_end/panels/elements/LayoutPane.ts +11 -11
  40. package/front_end/panels/elements/MarkerDecorator.ts +3 -3
  41. package/front_end/panels/elements/PlatformFontsWidget.ts +8 -8
  42. package/front_end/panels/elements/PropertiesWidget.ts +4 -4
  43. package/front_end/panels/elements/PropertyRenderer.ts +2 -2
  44. package/front_end/panels/elements/ShortcutTreeElement.ts +1 -1
  45. package/front_end/panels/elements/StylePropertiesSection.ts +14 -14
  46. package/front_end/panels/elements/StylePropertyTreeElement.ts +21 -21
  47. package/front_end/panels/elements/StylesSidebarPane.ts +12 -13
  48. package/front_end/panels/elements/components/AccessibilityTreeNode.ts +1 -1
  49. package/front_end/panels/elements/components/CSSHintDetailsView.ts +1 -1
  50. package/front_end/panels/elements/components/CSSVariableValueView.ts +3 -3
  51. package/front_end/panels/elements/components/ElementsBreadcrumbsUtils.ts +2 -2
  52. package/front_end/panels/elements/components/ElementsTreeExpandButton.ts +1 -1
  53. package/front_end/panels/elements/elements-meta.ts +13 -13
  54. package/front_end/panels/issues/AffectedCookiesView.ts +2 -0
  55. package/front_end/panels/issues/AffectedElementsView.ts +5 -0
  56. package/front_end/panels/issues/IssueView.ts +7 -2
  57. package/front_end/panels/layer_viewer/LayerDetailsView.ts +11 -7
  58. package/front_end/panels/layer_viewer/LayerTreeOutline.ts +2 -0
  59. package/front_end/panels/network/NetworkLogView.ts +5 -2
  60. package/front_end/panels/network/NetworkOverview.ts +11 -5
  61. package/front_end/panels/network/NetworkPanel.ts +2 -1
  62. package/front_end/panels/network/NetworkWaterfallColumn.ts +16 -3
  63. package/front_end/panels/network/RequestHeadersView.ts +4 -4
  64. package/front_end/panels/network/components/ResponseHeaderSection.ts +6 -2
  65. package/front_end/panels/network/network-meta.ts +57 -0
  66. package/front_end/panels/settings/components/SyncSection.ts +1 -1
  67. package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +0 -3
  68. package/front_end/panels/sources/NavigatorView.ts +6 -2
  69. package/front_end/panels/sources/SourcesNavigator.ts +8 -4
  70. package/front_end/panels/sources/SourcesPanel.ts +4 -2
  71. package/front_end/panels/sources/SourcesSearchScope.ts +3 -1
  72. package/front_end/panels/sources/UISourceCodeFrame.ts +2 -2
  73. package/front_end/panels/web_audio/WebAudioView.ts +8 -0
  74. package/front_end/third_party/chromium/README.chromium +1 -1
  75. package/front_end/third_party/web-vitals/rebuild.sh +1 -1
  76. package/front_end/ui/legacy/components/color_picker/ContrastDetails.ts +11 -11
  77. package/front_end/ui/legacy/components/color_picker/FormatPickerContextMenu.ts +1 -1
  78. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +19 -20
  79. package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +2 -2
  80. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +164 -325
  81. package/front_end/ui/visual_logging/KnownContextValues.ts +11 -0
  82. package/mcp/mcp.ts +0 -3
  83. package/package.json +1 -1
  84. package/front_end/core/sdk/sdk-meta.ts +0 -40
  85. package/front_end/models/badges/badges-meta.ts +0 -27
  86. package/front_end/models/persistence/persistence-meta.ts +0 -69
@@ -8,71 +8,71 @@ import * as IssuesManager from '../../models/issues_manager/issues_manager.js';
8
8
 
9
9
  const UIStrings = {
10
10
  /**
11
- * @description Tooltip text shown in the Elements panel when an element has an error.
11
+ * @description Tooltip text shown in the Elements panel when a label element has an incorrect for attribute.
12
12
  */
13
13
  formLabelForNameError: 'Incorrect use of <label for=FORM_ELEMENT>',
14
14
  /**
15
- * @description Tooltip text shown in the Elements panel when an element has an error.
15
+ * @description Tooltip text shown in the Elements panel when a form field has a duplicate ID.
16
16
  */
17
- formDuplicateIdForInputError: 'Duplicate form field id in the same form',
17
+ formDuplicateIdForInputError: 'Duplicate form field ID in the same form',
18
18
  /**
19
- * @description Tooltip text shown in the Elements panel when an element has an error.
19
+ * @description Tooltip text shown in the Elements panel when a form field has no label or aria-labelledby attribute.
20
20
  */
21
21
  formInputWithNoLabelError: 'Form field without valid aria-labelledby attribute or associated label',
22
22
  /**
23
- * @description Tooltip text shown in the Elements panel when an element has an error.
23
+ * @description Tooltip text shown in the Elements panel when an autocomplete attribute is empty or incorrect.
24
24
  */
25
25
  formAutocompleteAttributeEmptyError: 'Incorrect use of autocomplete attribute',
26
26
  /**
27
- * @description Tooltip text shown in the Elements panel when an element has an error.
27
+ * @description Tooltip text shown in the Elements panel when a form field lacks both ID and name attributes.
28
28
  */
29
- formEmptyIdAndNameAttributesForInputError: 'A form field element should have an id or name attribute',
29
+ formEmptyIdAndNameAttributesForInputError: 'A form field element should have an ID or name attribute',
30
30
  /**
31
- * @description Tooltip text shown in the Elements panel when an element has an error.
31
+ * @description Tooltip text shown in the Elements panel when an aria-labelledby attribute references a non-existent element ID.
32
32
  */
33
- formAriaLabelledByToNonExistingId: 'An aria-labelledby attribute doesn’t match any element id',
33
+ formAriaLabelledByToNonExistingId: 'An aria-labelledby attribute doesn’t match any element ID',
34
34
  /**
35
- * @description Tooltip text shown in the Elements panel when an element has an error.
35
+ * @description Tooltip text shown in the Elements panel when an element lacks an autocomplete attribute.
36
36
  */
37
37
  formInputAssignedAutocompleteValueToIdOrNameAttributeError: 'An element doesn’t have an autocomplete attribute',
38
38
  /**
39
- * @description Tooltip text shown in the Elements panel when an element has an error.
39
+ * @description Tooltip text shown in the Elements panel when a label is not associated with any form field.
40
40
  */
41
41
  formLabelHasNeitherForNorNestedInput: 'No label associated with a form field',
42
42
  /**
43
- * @description Tooltip text shown in the Elements panel when an element has an error.
43
+ * @description Tooltip text shown in the Elements panel when a label's for attribute references a non-existent element ID.
44
44
  */
45
45
  formLabelForMatchesNonExistingIdError: 'Incorrect use of <label for=FORM_ELEMENT>',
46
46
  /**
47
- * @description Tooltip text shown in the Elements panel when an element has an error.
47
+ * @description Tooltip text shown in the Elements panel when a form field uses a non-standard autocomplete value.
48
48
  */
49
49
  formInputHasWrongButWellIntendedAutocompleteValueError: 'Non-standard autocomplete attribute value',
50
50
  /**
51
- * @description Tooltip text shown in the Elements panel when an element has an error.
51
+ * @description Tooltip text shown in the Elements panel when an invalid element or text node is inside a select element.
52
52
  */
53
53
  disallowedSelectChild: 'Invalid element or text node within <select>',
54
54
  /**
55
- * @description Tooltip text shown in the Elements panel when an element has an error.
55
+ * @description Tooltip text shown in the Elements panel when an invalid element or text node is inside an optgroup element.
56
56
  */
57
57
  disallowedOptGroupChild: 'Invalid element or text node within <optgroup>',
58
58
  /**
59
- * @description Tooltip text shown in the Elements panel when an element has an error.
59
+ * @description Tooltip text shown in the Elements panel when non-phrasing content is used inside an option element.
60
60
  */
61
61
  nonPhrasingContentOptionChild: 'Non-phrasing content used within an <option> element',
62
62
  /**
63
- * @description Tooltip text shown in the Elements panel when an element has an error.
63
+ * @description Tooltip text shown in the Elements panel when an interactive element is inside an option element.
64
64
  */
65
65
  interactiveContentOptionChild: 'Interactive element inside of an <option> element',
66
66
  /**
67
- * @description Tooltip text shown in the Elements panel when an element has an error.
67
+ * @description Tooltip text shown in the Elements panel when an interactive element is inside a legend element.
68
68
  */
69
69
  interactiveContentLegendChild: 'Interactive element inside of a <legend> element',
70
70
  /**
71
- * @description Tooltip text shown in the Elements panel when an element has an error.
71
+ * @description Tooltip text shown in the Elements panel when an element with invalid attributes is inside a select element.
72
72
  */
73
73
  interactiveContentAttributesSelectDescendant: 'Element with invalid attributes within a <select> element',
74
74
  /**
75
- * @description Tooltip text shown in the Elements panel when an element has an error.
75
+ * @description Tooltip text shown in the Elements panel when an interactive element is inside a summary element.
76
76
  */
77
77
  interactiveContentSummaryDescendant: 'Interactive element inside of a <summary> element',
78
78
  } as const;
@@ -18,18 +18,18 @@ const {bindToSetting} = UI.UIUtils;
18
18
 
19
19
  const UIStrings = {
20
20
  /**
21
- * @description Title of a section in the Element State Pane Widget of the Elements panel. The
21
+ * @description Title of a section in the force element state section of the Styles tab in the Elements panel. The
22
22
  * controls in this section allow users to force a particular state on the selected element, e.g. a
23
23
  * focused state via :focus or a hover state via :hover.
24
24
  */
25
25
  forceElementState: 'Force element state',
26
26
  /**
27
- * @description Tooltip text in Element State Pane Widget of the Elements panel. For a button that
27
+ * @description Tooltip text in the force element state section of the Styles tab in the Elements panel. For a button that
28
28
  * opens a tool that toggles the various states of the selected element on/off.
29
29
  */
30
- toggleElementState: 'Toggle Element State',
30
+ toggleElementState: 'Toggle element state',
31
31
  /**
32
- * @description The name of a checkbox setting in the Element & Page State Pane Widget of the Elements panel.. This setting
32
+ * @description The name of a checkbox setting in the force element state section of the Styles tab in the Elements panel. This setting
33
33
  * emulates/pretends that the webpage is focused.
34
34
  */
35
35
  emulateFocusedPage: 'Emulate a focused page',
@@ -38,11 +38,11 @@ const UIStrings = {
38
38
  */
39
39
  emulatesAFocusedPage: 'Keep page focused. Commonly used for debugging disappearing elements.',
40
40
  /**
41
- * @description Similar with forceElementState but allows users to force specific state of the selected element.
41
+ * @description Title of a section in the Styles tab of the Elements panel. Allows users to force specific states of the selected element.
42
42
  */
43
43
  forceElementSpecificStates: 'Force specific element state',
44
44
  /**
45
- * @description Text that is usually a hyperlink to more documentation
45
+ * @description Text that is usually a hyperlink to more documentation.
46
46
  */
47
47
  learnMore: 'Learn more',
48
48
  } as const;
@@ -64,41 +64,41 @@ import {
64
64
 
65
65
  const UIStrings = {
66
66
  /**
67
- * @description Placeholder text for the search box the Elements Panel. Selector refers to CSS
67
+ * @description Placeholder text for the search box in the Elements panel. Selector refers to CSS
68
68
  * selectors.
69
69
  */
70
70
  findByStringSelectorOrXpath: 'Find by string, selector, or `XPath`',
71
71
  /**
72
- * @description Tooltip for the the Computed Styles sidebar toggle in the Styles pane. Command to
72
+ * @description Tooltip for the computed styles sidebar toggle in the Styles tab of the Elements panel. Command to
73
73
  * open/show the sidebar.
74
74
  */
75
- showComputedStylesSidebar: 'Show Computed Styles sidebar',
75
+ showComputedStylesSidebar: 'Show Computed styles sidebar',
76
76
  /**
77
- * @description Tooltip for the the Computed Styles sidebar toggle in the Styles pane. Command to
77
+ * @description Tooltip for the computed styles sidebar toggle in the Styles tab of the Elements panel. Command to
78
78
  * close/hide the sidebar.
79
79
  */
80
- hideComputedStylesSidebar: 'Hide Computed Styles sidebar',
80
+ hideComputedStylesSidebar: 'Hide Computed styles sidebar',
81
81
  /**
82
82
  * @description Screen reader announcement when the computed styles sidebar is shown in the Elements panel.
83
83
  */
84
- computedStylesShown: 'Computed Styles sidebar shown',
84
+ computedStylesShown: 'Computed styles sidebar shown',
85
85
  /**
86
86
  * @description Screen reader announcement when the computed styles sidebar is hidden in the Elements panel.
87
87
  */
88
- computedStylesHidden: 'Computed Styles sidebar hidden',
88
+ computedStylesHidden: 'Computed styles sidebar hidden',
89
89
  /**
90
- * @description Title of a pane in the Elements panel that shows computed styles for the selected
90
+ * @description Title of a tab in the Elements panel sidebar that shows computed styles for the selected
91
91
  * HTML element. Computed styles are the final, actual styles of the element, including all
92
92
  * implicit and specified styles.
93
93
  */
94
94
  computed: 'Computed',
95
95
  /**
96
- * @description Title of a pane in the Elements panel that shows the CSS styles for the selected
96
+ * @description Title of a tab in the Elements panel sidebar that shows the CSS styles for the selected
97
97
  * HTML element.
98
98
  */
99
99
  styles: 'Styles',
100
100
  /**
101
- * @description A context menu item to reveal a node in the DOM tree of the Elements Panel
101
+ * @description A context menu item to reveal a node in the DOM tree of the Elements panel.
102
102
  */
103
103
  openInElementsPanel: 'Open in Elements panel',
104
104
  /**
@@ -101,73 +101,73 @@ const UIStrings = {
101
101
  */
102
102
  forceState: 'Force state',
103
103
  /**
104
- * @description Hint element title in Elements Tree Element of the Elements panel
104
+ * @description Hint element title in the DOM tree of the Elements panel.
105
105
  * @example {0} PH1
106
106
  */
107
107
  useSInTheConsoleToReferToThis: 'Use {PH1} in the console to refer to this element.',
108
108
  /**
109
- * @description Context menu item in the Edit as HTML editor that selects the editor's entire
110
- * contents. "Select all" should be used as a verb.
111
- */
112
- selectAll: 'Select all',
113
- /**
114
- * @description Text to cut an element, cut should be used as a verb
109
+ * @description Text to cut an element, cut should be used as a verb.
115
110
  */
116
111
  cut: 'Cut',
117
112
  /**
118
- * @description Text for copying, copy should be used as a verb
113
+ * @description Text for copying, copy should be used as a verb.
119
114
  */
120
115
  copy: 'Copy',
121
116
  /**
122
- * @description Text to paste an element, paste should be used as a verb
117
+ * @description Text to paste an element, paste should be used as a verb.
123
118
  */
124
119
  paste: 'Paste',
125
120
  /**
126
- * @description Text in Elements Tree Element of the Elements panel
121
+ * @description Context menu item in the Edit as HTML editor that selects the editor's entire
122
+ * contents. "Select all" should be used as a verb.
123
+ */
124
+ selectAll: 'Select all',
125
+ /**
126
+ * @description Text in the DOM tree of the Elements panel.
127
127
  */
128
128
  valueIsTooLargeToEdit: '<value is too large to edit>',
129
129
  /**
130
- * @description Element text content in Elements Tree Element of the Elements panel
130
+ * @description Element text content in the DOM tree of the Elements panel.
131
131
  */
132
132
  children: 'Children:',
133
133
  /**
134
- * @description ARIA label for Elements Tree adorners
134
+ * @description ARIA label for Elements Tree adorners.
135
135
  */
136
136
  enableGridMode: 'Enable grid mode',
137
137
  /**
138
- * @description ARIA label for Elements Tree adorners
138
+ * @description ARIA label for Elements Tree adorners.
139
139
  */
140
140
  disableGridMode: 'Disable grid mode',
141
141
  /**
142
- * @description ARIA label for Elements Tree adorners
142
+ * @description ARIA label for Elements Tree adorners.
143
143
  */
144
144
  enableGridLanesMode: 'Enable grid-lanes mode',
145
145
  /**
146
- * @description ARIA label for Elements Tree adorners
146
+ * @description ARIA label for Elements Tree adorners.
147
147
  */
148
148
  disableGridLanesMode: 'Disable grid-lanes mode',
149
149
  /**
150
- * @description ARIA label for an elements tree adorner
150
+ * @description ARIA label for an elements tree adorner.
151
151
  */
152
152
  forceOpenPopover: 'Keep this popover open',
153
153
  /**
154
- * @description ARIA label for an elements tree adorner
154
+ * @description ARIA label for an elements tree adorner.
155
155
  */
156
156
  stopForceOpenPopover: 'Stop keeping this popover open',
157
157
  /**
158
- * @description ARIA label for an elements tree adorner
158
+ * @description ARIA label for an elements tree adorner.
159
159
  */
160
160
  forceShowInterest: 'Trigger interest on this element',
161
161
  /**
162
- * @description ARIA label for an elements tree adorner
162
+ * @description ARIA label for an elements tree adorner.
163
163
  */
164
164
  stopForceShowInterest: 'Cancel interest on this element',
165
165
  /**
166
- * @description Label of the adorner for flex elements in the Elements panel
166
+ * @description Label of the adorner for flex elements in the Elements panel.
167
167
  */
168
168
  enableFlexMode: 'Enable flex mode',
169
169
  /**
170
- * @description Label of the adorner for flex elements in the Elements panel
170
+ * @description Label of the adorner for flex elements in the Elements panel.
171
171
  */
172
172
  disableFlexMode: 'Disable flex mode',
173
173
  /**
@@ -202,23 +202,23 @@ const UIStrings = {
202
202
  disableStartingStyle: 'Disable @starting-style mode',
203
203
  /**
204
204
  * @description Label of an adorner in the Elements panel. When clicked, it redirects
205
- * to the Media Panel.
205
+ * to the Media panel.
206
206
  */
207
207
  openMediaPanel: 'Jump to Media panel',
208
208
  /**
209
- * @description Text of a tooltip to redirect to another element in the Elements panel
209
+ * @description Text of a tooltip to redirect to another element in the Elements panel.
210
210
  */
211
211
  showPopoverTarget: 'Show element associated with the `popovertarget` attribute',
212
212
  /**
213
- * @description Text of a tooltip to redirect to another element in the Elements panel, associated with the `interesttarget` attribute
213
+ * @description Text of a tooltip to redirect to another element in the Elements panel, associated with the `interesttarget` attribute.
214
214
  */
215
215
  showInterestTarget: 'Show element associated with the `interesttarget` attribute',
216
216
  /**
217
- * @description Text of a tooltip to redirect to another element in the Elements panel, associated with the `commandfor` attribute
217
+ * @description Text of a tooltip to redirect to another element in the Elements panel, associated with the `commandfor` attribute.
218
218
  */
219
219
  showCommandForTarget: 'Show element associated with the `commandfor` attribute',
220
220
  /**
221
- * @description Text of the tooltip for scroll adorner.
221
+ * @description Text of the tooltip for the scroll adorner.
222
222
  */
223
223
  elementHasScrollableOverflow: 'This element has a scrollable overflow',
224
224
  /**
@@ -231,9 +231,9 @@ const UIStrings = {
231
231
  */
232
232
  showCustomElementDefinition: 'Show custom element definition',
233
233
  /**
234
- * @description Link text content in Elements Tree Outline of the Elements panel. When clicked, it "reveals" the true location of an element.
234
+ * @description ARIA label for the top-layer adorner in the DOM tree of the Elements panel. When clicked, it reveals the true location of an element.
235
235
  */
236
- reveal: 'reveal',
236
+ reveal: 'Reveal',
237
237
  } as const;
238
238
  const str_ = i18n.i18n.registerUIStrings('panels/elements/ElementsTreeElement.ts', UIStrings);
239
239
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
@@ -60,11 +60,11 @@ import {TopLayerContainer} from './TopLayerContainer.js';
60
60
 
61
61
  const UIStrings = {
62
62
  /**
63
- * @description ARIA accessible name in Elements Tree Outline of the Elements panel
63
+ * @description ARIA accessible name in the DOM tree outline of the Elements panel.
64
64
  */
65
65
  pageDom: 'Page DOM',
66
66
  /**
67
- * @description Tree element expand all button element button text content in Elements Tree Outline of the Elements panel
67
+ * @description Text for the button to expand all tree nodes in the DOM tree outline of the Elements panel.
68
68
  * @example {3} PH1
69
69
  */
70
70
  showAllNodesDMore: 'Show all nodes ({PH1} more)',
@@ -74,9 +74,9 @@ const UIStrings = {
74
74
  */
75
75
  showAllLines: 'Show all ({PH1} lines)',
76
76
  /**
77
- * @description Text for popover that directs to Issues panel
77
+ * @description Text for popover that directs to the Issues panel.
78
78
  */
79
- viewIssue: 'View Issue:',
79
+ viewIssue: 'View issue:',
80
80
  } as const;
81
81
  const str_ = i18n.i18n.registerUIStrings('panels/elements/ElementsTreeOutline.ts', UIStrings);
82
82
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
@@ -113,7 +113,6 @@ interface ViewInput {
113
113
  onElementsTreeUpdated: (event: Common.EventTarget.EventTargetEvent<SDK.DOMModel.DOMNode[]>) => void;
114
114
  onElementCollapsed: () => void;
115
115
  onElementExpanded: () => void;
116
- onSaveNodeToTempVariable?: (node: SDK.DOMModel.DOMNode) => void;
117
116
  }
118
117
 
119
118
  interface ViewOutput {
@@ -217,7 +216,7 @@ export const DEFAULT_VIEW = (input: ViewInput, output: ViewOutput, target: HTMLE
217
216
  output.elementsTreeOutline.maxTreeDepth = input.maxTreeDepth;
218
217
  output.elementsTreeOutline.enableContextMenu = input.enableContextMenu ?? true;
219
218
  output.elementsTreeOutline.showContextMenu = (treeElement, event) => {
220
- void showContextMenu(treeElement, event, input.onSaveNodeToTempVariable);
219
+ void showContextMenu(treeElement, event);
221
220
  };
222
221
  let needsUpdate = false;
223
222
  const showComments = input.showComments ?? true;
@@ -546,9 +545,6 @@ export class DOMTreeWidget extends UI.Widget.Widget {
546
545
  onElementExpanded: () => {
547
546
  this.#clearHighlightedNode();
548
547
  },
549
- onSaveNodeToTempVariable: node => {
550
- void this.saveNodeToTempVariable(node);
551
- },
552
548
  },
553
549
  this.#viewOutput, this.contentElement);
554
550
  if (firstRender && this.#viewOutput.elementsTreeOutline) {
@@ -640,10 +636,6 @@ export class DOMTreeWidget extends UI.Widget.Widget {
640
636
  void this.#viewOutput.elementsTreeOutline?.findTreeElement(node)?.copyStyles();
641
637
  }
642
638
 
643
- async saveNodeToTempVariable(node: SDK.DOMModel.DOMNode): Promise<void> {
644
- await this.#viewOutput.elementsTreeOutline?.saveNodeToTempVariable(node);
645
- }
646
-
647
639
  /**
648
640
  * FIXME: used to determine focus state, probably we can have a better
649
641
  * way to do it.
@@ -1550,13 +1542,6 @@ export class ElementsTreeOutline extends
1550
1542
 
1551
1543
  showContextMenu: (treeElement: ElementsTreeElement, event: Event) => void = () => {};
1552
1544
 
1553
- async saveNodeToTempVariable(node: SDK.DOMModel.DOMNode): Promise<void> {
1554
- const remoteObjectForConsole = await node.resolveToObject();
1555
- const consoleModel = remoteObjectForConsole?.runtimeModel().target()?.model(SDK.ConsoleModel.ConsoleModel);
1556
- await consoleModel?.saveToTempVariable(
1557
- UI.Context.Context.instance().flavor(SDK.RuntimeModel.ExecutionContext), remoteObjectForConsole);
1558
- }
1559
-
1560
1545
  runPendingUpdates(): void {
1561
1546
  this.updateModifiedNodes();
1562
1547
  }
@@ -43,35 +43,35 @@ const {bindToAction, bindToSetting} = UI.UIUtils;
43
43
 
44
44
  const UIStrings = {
45
45
  /**
46
- * @description Title of show framework listeners setting in event listeners widget of the elements panel
46
+ * @description Title of show framework listeners setting in the Event listeners tab of the Elements panel.
47
47
  */
48
48
  frameworkListeners: 'Resolve `Framework` listeners',
49
49
  /**
50
- * @description Tooltip text that appears on the setting when hovering over it in Event Listeners Widget of the Elements panel
50
+ * @description Tooltip text that appears on the setting when hovering over it in the Event listeners tab of the Elements panel.
51
51
  */
52
52
  showListenersOnTheAncestors: 'Show listeners on the ancestors',
53
53
  /**
54
- * @description Alternative title text of a setting in Event Listeners Widget of the Elements panel
54
+ * @description Alternative title text of a setting in the Event listeners tab of the Elements panel.
55
55
  */
56
56
  ancestors: 'Ancestors',
57
57
  /**
58
- * @description Title of dispatch filter in event listeners widget of the elements panel
58
+ * @description Title of dispatch filter in the Event listeners tab of the Elements panel.
59
59
  */
60
60
  eventListenersCategory: 'Event listeners category',
61
61
  /**
62
- * @description Text for everything
62
+ * @description Text for everything.
63
63
  */
64
64
  all: 'All',
65
65
  /**
66
- * @description Text in Event Listeners Widget of the Elements panel
66
+ * @description Text in the Event listeners tab of the Elements panel.
67
67
  */
68
68
  passive: 'Passive',
69
69
  /**
70
- * @description Text in Event Listeners Widget of the Elements panel
70
+ * @description Text in the Event listeners tab of the Elements panel.
71
71
  */
72
72
  blocking: 'Blocking',
73
73
  /**
74
- * @description Tooltip text that appears on the setting when hovering over it in Event Listeners Widget of the Elements panel
74
+ * @description Tooltip text that appears on the setting when hovering over it in the Event listeners tab of the Elements panel.
75
75
  */
76
76
  resolveEventListenersBoundWith: 'Resolve event listeners bound with framework',
77
77
  } as const;
@@ -18,15 +18,15 @@ const {render, html, Directives: {ref}} = Lit;
18
18
 
19
19
  const UIStrings = {
20
20
  /**
21
- * @description Title of a section in the Element State Pane Widget of the Elements panel.
21
+ * @description Title of a section in the Layers tab of the Elements panel.
22
22
  * The widget shows the layers present in the context of the currently selected node.
23
- * */
23
+ */
24
24
  cssLayersTitle: 'CSS layers',
25
25
  /**
26
- * @description Tooltip text in Element State Pane Widget of the Elements panel.
26
+ * @description Tooltip text in the Layers tab of the Elements panel.
27
27
  * For a button that opens a tool that shows the layers present in the current document.
28
28
  */
29
- toggleCSSLayers: 'Toggle CSS Layers view',
29
+ toggleCSSLayers: 'Toggle CSS layers view',
30
30
  } as const;
31
31
  const str_ = i18n.i18n.registerUIStrings('panels/elements/LayersWidget.ts', UIStrings);
32
32
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
@@ -18,39 +18,39 @@ import layoutPaneStyles from './layoutPane.css.js';
18
18
 
19
19
  const UIStrings = {
20
20
  /**
21
- * @description Title of the input to select the overlay color for an element using the color picker
21
+ * @description Title of the input to select the overlay color for an element using the color picker.
22
22
  */
23
23
  chooseElementOverlayColor: 'Choose the overlay color for this element',
24
24
  /**
25
- * @description Title of the show element button in the Layout pane of the Elements panel
25
+ * @description Title of the show element button in the Layout tab of the Elements panel.
26
26
  */
27
27
  showElementInTheElementsPanel: 'Show element in the Elements panel',
28
28
  /**
29
- * @description Title of a section on CSS Grid/Grid Lanes tooling
29
+ * @description Title of a section on CSS Grid/Grid Lanes tooling.
30
30
  */
31
- gridOrGridLanes: 'Grid / Grid Lanes',
31
+ gridOrGridLanes: 'Grid / grid lanes',
32
32
  /**
33
- * @description Title of a section in the Layout Sidebar pane of the Elements panel
33
+ * @description Title of a section in the Layout tab of the Elements panel.
34
34
  */
35
35
  overlayDisplaySettings: 'Overlay display settings',
36
36
  /**
37
- * @description Title of a section in Layout sidebar pane
37
+ * @description Title of a section in the Layout tab of the Elements panel.
38
38
  */
39
- gridOrGridLanesOverlays: 'Grid / Grid Lanes overlays',
39
+ gridOrGridLanesOverlays: 'Grid / grid lanes overlays',
40
40
  /**
41
- * @description Message in the Layout panel informing users that no CSS Grid/Grid Lanes layouts were found on the page
41
+ * @description Message in the Layout tab informing users that no CSS Grid/Grid Lanes layouts were found on the page.
42
42
  */
43
43
  noGridOrGridLanesLayoutsFoundOnThisPage: 'No grid or grid lanes layouts found on this page',
44
44
  /**
45
- * @description Title of the Flexbox section in the Layout panel
45
+ * @description Title of the Flexbox section in the Layout tab of the Elements panel.
46
46
  */
47
47
  flexbox: 'Flexbox',
48
48
  /**
49
- * @description Title of a section in the Layout panel
49
+ * @description Title of a section in the Layout tab of the Elements panel.
50
50
  */
51
51
  flexboxOverlays: 'Flexbox overlays',
52
52
  /**
53
- * @description Text in the Layout panel, when no flexbox elements are found
53
+ * @description Text in the Layout tab, when no flexbox elements are found.
54
54
  */
55
55
  noFlexboxLayoutsFoundOnThisPage: 'No flexbox layouts found on this page',
56
56
  /**
@@ -10,11 +10,11 @@ import {PseudoStateMarkerDecorator} from './ElementsPanel.js';
10
10
 
11
11
  const UIStrings = {
12
12
  /**
13
- * @description Title of the Marker Decorator of Elements
13
+ * @description Title of a marker decorator in the Elements panel.
14
14
  */
15
- domBreakpoint: 'DOM Breakpoint',
15
+ domBreakpoint: 'DOM breakpoint',
16
16
  /**
17
- * @description Title of the Marker Decorator of Elements
17
+ * @description Title of a marker decorator in the Elements panel.
18
18
  */
19
19
  elementIsHidden: 'Element is hidden',
20
20
  } as const;
@@ -12,31 +12,31 @@ import platformFontsWidgetStyles from './platformFontsWidget.css.js';
12
12
 
13
13
  const UIStrings = {
14
14
  /**
15
- * @description Section title text content in Platform Fonts Widget of the Elements panel
15
+ * @description Section title text content in the Rendered Fonts section of the Computed styles tab in the Elements panel.
16
16
  */
17
- renderedFonts: 'Rendered Fonts',
17
+ renderedFonts: 'Rendered fonts',
18
18
  /**
19
- * @description Font property title text content in Platform Fonts Widget of the Elements panel
19
+ * @description Font property title text content in the Rendered Fonts section of the Computed styles tab in the Elements panel. Refers to the CSS `font-family` property (https://developer.mozilla.org/en-US/docs/Web/CSS/font-family).
20
20
  */
21
21
  familyName: 'Family name',
22
22
  /**
23
- * @description Font property title text content in Platform Fonts Widget of the Elements panel
23
+ * @description Font property title text content in the Rendered Fonts section of the Computed styles tab in the Elements panel.
24
24
  */
25
25
  postScriptName: 'PostScript name',
26
26
  /**
27
- * @description Font property title text content in Platform Fonts Widget of the Elements panel
27
+ * @description Font property title text content in the Rendered Fonts section of the Computed styles tab in the Elements panel.
28
28
  */
29
29
  fontOrigin: 'Font origin',
30
30
  /**
31
- * @description Text in Platform Fonts Widget of the Elements panel
31
+ * @description Text in the Rendered Fonts section of the Computed styles tab in the Elements panel.
32
32
  */
33
33
  networkResource: 'Network resource',
34
34
  /**
35
- * @description Text in Platform Fonts Widget of the Elements panel
35
+ * @description Text in the Rendered Fonts section of the Computed styles tab in the Elements panel.
36
36
  */
37
37
  localFile: 'Local file',
38
38
  /**
39
- * @description Text in Platform Fonts Widget of the Elements panel. Indicates a number of glyphs (characters) .
39
+ * @description Text in the Rendered Fonts section of the Computed styles tab in the Elements panel. Indicates a number of glyphs (characters).
40
40
  */
41
41
  dGlyphs: '{n, plural, =1 {(# glyph)} other {(# glyphs)}}',
42
42
  } as const;
@@ -53,14 +53,14 @@ const {repeat} = Directives;
53
53
  const UIStrings = {
54
54
  /**
55
55
  * @description Text on the checkbox in the Properties tab of the Elements panel, which controls whether
56
- * all properties of the currently selected DOM element are shown, or only meaningful properties (i.e.
57
- * excluding properties whose values aren't set for example).
56
+ * all properties of the currently selected DOM element are shown, or only meaningful properties (for example,
57
+ * excluding properties whose values are not set).
58
58
  */
59
59
  showAll: 'Show all',
60
60
  /**
61
61
  * @description Tooltip on the checkbox in the Properties tab of the Elements panel, which controls whether
62
- * all properties of the currently selected DOM element are shown, or only meaningful properties (i.e.
63
- * excluding properties whose values aren't set for example).
62
+ * all properties of the currently selected DOM element are shown, or only meaningful properties (for example,
63
+ * excluding properties whose values are not set).
64
64
  */
65
65
  showAllTooltip: 'When unchecked, only properties whose values are neither null nor undefined will be shown',
66
66
  /**
@@ -17,12 +17,12 @@ import {unescapeCssString} from './StylesSidebarPane.js';
17
17
 
18
18
  const UIStrings = {
19
19
  /**
20
- * @description Text that is announced by the screen reader when the user focuses on an input field for entering the name of a CSS property in the Styles panel
20
+ * @description Text that is announced by the screen reader when the user focuses on an input field for entering the name of a CSS property in the Styles tab of the Elements panel.
21
21
  * @example {margin} PH1
22
22
  */
23
23
  cssPropertyName: '`CSS` property name: {PH1}',
24
24
  /**
25
- * @description Text that is announced by the screen reader when the user focuses on an input field for entering the value of a CSS property in the Styles panel
25
+ * @description Text that is announced by the screen reader when the user focuses on an input field for entering the value of a CSS property in the Styles tab of the Elements panel.
26
26
  * @example {10px} PH1
27
27
  */
28
28
  cssPropertyValue: '`CSS` property value: {PH1}',
@@ -47,7 +47,7 @@ const {html, render} = Lit;
47
47
 
48
48
  const UIStrings = {
49
49
  /**
50
- * @description Link text content in Elements Tree Outline of the Elements panel
50
+ * @description Link text content in the DOM tree outline of the Elements panel.
51
51
  */
52
52
  reveal: 'reveal',
53
53
  } as const;