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.
- package/front_end/core/sdk/DOMModel.ts +8 -0
- package/front_end/core/sdk/NetworkManager.ts +9 -4
- package/front_end/core/sdk/OverlayModel.ts +3 -2
- package/front_end/core/sdk/SDKSettings.ts +19 -0
- package/front_end/entrypoints/main/main-meta.ts +82 -0
- package/front_end/entrypoints/shell/shell.ts +0 -3
- package/front_end/entrypoints/trace_app/trace_app.ts +0 -3
- package/front_end/models/ai_code_completion/debug.ts +6 -3
- package/front_end/models/ai_code_generation/debug.ts +6 -3
- package/front_end/models/badges/UserBadges.ts +9 -2
- package/front_end/models/emulation/DeviceModeModel.ts +16 -27
- package/front_end/models/emulation/EmulatedDevices.ts +30 -125
- package/front_end/models/extensions/ExtensionAPI.ts +34 -23
- package/front_end/models/logs/NetworkLog.ts +3 -3
- package/front_end/models/logs/logs-meta.ts +0 -60
- package/front_end/models/persistence/NetworkPersistenceManager.ts +7 -1
- package/front_end/panels/application/ServiceWorkersView.ts +1 -1
- package/front_end/panels/application/StorageView.ts +2 -0
- package/front_end/panels/common/BadgeNotification.ts +1 -1
- package/front_end/panels/common/ExtensionPanel.ts +12 -7
- package/front_end/panels/common/ExtensionServer.ts +76 -16
- package/front_end/panels/common/GdpSignUpDialog.ts +1 -1
- package/front_end/panels/console/ConsoleView.ts +2 -1
- package/front_end/panels/console/ConsoleViewMessage.ts +3 -2
- package/front_end/panels/console/console-meta.ts +9 -0
- package/front_end/panels/elements/CSSRuleValidator.ts +12 -12
- package/front_end/panels/elements/CSSSpecificityBreakdown.ts +1 -1
- package/front_end/panels/elements/ClassesPaneWidget.ts +6 -6
- package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +1 -1
- package/front_end/panels/elements/ComputedStyleWidget.ts +4 -5
- package/front_end/panels/elements/DOMTreeContextMenu.ts +3 -6
- package/front_end/panels/elements/ElementIssueUtils.ts +20 -20
- package/front_end/panels/elements/ElementStatePaneWidget.ts +6 -6
- package/front_end/panels/elements/ElementsPanel.ts +10 -10
- package/front_end/panels/elements/ElementsTreeElement.ts +28 -28
- package/front_end/panels/elements/ElementsTreeOutline.ts +5 -20
- package/front_end/panels/elements/EventListenersWidget.ts +8 -8
- package/front_end/panels/elements/LayersWidget.ts +4 -4
- package/front_end/panels/elements/LayoutPane.ts +11 -11
- package/front_end/panels/elements/MarkerDecorator.ts +3 -3
- package/front_end/panels/elements/PlatformFontsWidget.ts +8 -8
- package/front_end/panels/elements/PropertiesWidget.ts +4 -4
- package/front_end/panels/elements/PropertyRenderer.ts +2 -2
- package/front_end/panels/elements/ShortcutTreeElement.ts +1 -1
- package/front_end/panels/elements/StylePropertiesSection.ts +14 -14
- package/front_end/panels/elements/StylePropertyTreeElement.ts +21 -21
- package/front_end/panels/elements/StylesSidebarPane.ts +12 -13
- package/front_end/panels/elements/components/AccessibilityTreeNode.ts +1 -1
- package/front_end/panels/elements/components/CSSHintDetailsView.ts +1 -1
- package/front_end/panels/elements/components/CSSVariableValueView.ts +3 -3
- package/front_end/panels/elements/components/ElementsBreadcrumbsUtils.ts +2 -2
- package/front_end/panels/elements/components/ElementsTreeExpandButton.ts +1 -1
- package/front_end/panels/elements/elements-meta.ts +13 -13
- package/front_end/panels/issues/AffectedCookiesView.ts +2 -0
- package/front_end/panels/issues/AffectedElementsView.ts +5 -0
- package/front_end/panels/issues/IssueView.ts +7 -2
- package/front_end/panels/layer_viewer/LayerDetailsView.ts +11 -7
- package/front_end/panels/layer_viewer/LayerTreeOutline.ts +2 -0
- package/front_end/panels/network/NetworkLogView.ts +5 -2
- package/front_end/panels/network/NetworkOverview.ts +11 -5
- package/front_end/panels/network/NetworkPanel.ts +2 -1
- package/front_end/panels/network/NetworkWaterfallColumn.ts +16 -3
- package/front_end/panels/network/RequestHeadersView.ts +4 -4
- package/front_end/panels/network/components/ResponseHeaderSection.ts +6 -2
- package/front_end/panels/network/network-meta.ts +57 -0
- package/front_end/panels/settings/components/SyncSection.ts +1 -1
- package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +0 -3
- package/front_end/panels/sources/NavigatorView.ts +6 -2
- package/front_end/panels/sources/SourcesNavigator.ts +8 -4
- package/front_end/panels/sources/SourcesPanel.ts +4 -2
- package/front_end/panels/sources/SourcesSearchScope.ts +3 -1
- package/front_end/panels/sources/UISourceCodeFrame.ts +2 -2
- package/front_end/panels/web_audio/WebAudioView.ts +8 -0
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/web-vitals/rebuild.sh +1 -1
- package/front_end/ui/legacy/components/color_picker/ContrastDetails.ts +11 -11
- package/front_end/ui/legacy/components/color_picker/FormatPickerContextMenu.ts +1 -1
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +19 -20
- package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +2 -2
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +164 -325
- package/front_end/ui/visual_logging/KnownContextValues.ts +11 -0
- package/mcp/mcp.ts +0 -3
- package/package.json +1 -1
- package/front_end/core/sdk/sdk-meta.ts +0 -40
- package/front_end/models/badges/badges-meta.ts +0 -27
- 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
|
|
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
|
|
15
|
+
* @description Tooltip text shown in the Elements panel when a form field has a duplicate ID.
|
|
16
16
|
*/
|
|
17
|
-
formDuplicateIdForInputError: 'Duplicate form field
|
|
17
|
+
formDuplicateIdForInputError: 'Duplicate form field ID in the same form',
|
|
18
18
|
/**
|
|
19
|
-
* @description Tooltip text shown in the Elements panel when
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
30
|
+
toggleElementState: 'Toggle element state',
|
|
31
31
|
/**
|
|
32
|
-
* @description The name of a checkbox setting in the
|
|
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
|
|
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
|
|
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
|
|
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
|
|
75
|
+
showComputedStylesSidebar: 'Show Computed styles sidebar',
|
|
76
76
|
/**
|
|
77
|
-
* @description Tooltip for the
|
|
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
|
|
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
|
|
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
|
|
88
|
+
computedStylesHidden: 'Computed styles sidebar hidden',
|
|
89
89
|
/**
|
|
90
|
-
* @description Title of a
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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: '
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 /
|
|
31
|
+
gridOrGridLanes: 'Grid / grid lanes',
|
|
32
32
|
/**
|
|
33
|
-
* @description Title of a section in the Layout
|
|
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
|
|
37
|
+
* @description Title of a section in the Layout tab of the Elements panel.
|
|
38
38
|
*/
|
|
39
|
-
gridOrGridLanesOverlays: 'Grid /
|
|
39
|
+
gridOrGridLanesOverlays: 'Grid / grid lanes overlays',
|
|
40
40
|
/**
|
|
41
|
-
* @description Message in the Layout
|
|
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
|
|
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
|
|
13
|
+
* @description Title of a marker decorator in the Elements panel.
|
|
14
14
|
*/
|
|
15
|
-
domBreakpoint: 'DOM
|
|
15
|
+
domBreakpoint: 'DOM breakpoint',
|
|
16
16
|
/**
|
|
17
|
-
* @description Title of
|
|
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
|
|
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
|
|
17
|
+
renderedFonts: 'Rendered fonts',
|
|
18
18
|
/**
|
|
19
|
-
* @description Font property title text content in
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 (
|
|
57
|
-
* excluding properties whose values
|
|
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 (
|
|
63
|
-
* excluding properties whose values
|
|
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
|
|
50
|
+
* @description Link text content in the DOM tree outline of the Elements panel.
|
|
51
51
|
*/
|
|
52
52
|
reveal: 'reveal',
|
|
53
53
|
} as const;
|