chrome-devtools-frontend 1.0.1549484 → 1.0.1553956
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/docs/styleguide/ux/components.md +84 -17
- package/docs/styleguide/ux/images/cards.png +0 -0
- package/docs/ui_engineering.md +2 -2
- package/eslint.config.mjs +7 -0
- package/front_end/Images/generate-css-vars.js +8 -4
- package/front_end/core/common/Settings.ts +20 -8
- package/front_end/core/host/UserMetrics.ts +3 -1
- package/front_end/core/i18n/collect-ui-strings.js +19 -10
- package/front_end/core/i18n/generate-locales-js.js +4 -4
- package/front_end/core/protocol_client/CDPConnection.ts +1 -0
- package/front_end/core/protocol_client/InspectorBackend.ts +5 -1
- package/front_end/core/root/Runtime.ts +0 -12
- package/front_end/core/sdk/DOMModel.ts +38 -3
- package/front_end/core/sdk/DebuggerModel.ts +9 -4
- package/front_end/core/sdk/IsolateManager.ts +7 -0
- package/front_end/core/sdk/NetworkManager.ts +12 -10
- package/front_end/core/sdk/PageResourceLoader.ts +11 -4
- package/front_end/core/sdk/RehydratingConnection.ts +5 -2
- package/front_end/core/sdk/SourceMapManager.ts +12 -6
- package/front_end/entrypoints/main/MainImpl.ts +28 -19
- package/front_end/foundation/Universe.ts +7 -0
- package/front_end/generated/InspectorBackendCommands.ts +5 -2
- package/front_end/generated/SupportedCSSProperties.js +14 -0
- package/front_end/generated/protocol-mapping.d.ts +8 -0
- package/front_end/generated/protocol-proxy-api.d.ts +6 -0
- package/front_end/generated/protocol.ts +76 -0
- package/front_end/models/ai_assistance/AiConversation.ts +94 -4
- package/front_end/models/ai_assistance/BuiltInAi.ts +79 -5
- package/front_end/models/ai_assistance/agents/AiAgent.ts +30 -15
- package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +179 -41
- package/front_end/models/ai_assistance/agents/StylingAgent.snapshot.txt +5 -0
- package/front_end/models/ai_assistance/agents/StylingAgent.ts +62 -0
- package/front_end/models/ai_assistance/data_formatters/NetworkRequestFormatter.ts +2 -1
- package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.ts +1 -7
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +124 -12
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.ts +125 -30
- package/front_end/models/ai_assistance/performance/AICallTree.ts +42 -0
- package/front_end/models/ai_code_generation/AiCodeGeneration.ts +12 -0
- package/front_end/models/issues_manager/AttributionReportingIssue.ts +6 -8
- package/front_end/models/issues_manager/BounceTrackingIssue.ts +4 -14
- package/front_end/models/issues_manager/ClientHintIssue.ts +5 -12
- package/front_end/models/issues_manager/ContentSecurityPolicyIssue.ts +5 -12
- package/front_end/models/issues_manager/CookieDeprecationMetadataIssue.ts +7 -14
- package/front_end/models/issues_manager/CookieIssue.ts +27 -30
- package/front_end/models/issues_manager/CorsIssue.ts +8 -17
- package/front_end/models/issues_manager/CrossOriginEmbedderPolicyIssue.ts +5 -8
- package/front_end/models/issues_manager/DeprecationIssue.ts +7 -14
- package/front_end/models/issues_manager/ElementAccessibilityIssue.ts +7 -14
- package/front_end/models/issues_manager/FederatedAuthRequestIssue.ts +4 -11
- package/front_end/models/issues_manager/FederatedAuthUserInfoRequestIssue.ts +4 -11
- package/front_end/models/issues_manager/GenericIssue.ts +11 -16
- package/front_end/models/issues_manager/HeavyAdIssue.ts +4 -11
- package/front_end/models/issues_manager/Issue.ts +13 -4
- package/front_end/models/issues_manager/IssueAggregator.ts +17 -2
- package/front_end/models/issues_manager/IssuesManager.ts +5 -0
- package/front_end/models/issues_manager/LowTextContrastIssue.ts +3 -10
- package/front_end/models/issues_manager/MixedContentIssue.ts +7 -13
- package/front_end/models/issues_manager/PartitioningBlobURLIssue.ts +4 -11
- package/front_end/models/issues_manager/PermissionElementIssue.ts +262 -0
- package/front_end/models/issues_manager/PropertyRuleIssue.ts +6 -12
- package/front_end/models/issues_manager/QuirksModeIssue.ts +3 -10
- package/front_end/models/issues_manager/SRIMessageSignatureIssue.ts +7 -13
- package/front_end/models/issues_manager/SharedArrayBufferIssue.ts +4 -11
- package/front_end/models/issues_manager/SharedDictionaryIssue.ts +6 -13
- package/front_end/models/issues_manager/StylesheetLoadingIssue.ts +8 -13
- package/front_end/models/issues_manager/UnencodedDigestIssue.ts +2 -9
- package/front_end/models/issues_manager/descriptions/permissionElementActivationDisabled.md +7 -0
- package/front_end/models/issues_manager/descriptions/permissionElementActivationDisabledWithOccluder.md +9 -0
- package/front_end/models/issues_manager/descriptions/permissionElementActivationDisabledWithOccluderParent.md +9 -0
- package/front_end/models/issues_manager/descriptions/permissionElementCspFrameAncestorsMissing.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementFencedFrameDisallowed.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementFontSizeTooLarge.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementFontSizeTooSmall.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementGeolocationDeprecated.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementInsetBoxShadowUnsupported.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementInvalidDisplayStyle.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementInvalidSizeValue.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementInvalidType.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementInvalidTypeActivation.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementLowContrast.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementNonOpaqueColor.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementPaddingBottomUnsupported.md +6 -0
- package/front_end/models/issues_manager/descriptions/permissionElementPaddingRightUnsupported.md +6 -0
- package/front_end/models/issues_manager/descriptions/permissionElementPermissionsPolicyBlocked.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementRegistrationFailed.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementRequestInProgress.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementSecurityChecksFailed.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementTypeNotSupported.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementUntrustedEvent.md +7 -0
- package/front_end/models/issues_manager/issues_manager.ts +2 -0
- package/front_end/models/javascript_metadata/NativeFunctions.js +8 -13
- package/front_end/models/stack_trace/StackTraceModel.ts +37 -18
- package/front_end/models/trace/Processor.ts +14 -15
- package/front_end/models/trace/insights/Common.ts +2 -8
- package/front_end/models/trace/insights/types.ts +12 -2
- package/front_end/models/trace/types/TraceEvents.ts +4 -1
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +28 -6
- package/front_end/panels/ai_assistance/ai_assistance-meta.ts +9 -23
- package/front_end/panels/ai_assistance/ai_assistance.ts +1 -0
- package/front_end/panels/ai_assistance/components/ChatView.ts +78 -2
- package/front_end/panels/ai_assistance/components/CollapsibleAssistanceContentWidget.ts +71 -0
- package/front_end/panels/ai_assistance/components/PerformanceAgentFlameChart.ts +126 -0
- package/front_end/panels/ai_assistance/components/PerformanceAgentMarkdownRenderer.ts +131 -2
- package/front_end/panels/ai_assistance/components/chatView.css +28 -0
- package/front_end/panels/ai_assistance/components/collapsibleAssistanceContentWidget.css +33 -0
- package/front_end/panels/application/AppManifestView.ts +1007 -521
- package/front_end/panels/application/ApplicationPanelSidebar.ts +22 -38
- package/front_end/panels/application/BackForwardCacheTreeElement.ts +2 -2
- package/front_end/panels/application/BounceTrackingMitigationsTreeElement.ts +2 -2
- package/front_end/panels/application/ExtensionStorageItemsView.ts +3 -5
- package/front_end/panels/application/InterestGroupTreeElement.ts +2 -2
- package/front_end/panels/application/KeyValueStorageItemsView.ts +3 -2
- package/front_end/panels/application/OpenedWindowDetailsView.ts +2 -2
- package/front_end/panels/application/OriginTrialTreeView.ts +1 -1
- package/front_end/panels/application/PreloadingTreeElement.ts +3 -3
- package/front_end/panels/application/ReportingApiTreeElement.ts +2 -2
- package/front_end/panels/application/ServiceWorkerCacheTreeElement.ts +3 -3
- package/front_end/panels/application/SharedStorageListTreeElement.ts +2 -2
- package/front_end/panels/application/StorageBucketsTreeElement.ts +3 -3
- package/front_end/panels/application/StorageView.ts +2 -2
- package/front_end/panels/application/TrustTokensTreeElement.ts +2 -2
- package/front_end/panels/application/components/BackForwardCacheView.ts +2 -2
- package/front_end/panels/application/components/PermissionsPolicySection.ts +1 -1
- package/front_end/panels/application/components/ProtocolHandlersView.ts +1 -1
- package/front_end/panels/application/components/SharedStorageMetadataView.ts +1 -1
- package/front_end/panels/application/components/TrustTokensView.ts +1 -1
- package/front_end/panels/application/preloading/PreloadingView.ts +46 -45
- package/front_end/panels/application/preloading/components/MismatchedPreloadingGrid.ts +80 -75
- package/front_end/panels/application/preloading/components/PreloadingDisabledInfobar.ts +169 -133
- package/front_end/panels/application/preloading/components/PreloadingGrid.ts +1 -1
- package/front_end/panels/application/preloading/components/RuleSetDetailsView.ts +74 -93
- package/front_end/panels/application/preloading/components/RuleSetGrid.ts +143 -118
- package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +52 -12
- package/front_end/panels/application/preloading/components/components.ts +0 -2
- package/front_end/panels/changes/ChangesSidebar.ts +2 -0
- package/front_end/panels/changes/CombinedDiffView.ts +2 -0
- package/front_end/panels/common/Annotation.ts +184 -0
- package/front_end/panels/common/AnnotationManager.ts +208 -0
- package/front_end/panels/common/ExtensionView.ts +47 -0
- package/front_end/panels/common/PersistenceUtils.ts +22 -26
- package/front_end/panels/common/annotation.css +40 -0
- package/front_end/panels/common/common.ts +2 -0
- package/front_end/panels/console/ConsoleInsightTeaser.ts +187 -5
- package/front_end/panels/console/ConsolePinPane.ts +437 -217
- package/front_end/panels/console/ConsolePrompt.ts +36 -227
- package/front_end/panels/console/ConsoleView.ts +69 -68
- package/front_end/panels/console/ConsoleViewMessage.ts +18 -14
- package/front_end/panels/console/consoleInsightTeaser.css +23 -0
- package/front_end/panels/console/consoleView.css +1 -1
- package/front_end/panels/console_counters/WarningErrorCounter.ts +2 -0
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +1 -1
- package/front_end/panels/elements/AdoptedStyleSheetTreeElement.ts +89 -0
- package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +5 -5
- package/front_end/panels/elements/ComputedStyleWidget.ts +16 -5
- package/front_end/panels/elements/ElementsPanel.ts +75 -0
- package/front_end/panels/elements/ElementsSidebarPane.ts +1 -3
- package/front_end/panels/elements/ElementsTreeElement.ts +459 -451
- package/front_end/panels/elements/ElementsTreeOutline.ts +48 -15
- package/front_end/panels/elements/ShortcutTreeElement.ts +2 -2
- package/front_end/panels/elements/StyleEditorWidget.ts +2 -2
- package/front_end/panels/elements/StylePropertyTreeElement.ts +21 -20
- package/front_end/panels/elements/StylesSidebarPane.ts +5 -6
- package/front_end/panels/elements/TopLayerContainer.ts +2 -2
- package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +1 -1
- package/front_end/panels/elements/components/ElementsTreeExpandButton.ts +1 -1
- package/front_end/panels/elements/components/QueryContainer.ts +1 -1
- package/front_end/panels/elements/components/StylePropertyEditor.ts +1 -1
- package/front_end/panels/emulation/DeviceModeWrapper.ts +48 -3
- package/front_end/panels/emulation/MediaQueryInspector.ts +171 -125
- package/front_end/panels/explain/components/ConsoleInsight.ts +181 -154
- package/front_end/panels/explain/components/consoleInsight.css +348 -347
- package/front_end/panels/issues/AffectedPermissionElementsView.ts +46 -0
- package/front_end/panels/issues/AffectedResourcesView.ts +2 -2
- package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +2 -2
- package/front_end/panels/issues/IssueKindView.ts +2 -2
- package/front_end/panels/issues/IssueView.ts +6 -4
- package/front_end/panels/issues/IssuesPane.ts +6 -0
- package/front_end/panels/js_timeline/js_timeline-meta.ts +4 -2
- package/front_end/panels/layer_viewer/LayerDetailsView.ts +165 -149
- package/front_end/panels/layer_viewer/Layers3DView.ts +131 -78
- package/front_end/panels/lighthouse/LighthouseStatusView.ts +149 -100
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryHighlightChipList.ts +91 -65
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.ts +25 -34
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryNavigator.ts +1 -1
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryValueInterpreter.ts +61 -45
- package/front_end/panels/linear_memory_inspector/components/ValueInterpreterDisplay.ts +171 -152
- package/front_end/panels/linear_memory_inspector/components/ValueInterpreterSettings.ts +50 -51
- package/front_end/panels/linear_memory_inspector/components/valueInterpreterDisplay.css +0 -13
- package/front_end/panels/linear_memory_inspector/components/valueInterpreterSettings.css +20 -18
- package/front_end/panels/media/PlayerListView.ts +1 -1
- package/front_end/panels/mobile_throttling/CalibrationController.ts +3 -1
- package/front_end/panels/mobile_throttling/ThrottlingManager.ts +2 -2
- package/front_end/panels/mobile_throttling/ThrottlingSettingsTab.ts +2 -3
- package/front_end/panels/network/NetworkDataGridNode.ts +17 -9
- package/front_end/panels/network/NetworkFrameGrouper.ts +2 -2
- package/front_end/panels/network/NetworkItemView.ts +46 -7
- package/front_end/panels/network/NetworkLogView.ts +10 -11
- package/front_end/panels/network/NetworkLogViewColumns.ts +3 -3
- package/front_end/panels/network/NetworkPanel.ts +63 -1
- package/front_end/panels/network/RequestCookiesView.ts +2 -2
- package/front_end/panels/network/RequestInitiatorView.ts +146 -113
- package/front_end/panels/network/SignedExchangeInfoView.ts +2 -2
- package/front_end/panels/network/components/RequestHeaderSection.css +51 -50
- package/front_end/panels/network/components/RequestHeaderSection.ts +81 -71
- package/front_end/panels/network/components/RequestHeadersView.css +1 -1
- package/front_end/panels/network/components/RequestHeadersView.ts +26 -11
- package/front_end/panels/network/components/RequestTrustTokensView.css +24 -14
- package/front_end/panels/network/components/RequestTrustTokensView.ts +145 -142
- package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +3 -3
- package/front_end/panels/profiler/IsolateSelector.ts +2 -1
- package/front_end/panels/profiler/ProfileDataGrid.ts +2 -2
- package/front_end/panels/profiler/ProfilesPanel.ts +2 -2
- package/front_end/panels/protocol_monitor/JSONEditor.ts +1 -1
- package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +49 -33
- package/front_end/panels/recorder/RecorderController.ts +2 -3
- package/front_end/panels/recorder/components/ControlButton.ts +68 -34
- package/front_end/panels/recorder/components/CreateRecordingView.ts +10 -7
- package/front_end/panels/recorder/components/ExtensionView.ts +1 -1
- package/front_end/panels/recorder/components/RecordingListView.ts +1 -1
- package/front_end/panels/recorder/components/RecordingView.ts +82 -89
- package/front_end/panels/recorder/components/ReplaySection.ts +226 -145
- package/front_end/panels/recorder/{controllers → components}/SelectorPicker.ts +129 -52
- package/front_end/panels/recorder/components/StepEditor.ts +21 -67
- package/front_end/panels/recorder/components/StepView.ts +223 -181
- package/front_end/panels/recorder/components/TimelineSection.ts +69 -48
- package/front_end/panels/recorder/components/components.ts +2 -2
- package/front_end/panels/recorder/components/selectorPicker.css +14 -0
- package/front_end/panels/recorder/components/stepEditor.css +0 -5
- package/front_end/panels/recorder/components/stepView.css +196 -198
- package/front_end/panels/recorder/extensions/ExtensionManager.ts +4 -48
- package/front_end/panels/recorder/models/ScreenshotUtils.ts +17 -11
- package/front_end/panels/screencast/ScreencastView.ts +8 -8
- package/front_end/panels/search/SearchView.ts +1 -1
- package/front_end/panels/security/CookieControlsTreeElement.ts +2 -2
- package/front_end/panels/security/CookieControlsView.ts +9 -16
- package/front_end/panels/security/CookieReportTreeElement.ts +2 -2
- package/front_end/panels/security/SecurityPanel.ts +5 -5
- package/front_end/panels/security/SecurityPanelSidebar.ts +3 -4
- package/front_end/panels/settings/KeybindsSettingsTab.ts +4 -4
- package/front_end/panels/settings/SettingsScreen.ts +2 -3
- package/front_end/panels/settings/components/SyncSection.ts +0 -1
- package/front_end/panels/snippets/SnippetsQuickOpen.ts +16 -8
- package/front_end/panels/sources/BreakpointEditDialog.ts +3 -3
- package/front_end/panels/sources/BreakpointsView.ts +1 -1
- package/front_end/panels/sources/CSSPlugin.ts +6 -6
- package/front_end/panels/sources/CallStackSidebarPane.ts +63 -78
- package/front_end/panels/sources/DebuggerPausedMessage.ts +3 -3
- package/front_end/panels/sources/FilteredUISourceCodeListProvider.ts +39 -30
- package/front_end/panels/sources/GoToLineQuickOpen.ts +11 -7
- package/front_end/panels/sources/NavigatorView.ts +2 -2
- package/front_end/panels/sources/OpenFileQuickOpen.ts +11 -15
- package/front_end/panels/sources/OutlineQuickOpen.ts +23 -26
- package/front_end/panels/sources/SourcesPanel.ts +1 -11
- package/front_end/panels/sources/SourcesView.ts +2 -2
- package/front_end/panels/sources/TabbedEditorContainer.ts +13 -11
- package/front_end/panels/sources/ThreadsSidebarPane.ts +96 -101
- package/front_end/panels/sources/UISourceCodeFrame.ts +5 -5
- package/front_end/panels/sources/threadsSidebarPane.css +6 -5
- package/front_end/panels/timeline/InteractionsTrackAppender.ts +2 -3
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +23 -33
- package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +4 -3
- package/front_end/panels/timeline/TimelineFlameChartView.ts +12 -0
- package/front_end/panels/timeline/TimelineHistoryManager.ts +2 -2
- package/front_end/panels/timeline/TimelinePanel.ts +17 -14
- package/front_end/panels/timeline/components/CPUThrottlingSelector.ts +1 -1
- package/front_end/panels/timeline/components/IgnoreListSetting.ts +164 -142
- package/front_end/panels/timeline/components/InteractionBreakdown.ts +48 -28
- package/front_end/panels/timeline/components/LayoutShiftDetails.ts +18 -23
- package/front_end/panels/timeline/components/LiveMetricsView.ts +1 -1
- package/front_end/panels/timeline/components/NetworkRequestTooltip.ts +99 -74
- package/front_end/panels/timeline/components/NetworkThrottlingSelector.ts +1 -1
- package/front_end/panels/timeline/components/OriginMap.ts +1 -1
- package/front_end/panels/timeline/components/SidebarInsightsTab.ts +9 -12
- package/front_end/panels/timeline/components/SidebarSingleInsightSet.ts +262 -291
- package/front_end/panels/timeline/components/Utils.ts +25 -0
- package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +210 -146
- package/front_end/panels/timeline/components/insights/CLSCulprits.ts +8 -20
- package/front_end/panels/timeline/components/insights/Cache.ts +0 -9
- package/front_end/panels/timeline/components/insights/Checklist.ts +1 -1
- package/front_end/panels/timeline/components/insights/DOMSize.ts +12 -34
- package/front_end/panels/timeline/components/insights/DocumentLatency.ts +0 -9
- package/front_end/panels/timeline/components/insights/DuplicatedJavaScript.ts +0 -9
- package/front_end/panels/timeline/components/insights/EventRef.ts +47 -109
- package/front_end/panels/timeline/components/insights/FontDisplay.ts +0 -9
- package/front_end/panels/timeline/components/insights/ForcedReflow.ts +0 -9
- package/front_end/panels/timeline/components/insights/INPBreakdown.ts +0 -9
- package/front_end/panels/timeline/components/insights/ImageDelivery.ts +2 -11
- package/front_end/panels/timeline/components/insights/ImageRef.ts +112 -0
- package/front_end/panels/timeline/components/insights/InsightRenderer.ts +91 -0
- package/front_end/panels/timeline/components/insights/LCPBreakdown.ts +0 -9
- package/front_end/panels/timeline/components/insights/LCPDiscovery.ts +4 -11
- package/front_end/panels/timeline/components/insights/LegacyJavaScript.ts +0 -9
- package/front_end/panels/timeline/components/insights/ModernHTTP.ts +0 -9
- package/front_end/panels/timeline/components/insights/NetworkDependencyTree.ts +7 -22
- package/front_end/panels/timeline/components/insights/NodeLink.ts +68 -43
- package/front_end/panels/timeline/components/insights/README.md +2 -3
- package/front_end/panels/timeline/components/insights/RenderBlocking.ts +0 -9
- package/front_end/panels/timeline/components/insights/SlowCSSSelector.ts +0 -9
- package/front_end/panels/timeline/components/insights/ThirdParties.ts +0 -9
- package/front_end/panels/timeline/components/insights/Viewport.ts +7 -19
- package/front_end/panels/timeline/components/insights/baseInsightComponent.css +5 -0
- package/front_end/panels/timeline/components/insights/insights.ts +2 -0
- package/front_end/panels/timeline/components/interactionBreakdown.css +15 -13
- package/front_end/panels/timeline/enable-easter-egg.js +7 -3
- package/front_end/panels/timeline/overlays/components/EntriesLinkOverlay.ts +1 -1
- package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +1 -1
- package/front_end/panels/timeline/timeline-meta.ts +3 -2
- package/front_end/panels/utils/utils.ts +1 -0
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/puppeteer/README.chromium +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BluetoothEmulation.d.ts +96 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BluetoothEmulation.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BluetoothEmulation.js +8 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BluetoothEmulation.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts +87 -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/DeviceRequestPrompt.d.ts +2 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/DeviceRequestPrompt.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/DeviceRequestPrompt.js +5 -24
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/DeviceRequestPrompt.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts +5 -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/api/api.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/api.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/api.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BluetoothEmulation.d.ts +18 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BluetoothEmulation.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BluetoothEmulation.js +42 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BluetoothEmulation.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.d.ts +4 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.js +10 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/DeviceRequestPrompt.d.ts +27 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/DeviceRequestPrompt.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/DeviceRequestPrompt.js +90 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/DeviceRequestPrompt.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.d.ts +3 -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 +3 -2
- 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/Page.d.ts +4 -1
- 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 +5 -2
- 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/bidi/core/BrowsingContext.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.js +14 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/util.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/util.js +7 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/util.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BluetoothEmulation.d.ts +18 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BluetoothEmulation.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BluetoothEmulation.js +30 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BluetoothEmulation.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts +5 -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 +22 -3
- 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/CdpSession.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/CdpSession.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/DeviceRequestPrompt.d.ts +2 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/DeviceRequestPrompt.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/DeviceRequestPrompt.js +4 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/DeviceRequestPrompt.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/FrameManager.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/FrameManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/FrameManager.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts +2 -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 +8 -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/cdp/WebWorker.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/WebWorker.js +8 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/WebWorker.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/cdp.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/cdp.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/cdp.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/cdp.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js +30 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConnectOptions.d.ts +15 -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/injected/injected.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js +2 -13
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.d.ts +5 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.js +17 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.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/cjs/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +221 -4
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +182 -95
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BluetoothEmulation.d.ts +96 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BluetoothEmulation.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BluetoothEmulation.js +7 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BluetoothEmulation.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts +87 -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/DeviceRequestPrompt.d.ts +2 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/DeviceRequestPrompt.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/DeviceRequestPrompt.js +4 -22
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/DeviceRequestPrompt.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts +5 -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/api/api.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/api.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/api.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BluetoothEmulation.d.ts +18 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BluetoothEmulation.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BluetoothEmulation.js +38 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BluetoothEmulation.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.d.ts +4 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.js +10 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/DeviceRequestPrompt.d.ts +27 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/DeviceRequestPrompt.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/DeviceRequestPrompt.js +85 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/DeviceRequestPrompt.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.d.ts +3 -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 +3 -2
- 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/Page.d.ts +4 -1
- 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 +5 -2
- 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/bidi/core/BrowsingContext.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.js +14 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/util.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/util.js +7 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/util.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BluetoothEmulation.d.ts +18 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BluetoothEmulation.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BluetoothEmulation.js +26 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BluetoothEmulation.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts +5 -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 +22 -3
- 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/CdpSession.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/CdpSession.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/DeviceRequestPrompt.d.ts +2 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/DeviceRequestPrompt.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/DeviceRequestPrompt.js +2 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/DeviceRequestPrompt.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/FrameManager.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/FrameManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/FrameManager.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts +2 -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 +8 -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/cdp/WebWorker.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/WebWorker.js +8 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/WebWorker.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/cdp.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/cdp.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/cdp.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/cdp.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js +31 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectOptions.d.ts +15 -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/node/ChromeLauncher.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js +2 -13
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts +5 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.js +16 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +221 -4
- package/front_end/third_party/puppeteer/package/package.json +4 -4
- package/front_end/third_party/puppeteer/package/src/api/BluetoothEmulation.ts +103 -0
- package/front_end/third_party/puppeteer/package/src/api/Browser.ts +96 -1
- package/front_end/third_party/puppeteer/package/src/api/DeviceRequestPrompt.ts +2 -10
- package/front_end/third_party/puppeteer/package/src/api/Page.ts +6 -0
- package/front_end/third_party/puppeteer/package/src/api/api.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/bidi/BluetoothEmulation.ts +52 -0
- package/front_end/third_party/puppeteer/package/src/bidi/Browser.ts +15 -0
- package/front_end/third_party/puppeteer/package/src/bidi/DeviceRequestPrompt.ts +138 -0
- package/front_end/third_party/puppeteer/package/src/bidi/Frame.ts +7 -3
- package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +10 -2
- package/front_end/third_party/puppeteer/package/src/bidi/core/BrowsingContext.ts +30 -2
- package/front_end/third_party/puppeteer/package/src/bidi/util.ts +8 -0
- package/front_end/third_party/puppeteer/package/src/cdp/Accessibility.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/cdp/BluetoothEmulation.ts +47 -0
- package/front_end/third_party/puppeteer/package/src/cdp/Browser.ts +33 -3
- package/front_end/third_party/puppeteer/package/src/cdp/CdpSession.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/cdp/DeviceRequestPrompt.ts +3 -8
- package/front_end/third_party/puppeteer/package/src/cdp/Frame.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/cdp/FrameManager.ts +9 -4
- package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +13 -0
- package/front_end/third_party/puppeteer/package/src/cdp/WebWorker.ts +8 -3
- package/front_end/third_party/puppeteer/package/src/cdp/cdp.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/common/BrowserConnector.ts +45 -1
- package/front_end/third_party/puppeteer/package/src/common/ConnectOptions.ts +20 -0
- package/front_end/third_party/puppeteer/package/src/node/ChromeLauncher.ts +5 -17
- package/front_end/third_party/puppeteer/package/src/node/LaunchOptions.ts +23 -7
- package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
- package/front_end/third_party/puppeteer/puppeteer-tsconfig.json +4 -0
- package/front_end/ui/components/adorners/Adorner.ts +20 -0
- package/front_end/ui/components/annotations/AnnotationRepository.ts +154 -14
- package/front_end/ui/components/buttons/Button.ts +1 -1
- package/front_end/ui/components/buttons/FloatingButton.ts +1 -1
- package/front_end/ui/components/highlighting/HighlightElement.ts +15 -2
- package/front_end/ui/components/icon_button/FileSourceIcon.ts +1 -1
- package/front_end/ui/components/icon_button/IconButton.ts +1 -1
- package/front_end/ui/components/icon_button/icon_button.ts +0 -2
- package/front_end/ui/components/issue_counter/IssueCounter.ts +1 -1
- package/front_end/ui/components/issue_counter/IssueLinkIcon.ts +1 -1
- package/front_end/ui/components/markdown_view/MarkdownImage.ts +3 -3
- package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +1 -1
- package/front_end/ui/components/settings/SettingDeprecationWarning.ts +1 -1
- package/front_end/ui/components/snackbars/Snackbars.docs.ts +0 -1
- package/front_end/ui/components/survey_link/SurveyLink.ts +1 -1
- package/front_end/ui/components/text_editor/AiCodeCompletionTeaserPlaceholder.ts +12 -3
- package/front_end/ui/components/text_editor/AiCodeGenerationProvider.ts +182 -0
- package/front_end/ui/components/text_editor/config.ts +2 -2
- package/front_end/ui/components/text_editor/text_editor.ts +1 -0
- package/front_end/ui/helpers/OpenInNewTab.ts +5 -1
- package/front_end/ui/i18n/i18n.ts +9 -9
- package/front_end/ui/kit/cards/Card.docs.ts +43 -0
- package/front_end/ui/kit/icons/Icon.docs.ts +34 -0
- package/front_end/ui/{components/icon_button → kit/icons}/Icon.ts +4 -4
- package/front_end/ui/kit/kit.ts +2 -0
- package/front_end/ui/kit/link/Link.docs.ts +15 -0
- package/front_end/ui/kit/link/Link.ts +151 -0
- package/front_end/ui/kit/link/link.css +27 -0
- package/front_end/ui/legacy/EmptyWidget.ts +6 -0
- package/front_end/ui/legacy/Floaty.ts +442 -0
- package/front_end/ui/legacy/Infobar.ts +3 -3
- package/front_end/ui/legacy/InspectorView.ts +15 -3
- package/front_end/ui/legacy/ReportView.ts +1 -1
- package/front_end/ui/legacy/SearchableView.ts +2 -2
- package/front_end/ui/legacy/SelectMenu.docs.ts +0 -1
- package/front_end/ui/legacy/SoftContextMenu.ts +5 -5
- package/front_end/ui/legacy/SoftDropDown.ts +2 -2
- package/front_end/ui/legacy/TabbedPane.ts +139 -61
- package/front_end/ui/legacy/Toolbar.ts +3 -3
- package/front_end/ui/legacy/Treeoutline.ts +2 -2
- package/front_end/ui/legacy/UIUtils.ts +4 -4
- package/front_end/ui/legacy/ViewManager.ts +4 -4
- package/front_end/ui/legacy/components/color_picker/ContrastDetails.ts +8 -8
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +4 -4
- package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +5 -5
- package/front_end/ui/legacy/components/inline_editor/ColorSwatch.ts +36 -36
- package/front_end/ui/legacy/components/inline_editor/FontEditor.ts +2 -2
- package/front_end/ui/legacy/components/inline_editor/Swatches.ts +5 -5
- package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +3 -3
- package/front_end/ui/legacy/components/object_ui/JavaScriptREPL.ts +22 -37
- package/front_end/ui/legacy/components/object_ui/RemoteObjectPreviewFormatter.ts +31 -1
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +2 -2
- package/front_end/ui/legacy/components/perf_ui/OverviewGrid.ts +3 -3
- package/front_end/ui/legacy/components/quick_open/CommandMenu.ts +22 -29
- package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +8 -15
- package/front_end/ui/legacy/components/quick_open/HelpQuickOpen.ts +11 -14
- package/front_end/ui/legacy/components/utils/Linkifier.ts +7 -11
- package/front_end/ui/legacy/floaty.css +77 -0
- package/front_end/ui/legacy/legacy.ts +2 -0
- package/front_end/ui/visual_logging/KnownContextValues.ts +6 -0
- package/inspector_overlay/loadCSS.rollup.js +5 -4
- package/mcp/mcp.ts +1 -0
- package/package.json +2 -2
- package/front_end/panels/application/preloading/components/PreloadingMismatchedHeadersGrid.ts +0 -99
- package/front_end/panels/recorder/components/SelectButton.ts +0 -304
- package/front_end/panels/recorder/controllers/controllers.ts +0 -7
- package/front_end/ui/components/chrome_link/ChromeLink.ts +0 -76
- package/front_end/ui/components/chrome_link/chromeLink.css +0 -12
- package/front_end/ui/components/chrome_link/chrome_link.ts +0 -9
- package/front_end/ui/components/icon_button/Icon.docs.ts +0 -78
- /package/front_end/panels/recorder/components/{selectButton.css → replaySection.css} +0 -0
- /package/front_end/ui/{components/icon_button → kit/icons}/icon.css +0 -0
|
@@ -39,8 +39,8 @@ import * as i18n from '../../../../core/i18n/i18n.js';
|
|
|
39
39
|
import * as Platform from '../../../../core/platform/platform.js';
|
|
40
40
|
import * as SDK from '../../../../core/sdk/sdk.js';
|
|
41
41
|
import * as TextUtils from '../../../../models/text_utils/text_utils.js';
|
|
42
|
-
import * as IconButton from '../../../components/icon_button/icon_button.js';
|
|
43
42
|
import * as SrgbOverlay from '../../../components/srgb_overlay/srgb_overlay.js';
|
|
43
|
+
import {createIcon, Icon} from '../../../kit/kit.js';
|
|
44
44
|
import * as VisualLogging from '../../../visual_logging/visual_logging.js';
|
|
45
45
|
import * as UI from '../../legacy.js';
|
|
46
46
|
|
|
@@ -563,7 +563,7 @@ export class Spectrum extends Common.ObjectWrapper.eventMixin<EventTypes, typeof
|
|
|
563
563
|
}
|
|
564
564
|
|
|
565
565
|
function appendSwitcherIcon(parentElement: Element): void {
|
|
566
|
-
const switcherIcon = new
|
|
566
|
+
const switcherIcon = new Icon();
|
|
567
567
|
switcherIcon.name = 'fold-more';
|
|
568
568
|
switcherIcon.classList.add('medium');
|
|
569
569
|
parentElement.appendChild(switcherIcon);
|
|
@@ -1650,7 +1650,7 @@ export class Swatch {
|
|
|
1650
1650
|
private colorString!: string|null;
|
|
1651
1651
|
private swatchInnerElement: HTMLElement;
|
|
1652
1652
|
private swatchOverlayElement: HTMLElement;
|
|
1653
|
-
private readonly swatchCopyIcon:
|
|
1653
|
+
private readonly swatchCopyIcon: Icon;
|
|
1654
1654
|
constructor(parentElement: HTMLElement) {
|
|
1655
1655
|
const swatchElement = parentElement.createChild('span', 'swatch');
|
|
1656
1656
|
swatchElement.setAttribute('jslog', `${VisualLogging.action('copy-color').track({click: true})}`);
|
|
@@ -1662,7 +1662,7 @@ export class Swatch {
|
|
|
1662
1662
|
self.onInvokeElement(this.swatchOverlayElement, this.onCopyText.bind(this));
|
|
1663
1663
|
this.swatchOverlayElement.addEventListener('mouseout', this.onCopyIconMouseout.bind(this));
|
|
1664
1664
|
this.swatchOverlayElement.addEventListener('blur', this.onCopyIconMouseout.bind(this));
|
|
1665
|
-
this.swatchCopyIcon =
|
|
1665
|
+
this.swatchCopyIcon = createIcon('copy', 'copy-color-icon');
|
|
1666
1666
|
UI.Tooltip.Tooltip.install(this.swatchCopyIcon, i18nString(UIStrings.copyColorToClipboard));
|
|
1667
1667
|
this.swatchOverlayElement.appendChild(this.swatchCopyIcon);
|
|
1668
1668
|
UI.ARIAUtils.setLabel(this.swatchOverlayElement, this.swatchCopyIcon.title);
|
|
@@ -42,7 +42,7 @@ import * as SDK from '../../../../core/sdk/sdk.js';
|
|
|
42
42
|
import type * as Protocol from '../../../../generated/protocol.js';
|
|
43
43
|
import * as IssuesManager from '../../../../models/issues_manager/issues_manager.js';
|
|
44
44
|
import * as NetworkForward from '../../../../panels/network/forward/forward.js';
|
|
45
|
-
import
|
|
45
|
+
import {Icon} from '../../../kit/kit.js';
|
|
46
46
|
import {Directives, html, render} from '../../../lit/lit.js';
|
|
47
47
|
import * as UI from '../../legacy.js';
|
|
48
48
|
|
|
@@ -72,7 +72,7 @@ type CookieData = Partial<Record<SDK.Cookie.Attribute, string>>&{
|
|
|
72
72
|
}&{
|
|
73
73
|
key?: string,
|
|
74
74
|
flagged?: boolean,
|
|
75
|
-
icons?: Partial<Record<AttributeWithIcon,
|
|
75
|
+
icons?: Partial<Record<AttributeWithIcon, Icon>>,
|
|
76
76
|
priorityValue?: number,
|
|
77
77
|
expiresTooltip?: string,
|
|
78
78
|
dirty?: boolean,
|
|
@@ -208,7 +208,7 @@ export class CookiesTable extends UI.Widget.VBox {
|
|
|
208
208
|
id="cookies-table"
|
|
209
209
|
striped
|
|
210
210
|
?inline=${input.renderInline}
|
|
211
|
-
@create=${input.onCreate}
|
|
211
|
+
@create=${(e: CustomEvent<CookieData>) => input.onCreate(e.detail)}
|
|
212
212
|
@refresh=${input.onRefresh}
|
|
213
213
|
@deselect=${() => input.onSelect(undefined)}
|
|
214
214
|
>
|
|
@@ -513,7 +513,7 @@ export class CookiesTable extends UI.Widget.VBox {
|
|
|
513
513
|
const attribute = (blockedReason.attribute || SDK.Cookie.Attribute.NAME) as AttributeWithIcon;
|
|
514
514
|
data.icons = data.icons || {};
|
|
515
515
|
if (!(attribute in data.icons)) {
|
|
516
|
-
data.icons[attribute] = new
|
|
516
|
+
data.icons[attribute] = new Icon();
|
|
517
517
|
if (attribute === SDK.Cookie.Attribute.NAME &&
|
|
518
518
|
IssuesManager.RelatedIssue.hasThirdPartyPhaseoutCookieIssue(cookie)) {
|
|
519
519
|
data.icons[attribute].name = 'warning-filled';
|
|
@@ -532,7 +532,7 @@ export class CookiesTable extends UI.Widget.VBox {
|
|
|
532
532
|
if (exemptionReason) {
|
|
533
533
|
data.icons = data.icons || {};
|
|
534
534
|
data.flagged = true;
|
|
535
|
-
data.icons.name = new
|
|
535
|
+
data.icons.name = new Icon();
|
|
536
536
|
data.icons.name.name = 'info';
|
|
537
537
|
data.icons.name.classList.add('small');
|
|
538
538
|
data.icons.name.title = exemptionReason;
|
|
@@ -53,58 +53,62 @@ export class ClickEvent extends Event {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
export class ColorSwatch extends HTMLElement {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
readonly #shadow = this.attachShadow({mode: 'open'});
|
|
57
|
+
#tooltip: string = i18nString(UIStrings.shiftclickToChangeColorFormat);
|
|
58
|
+
#color: Common.Color.Color|null = null;
|
|
59
|
+
#readonly = false;
|
|
60
60
|
|
|
61
61
|
constructor(tooltip?: string) {
|
|
62
62
|
super();
|
|
63
63
|
if (tooltip) {
|
|
64
|
-
this
|
|
64
|
+
this.#tooltip = tooltip;
|
|
65
65
|
}
|
|
66
66
|
this.tabIndex = -1;
|
|
67
|
-
this.addEventListener('keydown', e => this
|
|
67
|
+
this.addEventListener('keydown', e => this.#onActivate(e));
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
static isColorSwatch(element: Element): element is ColorSwatch {
|
|
71
71
|
return element.localName === 'devtools-color-swatch';
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
get readonly(): boolean {
|
|
75
|
+
return this.#readonly;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
set readonly(readonly: boolean) {
|
|
79
|
+
if (this.#readonly === readonly) {
|
|
76
80
|
return;
|
|
77
81
|
}
|
|
78
82
|
|
|
79
|
-
this
|
|
80
|
-
if (this
|
|
81
|
-
this.
|
|
83
|
+
this.#readonly = readonly;
|
|
84
|
+
if (this.#color) {
|
|
85
|
+
this.color = this.#color;
|
|
82
86
|
}
|
|
83
87
|
}
|
|
84
88
|
|
|
85
|
-
|
|
86
|
-
return this
|
|
89
|
+
get color(): Common.Color.Color|null {
|
|
90
|
+
return this.#color;
|
|
87
91
|
}
|
|
88
92
|
|
|
89
93
|
get anchorBox(): AnchorBox|null {
|
|
90
|
-
const swatch = this
|
|
94
|
+
const swatch = this.#shadow.querySelector('.color-swatch');
|
|
91
95
|
return swatch ? swatch.boxInWindow() : null;
|
|
92
96
|
}
|
|
93
97
|
|
|
94
98
|
getText(): string|undefined {
|
|
95
|
-
return this
|
|
99
|
+
return this.#color?.getAuthoredText() ?? this.#color?.asString();
|
|
96
100
|
}
|
|
97
101
|
|
|
98
102
|
/**
|
|
99
103
|
* Render this swatch given a color object or text to be parsed as a color.
|
|
100
104
|
* @param color The color object or string to use for this swatch.
|
|
101
105
|
*/
|
|
102
|
-
|
|
103
|
-
this
|
|
106
|
+
set color(color: Common.Color.Color) {
|
|
107
|
+
this.#color = color;
|
|
104
108
|
|
|
105
109
|
const colorSwatchClasses = Lit.Directives.classMap({
|
|
106
110
|
'color-swatch': true,
|
|
107
|
-
readonly: this
|
|
111
|
+
readonly: this.#readonly,
|
|
108
112
|
});
|
|
109
113
|
|
|
110
114
|
// Disabled until https://crbug.com/1079231 is fixed.
|
|
@@ -116,19 +120,20 @@ export class ColorSwatch extends HTMLElement {
|
|
|
116
120
|
Lit.render(
|
|
117
121
|
html`<style>${colorSwatchStyles}</style><span
|
|
118
122
|
class=${colorSwatchClasses}
|
|
119
|
-
title=${this
|
|
123
|
+
title=${this.#tooltip}><span
|
|
120
124
|
class="color-swatch-inner"
|
|
121
125
|
style="background-color: ${color.asString()};"
|
|
122
126
|
jslog=${VisualLogging.showStyleEditor('color').track({click: true})}
|
|
123
|
-
@click=${this
|
|
124
|
-
@mousedown=${this
|
|
125
|
-
@dblclick=${this
|
|
126
|
-
this
|
|
127
|
+
@click=${this.#onActivate}
|
|
128
|
+
@mousedown=${this.#consume}
|
|
129
|
+
@dblclick=${this.#consume}></span></span>`,
|
|
130
|
+
this.#shadow, {host: this});
|
|
127
131
|
// clang-format on
|
|
132
|
+
this.dispatchEvent(new ColorChangedEvent(color));
|
|
128
133
|
}
|
|
129
134
|
|
|
130
|
-
|
|
131
|
-
if (this
|
|
135
|
+
#onActivate(e: KeyboardEvent|MouseEvent): void {
|
|
136
|
+
if (this.#readonly) {
|
|
132
137
|
return;
|
|
133
138
|
}
|
|
134
139
|
|
|
@@ -139,29 +144,24 @@ export class ColorSwatch extends HTMLElement {
|
|
|
139
144
|
|
|
140
145
|
if (e.shiftKey) {
|
|
141
146
|
e.stopPropagation();
|
|
142
|
-
this
|
|
147
|
+
this.#showFormatPicker(e);
|
|
143
148
|
return;
|
|
144
149
|
}
|
|
145
150
|
|
|
146
151
|
this.dispatchEvent(new ClickEvent());
|
|
147
|
-
this
|
|
152
|
+
this.#consume(e);
|
|
148
153
|
}
|
|
149
154
|
|
|
150
|
-
|
|
155
|
+
#consume(e: Event): void {
|
|
151
156
|
e.stopPropagation();
|
|
152
157
|
}
|
|
153
158
|
|
|
154
|
-
|
|
155
|
-
this
|
|
156
|
-
this.dispatchEvent(new ColorChangedEvent(color));
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
private showFormatPicker(e: Event): void {
|
|
160
|
-
if (!this.color) {
|
|
159
|
+
#showFormatPicker(e: Event): void {
|
|
160
|
+
if (!this.#color) {
|
|
161
161
|
return;
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
const contextMenu = new ColorPicker.FormatPickerContextMenu.FormatPickerContextMenu(this
|
|
164
|
+
const contextMenu = new ColorPicker.FormatPickerContextMenu.FormatPickerContextMenu(this.#color);
|
|
165
165
|
void contextMenu.show(e, color => {
|
|
166
166
|
this.dispatchEvent(new ColorFormatChangedEvent(color));
|
|
167
167
|
});
|
|
@@ -8,7 +8,7 @@ import '../../legacy.js';
|
|
|
8
8
|
import * as Common from '../../../../core/common/common.js';
|
|
9
9
|
import * as i18n from '../../../../core/i18n/i18n.js';
|
|
10
10
|
import * as Platform from '../../../../core/platform/platform.js';
|
|
11
|
-
import
|
|
11
|
+
import {Icon} from '../../../kit/kit.js';
|
|
12
12
|
import * as VisualLogging from '../../../visual_logging/visual_logging.js';
|
|
13
13
|
import * as UI from '../../legacy.js';
|
|
14
14
|
|
|
@@ -733,7 +733,7 @@ class FontPropertyInputs {
|
|
|
733
733
|
|
|
734
734
|
private createTypeToggle(field: Element, jslogContext: string): void {
|
|
735
735
|
const displaySwitcher = field.createChild('div', 'spectrum-switcher');
|
|
736
|
-
const icon = new
|
|
736
|
+
const icon = new Icon();
|
|
737
737
|
icon.name = 'fold-more';
|
|
738
738
|
icon.classList.add('medium');
|
|
739
739
|
displaySwitcher.appendChild(icon);
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
/* eslint-disable @devtools/no-lit-render-outside-of-view */
|
|
5
5
|
|
|
6
|
-
import '../../../
|
|
6
|
+
import '../../../kit/kit.js';
|
|
7
7
|
|
|
8
|
-
import type
|
|
8
|
+
import type {Icon} from '../../../kit/kit.js';
|
|
9
9
|
import {html, render} from '../../../lit/lit.js';
|
|
10
10
|
|
|
11
11
|
import type {CSSShadowModel} from './CSSShadowEditor.js';
|
|
12
12
|
import cssShadowSwatchStyles from './cssShadowSwatch.css.js';
|
|
13
13
|
|
|
14
14
|
export class CSSShadowSwatch extends HTMLElement {
|
|
15
|
-
readonly #icon:
|
|
15
|
+
readonly #icon: Icon;
|
|
16
16
|
readonly #model: CSSShadowModel;
|
|
17
17
|
|
|
18
18
|
constructor(model: CSSShadowModel) {
|
|
@@ -26,14 +26,14 @@ export class CSSShadowSwatch extends HTMLElement {
|
|
|
26
26
|
this, {host: this});
|
|
27
27
|
// clang-format on
|
|
28
28
|
|
|
29
|
-
this.#icon = this.querySelector('devtools-icon') as
|
|
29
|
+
this.#icon = this.querySelector('devtools-icon') as Icon;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
model(): CSSShadowModel {
|
|
33
33
|
return this.#model;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
iconElement():
|
|
36
|
+
iconElement(): Icon {
|
|
37
37
|
return this.#icon;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -7,7 +7,7 @@ import * as Common from '../../../../core/common/common.js';
|
|
|
7
7
|
import * as i18n from '../../../../core/i18n/i18n.js';
|
|
8
8
|
import type * as SDK from '../../../../core/sdk/sdk.js';
|
|
9
9
|
import type * as Protocol from '../../../../generated/protocol.js';
|
|
10
|
-
import
|
|
10
|
+
import {createIcon, type Icon} from '../../../kit/kit.js';
|
|
11
11
|
import * as UI from '../../legacy.js';
|
|
12
12
|
|
|
13
13
|
import customPreviewComponentStyles from './customPreviewComponent.css.js';
|
|
@@ -33,7 +33,7 @@ export class CustomPreviewSection {
|
|
|
33
33
|
private expanded: boolean;
|
|
34
34
|
private cachedContent: Node|null;
|
|
35
35
|
private readonly header: Node|undefined;
|
|
36
|
-
private readonly expandIcon:
|
|
36
|
+
private readonly expandIcon: Icon|undefined;
|
|
37
37
|
constructor(object: SDK.RemoteObject.RemoteObject) {
|
|
38
38
|
this.sectionElement = document.createElement('span');
|
|
39
39
|
this.sectionElement.classList.add('custom-expandable-section');
|
|
@@ -64,7 +64,7 @@ export class CustomPreviewSection {
|
|
|
64
64
|
this.header.classList.add('custom-expandable-section-header');
|
|
65
65
|
}
|
|
66
66
|
this.header.addEventListener('click', this.onClick.bind(this), false);
|
|
67
|
-
this.expandIcon =
|
|
67
|
+
this.expandIcon = createIcon('triangle-right', 'custom-expand-icon');
|
|
68
68
|
this.header.insertBefore(this.expandIcon, this.header.firstChild);
|
|
69
69
|
}
|
|
70
70
|
|
|
@@ -2,12 +2,10 @@
|
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
|
-
import * as Platform from '../../../../core/platform/platform.js';
|
|
6
5
|
import * as SDK from '../../../../core/sdk/sdk.js';
|
|
7
6
|
import * as Formatter from '../../../../models/formatter/formatter.js';
|
|
8
7
|
import * as SourceMapScopes from '../../../../models/source_map_scopes/source_map_scopes.js';
|
|
9
8
|
import * as Acorn from '../../../../third_party/acorn/acorn.js';
|
|
10
|
-
import {render} from '../../../lit/lit.js';
|
|
11
9
|
import * as UI from '../../legacy.js';
|
|
12
10
|
|
|
13
11
|
import {RemoteObjectPreviewFormatter} from './RemoteObjectPreviewFormatter.js';
|
|
@@ -46,16 +44,13 @@ export class JavaScriptREPL {
|
|
|
46
44
|
}
|
|
47
45
|
}
|
|
48
46
|
|
|
49
|
-
static async
|
|
50
|
-
text: string,
|
|
51
|
-
objectGroup?: string, awaitPromise = false,
|
|
52
|
-
|
|
53
|
-
result: SDK.RuntimeModel.EvaluationResult|null,
|
|
54
|
-
}> {
|
|
55
|
-
const executionContext = UI.Context.Context.instance().flavor(SDK.RuntimeModel.ExecutionContext);
|
|
47
|
+
static async evaluate(
|
|
48
|
+
text: string, executionContext: SDK.RuntimeModel.ExecutionContext, throwOnSideEffect: boolean, replMode: boolean,
|
|
49
|
+
timeout?: number, objectGroup?: string, awaitPromise = false,
|
|
50
|
+
silent = false): Promise<SDK.RuntimeModel.EvaluationResult|null> {
|
|
56
51
|
const isTextLong = text.length > maxLengthForEvaluation;
|
|
57
|
-
if (!text ||
|
|
58
|
-
return
|
|
52
|
+
if (!text || (throwOnSideEffect && isTextLong)) {
|
|
53
|
+
return null;
|
|
59
54
|
}
|
|
60
55
|
|
|
61
56
|
let expression = text;
|
|
@@ -81,39 +76,29 @@ export class JavaScriptREPL {
|
|
|
81
76
|
replMode,
|
|
82
77
|
silent,
|
|
83
78
|
};
|
|
84
|
-
|
|
85
|
-
const preview = JavaScriptREPL.buildEvaluationPreview(result, allowErrors);
|
|
86
|
-
return {preview, result};
|
|
79
|
+
return await executionContext.evaluate(options, false /* userGesture */, awaitPromise);
|
|
87
80
|
}
|
|
88
81
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
82
|
+
static async evaluateAndBuildPreview(
|
|
83
|
+
text: string, throwOnSideEffect: boolean, replMode: boolean, timeout?: number, allowErrors?: boolean,
|
|
84
|
+
objectGroup?: string, awaitPromise = false, silent = false): Promise<{
|
|
85
|
+
preview: DocumentFragment,
|
|
86
|
+
result: SDK.RuntimeModel.EvaluationResult|null,
|
|
87
|
+
}> {
|
|
88
|
+
const executionContext = UI.Context.Context.instance().flavor(SDK.RuntimeModel.ExecutionContext);
|
|
89
|
+
if (!executionContext) {
|
|
90
|
+
return {preview: document.createDocumentFragment(), result: null};
|
|
94
91
|
}
|
|
95
92
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
return fragment;
|
|
93
|
+
const result = await JavaScriptREPL.evaluate(
|
|
94
|
+
text, executionContext, throwOnSideEffect, replMode, timeout, objectGroup, awaitPromise, silent);
|
|
95
|
+
if (!result) {
|
|
96
|
+
return {preview: document.createDocumentFragment(), result: null};
|
|
102
97
|
}
|
|
103
98
|
|
|
104
99
|
const formatter = new RemoteObjectPreviewFormatter();
|
|
105
|
-
const
|
|
106
|
-
|
|
107
|
-
/* eslint-disable-next-line @devtools/no-lit-render-outside-of-view */
|
|
108
|
-
render(formatter.renderObjectPreview(preview), fragment);
|
|
109
|
-
} else {
|
|
110
|
-
/* eslint-disable-next-line @devtools/no-lit-render-outside-of-view */
|
|
111
|
-
render(
|
|
112
|
-
formatter.renderPropertyPreview(
|
|
113
|
-
type, subtype, className, Platform.StringUtilities.trimEndWithMaxLength(description || '', 400)),
|
|
114
|
-
fragment);
|
|
115
|
-
}
|
|
116
|
-
return fragment;
|
|
100
|
+
const preview = formatter.renderEvaluationResultPreviewFragment(result, allowErrors);
|
|
101
|
+
return {preview, result};
|
|
117
102
|
}
|
|
118
103
|
}
|
|
119
104
|
|
|
@@ -6,7 +6,7 @@ import * as i18n from '../../../../core/i18n/i18n.js';
|
|
|
6
6
|
import * as Platform from '../../../../core/platform/platform.js';
|
|
7
7
|
import * as SDK from '../../../../core/sdk/sdk.js';
|
|
8
8
|
import * as Protocol from '../../../../generated/protocol.js';
|
|
9
|
-
import {Directives, html, type LitTemplate, nothing} from '../../../lit/lit.js';
|
|
9
|
+
import {Directives, html, type LitTemplate, nothing, render} from '../../../lit/lit.js';
|
|
10
10
|
|
|
11
11
|
const {ifDefined, repeat} = Directives;
|
|
12
12
|
const UIStrings = {
|
|
@@ -245,6 +245,36 @@ export class RemoteObjectPreviewFormatter {
|
|
|
245
245
|
|
|
246
246
|
return html`<span class='object-value-${(subtype || type)}' title=${ifDefined(title)}>${preview()}</span>`;
|
|
247
247
|
}
|
|
248
|
+
|
|
249
|
+
renderEvaluationResultPreview(result: SDK.RuntimeModel.EvaluationResult, allowErrors?: boolean): LitTemplate {
|
|
250
|
+
if ('error' in result) {
|
|
251
|
+
return nothing;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
if (result.exceptionDetails?.exception?.description) {
|
|
255
|
+
const exception = result.exceptionDetails.exception.description;
|
|
256
|
+
if (exception.startsWith('TypeError: ') || allowErrors) {
|
|
257
|
+
return html`<span>${result.exceptionDetails.text} ${exception}</span>`;
|
|
258
|
+
}
|
|
259
|
+
return nothing;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
const {preview, type, subtype, className, description} = result.object;
|
|
263
|
+
if (preview && type === 'object' && subtype !== 'node' && subtype !== 'trustedtype') {
|
|
264
|
+
return this.renderObjectPreview(preview);
|
|
265
|
+
}
|
|
266
|
+
return this.renderPropertyPreview(
|
|
267
|
+
type, subtype, className, Platform.StringUtilities.trimEndWithMaxLength(description || '', 400));
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/** @deprecated (crbug.com/457388389) Use lit version instead */
|
|
271
|
+
renderEvaluationResultPreviewFragment(result: SDK.RuntimeModel.EvaluationResult, allowErrors?: boolean):
|
|
272
|
+
DocumentFragment {
|
|
273
|
+
const fragment = document.createDocumentFragment();
|
|
274
|
+
/* eslint-disable-next-line @devtools/no-lit-render-outside-of-view */
|
|
275
|
+
render(this.renderEvaluationResultPreview(result, allowErrors), fragment);
|
|
276
|
+
return fragment;
|
|
277
|
+
}
|
|
248
278
|
}
|
|
249
279
|
|
|
250
280
|
const enum InternalName {
|
|
@@ -3883,7 +3883,7 @@ export class FlameChart extends Common.ObjectWrapper.eventMixin<EventTypes, type
|
|
|
3883
3883
|
* Update position of an Element. By default, the element is treated as a full entry and it's dimensions are set to the full entry width/length/height.
|
|
3884
3884
|
* If isDecoration parameter is set to true, the element will be positioned on the right side of the entry and have a square shape where width == height of the entry.
|
|
3885
3885
|
*/
|
|
3886
|
-
private updateElementPosition(element:
|
|
3886
|
+
private updateElementPosition(element: HTMLElement|null, entryIndex: number, isDecoration?: boolean): void {
|
|
3887
3887
|
if (!element) {
|
|
3888
3888
|
return;
|
|
3889
3889
|
}
|
|
@@ -3929,7 +3929,7 @@ export class FlameChart extends Common.ObjectWrapper.eventMixin<EventTypes, type
|
|
|
3929
3929
|
const entryLevel = timelineData.entryLevels[entryIndex];
|
|
3930
3930
|
const barY = this.levelToOffset(entryLevel) - this.chartViewport.scrollOffset();
|
|
3931
3931
|
const barHeight = this.levelHeight(entryLevel);
|
|
3932
|
-
const style =
|
|
3932
|
+
const style = element.style;
|
|
3933
3933
|
|
|
3934
3934
|
// TODO(paulirish): make these changes within a RenderCoordinator.write callback.
|
|
3935
3935
|
// Currently these (plus the scrollOffset() right above) trigger layout thrashing.
|
|
@@ -7,7 +7,7 @@ import * as Common from '../../../../core/common/common.js';
|
|
|
7
7
|
import * as i18n from '../../../../core/i18n/i18n.js';
|
|
8
8
|
import * as Platform from '../../../../core/platform/platform.js';
|
|
9
9
|
import type * as NetworkTimeCalculator from '../../../../models/network_time_calculator/network_time_calculator.js';
|
|
10
|
-
import
|
|
10
|
+
import {createIcon, type Icon} from '../../../kit/kit.js';
|
|
11
11
|
import * as VisualLogging from '../../../visual_logging/visual_logging.js';
|
|
12
12
|
import * as UI from '../../legacy.js';
|
|
13
13
|
|
|
@@ -137,7 +137,7 @@ export class Window extends Common.ObjectWrapper.ObjectWrapper<EventTypes> {
|
|
|
137
137
|
private breadcrumbButtonContainerElement: HTMLElement;
|
|
138
138
|
private createBreadcrumbButton: HTMLElement;
|
|
139
139
|
private curtainsRange?: HTMLElement;
|
|
140
|
-
private breadcrumbZoomIcon?:
|
|
140
|
+
private breadcrumbZoomIcon?: Icon;
|
|
141
141
|
|
|
142
142
|
private overviewWindowSelector!: WindowSelector|undefined;
|
|
143
143
|
private offsetLeft!: number;
|
|
@@ -213,7 +213,7 @@ export class Window extends Common.ObjectWrapper.ObjectWrapper<EventTypes> {
|
|
|
213
213
|
|
|
214
214
|
enableCreateBreadcrumbsButton(): HTMLElement {
|
|
215
215
|
this.curtainsRange = this.createBreadcrumbButton.createChild('div');
|
|
216
|
-
this.breadcrumbZoomIcon =
|
|
216
|
+
this.breadcrumbZoomIcon = createIcon('zoom-in');
|
|
217
217
|
this.createBreadcrumbButton.appendChild(this.breadcrumbZoomIcon);
|
|
218
218
|
this.createBreadcrumbButton.addEventListener('click', () => {
|
|
219
219
|
this.#createBreadcrumb();
|
|
@@ -2,12 +2,15 @@
|
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
|
+
import '../../../kit/kit.js';
|
|
6
|
+
import '../../../components/highlighting/highlighting.js';
|
|
7
|
+
|
|
5
8
|
import * as Common from '../../../../core/common/common.js';
|
|
6
9
|
import * as Host from '../../../../core/host/host.js';
|
|
7
10
|
import * as i18n from '../../../../core/i18n/i18n.js';
|
|
8
11
|
import * as Platform from '../../../../core/platform/platform.js';
|
|
9
12
|
import * as Diff from '../../../../third_party/diff/diff.js';
|
|
10
|
-
import
|
|
13
|
+
import {html, nothing, type TemplateResult} from '../../../lit/lit.js';
|
|
11
14
|
import * as UI from '../../legacy.js';
|
|
12
15
|
|
|
13
16
|
import {FilteredListWidget, Provider, registerProvider} from './FilteredListWidget.js';
|
|
@@ -340,36 +343,26 @@ export class CommandMenuProvider extends Provider {
|
|
|
340
343
|
return score;
|
|
341
344
|
}
|
|
342
345
|
|
|
343
|
-
override renderItem(itemIndex: number, query: string
|
|
346
|
+
override renderItem(itemIndex: number, query: string): TemplateResult {
|
|
344
347
|
const command = this.commands[itemIndex];
|
|
345
|
-
|
|
346
|
-
const itemElement = wrapperElement.createChild('div');
|
|
347
|
-
const titleElement = itemElement.createChild('div');
|
|
348
|
-
|
|
349
|
-
titleElement.removeChildren();
|
|
350
|
-
const icon = IconButton.Icon.create(categoryIcons[command.category]);
|
|
351
|
-
wrapperElement.insertBefore(icon, itemElement);
|
|
352
|
-
UI.UIUtils.createTextChild(titleElement, command.title);
|
|
353
|
-
FilteredListWidget.highlightRanges(titleElement, query, true);
|
|
354
|
-
|
|
355
|
-
const subtitleElement = itemElement.createChild('div');
|
|
356
|
-
if (command.featurePromotionId) {
|
|
357
|
-
const badge = UI.UIUtils.maybeCreateNewBadge(command.featurePromotionId);
|
|
358
|
-
if (badge) {
|
|
359
|
-
itemElement.insertBefore(badge, subtitleElement);
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
subtitleElement.textContent = command.shortcut;
|
|
364
|
-
|
|
348
|
+
const badge = command.featurePromotionId ? UI.UIUtils.maybeCreateNewBadge(command.featurePromotionId) : undefined;
|
|
365
349
|
const deprecationWarning = command.deprecationWarning;
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
350
|
+
// clang-format off
|
|
351
|
+
return html`
|
|
352
|
+
<devtools-icon name=${categoryIcons[command.category]}></devtools-icon>
|
|
353
|
+
<div>
|
|
354
|
+
<devtools-highlight type="markup" ranges=${FilteredListWidget.getHighlightRanges(command.title, query, true)}>
|
|
355
|
+
${command.title}
|
|
356
|
+
</devtools-highlight>
|
|
357
|
+
${badge ?? nothing}
|
|
358
|
+
<div>${command.shortcut}</div>
|
|
359
|
+
${deprecationWarning ? html`
|
|
360
|
+
<span class="deprecated-tag" title=${deprecationWarning}>
|
|
361
|
+
${i18nString(UIStrings.deprecated)}
|
|
362
|
+
</span>` : nothing}
|
|
363
|
+
</div>
|
|
364
|
+
<span class="tag">${command.category}</span>`;
|
|
365
|
+
// clang-format on
|
|
373
366
|
}
|
|
374
367
|
|
|
375
368
|
override jslogContextAt(itemIndex: number): string {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright 2012 The Chromium Authors
|
|
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
|
-
/* eslint-disable @devtools/no-imperative-dom-api */
|
|
4
|
+
/* eslint-disable @devtools/no-imperative-dom-api, @devtools/no-lit-render-outside-of-view */
|
|
5
5
|
|
|
6
6
|
import * as Common from '../../../../core/common/common.js';
|
|
7
7
|
import * as i18n from '../../../../core/i18n/i18n.js';
|
|
@@ -9,8 +9,8 @@ import * as Platform from '../../../../core/platform/platform.js';
|
|
|
9
9
|
import * as Geometry from '../../../../models/geometry/geometry.js';
|
|
10
10
|
import * as TextUtils from '../../../../models/text_utils/text_utils.js';
|
|
11
11
|
import * as Diff from '../../../../third_party/diff/diff.js';
|
|
12
|
-
import * as Highlighting from '../../../../ui/components/highlighting/highlighting.js';
|
|
13
12
|
import * as TextPrompt from '../../../../ui/components/text_prompt/text_prompt.js';
|
|
13
|
+
import {type LitTemplate, nothing, render} from '../../../lit/lit.js';
|
|
14
14
|
import * as VisualLogging from '../../../visual_logging/visual_logging.js';
|
|
15
15
|
import * as UI from '../../legacy.js';
|
|
16
16
|
|
|
@@ -118,9 +118,9 @@ export class FilteredListWidget extends Common.ObjectWrapper.eventMixin<EventTyp
|
|
|
118
118
|
this.queryChangedCallback = queryChangedCallback;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
static
|
|
121
|
+
static getHighlightRanges(text: string, query: string, caseInsensitive?: boolean): string {
|
|
122
122
|
if (!query) {
|
|
123
|
-
return
|
|
123
|
+
return '';
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
function rangesForMatch(text: string, query: string): TextUtils.TextRange.SourceRange[]|null {
|
|
@@ -139,19 +139,11 @@ export class FilteredListWidget extends Common.ObjectWrapper.eventMixin<EventTyp
|
|
|
139
139
|
return ranges;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
if (element.textContent === null) {
|
|
143
|
-
return false;
|
|
144
|
-
}
|
|
145
|
-
const text = element.textContent;
|
|
146
142
|
let ranges = rangesForMatch(text, query);
|
|
147
143
|
if (!ranges || caseInsensitive) {
|
|
148
144
|
ranges = rangesForMatch(text.toUpperCase(), query.toUpperCase());
|
|
149
145
|
}
|
|
150
|
-
|
|
151
|
-
Highlighting.highlightRangesWithStyleClass(element, ranges, 'highlight');
|
|
152
|
-
return true;
|
|
153
|
-
}
|
|
154
|
-
return false;
|
|
146
|
+
return ranges?.map(range => `${range.offset},${range.length}`).join(' ') || '';
|
|
155
147
|
}
|
|
156
148
|
|
|
157
149
|
setCommandPrefix(commandPrefix: string): void {
|
|
@@ -286,7 +278,7 @@ export class FilteredListWidget extends Common.ObjectWrapper.eventMixin<EventTyp
|
|
|
286
278
|
wrapperElement.className = 'filtered-list-widget-item';
|
|
287
279
|
|
|
288
280
|
if (this.provider) {
|
|
289
|
-
this.provider.renderItem(item, this.cleanValue(), wrapperElement);
|
|
281
|
+
render(this.provider.renderItem(item, this.cleanValue()), wrapperElement);
|
|
290
282
|
wrapperElement.setAttribute(
|
|
291
283
|
'jslog', `${VisualLogging.item(this.provider.jslogContextAt(item)).track({click: true})}`);
|
|
292
284
|
}
|
|
@@ -622,7 +614,8 @@ export class Provider {
|
|
|
622
614
|
return 1;
|
|
623
615
|
}
|
|
624
616
|
|
|
625
|
-
renderItem(_itemIndex: number, _query: string
|
|
617
|
+
renderItem(_itemIndex: number, _query: string): LitTemplate {
|
|
618
|
+
return nothing;
|
|
626
619
|
}
|
|
627
620
|
|
|
628
621
|
jslogContextAt(_itemIndex: number): string {
|