chrome-devtools-frontend 1.0.1543082 → 1.0.1544076
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/AUTHORS +2 -0
- package/front_end/core/common/Gzip.ts +4 -4
- package/front_end/core/common/common.ts +0 -2
- package/front_end/core/host/AidaClient.ts +10 -7
- package/front_end/core/host/DispatchHttpRequestClient.ts +18 -3
- package/front_end/core/root/DevToolsContext.ts +60 -0
- package/front_end/core/root/Runtime.ts +8 -7
- package/front_end/core/root/root.ts +6 -1
- package/front_end/core/sdk/CPUThrottlingManager.ts +0 -4
- package/front_end/core/sdk/CSSMatchedStyles.ts +7 -9
- package/front_end/core/sdk/CSSModel.ts +1 -1
- package/front_end/core/sdk/CSSRule.ts +18 -6
- package/front_end/core/sdk/ChildTargetManager.ts +2 -2
- package/front_end/core/sdk/TargetManager.ts +5 -6
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshotLoader.ts +2 -0
- package/front_end/entrypoints/inspector_main/InspectorMain.ts +1 -13
- package/front_end/entrypoints/main/MainImpl.ts +2 -20
- package/front_end/foundation/Universe.ts +24 -1
- package/front_end/models/ai_assistance/agents/AiAgent.ts +10 -8
- package/front_end/models/ai_assistance/agents/PatchAgent.ts +7 -1
- package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +0 -5
- package/front_end/models/ai_assistance/agents/StylingAgent.ts +4 -8
- package/front_end/models/ai_code_completion/AiCodeCompletion.ts +1 -1
- package/front_end/models/ai_code_generation/AiCodeGeneration.ts +5 -3
- package/front_end/models/bindings/CSSWorkspaceBinding.ts +8 -7
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +19 -15
- package/front_end/models/bindings/ResourceMapping.ts +57 -15
- package/front_end/models/live-metrics/LiveMetrics.ts +12 -20
- package/front_end/models/trace/handlers/SamplesHandler.ts +64 -6
- package/front_end/models/trace/types/TraceEvents.ts +16 -0
- package/front_end/models/workspace/IgnoreListManager.ts +10 -9
- package/front_end/models/workspace/WorkspaceImpl.ts +5 -10
- package/front_end/panels/accessibility/AccessibilityNodeView.ts +6 -2
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +1 -1
- package/front_end/panels/ai_assistance/components/ChatView.ts +2 -4
- package/front_end/panels/ai_assistance/components/PerformanceAgentMarkdownRenderer.ts +2 -1
- package/front_end/panels/animation/AnimationTimeline.ts +6 -6
- package/front_end/panels/application/ApplicationPanelSidebar.ts +0 -1
- package/front_end/panels/application/OpenedWindowDetailsView.ts +0 -2
- package/front_end/panels/application/ServiceWorkersView.ts +0 -2
- package/front_end/panels/application/StorageView.ts +0 -1
- package/front_end/panels/application/components/FrameDetailsView.ts +468 -447
- package/front_end/panels/application/components/ReportsGrid.ts +7 -2
- package/front_end/panels/application/components/SharedStorageAccessGrid.ts +5 -3
- package/front_end/panels/application/components/TrustTokensView.ts +7 -1
- package/front_end/panels/application/preloading/PreloadingView.ts +10 -4
- package/front_end/panels/application/preloading/components/PreloadingDisabledInfobar.ts +7 -11
- package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +15 -3
- package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +12 -13
- package/front_end/panels/{elements → common}/DOMLinkifier.ts +6 -6
- package/front_end/panels/common/common.ts +1 -0
- package/front_end/panels/console/ConsoleView.ts +9 -7
- package/front_end/panels/console/ConsoleViewMessage.ts +23 -13
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +2 -1
- package/front_end/panels/elements/ElementsTreeElement.ts +3 -1
- package/front_end/panels/elements/StylePropertiesSection.ts +52 -15
- package/front_end/panels/elements/StylePropertyTreeElement.ts +8 -3
- package/front_end/panels/elements/StylesSidebarPane.ts +24 -14
- package/front_end/panels/elements/elements-meta.ts +11 -2
- package/front_end/panels/elements/elements.ts +0 -3
- package/front_end/panels/explain/components/ConsoleInsight.ts +333 -318
- package/front_end/panels/issues/AffectedResourcesView.ts +2 -1
- package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +2 -1
- package/front_end/panels/network/NetworkLogView.ts +1 -1
- package/front_end/panels/recorder/RecorderController.ts +7 -1
- package/front_end/panels/settings/SettingsScreen.ts +3 -6
- package/front_end/panels/settings/components/SyncSection.ts +218 -226
- package/front_end/panels/settings/components/syncSection.css +81 -80
- package/front_end/panels/sources/AiCodeCompletionPlugin.ts +42 -294
- package/front_end/panels/sources/DebuggerPausedMessage.ts +3 -3
- package/front_end/panels/sources/DebuggerPlugin.ts +3 -1
- package/front_end/panels/sources/ResourceOriginPlugin.ts +7 -3
- package/front_end/panels/sources/SourcesPanel.ts +5 -1
- package/front_end/panels/timeline/TimelinePanel.ts +0 -21
- package/front_end/panels/timeline/TimelineUIUtils.ts +3 -2
- package/front_end/panels/timeline/components/LiveMetricsView.ts +7 -4
- package/front_end/panels/timeline/components/insights/NodeLink.ts +3 -2
- package/front_end/third_party/puppeteer/README.chromium +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.js +4 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/NetworkEventManager.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/NetworkEventManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/NetworkEventManager.js +8 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/NetworkEventManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/NetworkManager.js +22 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/NetworkManager.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/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 +34 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.js +4 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/NetworkEventManager.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/NetworkEventManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/NetworkEventManager.js +8 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/NetworkEventManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/NetworkManager.js +22 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/NetworkManager.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 +2 -2
- package/front_end/third_party/puppeteer/package/src/cdp/HTTPRequest.ts +5 -1
- package/front_end/third_party/puppeteer/package/src/cdp/NetworkEventManager.ts +16 -1
- package/front_end/third_party/puppeteer/package/src/cdp/NetworkManager.ts +28 -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/ui/components/docs/component_docs.ts +0 -4
- package/front_end/ui/components/report_view/ReportView.ts +4 -1
- package/front_end/ui/components/text_editor/AiCodeCompletionProvider.ts +8 -5
- package/front_end/ui/i18n/i18n.ts +16 -0
- package/front_end/ui/legacy/ReportView.ts +0 -5
- package/front_end/ui/legacy/TextPrompt.ts +65 -19
- package/front_end/ui/legacy/UIUtils.ts +1 -1
- package/front_end/ui/legacy/Widget.ts +56 -25
- package/front_end/ui/legacy/XLink.ts +0 -2
- package/front_end/ui/legacy/components/object_ui/JavaScriptREPL.ts +8 -4
- package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +3 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +239 -284
- package/front_end/ui/legacy/components/object_ui/RemoteObjectPreviewFormatter.ts +114 -184
- package/front_end/ui/legacy/components/utils/Linkifier.ts +1 -1
- package/front_end/ui/legacy/inspectorCommon.css +0 -4
- package/front_end/ui/{components/docs/theme_colors/basic.ts → legacy/theme_support/ThemeColors.docs.ts} +33 -23
- package/mcp/mcp.ts +1 -0
- package/package.json +1 -1
- package/front_end/core/common/QueryParamHandler.ts +0 -7
- package/front_end/ui/components/docs/input/basic.html +0 -31
- package/front_end/ui/components/docs/input/basic.ts +0 -12
- package/front_end/ui/components/docs/report/basic.html +0 -27
- package/front_end/ui/components/docs/report/basic.ts +0 -48
- package/front_end/ui/components/docs/theme_colors/basic.html +0 -56
- package/front_end/ui/components/docs/toggle_dark_mode.ts +0 -36
- package/front_end/ui/components/docs/toggle_fonts.ts +0 -74
- package/front_end/ui/components/docs/user_agent_client_hints/basic.html +0 -25
- package/front_end/ui/components/docs/user_agent_client_hints/basic.ts +0 -26
- package/front_end/ui/components/expandable_list/ExpandableList.docs.ts +0 -30
- /package/front_end/panels/{elements → common}/domLinkifier.css +0 -0
|
@@ -49,6 +49,7 @@ import * as InlineEditor from '../../ui/legacy/components/inline_editor/inline_e
|
|
|
49
49
|
import * as Components from '../../ui/legacy/components/utils/utils.js';
|
|
50
50
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
51
51
|
import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
|
|
52
|
+
import * as PanelsCommon from '../common/common.js';
|
|
52
53
|
|
|
53
54
|
import * as ElementsComponents from './components/components.js';
|
|
54
55
|
import type {ComputedStyleModel, CSSModelChangedEvent} from './ComputedStyleModel.js';
|
|
@@ -58,8 +59,8 @@ import {ImagePreviewPopover} from './ImagePreviewPopover.js';
|
|
|
58
59
|
import * as LayersWidget from './LayersWidget.js';
|
|
59
60
|
import {StyleEditorWidget} from './StyleEditorWidget.js';
|
|
60
61
|
import {
|
|
62
|
+
AtRuleSection,
|
|
61
63
|
BlankStylePropertiesSection,
|
|
62
|
-
FontPaletteValuesRuleSection,
|
|
63
64
|
FunctionRuleSection,
|
|
64
65
|
HighlightPseudoStylePropertiesSection,
|
|
65
66
|
KeyframePropertiesSection,
|
|
@@ -139,6 +140,8 @@ const MIN_FOLDED_SECTIONS_COUNT = 5;
|
|
|
139
140
|
export const REGISTERED_PROPERTY_SECTION_NAME = '@property';
|
|
140
141
|
/** Title of the function section **/
|
|
141
142
|
export const FUNCTION_SECTION_NAME = '@function';
|
|
143
|
+
/** Title of the general at-rule section */
|
|
144
|
+
export const AT_RULE_SECTION_NAME = '@font-*';
|
|
142
145
|
|
|
143
146
|
// Highlightable properties are those that can be hovered in the sidebar to trigger a specific
|
|
144
147
|
// highlighting mode on the current element.
|
|
@@ -354,6 +357,10 @@ export class StylesSidebarPane extends Common.ObjectWrapper.eventMixin<EventType
|
|
|
354
357
|
this.jumpToSection(functionName, FUNCTION_SECTION_NAME);
|
|
355
358
|
}
|
|
356
359
|
|
|
360
|
+
jumpToFontPaletteDefinition(paletteName: string): void {
|
|
361
|
+
this.jumpToSection(`@font-palette-values ${paletteName}`, AT_RULE_SECTION_NAME);
|
|
362
|
+
}
|
|
363
|
+
|
|
357
364
|
forceUpdate(): void {
|
|
358
365
|
this.needsForceUpdate = true;
|
|
359
366
|
this.#swatchPopoverHelper.hide();
|
|
@@ -1153,14 +1160,16 @@ export class StylesSidebarPane extends Common.ObjectWrapper.eventMixin<EventType
|
|
|
1153
1160
|
blocks.push(block);
|
|
1154
1161
|
}
|
|
1155
1162
|
|
|
1156
|
-
const
|
|
1157
|
-
if (
|
|
1158
|
-
const
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1163
|
+
const atRules = matchedStyles.atRules();
|
|
1164
|
+
if (atRules.length > 0) {
|
|
1165
|
+
const expandedByDefault = atRules.length <= MIN_FOLDED_SECTIONS_COUNT;
|
|
1166
|
+
const block = SectionBlock.createAtRuleBlock(expandedByDefault);
|
|
1167
|
+
for (const atRule of atRules) {
|
|
1168
|
+
this.idleCallbackManager.schedule(() => {
|
|
1169
|
+
block.sections.push(new AtRuleSection(this, matchedStyles, atRule.style, sectionIdx, expandedByDefault));
|
|
1170
|
+
sectionIdx++;
|
|
1171
|
+
});
|
|
1172
|
+
}
|
|
1164
1173
|
blocks.push(block);
|
|
1165
1174
|
}
|
|
1166
1175
|
|
|
@@ -1543,7 +1552,7 @@ export class SectionBlock {
|
|
|
1543
1552
|
const pseudoArgumentString = pseudoArgument ? `(${pseudoArgument})` : '';
|
|
1544
1553
|
const pseudoTypeString = `${pseudoType}${pseudoArgumentString}`;
|
|
1545
1554
|
UI.UIUtils.createTextChild(separatorElement, i18nString(UIStrings.inheritedFromSPseudoOf, {PH1: pseudoTypeString}));
|
|
1546
|
-
const link =
|
|
1555
|
+
const link = PanelsCommon.DOMLinkifier.Linkifier.instance().linkify(node, {
|
|
1547
1556
|
preventKeyboardFocus: true,
|
|
1548
1557
|
tooltip: undefined,
|
|
1549
1558
|
});
|
|
@@ -1575,11 +1584,12 @@ export class SectionBlock {
|
|
|
1575
1584
|
return new SectionBlock(separatorElement);
|
|
1576
1585
|
}
|
|
1577
1586
|
|
|
1578
|
-
static
|
|
1587
|
+
static createAtRuleBlock(expandedByDefault: boolean): SectionBlock {
|
|
1579
1588
|
const separatorElement = document.createElement('div');
|
|
1589
|
+
const block = new SectionBlock(separatorElement, true, expandedByDefault);
|
|
1580
1590
|
separatorElement.className = 'sidebar-separator';
|
|
1581
|
-
separatorElement.
|
|
1582
|
-
return
|
|
1591
|
+
separatorElement.appendChild(document.createTextNode(AT_RULE_SECTION_NAME));
|
|
1592
|
+
return block;
|
|
1583
1593
|
}
|
|
1584
1594
|
|
|
1585
1595
|
static createPositionTryBlock(positionTryName: string): SectionBlock {
|
|
@@ -1595,7 +1605,7 @@ export class SectionBlock {
|
|
|
1595
1605
|
separatorElement.className = 'sidebar-separator';
|
|
1596
1606
|
separatorElement.setAttribute('jslog', `${VisualLogging.sectionHeader('inherited')}`);
|
|
1597
1607
|
UI.UIUtils.createTextChild(separatorElement, i18nString(UIStrings.inheritedFroms));
|
|
1598
|
-
const link =
|
|
1608
|
+
const link = PanelsCommon.DOMLinkifier.Linkifier.instance().linkify(node, {
|
|
1599
1609
|
preventKeyboardFocus: true,
|
|
1600
1610
|
tooltip: undefined,
|
|
1601
1611
|
});
|
|
@@ -7,6 +7,7 @@ import * as i18n from '../../core/i18n/i18n.js';
|
|
|
7
7
|
import * as Root from '../../core/root/root.js';
|
|
8
8
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
9
9
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
10
|
+
import type * as PanelsCommon from '../common/common.js';
|
|
10
11
|
|
|
11
12
|
import type * as Elements from './elements.js';
|
|
12
13
|
|
|
@@ -177,6 +178,14 @@ function maybeRetrieveContextTypes<T = unknown>(getClassCallBack: (elementsModul
|
|
|
177
178
|
return getClassCallBack(loadedElementsModule);
|
|
178
179
|
}
|
|
179
180
|
|
|
181
|
+
let loadedPanelsCommonModule: (typeof PanelsCommon|undefined);
|
|
182
|
+
async function loadPanelsCommonModule(): Promise<typeof PanelsCommon> {
|
|
183
|
+
if (!loadedPanelsCommonModule) {
|
|
184
|
+
loadedPanelsCommonModule = await import('../common/common.js');
|
|
185
|
+
}
|
|
186
|
+
return loadedPanelsCommonModule;
|
|
187
|
+
}
|
|
188
|
+
|
|
180
189
|
UI.ViewManager.registerViewExtension({
|
|
181
190
|
location: UI.ViewManager.ViewLocationValues.PANEL,
|
|
182
191
|
id: 'elements',
|
|
@@ -698,7 +707,7 @@ Common.Linkifier.registerLinkifier({
|
|
|
698
707
|
];
|
|
699
708
|
},
|
|
700
709
|
async loadLinkifier() {
|
|
701
|
-
const
|
|
702
|
-
return
|
|
710
|
+
const PanelsCommon = await loadPanelsCommonModule();
|
|
711
|
+
return PanelsCommon.DOMLinkifier.Linkifier.instance();
|
|
703
712
|
},
|
|
704
713
|
});
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import './InspectElementModeController.js';
|
|
6
6
|
import './ColorSwatchPopoverIcon.js';
|
|
7
7
|
import './ComputedStyleModel.js';
|
|
8
|
-
import './DOMLinkifier.js';
|
|
9
8
|
import './DOMPath.js';
|
|
10
9
|
import './ElementsSidebarPane.js';
|
|
11
10
|
import './ElementsTreeElement.js';
|
|
@@ -37,7 +36,6 @@ import * as ComputedStyleModel from './ComputedStyleModel.js';
|
|
|
37
36
|
import * as ComputedStyleWidget from './ComputedStyleWidget.js';
|
|
38
37
|
import * as CSSRuleValidator from './CSSRuleValidator.js';
|
|
39
38
|
import * as CSSValueTraceView from './CSSValueTraceView.js';
|
|
40
|
-
import * as DOMLinkifier from './DOMLinkifier.js';
|
|
41
39
|
import * as DOMPath from './DOMPath.js';
|
|
42
40
|
import * as ElementsPanel from './ElementsPanel.js';
|
|
43
41
|
import * as ElementsSidebarPane from './ElementsSidebarPane.js';
|
|
@@ -73,7 +71,6 @@ export {
|
|
|
73
71
|
ComputedStyleWidget,
|
|
74
72
|
CSSRuleValidator,
|
|
75
73
|
CSSValueTraceView,
|
|
76
|
-
DOMLinkifier,
|
|
77
74
|
DOMPath,
|
|
78
75
|
ElementsPanel,
|
|
79
76
|
ElementsSidebarPane,
|