chrome-devtools-frontend 1.0.1681498 → 1.0.1682249
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/eslint.config.mjs +8 -3
- package/front_end/core/sdk/ConsoleModel.ts +1 -1
- package/front_end/core/sdk/PreloadingModel.ts +44 -22
- package/front_end/core/sdk/RemoteObject.ts +4 -1
- package/front_end/core/sdk/RuntimeModel.ts +5 -5
- package/front_end/core/sdk/sdk.ts +2 -0
- package/front_end/entrypoints/formatter_worker/FormatterWorker.ts +1 -1
- package/front_end/entrypoints/inspector_main/InspectorMain.ts +3 -1
- package/front_end/entrypoints/inspector_main/inspector_main-meta.ts +1 -5
- package/front_end/entrypoints/main/MainImpl.ts +9 -10
- package/front_end/entrypoints/shell/shell.ts +0 -2
- package/front_end/entrypoints/trace_app/trace_app.ts +0 -2
- package/front_end/generated/InspectorBackendCommands.ts +2 -0
- package/front_end/generated/protocol-mapping.d.ts +16 -0
- package/front_end/generated/protocol-proxy-api.d.ts +12 -0
- package/front_end/generated/protocol.ts +12 -0
- package/front_end/models/ai_assistance/ExtensionScope.ts +11 -12
- package/front_end/models/ai_assistance/agents/AiAgent.ts +1 -1
- package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +2 -1
- package/front_end/models/ai_assistance/agents/PerformanceAgent.snapshot.txt +1 -1
- package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +2 -1
- package/front_end/models/ai_assistance/contexts/PerformanceTraceContext.ts +2 -1
- package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.snapshot.txt +8 -8
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +8 -8
- package/front_end/models/bindings/DebuggerLanguagePlugins.ts +1 -0
- package/front_end/models/formatter/ScriptFormatter.ts +1 -0
- package/front_end/models/javascript_metadata/NativeFunctions.js +5 -1
- package/front_end/models/live-metrics/web-vitals-injected/spec/spec.ts +4 -4
- package/front_end/models/logs/NetworkLog.ts +8 -1
- package/front_end/models/persistence/AutomaticFileSystemWorkspaceBinding.ts +4 -2
- package/front_end/models/stack_trace/StackTraceImpl.ts +1 -0
- package/front_end/models/trace/Name.ts +5 -5
- package/front_end/models/trace/Styles.ts +115 -115
- package/front_end/models/trace/extras/TraceTree.ts +2 -1
- package/front_end/models/trace/helpers/Network.ts +4 -1
- package/front_end/models/trace/insights/CLSCulprits.ts +4 -2
- package/front_end/models/trace/insights/CharacterSet.ts +3 -3
- package/front_end/models/trace/insights/DOMSize.ts +1 -1
- package/front_end/models/trace/insights/DuplicatedJavaScript.ts +6 -2
- package/front_end/models/trace/insights/FontDisplay.ts +9 -3
- package/front_end/models/trace/insights/ForcedReflow.ts +4 -4
- package/front_end/models/trace/insights/INPBreakdown.ts +3 -4
- package/front_end/models/trace/insights/ImageDelivery.ts +2 -2
- package/front_end/models/trace/insights/LCPBreakdown.ts +1 -1
- package/front_end/models/trace/insights/LCPDiscovery.ts +5 -5
- package/front_end/models/trace/insights/LegacyJavaScript.ts +7 -3
- package/front_end/models/trace/insights/ModernHTTP.ts +3 -3
- package/front_end/models/trace/insights/NetworkDependencyTree.ts +13 -9
- package/front_end/models/trace/insights/RenderBlocking.ts +1 -1
- package/front_end/models/trace/insights/SlowCSSSelector.ts +29 -25
- package/front_end/models/trace/insights/ThirdParties.ts +13 -5
- package/front_end/models/trace/insights/Viewport.ts +4 -2
- package/front_end/models/workspace/IgnoreListManager.ts +53 -17
- package/front_end/panels/accessibility/ARIAAttributesView.ts +11 -2
- package/front_end/panels/ai_assistance/components/ChatMessage.ts +67 -53
- package/front_end/panels/ai_assistance/components/ChatView.ts +2 -2
- package/front_end/panels/ai_assistance/components/StylingAgentMarkdownRenderer.ts +2 -2
- package/front_end/panels/ai_assistance/components/WalkthroughView.ts +5 -5
- package/front_end/panels/animation/AnimationTimeline.ts +2 -0
- package/front_end/panels/application/preloading/PreloadingView.ts +9 -3
- package/front_end/panels/application/preloading/components/components.ts +2 -0
- package/front_end/panels/browser_debugger/ObjectEventListenersSidebarPane.ts +10 -11
- package/front_end/panels/changes/CombinedDiffView.ts +1 -1
- package/front_end/panels/common/ExtensionServer.ts +9 -10
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +9 -4
- package/front_end/panels/elements/ElementStatePaneWidget.ts +3 -0
- package/front_end/panels/elements/ElementsTreeElement.ts +7 -1
- package/front_end/panels/elements/EventListenersWidget.ts +10 -11
- package/front_end/panels/issues/IssueView.ts +5 -6
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryViewer.ts +1 -1
- package/front_end/panels/media/PlayerPropertiesView.ts +309 -416
- package/front_end/panels/media/playerPropertiesView.css +1 -1
- package/front_end/panels/network/NetworkPanel.ts +2 -1
- package/front_end/panels/network/components/ResponseHeaderSection.ts +1 -2
- package/front_end/panels/network/network-meta.ts +6 -0
- package/front_end/panels/performance_monitor/PerformanceMonitor.ts +2 -1
- package/front_end/panels/recorder/RecordingView.ts +89 -73
- package/front_end/panels/recorder/ReplaySection.ts +59 -40
- package/front_end/panels/recorder/injected/injected.ts +4 -0
- package/front_end/panels/security/SecurityPanel.ts +5 -6
- package/front_end/panels/security/SecurityPanelSidebar.ts +244 -204
- package/front_end/panels/security/security.ts +0 -4
- package/front_end/panels/settings/EditFileSystemView.ts +8 -7
- package/front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts +20 -14
- package/front_end/panels/snippets/ScriptSnippetFileSystem.ts +10 -11
- package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +3 -3
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +5 -5
- package/front_end/panels/timeline/components/CWVMetrics.ts +1 -2
- package/front_end/panels/timeline/components/IgnoreListSetting.ts +5 -5
- package/front_end/panels/timeline/components/LayoutShiftDetails.ts +2 -3
- package/front_end/panels/timeline/components/LiveMetricsView.ts +2 -2
- package/front_end/panels/timeline/components/Sidebar.ts +3 -3
- package/front_end/panels/timeline/components/SidebarSingleInsightSet.ts +1 -2
- package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +3 -1
- package/front_end/panels/timeline/components/insights/CLSCulprits.ts +1 -2
- package/front_end/panels/timeline/components/insights/Cache.ts +1 -2
- package/front_end/panels/timeline/components/insights/CharacterSet.ts +1 -2
- package/front_end/panels/timeline/components/insights/DOMSize.ts +1 -2
- package/front_end/panels/timeline/components/insights/DocumentLatency.ts +2 -2
- package/front_end/panels/timeline/components/insights/DuplicatedJavaScript.ts +2 -2
- package/front_end/panels/timeline/components/insights/FontDisplay.ts +1 -2
- package/front_end/panels/timeline/components/insights/ForcedReflow.ts +1 -2
- package/front_end/panels/timeline/components/insights/INPBreakdown.ts +1 -2
- package/front_end/panels/timeline/components/insights/ImageDelivery.ts +1 -2
- package/front_end/panels/timeline/components/insights/LCPBreakdown.ts +13 -13
- package/front_end/panels/timeline/components/insights/LCPDiscovery.ts +1 -2
- package/front_end/panels/timeline/components/insights/LegacyJavaScript.ts +4 -4
- package/front_end/panels/timeline/components/insights/ModernHTTP.ts +1 -2
- package/front_end/panels/timeline/components/insights/NetworkDependencyTree.ts +10 -8
- package/front_end/panels/timeline/components/insights/RenderBlocking.ts +2 -2
- package/front_end/panels/timeline/components/insights/SidebarInsight.ts +3 -1
- package/front_end/panels/timeline/components/insights/SlowCSSSelector.ts +2 -2
- package/front_end/panels/timeline/components/insights/ThirdParties.ts +1 -2
- package/front_end/panels/timeline/components/insights/Viewport.ts +1 -2
- package/front_end/panels/timeline/overlays/OverlaysImpl.ts +1 -2
- package/front_end/panels/timeline/timeline.ts +0 -2
- package/front_end/panels/web_audio/WebAudioView.ts +7 -7
- package/front_end/panels/webauthn/WebauthnPane.ts +9 -9
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/ui/components/diff_view/DiffView.ts +2 -1
- package/front_end/ui/components/report_view/ReportView.docs.ts +2 -2
- package/front_end/ui/components/text_editor/javascript.ts +12 -13
- package/front_end/ui/legacy/GlassPane.ts +38 -14
- package/front_end/ui/legacy/Treeoutline.ts +14 -3
- package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +1 -1
- package/front_end/ui/legacy/components/object_ui/JavaScriptREPL.ts +1 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +1 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +21 -30
- package/front_end/ui/legacy/components/object_ui/RemoteObjectPreviewFormatter.ts +3 -8
- package/front_end/ui/legacy/components/utils/ImagePreview.ts +15 -16
- package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +4 -4
- package/front_end/ui/legacy/components/utils/Linkifier.ts +8 -10
- package/front_end/ui/settings/InspectorMainSettings.ts +12 -0
- package/front_end/ui/settings/settings.ts +2 -0
- package/front_end/ui/visual_logging/KnownContextValues.ts +21 -0
- package/mcp/mcp.ts +0 -6
- package/package.json +1 -1
- package/front_end/models/logs/logs-meta.ts +0 -24
- package/front_end/models/workspace/workspace-meta.ts +0 -40
- package/front_end/panels/security/OriginTreeElement.ts +0 -60
- package/front_end/panels/security/SecurityPanelSidebarTreeElement.ts +0 -30
|
@@ -13,39 +13,38 @@ import imagePreviewStyles from './imagePreview.css.js';
|
|
|
13
13
|
|
|
14
14
|
const UIStrings = {
|
|
15
15
|
/**
|
|
16
|
-
* @description
|
|
16
|
+
* @description Fallback text used in image preview alt text when the image source is unknown.
|
|
17
17
|
*/
|
|
18
|
-
unknownSource: '
|
|
18
|
+
unknownSource: 'Unknown source',
|
|
19
19
|
/**
|
|
20
|
-
* @description
|
|
20
|
+
* @description Alt text for an image preview displaying its source.
|
|
21
21
|
* @example {example.com} PH1
|
|
22
22
|
*/
|
|
23
23
|
imageFromS: 'Image from {PH1}',
|
|
24
24
|
/**
|
|
25
|
-
* @description
|
|
25
|
+
* @description Label for the file size row in an image preview.
|
|
26
26
|
*/
|
|
27
|
-
fileSize: 'File size
|
|
27
|
+
fileSize: 'File size',
|
|
28
28
|
/**
|
|
29
|
-
* @description
|
|
29
|
+
* @description Label for the intrinsic dimensions row in an image preview.
|
|
30
30
|
*/
|
|
31
|
-
intrinsicSize: 'Intrinsic size
|
|
31
|
+
intrinsicSize: 'Intrinsic size',
|
|
32
32
|
/**
|
|
33
|
-
* @description
|
|
33
|
+
* @description Label for the rendered dimensions row in an image preview.
|
|
34
34
|
*/
|
|
35
|
-
renderedSize: 'Rendered size
|
|
35
|
+
renderedSize: 'Rendered size',
|
|
36
36
|
/**
|
|
37
|
-
* @description
|
|
38
|
-
* https://html.spec.whatwg.org/multipage/embedded-content.html#dom-img-currentsrc.
|
|
37
|
+
* @description Label for the source URL row in an image preview.
|
|
39
38
|
*/
|
|
40
|
-
currentSource: 'Current source
|
|
39
|
+
currentSource: 'Current source',
|
|
41
40
|
/**
|
|
42
|
-
* @description
|
|
41
|
+
* @description Label for the rendered aspect ratio row in an image preview.
|
|
43
42
|
*/
|
|
44
|
-
renderedAspectRatio: 'Rendered aspect ratio
|
|
43
|
+
renderedAspectRatio: 'Rendered aspect ratio',
|
|
45
44
|
/**
|
|
46
|
-
* @description
|
|
45
|
+
* @description Label for the intrinsic aspect ratio row in an image preview.
|
|
47
46
|
*/
|
|
48
|
-
intrinsicAspectRatio: 'Intrinsic aspect ratio
|
|
47
|
+
intrinsicAspectRatio: 'Intrinsic aspect ratio',
|
|
49
48
|
} as const;
|
|
50
49
|
const str_ = i18n.i18n.registerUIStrings('ui/legacy/components/utils/ImagePreview.ts', UIStrings);
|
|
51
50
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
@@ -49,19 +49,19 @@ const {classMap} = Directives;
|
|
|
49
49
|
|
|
50
50
|
const UIStrings = {
|
|
51
51
|
/**
|
|
52
|
-
* @description
|
|
52
|
+
* @description Context menu item on a stack trace link to remove the script from the ignore list.
|
|
53
53
|
*/
|
|
54
54
|
removeFromIgnore: 'Remove from ignore list',
|
|
55
55
|
/**
|
|
56
|
-
* @description
|
|
56
|
+
* @description Context menu item on a stack trace link to add the script to the ignore list.
|
|
57
57
|
*/
|
|
58
58
|
addToIgnore: 'Add script to ignore list',
|
|
59
59
|
/**
|
|
60
|
-
* @description
|
|
60
|
+
* @description Link text in a stack trace preview to show ignore-listed frames.
|
|
61
61
|
*/
|
|
62
62
|
showMoreFrames: 'Show ignore-listed frames',
|
|
63
63
|
/**
|
|
64
|
-
* @description
|
|
64
|
+
* @description Link text in a stack trace preview to hide ignore-listed frames.
|
|
65
65
|
*/
|
|
66
66
|
showLess: 'Show less',
|
|
67
67
|
} as const;
|
|
@@ -25,33 +25,31 @@ const {ref, ifDefined, classMap} = Directives;
|
|
|
25
25
|
|
|
26
26
|
const UIStrings = {
|
|
27
27
|
/**
|
|
28
|
-
* @description
|
|
28
|
+
* @description Fallback text displayed for a link when the URL or text is unknown.
|
|
29
29
|
*/
|
|
30
30
|
unknown: '(unknown)',
|
|
31
31
|
/**
|
|
32
|
-
* @description
|
|
32
|
+
* @description Option in the link handling dropdown to automatically select the handler.
|
|
33
33
|
*/
|
|
34
|
-
auto: '
|
|
34
|
+
auto: 'Auto',
|
|
35
35
|
/**
|
|
36
|
-
* @description
|
|
36
|
+
* @description Context menu item to reveal an item in a specific destination panel or tool.
|
|
37
37
|
* @example {Sources panel} PH1
|
|
38
38
|
*/
|
|
39
39
|
revealInS: 'Reveal in {PH1}',
|
|
40
40
|
/**
|
|
41
|
-
* @description
|
|
41
|
+
* @description Context menu item to reveal an item in its destination.
|
|
42
42
|
*/
|
|
43
43
|
reveal: 'Reveal',
|
|
44
44
|
/**
|
|
45
|
-
* @description
|
|
45
|
+
* @description Context menu item to open a link or resource using a registered extension.
|
|
46
46
|
* @example {Extension} PH1
|
|
47
47
|
*/
|
|
48
48
|
openUsingS: 'Open using {PH1}',
|
|
49
49
|
/**
|
|
50
|
-
* @description
|
|
51
|
-
* refers to the ability of extensions to DevTools to be able to intercept link clicks so that they
|
|
52
|
-
* can react to them.
|
|
50
|
+
* @description Label for the setting that controls how links are handled in the UI.
|
|
53
51
|
*/
|
|
54
|
-
linkHandling: 'Link handling
|
|
52
|
+
linkHandling: 'Link handling',
|
|
55
53
|
} as const;
|
|
56
54
|
const str_ = i18n.i18n.registerUIStrings('ui/legacy/components/utils/Linkifier.ts', UIStrings);
|
|
57
55
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Copyright 2026 The Chromium Authors
|
|
2
|
+
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
+
// found in the LICENSE file.
|
|
4
|
+
|
|
5
|
+
import * as Common from '../../core/common/common.js';
|
|
6
|
+
|
|
7
|
+
export const adBlockingEnabledSettingDescriptor: Common.Settings.SettingDescriptor<boolean> = {
|
|
8
|
+
name: 'network.ad-blocking-enabled',
|
|
9
|
+
type: Common.Settings.SettingType.BOOLEAN,
|
|
10
|
+
defaultValue: false,
|
|
11
|
+
storageType: Common.Settings.SettingStorageType.SESSION,
|
|
12
|
+
};
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
|
+
import * as InspectorMainSettings from './InspectorMainSettings.js';
|
|
5
6
|
import * as SettingUIRegistration from './SettingUIRegistration.js';
|
|
6
7
|
|
|
7
8
|
export {
|
|
9
|
+
InspectorMainSettings,
|
|
8
10
|
SettingUIRegistration,
|
|
9
11
|
};
|
|
@@ -474,6 +474,7 @@ export const knownContextValues = new Set([
|
|
|
474
474
|
'animation-fill-mode',
|
|
475
475
|
'animation-iteration-count',
|
|
476
476
|
'animation-name',
|
|
477
|
+
'animation-node-row',
|
|
477
478
|
'animation-play-state',
|
|
478
479
|
'animation-range',
|
|
479
480
|
'animation-range-end',
|
|
@@ -514,6 +515,7 @@ export const knownContextValues = new Set([
|
|
|
514
515
|
'apply-to-page-tree',
|
|
515
516
|
'ar',
|
|
516
517
|
'architecture',
|
|
518
|
+
'aria-attribute',
|
|
517
519
|
'aria-attributes',
|
|
518
520
|
'aria-live-recording',
|
|
519
521
|
'arial',
|
|
@@ -533,9 +535,12 @@ export const knownContextValues = new Set([
|
|
|
533
535
|
'audio-context',
|
|
534
536
|
'audio-context-closed',
|
|
535
537
|
'audio-context-created',
|
|
538
|
+
'audio-context-details',
|
|
536
539
|
'audio-context-resumed',
|
|
540
|
+
'audio-context-summary',
|
|
537
541
|
'audio-context-suspended',
|
|
538
542
|
'authenticator',
|
|
543
|
+
'authenticator-field',
|
|
539
544
|
'authored',
|
|
540
545
|
'authored-deployed-grouping',
|
|
541
546
|
'authored-deployed-grouping-documentation',
|
|
@@ -854,10 +859,12 @@ export const knownContextValues = new Set([
|
|
|
854
859
|
'color-format',
|
|
855
860
|
'color-interpolation',
|
|
856
861
|
'color-interpolation-filters',
|
|
862
|
+
'color-item',
|
|
857
863
|
'color-rendering',
|
|
858
864
|
'color-scheme',
|
|
859
865
|
'color/* color: red */',
|
|
860
866
|
'colorPicker',
|
|
867
|
+
'colors',
|
|
861
868
|
'colorz',
|
|
862
869
|
'column-count',
|
|
863
870
|
'column-fill',
|
|
@@ -999,6 +1006,7 @@ export const knownContextValues = new Set([
|
|
|
999
1006
|
'continue-to-here',
|
|
1000
1007
|
'continuous',
|
|
1001
1008
|
'contrast',
|
|
1009
|
+
'contrast-issue',
|
|
1002
1010
|
'contrast-issues',
|
|
1003
1011
|
'contrast-issues-documentation',
|
|
1004
1012
|
'contrast-ratio',
|
|
@@ -1162,6 +1170,7 @@ export const knownContextValues = new Set([
|
|
|
1162
1170
|
'create-recording',
|
|
1163
1171
|
'create-recording-view',
|
|
1164
1172
|
'creator-ad-script-ancestry',
|
|
1173
|
+
'credential',
|
|
1165
1174
|
'credential-id',
|
|
1166
1175
|
'credentialId',
|
|
1167
1176
|
'critical',
|
|
@@ -1184,6 +1193,7 @@ export const knownContextValues = new Set([
|
|
|
1184
1193
|
'css-overview.colors',
|
|
1185
1194
|
'css-overview.contrast',
|
|
1186
1195
|
'css-overview.font-info',
|
|
1196
|
+
'css-overview.group-item',
|
|
1187
1197
|
'css-overview.media-queries',
|
|
1188
1198
|
'css-overview.quick-start',
|
|
1189
1199
|
'css-overview.summary',
|
|
@@ -1401,6 +1411,7 @@ export const knownContextValues = new Set([
|
|
|
1401
1411
|
'devtools',
|
|
1402
1412
|
'devtools-override',
|
|
1403
1413
|
'dialog-close',
|
|
1414
|
+
'diff-view',
|
|
1404
1415
|
'direct-socket-chunks',
|
|
1405
1416
|
'direct-socket-messages',
|
|
1406
1417
|
'direction',
|
|
@@ -1782,6 +1793,7 @@ export const knownContextValues = new Set([
|
|
|
1782
1793
|
'font-editor-documentation',
|
|
1783
1794
|
'font-family',
|
|
1784
1795
|
'font-feature-settings',
|
|
1796
|
+
'font-info',
|
|
1785
1797
|
'font-kerning',
|
|
1786
1798
|
'font-language-override',
|
|
1787
1799
|
'font-optical-sizing',
|
|
@@ -2635,6 +2647,7 @@ export const knownContextValues = new Set([
|
|
|
2635
2647
|
'linear-memory-inspector.toggle-value-settings',
|
|
2636
2648
|
'linear-memory-inspector.value-type-mode',
|
|
2637
2649
|
'linear-memory-inspector.viewer',
|
|
2650
|
+
'linear-memory-row',
|
|
2638
2651
|
'link',
|
|
2639
2652
|
'link-in-explanation',
|
|
2640
2653
|
'linux',
|
|
@@ -2756,7 +2769,9 @@ export const knownContextValues = new Set([
|
|
|
2756
2769
|
'max-width',
|
|
2757
2770
|
'measure-performance',
|
|
2758
2771
|
'media',
|
|
2772
|
+
'media-attributes',
|
|
2759
2773
|
'media-flame-chart-group-expansion',
|
|
2774
|
+
'media-queries',
|
|
2760
2775
|
'media-queries-enable',
|
|
2761
2776
|
'media-query',
|
|
2762
2777
|
'medias',
|
|
@@ -3126,6 +3141,8 @@ export const knownContextValues = new Set([
|
|
|
3126
3141
|
'payment-handler',
|
|
3127
3142
|
'perf-panel-annotations',
|
|
3128
3143
|
'perfmon-active-indicators2',
|
|
3144
|
+
'perfmon-canvas',
|
|
3145
|
+
'perfmon-chart',
|
|
3129
3146
|
'performance-default',
|
|
3130
3147
|
'performance-full-default',
|
|
3131
3148
|
'performance-insights',
|
|
@@ -3267,6 +3284,7 @@ export const knownContextValues = new Set([
|
|
|
3267
3284
|
'prop2',
|
|
3268
3285
|
'properties',
|
|
3269
3286
|
'property',
|
|
3287
|
+
'property-row',
|
|
3270
3288
|
'protanopia',
|
|
3271
3289
|
'protocol',
|
|
3272
3290
|
'protocol-handlers',
|
|
@@ -4033,6 +4051,8 @@ export const knownContextValues = new Set([
|
|
|
4033
4051
|
'subtree-modified',
|
|
4034
4052
|
'suffix',
|
|
4035
4053
|
'suggestion',
|
|
4054
|
+
'summary',
|
|
4055
|
+
'summary-item',
|
|
4036
4056
|
'supports',
|
|
4037
4057
|
'surface-duo',
|
|
4038
4058
|
'surface-pro-10',
|
|
@@ -4477,6 +4497,7 @@ export const knownContextValues = new Set([
|
|
|
4477
4497
|
'unload',
|
|
4478
4498
|
'unregister',
|
|
4479
4499
|
'unset',
|
|
4500
|
+
'unused-declarations',
|
|
4480
4501
|
'unused-size',
|
|
4481
4502
|
'update',
|
|
4482
4503
|
'update-settings',
|
package/mcp/mcp.ts
CHANGED
|
@@ -2,12 +2,6 @@
|
|
|
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
|
-
// Instantiating a DevTools universe requires settings from these meta files.
|
|
6
|
-
// Until settings registration is handled differently, the easiest solution is to
|
|
7
|
-
// just import relevant meta files (as long as they don't contain any UI related code)
|
|
8
|
-
import '../front_end/models/workspace/workspace-meta.js';
|
|
9
|
-
import '../front_end/models/logs/logs-meta.js';
|
|
10
|
-
|
|
11
5
|
/**
|
|
12
6
|
* IMPORTANT! Make sure that any class that is exported here has related unit
|
|
13
7
|
* tests added to foundation_unittests. See front_end/core/i18n/BUILD.gn as an
|
package/package.json
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// Copyright 2020 The Chromium Authors
|
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
-
// found in the LICENSE file.
|
|
4
|
-
|
|
5
|
-
import * as Common from '../../core/common/common.js';
|
|
6
|
-
import * as i18n from '../../core/i18n/i18n.js';
|
|
7
|
-
|
|
8
|
-
const UIStrings = {
|
|
9
|
-
/**
|
|
10
|
-
* @description Title of an action in the network tool to toggle recording.
|
|
11
|
-
*/
|
|
12
|
-
recordNetworkLog: 'Record network log',
|
|
13
|
-
} as const;
|
|
14
|
-
const str_ = i18n.i18n.registerUIStrings('models/logs/logs-meta.ts', UIStrings);
|
|
15
|
-
const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
|
|
16
|
-
|
|
17
|
-
Common.Settings.registerSettingExtension({
|
|
18
|
-
category: Common.Settings.SettingCategory.NETWORK,
|
|
19
|
-
title: i18nLazyString(UIStrings.recordNetworkLog),
|
|
20
|
-
settingName: 'network-log.record-log',
|
|
21
|
-
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
22
|
-
defaultValue: true,
|
|
23
|
-
storageType: Common.Settings.SettingStorageType.SESSION,
|
|
24
|
-
});
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
// Copyright 2025 The Chromium Authors
|
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
-
// found in the LICENSE file.
|
|
4
|
-
|
|
5
|
-
import * as Common from '../../core/common/common.js';
|
|
6
|
-
|
|
7
|
-
Common.Settings.registerSettingExtension({
|
|
8
|
-
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
9
|
-
settingName: 'skip-stack-frames-pattern',
|
|
10
|
-
settingType: Common.Settings.SettingType.REGEX,
|
|
11
|
-
defaultValue: '/node_modules/|^node:',
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
Common.Settings.registerSettingExtension({
|
|
15
|
-
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
16
|
-
settingName: 'skip-content-scripts',
|
|
17
|
-
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
18
|
-
defaultValue: true,
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
Common.Settings.registerSettingExtension({
|
|
22
|
-
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
23
|
-
settingName: 'automatically-ignore-list-known-third-party-scripts',
|
|
24
|
-
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
25
|
-
defaultValue: true,
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
Common.Settings.registerSettingExtension({
|
|
29
|
-
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
30
|
-
settingName: 'skip-anonymous-scripts',
|
|
31
|
-
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
32
|
-
defaultValue: false,
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
Common.Settings.registerSettingExtension({
|
|
36
|
-
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
37
|
-
settingName: 'enable-ignore-listing',
|
|
38
|
-
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
39
|
-
defaultValue: true,
|
|
40
|
-
});
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
// Copyright 2024 The Chromium Authors
|
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
-
// found in the LICENSE file.
|
|
4
|
-
|
|
5
|
-
import type * as Platform from '../../core/platform/platform.js';
|
|
6
|
-
import * as Protocol from '../../generated/protocol.js';
|
|
7
|
-
|
|
8
|
-
import {SecurityPanelSidebarTreeElement} from './SecurityPanelSidebarTreeElement.js';
|
|
9
|
-
|
|
10
|
-
export class ShowOriginEvent extends Event {
|
|
11
|
-
static readonly eventName = 'showorigin';
|
|
12
|
-
origin: Platform.DevToolsPath.UrlString|null;
|
|
13
|
-
|
|
14
|
-
constructor(origin: Platform.DevToolsPath.UrlString|null) {
|
|
15
|
-
super(ShowOriginEvent.eventName, {bubbles: true, composed: true});
|
|
16
|
-
this.origin = origin;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export class OriginTreeElement extends SecurityPanelSidebarTreeElement {
|
|
21
|
-
#securityState: Protocol.Security.SecurityState|null;
|
|
22
|
-
readonly #renderTreeElement: (element: SecurityPanelSidebarTreeElement) => void;
|
|
23
|
-
readonly #origin: Platform.DevToolsPath.UrlString|null = null;
|
|
24
|
-
|
|
25
|
-
constructor(
|
|
26
|
-
className: string, renderTreeElement: (element: SecurityPanelSidebarTreeElement) => void,
|
|
27
|
-
origin: Platform.DevToolsPath.UrlString|null = null) {
|
|
28
|
-
super();
|
|
29
|
-
|
|
30
|
-
this.#renderTreeElement = renderTreeElement;
|
|
31
|
-
this.#origin = origin;
|
|
32
|
-
|
|
33
|
-
this.listItemElement.classList.add(className);
|
|
34
|
-
this.#securityState = null;
|
|
35
|
-
this.setSecurityState(Protocol.Security.SecurityState.Unknown);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
setSecurityState(newSecurityState: Protocol.Security.SecurityState): void {
|
|
39
|
-
this.#securityState = newSecurityState;
|
|
40
|
-
this.#renderTreeElement(this);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
securityState(): Protocol.Security.SecurityState|null {
|
|
44
|
-
return this.#securityState;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
origin(): Platform.DevToolsPath.UrlString|null {
|
|
48
|
-
return this.#origin;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
override showElement(): void {
|
|
52
|
-
this.listItemElement.dispatchEvent(new ShowOriginEvent(this.#origin));
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
declare global {
|
|
57
|
-
interface HTMLElementEventMap {
|
|
58
|
-
showorigin: ShowOriginEvent;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// Copyright 2024 The Chromium Authors
|
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
-
// found in the LICENSE file.
|
|
4
|
-
import * as UI from '../../ui/legacy/legacy.js';
|
|
5
|
-
|
|
6
|
-
export class SecurityPanelSidebarTreeElement extends UI.TreeOutline.TreeElement {
|
|
7
|
-
constructor(title = '', expandable = false, jslogContext?: string|number) {
|
|
8
|
-
super(title, expandable, jslogContext);
|
|
9
|
-
UI.ARIAUtils.setLabel(this.listItemElement, title);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
get elemId(): string {
|
|
13
|
-
// default landing spot for the security panel
|
|
14
|
-
return 'overview';
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
showElement(): void {
|
|
18
|
-
throw new Error('Unimplemented Method');
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
override onselect(selectedByUser?: boolean): boolean {
|
|
22
|
-
if (selectedByUser) {
|
|
23
|
-
const id = this.elemId;
|
|
24
|
-
this.listItemElement.dispatchEvent(
|
|
25
|
-
new CustomEvent('update-sidebar-selection', {bubbles: true, composed: true, detail: {id}}));
|
|
26
|
-
this.showElement();
|
|
27
|
-
}
|
|
28
|
-
return false;
|
|
29
|
-
}
|
|
30
|
-
}
|