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
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// Copyright 2023 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 */
|
|
5
4
|
|
|
6
5
|
import * as Common from '../../../core/common/common.js';
|
|
7
6
|
import * as Extensions from '../../../models/extensions/extensions.js';
|
|
7
|
+
import * as PanelCommon from '../../common/common.js';
|
|
8
8
|
|
|
9
9
|
let instance: ExtensionManager|null = null;
|
|
10
10
|
|
|
@@ -25,7 +25,7 @@ export class ExtensionManager extends Common.ObjectWrapper.ObjectWrapper<EventTy
|
|
|
25
25
|
return instance;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
#views = new Map<string, ExtensionIframe>();
|
|
28
|
+
#views = new Map<string, PanelCommon.ExtensionIframe.ExtensionIframe>();
|
|
29
29
|
|
|
30
30
|
constructor() {
|
|
31
31
|
super();
|
|
@@ -54,7 +54,7 @@ export class ExtensionManager extends Common.ObjectWrapper.ObjectWrapper<EventTy
|
|
|
54
54
|
return Extensions.RecorderPluginManager.RecorderPluginManager.instance().plugins();
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
getView(descriptorId: string): ExtensionIframe {
|
|
57
|
+
getView(descriptorId: string): PanelCommon.ExtensionIframe.ExtensionIframe {
|
|
58
58
|
const view = this.#views.get(descriptorId);
|
|
59
59
|
if (!view) {
|
|
60
60
|
throw new Error('View not found');
|
|
@@ -69,55 +69,11 @@ export class ExtensionManager extends Common.ObjectWrapper.ObjectWrapper<EventTy
|
|
|
69
69
|
#handleView = (event: {data: Extensions.RecorderPluginManager.ViewDescriptor}): void => {
|
|
70
70
|
const descriptor = event.data;
|
|
71
71
|
if (!this.#views.has(descriptor.id)) {
|
|
72
|
-
this.#views.set(descriptor.id, new ExtensionIframe(descriptor));
|
|
72
|
+
this.#views.set(descriptor.id, new PanelCommon.ExtensionIframe.ExtensionIframe(descriptor));
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
class ExtensionIframe {
|
|
78
|
-
#descriptor: Extensions.RecorderPluginManager.ViewDescriptor;
|
|
79
|
-
#iframe: HTMLIFrameElement;
|
|
80
|
-
#isShowing = false;
|
|
81
|
-
#isLoaded = false;
|
|
82
|
-
|
|
83
|
-
constructor(descriptor: Extensions.RecorderPluginManager.ViewDescriptor) {
|
|
84
|
-
this.#descriptor = descriptor;
|
|
85
|
-
this.#iframe = document.createElement('iframe');
|
|
86
|
-
this.#iframe.src = descriptor.pagePath;
|
|
87
|
-
this.#iframe.onload = this.#onIframeLoad;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
#onIframeLoad = (): void => {
|
|
91
|
-
this.#isLoaded = true;
|
|
92
|
-
if (this.#isShowing) {
|
|
93
|
-
this.#descriptor.onShown();
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
show(): void {
|
|
98
|
-
if (this.#isShowing) {
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
this.#isShowing = true;
|
|
102
|
-
if (this.#isLoaded) {
|
|
103
|
-
this.#descriptor.onShown();
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
hide(): void {
|
|
108
|
-
if (!this.#isShowing) {
|
|
109
|
-
return;
|
|
110
|
-
}
|
|
111
|
-
this.#isShowing = false;
|
|
112
|
-
this.#isLoaded = false;
|
|
113
|
-
this.#descriptor.onHidden();
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
frame(): HTMLIFrameElement {
|
|
117
|
-
return this.#iframe;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
77
|
export const enum Events {
|
|
122
78
|
EXTENSIONS_UPDATED = 'extensionsUpdated',
|
|
123
79
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// Copyright 2023 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 */
|
|
5
4
|
|
|
6
5
|
import * as SDK from '../../../core/sdk/sdk.js';
|
|
7
6
|
|
|
@@ -26,30 +25,37 @@ async function captureScreenshot(): Promise<Screenshot> {
|
|
|
26
25
|
|
|
27
26
|
export async function resizeScreenshot(data: Screenshot): Promise<Screenshot> {
|
|
28
27
|
const img = new Image();
|
|
29
|
-
const
|
|
28
|
+
const imageLoaded = new Promise(resolve => {
|
|
30
29
|
img.onload = resolve;
|
|
31
30
|
});
|
|
32
31
|
img.src = data;
|
|
33
|
-
await
|
|
32
|
+
await imageLoaded;
|
|
34
33
|
|
|
35
|
-
const
|
|
34
|
+
const aspectRatio = img.width / img.height;
|
|
35
|
+
const canvas = new OffscreenCanvas(
|
|
36
|
+
SCREENSHOT_WIDTH,
|
|
37
|
+
Math.min(
|
|
38
|
+
SCREENSHOT_MAX_HEIGHT,
|
|
39
|
+
SCREENSHOT_WIDTH / aspectRatio,
|
|
40
|
+
));
|
|
36
41
|
const context = canvas.getContext('2d', {willReadFrequently: true});
|
|
37
42
|
if (!context) {
|
|
38
43
|
throw new Error('Could not create context.');
|
|
39
44
|
}
|
|
40
|
-
const aspectRatio = img.width / img.height;
|
|
41
|
-
canvas.width = SCREENSHOT_WIDTH;
|
|
42
|
-
canvas.height = Math.min(
|
|
43
|
-
SCREENSHOT_MAX_HEIGHT,
|
|
44
|
-
SCREENSHOT_WIDTH / aspectRatio,
|
|
45
|
-
);
|
|
46
45
|
const bitmap = await createImageBitmap(img, {
|
|
47
46
|
resizeWidth: SCREENSHOT_WIDTH,
|
|
48
47
|
resizeQuality: 'high',
|
|
49
48
|
});
|
|
50
49
|
context.drawImage(bitmap, 0, 0);
|
|
51
50
|
|
|
52
|
-
|
|
51
|
+
const blob = await canvas.convertToBlob({type: 'image/png'});
|
|
52
|
+
const dataUrl = await new Promise<string>((resolve, reject) => {
|
|
53
|
+
const reader = new FileReader();
|
|
54
|
+
reader.onloadend = () => resolve(reader.result as string);
|
|
55
|
+
reader.onerror = reject;
|
|
56
|
+
reader.readAsDataURL(blob);
|
|
57
|
+
});
|
|
58
|
+
return dataUrl as Screenshot;
|
|
53
59
|
}
|
|
54
60
|
|
|
55
61
|
export async function takeScreenshot(): Promise<Screenshot> {
|
|
@@ -10,7 +10,7 @@ import * as i18n from '../../core/i18n/i18n.js';
|
|
|
10
10
|
import type * as Platform from '../../core/platform/platform.js';
|
|
11
11
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
12
12
|
import * as Protocol from '../../generated/protocol.js';
|
|
13
|
-
import
|
|
13
|
+
import {createIcon, Icon} from '../../ui/kit/kit.js';
|
|
14
14
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
15
15
|
|
|
16
16
|
import {InputModel} from './InputModel.js';
|
|
@@ -104,8 +104,8 @@ export class ScreencastView extends UI.Widget.VBox implements SDK.OverlayModel.H
|
|
|
104
104
|
private navigationProgressBar?: ProgressTracker;
|
|
105
105
|
private touchInputToggle?: HTMLButtonElement;
|
|
106
106
|
private mouseInputToggle?: HTMLButtonElement;
|
|
107
|
-
private touchInputToggleIcon?:
|
|
108
|
-
private mouseInputToggleIcon?:
|
|
107
|
+
private touchInputToggleIcon?: Icon;
|
|
108
|
+
private mouseInputToggleIcon?: Icon;
|
|
109
109
|
private historyIndex?: number;
|
|
110
110
|
private historyEntries?: Protocol.Page.NavigationEntry[];
|
|
111
111
|
private isCasting = false;
|
|
@@ -648,17 +648,17 @@ export class ScreencastView extends UI.Widget.VBox implements SDK.OverlayModel.H
|
|
|
648
648
|
this.navigationBar = this.element.createChild('div', 'screencast-navigation');
|
|
649
649
|
|
|
650
650
|
this.navigationBack = this.navigationBar.createChild('button', 'navigation');
|
|
651
|
-
this.navigationBack.appendChild(
|
|
651
|
+
this.navigationBack.appendChild(createIcon('arrow-back'));
|
|
652
652
|
this.navigationBack.disabled = true;
|
|
653
653
|
UI.ARIAUtils.setLabel(this.navigationBack, i18nString(UIStrings.back));
|
|
654
654
|
|
|
655
655
|
this.navigationForward = this.navigationBar.createChild('button', 'navigation');
|
|
656
|
-
this.navigationForward.appendChild(
|
|
656
|
+
this.navigationForward.appendChild(createIcon('arrow-forward'));
|
|
657
657
|
this.navigationForward.disabled = true;
|
|
658
658
|
UI.ARIAUtils.setLabel(this.navigationForward, i18nString(UIStrings.forward));
|
|
659
659
|
|
|
660
660
|
this.navigationReload = this.navigationBar.createChild('button', 'navigation');
|
|
661
|
-
this.navigationReload.appendChild(
|
|
661
|
+
this.navigationReload.appendChild(createIcon('refresh'));
|
|
662
662
|
UI.ARIAUtils.setLabel(this.navigationReload, i18nString(UIStrings.reload));
|
|
663
663
|
|
|
664
664
|
this.navigationUrl = this.navigationBar.appendChild(UI.UIUtils.createInput());
|
|
@@ -668,14 +668,14 @@ export class ScreencastView extends UI.Widget.VBox implements SDK.OverlayModel.H
|
|
|
668
668
|
this.mouseInputToggle = this.navigationBar.createChild('button');
|
|
669
669
|
this.mouseInputToggle.disabled = true;
|
|
670
670
|
{
|
|
671
|
-
this.mouseInputToggleIcon = this.mouseInputToggle.appendChild(new
|
|
671
|
+
this.mouseInputToggleIcon = this.mouseInputToggle.appendChild(new Icon());
|
|
672
672
|
this.mouseInputToggleIcon.name = 'mouse';
|
|
673
673
|
this.mouseInputToggleIcon.classList.toggle('toggled', true);
|
|
674
674
|
}
|
|
675
675
|
UI.ARIAUtils.setLabel(this.mouseInputToggle, i18nString(UIStrings.mouseInput));
|
|
676
676
|
|
|
677
677
|
this.touchInputToggle = this.navigationBar.createChild('button');
|
|
678
|
-
this.touchInputToggleIcon = this.touchInputToggle.appendChild(
|
|
678
|
+
this.touchInputToggleIcon = this.touchInputToggle.appendChild(createIcon('touch-app'));
|
|
679
679
|
UI.ARIAUtils.setLabel(this.touchInputToggle, i18nString(UIStrings.touchInput));
|
|
680
680
|
|
|
681
681
|
this.navigationProgressBar = new ProgressTracker(
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import '../../ui/legacy/legacy.js';
|
|
6
|
-
import '../../ui/
|
|
6
|
+
import '../../ui/kit/kit.js';
|
|
7
7
|
|
|
8
8
|
import * as Common from '../../core/common/common.js';
|
|
9
9
|
import * as Host from '../../core/host/host.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// Copyright 2024 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
|
-
import
|
|
4
|
+
import {createIcon} from '../../ui/kit/kit.js';
|
|
5
5
|
|
|
6
6
|
import {SecurityPanelSidebarTreeElement} from './SecurityPanelSidebarTreeElement.js';
|
|
7
7
|
|
|
8
8
|
export class CookieControlsTreeElement extends SecurityPanelSidebarTreeElement {
|
|
9
9
|
constructor(title: string, jslogContext: string|number) {
|
|
10
10
|
super(title, false, jslogContext);
|
|
11
|
-
this.setLeadingIcons([
|
|
11
|
+
this.setLeadingIcons([createIcon('gear', 'cookie-icon')]);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
override get elemId(): string {
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
import '../../ui/components/switch/switch.js';
|
|
6
6
|
import '../../ui/kit/kit.js';
|
|
7
|
-
import '../../ui/components/chrome_link/chrome_link.js';
|
|
8
7
|
|
|
9
8
|
import * as Common from '../../core/common/common.js';
|
|
10
9
|
import * as Host from '../../core/host/host.js';
|
|
@@ -102,20 +101,14 @@ const UIStrings = {
|
|
|
102
101
|
* @example {#tpcd-heuristics-grants} PH1
|
|
103
102
|
*/
|
|
104
103
|
enableFlag: 'To use this, set {PH1} to Default',
|
|
105
|
-
/**
|
|
106
|
-
* @description Text used for link within the enableFlag to show users where they can enable the Third-party Cookie Metadata Grants flag.
|
|
107
|
-
*/
|
|
108
|
-
tpcdMetadataGrants: '#tpcd-metadata-grants',
|
|
109
|
-
/**
|
|
110
|
-
* @description Text used for link within the enableFlag to show users where they can enable the Third-party Cookie Heuristics Grants flag.
|
|
111
|
-
*/
|
|
112
|
-
tpcdHeuristicsGrants: '#tpcd-heuristics-grants',
|
|
113
104
|
} as const;
|
|
114
105
|
|
|
115
106
|
const str_ = i18n.i18n.registerUIStrings('panels/security/CookieControlsView.ts', UIStrings);
|
|
116
107
|
export const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
117
108
|
export const i18nFormatString = uiI18n.getFormatLocalizedString.bind(undefined, str_);
|
|
118
109
|
|
|
110
|
+
export const i18nFormatStringTemplate = uiI18n.getFormatLocalizedStringTemplate.bind(undefined, str_);
|
|
111
|
+
|
|
119
112
|
export interface ViewInput {
|
|
120
113
|
thirdPartyControlsDict: Root.Runtime.HostConfig['thirdPartyCookieControls'];
|
|
121
114
|
isGracePeriodActive: boolean;
|
|
@@ -127,9 +120,9 @@ export type View = (input: ViewInput, output: object, target: HTMLElement) => vo
|
|
|
127
120
|
|
|
128
121
|
function getChromeFlagsLink(flag: string): TemplateResult {
|
|
129
122
|
return html`
|
|
130
|
-
<devtools-
|
|
131
|
-
|
|
132
|
-
</devtools-
|
|
123
|
+
<devtools-link href="chrome://flags/${flag}">
|
|
124
|
+
${flag}
|
|
125
|
+
</devtools-link>`;
|
|
133
126
|
}
|
|
134
127
|
const DEFAULT_VIEW: View = (input: ViewInput, _output: object, target: HTMLElement): void => {
|
|
135
128
|
// createSetting() allows us to initialize the settings with the UI binding values the first
|
|
@@ -213,8 +206,8 @@ const DEFAULT_VIEW: View = (input: ViewInput, _output: object, target: HTMLEleme
|
|
|
213
206
|
PH1: i18nString(UIStrings.gracePeriod),
|
|
214
207
|
}) :
|
|
215
208
|
(input.thirdPartyControlsDict ? !input.thirdPartyControlsDict?.thirdPartyCookieMetadataEnabled: false) ?
|
|
216
|
-
|
|
217
|
-
PH1: getChromeFlagsLink(
|
|
209
|
+
i18nFormatStringTemplate(UIStrings.enableFlag, {
|
|
210
|
+
PH1: getChromeFlagsLink('#tpcd-metadata-grants'),
|
|
218
211
|
}) :
|
|
219
212
|
i18nFormatString(input.isGracePeriodActive ? UIStrings.gracePeriodExplanation : UIStrings.enrollGracePeriod, {
|
|
220
213
|
PH1: UI.Fragment.html`<x-link class="devtools-link" href="https://developers.google.com/privacy-sandbox/cookies/temporary-exceptions/grace-period" jslog=${VisualLogging.link('grace-period-link').track({click: true})}>${i18nString(UIStrings.gracePeriod)}</x-link>`,
|
|
@@ -246,8 +239,8 @@ const DEFAULT_VIEW: View = (input: ViewInput, _output: object, target: HTMLEleme
|
|
|
246
239
|
PH1: i18nString(UIStrings.scenarios),
|
|
247
240
|
}) :
|
|
248
241
|
(input.thirdPartyControlsDict ? !input.thirdPartyControlsDict.thirdPartyCookieHeuristicsEnabled: false) ?
|
|
249
|
-
|
|
250
|
-
PH1: getChromeFlagsLink(
|
|
242
|
+
i18nFormatStringTemplate(UIStrings.enableFlag, {
|
|
243
|
+
PH1: getChromeFlagsLink('#tpcd-heuristics-grants'),
|
|
251
244
|
}) :
|
|
252
245
|
i18nFormatString(UIStrings.heuristicExplanation, {
|
|
253
246
|
PH1: UI.Fragment.html`<x-link class="devtools-link" href="https://developers.google.com/privacy-sandbox/cookies/temporary-exceptions/heuristics-based-exceptions" jslog=${VisualLogging.link('heuristic-link').track({click: true})}>${i18nString(UIStrings.scenarios)}</x-link>`,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// Copyright 2024 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
|
-
import
|
|
4
|
+
import {createIcon} from '../../ui/kit/kit.js';
|
|
5
5
|
|
|
6
6
|
import {SecurityPanelSidebarTreeElement} from './SecurityPanelSidebarTreeElement.js';
|
|
7
7
|
|
|
8
8
|
export class CookieReportTreeElement extends SecurityPanelSidebarTreeElement {
|
|
9
9
|
constructor(title: string, jslogContext: string|number) {
|
|
10
10
|
super(title, false, jslogContext);
|
|
11
|
-
this.setLeadingIcons([
|
|
11
|
+
this.setLeadingIcons([createIcon('cookie', 'cookie-icon')]);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
override get elemId(): string {
|
|
@@ -10,7 +10,7 @@ import type * as Platform from '../../core/platform/platform.js';
|
|
|
10
10
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
11
11
|
import * as Protocol from '../../generated/protocol.js';
|
|
12
12
|
import * as NetworkForward from '../../panels/network/forward/forward.js';
|
|
13
|
-
import
|
|
13
|
+
import {createIcon, type Icon} from '../../ui/kit/kit.js';
|
|
14
14
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
15
15
|
import {html, render} from '../../ui/lit/lit.js';
|
|
16
16
|
import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
|
|
@@ -470,7 +470,7 @@ const WARNING_ICON_NAME = 'warning';
|
|
|
470
470
|
const UNKNOWN_ICON_NAME = 'indeterminate-question-box';
|
|
471
471
|
|
|
472
472
|
export function getSecurityStateIconForDetailedView(
|
|
473
|
-
securityState: Protocol.Security.SecurityState, className: string):
|
|
473
|
+
securityState: Protocol.Security.SecurityState, className: string): Icon {
|
|
474
474
|
let iconName: string;
|
|
475
475
|
|
|
476
476
|
switch (securityState) {
|
|
@@ -488,11 +488,11 @@ export function getSecurityStateIconForDetailedView(
|
|
|
488
488
|
break;
|
|
489
489
|
}
|
|
490
490
|
|
|
491
|
-
return
|
|
491
|
+
return createIcon(iconName, className);
|
|
492
492
|
}
|
|
493
493
|
|
|
494
494
|
export function getSecurityStateIconForOverview(
|
|
495
|
-
securityState: Protocol.Security.SecurityState, className: string):
|
|
495
|
+
securityState: Protocol.Security.SecurityState, className: string): Icon {
|
|
496
496
|
let iconName: string;
|
|
497
497
|
switch (securityState) {
|
|
498
498
|
case Protocol.Security.SecurityState.Unknown: // fallthrough
|
|
@@ -509,7 +509,7 @@ export function getSecurityStateIconForOverview(
|
|
|
509
509
|
case Protocol.Security.SecurityState.Info:
|
|
510
510
|
throw new Error(`Unexpected security state ${securityState}`);
|
|
511
511
|
}
|
|
512
|
-
return
|
|
512
|
+
return createIcon(iconName, className);
|
|
513
513
|
}
|
|
514
514
|
|
|
515
515
|
export function createHighlightedUrl(url: Platform.DevToolsPath.UrlString, securityState: string): Element {
|
|
@@ -8,7 +8,7 @@ import * as i18n from '../../core/i18n/i18n.js';
|
|
|
8
8
|
import * as Platform from '../../core/platform/platform.js';
|
|
9
9
|
import * as Root from '../../core/root/root.js';
|
|
10
10
|
import * as Protocol from '../../generated/protocol.js';
|
|
11
|
-
import type
|
|
11
|
+
import type {Icon} from '../../ui/kit/kit.js';
|
|
12
12
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
13
13
|
|
|
14
14
|
import {CookieControlsTreeElement} from './CookieControlsTreeElement.js';
|
|
@@ -73,7 +73,7 @@ const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
|
73
73
|
export class SecurityPanelSidebar extends UI.Widget.VBox {
|
|
74
74
|
readonly #securitySidebarLastItemSetting: Common.Settings.Setting<string>;
|
|
75
75
|
readonly sidebarTree: UI.TreeOutline.TreeOutlineInShadow;
|
|
76
|
-
readonly #originGroupTitles: Map<OriginGroup, {title: string, icon?:
|
|
76
|
+
readonly #originGroupTitles: Map<OriginGroup, {title: string, icon?: Icon}>;
|
|
77
77
|
#originGroups: Map<OriginGroup, UI.TreeOutline.TreeElement>;
|
|
78
78
|
securityOverviewElement: OriginTreeElement;
|
|
79
79
|
readonly #cookieControlsTreeElement: CookieControlsTreeElement|undefined;
|
|
@@ -204,8 +204,7 @@ export class SecurityPanelSidebar extends UI.Widget.VBox {
|
|
|
204
204
|
return this.#originGroups.get(originGroup) as UI.TreeOutline.TreeElement;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
#createOriginGroupElement(originGroupTitle: string, originGroupIcon?:
|
|
208
|
-
UI.TreeOutline.TreeElement {
|
|
207
|
+
#createOriginGroupElement(originGroupTitle: string, originGroupIcon?: Icon): UI.TreeOutline.TreeElement {
|
|
209
208
|
const originGroup = new UI.TreeOutline.TreeElement(originGroupTitle, true);
|
|
210
209
|
originGroup.selectable = false;
|
|
211
210
|
originGroup.expand();
|
|
@@ -10,7 +10,7 @@ import * as Host from '../../core/host/host.js';
|
|
|
10
10
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
11
11
|
import * as Platform from '../../core/platform/platform.js';
|
|
12
12
|
import * as Buttons from '../../ui/components/buttons/buttons.js';
|
|
13
|
-
import
|
|
13
|
+
import {createIcon, type Icon} from '../../ui/kit/kit.js';
|
|
14
14
|
import * as SettingsUI from '../../ui/legacy/components/settings_ui/settings_ui.js';
|
|
15
15
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
16
16
|
import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
|
|
@@ -383,7 +383,7 @@ export class ShortcutListItem {
|
|
|
383
383
|
|
|
384
384
|
private createEmptyInfo(): void {
|
|
385
385
|
if (UI.ShortcutRegistry.ShortcutRegistry.instance().actionHasDefaultShortcut(this.item.id())) {
|
|
386
|
-
const icon =
|
|
386
|
+
const icon = createIcon('keyboard-pen', 'keybinds-modified');
|
|
387
387
|
UI.ARIAUtils.setLabel(icon, i18nString(UIStrings.shortcutModified));
|
|
388
388
|
this.element.appendChild(icon);
|
|
389
389
|
}
|
|
@@ -441,9 +441,9 @@ export class ShortcutListItem {
|
|
|
441
441
|
if (this.editedShortcuts.has(shortcut) && !this.editedShortcuts.get(shortcut)) {
|
|
442
442
|
return;
|
|
443
443
|
}
|
|
444
|
-
let icon:
|
|
444
|
+
let icon: Icon;
|
|
445
445
|
if (shortcut.type !== UI.KeyboardShortcut.Type.UNSET_SHORTCUT && !shortcut.isDefault()) {
|
|
446
|
-
icon =
|
|
446
|
+
icon = createIcon('keyboard-pen', 'keybinds-modified');
|
|
447
447
|
UI.ARIAUtils.setLabel(icon, i18nString(UIStrings.shortcutModified));
|
|
448
448
|
this.element.appendChild(icon);
|
|
449
449
|
}
|
|
@@ -12,9 +12,8 @@ import * as Host from '../../core/host/host.js';
|
|
|
12
12
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
13
13
|
import * as Root from '../../core/root/root.js';
|
|
14
14
|
import * as Buttons from '../../ui/components/buttons/buttons.js';
|
|
15
|
-
import * as IconButton from '../../ui/components/icon_button/icon_button.js';
|
|
16
15
|
import * as UIHelpers from '../../ui/helpers/helpers.js';
|
|
17
|
-
import type
|
|
16
|
+
import {type Card, createIcon} from '../../ui/kit/kit.js';
|
|
18
17
|
import * as SettingsUI from '../../ui/legacy/components/settings_ui/settings_ui.js';
|
|
19
18
|
import * as Components from '../../ui/legacy/components/utils/utils.js';
|
|
20
19
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
@@ -460,7 +459,7 @@ export class ExperimentsSettingsTab extends UI.Widget.VBox implements SettingsTa
|
|
|
460
459
|
private createExperimentsWarningSubsection(warningMessage: string): HTMLElement {
|
|
461
460
|
const subsection = document.createElement('div');
|
|
462
461
|
subsection.classList.add('experiments-warning-subsection');
|
|
463
|
-
const warningIcon =
|
|
462
|
+
const warningIcon = createIcon('warning');
|
|
464
463
|
subsection.appendChild(warningIcon);
|
|
465
464
|
const warning = subsection.createChild('span');
|
|
466
465
|
warning.textContent = warningMessage;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
|
-
import '../../../ui/components/chrome_link/chrome_link.js';
|
|
6
5
|
import '../../../ui/components/settings/settings.js';
|
|
7
6
|
import '../../../ui/components/tooltips/tooltips.js';
|
|
8
7
|
|
|
@@ -2,10 +2,13 @@
|
|
|
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 '../../ui/kit/kit.js';
|
|
6
|
+
import '../../ui/components/highlighting/highlighting.js';
|
|
7
|
+
|
|
5
8
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
6
9
|
import type * as Workspace from '../../models/workspace/workspace.js';
|
|
7
|
-
import * as IconButton from '../../ui/components/icon_button/icon_button.js';
|
|
8
10
|
import * as QuickOpen from '../../ui/legacy/components/quick_open/quick_open.js';
|
|
11
|
+
import {html, type TemplateResult} from '../../ui/lit/lit.js';
|
|
9
12
|
|
|
10
13
|
import {evaluateScriptSnippet, findSnippetsProject} from './ScriptSnippetFileSystem.js';
|
|
11
14
|
|
|
@@ -81,13 +84,18 @@ export class SnippetsQuickOpen extends QuickOpen.FilteredListWidget.Provider {
|
|
|
81
84
|
return this.snippets[itemIndex].name();
|
|
82
85
|
}
|
|
83
86
|
|
|
84
|
-
override renderItem(itemIndex: number, query: string
|
|
85
|
-
|
|
86
|
-
const
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
87
|
+
override renderItem(itemIndex: number, query: string): TemplateResult {
|
|
88
|
+
// clang-format off
|
|
89
|
+
const snippet = this.snippets[itemIndex].name();
|
|
90
|
+
const highlightRanges = QuickOpen.FilteredListWidget.FilteredListWidget.getHighlightRanges(snippet, query, true);
|
|
91
|
+
return html`
|
|
92
|
+
<devtools-icon class="snippet" name="snippet"></devtools-icon>
|
|
93
|
+
<div>
|
|
94
|
+
<devtools-highlight type="markup" ranges=${highlightRanges}>
|
|
95
|
+
${snippet}
|
|
96
|
+
</devtools-highlight>
|
|
97
|
+
</div>`;
|
|
98
|
+
// clang-format on
|
|
91
99
|
}
|
|
92
100
|
}
|
|
93
101
|
|
|
@@ -10,8 +10,8 @@ import * as i18n from '../../core/i18n/i18n.js';
|
|
|
10
10
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
11
11
|
import type * as BreakpointManager from '../../models/breakpoints/breakpoints.js';
|
|
12
12
|
import * as CodeMirror from '../../third_party/codemirror.next/codemirror.next.js';
|
|
13
|
-
import * as IconButton from '../../ui/components/icon_button/icon_button.js';
|
|
14
13
|
import * as TextEditor from '../../ui/components/text_editor/text_editor.js';
|
|
14
|
+
import {createIcon} from '../../ui/kit/kit.js';
|
|
15
15
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
16
16
|
import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
|
|
17
17
|
|
|
@@ -181,7 +181,7 @@ export class BreakpointEditDialog extends UI.Widget.Widget {
|
|
|
181
181
|
}));
|
|
182
182
|
editorWrapper.appendChild(this.editor);
|
|
183
183
|
|
|
184
|
-
const closeIcon =
|
|
184
|
+
const closeIcon = createIcon('cross');
|
|
185
185
|
closeIcon.title = i18nString(UIStrings.closeDialog);
|
|
186
186
|
closeIcon.setAttribute('jslog', `${VisualLogging.close().track({click: true})}`);
|
|
187
187
|
closeIcon.onclick = () => this.finishEditing(true, this.editor.state.doc.toString());
|
|
@@ -196,7 +196,7 @@ export class BreakpointEditDialog extends UI.Widget.Widget {
|
|
|
196
196
|
const link = UI.Fragment.html`<x-link class="link devtools-link" tabindex="0" href="https://goo.gle/devtools-loc"
|
|
197
197
|
jslog="${VisualLogging.link('learn-more')}">${
|
|
198
198
|
i18nString(UIStrings.learnMoreOnBreakpointTypes)}</x-link>` as UI.XLink.XLink;
|
|
199
|
-
const linkIcon =
|
|
199
|
+
const linkIcon = createIcon('open-externally', 'link-icon');
|
|
200
200
|
link.prepend(linkIcon);
|
|
201
201
|
linkWrapper.appendChild(link);
|
|
202
202
|
|
|
@@ -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
|
-
import '../../ui/
|
|
5
|
+
import '../../ui/kit/kit.js';
|
|
6
6
|
|
|
7
7
|
import * as Common from '../../core/common/common.js';
|
|
8
8
|
import * as Host from '../../core/host/host.js';
|
|
@@ -13,7 +13,7 @@ import * as Bindings from '../../models/bindings/bindings.js';
|
|
|
13
13
|
import * as Geometry from '../../models/geometry/geometry.js';
|
|
14
14
|
import * as Workspace from '../../models/workspace/workspace.js';
|
|
15
15
|
import * as CodeMirror from '../../third_party/codemirror.next/codemirror.next.js';
|
|
16
|
-
import
|
|
16
|
+
import {createIcon, type Icon} from '../../ui/kit/kit.js';
|
|
17
17
|
import * as ColorPicker from '../../ui/legacy/components/color_picker/color_picker.js';
|
|
18
18
|
import * as InlineEditor from '../../ui/legacy/components/inline_editor/inline_editor.js';
|
|
19
19
|
import type * as SourceFrame from '../../ui/legacy/components/source_frame/source_frame.js';
|
|
@@ -163,7 +163,7 @@ class ColorSwatchWidget extends CodeMirror.WidgetType {
|
|
|
163
163
|
|
|
164
164
|
toDOM(view: CodeMirror.EditorView): HTMLElement {
|
|
165
165
|
const swatch = new InlineEditor.ColorSwatch.ColorSwatch(i18nString(UIStrings.openColorPicker));
|
|
166
|
-
swatch.
|
|
166
|
+
swatch.color = this.#color;
|
|
167
167
|
const value = swatch.createChild('span');
|
|
168
168
|
value.textContent = this.#text;
|
|
169
169
|
value.setAttribute('hidden', 'true');
|
|
@@ -171,13 +171,13 @@ class ColorSwatchWidget extends CodeMirror.WidgetType {
|
|
|
171
171
|
const insert = event.data.color.getAuthoredText() ?? event.data.color.asString();
|
|
172
172
|
view.dispatch({changes: {from: this.#from, to: this.#from + this.#text.length, insert}});
|
|
173
173
|
this.#text = insert;
|
|
174
|
-
this.#color = swatch.
|
|
174
|
+
this.#color = swatch.color as Common.Color.Color;
|
|
175
175
|
});
|
|
176
176
|
swatch.addEventListener(InlineEditor.ColorSwatch.ColorFormatChangedEvent.eventName, event => {
|
|
177
177
|
const insert = event.data.color.getAuthoredText() ?? event.data.color.asString();
|
|
178
178
|
view.dispatch({changes: {from: this.#from, to: this.#from + this.#text.length, insert}});
|
|
179
179
|
this.#text = insert;
|
|
180
|
-
this.#color = swatch.
|
|
180
|
+
this.#color = swatch.color as Common.Color.Color;
|
|
181
181
|
});
|
|
182
182
|
swatch.addEventListener(InlineEditor.ColorSwatch.ClickEvent.eventName, event => {
|
|
183
183
|
event.consume(true);
|
|
@@ -211,7 +211,7 @@ class CurveSwatchWidget extends CodeMirror.WidgetType {
|
|
|
211
211
|
toDOM(view: CodeMirror.EditorView): HTMLElement {
|
|
212
212
|
const container = document.createElement('span');
|
|
213
213
|
const bezierText = container.createChild('span');
|
|
214
|
-
const icon =
|
|
214
|
+
const icon = createIcon('bezier-curve-filled', 'bezier-swatch-icon');
|
|
215
215
|
icon.setAttribute('jslog', `${VisualLogging.showStyleEditor('bezier')}`);
|
|
216
216
|
bezierText.append(this.text);
|
|
217
217
|
UI.Tooltip.Tooltip.install(icon, i18nString(UIStrings.openCubicBezierEditor));
|
|
@@ -251,7 +251,7 @@ type ActiveTooltip = {
|
|
|
251
251
|
pos: number,
|
|
252
252
|
text: string,
|
|
253
253
|
curve: Geometry.CubicBezier,
|
|
254
|
-
swatch:
|
|
254
|
+
swatch: Icon,
|
|
255
255
|
};
|
|
256
256
|
|
|
257
257
|
function createCSSTooltip(active: ActiveTooltip): CodeMirror.Tooltip {
|