chrome-devtools-frontend 1.0.1679704 → 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/AUTHORS +1 -0
- package/front_end/core/platform/TypescriptUtilities.ts +0 -9
- package/front_end/core/platform/platform.ts +1 -1
- package/front_end/core/sdk/ConsoleModel.ts +6 -3
- package/front_end/core/sdk/DOMModel.ts +110 -0
- package/front_end/core/sdk/EmulationModel.ts +4 -2
- package/front_end/core/sdk/NetworkManager.ts +15 -9
- package/front_end/core/sdk/OverlayModel.ts +3 -2
- package/front_end/core/sdk/PageResourceLoader.ts +4 -3
- package/front_end/core/sdk/RuntimeModel.ts +5 -3
- package/front_end/core/sdk/SDKSettings.ts +66 -0
- package/front_end/entrypoints/inspector_main/RenderingOptions.ts +4 -2
- package/front_end/entrypoints/inspector_main/inspector_main-meta.ts +32 -0
- package/front_end/entrypoints/main/MainImpl.ts +1 -1
- 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/generated/InspectorBackendCommands.ts +3 -1
- package/front_end/generated/SupportedCSSProperties.ts +20 -0
- package/front_end/generated/protocol-mapping.d.ts +7 -0
- package/front_end/generated/protocol-proxy-api.d.ts +5 -0
- package/front_end/generated/protocol.ts +15 -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 +4 -2
- package/front_end/panels/console/ConsoleViewMessage.ts +3 -2
- package/front_end/panels/console/console-meta.ts +19 -5
- 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 +538 -0
- 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 +47 -514
- package/front_end/panels/elements/ElementsTreeOutline.ts +168 -297
- 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 +14 -14
- 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/elements/elements.ts +3 -0
- package/front_end/panels/issues/AffectedCookiesView.ts +2 -0
- package/front_end/panels/issues/AffectedElementsView.ts +5 -0
- package/front_end/panels/issues/CorsIssueDetailsView.ts +13 -9
- 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/mobile_throttling/NetworkPanelIndicator.ts +3 -1
- package/front_end/panels/network/NetworkConfigView.ts +2 -1
- 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 +3 -2
- 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 +117 -0
- package/front_end/panels/profiler/HeapDetachedElementsDataGrid.ts +2 -1
- package/front_end/panels/profiler/ProfileLauncherView.ts +19 -16
- package/front_end/panels/profiler/ProfileSidebarTreeElement.ts +1 -1
- package/front_end/panels/security/security.ts +6 -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/SourcesView.ts +8 -107
- package/front_end/panels/sources/TabbedEditorContainer.ts +110 -7
- package/front_end/panels/sources/UISourceCodeFrame.ts +2 -2
- package/front_end/panels/sources/sources-meta.ts +16 -0
- package/front_end/panels/timeline/TimelineLoader.ts +1 -1
- package/front_end/panels/timeline/TimelineUIUtils.ts +6 -0
- package/front_end/panels/timeline/components/LayoutShiftDetails.ts +4 -3
- package/front_end/panels/timeline/components/LiveMetricsView.ts +1 -1
- package/front_end/panels/timeline/components/MetricCard.ts +4 -3
- package/front_end/panels/timeline/components/NetworkRequestDetails.ts +5 -2
- package/front_end/panels/timeline/components/TimelineRangeSummaryView.ts +1 -1
- package/front_end/panels/timeline/components/TimelineSummary.ts +8 -5
- 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/TabbedPane.ts +34 -2
- 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/legacy/components/quick_open/CommandMenu.ts +5 -5
- package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +7 -7
- package/front_end/ui/legacy/components/quick_open/QuickOpen.ts +1 -1
- package/front_end/ui/legacy/components/quick_open/quick_open-meta.ts +2 -2
- package/front_end/ui/visual_logging/KnownContextValues.ts +40 -0
- package/mcp/mcp.ts +0 -3
- package/package.json +1 -1
- package/front_end/core/sdk/sdk-meta.ts +0 -178
- package/front_end/models/badges/badges-meta.ts +0 -27
- package/front_end/models/persistence/persistence-meta.ts +0 -69
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
|
|
15
15
|
const UIStrings = {
|
|
16
16
|
/**
|
|
17
|
-
* @description
|
|
17
|
+
* @description Hint text displayed below the quick open input prompt.
|
|
18
18
|
*/
|
|
19
19
|
typeToSeeAvailableCommands: 'Type ? to see available commands',
|
|
20
20
|
} as const;
|
|
@@ -9,11 +9,11 @@ import type * as QuickOpen from './quick_open.js';
|
|
|
9
9
|
|
|
10
10
|
const UIStrings = {
|
|
11
11
|
/**
|
|
12
|
-
* @description Title of action that opens a file
|
|
12
|
+
* @description Title of an action that opens a file.
|
|
13
13
|
*/
|
|
14
14
|
openFile: 'Open file',
|
|
15
15
|
/**
|
|
16
|
-
* @description Title of
|
|
16
|
+
* @description Title of an action that opens the command menu.
|
|
17
17
|
*/
|
|
18
18
|
runCommand: 'Run command',
|
|
19
19
|
} as const;
|
|
@@ -350,11 +350,16 @@ export const knownContextValues = new Set([
|
|
|
350
350
|
'adorner-settings',
|
|
351
351
|
'ads',
|
|
352
352
|
'af',
|
|
353
|
+
'affected-cookie',
|
|
353
354
|
'affected-cookies',
|
|
354
355
|
'affected-documents',
|
|
356
|
+
'affected-element',
|
|
355
357
|
'affected-elements',
|
|
358
|
+
'affected-raw-cookie',
|
|
356
359
|
'affected-raw-cookies',
|
|
360
|
+
'affected-request',
|
|
357
361
|
'affected-requests',
|
|
362
|
+
'affected-resources',
|
|
358
363
|
'affected-sources',
|
|
359
364
|
'ai-annotations-enabled',
|
|
360
365
|
'ai-assistance-enabled',
|
|
@@ -518,6 +523,7 @@ export const knownContextValues = new Set([
|
|
|
518
523
|
'aspect-ratio',
|
|
519
524
|
'asserted-events',
|
|
520
525
|
'asus-zenbook-fold',
|
|
526
|
+
'async',
|
|
521
527
|
'attribute',
|
|
522
528
|
'attribute-modified',
|
|
523
529
|
'attributes',
|
|
@@ -828,6 +834,7 @@ export const knownContextValues = new Set([
|
|
|
828
834
|
'close-walkthrough',
|
|
829
835
|
'closeable-tabs',
|
|
830
836
|
'closeableTabs',
|
|
837
|
+
'cls',
|
|
831
838
|
'cls-culprits-widget',
|
|
832
839
|
'code',
|
|
833
840
|
'code-completion.accordion',
|
|
@@ -1351,8 +1358,11 @@ export const knownContextValues = new Set([
|
|
|
1351
1358
|
'desktop',
|
|
1352
1359
|
'desktop-touch',
|
|
1353
1360
|
'destination',
|
|
1361
|
+
'detached-element',
|
|
1362
|
+
'detached-elements',
|
|
1354
1363
|
'detached-node',
|
|
1355
1364
|
'detached-node-count',
|
|
1365
|
+
'detail-row',
|
|
1356
1366
|
'details',
|
|
1357
1367
|
'details-general',
|
|
1358
1368
|
'details-response-headers',
|
|
@@ -1457,6 +1467,7 @@ export const knownContextValues = new Set([
|
|
|
1457
1467
|
'dragstart',
|
|
1458
1468
|
'drawer',
|
|
1459
1469
|
'drawer-view-closeableTabs',
|
|
1470
|
+
'drawing',
|
|
1460
1471
|
'drjones.network-floating-button',
|
|
1461
1472
|
'drjones.network-panel-context',
|
|
1462
1473
|
'drjones.network-panel-context.failures',
|
|
@@ -1557,6 +1568,7 @@ export const knownContextValues = new Set([
|
|
|
1557
1568
|
'emulate-page-focus-true',
|
|
1558
1569
|
'emulated-css-media',
|
|
1559
1570
|
'emulated-css-media-feature-color-gamut',
|
|
1571
|
+
'emulated-css-media-feature-color-gamut-srgb',
|
|
1560
1572
|
'emulated-css-media-feature-forced-colors',
|
|
1561
1573
|
'emulated-css-media-feature-forced-colors-active',
|
|
1562
1574
|
'emulated-css-media-feature-forced-colors-none',
|
|
@@ -1568,6 +1580,7 @@ export const knownContextValues = new Set([
|
|
|
1568
1580
|
'emulated-css-media-feature-prefers-reduced-motion',
|
|
1569
1581
|
'emulated-css-media-feature-prefers-reduced-motion-reduce',
|
|
1570
1582
|
'emulated-css-media-feature-prefers-reduced-transparency',
|
|
1583
|
+
'emulated-css-media-feature-prefers-reduced-transparency-reduce',
|
|
1571
1584
|
'emulated-css-media-print',
|
|
1572
1585
|
'emulated-css-media-screen',
|
|
1573
1586
|
'emulated-os-text-scale',
|
|
@@ -1654,6 +1667,7 @@ export const knownContextValues = new Set([
|
|
|
1654
1667
|
'execution-context',
|
|
1655
1668
|
'expand',
|
|
1656
1669
|
'expand-recursively',
|
|
1670
|
+
'experience',
|
|
1657
1671
|
'experimental-item',
|
|
1658
1672
|
'experiments',
|
|
1659
1673
|
'experiments-filter',
|
|
@@ -1697,6 +1711,7 @@ export const knownContextValues = new Set([
|
|
|
1697
1711
|
'fantasy',
|
|
1698
1712
|
'fast-4g',
|
|
1699
1713
|
'fast-out-linear-in',
|
|
1714
|
+
'fcp',
|
|
1700
1715
|
'feedback',
|
|
1701
1716
|
'fetch',
|
|
1702
1717
|
'fetch-and-xhr',
|
|
@@ -1896,6 +1911,7 @@ export const knownContextValues = new Set([
|
|
|
1896
1911
|
'googlebot-desktop',
|
|
1897
1912
|
'googlebot-smartphone',
|
|
1898
1913
|
'gotpointercapture',
|
|
1914
|
+
'gpu',
|
|
1899
1915
|
'grace-period-link',
|
|
1900
1916
|
'grace-period-mitigation-disabled',
|
|
1901
1917
|
'greendev',
|
|
@@ -1969,7 +1985,9 @@ export const knownContextValues = new Set([
|
|
|
1969
1985
|
'headers-view.add-override-rule',
|
|
1970
1986
|
'headers-view.remove-apply-to-section',
|
|
1971
1987
|
'headers-view.remove-header',
|
|
1988
|
+
'heap',
|
|
1972
1989
|
'heap-profiler',
|
|
1990
|
+
'heap-record',
|
|
1973
1991
|
'heap-snapshot.constructors-view',
|
|
1974
1992
|
'heap-snapshot.retaining-paths-view',
|
|
1975
1993
|
'heap-tracking-overview',
|
|
@@ -2038,6 +2056,7 @@ export const knownContextValues = new Set([
|
|
|
2038
2056
|
'icons',
|
|
2039
2057
|
'id',
|
|
2040
2058
|
'identity',
|
|
2059
|
+
'idle',
|
|
2041
2060
|
'ignore-this-retainer',
|
|
2042
2061
|
'image',
|
|
2043
2062
|
'image-animation',
|
|
@@ -2080,6 +2099,7 @@ export const knownContextValues = new Set([
|
|
|
2080
2099
|
'inline-size',
|
|
2081
2100
|
'inline-variable-values',
|
|
2082
2101
|
'inline-variable-values-false',
|
|
2102
|
+
'inp',
|
|
2083
2103
|
'inp-breakdown-widget',
|
|
2084
2104
|
'input',
|
|
2085
2105
|
'insertCompositionText',
|
|
@@ -2166,6 +2186,7 @@ export const knownContextValues = new Set([
|
|
|
2166
2186
|
'isolates',
|
|
2167
2187
|
'isolation',
|
|
2168
2188
|
'issue',
|
|
2189
|
+
'issue-description',
|
|
2169
2190
|
'issuer',
|
|
2170
2191
|
'issues',
|
|
2171
2192
|
'issues-pane',
|
|
@@ -2329,6 +2350,8 @@ export const knownContextValues = new Set([
|
|
|
2329
2350
|
'latency',
|
|
2330
2351
|
'latitude',
|
|
2331
2352
|
'layer',
|
|
2353
|
+
'layer-details',
|
|
2354
|
+
'layer-item',
|
|
2332
2355
|
'layers',
|
|
2333
2356
|
'layers-3d-view',
|
|
2334
2357
|
'layers-details',
|
|
@@ -2350,8 +2373,10 @@ export const knownContextValues = new Set([
|
|
|
2350
2373
|
'layers.zoom-out',
|
|
2351
2374
|
'layout',
|
|
2352
2375
|
'layout-count',
|
|
2376
|
+
'layout-shift-details',
|
|
2353
2377
|
'layout-shifts',
|
|
2354
2378
|
'lazy-load-image-details',
|
|
2379
|
+
'lcp',
|
|
2355
2380
|
'lcp-breakdown',
|
|
2356
2381
|
'lcp-breakdown-widget',
|
|
2357
2382
|
'lcp-discovery-widget',
|
|
@@ -2764,6 +2789,8 @@ export const knownContextValues = new Set([
|
|
|
2764
2789
|
'metadata',
|
|
2765
2790
|
'metadata-allowed-sites-details',
|
|
2766
2791
|
'method',
|
|
2792
|
+
'metric-histogram',
|
|
2793
|
+
'metric-subpart',
|
|
2767
2794
|
'microsoft-edge-android-mobile',
|
|
2768
2795
|
'microsoft-edge-android-tablet',
|
|
2769
2796
|
'microsoft-edge-chromium-mac',
|
|
@@ -3036,6 +3063,7 @@ export const knownContextValues = new Set([
|
|
|
3036
3063
|
'overscroll-behavior-inline',
|
|
3037
3064
|
'overscroll-behavior-x',
|
|
3038
3065
|
'overscroll-behavior-y',
|
|
3066
|
+
'overscroll-container-type',
|
|
3039
3067
|
'overscroll-position',
|
|
3040
3068
|
'p3',
|
|
3041
3069
|
'pa',
|
|
@@ -3209,6 +3237,7 @@ export const knownContextValues = new Set([
|
|
|
3209
3237
|
'private-state-tokens',
|
|
3210
3238
|
'processing-instruction-value',
|
|
3211
3239
|
'production-origin',
|
|
3240
|
+
'profile-item',
|
|
3212
3241
|
'profile-loading-failed',
|
|
3213
3242
|
'profile-options',
|
|
3214
3243
|
'profile-view',
|
|
@@ -3226,6 +3255,7 @@ export const knownContextValues = new Set([
|
|
|
3226
3255
|
'profiler.heap-snapshot-statistics-view',
|
|
3227
3256
|
'profiler.heap-toggle-recording',
|
|
3228
3257
|
'profiler.js-toggle-recording',
|
|
3258
|
+
'profiler.launcher',
|
|
3229
3259
|
'profiler.load-from-file',
|
|
3230
3260
|
'profiler.profile-type',
|
|
3231
3261
|
'profiler.save-to-file',
|
|
@@ -3273,6 +3303,7 @@ export const knownContextValues = new Set([
|
|
|
3273
3303
|
'quotes',
|
|
3274
3304
|
'r',
|
|
3275
3305
|
'range',
|
|
3306
|
+
'rasterizing',
|
|
3276
3307
|
'ratechange',
|
|
3277
3308
|
'raw-headers',
|
|
3278
3309
|
'raw-headers-show-more',
|
|
@@ -3509,6 +3540,7 @@ export const knownContextValues = new Set([
|
|
|
3509
3540
|
'safe-area-right',
|
|
3510
3541
|
'safe-area-top',
|
|
3511
3542
|
'same-site',
|
|
3543
|
+
'sampling-heap',
|
|
3512
3544
|
'sampling-heap-profiler-timeline',
|
|
3513
3545
|
'samsung-galaxy-a24-4g',
|
|
3514
3546
|
'samsung-galaxy-a51-71',
|
|
@@ -3656,6 +3688,7 @@ export const knownContextValues = new Set([
|
|
|
3656
3688
|
'serious',
|
|
3657
3689
|
'server',
|
|
3658
3690
|
'server-timing-api',
|
|
3691
|
+
'service-worker',
|
|
3659
3692
|
'service-worker-update-on-reload',
|
|
3660
3693
|
'service-workers',
|
|
3661
3694
|
'session',
|
|
@@ -3747,6 +3780,7 @@ export const knownContextValues = new Set([
|
|
|
3747
3780
|
'shift-home',
|
|
3748
3781
|
'shift-pagedown',
|
|
3749
3782
|
'shift-pageup',
|
|
3783
|
+
'shift-row',
|
|
3750
3784
|
'shift-tab',
|
|
3751
3785
|
'shortcut',
|
|
3752
3786
|
'shortcut-panel-switch',
|
|
@@ -3971,6 +4005,7 @@ export const knownContextValues = new Set([
|
|
|
3971
4005
|
'storage-items-view.delete-selected',
|
|
3972
4006
|
'storage-items-view.refresh',
|
|
3973
4007
|
'storage-key',
|
|
4008
|
+
'storage-usage',
|
|
3974
4009
|
'storage.clear-site-data',
|
|
3975
4010
|
'store-as-global-variable',
|
|
3976
4011
|
'stroke',
|
|
@@ -4164,6 +4199,7 @@ export const knownContextValues = new Set([
|
|
|
4164
4199
|
'timeline-show-settings-toolbar',
|
|
4165
4200
|
'timeline-sidebar-opened-at-least-once',
|
|
4166
4201
|
'timeline-status',
|
|
4202
|
+
'timeline-summary',
|
|
4167
4203
|
'timeline-tree-current-thread',
|
|
4168
4204
|
'timeline-tree-group-by',
|
|
4169
4205
|
'timeline-trigger',
|
|
@@ -4213,6 +4249,7 @@ export const knownContextValues = new Set([
|
|
|
4213
4249
|
'timeline.disable',
|
|
4214
4250
|
'timeline.download-after-error',
|
|
4215
4251
|
'timeline.enable',
|
|
4252
|
+
'timeline.event-details',
|
|
4216
4253
|
'timeline.export-trace-options',
|
|
4217
4254
|
'timeline.export-trace-options.annotations-checkbox',
|
|
4218
4255
|
'timeline.export-trace-options.resource-content-checkbox',
|
|
@@ -4296,6 +4333,7 @@ export const knownContextValues = new Set([
|
|
|
4296
4333
|
'timeline.layout-shifts',
|
|
4297
4334
|
'timeline.load-from-file',
|
|
4298
4335
|
'timeline.network',
|
|
4336
|
+
'timeline.network-request-details',
|
|
4299
4337
|
'timeline.next-recording',
|
|
4300
4338
|
'timeline.overlays.candy-striped-time-range',
|
|
4301
4339
|
'timeline.overlays.cursor-timestamp-marker',
|
|
@@ -4364,6 +4402,7 @@ export const knownContextValues = new Set([
|
|
|
4364
4402
|
'timezone-id',
|
|
4365
4403
|
'timing',
|
|
4366
4404
|
'timing-info',
|
|
4405
|
+
'timing-rows',
|
|
4367
4406
|
'title',
|
|
4368
4407
|
'toggle-accessibility-tree',
|
|
4369
4408
|
'toggle-drawer-orientation',
|
|
@@ -4450,6 +4489,7 @@ export const knownContextValues = new Set([
|
|
|
4450
4489
|
'url-pattern',
|
|
4451
4490
|
'url-pattern-warning',
|
|
4452
4491
|
'usage',
|
|
4492
|
+
'usage-breakdown',
|
|
4453
4493
|
'usb',
|
|
4454
4494
|
'use-code-with-caution',
|
|
4455
4495
|
'use-custom-accepted-encodings',
|
package/mcp/mcp.ts
CHANGED
|
@@ -5,11 +5,8 @@
|
|
|
5
5
|
// Instantiating a DevTools universe requires settings from these meta files.
|
|
6
6
|
// Until settings registration is handled differently, the easiest solution is to
|
|
7
7
|
// just import relevant meta files (as long as they don't contain any UI related code)
|
|
8
|
-
import '../front_end/core/sdk/sdk-meta.js';
|
|
9
8
|
import '../front_end/models/workspace/workspace-meta.js';
|
|
10
|
-
import '../front_end/models/persistence/persistence-meta.js';
|
|
11
9
|
import '../front_end/models/logs/logs-meta.js';
|
|
12
|
-
import '../front_end/models/badges/badges-meta.js';
|
|
13
10
|
|
|
14
11
|
/**
|
|
15
12
|
* IMPORTANT! Make sure that any class that is exported here has related unit
|
package/package.json
CHANGED
|
@@ -1,178 +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 '../common/common.js';
|
|
6
|
-
import * as i18n from '../i18n/i18n.js';
|
|
7
|
-
|
|
8
|
-
const UIStrings = {
|
|
9
|
-
/**
|
|
10
|
-
* @description Title of a setting that disables WebP format.
|
|
11
|
-
*/
|
|
12
|
-
disableWebpFormat: 'Disable `WebP` format',
|
|
13
|
-
/**
|
|
14
|
-
* @description Title of a setting that enables WebP format.
|
|
15
|
-
*/
|
|
16
|
-
enableWebpFormat: 'Enable `WebP` format',
|
|
17
|
-
/**
|
|
18
|
-
* @description Title of a setting under the Console category in Settings.
|
|
19
|
-
*/
|
|
20
|
-
customFormatters: 'Custom formatters',
|
|
21
|
-
/**
|
|
22
|
-
* @description Title of a setting under the Network category.
|
|
23
|
-
*/
|
|
24
|
-
networkRequestBlocking: 'Network request blocking',
|
|
25
|
-
/**
|
|
26
|
-
* @description Title of a setting under the Network category that can be invoked through the Command Menu.
|
|
27
|
-
*/
|
|
28
|
-
enableNetworkRequestBlocking: 'Enable network request blocking',
|
|
29
|
-
/**
|
|
30
|
-
* @description Title of a setting under the Network category that can be invoked through the Command Menu.
|
|
31
|
-
*/
|
|
32
|
-
disableNetworkRequestBlocking: 'Disable network request blocking',
|
|
33
|
-
/**
|
|
34
|
-
* @description Title of a setting under the Network category that can be invoked through the Command Menu.
|
|
35
|
-
*/
|
|
36
|
-
enableCache: 'Enable cache',
|
|
37
|
-
/**
|
|
38
|
-
* @description Title of a setting under the Network category that can be invoked through the Command Menu.
|
|
39
|
-
*/
|
|
40
|
-
disableCache: 'Disable cache while DevTools is open',
|
|
41
|
-
/**
|
|
42
|
-
* @description The name of a checkbox setting in the Rendering tool. This setting
|
|
43
|
-
* emulates that the webpage is in auto dark mode.
|
|
44
|
-
*/
|
|
45
|
-
emulateAutoDarkMode: 'Emulate auto dark mode',
|
|
46
|
-
/**
|
|
47
|
-
* @description Label of a checkbox in the DevTools settings UI.
|
|
48
|
-
*/
|
|
49
|
-
enableRemoteFileLoading: 'Allow loading remote file path resources in DevTools',
|
|
50
|
-
/**
|
|
51
|
-
* @description Tooltip text for a setting that controls whether external resource can be loaded in DevTools.
|
|
52
|
-
*/
|
|
53
|
-
remoteFileLoadingInfo: 'Example resources are source maps. Disabled by default for security reasons.',
|
|
54
|
-
/**
|
|
55
|
-
* @description Tooltip text for a setting that controls the network cache. Disabling the network cache can simulate the network connections of users that are visiting a page for the first time.
|
|
56
|
-
*/
|
|
57
|
-
networkCacheExplanation:
|
|
58
|
-
'Disabling the network cache will simulate a network experience similar to a first time visitor.',
|
|
59
|
-
/**
|
|
60
|
-
* @description Title of a setting under the Console category in Settings.
|
|
61
|
-
*/
|
|
62
|
-
logXmlhttprequests: 'Log XMLHttpRequests',
|
|
63
|
-
/**
|
|
64
|
-
* @description Title of a setting under the Appearance category in Settings. When the webpage is
|
|
65
|
-
* paused by devtools, an overlay is shown on top of the page to indicate that it is paused. The
|
|
66
|
-
* overlay is a pause/unpause button and some text, which appears on top of the paused page. This
|
|
67
|
-
* setting turns off this overlay.
|
|
68
|
-
*/
|
|
69
|
-
disablePaused: 'Disable paused state overlay',
|
|
70
|
-
} as const;
|
|
71
|
-
const str_ = i18n.i18n.registerUIStrings('core/sdk/sdk-meta.ts', UIStrings);
|
|
72
|
-
const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
|
|
73
|
-
|
|
74
|
-
Common.Settings.registerSettingExtension({
|
|
75
|
-
category: Common.Settings.SettingCategory.RENDERING,
|
|
76
|
-
settingName: 'webp-format-disabled',
|
|
77
|
-
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
78
|
-
storageType: Common.Settings.SettingStorageType.SESSION,
|
|
79
|
-
options: [
|
|
80
|
-
{
|
|
81
|
-
value: true,
|
|
82
|
-
title: i18nLazyString(UIStrings.disableWebpFormat),
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
value: false,
|
|
86
|
-
title: i18nLazyString(UIStrings.enableWebpFormat),
|
|
87
|
-
},
|
|
88
|
-
],
|
|
89
|
-
defaultValue: false,
|
|
90
|
-
});
|
|
91
|
-
|
|
92
|
-
Common.Settings.registerSettingExtension({
|
|
93
|
-
category: Common.Settings.SettingCategory.CONSOLE,
|
|
94
|
-
title: i18nLazyString(UIStrings.customFormatters),
|
|
95
|
-
settingName: 'custom-formatters',
|
|
96
|
-
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
97
|
-
defaultValue: false,
|
|
98
|
-
});
|
|
99
|
-
|
|
100
|
-
Common.Settings.registerSettingExtension({
|
|
101
|
-
category: Common.Settings.SettingCategory.NETWORK,
|
|
102
|
-
title: i18nLazyString(UIStrings.networkRequestBlocking),
|
|
103
|
-
settingName: 'request-blocking-enabled',
|
|
104
|
-
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
105
|
-
storageType: Common.Settings.SettingStorageType.LOCAL,
|
|
106
|
-
defaultValue: false,
|
|
107
|
-
options: [
|
|
108
|
-
{
|
|
109
|
-
value: true,
|
|
110
|
-
title: i18nLazyString(UIStrings.enableNetworkRequestBlocking),
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
value: false,
|
|
114
|
-
title: i18nLazyString(UIStrings.disableNetworkRequestBlocking),
|
|
115
|
-
},
|
|
116
|
-
],
|
|
117
|
-
});
|
|
118
|
-
|
|
119
|
-
Common.Settings.registerSettingExtension({
|
|
120
|
-
category: Common.Settings.SettingCategory.NETWORK,
|
|
121
|
-
title: i18nLazyString(UIStrings.disableCache),
|
|
122
|
-
settingName: 'cache-disabled',
|
|
123
|
-
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
124
|
-
order: 0,
|
|
125
|
-
defaultValue: false,
|
|
126
|
-
options: [
|
|
127
|
-
{
|
|
128
|
-
value: true,
|
|
129
|
-
title: i18nLazyString(UIStrings.disableCache),
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
value: false,
|
|
133
|
-
title: i18nLazyString(UIStrings.enableCache),
|
|
134
|
-
},
|
|
135
|
-
],
|
|
136
|
-
learnMore: {
|
|
137
|
-
tooltip: i18nLazyString(UIStrings.networkCacheExplanation),
|
|
138
|
-
},
|
|
139
|
-
});
|
|
140
|
-
|
|
141
|
-
Common.Settings.registerSettingExtension({
|
|
142
|
-
category: Common.Settings.SettingCategory.RENDERING,
|
|
143
|
-
title: i18nLazyString(UIStrings.emulateAutoDarkMode),
|
|
144
|
-
settingName: 'emulate-auto-dark-mode',
|
|
145
|
-
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
146
|
-
storageType: Common.Settings.SettingStorageType.SESSION,
|
|
147
|
-
defaultValue: false,
|
|
148
|
-
});
|
|
149
|
-
|
|
150
|
-
Common.Settings.registerSettingExtension({
|
|
151
|
-
category: Common.Settings.SettingCategory.SOURCES,
|
|
152
|
-
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
153
|
-
title: i18nLazyString(UIStrings.enableRemoteFileLoading),
|
|
154
|
-
settingName: 'network.enable-remote-file-loading',
|
|
155
|
-
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
156
|
-
defaultValue: false,
|
|
157
|
-
learnMore: {
|
|
158
|
-
tooltip: i18nLazyString(UIStrings.remoteFileLoadingInfo),
|
|
159
|
-
},
|
|
160
|
-
});
|
|
161
|
-
|
|
162
|
-
Common.Settings.registerSettingExtension({
|
|
163
|
-
category: Common.Settings.SettingCategory.CONSOLE,
|
|
164
|
-
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
165
|
-
title: i18nLazyString(UIStrings.logXmlhttprequests),
|
|
166
|
-
settingName: 'monitoring-xhr-enabled',
|
|
167
|
-
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
168
|
-
defaultValue: false,
|
|
169
|
-
});
|
|
170
|
-
|
|
171
|
-
Common.Settings.registerSettingExtension({
|
|
172
|
-
category: Common.Settings.SettingCategory.APPEARANCE,
|
|
173
|
-
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
174
|
-
title: i18nLazyString(UIStrings.disablePaused),
|
|
175
|
-
settingName: 'disable-paused-state-overlay',
|
|
176
|
-
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
177
|
-
defaultValue: false,
|
|
178
|
-
});
|
|
@@ -1,27 +0,0 @@
|
|
|
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
|
-
import * as i18n from '../../core/i18n/i18n.js';
|
|
7
|
-
|
|
8
|
-
const UIStrings = {
|
|
9
|
-
/**
|
|
10
|
-
* @description Label for a checkbox in the settings UI. Allows developers to opt-in/opt-out
|
|
11
|
-
* of receiving Google Developer Program (GDP) badges based on their activity in Chrome DevTools.
|
|
12
|
-
*/
|
|
13
|
-
earnBadges: 'Earn badges',
|
|
14
|
-
} as const;
|
|
15
|
-
|
|
16
|
-
const str_ = i18n.i18n.registerUIStrings('models/badges/badges-meta.ts', UIStrings);
|
|
17
|
-
const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
|
|
18
|
-
|
|
19
|
-
Common.Settings.registerSettingExtension({
|
|
20
|
-
category: Common.Settings.SettingCategory.ACCOUNT,
|
|
21
|
-
settingName: 'receive-gdp-badges',
|
|
22
|
-
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
23
|
-
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
24
|
-
title: i18nLazyString(UIStrings.earnBadges),
|
|
25
|
-
defaultValue: false,
|
|
26
|
-
reloadRequired: true,
|
|
27
|
-
});
|
|
@@ -1,69 +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 a setting under the Persistence category in Settings.
|
|
11
|
-
*/
|
|
12
|
-
localOverrides: 'Local overrides',
|
|
13
|
-
/**
|
|
14
|
-
* @description A tag of enable local overrides setting that can be searched in the command menu.
|
|
15
|
-
*/
|
|
16
|
-
interception: 'interception',
|
|
17
|
-
/**
|
|
18
|
-
* @description A tag of enable local overrides setting that can be searched in the command menu.
|
|
19
|
-
*/
|
|
20
|
-
override: 'override',
|
|
21
|
-
/**
|
|
22
|
-
* @description A tag of group network by frame setting that can be searched in the command menu.
|
|
23
|
-
*/
|
|
24
|
-
network: 'network',
|
|
25
|
-
/**
|
|
26
|
-
* @description A tag of enable local overrides setting that can be searched in the command menu.
|
|
27
|
-
*/
|
|
28
|
-
rewrite: 'rewrite',
|
|
29
|
-
/**
|
|
30
|
-
* @description A tag of enable local overrides setting that can be searched in the command menu.
|
|
31
|
-
* Noun for network request.
|
|
32
|
-
*/
|
|
33
|
-
request: 'request',
|
|
34
|
-
/**
|
|
35
|
-
* @description Title of an option under the Persistence category that can be invoked through the command menu.
|
|
36
|
-
*/
|
|
37
|
-
enableOverrideNetworkRequests: 'Enable override network requests',
|
|
38
|
-
/**
|
|
39
|
-
* @description Title of an option under the Persistence category that can be invoked through the command menu.
|
|
40
|
-
*/
|
|
41
|
-
disableOverrideNetworkRequests: 'Disable override network requests',
|
|
42
|
-
} as const;
|
|
43
|
-
const str_ = i18n.i18n.registerUIStrings('models/persistence/persistence-meta.ts', UIStrings);
|
|
44
|
-
const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
|
|
45
|
-
|
|
46
|
-
Common.Settings.registerSettingExtension({
|
|
47
|
-
category: Common.Settings.SettingCategory.PERSISTENCE,
|
|
48
|
-
title: i18nLazyString(UIStrings.localOverrides),
|
|
49
|
-
settingName: 'persistence-network-overrides-enabled',
|
|
50
|
-
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
51
|
-
defaultValue: false,
|
|
52
|
-
tags: [
|
|
53
|
-
i18nLazyString(UIStrings.interception),
|
|
54
|
-
i18nLazyString(UIStrings.override),
|
|
55
|
-
i18nLazyString(UIStrings.network),
|
|
56
|
-
i18nLazyString(UIStrings.rewrite),
|
|
57
|
-
i18nLazyString(UIStrings.request),
|
|
58
|
-
],
|
|
59
|
-
options: [
|
|
60
|
-
{
|
|
61
|
-
value: true,
|
|
62
|
-
title: i18nLazyString(UIStrings.enableOverrideNetworkRequests),
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
value: false,
|
|
66
|
-
title: i18nLazyString(UIStrings.disableOverrideNetworkRequests),
|
|
67
|
-
},
|
|
68
|
-
],
|
|
69
|
-
});
|