chrome-devtools-frontend 1.0.1376716 → 1.0.1380117
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/config/gni/devtools_grd_files.gni +15 -7
- package/config/gni/devtools_image_files.gni +2 -0
- package/front_end/Images/src/animation.svg +3 -0
- package/front_end/Images/src/brush-2.svg +3 -0
- package/front_end/core/common/SettingRegistration.ts +1 -1
- package/front_end/core/host/AidaClient.ts +1 -0
- package/front_end/core/host/InspectorFrontendHost.ts +4 -0
- package/front_end/core/i18n/ByteUtilities.test.ts +34 -0
- package/front_end/core/i18n/ByteUtilities.ts +65 -0
- package/front_end/core/i18n/NumberFormatter.ts +75 -0
- package/front_end/core/i18n/i18n.ts +4 -0
- package/front_end/core/i18n/time-utilities.test.ts +20 -2
- package/front_end/core/i18n/time-utilities.ts +125 -86
- package/front_end/core/platform/NumberUtilities.test.ts +3 -26
- package/front_end/core/platform/NumberUtilities.ts +0 -20
- package/front_end/core/root/Runtime.ts +6 -3
- package/front_end/core/sdk/CPUThrottlingManager.ts +4 -0
- package/front_end/core/sdk/CSSContainerQuery.test.ts +10 -16
- package/front_end/core/sdk/CSSContainerQuery.ts +3 -15
- package/front_end/core/sdk/CSSMatchedStyles.test.ts +4 -0
- package/front_end/core/sdk/CSSMatchedStyles.ts +5 -5
- package/front_end/core/sdk/CSSModel.ts +18 -0
- package/front_end/core/sdk/CSSPropertyParser.test.ts +16 -1
- package/front_end/core/sdk/CSSPropertyParser.ts +2 -2
- package/front_end/core/sdk/sdk-meta.ts +8 -0
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +3 -3
- package/front_end/generated/ARIAProperties.js +4 -0
- package/front_end/generated/InspectorBackendCommands.js +8 -6
- package/front_end/generated/SupportedCSSProperties.js +17 -4
- package/front_end/generated/protocol-mapping.d.ts +15 -1
- package/front_end/generated/protocol-proxy-api.d.ts +14 -1
- package/front_end/generated/protocol.ts +26 -2
- package/front_end/models/extensions/ExtensionAPI.ts +9 -1
- package/front_end/models/heap_snapshot_model/HeapSnapshotModel.ts +2 -0
- package/front_end/models/javascript_metadata/NativeFunctions.js +8 -21
- package/front_end/models/live-metrics/web-vitals-injected/{rollup.config.js → rollup.config.mjs} +1 -1
- package/front_end/models/persistence/EditFileSystemView.ts +19 -9
- package/front_end/models/persistence/WorkspaceSettingsTab.ts +50 -54
- package/front_end/models/persistence/editFileSystemView.css +35 -15
- package/front_end/models/persistence/workspaceSettingsTab.css +21 -87
- package/front_end/models/timeline_model/timeline_model.ts +0 -6
- package/front_end/models/trace/Processor.test.ts +18 -17
- package/front_end/models/trace/Processor.ts +10 -14
- package/front_end/models/trace/README.md +0 -1
- package/front_end/models/{timeline_model → trace/extras}/TimelineJSProfile.ts +19 -29
- package/front_end/models/{timeline_model/TimelineModelFilter.test.ts → trace/extras/TraceFilter.test.ts} +15 -17
- package/front_end/models/trace/extras/TraceFilter.ts +62 -0
- package/front_end/models/{timeline_model/TimelineProfileTree.test.ts → trace/extras/TraceTree.test.ts} +44 -43
- package/front_end/models/{timeline_model/TimelineProfileTree.ts → trace/extras/TraceTree.ts} +65 -59
- package/front_end/models/trace/extras/extras.ts +3 -0
- package/front_end/models/trace/handlers/AnimationHandler.ts +0 -8
- package/front_end/models/trace/handlers/ExtensionTraceDataHandler.ts +1 -11
- package/front_end/models/trace/handlers/FramesHandler.test.ts +1 -6
- package/front_end/models/trace/handlers/FramesHandler.ts +1 -14
- package/front_end/models/trace/handlers/GPUHandler.test.ts +0 -2
- package/front_end/models/trace/handlers/GPUHandler.ts +1 -25
- package/front_end/models/trace/handlers/ImagePaintingHandler.ts +3 -0
- package/front_end/models/trace/handlers/InitiatorsHandler.test.ts +0 -1
- package/front_end/models/trace/handlers/InitiatorsHandler.ts +0 -20
- package/front_end/models/trace/handlers/InvalidationsHandler.test.ts +0 -1
- package/front_end/models/trace/handlers/InvalidationsHandler.ts +0 -18
- package/front_end/models/trace/handlers/LargestImagePaintHandler.test.ts +2 -2
- package/front_end/models/trace/handlers/LargestImagePaintHandler.ts +63 -3
- package/front_end/models/trace/handlers/LargestTextPaintHandler.ts +3 -0
- package/front_end/models/trace/handlers/LayerTreeHandler.test.ts +0 -2
- package/front_end/models/trace/handlers/LayerTreeHandler.ts +1 -18
- package/front_end/models/trace/handlers/LayoutShiftsHandler.test.ts +0 -3
- package/front_end/models/trace/handlers/LayoutShiftsHandler.ts +1 -20
- package/front_end/models/trace/handlers/MemoryHandler.test.ts +0 -1
- package/front_end/models/trace/handlers/MemoryHandler.ts +3 -0
- package/front_end/models/trace/handlers/MetaHandler.test.ts +1 -32
- package/front_end/models/trace/handlers/MetaHandler.ts +2 -30
- package/front_end/models/trace/handlers/NetworkRequestsHandler.test.ts +0 -26
- package/front_end/models/trace/handlers/NetworkRequestsHandler.ts +4 -23
- package/front_end/models/trace/handlers/PageFramesHandler.ts +3 -0
- package/front_end/models/trace/handlers/RendererHandler.test.ts +0 -4
- package/front_end/models/trace/handlers/RendererHandler.ts +1 -24
- package/front_end/models/trace/handlers/SamplesHandler.test.ts +0 -5
- package/front_end/models/trace/handlers/SamplesHandler.ts +0 -26
- package/front_end/models/trace/handlers/ScreenshotsHandler.test.ts +0 -1
- package/front_end/models/trace/handlers/SelectorStatsHandler.ts +3 -0
- package/front_end/models/trace/handlers/ServerTimingsHandler.ts +1 -16
- package/front_end/models/trace/handlers/Threads.test.ts +1 -2
- package/front_end/models/trace/handlers/UserInteractionsHandler.test.ts +4 -27
- package/front_end/models/trace/handlers/UserInteractionsHandler.ts +16 -25
- package/front_end/models/trace/handlers/UserTimingsHandler.ts +0 -17
- package/front_end/models/trace/handlers/WorkersHandler.test.ts +0 -1
- package/front_end/models/trace/handlers/WorkersHandler.ts +0 -23
- package/front_end/models/trace/handlers/types.ts +1 -8
- package/front_end/models/trace/insights/{CumulativeLayoutShift.test.ts → CLSCulprits.test.ts} +21 -21
- package/front_end/models/trace/insights/{CumulativeLayoutShift.ts → CLSCulprits.ts} +24 -5
- package/front_end/models/trace/insights/Common.ts +5 -55
- package/front_end/models/trace/insights/DocumentLatency.test.ts +2 -2
- package/front_end/models/trace/insights/DocumentLatency.ts +26 -6
- package/front_end/models/trace/insights/FontDisplay.ts +24 -5
- package/front_end/models/trace/insights/InteractionToNextPaint.test.ts +1 -1
- package/front_end/models/trace/insights/InteractionToNextPaint.ts +26 -6
- package/front_end/models/trace/insights/LCPDiscovery.test.ts +58 -0
- package/front_end/models/trace/insights/LCPDiscovery.ts +101 -0
- package/front_end/models/trace/insights/{LargestContentfulPaint.test.ts → LCPPhases.test.ts} +6 -28
- package/front_end/models/trace/insights/{LargestContentfulPaint.ts → LCPPhases.ts} +37 -38
- package/front_end/models/trace/insights/{InsightRunners.ts → Models.ts} +4 -3
- package/front_end/models/trace/insights/RenderBlocking.test.ts +1 -1
- package/front_end/models/trace/insights/RenderBlocking.ts +33 -28
- package/front_end/models/trace/insights/SlowCSSSelector.ts +26 -5
- package/front_end/models/trace/insights/{ThirdPartyWeb.test.ts → ThirdParties.test.ts} +3 -3
- package/front_end/models/trace/insights/{ThirdPartyWeb.ts → ThirdParties.ts} +24 -5
- package/front_end/models/trace/insights/Viewport.test.ts +1 -1
- package/front_end/models/trace/insights/Viewport.ts +27 -9
- package/front_end/models/trace/insights/insights.ts +1 -1
- package/front_end/models/trace/insights/types.ts +11 -9
- package/front_end/models/trace/types/TraceEvents.ts +51 -22
- package/front_end/panels/application/SharedStorageItemsView.test.ts +3 -3
- package/front_end/panels/application/SharedStorageItemsView.ts +5 -3
- package/front_end/panels/application/StorageView.ts +3 -3
- package/front_end/panels/application/components/StorageMetadataView.ts +1 -2
- package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +34 -31
- package/front_end/panels/coverage/CoverageView.ts +3 -3
- package/front_end/panels/elements/ComputedStyleModel.ts +9 -2
- package/front_end/panels/elements/ComputedStyleWidget.test.ts +72 -0
- package/front_end/panels/elements/ComputedStyleWidget.ts +12 -0
- package/front_end/panels/elements/ElementStatePaneWidget.test.ts +84 -30
- package/front_end/panels/elements/ElementStatePaneWidget.ts +42 -24
- package/front_end/panels/elements/ElementsTreeElement.ts +24 -11
- package/front_end/panels/elements/MetricsSidebarPane.ts +12 -7
- package/front_end/panels/elements/PropertyMatchers.ts +3 -0
- package/front_end/panels/elements/StylePropertiesSection.ts +15 -6
- package/front_end/panels/elements/StylePropertyTreeElement.test.ts +3 -1
- package/front_end/panels/elements/StylePropertyTreeElement.ts +8 -3
- package/front_end/panels/elements/stylePropertiesTreeOutline.css +2 -2
- package/front_end/panels/explain/components/ConsoleInsight.ts +8 -18
- package/front_end/panels/freestyler/AiAgent.test.ts +58 -1
- package/front_end/panels/freestyler/AiAgent.ts +58 -3
- package/front_end/panels/freestyler/DrJonesFileAgent.test.ts +99 -23
- package/front_end/panels/freestyler/DrJonesFileAgent.ts +53 -20
- package/front_end/panels/freestyler/DrJonesNetworkAgent.test.ts +15 -7
- package/front_end/panels/freestyler/DrJonesNetworkAgent.ts +36 -15
- package/front_end/panels/freestyler/DrJonesPerformanceAgent.test.ts +6 -6
- package/front_end/panels/freestyler/DrJonesPerformanceAgent.ts +48 -8
- package/front_end/panels/freestyler/FreestylerAgent.test.ts +15 -14
- package/front_end/panels/freestyler/FreestylerAgent.ts +52 -8
- package/front_end/panels/freestyler/FreestylerPanel.test.ts +539 -39
- package/front_end/panels/freestyler/FreestylerPanel.ts +349 -215
- package/front_end/panels/freestyler/components/FreestylerChatUi.test.ts +126 -34
- package/front_end/panels/freestyler/components/FreestylerChatUi.ts +320 -268
- package/front_end/panels/freestyler/components/UserActionRow.ts +156 -47
- package/front_end/panels/freestyler/components/freestylerChatUi.css +69 -34
- package/front_end/panels/freestyler/components/userActionRow.css +40 -67
- package/front_end/panels/freestyler/freestyler-meta.ts +3 -11
- package/front_end/panels/issues/components/HideIssuesMenu.ts +2 -11
- package/front_end/panels/layer_viewer/LayerDetailsView.ts +1 -2
- package/front_end/panels/layer_viewer/PaintProfilerView.ts +5 -5
- package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +46 -0
- package/front_end/panels/mobile_throttling/ThrottlingSettingsTab.ts +26 -17
- package/front_end/panels/mobile_throttling/throttlingSettingsTab.css +25 -19
- package/front_end/panels/network/BinaryResourceView.ts +6 -7
- package/front_end/panels/network/EventSourceMessagesView.ts +1 -1
- package/front_end/panels/network/NetworkDataGridNode.ts +3 -3
- package/front_end/panels/network/NetworkLogView.ts +7 -8
- package/front_end/panels/network/RequestTimingView.test.ts +35 -1
- package/front_end/panels/network/RequestTimingView.ts +96 -0
- package/front_end/panels/network/ResourceWebSocketFrameView.ts +2 -2
- package/front_end/panels/network/networkTimingTable.css +2 -1
- package/front_end/panels/performance_monitor/PerformanceMonitor.ts +1 -1
- package/front_end/panels/profiler/HeapProfileView.ts +3 -3
- package/front_end/panels/profiler/HeapSnapshotView.ts +2 -2
- package/front_end/panels/profiler/HeapTimelineOverview.ts +12 -12
- package/front_end/panels/profiler/IsolateSelector.ts +3 -4
- package/front_end/panels/profiler/ProfileFlameChartDataProvider.ts +1 -1
- package/front_end/panels/profiler/ProfileSidebarTreeElement.ts +7 -6
- package/front_end/panels/profiler/ProfileView.ts +1 -1
- package/front_end/panels/recorder/components/RecordingView.ts +2 -2
- package/front_end/panels/recorder/injected/{rollup.config.js → rollup.config.mjs} +1 -1
- package/front_end/panels/recorder/recorderController.css +0 -4
- package/front_end/panels/security/CookieReportTreeElement.ts +1 -9
- package/front_end/panels/security/CookieReportView.ts +120 -0
- package/front_end/panels/security/SecurityPanel.ts +8 -2
- package/front_end/panels/security/cookieReportView.css +46 -0
- package/front_end/panels/security/sidebar.css +1 -2
- package/front_end/panels/sensors/LocationsSettingsTab.ts +26 -11
- package/front_end/panels/sensors/locationsSettingsTab.css +18 -18
- package/front_end/panels/settings/AISettingsTab.ts +6 -15
- package/front_end/panels/settings/KeybindsSettingsTab.ts +1 -1
- package/front_end/panels/settings/SettingsScreen.ts +61 -56
- package/front_end/panels/settings/aiSettingsTab.css +3 -14
- package/front_end/panels/settings/components/SyncSection.ts +1 -2
- package/front_end/panels/settings/components/syncSection.css +0 -10
- package/front_end/panels/settings/frameworkIgnoreListSettingsTab.css +3 -1
- package/front_end/panels/settings/keybindsSettingsTab.css +7 -10
- package/front_end/panels/settings/settingsScreen.css +27 -125
- package/front_end/panels/sources/DebuggerPlugin.ts +9 -4
- package/front_end/panels/sources/NavigatorView.ts +11 -13
- package/front_end/panels/timeline/ActiveFilters.ts +3 -4
- package/front_end/panels/timeline/AnimationsTrackAppender.ts +1 -2
- package/front_end/panels/timeline/CountersGraph.ts +2 -4
- package/front_end/panels/timeline/EventsTimelineTreeView.ts +7 -8
- package/front_end/panels/timeline/README.md +2 -1
- package/front_end/panels/timeline/TimelineController.ts +14 -4
- package/front_end/panels/timeline/TimelineEventOverview.ts +3 -4
- package/front_end/panels/timeline/TimelineFilters.ts +3 -4
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.test.ts +1 -1
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +3 -10
- package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +1 -2
- package/front_end/panels/timeline/TimelineFlameChartView.ts +21 -12
- package/front_end/panels/timeline/TimelineLoader.test.ts +1 -2
- package/front_end/panels/timeline/TimelineLoader.ts +3 -4
- package/front_end/panels/timeline/TimelineMiniMap.ts +10 -0
- package/front_end/panels/timeline/TimelinePanel.ts +20 -8
- package/front_end/panels/timeline/TimelineTreeView.test.ts +12 -13
- package/front_end/panels/timeline/TimelineTreeView.ts +35 -40
- package/front_end/panels/timeline/TimelineUIUtils.test.ts +2 -2
- package/front_end/panels/timeline/TimelineUIUtils.ts +12 -14
- package/front_end/panels/timeline/components/LayoutShiftDetails.ts +6 -7
- package/front_end/panels/timeline/components/LiveMetricsView.test.ts +3 -3
- package/front_end/panels/timeline/components/LiveMetricsView.ts +14 -26
- package/front_end/panels/timeline/components/MetricCard.test.ts +1 -1
- package/front_end/panels/timeline/components/MetricCard.ts +46 -0
- package/front_end/panels/timeline/components/NetworkRequestDetails.ts +3 -4
- package/front_end/panels/timeline/components/SidebarSingleInsightSet.test.ts +2 -0
- package/front_end/panels/timeline/components/SidebarSingleInsightSet.ts +41 -36
- package/front_end/panels/timeline/components/insights/CLSCulprits.ts +19 -33
- package/front_end/panels/timeline/components/insights/DocumentLatency.ts +29 -40
- package/front_end/panels/timeline/components/insights/FontDisplay.ts +17 -23
- package/front_end/panels/timeline/components/insights/Helpers.ts +12 -16
- package/front_end/panels/timeline/components/insights/InteractionToNextPaint.ts +14 -26
- package/front_end/panels/timeline/components/insights/LCPDiscovery.ts +25 -37
- package/front_end/panels/timeline/components/insights/LCPPhases.ts +20 -47
- package/front_end/panels/timeline/components/insights/RenderBlocking.ts +19 -28
- package/front_end/panels/timeline/components/insights/SidebarInsight.ts +1 -2
- package/front_end/panels/timeline/components/insights/SlowCSSSelector.ts +18 -31
- package/front_end/panels/timeline/components/insights/Table.ts +5 -3
- package/front_end/panels/timeline/components/insights/ThirdParties.ts +18 -25
- package/front_end/panels/timeline/components/insights/Viewport.ts +14 -25
- package/front_end/panels/timeline/components/liveMetricsView.css +5 -13
- package/front_end/panels/timeline/components/metricCard.css +11 -0
- package/front_end/panels/timeline/components/sidebarInsightsTab.css +1 -1
- package/front_end/panels/timeline/overlays/OverlaysImpl.test.ts +5 -5
- package/front_end/panels/timeline/overlays/OverlaysImpl.ts +13 -12
- package/front_end/panels/timeline/timelineFlameChartView.css +1 -1
- package/front_end/panels/timeline/utils/AICallTree.test.ts +105 -0
- package/front_end/panels/timeline/utils/AICallTree.ts +25 -24
- package/front_end/testing/EnvironmentHelpers.ts +5 -18
- package/front_end/testing/InsightHelpers.ts +4 -4
- package/front_end/testing/TraceHelpers.ts +1 -1
- package/front_end/third_party/puppeteer/README.chromium +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts +2 -3
- 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/ElementHandle.d.ts +14 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.js +16 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Input.d.ts +34 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Input.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Input.js +51 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Input.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ElementHandle.js +10 -8
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Input.d.ts +14 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Input.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Input.js +57 -23
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Input.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ElementHandle.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ElementHandle.js +13 -10
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Input.d.ts +15 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Input.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Input.js +55 -26
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Input.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.d.ts +0 -8
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.js +2 -11
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConsoleMessage.d.ts +2 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConsoleMessage.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConsoleMessage.js +5 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConsoleMessage.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.d.ts +7 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.js +9 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WaitTask.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WaitTask.js +5 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WaitTask.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/environment.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/environment.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/environment.js +0 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/environment.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.js +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/revisions.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/incremental-id-generator.d.ts +14 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/incremental-id-generator.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/incremental-id-generator.js +18 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/incremental-id-generator.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +51 -10
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +215 -97
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts +2 -3
- 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/ElementHandle.d.ts +14 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.js +16 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Input.d.ts +34 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Input.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Input.js +51 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Input.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/ElementHandle.js +10 -8
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Input.d.ts +14 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Input.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Input.js +57 -23
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Input.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ElementHandle.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ElementHandle.js +13 -10
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Input.d.ts +15 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Input.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Input.js +55 -26
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Input.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.d.ts +0 -8
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.js +1 -9
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConsoleMessage.d.ts +2 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConsoleMessage.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConsoleMessage.js +5 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConsoleMessage.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts +7 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js +7 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WaitTask.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WaitTask.js +5 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WaitTask.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/environment.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/environment.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/environment.js +0 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/environment.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.js +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/revisions.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/incremental-id-generator.d.ts +14 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/incremental-id-generator.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/incremental-id-generator.js +15 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/incremental-id-generator.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +51 -10
- package/front_end/third_party/puppeteer/package/package.json +4 -4
- package/front_end/third_party/puppeteer/package/src/api/Browser.ts +2 -3
- package/front_end/third_party/puppeteer/package/src/api/ElementHandle.ts +21 -3
- package/front_end/third_party/puppeteer/package/src/api/Input.ts +57 -8
- package/front_end/third_party/puppeteer/package/src/bidi/ElementHandle.ts +9 -7
- package/front_end/third_party/puppeteer/package/src/bidi/Frame.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/bidi/Input.ts +72 -31
- package/front_end/third_party/puppeteer/package/src/cdp/ElementHandle.ts +14 -9
- package/front_end/third_party/puppeteer/package/src/cdp/Input.ts +71 -26
- package/front_end/third_party/puppeteer/package/src/common/CallbackRegistry.ts +1 -15
- package/front_end/third_party/puppeteer/package/src/common/ConsoleMessage.ts +8 -1
- package/front_end/third_party/puppeteer/package/src/common/Errors.ts +7 -0
- package/front_end/third_party/puppeteer/package/src/common/WaitTask.ts +9 -9
- package/front_end/third_party/puppeteer/package/src/environment.ts +1 -4
- package/front_end/third_party/puppeteer/package/src/generated/injected.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/generated/version.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/util/incremental-id-generator.ts +20 -0
- package/front_end/third_party/puppeteer/puppeteer-tsconfig.json +1 -0
- package/front_end/ui/components/buttons/Button.test.ts +14 -0
- package/front_end/ui/components/buttons/Button.ts +27 -4
- package/front_end/ui/components/cards/card.css +7 -4
- package/front_end/ui/components/dialogs/Dialog.ts +2 -4
- package/front_end/ui/components/dialogs/ShortcutDialog.ts +15 -13
- package/front_end/ui/components/dialogs/dialog.css +2 -6
- package/front_end/ui/components/dialogs/shortcutDialog.css +33 -41
- package/front_end/ui/components/docs/freestyler/basic.ts +6 -8
- package/front_end/ui/components/docs/freestyler/empty_state.ts +6 -8
- package/front_end/ui/components/docs/performance_panel/track_example.html +1 -1
- package/front_end/ui/components/markdown_view/MarkdownView.test.ts +39 -17
- package/front_end/ui/components/markdown_view/MarkdownView.ts +77 -14
- package/front_end/ui/components/markdown_view/markdownView.css +15 -0
- package/front_end/ui/components/settings/SettingCheckbox.ts +3 -2
- package/front_end/ui/legacy/ContextMenu.ts +2 -2
- package/front_end/ui/legacy/InplaceEditor.ts +18 -14
- package/front_end/ui/legacy/TabbedPane.ts +0 -14
- package/front_end/ui/legacy/UIUtils.ts +0 -7
- package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +7 -2
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +8 -4
- package/front_end/ui/legacy/components/data_grid/ViewportDataGrid.ts +20 -11
- package/front_end/ui/legacy/components/inline_editor/LinkSwatch.test.ts +19 -0
- package/front_end/ui/legacy/components/inline_editor/LinkSwatch.ts +1 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +1 -1
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +5 -22
- package/front_end/ui/legacy/components/perf_ui/OverviewGrid.ts +129 -100
- package/front_end/ui/legacy/components/perf_ui/TimelineGrid.ts +4 -2
- package/front_end/ui/legacy/components/perf_ui/TimelineOverviewCalculator.test.ts +9 -4
- package/front_end/ui/legacy/components/perf_ui/TimelineOverviewCalculator.ts +6 -6
- package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +22 -4
- package/front_end/ui/legacy/components/perf_ui/flameChart.css +0 -2
- package/front_end/ui/legacy/components/source_frame/BinaryResourceViewFactory.test.ts +49 -0
- package/front_end/ui/legacy/components/source_frame/BinaryResourceViewFactory.ts +23 -46
- package/front_end/ui/legacy/components/source_frame/ImageView.ts +1 -1
- package/front_end/ui/legacy/components/utils/ImagePreview.ts +1 -1
- package/front_end/ui/legacy/textPrompt.css +1 -1
- package/front_end/ui/legacy/toolbar.css +4 -5
- package/front_end/ui/visual_logging/KnownContextValues.ts +174 -0
- package/front_end/ui/visual_logging/LoggingConfig.ts +6 -2
- package/package.json +7 -6
- package/scripts/build/ninja/bundle.gni +3 -3
- package/scripts/build/{rollup.config.js → rollup.config.mjs} +4 -4
- package/scripts/devtools_paths.py +8 -4
- package/scripts/eslint_rules/tests/check_test_definitions_test.js +8 -3
- package/scripts/tools/update_goldens_v2.py +1 -1
- package/front_end/models/timeline_model/TimelineModelFilter.ts +0 -61
- /package/front_end/Images/{rollup.config.js → rollup.config.mjs} +0 -0
@@ -81,6 +81,7 @@ export namespace ProtocolMapping {
|
|
81
81
|
* Fired whenever an active document stylesheet is removed.
|
82
82
|
*/
|
83
83
|
'CSS.styleSheetRemoved': [Protocol.CSS.StyleSheetRemovedEvent];
|
84
|
+
'CSS.computedStyleUpdated': [Protocol.CSS.ComputedStyleUpdatedEvent];
|
84
85
|
/**
|
85
86
|
* This is fired whenever the list of available sinks changes. A sink is a
|
86
87
|
* device or a software surface that you can cast to.
|
@@ -419,7 +420,8 @@ export namespace ProtocolMapping {
|
|
419
420
|
*/
|
420
421
|
'Page.javascriptDialogOpening': [Protocol.Page.JavascriptDialogOpeningEvent];
|
421
422
|
/**
|
422
|
-
* Fired for
|
423
|
+
* Fired for lifecycle events (navigation, load, paint, etc) in the current
|
424
|
+
* target (including local frames).
|
423
425
|
*/
|
424
426
|
'Page.lifecycleEvent': [Protocol.Page.LifecycleEventEvent];
|
425
427
|
/**
|
@@ -1303,6 +1305,18 @@ export namespace ProtocolMapping {
|
|
1303
1305
|
paramsType: [Protocol.CSS.GetLocationForSelectorRequest];
|
1304
1306
|
returnType: Protocol.CSS.GetLocationForSelectorResponse;
|
1305
1307
|
};
|
1308
|
+
/**
|
1309
|
+
* Starts tracking the given node for the computed style updates
|
1310
|
+
* and whenever the computed style is updated for node, it queues
|
1311
|
+
* a `computedStyleUpdated` event with throttling.
|
1312
|
+
* There can only be 1 node tracked for computed style updates
|
1313
|
+
* so passing a new node id removes tracking from the previous node.
|
1314
|
+
* Pass `undefined` to disable tracking.
|
1315
|
+
*/
|
1316
|
+
'CSS.trackComputedStyleUpdatesForNode': {
|
1317
|
+
paramsType: [Protocol.CSS.TrackComputedStyleUpdatesForNodeRequest?];
|
1318
|
+
returnType: void;
|
1319
|
+
};
|
1306
1320
|
/**
|
1307
1321
|
* Starts tracking the given computed styles for updates. The specified array of properties
|
1308
1322
|
* replaces the one previously specified. Pass empty array to disable tracking.
|
@@ -703,6 +703,16 @@ declare namespace ProtocolProxyApi {
|
|
703
703
|
*/
|
704
704
|
invoke_getLocationForSelector(params: Protocol.CSS.GetLocationForSelectorRequest): Promise<Protocol.CSS.GetLocationForSelectorResponse>;
|
705
705
|
|
706
|
+
/**
|
707
|
+
* Starts tracking the given node for the computed style updates
|
708
|
+
* and whenever the computed style is updated for node, it queues
|
709
|
+
* a `computedStyleUpdated` event with throttling.
|
710
|
+
* There can only be 1 node tracked for computed style updates
|
711
|
+
* so passing a new node id removes tracking from the previous node.
|
712
|
+
* Pass `undefined` to disable tracking.
|
713
|
+
*/
|
714
|
+
invoke_trackComputedStyleUpdatesForNode(params: Protocol.CSS.TrackComputedStyleUpdatesForNodeRequest): Promise<Protocol.ProtocolResponseWithError>;
|
715
|
+
|
706
716
|
/**
|
707
717
|
* Starts tracking the given computed styles for updates. The specified array of properties
|
708
718
|
* replaces the one previously specified. Pass empty array to disable tracking.
|
@@ -820,6 +830,8 @@ declare namespace ProtocolProxyApi {
|
|
820
830
|
*/
|
821
831
|
styleSheetRemoved(params: Protocol.CSS.StyleSheetRemovedEvent): void;
|
822
832
|
|
833
|
+
computedStyleUpdated(params: Protocol.CSS.ComputedStyleUpdatedEvent): void;
|
834
|
+
|
823
835
|
}
|
824
836
|
|
825
837
|
export interface CacheStorageApi {
|
@@ -2957,7 +2969,8 @@ declare namespace ProtocolProxyApi {
|
|
2957
2969
|
javascriptDialogOpening(params: Protocol.Page.JavascriptDialogOpeningEvent): void;
|
2958
2970
|
|
2959
2971
|
/**
|
2960
|
-
* Fired for
|
2972
|
+
* Fired for lifecycle events (navigation, load, paint, etc) in the current
|
2973
|
+
* target (including local frames).
|
2961
2974
|
*/
|
2962
2975
|
lifecycleEvent(params: Protocol.Page.LifecycleEventEvent): void;
|
2963
2976
|
|
@@ -175,6 +175,7 @@ export namespace Accessibility {
|
|
175
175
|
* - from 'activedescendant' to 'owns' - relationships between elements other than parent/child/sibling.
|
176
176
|
*/
|
177
177
|
export const enum AXPropertyName {
|
178
|
+
Actions = 'actions',
|
178
179
|
Busy = 'busy',
|
179
180
|
Disabled = 'disabled',
|
180
181
|
Editable = 'editable',
|
@@ -757,6 +758,8 @@ export namespace Audits {
|
|
757
758
|
ExcludeDomainNonASCII = 'ExcludeDomainNonASCII',
|
758
759
|
ExcludeThirdPartyCookieBlockedInFirstPartySet = 'ExcludeThirdPartyCookieBlockedInFirstPartySet',
|
759
760
|
ExcludeThirdPartyPhaseout = 'ExcludeThirdPartyPhaseout',
|
761
|
+
ExcludePortMismatch = 'ExcludePortMismatch',
|
762
|
+
ExcludeSchemeMismatch = 'ExcludeSchemeMismatch',
|
760
763
|
}
|
761
764
|
|
762
765
|
export const enum CookieWarningReason {
|
@@ -3309,6 +3312,10 @@ export namespace CSS {
|
|
3309
3312
|
ranges: SourceRange[];
|
3310
3313
|
}
|
3311
3314
|
|
3315
|
+
export interface TrackComputedStyleUpdatesForNodeRequest {
|
3316
|
+
nodeId?: DOM.NodeId;
|
3317
|
+
}
|
3318
|
+
|
3312
3319
|
export interface TrackComputedStyleUpdatesRequest {
|
3313
3320
|
propertiesToTrack: CSSComputedStyleProperty[];
|
3314
3321
|
}
|
@@ -3505,6 +3512,13 @@ export namespace CSS {
|
|
3505
3512
|
*/
|
3506
3513
|
styleSheetId: StyleSheetId;
|
3507
3514
|
}
|
3515
|
+
|
3516
|
+
export interface ComputedStyleUpdatedEvent {
|
3517
|
+
/**
|
3518
|
+
* The node id that has updated computed styles.
|
3519
|
+
*/
|
3520
|
+
nodeId: DOM.NodeId;
|
3521
|
+
}
|
3508
3522
|
}
|
3509
3523
|
|
3510
3524
|
export namespace CacheStorage {
|
@@ -3799,6 +3813,7 @@ export namespace DOM {
|
|
3799
3813
|
Check = 'check',
|
3800
3814
|
Before = 'before',
|
3801
3815
|
After = 'after',
|
3816
|
+
SelectArrow = 'select-arrow',
|
3802
3817
|
Marker = 'marker',
|
3803
3818
|
Backdrop = 'backdrop',
|
3804
3819
|
Column = 'column',
|
@@ -8138,7 +8153,9 @@ export namespace Network {
|
|
8138
8153
|
export type LoaderId = OpaqueIdentifier<string, 'Protocol.Network.LoaderId'>;
|
8139
8154
|
|
8140
8155
|
/**
|
8141
|
-
* Unique request identifier.
|
8156
|
+
* Unique network request identifier.
|
8157
|
+
* Note that this does not identify individual HTTP requests that are part of
|
8158
|
+
* a network request.
|
8142
8159
|
*/
|
8143
8160
|
export type RequestId = OpaqueIdentifier<string, 'Protocol.Network.RequestId'>;
|
8144
8161
|
|
@@ -8891,6 +8908,7 @@ export namespace Network {
|
|
8891
8908
|
type: InitiatorType;
|
8892
8909
|
/**
|
8893
8910
|
* Initiator JavaScript stack trace, set for Script only.
|
8911
|
+
* Requires the Debugger domain to be enabled.
|
8894
8912
|
*/
|
8895
8913
|
stack?: Runtime.StackTrace;
|
8896
8914
|
/**
|
@@ -9049,6 +9067,8 @@ export namespace Network {
|
|
9049
9067
|
SchemefulSameSiteUnspecifiedTreatedAsLax = 'SchemefulSameSiteUnspecifiedTreatedAsLax',
|
9050
9068
|
SamePartyFromCrossPartyContext = 'SamePartyFromCrossPartyContext',
|
9051
9069
|
NameValuePairExceedsMaxSize = 'NameValuePairExceedsMaxSize',
|
9070
|
+
PortMismatch = 'PortMismatch',
|
9071
|
+
SchemeMismatch = 'SchemeMismatch',
|
9052
9072
|
}
|
9053
9073
|
|
9054
9074
|
/**
|
@@ -13587,7 +13607,8 @@ export namespace Page {
|
|
13587
13607
|
}
|
13588
13608
|
|
13589
13609
|
/**
|
13590
|
-
* Fired for
|
13610
|
+
* Fired for lifecycle events (navigation, load, paint, etc) in the current
|
13611
|
+
* target (including local frames).
|
13591
13612
|
*/
|
13592
13613
|
export interface LifecycleEventEvent {
|
13593
13614
|
/**
|
@@ -14779,6 +14800,7 @@ export namespace Storage {
|
|
14779
14800
|
ExcessiveReportingOrigins = 'excessiveReportingOrigins',
|
14780
14801
|
NoHistograms = 'noHistograms',
|
14781
14802
|
InsufficientBudget = 'insufficientBudget',
|
14803
|
+
InsufficientNamedBudget = 'insufficientNamedBudget',
|
14782
14804
|
NoMatchingSourceFilterData = 'noMatchingSourceFilterData',
|
14783
14805
|
NotRegistered = 'notRegistered',
|
14784
14806
|
ProhibitedByBrowserPolicy = 'prohibitedByBrowserPolicy',
|
@@ -16159,6 +16181,8 @@ export namespace Fetch {
|
|
16159
16181
|
|
16160
16182
|
/**
|
16161
16183
|
* Unique request identifier.
|
16184
|
+
* Note that this does not identify individual HTTP requests that are part of
|
16185
|
+
* a network request.
|
16162
16186
|
*/
|
16163
16187
|
export type RequestId = OpaqueIdentifier<string, 'Protocol.Fetch.RequestId'>;
|
16164
16188
|
|
@@ -1146,9 +1146,17 @@ self.injectedExtensionAPI = function(
|
|
1146
1146
|
},
|
1147
1147
|
};
|
1148
1148
|
|
1149
|
+
const protocolGet = Object.getOwnPropertyDescriptor(URL.prototype, 'protocol')?.get;
|
1150
|
+
function getProtocol(url: string): string {
|
1151
|
+
if (!protocolGet) {
|
1152
|
+
throw new Error('URL.protocol is not available');
|
1153
|
+
}
|
1154
|
+
return protocolGet.call(new URL(url));
|
1155
|
+
}
|
1156
|
+
|
1149
1157
|
function canAccessResource(resource: APIImpl.ResourceData): boolean {
|
1150
1158
|
try {
|
1151
|
-
return extensionInfo.allowFileAccess || (
|
1159
|
+
return extensionInfo.allowFileAccess || getProtocol(resource.url) !== 'file:';
|
1152
1160
|
} catch (e) {
|
1153
1161
|
return false;
|
1154
1162
|
}
|
@@ -146,10 +146,12 @@ export class Aggregate {
|
|
146
146
|
}
|
147
147
|
|
148
148
|
export class AggregateForDiff {
|
149
|
+
name: string;
|
149
150
|
indexes: number[];
|
150
151
|
ids: number[];
|
151
152
|
selfSizes: number[];
|
152
153
|
constructor() {
|
154
|
+
this.name = '';
|
153
155
|
this.indexes = [];
|
154
156
|
this.ids = [];
|
155
157
|
this.selfSizes = [];
|
@@ -1889,13 +1889,7 @@ export const NativeFunctions = [
|
|
1889
1889
|
},
|
1890
1890
|
{
|
1891
1891
|
name: "deleteData",
|
1892
|
-
signatures: [["offset","count"]]
|
1893
|
-
receivers: ["CharacterData"]
|
1894
|
-
},
|
1895
|
-
{
|
1896
|
-
name: "deleteData",
|
1897
|
-
signatures: [["key"]],
|
1898
|
-
receivers: ["LockScreenData"]
|
1892
|
+
signatures: [["offset","count"]]
|
1899
1893
|
},
|
1900
1894
|
{
|
1901
1895
|
name: "insertData",
|
@@ -2228,23 +2222,11 @@ export const NativeFunctions = [
|
|
2228
2222
|
},
|
2229
2223
|
{
|
2230
2224
|
name: "getData",
|
2231
|
-
signatures: [["format"]]
|
2232
|
-
receivers: ["DataTransfer"]
|
2233
|
-
},
|
2234
|
-
{
|
2235
|
-
name: "getData",
|
2236
|
-
signatures: [["key"]],
|
2237
|
-
receivers: ["LockScreenData"]
|
2238
|
-
},
|
2239
|
-
{
|
2240
|
-
name: "setData",
|
2241
|
-
signatures: [["format","data"]],
|
2242
|
-
receivers: ["DataTransfer"]
|
2225
|
+
signatures: [["format"]]
|
2243
2226
|
},
|
2244
2227
|
{
|
2245
2228
|
name: "setData",
|
2246
|
-
signatures: [["
|
2247
|
-
receivers: ["LockScreenData"]
|
2229
|
+
signatures: [["format","data"]]
|
2248
2230
|
},
|
2249
2231
|
{
|
2250
2232
|
name: "setDragImage",
|
@@ -6920,6 +6902,11 @@ export const NativeFunctions = [
|
|
6920
6902
|
name: "CloseWatcher",
|
6921
6903
|
signatures: [["?options"]]
|
6922
6904
|
},
|
6905
|
+
{
|
6906
|
+
name: "requestClose",
|
6907
|
+
signatures: [["?returnValue"]],
|
6908
|
+
receivers: ["HTMLDialogElement"]
|
6909
|
+
},
|
6923
6910
|
{
|
6924
6911
|
name: "reportEvent",
|
6925
6912
|
signatures: [["event"]]
|
package/front_end/models/live-metrics/web-vitals-injected/{rollup.config.js → rollup.config.mjs}
RENAMED
@@ -2,7 +2,7 @@
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
3
3
|
// found in the LICENSE file.
|
4
4
|
|
5
|
-
|
5
|
+
import terser from '@rollup/plugin-terser';
|
6
6
|
|
7
7
|
/**
|
8
8
|
* Checks if an env variable is true.
|
@@ -38,14 +38,18 @@ import {Events, IsolatedFileSystemManager} from './IsolatedFileSystemManager.js'
|
|
38
38
|
import type {PlatformFileSystem} from './PlatformFileSystem.js';
|
39
39
|
|
40
40
|
const UIStrings = {
|
41
|
+
/**
|
42
|
+
*@description Text in Edit File System View of the Workspace settings in Settings to indicate that the following string is a folder URL
|
43
|
+
*/
|
44
|
+
url: 'URL',
|
41
45
|
/**
|
42
46
|
*@description Text in Edit File System View of the Workspace settings in Settings
|
43
47
|
*/
|
44
|
-
excludedFolders: 'Excluded folders',
|
48
|
+
excludedFolders: 'Excluded sub-folders',
|
45
49
|
/**
|
46
50
|
*@description Text to add something
|
47
51
|
*/
|
48
|
-
add: 'Add',
|
52
|
+
add: 'Add folder',
|
49
53
|
/**
|
50
54
|
* @description Placeholder text for an area of the UI that shows which folders have been excluded
|
51
55
|
* from being show in DevTools. When the user has not yet chosen any folders to exclude, this text
|
@@ -91,13 +95,13 @@ export class EditFileSystemView extends UI.Widget.VBox implements UI.ListWidget.
|
|
91
95
|
IsolatedFileSystemManager.instance().addEventListener(Events.ExcludedFolderRemoved, this.update, this),
|
92
96
|
];
|
93
97
|
|
94
|
-
const excludedFoldersHeader = this.contentElement.createChild('div', '
|
95
|
-
excludedFoldersHeader.createChild('
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
98
|
+
const excludedFoldersHeader = this.contentElement.createChild('div', 'excluded-folder-header');
|
99
|
+
excludedFoldersHeader.createChild('span').textContent = i18nString(UIStrings.url);
|
100
|
+
excludedFoldersHeader.createChild('span', 'excluded-folder-url').textContent = fileSystemPath;
|
101
|
+
|
102
|
+
const excludeSubFoldersText = this.contentElement.createChild('span', 'exclude-subfolders-text');
|
103
|
+
excludeSubFoldersText.textContent = i18nString(UIStrings.excludedFolders);
|
104
|
+
|
101
105
|
this.excludedFoldersList = new UI.ListWidget.ListWidget(this);
|
102
106
|
this.excludedFoldersList.element.classList.add('file-system-list');
|
103
107
|
|
@@ -107,6 +111,12 @@ export class EditFileSystemView extends UI.Widget.VBox implements UI.ListWidget.
|
|
107
111
|
this.excludedFoldersList.setEmptyPlaceholder(excludedFoldersPlaceholder);
|
108
112
|
this.excludedFoldersList.show(this.contentElement);
|
109
113
|
|
114
|
+
const addButton = UI.UIUtils.createTextButton(
|
115
|
+
i18nString(UIStrings.add), this.addExcludedFolderButtonClicked.bind(this),
|
116
|
+
{className: 'add-button', jslogContext: 'settings.add-excluded-folder'});
|
117
|
+
|
118
|
+
this.contentElement.appendChild(addButton);
|
119
|
+
|
110
120
|
this.update();
|
111
121
|
}
|
112
122
|
|
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
import * as i18n from '../../core/i18n/i18n.js';
|
6
6
|
import type * as Platform from '../../core/platform/platform.js';
|
7
|
+
import * as Cards from '../../ui/components/cards/cards.js';
|
7
8
|
import * as UI from '../../ui/legacy/legacy.js';
|
8
9
|
import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
|
9
10
|
|
@@ -27,11 +28,11 @@ const UIStrings = {
|
|
27
28
|
/**
|
28
29
|
*@description Text of the add button in Workspace Settings Tab of the Workspace settings in Settings
|
29
30
|
*/
|
30
|
-
addFolder: 'Add folder
|
31
|
+
addFolder: 'Add folder',
|
31
32
|
/**
|
32
33
|
*@description Label element text content in Workspace Settings Tab of the Workspace settings in Settings
|
33
34
|
*/
|
34
|
-
folderExcludePattern: '
|
35
|
+
folderExcludePattern: 'Exclude from workspace',
|
35
36
|
/**
|
36
37
|
*@description Label for an item to remove something
|
37
38
|
*/
|
@@ -42,7 +43,7 @@ const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
42
43
|
|
43
44
|
export class WorkspaceSettingsTab extends UI.Widget.VBox {
|
44
45
|
containerElement: HTMLElement;
|
45
|
-
|
46
|
+
#addButtonContainer: HTMLElement;
|
46
47
|
private readonly elementByPath: Map<Platform.DevToolsPath.UrlString, Element>;
|
47
48
|
private readonly mappingViewByPath: Map<Platform.DevToolsPath.UrlString, EditFileSystemView>;
|
48
49
|
|
@@ -51,12 +52,9 @@ export class WorkspaceSettingsTab extends UI.Widget.VBox {
|
|
51
52
|
|
52
53
|
this.element.setAttribute('jslog', `${VisualLogging.pane('workspace')}`);
|
53
54
|
|
54
|
-
this.
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
this.containerElement = this.element.createChild('div', 'settings-container-wrapper')
|
59
|
-
.createChild('div', 'settings-tab settings-content settings-container');
|
55
|
+
this.containerElement =
|
56
|
+
this.contentElement.createChild('div', 'settings-card-container-wrapper').createChild('div');
|
57
|
+
this.containerElement.classList.add('settings-card-container');
|
60
58
|
|
61
59
|
IsolatedFileSystemManager.instance().addEventListener(
|
62
60
|
Events.FileSystemAdded, event => this.fileSystemAdded(event.data), this);
|
@@ -65,27 +63,31 @@ export class WorkspaceSettingsTab extends UI.Widget.VBox {
|
|
65
63
|
|
66
64
|
const folderExcludePatternInput = this.createFolderExcludePatternInput();
|
67
65
|
folderExcludePatternInput.classList.add('folder-exclude-pattern');
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
UI.UIUtils.createTextChild(div, i18nString(UIStrings.mappingsAreInferredAutomatically));
|
66
|
+
const mappingsAreInferredInfo = document.createElement('div');
|
67
|
+
mappingsAreInferredInfo.classList.add('mappings-info');
|
68
|
+
UI.UIUtils.createTextChild(mappingsAreInferredInfo, i18nString(UIStrings.mappingsAreInferredAutomatically));
|
72
69
|
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
this.setDefaultFocusedElement(addButton);
|
70
|
+
const card = new Cards.Card.Card();
|
71
|
+
this.containerElement.appendChild(card);
|
72
|
+
card.data = {
|
73
|
+
heading: i18nString(UIStrings.workspace),
|
74
|
+
content: [folderExcludePatternInput, mappingsAreInferredInfo],
|
75
|
+
};
|
80
76
|
|
81
77
|
this.elementByPath = new Map();
|
82
|
-
|
83
78
|
this.mappingViewByPath = new Map();
|
84
79
|
|
85
80
|
const fileSystems = IsolatedFileSystemManager.instance().fileSystems();
|
86
81
|
for (let i = 0; i < fileSystems.length; ++i) {
|
87
82
|
this.addItem(fileSystems[i]);
|
88
83
|
}
|
84
|
+
|
85
|
+
this.#addButtonContainer = this.containerElement.createChild('div', 'add-button-container');
|
86
|
+
const addButton = UI.UIUtils.createTextButton(
|
87
|
+
i18nString(UIStrings.addFolder), this.addFileSystemClicked.bind(this),
|
88
|
+
{jslogContext: 'sources.add-folder-to-workspace'});
|
89
|
+
addButton.classList.add('add-folder');
|
90
|
+
this.#addButtonContainer.appendChild(addButton);
|
89
91
|
}
|
90
92
|
|
91
93
|
override wasShown(): void {
|
@@ -93,19 +95,20 @@ export class WorkspaceSettingsTab extends UI.Widget.VBox {
|
|
93
95
|
this.registerCSSFiles([workspaceSettingsTabStyles]);
|
94
96
|
}
|
95
97
|
|
96
|
-
private createFolderExcludePatternInput():
|
97
|
-
const
|
98
|
-
|
98
|
+
private createFolderExcludePatternInput(): HTMLElement {
|
99
|
+
const excludePatternElement = document.createElement('div');
|
100
|
+
excludePatternElement.classList.add('folder-exclude-pattern');
|
101
|
+
const labelElement = excludePatternElement.createChild('label');
|
99
102
|
labelElement.textContent = i18nString(UIStrings.folderExcludePattern);
|
100
103
|
const folderExcludeSetting = IsolatedFileSystemManager.instance().workspaceFolderExcludePatternSetting();
|
101
104
|
const inputElement = UI.UIUtils.createInput('', 'text', folderExcludeSetting.name);
|
102
105
|
UI.ARIAUtils.bindLabelToControl(labelElement, inputElement);
|
103
|
-
|
106
|
+
excludePatternElement.appendChild(inputElement);
|
104
107
|
const setValue =
|
105
108
|
UI.UIUtils.bindInput(inputElement, folderExcludeSetting.set.bind(folderExcludeSetting), regexValidator, false);
|
106
109
|
folderExcludeSetting.addChangeListener(() => setValue.call(null, folderExcludeSetting.get()));
|
107
110
|
setValue(folderExcludeSetting.get());
|
108
|
-
return
|
111
|
+
return excludePatternElement;
|
109
112
|
|
110
113
|
function regexValidator(value: string): {valid: boolean, errorMessage: (string|undefined)} {
|
111
114
|
let regex;
|
@@ -129,41 +132,34 @@ export class WorkspaceSettingsTab extends UI.Widget.VBox {
|
|
129
132
|
fileSystem) {
|
130
133
|
return;
|
131
134
|
}
|
132
|
-
const
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
135
|
+
const filename = this.getFilename(fileSystem);
|
136
|
+
const removeButton = UI.UIUtils.createTextButton(
|
137
|
+
i18nString(UIStrings.remove), this.removeFileSystemClicked.bind(this, fileSystem),
|
138
|
+
{jslogContext: 'settings.remove-file-system'});
|
139
|
+
|
140
|
+
const mappingViewContainer = document.createElement('div');
|
141
|
+
mappingViewContainer.classList.add('mapping-view-container');
|
142
|
+
const fileSystemExcludeCard = new Cards.Card.Card();
|
143
|
+
this.containerElement.insertBefore(fileSystemExcludeCard, this.#addButtonContainer);
|
144
|
+
fileSystemExcludeCard.data = {
|
145
|
+
heading: filename,
|
146
|
+
headingIconName: 'folder',
|
147
|
+
headingSuffix: removeButton,
|
148
|
+
content: [mappingViewContainer],
|
149
|
+
};
|
137
150
|
const mappingView = new EditFileSystemView(fileSystem.path());
|
138
151
|
this.mappingViewByPath.set(fileSystem.path(), mappingView);
|
139
152
|
mappingView.element.classList.add('file-system-mapping-view');
|
140
|
-
|
153
|
+
|
154
|
+
mappingView.show(mappingViewContainer);
|
155
|
+
|
156
|
+
this.elementByPath.set(fileSystem.path(), fileSystemExcludeCard);
|
141
157
|
}
|
142
158
|
|
143
|
-
private
|
159
|
+
private getFilename(fileSystem: PlatformFileSystem): string {
|
144
160
|
const fileSystemPath = fileSystem.path();
|
145
161
|
const lastIndexOfSlash = fileSystemPath.lastIndexOf('/');
|
146
|
-
|
147
|
-
|
148
|
-
const element = document.createElement('div');
|
149
|
-
element.classList.add('file-system-container');
|
150
|
-
const header = element.createChild('div', 'file-system-header');
|
151
|
-
|
152
|
-
const nameElement = header.createChild('div', 'file-system-name');
|
153
|
-
nameElement.textContent = folderName;
|
154
|
-
UI.ARIAUtils.markAsHeading(nameElement, 2);
|
155
|
-
const path = header.createChild('div', 'file-system-path');
|
156
|
-
path.textContent = fileSystemPath;
|
157
|
-
UI.Tooltip.Tooltip.install(path, fileSystemPath);
|
158
|
-
|
159
|
-
const toolbar = new UI.Toolbar.Toolbar('');
|
160
|
-
const button =
|
161
|
-
new UI.Toolbar.ToolbarButton(i18nString(UIStrings.remove), 'cross', undefined, 'settings.remove-file-system');
|
162
|
-
button.addEventListener(UI.Toolbar.ToolbarButton.Events.CLICK, this.removeFileSystemClicked.bind(this, fileSystem));
|
163
|
-
toolbar.appendToolbarItem(button);
|
164
|
-
header.appendChild(toolbar.element);
|
165
|
-
|
166
|
-
return element;
|
162
|
+
return fileSystemPath.substr(lastIndexOfSlash + 1);
|
167
163
|
}
|
168
164
|
|
169
165
|
private removeFileSystemClicked(fileSystem: PlatformFileSystem): void {
|
@@ -4,20 +4,33 @@
|
|
4
4
|
* found in the LICENSE file.
|
5
5
|
*/
|
6
6
|
|
7
|
-
.
|
7
|
+
.excluded-folder-header {
|
8
8
|
display: flex;
|
9
|
-
flex-direction:
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
flex-direction: column;
|
10
|
+
height: var(--sys-size-16);
|
11
|
+
border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
|
12
|
+
padding: var(--sys-size-5) var(--sys-size-6);
|
13
|
+
|
14
|
+
& > .excluded-folder-url {
|
15
|
+
color: var(--sys-color-on-surface-subtle);
|
16
|
+
overflow: hidden;
|
17
|
+
text-overflow: ellipsis;
|
18
|
+
}
|
13
19
|
}
|
14
20
|
|
15
|
-
.
|
16
|
-
|
21
|
+
.exclude-subfolders-text,
|
22
|
+
.file-system-list-empty {
|
23
|
+
padding: 0 var(--sys-size-6);
|
24
|
+
height: var(--sys-size-13);
|
25
|
+
}
|
26
|
+
|
27
|
+
.exclude-subfolders-text {
|
28
|
+
align-items: center;
|
29
|
+
display: flex;
|
17
30
|
}
|
18
31
|
|
19
32
|
.add-button {
|
20
|
-
|
33
|
+
padding: var(--sys-size-4) var(--sys-size-6);
|
21
34
|
align-self: flex-start;
|
22
35
|
}
|
23
36
|
|
@@ -26,17 +39,12 @@
|
|
26
39
|
}
|
27
40
|
|
28
41
|
.file-system-list-empty {
|
29
|
-
flex: auto;
|
30
|
-
height: 30px;
|
31
42
|
display: flex;
|
32
43
|
align-items: center;
|
33
|
-
justify-content: center;
|
34
|
-
text-align: center;
|
35
44
|
}
|
36
45
|
|
37
46
|
.file-system-list-item {
|
38
|
-
|
39
|
-
height: 30px;
|
47
|
+
height: var(--sys-size-13);
|
40
48
|
display: flex;
|
41
49
|
align-items: center;
|
42
50
|
flex: auto 1 1;
|
@@ -46,6 +54,18 @@
|
|
46
54
|
flex: 1 1 0;
|
47
55
|
}
|
48
56
|
|
57
|
+
.list {
|
58
|
+
border: none;
|
59
|
+
}
|
60
|
+
|
61
|
+
.list-item {
|
62
|
+
padding: 0 var(--sys-size-6);
|
63
|
+
}
|
64
|
+
|
65
|
+
.editor-buttons {
|
66
|
+
padding: var(--sys-size-4) var(--sys-size-6);
|
67
|
+
}
|
68
|
+
|
49
69
|
.list-item .file-system-value {
|
50
70
|
white-space: nowrap;
|
51
71
|
text-overflow: ellipsis;
|
@@ -57,7 +77,7 @@
|
|
57
77
|
flex: none;
|
58
78
|
display: flex;
|
59
79
|
flex-direction: row;
|
60
|
-
margin:
|
80
|
+
margin: var(--sys-size-4) var(--sys-size-6);
|
61
81
|
align-items: center;
|
62
82
|
}
|
63
83
|
|