chrome-devtools-frontend 1.0.1592362 → 1.0.1593959
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/docs/contributing/settings-experiments-features.md +75 -100
- package/front_end/Images/src/tab-move.svg +1 -0
- package/front_end/application_tokens.css +4 -4
- package/front_end/core/host/UserMetrics.ts +1 -2
- package/front_end/core/root/ExperimentNames.ts +0 -1
- package/front_end/entrypoints/main/MainImpl.ts +0 -6
- package/front_end/generated/InspectorBackendCommands.ts +8 -5
- package/front_end/generated/SupportedCSSProperties.js +2 -2
- package/front_end/generated/protocol-mapping.d.ts +14 -0
- package/front_end/generated/protocol-proxy-api.d.ts +10 -0
- package/front_end/generated/protocol.ts +106 -0
- package/front_end/models/ai_assistance/agents/AiAgent.ts +24 -1
- package/front_end/models/ai_assistance/agents/BreakpointDebuggerAgent.ts +26 -86
- package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +14 -4
- package/front_end/models/ai_assistance/agents/StylingAgent.ts +16 -2
- package/front_end/models/ai_code_completion/AiCodeCompletion.ts +1 -0
- package/front_end/models/issues_manager/IssueAggregator.ts +0 -9
- package/front_end/models/issues_manager/IssuesManager.ts +0 -5
- package/front_end/models/issues_manager/issues_manager.ts +0 -4
- package/front_end/models/javascript_metadata/NativeFunctions.js +10 -6
- package/front_end/models/lighthouse/lighthouse.ts +9 -0
- package/front_end/panels/accessibility/AXBreadcrumbsPane.ts +5 -3
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +29 -6
- package/front_end/panels/ai_assistance/README.md +61 -0
- package/front_end/panels/ai_assistance/components/ChatMessage.ts +141 -27
- package/front_end/panels/ai_assistance/components/ChatView.ts +5 -1
- package/front_end/panels/ai_assistance/components/WalkthroughView.ts +19 -7
- package/front_end/panels/ai_assistance/components/chatMessage.css +30 -0
- package/front_end/panels/ai_assistance/components/walkthroughView.css +12 -7
- package/front_end/panels/animation/AnimationGroupPreviewUI.ts +1 -1
- package/front_end/panels/application/ServiceWorkerUpdateCycleView.ts +1 -0
- package/front_end/panels/application/components/BackForwardCacheView.ts +4 -2
- package/front_end/panels/autofill/AutofillView.ts +1 -1
- package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +161 -154
- package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +1 -0
- package/front_end/panels/browser_debugger/domBreakpointsSidebarPane.css +58 -36
- package/front_end/panels/common/AiCodeCompletionDisclaimer.ts +3 -0
- package/front_end/panels/common/AiCodeGenerationTeaser.ts +3 -0
- package/front_end/panels/console/ConsoleViewMessage.ts +1 -0
- package/front_end/panels/console/consoleView.css +7 -2
- package/front_end/panels/elements/ComputedStyleWidget.ts +5 -1
- package/front_end/panels/elements/ElementsTreeElement.ts +1 -0
- package/front_end/panels/elements/LayoutPane.ts +8 -7
- package/front_end/panels/elements/StandaloneStylesContainer.ts +254 -0
- package/front_end/panels/elements/StylesAiCodeCompletionProvider.ts +1 -6
- package/front_end/panels/elements/StylesSidebarPane.ts +79 -0
- package/front_end/panels/elements/components/ComputedStyleTrace.ts +4 -0
- package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +1 -1
- package/front_end/panels/elements/components/StylePropertyEditor.ts +2 -1
- package/front_end/panels/elements/components/computedStyleProperty.css +1 -1
- package/front_end/panels/elements/elements.ts +2 -0
- package/front_end/panels/emulation/DeviceModeToolbar.ts +181 -66
- package/front_end/panels/issues/HiddenIssuesRow.ts +1 -1
- package/front_end/panels/issues/IssueKindView.ts +2 -1
- package/front_end/panels/issues/IssueView.ts +2 -4
- package/front_end/panels/issues/IssuesPane.ts +2 -2
- package/front_end/panels/lighthouse/LighthouseController.ts +3 -3
- package/front_end/panels/lighthouse/LighthousePanel.ts +9 -5
- package/front_end/panels/lighthouse/LighthouseProtocolService.ts +5 -5
- package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +7 -8
- package/front_end/panels/lighthouse/LighthouseReportSelector.ts +4 -3
- package/front_end/panels/lighthouse/lighthouse.ts +0 -2
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryValueInterpreter.ts +1 -1
- package/front_end/panels/linear_memory_inspector/components/ValueInterpreterDisplay.ts +1 -1
- package/front_end/panels/media/PlayerListView.ts +1 -1
- package/front_end/panels/network/NetworkLogViewColumns.ts +2 -1
- package/front_end/panels/network/components/RequestHeaderSection.ts +1 -1
- package/front_end/panels/protocol_monitor/JSONEditor.ts +1 -1
- package/front_end/panels/recorder/components/RecordingListView.ts +1 -1
- package/front_end/panels/recorder/components/StepEditor.ts +3 -3
- package/front_end/panels/settings/KeybindsSettingsTab.ts +2 -1
- package/front_end/panels/sources/components/HeadersView.ts +2 -2
- package/front_end/panels/timeline/components/BreadcrumbsUI.ts +1 -1
- package/front_end/panels/timeline/components/SidebarAnnotationsTab.ts +1 -1
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/puppeteer/README.chromium +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Navigation.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Navigation.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Navigation.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +6 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Navigation.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Navigation.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Navigation.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/package.json +4 -4
- package/front_end/third_party/puppeteer/package/src/bidi/core/Navigation.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/cdp/BrowserContext.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/node/ChromeLauncher.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
- package/front_end/third_party/source-map-scopes-codec/package/deno.json +1 -1
- package/front_end/third_party/source-map-scopes-codec/package/package.json +1 -1
- package/front_end/third_party/source-map-scopes-codec/package/src/decode/decode.js +1 -1
- package/front_end/third_party/source-map-scopes-codec/package/src/decode/decode.js.map +1 -1
- package/front_end/third_party/source-map-scopes-codec/package/src/decode/decode.ts +1 -1
- package/front_end/third_party/source-map-scopes-codec/package/src/encode/encoder.js +1 -1
- package/front_end/third_party/source-map-scopes-codec/package/src/encode/encoder.js.map +1 -1
- package/front_end/third_party/source-map-scopes-codec/package/src/encode/encoder.ts +2 -2
- package/front_end/ui/components/suggestion_input/SuggestionInput.ts +7 -12
- package/front_end/ui/components/tree_outline/TreeOutline.ts +6 -2
- package/front_end/ui/components/tree_outline/treeOutline.css +5 -0
- package/front_end/ui/legacy/ListControl.ts +5 -3
- package/front_end/ui/legacy/ListWidget.ts +1 -1
- package/front_end/ui/legacy/SoftContextMenu.ts +2 -1
- package/front_end/ui/legacy/SuggestBox.ts +4 -0
- package/front_end/ui/legacy/TextPrompt.ts +1 -1
- package/front_end/ui/legacy/Treeoutline.ts +1 -0
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +4 -2
- package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +1 -1
- package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +31 -0
- package/front_end/ui/visual_logging/KnownContextValues.ts +16 -0
- package/inspector_overlay/highlight_grid_common.ts +11 -8
- package/package.json +1 -1
- package/front_end/models/issues_manager/ContrastCheckTrigger.ts +0 -78
- package/front_end/models/issues_manager/LowTextContrastIssue.ts +0 -63
- package/front_end/panels/issues/AffectedElementsWithLowContrastView.ts +0 -91
- /package/front_end/{panels → models}/lighthouse/LighthouseReporterTypes.ts +0 -0
|
@@ -353,7 +353,7 @@ function renderFramesPerReason(frames: string[]|undefined): LitTemplate {
|
|
|
353
353
|
}
|
|
354
354
|
const rows = [html`<div>${i18nString(UIStrings.framesPerIssue, {n: frames.length})}</div>`];
|
|
355
355
|
rows.push(...frames.map(url => html`<div class="text-ellipsis" title=${url}
|
|
356
|
-
jslog=${VisualLogging.treeItem()}>${url}</div>`));
|
|
356
|
+
jslog=${VisualLogging.treeItem().track({resize: true})}>${url}</div>`));
|
|
357
357
|
return html`
|
|
358
358
|
<div class="details-list"
|
|
359
359
|
jslog=${VisualLogging.tree('frames-per-issue')}>
|
|
@@ -361,7 +361,9 @@ function renderFramesPerReason(frames: string[]|undefined): LitTemplate {
|
|
|
361
361
|
rows,
|
|
362
362
|
title: i18nString(UIStrings.framesPerIssue, {n: frames.length}),
|
|
363
363
|
} as ExpandableList.ExpandableList.ExpandableListData}
|
|
364
|
-
jslog=${VisualLogging.treeItem()
|
|
364
|
+
jslog=${VisualLogging.treeItem().track({
|
|
365
|
+
resize: true
|
|
366
|
+
})}></devtools-expandable-list>
|
|
365
367
|
</div>
|
|
366
368
|
`;
|
|
367
369
|
}
|
|
@@ -144,7 +144,7 @@ const DEFAULT_VIEW: View = (input: ViewInput, _output: ViewOutput, target: HTMLE
|
|
|
144
144
|
// clang-format off
|
|
145
145
|
return html`
|
|
146
146
|
<span class=${spanClasses}
|
|
147
|
-
jslog=${VisualLogging.item('matched-address-item').track({hover: true})}
|
|
147
|
+
jslog=${VisualLogging.item('matched-address-item').track({hover: true, resize: true})}
|
|
148
148
|
@mouseenter=${() => input.onHighlightMatchesInAddress(startIndex)}
|
|
149
149
|
@mouseleave=${input.onClearHighlightedMatches}>
|
|
150
150
|
${templateLines}
|
|
@@ -2,14 +2,13 @@
|
|
|
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
|
-
/* eslint-disable @devtools/no-imperative-dom-api */
|
|
6
|
-
|
|
7
5
|
import * as Common from '../../core/common/common.js';
|
|
8
6
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
9
7
|
import type * as Platform from '../../core/platform/platform.js';
|
|
10
8
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
11
9
|
import * as Protocol from '../../generated/protocol.js';
|
|
12
10
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
11
|
+
import * as Lit from '../../ui/lit/lit.js';
|
|
13
12
|
import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
|
|
14
13
|
import * as PanelsCommon from '../common/common.js';
|
|
15
14
|
import * as Sources from '../sources/sources.js';
|
|
@@ -107,38 +106,118 @@ const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined
|
|
|
107
106
|
const DOM_BREAKPOINT_DOCUMENTATION_URL =
|
|
108
107
|
'https://developer.chrome.com/docs/devtools/javascript/breakpoints#dom' as Platform.DevToolsPath.UrlString;
|
|
109
108
|
|
|
109
|
+
const {html, render, Directives} = Lit;
|
|
110
|
+
|
|
111
|
+
export interface Breakpoint {
|
|
112
|
+
breakpoint: SDK.DOMDebuggerModel.DOMBreakpoint;
|
|
113
|
+
label: string;
|
|
114
|
+
isHighlighted: boolean;
|
|
115
|
+
isFocused: boolean;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export interface ViewInput {
|
|
119
|
+
breakpoints: Breakpoint[];
|
|
120
|
+
onBreakpointClick: (breakpoint: SDK.DOMDebuggerModel.DOMBreakpoint) => void;
|
|
121
|
+
onBreakpointCheckboxClick: (breakpoint: SDK.DOMDebuggerModel.DOMBreakpoint) => void;
|
|
122
|
+
onBreakpointContextMenu: (breakpoint: SDK.DOMDebuggerModel.DOMBreakpoint, event: Event) => void;
|
|
123
|
+
onBreakpointKeyDown: (breakpoint: SDK.DOMDebuggerModel.DOMBreakpoint, event: Event) => void;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export type View = (input: ViewInput, output: undefined, target: HTMLElement) => void;
|
|
127
|
+
|
|
128
|
+
export const DEFAULT_VIEW: View = (input, _output, target) => {
|
|
129
|
+
const hasBreakpoints = input.breakpoints.length > 0;
|
|
130
|
+
|
|
131
|
+
// clang-format off
|
|
132
|
+
render(
|
|
133
|
+
html`
|
|
134
|
+
<style>${domBreakpointsSidebarPaneStyles}</style>
|
|
135
|
+
<div class="dom-breakpoints-container" jslog=${VisualLogging.section('sources.dom-breakpoints').track({ resize: true })}>
|
|
136
|
+
${hasBreakpoints ? html
|
|
137
|
+
`<ul class="breakpoint-list"
|
|
138
|
+
aria-label=${i18nString(UIStrings.domBreakpointsList)}>
|
|
139
|
+
${input.breakpoints.map(item => {
|
|
140
|
+
const {breakpoint} = item;
|
|
141
|
+
const checkedStateText = breakpoint.enabled ? i18nString(UIStrings.checked) : i18nString(UIStrings.unchecked);
|
|
142
|
+
const linkified = PanelsCommon.DOMLinkifier.Linkifier.instance().linkify(
|
|
143
|
+
breakpoint.node, {preventKeyboardFocus: true, tooltip: undefined});
|
|
144
|
+
return html`
|
|
145
|
+
<li class=${`breakpoint-entry ${item.isHighlighted ? 'breakpoint-hit' : ''}`}
|
|
146
|
+
tabindex=${item.isFocused ? '0' : '-1'}
|
|
147
|
+
@click=${() => input.onBreakpointClick(breakpoint)}
|
|
148
|
+
@contextmenu=${(e: Event) => input.onBreakpointContextMenu(breakpoint, e)}
|
|
149
|
+
@keydown=${(e: Event) => input.onBreakpointKeyDown(breakpoint, e)}
|
|
150
|
+
aria-label=${i18nString(UIStrings.sSS, { PH1: item.label, PH2: linkified.deepTextContent(), PH3: checkedStateText })}
|
|
151
|
+
aria-description=${item.isHighlighted ? i18nString(UIStrings.sBreakpointHit, { PH1: checkedStateText }) : checkedStateText}
|
|
152
|
+
jslog=${VisualLogging.domBreakpoint().context(breakpoint.type).track({ keydown: 'ArrowUp|ArrowDown|PageUp|PageDown' })}>
|
|
153
|
+
<devtools-checkbox
|
|
154
|
+
class="checkbox-label"
|
|
155
|
+
.checked=${breakpoint.enabled}
|
|
156
|
+
@click=${(e: Event) => e.stopPropagation()}
|
|
157
|
+
@change=${() => input.onBreakpointCheckboxClick(breakpoint)}
|
|
158
|
+
tabindex="-1"
|
|
159
|
+
aria-label=${i18nString(UIStrings.sS, { PH1: item.label, PH2: linkified.deepTextContent() })}
|
|
160
|
+
aria-description=${Directives.ifDefined(item.isHighlighted ? i18nString(UIStrings.breakpointHit) : undefined)}
|
|
161
|
+
jslog=${VisualLogging.toggle().track({ click: true })}>
|
|
162
|
+
</devtools-checkbox>
|
|
163
|
+
<div class="dom-breakpoint">
|
|
164
|
+
<code class="monospace" style="display: block;">${linkified}</code>
|
|
165
|
+
<div>${item.label}</div>
|
|
166
|
+
</div>
|
|
167
|
+
</li>`;
|
|
168
|
+
})}
|
|
169
|
+
</ul>` : html
|
|
170
|
+
`<div class="placeholder">
|
|
171
|
+
<div class="gray-info-message">${i18nString(UIStrings.noBreakpoints)}</div>
|
|
172
|
+
<devtools-widget .widgetConfig=${UI.Widget.widgetConfig(UI.EmptyWidget.EmptyWidget, {
|
|
173
|
+
header: i18nString(UIStrings.noBreakpoints),
|
|
174
|
+
text: i18nString(UIStrings.domBreakpointsDescription),
|
|
175
|
+
link: DOM_BREAKPOINT_DOCUMENTATION_URL,
|
|
176
|
+
})}></devtools-widget>
|
|
177
|
+
</div>`}
|
|
178
|
+
</div>
|
|
179
|
+
`,
|
|
180
|
+
target
|
|
181
|
+
);
|
|
182
|
+
// clang-format on
|
|
183
|
+
};
|
|
184
|
+
|
|
110
185
|
let domBreakpointsSidebarPaneInstance: DOMBreakpointsSidebarPane;
|
|
111
186
|
|
|
112
187
|
export class DOMBreakpointsSidebarPane extends UI.Widget.VBox implements
|
|
113
|
-
UI.ContextFlavorListener.ContextFlavorListener
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
#
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
188
|
+
UI.ContextFlavorListener.ContextFlavorListener {
|
|
189
|
+
readonly #breakpoints: SDK.DOMDebuggerModel.DOMBreakpoint[] = [];
|
|
190
|
+
#highlightedBreakpoint: SDK.DOMDebuggerModel.DOMBreakpoint|null = null;
|
|
191
|
+
#focusedBreakpoint: SDK.DOMDebuggerModel.DOMBreakpoint|null = null;
|
|
192
|
+
readonly #view: View;
|
|
193
|
+
|
|
194
|
+
set highlightedBreakpoint(breakpoint: SDK.DOMDebuggerModel.DOMBreakpoint|null) {
|
|
195
|
+
this.#highlightedBreakpoint = breakpoint;
|
|
196
|
+
this.requestUpdate();
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
set focusedBreakpoint(breakpoint: SDK.DOMDebuggerModel.DOMBreakpoint|null) {
|
|
200
|
+
if (this.#focusedBreakpoint === breakpoint) {
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
this.#focusedBreakpoint = breakpoint;
|
|
204
|
+
this.#synchronizeFocusedBreakpoint();
|
|
205
|
+
this.requestUpdate();
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
#synchronizeFocusedBreakpoint(): void {
|
|
209
|
+
if (this.#focusedBreakpoint && !this.#breakpoints.includes(this.#focusedBreakpoint)) {
|
|
210
|
+
this.#focusedBreakpoint = null;
|
|
211
|
+
}
|
|
212
|
+
if (!this.#focusedBreakpoint && this.#breakpoints.length > 0) {
|
|
213
|
+
this.#focusedBreakpoint = this.#breakpoints[0];
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
constructor(view = DEFAULT_VIEW) {
|
|
121
218
|
super({useShadowDom: true});
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
this.elementToCheckboxes = new WeakMap();
|
|
125
|
-
|
|
126
|
-
this.contentElement.setAttribute(
|
|
127
|
-
'jslog', `${VisualLogging.section('sources.dom-breakpoints').track({resize: true})}`);
|
|
128
|
-
this.contentElement.classList.add('dom-breakpoints-container');
|
|
129
|
-
this.#emptyElement = this.contentElement.createChild('div', 'placeholder');
|
|
130
|
-
this.#emptyElement.createChild('div', 'gray-info-message').textContent = i18nString(UIStrings.noBreakpoints);
|
|
131
|
-
const emptyWidget =
|
|
132
|
-
new UI.EmptyWidget.EmptyWidget(UIStrings.noBreakpoints, i18nString(UIStrings.domBreakpointsDescription));
|
|
133
|
-
emptyWidget.link = DOM_BREAKPOINT_DOCUMENTATION_URL;
|
|
134
|
-
emptyWidget.show(this.#emptyElement);
|
|
135
|
-
|
|
136
|
-
this.#breakpoints = new UI.ListModel.ListModel();
|
|
137
|
-
this.#list = new UI.ListControl.ListControl(this.#breakpoints, this, UI.ListControl.ListMode.NonViewport);
|
|
138
|
-
this.contentElement.appendChild(this.#list.element);
|
|
139
|
-
this.#list.element.classList.add('breakpoint-list', 'hidden');
|
|
140
|
-
UI.ARIAUtils.markAsList(this.#list.element);
|
|
141
|
-
UI.ARIAUtils.setLabel(this.#list.element, i18nString(UIStrings.domBreakpointsList));
|
|
219
|
+
|
|
220
|
+
this.#view = view;
|
|
142
221
|
|
|
143
222
|
SDK.TargetManager.TargetManager.instance().addModelListener(
|
|
144
223
|
SDK.DOMDebuggerModel.DOMDebuggerModel, SDK.DOMDebuggerModel.Events.DOM_BREAKPOINT_ADDED, this.breakpointAdded,
|
|
@@ -158,7 +237,6 @@ export class DOMBreakpointsSidebarPane extends UI.Widget.VBox implements
|
|
|
158
237
|
}
|
|
159
238
|
}
|
|
160
239
|
|
|
161
|
-
this.#highlightedBreakpoint = null;
|
|
162
240
|
this.update();
|
|
163
241
|
}
|
|
164
242
|
|
|
@@ -169,93 +247,41 @@ export class DOMBreakpointsSidebarPane extends UI.Widget.VBox implements
|
|
|
169
247
|
return domBreakpointsSidebarPaneInstance;
|
|
170
248
|
}
|
|
171
249
|
|
|
172
|
-
|
|
173
|
-
const
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
this
|
|
186
|
-
element.appendChild(checkbox);
|
|
187
|
-
element.addEventListener('keydown', event => {
|
|
188
|
-
if (event.key === ' ') {
|
|
189
|
-
checkbox.click();
|
|
190
|
-
event.consume(true);
|
|
191
|
-
}
|
|
192
|
-
});
|
|
193
|
-
|
|
194
|
-
const labelElement = document.createElement('div');
|
|
195
|
-
labelElement.classList.add('dom-breakpoint');
|
|
196
|
-
element.appendChild(labelElement);
|
|
197
|
-
const description = document.createElement('div');
|
|
198
|
-
const breakpointTypeLabel = BreakpointTypeLabels.get(item.type);
|
|
199
|
-
description.textContent = breakpointTypeLabel ? breakpointTypeLabel() : null;
|
|
200
|
-
const breakpointTypeText = breakpointTypeLabel ? breakpointTypeLabel() : '';
|
|
201
|
-
UI.ARIAUtils.setLabel(checkbox, breakpointTypeText);
|
|
202
|
-
checkbox.setAttribute('jslog', `${VisualLogging.toggle().track({click: true})}`);
|
|
203
|
-
const checkedStateText = item.enabled ? i18nString(UIStrings.checked) : i18nString(UIStrings.unchecked);
|
|
204
|
-
const linkifiedNode = document.createElement('monospace');
|
|
205
|
-
linkifiedNode.style.display = 'block';
|
|
206
|
-
labelElement.appendChild(linkifiedNode);
|
|
207
|
-
const linkified = PanelsCommon.DOMLinkifier.Linkifier.instance().linkify(
|
|
208
|
-
item.node, {preventKeyboardFocus: true, tooltip: undefined});
|
|
209
|
-
linkifiedNode.appendChild(linkified);
|
|
210
|
-
// Give the checkbox an aria-label as it is required for all form element
|
|
211
|
-
UI.ARIAUtils.setLabel(
|
|
212
|
-
checkbox, i18nString(UIStrings.sS, {PH1: breakpointTypeText, PH2: linkified.deepTextContent()}));
|
|
213
|
-
// The parent list element is the one that actually gets focused.
|
|
214
|
-
// Assign it an aria-label with complete information for the screen reader to read out properly
|
|
215
|
-
UI.ARIAUtils.setLabel(
|
|
216
|
-
element,
|
|
217
|
-
i18nString(UIStrings.sSS, {PH1: breakpointTypeText, PH2: linkified.deepTextContent(), PH3: checkedStateText}));
|
|
218
|
-
|
|
219
|
-
labelElement.appendChild(description);
|
|
220
|
-
|
|
221
|
-
if (item === this.#highlightedBreakpoint) {
|
|
222
|
-
element.classList.add('breakpoint-hit');
|
|
223
|
-
UI.ARIAUtils.setDescription(element, i18nString(UIStrings.sBreakpointHit, {PH1: checkedStateText}));
|
|
224
|
-
UI.ARIAUtils.setDescription(checkbox, i18nString(UIStrings.breakpointHit));
|
|
225
|
-
} else {
|
|
226
|
-
UI.ARIAUtils.setDescription(element, checkedStateText);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
this.#emptyElement.classList.add('hidden');
|
|
230
|
-
this.#list.element.classList.remove('hidden');
|
|
231
|
-
|
|
232
|
-
return element;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
heightForItem(_item: SDK.DOMDebuggerModel.DOMBreakpoint): number {
|
|
236
|
-
return 0;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
isItemSelectable(_item: SDK.DOMDebuggerModel.DOMBreakpoint): boolean {
|
|
240
|
-
return true;
|
|
250
|
+
override performUpdate(): void {
|
|
251
|
+
const input: ViewInput = {
|
|
252
|
+
breakpoints: this.#breakpoints.map(breakpoint => ({
|
|
253
|
+
breakpoint,
|
|
254
|
+
label: BreakpointTypeLabels.get(breakpoint.type)?.() ?? '',
|
|
255
|
+
isHighlighted: breakpoint === this.#highlightedBreakpoint,
|
|
256
|
+
isFocused: breakpoint === this.#focusedBreakpoint,
|
|
257
|
+
})),
|
|
258
|
+
onBreakpointClick: this.onBreakpointClick.bind(this),
|
|
259
|
+
onBreakpointCheckboxClick: this.onBreakpointCheckboxClick.bind(this),
|
|
260
|
+
onBreakpointContextMenu: this.onBreakpointContextMenu.bind(this),
|
|
261
|
+
onBreakpointKeyDown: this.onBreakpointKeyDown.bind(this),
|
|
262
|
+
};
|
|
263
|
+
this.#view(input, undefined, this.contentElement);
|
|
241
264
|
}
|
|
242
265
|
|
|
243
|
-
|
|
244
|
-
|
|
266
|
+
private onBreakpointClick(breakpoint: SDK.DOMDebuggerModel.DOMBreakpoint): void {
|
|
267
|
+
this.focusedBreakpoint = breakpoint;
|
|
245
268
|
}
|
|
246
269
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
this.
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
270
|
+
private onBreakpointKeyDown(breakpoint: SDK.DOMDebuggerModel.DOMBreakpoint, event: Event): void {
|
|
271
|
+
const keyboardEvent = event as KeyboardEvent;
|
|
272
|
+
if (keyboardEvent.key === ' ') {
|
|
273
|
+
this.onBreakpointCheckboxClick(breakpoint);
|
|
274
|
+
keyboardEvent.consume(true);
|
|
275
|
+
} else if (keyboardEvent.key === 'ArrowUp' || keyboardEvent.key === 'ArrowDown') {
|
|
276
|
+
const index = this.#breakpoints.indexOf(breakpoint);
|
|
277
|
+
const newIndex = keyboardEvent.key === 'ArrowUp' ? index - 1 : index + 1;
|
|
278
|
+
if (newIndex >= 0 && newIndex < this.#breakpoints.length) {
|
|
279
|
+
this.focusedBreakpoint = this.#breakpoints[newIndex];
|
|
280
|
+
void this.updateComplete.then(() => {
|
|
281
|
+
const entry = this.contentElement.querySelectorAll('.breakpoint-entry')[newIndex] as HTMLElement;
|
|
282
|
+
entry.focus();
|
|
283
|
+
});
|
|
284
|
+
keyboardEvent.consume(true);
|
|
259
285
|
}
|
|
260
286
|
}
|
|
261
287
|
}
|
|
@@ -264,43 +290,28 @@ export class DOMBreakpointsSidebarPane extends UI.Widget.VBox implements
|
|
|
264
290
|
this.addBreakpoint(event.data);
|
|
265
291
|
}
|
|
266
292
|
|
|
267
|
-
private breakpointToggled(
|
|
268
|
-
|
|
269
|
-
const breakpoint = event.data;
|
|
270
|
-
this.#list.refreshItem(breakpoint);
|
|
271
|
-
if (hadFocus) {
|
|
272
|
-
this.focus();
|
|
273
|
-
}
|
|
293
|
+
private breakpointToggled(_event: Common.EventTarget.EventTargetEvent<SDK.DOMDebuggerModel.DOMBreakpoint>): void {
|
|
294
|
+
this.requestUpdate();
|
|
274
295
|
}
|
|
275
296
|
|
|
276
297
|
private breakpointsRemoved(event: Common.EventTarget.EventTargetEvent<SDK.DOMDebuggerModel.DOMBreakpoint[]>): void {
|
|
277
|
-
const hadFocus = this.hasFocus();
|
|
278
298
|
const breakpoints = event.data;
|
|
279
|
-
let lastIndex = -1;
|
|
280
299
|
for (const breakpoint of breakpoints) {
|
|
281
300
|
const index = this.#breakpoints.indexOf(breakpoint);
|
|
282
301
|
if (index >= 0) {
|
|
283
|
-
this.#breakpoints.
|
|
284
|
-
lastIndex = index;
|
|
302
|
+
this.#breakpoints.splice(index, 1);
|
|
285
303
|
}
|
|
286
304
|
}
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
this.setDefaultFocusedElement(this.#emptyElement);
|
|
290
|
-
this.#list.element.classList.add('hidden');
|
|
291
|
-
} else if (lastIndex >= 0) {
|
|
292
|
-
const breakpointToSelect = this.#breakpoints.at(lastIndex);
|
|
293
|
-
if (breakpointToSelect) {
|
|
294
|
-
this.#list.selectItem(breakpointToSelect);
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
if (hadFocus) {
|
|
298
|
-
this.focus();
|
|
299
|
-
}
|
|
305
|
+
this.#synchronizeFocusedBreakpoint();
|
|
306
|
+
this.requestUpdate();
|
|
300
307
|
}
|
|
301
308
|
|
|
302
309
|
private addBreakpoint(breakpoint: SDK.DOMDebuggerModel.DOMBreakpoint): void {
|
|
303
|
-
this.#breakpoints.
|
|
310
|
+
if (this.#breakpoints.includes(breakpoint)) {
|
|
311
|
+
return;
|
|
312
|
+
}
|
|
313
|
+
this.#breakpoints.push(breakpoint);
|
|
314
|
+
this.#breakpoints.sort((breakpointA, breakpointB) => {
|
|
304
315
|
if (breakpointA.type > breakpointB.type) {
|
|
305
316
|
return -1;
|
|
306
317
|
}
|
|
@@ -309,12 +320,12 @@ export class DOMBreakpointsSidebarPane extends UI.Widget.VBox implements
|
|
|
309
320
|
}
|
|
310
321
|
return 0;
|
|
311
322
|
});
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
}
|
|
323
|
+
this.#synchronizeFocusedBreakpoint();
|
|
324
|
+
this.requestUpdate();
|
|
315
325
|
}
|
|
316
326
|
|
|
317
|
-
private
|
|
327
|
+
private onBreakpointContextMenu(breakpoint: SDK.DOMDebuggerModel.DOMBreakpoint, event: Event): void {
|
|
328
|
+
this.focusedBreakpoint = breakpoint;
|
|
318
329
|
const contextMenu = new UI.ContextMenu.ContextMenu(event);
|
|
319
330
|
contextMenu.defaultSection().appendItem(
|
|
320
331
|
i18nString(UIStrings.revealDomNodeInElementsPanel), () => Common.Revealer.reveal(breakpoint.node),
|
|
@@ -328,9 +339,9 @@ export class DOMBreakpointsSidebarPane extends UI.Widget.VBox implements
|
|
|
328
339
|
void contextMenu.show();
|
|
329
340
|
}
|
|
330
341
|
|
|
331
|
-
private
|
|
332
|
-
breakpoint
|
|
333
|
-
|
|
342
|
+
private onBreakpointCheckboxClick(breakpoint: SDK.DOMDebuggerModel.DOMBreakpoint): void {
|
|
343
|
+
this.focusedBreakpoint = breakpoint;
|
|
344
|
+
breakpoint.domDebuggerModel.toggleDOMBreakpoint(breakpoint, !breakpoint.enabled);
|
|
334
345
|
}
|
|
335
346
|
|
|
336
347
|
flavorChanged(_object: Object|null): void {
|
|
@@ -339,11 +350,7 @@ export class DOMBreakpointsSidebarPane extends UI.Widget.VBox implements
|
|
|
339
350
|
|
|
340
351
|
update(): void {
|
|
341
352
|
const details = UI.Context.Context.instance().flavor(SDK.DebuggerModel.DebuggerPausedDetails);
|
|
342
|
-
|
|
343
|
-
const oldHighlightedBreakpoint = this.#highlightedBreakpoint;
|
|
344
|
-
this.#highlightedBreakpoint = null;
|
|
345
|
-
this.#list.refreshItem(oldHighlightedBreakpoint);
|
|
346
|
-
}
|
|
353
|
+
this.highlightedBreakpoint = null;
|
|
347
354
|
if (!details?.auxData || details.reason !== Protocol.Debugger.PausedEventReason.DOM) {
|
|
348
355
|
return;
|
|
349
356
|
}
|
|
@@ -361,13 +368,13 @@ export class DOMBreakpointsSidebarPane extends UI.Widget.VBox implements
|
|
|
361
368
|
|
|
362
369
|
for (const breakpoint of this.#breakpoints) {
|
|
363
370
|
if (breakpoint.node === data.node && breakpoint.type === data.type) {
|
|
364
|
-
this
|
|
371
|
+
this.highlightedBreakpoint = breakpoint;
|
|
372
|
+
this.focusedBreakpoint = breakpoint;
|
|
365
373
|
}
|
|
366
374
|
}
|
|
367
375
|
if (this.#highlightedBreakpoint) {
|
|
368
|
-
|
|
376
|
+
void UI.ViewManager.ViewManager.instance().showView('sources.dom-breakpoints');
|
|
369
377
|
}
|
|
370
|
-
void UI.ViewManager.ViewManager.instance().showView('sources.dom-breakpoints');
|
|
371
378
|
}
|
|
372
379
|
}
|
|
373
380
|
|
|
@@ -238,6 +238,7 @@ export class XHRBreakpointsSidebarPane extends UI.Widget.VBox implements UI.Cont
|
|
|
238
238
|
listItemElement.setAttribute('jslog', `${VisualLogging.item().track({
|
|
239
239
|
click: true,
|
|
240
240
|
dblclick: true,
|
|
241
|
+
resize: true,
|
|
241
242
|
keydown: 'ArrowUp|ArrowDown|PageUp|PageDown|Enter|Space',
|
|
242
243
|
})}`);
|
|
243
244
|
return listItemElement;
|
|
@@ -4,40 +4,60 @@
|
|
|
4
4
|
* found in the LICENSE file.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
@scope to (devtools-widget > *) {
|
|
8
|
+
:scope {
|
|
9
|
+
overflow: auto;
|
|
10
|
+
}
|
|
10
11
|
|
|
11
|
-
.
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
.monospace {
|
|
13
|
+
font-family: var(--monospace-font-family);
|
|
14
|
+
font-size: var(--monospace-font-size);
|
|
15
|
+
}
|
|
14
16
|
|
|
15
|
-
.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
17
|
+
.dom-breakpoints-container {
|
|
18
|
+
flex-grow: 1;
|
|
19
|
+
}
|
|
19
20
|
|
|
20
|
-
.breakpoint-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
padding: 2px 0;
|
|
26
|
-
}
|
|
21
|
+
.breakpoint-list {
|
|
22
|
+
padding: 0 0 3px;
|
|
23
|
+
list-style-type: none;
|
|
24
|
+
margin: 0;
|
|
25
|
+
}
|
|
27
26
|
|
|
28
|
-
.breakpoint-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
.breakpoint-list .dom-breakpoint > div {
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
text-overflow: ellipsis;
|
|
30
|
+
}
|
|
31
31
|
|
|
32
|
-
.breakpoint-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
.breakpoint-entry {
|
|
33
|
+
display: flex;
|
|
34
|
+
white-space: nowrap;
|
|
35
|
+
text-overflow: ellipsis;
|
|
36
|
+
overflow: hidden;
|
|
37
|
+
padding: 2px 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.breakpoint-entry:focus-visible {
|
|
41
|
+
background-color: var(--sys-color-tonal-container);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.breakpoint-hit {
|
|
45
|
+
background-color: var(--sys-color-neutral-container);
|
|
46
|
+
color: var(--sys-color-on-surface);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.placeholder {
|
|
50
|
+
display: flex;
|
|
51
|
+
height: 100%;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
}
|
|
36
54
|
|
|
37
|
-
.
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
55
|
+
.gray-info-message {
|
|
56
|
+
display: flex;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
align-items: center;
|
|
59
|
+
padding: 20px;
|
|
60
|
+
}
|
|
41
61
|
}
|
|
42
62
|
|
|
43
63
|
:host-context(.sources.panel) .empty-view-scroller {
|
|
@@ -49,14 +69,16 @@
|
|
|
49
69
|
}
|
|
50
70
|
|
|
51
71
|
@media (forced-colors: active) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
72
|
+
@scope to (devtools-widget > *) {
|
|
73
|
+
.breakpoint-entry:focus-visible,
|
|
74
|
+
.breakpoint-list .breakpoint-entry:hover {
|
|
75
|
+
forced-color-adjust: none;
|
|
76
|
+
background-color: Highlight;
|
|
77
|
+
}
|
|
57
78
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
79
|
+
.breakpoint-entry:focus-visible *,
|
|
80
|
+
.breakpoint-list .breakpoint-entry:hover * {
|
|
81
|
+
color: HighlightText;
|
|
82
|
+
}
|
|
61
83
|
}
|
|
62
84
|
}
|
|
@@ -70,6 +70,9 @@ function getTooltipDisclaimerText(noLogging: boolean, panel: AiCodeCompletion.Ai
|
|
|
70
70
|
return noLogging ?
|
|
71
71
|
lockedString(UIStringsNotTranslate.tooltipDisclaimerTextForAiCodeCompletionNoLoggingInSources) :
|
|
72
72
|
lockedString(UIStringsNotTranslate.tooltipDisclaimerTextForAiCodeCompletionInSources);
|
|
73
|
+
case AiCodeCompletion.AiCodeCompletion.ContextFlavor.STYLES:
|
|
74
|
+
// TODO(476101019): update with string for styles pane
|
|
75
|
+
return '';
|
|
73
76
|
}
|
|
74
77
|
}
|
|
75
78
|
|
|
@@ -147,6 +147,9 @@ function getTooltipDisclaimerText(noLogging: boolean, panel: AiCodeCompletion.Ai
|
|
|
147
147
|
return noLogging ?
|
|
148
148
|
lockedString(UIStringsNotTranslate.tooltipDisclaimerTextForAiCodeGenerationNoLoggingInSources) :
|
|
149
149
|
lockedString(UIStringsNotTranslate.tooltipDisclaimerTextForAiCodeGenerationInSources);
|
|
150
|
+
case AiCodeCompletion.AiCodeCompletion.ContextFlavor.STYLES:
|
|
151
|
+
// TODO(476101019): update with string for styles pane
|
|
152
|
+
return '';
|
|
150
153
|
}
|
|
151
154
|
}
|
|
152
155
|
|
|
@@ -1449,6 +1449,7 @@ export class ConsoleViewMessage implements ConsoleViewportElement {
|
|
|
1449
1449
|
this.elementInternal.className = 'console-message-wrapper';
|
|
1450
1450
|
this.elementInternal.setAttribute('jslog', `${VisualLogging.item('console-message').track({
|
|
1451
1451
|
click: true,
|
|
1452
|
+
resize: true,
|
|
1452
1453
|
keydown: 'ArrowUp|ArrowDown|ArrowLeft|ArrowRight|Enter|Space|Home|End',
|
|
1453
1454
|
})}`);
|
|
1454
1455
|
this.elementInternal.removeChildren();
|
|
@@ -435,11 +435,16 @@
|
|
|
435
435
|
--display-ignored-formatted-stack-frame: var(--display-formatted-stack-frame-default);
|
|
436
436
|
}
|
|
437
437
|
|
|
438
|
-
&:has(.formatted-stack-frame .ignore-list-link):has(.formatted-stack-frame .devtools-link:not(.ignore-list-link))
|
|
438
|
+
&:has(.formatted-stack-frame .ignore-list-link):has(.formatted-stack-frame .devtools-link:not(.ignore-list-link)),
|
|
439
|
+
&:has(.formatted-stack-frame .ignore-list-link):has(.stack-preview-container.has-non-ignored-links) {
|
|
439
440
|
/* If there are ignored frames and unignored frames, then we want
|
|
440
441
|
to enable the show more/less links. To do that we override some
|
|
441
442
|
variables to always display the structured stack trace, but possibly
|
|
442
|
-
only the links at the bottom of it, as we share its show more/less links.
|
|
443
|
+
only the links at the bottom of it, as we share its show more/less links.
|
|
444
|
+
We also check the structured stack trace (StackTracePreviewContent) for
|
|
445
|
+
non-ignored links, so that when all inline Error frames are ignored but
|
|
446
|
+
the console.error() call stack has non-ignored frames (e.g. in async
|
|
447
|
+
traces), the toggle is still shown. See crbug.com/379788109. */
|
|
443
448
|
--override-display-stack-preview-toggle-link: table-row;
|
|
444
449
|
--override-display-stack-preview-hidden-div: block;
|
|
445
450
|
|
|
@@ -369,7 +369,10 @@ export class ComputedStyleWidget extends UI.Widget.VBox {
|
|
|
369
369
|
this.#computedStylesTree.classList.toggle('computed-narrow', isNarrow);
|
|
370
370
|
}
|
|
371
371
|
|
|
372
|
-
get filterText(): string {
|
|
372
|
+
get filterText(): RegExp|string {
|
|
373
|
+
if (this.#filterIsRegex) {
|
|
374
|
+
return new RegExp(this.#filterText);
|
|
375
|
+
}
|
|
373
376
|
return this.#filterText;
|
|
374
377
|
}
|
|
375
378
|
|
|
@@ -385,6 +388,7 @@ export class ComputedStyleWidget extends UI.Widget.VBox {
|
|
|
385
388
|
this.#filterText = newFilter.source;
|
|
386
389
|
this.#filterIsRegex = true;
|
|
387
390
|
}
|
|
391
|
+
this.filterRegex = this.#buildFilterRegex(this.#filterText);
|
|
388
392
|
this.requestUpdate();
|
|
389
393
|
}
|
|
390
394
|
|
|
@@ -1120,6 +1120,7 @@ export class ElementsTreeElement extends UI.TreeOutline.TreeElement {
|
|
|
1120
1120
|
this.listItemElement.setAttribute(
|
|
1121
1121
|
'jslog', `${VisualLogging.treeItem().parent('elementsTreeOutline').track({
|
|
1122
1122
|
keydown: 'ArrowUp|ArrowDown|ArrowLeft|ArrowRight|Backspace|Delete|Enter|Space|Home|End',
|
|
1123
|
+
resize: true,
|
|
1123
1124
|
drag: true,
|
|
1124
1125
|
click: true,
|
|
1125
1126
|
})}`);
|