chrome-devtools-frontend 1.0.1380117 → 1.0.1386602
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/.stylelintrc.json +2 -1
- package/config/gni/devtools_grd_files.gni +25 -4
- package/config/gni/devtools_image_files.gni +2 -0
- package/docs/README.md +4 -0
- package/docs/contributing/issues.md +13 -10
- package/docs/get_the_code.md +4 -1
- package/docs/policy/README.md +6 -0
- package/docs/policy/slow-close.md +52 -0
- package/docs/styleguide/ux/README.md +1 -0
- package/docs/styleguide/ux/numbers.md +106 -0
- package/front_end/Images/src/cookie_off.svg +3 -0
- package/front_end/Images/src/domain.svg +3 -0
- package/front_end/core/common/Color.ts +3 -3
- package/front_end/core/common/SettingRegistration.ts +7 -0
- package/front_end/core/host/AidaClient.ts +3 -3
- package/front_end/core/host/InspectorFrontendHostAPI.ts +0 -1
- package/front_end/core/host/UserMetrics.ts +0 -8
- package/front_end/core/i18n/locales/af.json +1031 -887
- package/front_end/core/i18n/locales/am.json +1036 -892
- package/front_end/core/i18n/locales/ar.json +1039 -895
- package/front_end/core/i18n/locales/as.json +1032 -888
- package/front_end/core/i18n/locales/az.json +1034 -890
- package/front_end/core/i18n/locales/be.json +1031 -887
- package/front_end/core/i18n/locales/bg.json +1031 -887
- package/front_end/core/i18n/locales/bn.json +1033 -889
- package/front_end/core/i18n/locales/bs.json +1036 -892
- package/front_end/core/i18n/locales/ca.json +1031 -887
- package/front_end/core/i18n/locales/cs.json +1030 -886
- package/front_end/core/i18n/locales/cy.json +1032 -888
- package/front_end/core/i18n/locales/da.json +1031 -887
- package/front_end/core/i18n/locales/de.json +1033 -889
- package/front_end/core/i18n/locales/el.json +1031 -887
- package/front_end/core/i18n/locales/en-GB.json +1033 -889
- package/front_end/core/i18n/locales/es-419.json +1029 -885
- package/front_end/core/i18n/locales/es.json +1032 -888
- package/front_end/core/i18n/locales/et.json +1033 -889
- package/front_end/core/i18n/locales/eu.json +1031 -887
- package/front_end/core/i18n/locales/fa.json +1035 -891
- package/front_end/core/i18n/locales/fi.json +1035 -891
- package/front_end/core/i18n/locales/fil.json +1034 -890
- package/front_end/core/i18n/locales/fr-CA.json +1031 -887
- package/front_end/core/i18n/locales/fr.json +1049 -905
- package/front_end/core/i18n/locales/gl.json +1032 -888
- package/front_end/core/i18n/locales/gu.json +1035 -891
- package/front_end/core/i18n/locales/he.json +1031 -887
- package/front_end/core/i18n/locales/hi.json +1034 -890
- package/front_end/core/i18n/locales/hr.json +1031 -887
- package/front_end/core/i18n/locales/hu.json +1033 -889
- package/front_end/core/i18n/locales/hy.json +1046 -902
- package/front_end/core/i18n/locales/id.json +1023 -879
- package/front_end/core/i18n/locales/is.json +1032 -888
- package/front_end/core/i18n/locales/it.json +1031 -887
- package/front_end/core/i18n/locales/ja.json +1042 -898
- package/front_end/core/i18n/locales/ka.json +1034 -890
- package/front_end/core/i18n/locales/kk.json +1035 -891
- package/front_end/core/i18n/locales/km.json +1035 -891
- package/front_end/core/i18n/locales/kn.json +1036 -892
- package/front_end/core/i18n/locales/ko.json +1031 -887
- package/front_end/core/i18n/locales/ky.json +1032 -888
- package/front_end/core/i18n/locales/lo.json +1030 -886
- package/front_end/core/i18n/locales/lt.json +1032 -888
- package/front_end/core/i18n/locales/lv.json +1032 -888
- package/front_end/core/i18n/locales/mk.json +1032 -888
- package/front_end/core/i18n/locales/ml.json +1033 -889
- package/front_end/core/i18n/locales/mn.json +1034 -890
- package/front_end/core/i18n/locales/mr.json +1035 -891
- package/front_end/core/i18n/locales/ms.json +1033 -889
- package/front_end/core/i18n/locales/my.json +1033 -889
- package/front_end/core/i18n/locales/ne.json +1036 -892
- package/front_end/core/i18n/locales/nl.json +1033 -889
- package/front_end/core/i18n/locales/no.json +1036 -892
- package/front_end/core/i18n/locales/or.json +1043 -899
- package/front_end/core/i18n/locales/pa.json +1030 -886
- package/front_end/core/i18n/locales/pl.json +1032 -888
- package/front_end/core/i18n/locales/pt-PT.json +1033 -889
- package/front_end/core/i18n/locales/pt.json +1033 -889
- package/front_end/core/i18n/locales/ro.json +1029 -885
- package/front_end/core/i18n/locales/ru.json +1026 -882
- package/front_end/core/i18n/locales/si.json +1031 -887
- package/front_end/core/i18n/locales/sk.json +1033 -889
- package/front_end/core/i18n/locales/sl.json +1031 -887
- package/front_end/core/i18n/locales/sq.json +1061 -917
- package/front_end/core/i18n/locales/sr-Latn.json +1033 -889
- package/front_end/core/i18n/locales/sr.json +1033 -889
- package/front_end/core/i18n/locales/sv.json +1031 -887
- package/front_end/core/i18n/locales/sw.json +1033 -889
- package/front_end/core/i18n/locales/ta.json +1058 -914
- package/front_end/core/i18n/locales/te.json +1037 -893
- package/front_end/core/i18n/locales/th.json +1032 -888
- package/front_end/core/i18n/locales/tr.json +1031 -887
- package/front_end/core/i18n/locales/uk.json +1030 -886
- package/front_end/core/i18n/locales/ur.json +1031 -887
- package/front_end/core/i18n/locales/uz.json +1023 -879
- package/front_end/core/i18n/locales/vi.json +1032 -888
- package/front_end/core/i18n/locales/zh-HK.json +1032 -888
- package/front_end/core/i18n/locales/zh-TW.json +1032 -888
- package/front_end/core/i18n/locales/zh.json +1033 -889
- package/front_end/core/i18n/locales/zu.json +1032 -888
- package/front_end/core/root/Runtime.ts +0 -1
- package/front_end/core/sdk/NetworkManager.test.ts +50 -0
- package/front_end/core/sdk/NetworkManager.ts +6 -4
- package/front_end/core/sdk/SourceMap.test.ts +5 -5
- package/front_end/core/sdk/SourceMapScopeChainEntry.test.ts +7 -2
- package/front_end/core/sdk/SourceMapScopeChainEntry.ts +2 -2
- package/front_end/core/sdk/SourceMapScopes.test.ts +112 -45
- package/front_end/core/sdk/SourceMapScopes.ts +39 -14
- package/front_end/core/sdk/SourceMapScopesInfo.test.ts +51 -50
- package/front_end/core/sdk/SourceMapScopesInfo.ts +1 -1
- package/front_end/core/sdk/sdk-meta.ts +27 -0
- package/front_end/devtools_compatibility.js +0 -1
- package/front_end/entrypoints/devtools_app/devtools_app.ts +1 -0
- package/front_end/entrypoints/inspector_main/renderingOptions.css +1 -1
- package/front_end/entrypoints/main/ExecutionContextSelector.test.ts +13 -3
- package/front_end/entrypoints/main/ExecutionContextSelector.ts +23 -1
- package/front_end/entrypoints/main/MainImpl.ts +0 -5
- package/front_end/generated/Deprecation.ts +0 -15
- package/front_end/generated/InspectorBackendCommands.js +1 -1
- package/front_end/generated/SupportedCSSProperties.js +0 -40
- package/front_end/generated/protocol.ts +1 -0
- package/front_end/models/bindings/IgnoreListManager.ts +25 -2
- package/front_end/models/crux-manager/CrUXManager.test.ts +25 -6
- package/front_end/models/crux-manager/CrUXManager.ts +23 -4
- package/front_end/models/extensions/ExtensionServer.test.ts +14 -0
- package/front_end/models/extensions/ExtensionServer.ts +28 -15
- package/front_end/models/issues_manager/CookieIssue.ts +79 -2
- package/front_end/models/issues_manager/IssuesManager.ts +1 -1
- package/front_end/models/issues_manager/descriptions/cookieExcludePortMismatch.md +8 -0
- package/front_end/models/issues_manager/descriptions/cookieExcludeSchemeMismatch.md +7 -0
- package/front_end/models/javascript_metadata/NativeFunctions.js +14 -4
- package/front_end/models/persistence/EditFileSystemView.ts +2 -2
- package/front_end/models/persistence/editFileSystemView.css +6 -3
- package/front_end/models/persistence/workspaceSettingsTab.css +2 -2
- package/front_end/models/trace/extras/Metadata.test.ts +35 -2
- package/front_end/models/trace/extras/Metadata.ts +24 -5
- package/front_end/models/trace/extras/TraceTree.ts +28 -18
- package/front_end/models/trace/extras/URLForEntry.ts +6 -5
- package/front_end/models/trace/handlers/ImagePaintingHandler.ts +12 -0
- package/front_end/models/trace/helpers/Timing.ts +8 -0
- package/front_end/models/trace/insights/CLSCulprits.ts +11 -3
- package/front_end/models/trace/insights/DocumentLatency.ts +16 -3
- package/front_end/models/trace/insights/FontDisplay.ts +10 -3
- package/front_end/models/trace/insights/ImageDelivery.test.ts +98 -0
- package/front_end/models/trace/insights/ImageDelivery.ts +183 -0
- package/front_end/models/trace/insights/InteractionToNextPaint.ts +9 -3
- package/front_end/models/trace/insights/LCPDiscovery.ts +24 -3
- package/front_end/models/trace/insights/LCPPhases.ts +25 -3
- package/front_end/models/trace/insights/Models.ts +1 -0
- package/front_end/models/trace/insights/RenderBlocking.ts +10 -2
- package/front_end/models/trace/insights/SlowCSSSelector.ts +10 -3
- package/front_end/models/trace/insights/ThirdParties.ts +11 -3
- package/front_end/models/trace/insights/Viewport.ts +16 -3
- package/front_end/models/trace/insights/types.ts +13 -2
- package/front_end/models/trace/types/File.ts +7 -0
- package/front_end/models/trace/types/TraceEvents.ts +9 -2
- package/front_end/panels/animation/AnimationTimeline.ts +2 -4
- package/front_end/panels/application/ApplicationPanelSidebar.test.ts +0 -5
- package/front_end/panels/application/ApplicationPanelSidebar.ts +15 -21
- package/front_end/panels/application/IndexedDBViews.ts +4 -1
- package/front_end/panels/application/ServiceWorkerCacheViews.ts +4 -1
- package/front_end/panels/application/StorageView.test.ts +1 -1
- package/front_end/panels/application/resourcesSidebar.css +1 -1
- package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +1 -1
- package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +1 -1
- package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +1 -1
- package/front_end/panels/browser_debugger/categorizedBreakpointsSidebarPane.css +1 -1
- package/front_end/panels/browser_debugger/xhrBreakpointsSidebarPane.css +1 -1
- package/front_end/panels/console/ConsoleViewMessage.test.ts +25 -0
- package/front_end/panels/console/ConsoleViewMessage.ts +23 -0
- package/front_end/panels/coverage/CoverageListView.ts +1 -1
- package/front_end/panels/developer_resources/DeveloperResourcesListView.ts +1 -1
- package/front_end/panels/elements/ClassesPaneWidget.ts +1 -1
- package/front_end/panels/elements/ElementStatePaneWidget.test.ts +3 -2
- package/front_end/panels/elements/ElementStatePaneWidget.ts +7 -2
- package/front_end/panels/elements/ElementsSidebarPane.ts +3 -3
- package/front_end/panels/elements/ElementsTreeElement.ts +1 -0
- package/front_end/panels/elements/LayersWidget.ts +1 -1
- package/front_end/panels/elements/PropertyMatchers.test.ts +7 -0
- package/front_end/panels/elements/PropertyMatchers.ts +3 -0
- package/front_end/panels/elements/classesPaneWidget.css +1 -1
- package/front_end/panels/emulation/DeviceModeView.ts +1 -1
- package/front_end/panels/emulation/DeviceModeWrapper.ts +1 -1
- package/front_end/panels/emulation/InspectedPagePlaceholder.ts +1 -1
- package/front_end/panels/freestyler/AiAgent.test.ts +319 -50
- package/front_end/panels/freestyler/AiAgent.ts +193 -141
- package/front_end/panels/freestyler/AiHistoryStorage.test.ts +159 -0
- package/front_end/panels/freestyler/AiHistoryStorage.ts +73 -0
- package/front_end/panels/freestyler/DrJonesFileAgent.test.ts +14 -15
- package/front_end/panels/freestyler/DrJonesFileAgent.ts +3 -14
- package/front_end/panels/freestyler/DrJonesNetworkAgent.test.ts +14 -13
- package/front_end/panels/freestyler/DrJonesNetworkAgent.ts +3 -3
- package/front_end/panels/freestyler/DrJonesPerformanceAgent.test.ts +38 -36
- package/front_end/panels/freestyler/DrJonesPerformanceAgent.ts +3 -14
- package/front_end/panels/freestyler/FreestylerAgent.test.ts +195 -14
- package/front_end/panels/freestyler/FreestylerAgent.ts +13 -18
- package/front_end/panels/freestyler/FreestylerPanel.test.ts +71 -0
- package/front_end/panels/freestyler/FreestylerPanel.ts +99 -74
- package/front_end/panels/freestyler/components/FreestylerChatUi.ts +128 -29
- package/front_end/panels/freestyler/components/UserActionRow.ts +1 -0
- package/front_end/panels/freestyler/components/freestylerChatUi.css +21 -1
- package/front_end/panels/freestyler/components/userActionRow.css +2 -1
- package/front_end/panels/freestyler/freestyler.ts +1 -0
- package/front_end/panels/issues/IssueAggregator.test.ts +50 -0
- package/front_end/panels/issues/IssueAggregator.ts +10 -10
- package/front_end/panels/issues/issuesTree.css +1 -1
- package/front_end/panels/layer_viewer/LayerDetailsView.ts +1 -1
- package/front_end/panels/layer_viewer/Layers3DView.ts +1 -1
- package/front_end/panels/layer_viewer/PaintProfilerView.ts +1 -1
- package/front_end/panels/layers/LayersPanel.ts +1 -1
- package/front_end/panels/lighthouse/lighthouseStartView.css +1 -1
- package/front_end/panels/media/TickingFlameChart.ts +1 -1
- package/front_end/panels/mobile_throttling/ThrottlingSettingsTab.ts +1 -1
- package/front_end/panels/network/BlockedURLsPane.ts +1 -1
- package/front_end/panels/network/NetworkDataGridNode.ts +1 -0
- package/front_end/panels/network/NetworkLogView.test.ts +1 -1
- package/front_end/panels/network/NetworkPanel.ts +40 -32
- package/front_end/panels/network/NetworkWaterfallColumn.ts +1 -1
- package/front_end/panels/profiler/HeapProfileView.ts +9 -9
- package/front_end/panels/profiler/HeapTimelineOverview.ts +1 -1
- package/front_end/panels/profiler/IsolateSelector.ts +1 -1
- package/front_end/panels/profiler/LiveHeapProfileView.ts +3 -1
- package/front_end/panels/profiler/ProfileFlameChartDataProvider.ts +3 -3
- package/front_end/panels/profiler/ProfileView.ts +2 -2
- package/front_end/panels/profiler/profileLauncherView.css +1 -1
- package/front_end/panels/profiler/profilesSidebarTree.css +1 -1
- package/front_end/panels/recorder/recorderController.css +1 -1
- package/front_end/panels/security/CookieControlsTreeElement.ts +18 -0
- package/front_end/panels/security/CookieControlsView.test.ts +29 -0
- package/front_end/panels/security/CookieControlsView.ts +265 -0
- package/front_end/panels/security/CookieReportView.test.ts +157 -0
- package/front_end/panels/security/CookieReportView.ts +208 -12
- package/front_end/panels/security/SecurityPanel.ts +5 -3
- package/front_end/panels/security/SecurityPanelSidebar.ts +6 -1
- package/front_end/panels/security/cookieControlsView.css +101 -0
- package/front_end/panels/security/cookieReportView.css +26 -3
- package/front_end/panels/security/security.ts +4 -0
- package/front_end/panels/security/sidebar.css +1 -1
- package/front_end/panels/settings/KeybindsSettingsTab.ts +3 -2
- package/front_end/panels/settings/SettingsScreen.ts +5 -1
- package/front_end/panels/settings/frameworkIgnoreListSettingsTab.css +1 -1
- package/front_end/panels/settings/keybindsSettingsTab.css +6 -1
- package/front_end/panels/settings/settings-meta.ts +3 -1
- package/front_end/panels/settings/settingsScreen.css +10 -0
- package/front_end/panels/sources/CallStackSidebarPane.ts +2 -2
- package/front_end/panels/sources/NavigatorView.ts +1 -0
- package/front_end/panels/sources/navigatorTree.css +1 -1
- package/front_end/panels/sources/sourcesPanel.css +2 -2
- package/front_end/panels/timeline/AnimationsTrackAppender.ts +1 -7
- package/front_end/panels/timeline/AppenderUtils.ts +1 -1
- package/front_end/panels/timeline/CompatibilityTracksAppender.ts +38 -41
- package/front_end/panels/timeline/ExtensionTrackAppender.ts +4 -13
- package/front_end/panels/timeline/InteractionsTrackAppender.ts +3 -4
- package/front_end/panels/timeline/LayoutShiftsTrackAppender.ts +6 -12
- package/front_end/panels/timeline/ServerTimingsTrackAppender.ts +1 -10
- package/front_end/panels/timeline/ThreadAppender.ts +9 -12
- package/front_end/panels/timeline/TimelineController.ts +1 -1
- package/front_end/panels/timeline/TimelineDetailsView.test.ts +3 -2
- package/front_end/panels/timeline/TimelineDetailsView.ts +18 -17
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +55 -36
- package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +1 -1
- package/front_end/panels/timeline/TimelineFlameChartView.ts +33 -14
- package/front_end/panels/timeline/TimelineHistoryManager.test.ts +20 -15
- package/front_end/panels/timeline/TimelineHistoryManager.ts +46 -58
- package/front_end/panels/timeline/TimelineLayersView.ts +1 -1
- package/front_end/panels/timeline/TimelineLoader.ts +16 -0
- package/front_end/panels/timeline/TimelineMiniMap.ts +2 -2
- package/front_end/panels/timeline/TimelinePaintProfilerView.ts +1 -1
- package/front_end/panels/timeline/TimelinePanel.ts +145 -28
- package/front_end/panels/timeline/TimelineTreeView.ts +65 -16
- package/front_end/panels/timeline/TimelineUIUtils.ts +44 -0
- package/front_end/panels/timeline/TimingsTrackAppender.ts +6 -13
- package/front_end/panels/timeline/components/FieldSettingsDialog.test.ts +1 -0
- package/front_end/panels/timeline/components/FieldSettingsDialog.ts +6 -1
- package/front_end/panels/timeline/components/LiveMetricsView.test.ts +12 -0
- package/front_end/panels/timeline/components/LiveMetricsView.ts +13 -18
- package/front_end/panels/timeline/components/Sidebar.ts +1 -4
- package/front_end/panels/timeline/components/SidebarAnnotationsTab.test.ts +1 -1
- package/front_end/panels/timeline/components/SidebarInsightsTab.ts +1 -1
- package/front_end/panels/timeline/components/SidebarSingleInsightSet.test.ts +21 -35
- package/front_end/panels/timeline/components/SidebarSingleInsightSet.ts +16 -9
- package/front_end/panels/timeline/components/TimelineSummary.test.ts +75 -0
- package/front_end/panels/timeline/components/TimelineSummary.ts +101 -0
- package/front_end/panels/timeline/components/Utils.test.ts +49 -0
- package/front_end/panels/timeline/components/Utils.ts +2 -2
- package/front_end/panels/timeline/components/components.ts +2 -0
- package/front_end/panels/timeline/components/insights/BaseInsightComponent.test.ts +84 -0
- package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +291 -0
- package/front_end/panels/timeline/components/insights/CLSCulprits.ts +17 -41
- package/front_end/panels/timeline/components/insights/DocumentLatency.ts +28 -46
- package/front_end/panels/timeline/components/insights/EventRef.ts +70 -2
- package/front_end/panels/timeline/components/insights/FontDisplay.ts +28 -46
- package/front_end/panels/timeline/components/insights/Helpers.ts +5 -208
- package/front_end/panels/timeline/components/insights/ImageDelivery.ts +142 -0
- package/front_end/panels/timeline/components/insights/InteractionToNextPaint.ts +30 -53
- package/front_end/panels/timeline/components/insights/LCPDiscovery.ts +36 -75
- package/front_end/panels/timeline/components/insights/LCPPhases.ts +15 -49
- package/front_end/panels/timeline/components/insights/RenderBlocking.ts +27 -44
- package/front_end/panels/timeline/components/insights/SidebarInsight.ts +3 -197
- package/front_end/panels/timeline/components/insights/SlowCSSSelector.ts +51 -74
- package/front_end/panels/timeline/components/insights/Table.ts +6 -5
- package/front_end/panels/timeline/components/insights/ThirdParties.ts +41 -61
- package/front_end/panels/timeline/components/insights/Viewport.ts +20 -31
- package/front_end/panels/timeline/components/insights/{sidebarInsight.css → baseInsightComponent.css} +9 -9
- package/front_end/panels/timeline/components/insights/insights.ts +4 -0
- package/front_end/panels/timeline/components/insights/types.ts +0 -7
- package/front_end/panels/timeline/components/liveMetricsView.css +5 -5
- package/front_end/panels/timeline/components/timelineSummary.css +67 -0
- package/front_end/panels/timeline/docs/flame_chart_migration.md +1 -1
- package/front_end/panels/timeline/fixtures/traces/README.md +4 -0
- package/front_end/panels/timeline/fixtures/traces/image-delivery.json.gz +0 -0
- package/front_end/panels/timeline/overlays/OverlaysImpl.ts +22 -0
- package/front_end/panels/timeline/timeline-meta.ts +1 -1
- package/front_end/panels/timeline/timelineFlamechartPopover.css +14 -4
- package/front_end/panels/timeline/timelineHistoryManager.css +7 -3
- package/front_end/panels/timeline/timelinePanel.css +0 -1
- package/front_end/panels/timeline/track_appenders/CompatibilityTracksAppender.test.ts +5 -5
- package/front_end/panels/timeline/track_appenders/ExtensionTrackAppender.test.ts +5 -6
- package/front_end/panels/timeline/track_appenders/LayoutShiftsTrackAppender.test.ts +11 -2
- package/front_end/panels/timeline/track_appenders/ServerTimingsTrackAppender.test.ts +0 -9
- package/front_end/panels/timeline/track_appenders/ThreadAppender.test.ts +37 -44
- package/front_end/panels/timeline/track_appenders/TimingsTrackAppender.test.ts +44 -30
- package/front_end/panels/timeline/utils/EntryName.ts +1 -2
- package/front_end/panels/timeline/utils/Helpers.ts +19 -0
- package/front_end/panels/timeline/utils/IgnoreList.test.ts +52 -0
- package/front_end/panels/timeline/utils/IgnoreList.ts +68 -7
- package/front_end/panels/timeline/utils/SourceMapsResolver.ts +2 -0
- package/front_end/panels/webauthn/webauthnPane.css +1 -1
- package/front_end/panels/whats_new/ReleaseNote.test.ts +90 -0
- package/front_end/panels/whats_new/ReleaseNoteText.ts +52 -0
- package/front_end/panels/whats_new/ReleaseNoteView.ts +157 -0
- package/front_end/panels/whats_new/WhatsNewImpl.ts +102 -0
- package/front_end/panels/whats_new/releaseNoteView.css +121 -0
- package/front_end/panels/whats_new/resources/WNDT.md +6 -0
- package/front_end/panels/whats_new/resources/whatsnew.avif +0 -0
- package/front_end/panels/whats_new/whats_new-meta.ts +142 -0
- package/front_end/panels/whats_new/whats_new.ts +13 -0
- package/front_end/services/puppeteer/PuppeteerConnection.ts +4 -3
- package/front_end/testing/EnvironmentHelpers.ts +1 -2
- package/front_end/testing/SourceMapEncoder.ts +27 -11
- package/front_end/testing/TraceHelpers.ts +2 -1
- package/front_end/testing/TraceLoader.ts +6 -2
- package/front_end/third_party/lighthouse/README.chromium +2 -2
- package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +1380 -1369
- package/front_end/third_party/lighthouse/locales/ar-XB.json +88 -85
- package/front_end/third_party/lighthouse/locales/ar.json +98 -95
- package/front_end/third_party/lighthouse/locales/bg.json +88 -85
- package/front_end/third_party/lighthouse/locales/ca.json +91 -88
- package/front_end/third_party/lighthouse/locales/cs.json +91 -88
- package/front_end/third_party/lighthouse/locales/da.json +94 -91
- package/front_end/third_party/lighthouse/locales/de.json +92 -89
- package/front_end/third_party/lighthouse/locales/el.json +92 -89
- package/front_end/third_party/lighthouse/locales/en-GB.json +89 -86
- package/front_end/third_party/lighthouse/locales/en-US.json +23 -20
- package/front_end/third_party/lighthouse/locales/en-XA.json +88 -85
- package/front_end/third_party/lighthouse/locales/en-XL.json +23 -20
- package/front_end/third_party/lighthouse/locales/es-419.json +92 -89
- package/front_end/third_party/lighthouse/locales/es.json +91 -88
- package/front_end/third_party/lighthouse/locales/fi.json +92 -89
- package/front_end/third_party/lighthouse/locales/fil.json +93 -90
- package/front_end/third_party/lighthouse/locales/fr.json +94 -91
- package/front_end/third_party/lighthouse/locales/he.json +97 -94
- package/front_end/third_party/lighthouse/locales/hi.json +92 -89
- package/front_end/third_party/lighthouse/locales/hr.json +90 -87
- package/front_end/third_party/lighthouse/locales/hu.json +90 -87
- package/front_end/third_party/lighthouse/locales/id.json +91 -88
- package/front_end/third_party/lighthouse/locales/it.json +90 -87
- package/front_end/third_party/lighthouse/locales/ja.json +90 -87
- package/front_end/third_party/lighthouse/locales/ko.json +90 -87
- package/front_end/third_party/lighthouse/locales/lt.json +90 -87
- package/front_end/third_party/lighthouse/locales/lv.json +91 -88
- package/front_end/third_party/lighthouse/locales/nl.json +90 -87
- package/front_end/third_party/lighthouse/locales/no.json +92 -89
- package/front_end/third_party/lighthouse/locales/pl.json +90 -87
- package/front_end/third_party/lighthouse/locales/pt-PT.json +111 -108
- package/front_end/third_party/lighthouse/locales/pt.json +97 -94
- package/front_end/third_party/lighthouse/locales/ro.json +94 -91
- package/front_end/third_party/lighthouse/locales/ru.json +93 -90
- package/front_end/third_party/lighthouse/locales/sk.json +93 -90
- package/front_end/third_party/lighthouse/locales/sl.json +91 -88
- package/front_end/third_party/lighthouse/locales/sr-Latn.json +91 -88
- package/front_end/third_party/lighthouse/locales/sr.json +91 -88
- package/front_end/third_party/lighthouse/locales/sv.json +92 -89
- package/front_end/third_party/lighthouse/locales/ta.json +101 -98
- package/front_end/third_party/lighthouse/locales/te.json +92 -89
- package/front_end/third_party/lighthouse/locales/th.json +95 -92
- package/front_end/third_party/lighthouse/locales/tr.json +91 -88
- package/front_end/third_party/lighthouse/locales/uk.json +93 -90
- package/front_end/third_party/lighthouse/locales/vi.json +95 -92
- package/front_end/third_party/lighthouse/locales/zh-HK.json +92 -89
- package/front_end/third_party/lighthouse/locales/zh-TW.json +98 -95
- package/front_end/third_party/lighthouse/locales/zh.json +96 -93
- package/front_end/third_party/puppeteer/README.chromium +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts +8 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.js +3 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPRequest.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPRequest.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts +3 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.js +10 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.js +7 -0
- 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/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 +3 -0
- 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/HTTPResponse.d.ts +1 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPResponse.js +4 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPResponse.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 +24 -12
- 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/cdp/Page.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js +3 -0
- 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/common/ConnectOptions.d.ts +5 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConnectOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DownloadBehavior.d.ts +30 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DownloadBehavior.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DownloadBehavior.js +8 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DownloadBehavior.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/common.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/common.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.js +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/BrowserLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.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/es5-iife/puppeteer-core-browser.d.ts +49 -0
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +118 -88
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts +8 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.js +3 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/HTTPRequest.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/HTTPRequest.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts +3 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.js +10 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.js +7 -0
- 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/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 +3 -0
- 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/HTTPResponse.d.ts +1 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPResponse.js +4 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPResponse.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 +24 -12
- 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/cdp/Page.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js +3 -0
- 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/common/ConnectOptions.d.ts +5 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DownloadBehavior.d.ts +30 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DownloadBehavior.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DownloadBehavior.js +7 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DownloadBehavior.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/common.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/common.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.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/types.d.ts +49 -0
- package/front_end/third_party/puppeteer/package/package.json +3 -3
- package/front_end/third_party/puppeteer/package/src/api/Browser.ts +8 -0
- package/front_end/third_party/puppeteer/package/src/api/Frame.ts +3 -1
- package/front_end/third_party/puppeteer/package/src/api/HTTPRequest.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/api/Page.ts +5 -0
- package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +4 -0
- package/front_end/third_party/puppeteer/package/src/cdp/Browser.ts +11 -3
- package/front_end/third_party/puppeteer/package/src/cdp/BrowserConnector.ts +2 -0
- package/front_end/third_party/puppeteer/package/src/cdp/BrowserContext.ts +11 -0
- package/front_end/third_party/puppeteer/package/src/cdp/HTTPRequest.ts +4 -0
- package/front_end/third_party/puppeteer/package/src/cdp/HTTPResponse.ts +3 -5
- package/front_end/third_party/puppeteer/package/src/cdp/NetworkManager.ts +34 -17
- package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +4 -0
- package/front_end/third_party/puppeteer/package/src/common/ConnectOptions.ts +5 -0
- package/front_end/third_party/puppeteer/package/src/common/DownloadBehavior.ts +31 -0
- package/front_end/third_party/puppeteer/package/src/common/common.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/generated/version.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +2 -0
- package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
- package/front_end/third_party/puppeteer/puppeteer-tsconfig.json +1 -0
- package/front_end/ui/components/data_grid/DataGridControllerIntegrator.ts +4 -1
- package/front_end/ui/components/dialogs/ButtonDialog.test.ts +78 -0
- package/front_end/ui/components/dialogs/ButtonDialog.ts +131 -0
- package/front_end/ui/components/dialogs/Dialog.test.ts +43 -0
- package/front_end/ui/components/dialogs/Dialog.ts +64 -2
- package/front_end/ui/components/dialogs/ShortcutDialog.test.ts +15 -1
- package/front_end/ui/components/dialogs/ShortcutDialog.ts +28 -20
- package/front_end/ui/components/dialogs/buttonDialog.css +9 -0
- package/front_end/ui/components/dialogs/dialog.css +15 -0
- package/front_end/ui/components/dialogs/dialogs.ts +2 -0
- package/front_end/ui/components/dialogs/shortcutDialog.css +34 -6
- package/front_end/ui/components/docs/dialog/button_dialog.html +28 -0
- package/front_end/ui/components/docs/dialog/button_dialog.ts +29 -0
- package/front_end/ui/components/docs/performance_panel/basic.ts +1 -1
- package/front_end/ui/components/docs/performance_panel/timeline_history_manager.ts +6 -4
- package/front_end/ui/components/floating_button/FloatingButton.ts +3 -2
- package/front_end/ui/components/icon_button/fileSourceIcon.css +7 -3
- package/front_end/ui/components/issue_counter/IssueCounter.ts +15 -2
- package/front_end/ui/components/legacy_wrapper/LegacyWrapper.ts +1 -1
- package/front_end/ui/components/markdown_view/MarkdownView.ts +15 -0
- package/front_end/ui/components/markdown_view/markdownView.css +1 -1
- package/front_end/ui/components/render_coordinator/RenderCoordinator.ts +24 -18
- package/front_end/ui/components/switch/SwitchImpl.ts +2 -2
- package/front_end/ui/legacy/Infobar.ts +6 -0
- package/front_end/ui/legacy/InspectorView.ts +40 -0
- package/front_end/ui/legacy/ListWidget.ts +4 -2
- package/front_end/ui/legacy/ThrottledWidget.ts +2 -2
- package/front_end/ui/legacy/Toolbar.ts +3 -3
- package/front_end/ui/legacy/UIUtils.ts +8 -6
- package/front_end/ui/legacy/Widget.ts +32 -0
- package/front_end/ui/legacy/components/data_grid/DataGrid.test.ts +6 -9
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +35 -34
- package/front_end/ui/legacy/components/data_grid/ViewportDataGrid.ts +1 -1
- package/front_end/ui/legacy/components/perf_ui/ChartViewport.ts +2 -2
- package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +1 -1
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +32 -25
- package/front_end/ui/legacy/components/perf_ui/TimelineOverviewCalculator.ts +18 -4
- package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +80 -39
- package/front_end/ui/legacy/components/perf_ui/perf_ui-meta.ts +4 -4
- package/front_end/ui/legacy/components/utils/jsUtils.css +8 -0
- package/front_end/ui/legacy/filter.css +1 -1
- package/front_end/ui/legacy/inspectorCommon.css +1 -1
- package/front_end/ui/legacy/listWidget.css +4 -1
- package/front_end/ui/legacy/reportView.css +1 -1
- package/front_end/ui/legacy/toolbar.css +3 -6
- package/front_end/ui/legacy/treeoutline.css +3 -1
- package/front_end/ui/visual_logging/KnownContextValues.ts +12 -1
- package/front_end/ui/visual_logging/LoggingDriver.test.ts +27 -1
- package/front_end/ui/visual_logging/LoggingDriver.ts +7 -4
- package/package.json +2 -3
- package/scripts/build/wasm-as.py +1 -1
- package/scripts/freestyler/auto_freestyler.js +12 -4
- package/scripts/freestyler/to_tsv.mjs +40 -0
- package/scripts/tools/update_goldens.py +11 -13
- package/front_end/panels/timeline/components/insights/SidebarInsight.test.ts +0 -72
- package/front_end/ui/components/docs/two_states_counter/basic.html +0 -27
- package/front_end/ui/components/docs/two_states_counter/basic.ts +0 -45
- package/front_end/ui/components/two_states_counter/TwoStatesCounter.test.ts +0 -73
- package/front_end/ui/components/two_states_counter/TwoStatesCounter.ts +0 -104
- package/front_end/ui/components/two_states_counter/twoStatesCounter.css +0 -37
- package/front_end/ui/components/two_states_counter/two_states_counter.ts +0 -9
package/.stylelintrc.json
CHANGED
@@ -88,6 +88,7 @@ grd_files_release_sources = [
|
|
88
88
|
"front_end/Images/console-conditional-breakpoint.svg",
|
89
89
|
"front_end/Images/console-logpoint.svg",
|
90
90
|
"front_end/Images/cookie.svg",
|
91
|
+
"front_end/Images/cookie_off.svg",
|
91
92
|
"front_end/Images/copy.svg",
|
92
93
|
"front_end/Images/corporate-fare.svg",
|
93
94
|
"front_end/Images/credit-card.svg",
|
@@ -107,6 +108,7 @@ grd_files_release_sources = [
|
|
107
108
|
"front_end/Images/dock-window.svg",
|
108
109
|
"front_end/Images/document.svg",
|
109
110
|
"front_end/Images/dog-paw.svg",
|
111
|
+
"front_end/Images/domain.svg",
|
110
112
|
"front_end/Images/dots-horizontal.svg",
|
111
113
|
"front_end/Images/dots-vertical.svg",
|
112
114
|
"front_end/Images/download.svg",
|
@@ -413,6 +415,8 @@ grd_files_release_sources = [
|
|
413
415
|
"front_end/models/issues_manager/descriptions/cookieCrossSiteRedirectDowngrade.md",
|
414
416
|
"front_end/models/issues_manager/descriptions/cookieExcludeBlockedWithinRelatedWebsiteSet.md",
|
415
417
|
"front_end/models/issues_manager/descriptions/cookieExcludeDomainNonAscii.md",
|
418
|
+
"front_end/models/issues_manager/descriptions/cookieExcludePortMismatch.md",
|
419
|
+
"front_end/models/issues_manager/descriptions/cookieExcludeSchemeMismatch.md",
|
416
420
|
"front_end/models/issues_manager/descriptions/cookieExcludeThirdPartyPhaseoutRead.md",
|
417
421
|
"front_end/models/issues_manager/descriptions/cookieExcludeThirdPartyPhaseoutSet.md",
|
418
422
|
"front_end/models/issues_manager/descriptions/cookieWarnDomainNonAscii.md",
|
@@ -648,6 +652,10 @@ grd_files_release_sources = [
|
|
648
652
|
"front_end/panels/web_audio/web_audio.js",
|
649
653
|
"front_end/panels/webauthn/webauthn-meta.js",
|
650
654
|
"front_end/panels/webauthn/webauthn.js",
|
655
|
+
"front_end/panels/whats_new/resources/WNDT.md",
|
656
|
+
"front_end/panels/whats_new/resources/whatsnew.avif",
|
657
|
+
"front_end/panels/whats_new/whats_new-meta.js",
|
658
|
+
"front_end/panels/whats_new/whats_new.js",
|
651
659
|
"front_end/rehydrated_devtools_app.html",
|
652
660
|
"front_end/services/puppeteer/puppeteer.js",
|
653
661
|
"front_end/services/trace_bounds/trace_bounds.js",
|
@@ -719,7 +727,6 @@ grd_files_release_sources = [
|
|
719
727
|
"front_end/ui/components/text_editor/text_editor.js",
|
720
728
|
"front_end/ui/components/text_prompt/text_prompt.js",
|
721
729
|
"front_end/ui/components/tree_outline/tree_outline.js",
|
722
|
-
"front_end/ui/components/two_states_counter/two_states_counter.js",
|
723
730
|
"front_end/ui/legacy/components/color_picker/color_picker.js",
|
724
731
|
"front_end/ui/legacy/components/cookie_table/cookie_table.js",
|
725
732
|
"front_end/ui/legacy/components/data_grid/data_grid.js",
|
@@ -1083,6 +1090,7 @@ grd_files_debug_sources = [
|
|
1083
1090
|
"front_end/models/trace/insights/Common.js",
|
1084
1091
|
"front_end/models/trace/insights/DocumentLatency.js",
|
1085
1092
|
"front_end/models/trace/insights/FontDisplay.js",
|
1093
|
+
"front_end/models/trace/insights/ImageDelivery.js",
|
1086
1094
|
"front_end/models/trace/insights/InteractionToNextPaint.js",
|
1087
1095
|
"front_end/models/trace/insights/LCPDiscovery.js",
|
1088
1096
|
"front_end/models/trace/insights/LCPPhases.js",
|
@@ -1401,6 +1409,7 @@ grd_files_debug_sources = [
|
|
1401
1409
|
"front_end/panels/explain/components/consoleInsight.css.js",
|
1402
1410
|
"front_end/panels/explain/components/consoleInsightSourcesList.css.js",
|
1403
1411
|
"front_end/panels/freestyler/AiAgent.js",
|
1412
|
+
"front_end/panels/freestyler/AiHistoryStorage.js",
|
1404
1413
|
"front_end/panels/freestyler/ChangeManager.js",
|
1405
1414
|
"front_end/panels/freestyler/DrJonesFileAgent.js",
|
1406
1415
|
"front_end/panels/freestyler/DrJonesNetworkAgent.js",
|
@@ -1674,6 +1683,8 @@ grd_files_debug_sources = [
|
|
1674
1683
|
"front_end/panels/search/SearchView.js",
|
1675
1684
|
"front_end/panels/search/searchResultsPane.css.js",
|
1676
1685
|
"front_end/panels/search/searchView.css.js",
|
1686
|
+
"front_end/panels/security/CookieControlsTreeElement.js",
|
1687
|
+
"front_end/panels/security/CookieControlsView.js",
|
1677
1688
|
"front_end/panels/security/CookieReportTreeElement.js",
|
1678
1689
|
"front_end/panels/security/CookieReportView.js",
|
1679
1690
|
"front_end/panels/security/OriginTreeElement.js",
|
@@ -1681,6 +1692,7 @@ grd_files_debug_sources = [
|
|
1681
1692
|
"front_end/panels/security/SecurityPanel.js",
|
1682
1693
|
"front_end/panels/security/SecurityPanelSidebar.js",
|
1683
1694
|
"front_end/panels/security/SecurityPanelSidebarTreeElement.js",
|
1695
|
+
"front_end/panels/security/cookieControlsView.css.js",
|
1684
1696
|
"front_end/panels/security/cookieReportView.css.js",
|
1685
1697
|
"front_end/panels/security/lockIcon.css.js",
|
1686
1698
|
"front_end/panels/security/mainView.css.js",
|
@@ -1820,15 +1832,18 @@ grd_files_debug_sources = [
|
|
1820
1832
|
"front_end/panels/timeline/components/SidebarAnnotationsTab.js",
|
1821
1833
|
"front_end/panels/timeline/components/SidebarInsightsTab.js",
|
1822
1834
|
"front_end/panels/timeline/components/SidebarSingleInsightSet.js",
|
1835
|
+
"front_end/panels/timeline/components/TimelineSummary.js",
|
1823
1836
|
"front_end/panels/timeline/components/Utils.js",
|
1824
1837
|
"front_end/panels/timeline/components/breadcrumbsUI.css.js",
|
1825
1838
|
"front_end/panels/timeline/components/cpuThrottlingSelector.css.js",
|
1826
1839
|
"front_end/panels/timeline/components/fieldSettingsDialog.css.js",
|
1840
|
+
"front_end/panels/timeline/components/insights/BaseInsightComponent.js",
|
1827
1841
|
"front_end/panels/timeline/components/insights/CLSCulprits.js",
|
1828
1842
|
"front_end/panels/timeline/components/insights/DocumentLatency.js",
|
1829
1843
|
"front_end/panels/timeline/components/insights/EventRef.js",
|
1830
1844
|
"front_end/panels/timeline/components/insights/FontDisplay.js",
|
1831
1845
|
"front_end/panels/timeline/components/insights/Helpers.js",
|
1846
|
+
"front_end/panels/timeline/components/insights/ImageDelivery.js",
|
1832
1847
|
"front_end/panels/timeline/components/insights/InteractionToNextPaint.js",
|
1833
1848
|
"front_end/panels/timeline/components/insights/LCPDiscovery.js",
|
1834
1849
|
"front_end/panels/timeline/components/insights/LCPPhases.js",
|
@@ -1839,7 +1854,7 @@ grd_files_debug_sources = [
|
|
1839
1854
|
"front_end/panels/timeline/components/insights/Table.js",
|
1840
1855
|
"front_end/panels/timeline/components/insights/ThirdParties.js",
|
1841
1856
|
"front_end/panels/timeline/components/insights/Viewport.js",
|
1842
|
-
"front_end/panels/timeline/components/insights/
|
1857
|
+
"front_end/panels/timeline/components/insights/baseInsightComponent.css.js",
|
1843
1858
|
"front_end/panels/timeline/components/insights/table.css.js",
|
1844
1859
|
"front_end/panels/timeline/components/insights/types.js",
|
1845
1860
|
"front_end/panels/timeline/components/interactionBreakdown.css.js",
|
@@ -1854,6 +1869,7 @@ grd_files_debug_sources = [
|
|
1854
1869
|
"front_end/panels/timeline/components/sidebarAnnotationsTab.css.js",
|
1855
1870
|
"front_end/panels/timeline/components/sidebarInsightsTab.css.js",
|
1856
1871
|
"front_end/panels/timeline/components/sidebarSingleInsightSet.css.js",
|
1872
|
+
"front_end/panels/timeline/components/timelineSummary.css.js",
|
1857
1873
|
"front_end/panels/timeline/extensions/ExtensionUI.js",
|
1858
1874
|
"front_end/panels/timeline/historyToolbarButton.css.js",
|
1859
1875
|
"front_end/panels/timeline/overlays/OverlaysImpl.js",
|
@@ -1894,6 +1910,10 @@ grd_files_debug_sources = [
|
|
1894
1910
|
"front_end/panels/web_audio/webAudio.css.js",
|
1895
1911
|
"front_end/panels/webauthn/WebauthnPane.js",
|
1896
1912
|
"front_end/panels/webauthn/webauthnPane.css.js",
|
1913
|
+
"front_end/panels/whats_new/ReleaseNoteText.js",
|
1914
|
+
"front_end/panels/whats_new/ReleaseNoteView.js",
|
1915
|
+
"front_end/panels/whats_new/WhatsNewImpl.js",
|
1916
|
+
"front_end/panels/whats_new/releaseNoteView.css.js",
|
1897
1917
|
"front_end/services/puppeteer/PuppeteerConnection.js",
|
1898
1918
|
"front_end/services/trace_bounds/TraceBounds.js",
|
1899
1919
|
"front_end/services/tracing/PerformanceTracing.js",
|
@@ -2032,6 +2052,7 @@ grd_files_debug_sources = [
|
|
2032
2052
|
"front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CustomQueryHandler.js",
|
2033
2053
|
"front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.js",
|
2034
2054
|
"front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Device.js",
|
2055
|
+
"front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DownloadBehavior.js",
|
2035
2056
|
"front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js",
|
2036
2057
|
"front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.js",
|
2037
2058
|
"front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.js",
|
@@ -2167,9 +2188,11 @@ grd_files_debug_sources = [
|
|
2167
2188
|
"front_end/ui/components/data_grid/DataGridUtils.js",
|
2168
2189
|
"front_end/ui/components/data_grid/dataGrid.css.js",
|
2169
2190
|
"front_end/ui/components/data_grid/dataGridController.css.js",
|
2191
|
+
"front_end/ui/components/dialogs/ButtonDialog.js",
|
2170
2192
|
"front_end/ui/components/dialogs/Dialog.js",
|
2171
2193
|
"front_end/ui/components/dialogs/IconDialog.js",
|
2172
2194
|
"front_end/ui/components/dialogs/ShortcutDialog.js",
|
2195
|
+
"front_end/ui/components/dialogs/buttonDialog.css.js",
|
2173
2196
|
"front_end/ui/components/dialogs/dialog.css.js",
|
2174
2197
|
"front_end/ui/components/dialogs/iconDialog.css.js",
|
2175
2198
|
"front_end/ui/components/dialogs/shortcutDialog.css.js",
|
@@ -2266,8 +2289,6 @@ grd_files_debug_sources = [
|
|
2266
2289
|
"front_end/ui/components/tree_outline/TreeOutline.js",
|
2267
2290
|
"front_end/ui/components/tree_outline/TreeOutlineUtils.js",
|
2268
2291
|
"front_end/ui/components/tree_outline/treeOutline.css.js",
|
2269
|
-
"front_end/ui/components/two_states_counter/TwoStatesCounter.js",
|
2270
|
-
"front_end/ui/components/two_states_counter/twoStatesCounter.css.js",
|
2271
2292
|
"front_end/ui/legacy/ARIAUtils.js",
|
2272
2293
|
"front_end/ui/legacy/ActionRegistration.js",
|
2273
2294
|
"front_end/ui/legacy/ActionRegistry.js",
|
@@ -92,6 +92,7 @@ devtools_svg_sources = [
|
|
92
92
|
"console-conditional-breakpoint.svg",
|
93
93
|
"console-logpoint.svg",
|
94
94
|
"cookie.svg",
|
95
|
+
"cookie_off.svg",
|
95
96
|
"copy.svg",
|
96
97
|
"corporate-fare.svg",
|
97
98
|
"credit-card.svg",
|
@@ -110,6 +111,7 @@ devtools_svg_sources = [
|
|
110
111
|
"dock-window.svg",
|
111
112
|
"document.svg",
|
112
113
|
"dog-paw.svg",
|
114
|
+
"domain.svg",
|
113
115
|
"dots-horizontal.svg",
|
114
116
|
"dots-vertical.svg",
|
115
117
|
"download.svg",
|
package/docs/README.md
CHANGED
@@ -49,6 +49,10 @@ below.**
|
|
49
49
|
* [DevTools support checklist for JavaScript features](./checklist/javascript.md)
|
50
50
|
* [DevTools support checklist for WebAssembly features](./checklist/webassembly.md)
|
51
51
|
|
52
|
+
### Policies
|
53
|
+
|
54
|
+
* [Chromium DevTools Slow-Close Policy](./policy/slow-close.md)
|
55
|
+
|
52
56
|
### Useful Commands
|
53
57
|
|
54
58
|
`git cl format --js`
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# Chromium DevTools Issues Guidelines
|
2
2
|
|
3
|
+
[goo.gle/chromium-devtools-issues](https://goo.gle/chromium-devtools-issues)
|
4
|
+
|
3
5
|
This document explains how Chromium DevTools (related) issues are tracked in the
|
4
6
|
`Chromium>Platform>DevTools` component tree of [crbug], how we define and manage
|
5
7
|
priorities and Service Level Objectives (SLOs), as well as the overall bug life
|
@@ -133,12 +135,13 @@ The following components in [crbug] are owned by the Chrome DevTools team.
|
|
133
135
|
| `Chromium>Platform>DevTools>Application` | Application panel |
|
134
136
|
| `Chromium>Platform>DevTools>Console` | Console panel |
|
135
137
|
| `Chromium>Platform>DevTools>Elements` | Elements panel |
|
138
|
+
| `Chromium>Platform>DevTools>Infra` | Issues related to DevTools' infrastructure |
|
136
139
|
| `Chromium>Platform>DevTools>Issues` | Issues panel |
|
137
140
|
| `Chromium>Platform>DevTools>Memory` | Heap/Memory Profiling, Memory Analysis |
|
138
141
|
| `Chromium>Platform>DevTools>Mobile` | Mobile Emulation / Debugging |
|
139
142
|
| `Chromium>Platform>DevTools>Network` | Network, Network conditions, Network request blocking panels |
|
140
143
|
| `Chromium>Platform>DevTools>Performance` | Performance, Performance Monitor, Performance Insights panels |
|
141
|
-
| `Chromium>Platform>DevTools>
|
144
|
+
| `Chromium>Platform>DevTools>Extensions` | Issues related to DevTools extensions and extensibility |
|
142
145
|
| `Chromium>Platform>DevTools>Recorder` | Recorder panel |
|
143
146
|
| `Chromium>Platform>DevTools>Security` | Security panel |
|
144
147
|
| `Chromium>Platform>DevTools>Sources` | Sources panel |
|
@@ -176,15 +179,15 @@ untriaged issues due to this fact.
|
|
176
179
|
We use the T-Shirt sizes approach to estimate effort for the `Chromium>Platform>DevTools`
|
177
180
|
component tree, based on the following guidelines:
|
178
181
|
|
179
|
-
| Size | Description
|
180
|
-
| :--- |
|
181
|
-
| XXS |
|
182
|
-
| XS |
|
183
|
-
| S | series of CLs
|
184
|
-
| M | quarter-long single-person project
|
185
|
-
| L | multi-quarter or -person project
|
186
|
-
| XL | multi-quarter and -person project
|
187
|
-
| XXL | multi-year project with a dedicated team
|
182
|
+
| Size | Description | Examples |
|
183
|
+
| :--- | :------------------------------------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
184
|
+
| XXS | Small CL | [Styles bar loses focus in Chrome OS DevTools](http://crbug.com/338348417), [Add 20x CPU throttling preset](https://crbug.com/324978881), [Remove 'Consistent source map variable experiment'](http://crbug.com/40944633), [Autofill tab breaks with phone numbers starting with '+'](https://b.corp.google.com/issues/335409093) |
|
185
|
+
| XS | Medium-sized CL or series of trivial CLs | [Local overrides for New Tab Page misses one "/" in folder name](http://crbug.com/328210785), [Memory tool should highlight common problems and opportunities](http://crbug.com/337094903), [Improve the developer experience of using compression dictionaries](http://crbug.com/333756098) |
|
186
|
+
| S | Large-sized CL or series of non-trivial CLs | [Excluding sensitive data from HARs (HTTP Archives) by default](https://crbug.com/361717594) |
|
187
|
+
| M | quarter-long single-person project | [Exceptions in promise constructor should be treated as promise rejection](http://crbug.com/40283985) |
|
188
|
+
| L | multi-quarter or -person project | [Replace regex-matching in the StylesSidebarPane](http://crbug.com/40945390) |
|
189
|
+
| XL | multi-quarter and -person project | [MPArch migration](http://crbug.com/40238399), [GM3 adoption](http://crbug.com/40273199) |
|
190
|
+
| XXL | multi-year project with a dedicated team | [Performance Insights](http://crbug.com/40810111) |
|
188
191
|
|
189
192
|
## SLOs
|
190
193
|
|
package/docs/get_the_code.md
CHANGED
@@ -87,7 +87,10 @@ and a separate CL with a proper roll.
|
|
87
87
|
|
88
88
|
### Run in a pre-built Chromium
|
89
89
|
|
90
|
-
You can run a [build](#Build) of DevTools frontend in a pre-built Chromium in order to avoid the expensive
|
90
|
+
You can run a [build](#Build) of DevTools frontend in a pre-built Chrome or Chromium in order to avoid the expensive build. Options:
|
91
|
+
|
92
|
+
- Use the downloaded Chrome for Testing binary in `third_party/chrome`.
|
93
|
+
- Use the latest Chrome Canary. This includes any DevTools features that are only available in regular Chrome builds (`is_official_build` + `is_chrome_branded`), such as GenAI-related features.
|
91
94
|
|
92
95
|
#### Running from file system
|
93
96
|
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# Chromium DevTools Slow-Close Policy
|
2
|
+
|
3
|
+
[goo.gle/devtools-slow-close]
|
4
|
+
<small>([go/chrome-devtools:slow-close-policy])</small>
|
5
|
+
|
6
|
+
In November 2024, we instituted a slow close policy for Chrome DevTools to
|
7
|
+
automatically maintain hygiene of our bug database. We ended up with a list
|
8
|
+
of over 1650 open bugs and over 750 open feature requests, some of them going
|
9
|
+
back over 10 years, which was not only challenging to maintain, but also made
|
10
|
+
it difficult to determine what's relevant and where we should invest our
|
11
|
+
resources best.
|
12
|
+
|
13
|
+
By automatically nudging and closing stale bugs and feature requests, we can
|
14
|
+
reduce this burden, and better communicate to our users what will actually be
|
15
|
+
actioned, and hear from them what remains relevant.
|
16
|
+
|
17
|
+
[TOC]
|
18
|
+
|
19
|
+
## Rules
|
20
|
+
|
21
|
+
The criteria for slow close:
|
22
|
+
|
23
|
+
- Status: unassigned
|
24
|
+
- Type: Bug or Feature Request
|
25
|
+
- Created: over 3 years ago
|
26
|
+
- Last updated: over 90 days ago
|
27
|
+
- Popularity: (cc count + vote count) < 10
|
28
|
+
- No open descendants
|
29
|
+
|
30
|
+
Googlers can mark issues as exempt from slow close by adding them to the
|
31
|
+
[`DevTools-Blintz-Close-Exempt` hotlist](https://issues.chromium.org/hotlists/6459983).
|
32
|
+
|
33
|
+
## Process
|
34
|
+
|
35
|
+
The automation runs on a daily basis, and performs the following steps:
|
36
|
+
|
37
|
+
- Issues that meet the criteria outlined above are added to the
|
38
|
+
[`DevTools-Blintz-Close-Candidate` hotlist](https://issues.chromium.org/hotlists/6459982)
|
39
|
+
for closure.
|
40
|
+
- If 14 days have passed and no updates have occurred, the issue will be closed
|
41
|
+
and moved to the
|
42
|
+
[`DevTools-Blintz-Close` hotlist](https://issues.chromium.org/hotlists/6460812)
|
43
|
+
for recording purposes.
|
44
|
+
- No more than 25 issues will be updated in a single run.
|
45
|
+
|
46
|
+
## Implementation
|
47
|
+
|
48
|
+
**(Googlers only)**: This is implemented in [go/chrome-devtools:blintz].
|
49
|
+
|
50
|
+
[goo.gle/devtools-slow-close]: http://goo.gle/devtools-slow-close
|
51
|
+
[go/chrome-devtools:slow-close-policy]: http://go/chrome-devtools:slow-close-policy
|
52
|
+
[go/chrome-devtools:blintz]: http://go/chrome-devtools:blintz
|
@@ -0,0 +1,106 @@
|
|
1
|
+
# How to format numbers
|
2
|
+
|
3
|
+
[TOC]
|
4
|
+
|
5
|
+
## Checklist
|
6
|
+
|
7
|
+
### General
|
8
|
+
|
9
|
+
Use [Intl.NumberFormat] consistently for all number formatting within Chrome
|
10
|
+
DevTools' UI, including - but not limited to - formatting bytes and times. This
|
11
|
+
way we ensure that numbers are formatted the same way throughout the whole UI
|
12
|
+
and we don't put the burden of ensuring this level of consistency on the
|
13
|
+
translators for the various languages.
|
14
|
+
|
15
|
+
### Text length
|
16
|
+
|
17
|
+
Pay attention to text length, because the unit portion can be longer in different
|
18
|
+
locales, sometimes even longer than 4 characters. Try to alleviate the worse UX
|
19
|
+
of strings being too long.
|
20
|
+
|
21
|
+
Concretely these locales produces the longest unit strings, so make sure to
|
22
|
+
explicitly test for them:
|
23
|
+
|
24
|
+
* `th` (Thai)
|
25
|
+
* `vi` (Vietnamese)
|
26
|
+
* `hi` (Hindi)
|
27
|
+
* `kn` (Kannada)
|
28
|
+
* `ur` (Urdu)
|
29
|
+
|
30
|
+
We also suggest to explicitly check `en-US` (English) and `de` (German) locales.
|
31
|
+
|
32
|
+
## Examples
|
33
|
+
|
34
|
+
### Formatting percentages
|
35
|
+
|
36
|
+
Consider the following snippet for formatting percentage values:
|
37
|
+
|
38
|
+
```js
|
39
|
+
const {locale} = i18n.DevToolsLocale.DevToolsLocale.instance();
|
40
|
+
const formatter = new Intl.NumberFormat(locale, {
|
41
|
+
style: 'percent',
|
42
|
+
maximumFractionDigits: 1,
|
43
|
+
});
|
44
|
+
const formattedValue = formatter.format(percentageValue);
|
45
|
+
```
|
46
|
+
|
47
|
+
Note that this code will only work after the `DevToolsLocale` has been
|
48
|
+
initialized.
|
49
|
+
|
50
|
+
### Formatting bytes
|
51
|
+
|
52
|
+
Prefer the helper exported by [ByteUtilities.ts] when formatting byte values.
|
53
|
+
For example:
|
54
|
+
|
55
|
+
```js
|
56
|
+
// Formatting bytes
|
57
|
+
i18n.ByteUtilities.bytesToString(99);
|
58
|
+
|
59
|
+
// Formatting kilobytes
|
60
|
+
i18n.ByteUtilities.bytesToString(1234);
|
61
|
+
|
62
|
+
// Formatting megabytes
|
63
|
+
i18n.ByteUtilities.bytesToString(1500 * 1000);
|
64
|
+
```
|
65
|
+
|
66
|
+
### Formatting times
|
67
|
+
|
68
|
+
Prefer the helpers exported by [time-utilities.ts] when formatting time values.
|
69
|
+
For example:
|
70
|
+
|
71
|
+
```js
|
72
|
+
// Formatting precise milliseconds
|
73
|
+
i18n.TimeUtilities.preciseMillisToString(6.12345);
|
74
|
+
|
75
|
+
// Formatting milliseconds (lossy)
|
76
|
+
i18n.TimeUtilities.millisToString(26500);
|
77
|
+
|
78
|
+
// Formatting seconds
|
79
|
+
i18n.TimeUtilities.secondsToString(7849);
|
80
|
+
```
|
81
|
+
|
82
|
+
## Tips
|
83
|
+
|
84
|
+
### Defining formatters upfront
|
85
|
+
|
86
|
+
Use `defineFormatter()` from the [NumberFormatter.ts] file in order to define
|
87
|
+
a formatter upfront. The function has some magic built into such that it defers
|
88
|
+
the creation of the underlying `Intl.NumberFormat` instance until the first
|
89
|
+
invocation of `format()` or `formatToParts()` methods, and therefore it's safe
|
90
|
+
to define the formatters this way without running into the issue that the
|
91
|
+
`DevToolsLocale` isn't initialized yet:
|
92
|
+
|
93
|
+
```js
|
94
|
+
import * as i18n from 'path/to/i18n/i18n.js';
|
95
|
+
|
96
|
+
const percentageFormatter = i18n.NumberFormatter.defineFormatter({
|
97
|
+
style: 'percent',
|
98
|
+
maximumFractionDigits: 1,
|
99
|
+
});
|
100
|
+
```
|
101
|
+
|
102
|
+
|
103
|
+
[Intl.NumberFormat]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
104
|
+
[ByteUtilities.ts]: ../../../front_end/core/i18n/ByteUtilities.ts
|
105
|
+
[NumberFormatter.ts]: ../../../front_end/core/i18n/NumberFormatter.ts
|
106
|
+
[time-utilities.ts]: ../../../front_end/core/i18n/time-utilities.ts
|
@@ -0,0 +1,3 @@
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<path d="M16.625 14.5L15.5208 13.3959C15.7958 12.9527 16.0174 12.4773 16.1854 11.9696C16.3535 11.4621 16.4583 10.9306 16.5 10.375C15.875 10.125 15.3542 9.73962 14.9375 9.21879C14.5208 8.69795 14.2569 8.1042 14.1458 7.43754C13.0903 7.28476 12.1944 6.84726 11.4583 6.12504C10.7222 5.40282 10.2847 4.52782 10.1458 3.50004C9.49306 3.45837 8.86458 3.52087 8.26042 3.68754C7.65625 3.8542 7.09028 4.1042 6.5625 4.43754L5.45833 3.33337C6.34722 2.69448 7.32986 2.26045 8.40625 2.03129C9.48264 1.80212 10.5694 1.84726 11.6667 2.1667C11.5556 2.77782 11.5903 3.34031 11.7708 3.8542C11.9514 4.36809 12.2361 4.79518 12.625 5.13545C13.0139 5.47573 13.4861 5.71184 14.0417 5.84379C14.5972 5.97573 15.1875 5.96532 15.8125 5.81254C15.4653 6.6042 15.5174 7.35768 15.9688 8.07295C16.4201 8.78823 17.0833 9.15955 17.9583 9.18691C18.0694 10.1723 18.0035 11.1167 17.7604 12.02C17.5174 12.9234 17.1389 13.75 16.625 14.5ZM6.75 12.5C6.40278 12.5 6.10764 12.3785 5.86458 12.1355C5.62153 11.8924 5.5 11.5973 5.5 11.25C5.5 10.9028 5.62153 10.6077 5.86458 10.3646C6.10764 10.1216 6.40278 10 6.75 10C7.09722 10 7.39236 10.1216 7.63542 10.3646C7.87847 10.6077 8 10.9028 8 11.25C8 11.5973 7.87847 11.8924 7.63542 12.1355C7.39236 12.3785 7.09722 12.5 6.75 12.5ZM15.875 18L14.5 16.625C13.8194 17.0695 13.1007 17.4098 12.3438 17.6459C11.5868 17.882 10.8056 18 10 18C8.8975 18 7.86146 17.7917 6.89188 17.375C5.92229 16.9584 5.07292 16.3855 4.34375 15.6563C3.61458 14.9271 3.04167 14.0777 2.625 13.1082C2.20833 12.1386 2 11.1025 2 10C2 9.19448 2.11806 8.41323 2.35417 7.65629C2.59028 6.89934 2.93056 6.18059 3.375 5.50004L2 4.12504L3.0625 3.06254L16.9375 16.9375L15.875 18ZM10.0023 16.5C10.6119 16.5 11.2014 16.4098 11.7708 16.2292C12.3403 16.0486 12.8889 15.8125 13.4167 15.5209L4.47917 6.58337C4.1875 7.11115 3.95139 7.65976 3.77083 8.2292C3.59028 8.79865 3.5 9.38816 3.5 9.99775C3.5 11.7994 4.13326 13.3336 5.39979 14.6002C6.66646 15.8668 8.20062 16.5 10.0023 16.5Z" fill="black"/>
|
3
|
+
</svg>
|
@@ -0,0 +1,3 @@
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<path d="M2 17V3H10V6H18V17H2ZM3.5 15.5H5V14H3.5V15.5ZM3.5 12.3333H5V10.8333H3.5V12.3333ZM3.5 9.16667H5V7.66667H3.5V9.16667ZM3.5 6H5V4.5H3.5V6ZM7 15.5H8.5V14H7V15.5ZM7 12.3333H8.5V10.8333H7V12.3333ZM7 9.16667H8.5V7.66667H7V9.16667ZM7 6H8.5V4.5H7V6ZM10 15.5H16.5V7.5H10V9.16667H11.5V10.6667H10V12.3333H11.5V13.8333H10V15.5ZM13.5 10.6667V9.16667H15V10.6667H13.5ZM13.5 13.8333V12.3333H15V13.8333H13.5Z" fill="black"/>
|
3
|
+
</svg>
|
@@ -2154,12 +2154,12 @@ export class Legacy implements Color {
|
|
2154
2154
|
|
2155
2155
|
/**
|
2156
2156
|
* Returns a new color using the NTSC formula for making a RGB color grayscale.
|
2157
|
-
* Note:
|
2157
|
+
* Note: We override with an alpha of 50% to enhance the dimming effect.
|
2158
2158
|
*/
|
2159
2159
|
grayscale(): Legacy {
|
2160
|
-
const [r, g, b
|
2160
|
+
const [r, g, b] = this.#rgbaInternal;
|
2161
2161
|
const gray = r * 0.299 + g * 0.587 + b * 0.114;
|
2162
|
-
return new Legacy([gray, gray, gray,
|
2162
|
+
return new Legacy([gray, gray, gray, 0.5], Format.RGBA);
|
2163
2163
|
}
|
2164
2164
|
|
2165
2165
|
setAlpha(alpha: number): Legacy {
|
@@ -74,6 +74,10 @@ const UIStrings = {
|
|
74
74
|
* section allows users to configure which DevTools data is synced via Chrome Sync.
|
75
75
|
*/
|
76
76
|
sync: 'Sync',
|
77
|
+
/**
|
78
|
+
* @description Text for the privacy section of the page.
|
79
|
+
*/
|
80
|
+
privacy: 'Privacy',
|
77
81
|
};
|
78
82
|
const str_ = i18n.i18n.registerUIStrings('core/common/SettingRegistration.ts', UIStrings);
|
79
83
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
@@ -142,6 +146,7 @@ export const enum SettingCategory {
|
|
142
146
|
EXTENSIONS = 'EXTENSIONS',
|
143
147
|
ADORNER = 'ADORNER',
|
144
148
|
SYNC = 'SYNC',
|
149
|
+
PRIVACY = 'PRIVACY',
|
145
150
|
}
|
146
151
|
|
147
152
|
export function getLocalizedSettingsCategory(category: SettingCategory): Platform.UIString.LocalizedString {
|
@@ -182,6 +187,8 @@ export function getLocalizedSettingsCategory(category: SettingCategory): Platfor
|
|
182
187
|
return i18n.i18n.lockedString('');
|
183
188
|
case SettingCategory.SYNC:
|
184
189
|
return i18nString(UIStrings.sync);
|
190
|
+
case SettingCategory.PRIVACY:
|
191
|
+
return i18nString(UIStrings.privacy);
|
185
192
|
}
|
186
193
|
}
|
187
194
|
|
@@ -21,7 +21,7 @@ export const enum Rating {
|
|
21
21
|
NEGATIVE = 'NEGATIVE',
|
22
22
|
}
|
23
23
|
|
24
|
-
export interface
|
24
|
+
export interface HistoryChunk {
|
25
25
|
text: string;
|
26
26
|
entity: Entity;
|
27
27
|
}
|
@@ -65,10 +65,10 @@ export interface AidaRequest {
|
|
65
65
|
input: string;
|
66
66
|
preamble?: string;
|
67
67
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
68
|
-
chat_history?:
|
68
|
+
chat_history?: HistoryChunk[];
|
69
69
|
client: string;
|
70
70
|
options?: {
|
71
|
-
temperature?:
|
71
|
+
temperature?: number,
|
72
72
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
73
73
|
model_id?: string,
|
74
74
|
};
|
@@ -479,7 +479,6 @@ export const enum EnumeratedHistogram {
|
|
479
479
|
SourcesPanelFileOpened = 'DevTools.SourcesPanelFileOpened',
|
480
480
|
NetworkPanelResponsePreviewOpened = 'DevTools.NetworkPanelResponsePreviewOpened',
|
481
481
|
StyleTextCopied = 'DevTools.StyleTextCopied',
|
482
|
-
ManifestSectionSelected = 'DevTools.ManifestSectionSelected',
|
483
482
|
CSSHintShown = 'DevTools.CSSHintShown',
|
484
483
|
LighthouseModeRun = 'DevTools.LighthouseModeRun',
|
485
484
|
LighthouseCategoryUsed = 'DevTools.LighthouseCategoryUsed',
|
@@ -290,13 +290,6 @@ export class UserMetrics {
|
|
290
290
|
EnumeratedHistogram.StyleTextCopied, value, StyleTextCopied.MAX_VALUE);
|
291
291
|
}
|
292
292
|
|
293
|
-
manifestSectionSelected(sectionTitle: string): void {
|
294
|
-
const code =
|
295
|
-
ManifestSectionCodes[sectionTitle as keyof typeof ManifestSectionCodes] || ManifestSectionCodes.OtherSection;
|
296
|
-
InspectorFrontendHostInstance.recordEnumeratedHistogram(
|
297
|
-
EnumeratedHistogram.ManifestSectionSelected, code, ManifestSectionCodes.MAX_VALUE);
|
298
|
-
}
|
299
|
-
|
300
293
|
cssHintShown(type: CSSHintType): void {
|
301
294
|
InspectorFrontendHostInstance.recordEnumeratedHistogram(
|
302
295
|
EnumeratedHistogram.CSSHintShown, type, CSSHintType.MAX_VALUE);
|
@@ -1024,7 +1017,6 @@ export enum DevtoolsExperiments {
|
|
1024
1017
|
'timeline-rpp-sidebar' = 95,
|
1025
1018
|
'timeline-observations' = 96,
|
1026
1019
|
'timeline-server-timings' = 98,
|
1027
|
-
'extension-storage-viewer' = 100,
|
1028
1020
|
'floating-entry-points-for-ai-assistance' = 101,
|
1029
1021
|
'timeline-experimental-insights' = 102,
|
1030
1022
|
'timeline-dim-unrelated-events' = 103,
|