chrome-devtools-frontend 1.0.1726686 → 1.0.1730971
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/.agents/rules/tests/test-strict-assertions-and-literal-expectations.md +1 -1
- package/.agents/rules/tests/test-view-and-presenter-isolation.md +1 -1
- package/.agents/rules/ui-and-widgets/ui-accessibility-and-semantic-html.md +1 -1
- package/.agents/rules/ui-and-widgets/ui-css-scoping-and-flex-layout.md +2 -2
- package/.agents/rules/ui-and-widgets/ui-declarative-child-widget-composition.md +5 -5
- package/.agents/rules/ui-and-widgets/ui-lit-declarative-templates-and-directives.md +2 -2
- package/.agents/rules/ui-and-widgets/ui-localization-and-uistrings-hygiene.md +2 -2
- package/.agents/rules/ui-and-widgets/ui-modern-component-and-encapsulation-standards.md +3 -3
- package/.agents/rules/ui-and-widgets/ui-pure-view-and-presenter-separation.md +2 -2
- package/.agents/rules/ui-and-widgets/ui-reactive-widget-update-lifecycle.md +2 -2
- package/.agents/rules/ui-and-widgets/ui-view-output-and-callback-contracts.md +2 -2
- package/.agents/rules/ui-and-widgets/ui-widget-dom-and-listener-lifecycle.md +2 -2
- package/.agents/skills/code-review/SKILL.md +63 -12
- package/.agents/skills/ui-eng-vision-local-lit-renderer/SKILL.md +38 -10
- package/.agents/skills/ui-eng-vision-widget-promoter/SKILL.md +1 -0
- package/.agents/skills/ui-widgets/SKILL.md +8 -2
- package/.agents/skills/write-ai-eval-test/SKILL.md +106 -0
- package/AUTHORS +2 -0
- package/DIR_METADATA +1 -2
- package/README.md +48 -26
- package/config/typescript/tsconfig.base.json +1 -0
- package/config/typescript/tsconfig.eslint.json +1 -0
- package/docs/contributing/changes.md +25 -0
- package/docs/ui_engineering.md +13 -4
- package/eslint.config.mjs +323 -41
- package/front_end/core/common/Color.ts +7 -7
- package/front_end/core/common/ParsedURL.ts +3 -3
- package/front_end/core/common/ResolverBase.ts +3 -3
- package/front_end/core/common/SegmentedRange.ts +3 -3
- package/front_end/core/common/SimpleHistoryManager.ts +14 -14
- package/front_end/core/common/Trie.ts +3 -3
- package/front_end/core/common/VersionController.ts +7 -7
- package/front_end/core/host/InspectorFrontendHost.ts +2 -2
- package/front_end/core/host/InspectorFrontendHostAPI.ts +9 -1
- package/front_end/core/host/InspectorFrontendHostStub.ts +1 -1
- package/front_end/core/host/UserMetrics.ts +4 -0
- package/front_end/core/host/UserMetricsEnums.ts +2 -1
- package/front_end/core/platform/StringUtilities.ts +54 -13
- package/front_end/core/platform/node/HostRuntime.ts +13 -7
- package/front_end/core/protocol_client/DevToolsCDPConnection.ts +4 -5
- package/front_end/core/root/Runtime.ts +5 -0
- package/front_end/core/sdk/AccessibilityModel.ts +5 -5
- package/front_end/core/sdk/AnimationModel.ts +17 -19
- package/front_end/core/sdk/CPUProfilerModel.ts +3 -3
- package/front_end/core/sdk/CPUThrottlingManager.ts +7 -0
- package/front_end/core/sdk/CSSMatchedStyles.ts +73 -13
- package/front_end/core/sdk/CSSMetadata.ts +7 -7
- package/front_end/core/sdk/CSSModel.ts +33 -33
- package/front_end/core/sdk/CSSProperty.ts +5 -5
- package/front_end/core/sdk/CSSRule.ts +6 -6
- package/front_end/core/sdk/CSSStyleSheetHeader.ts +4 -4
- package/front_end/core/sdk/Connections.ts +16 -16
- package/front_end/core/sdk/ConsoleModel.ts +44 -47
- package/front_end/core/sdk/CookieParser.ts +11 -11
- package/front_end/core/sdk/EmulationModel.ts +35 -36
- package/front_end/core/sdk/EventBreakpointsModel.ts +11 -11
- package/front_end/core/sdk/FrameManager.ts +16 -16
- package/front_end/core/sdk/IsolateManager.ts +2 -2
- package/front_end/core/sdk/IssuesModel.ts +2 -2
- package/front_end/core/sdk/OverlayModel.ts +19 -19
- package/front_end/core/sdk/PageResourceLoader.ts +14 -16
- package/front_end/core/sdk/RemoteObject.ts +9 -9
- package/front_end/core/sdk/Resource.ts +2 -2
- package/front_end/core/sdk/RuntimeModel.ts +7 -7
- package/front_end/core/sdk/Script.ts +6 -6
- package/front_end/core/sdk/ServiceWorkerManager.ts +36 -10
- package/front_end/core/sdk/SourceMap.ts +18 -20
- package/front_end/core/sdk/SourceMapManager.ts +2 -2
- package/front_end/core/sdk/TargetManager.ts +2 -2
- package/front_end/devtools_compatibility.js +7 -3
- package/front_end/entrypoints/inspector_main/InspectorMain.ts +2 -2
- package/front_end/entrypoints/node_app/app/NodeConnectionsPanel.ts +203 -115
- package/front_end/generated/InspectorBackendCommands.ts +1 -1
- package/front_end/generated/SupportedCSSProperties.ts +1 -3
- package/front_end/generated/protocol.ts +1 -0
- package/front_end/models/ai_assistance/AiAgent2.ts +36 -12
- package/front_end/models/ai_assistance/AiConversation.ts +8 -2
- package/front_end/models/ai_assistance/agents/AiAgent.ts +137 -62
- package/front_end/models/ai_assistance/agents/ExecuteJavascript.ts +2 -2
- package/front_end/models/ai_assistance/agents/StylingAgent.snapshot.txt +2 -2
- package/front_end/models/ai_assistance/data_formatters/LighthouseFormatter.snapshot.txt +149 -2
- package/front_end/models/ai_assistance/data_formatters/LighthouseFormatter.ts +269 -42
- package/front_end/models/ai_assistance/tools/ExecuteJavaScript.ts +3 -0
- package/front_end/models/ai_assistance/tools/GetLighthouseAudits.ts +9 -0
- package/front_end/models/ai_assistance/tools/ResolveDevtoolsNodePath.ts +13 -2
- package/front_end/models/ai_assistance/tools/RunLighthouse.ts +23 -7
- package/front_end/models/ai_assistance/tools/Tool.ts +7 -5
- package/front_end/models/bindings/CSSWorkspaceBinding.ts +22 -24
- package/front_end/models/bindings/DebuggerLanguagePlugins.ts +60 -60
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +24 -24
- package/front_end/models/bindings/DefaultScriptMapping.ts +8 -8
- package/front_end/models/bindings/FileUtils.ts +13 -13
- package/front_end/models/bindings/PresentationConsoleMessageHelper.ts +3 -3
- package/front_end/models/bindings/ResourceScriptMapping.ts +23 -23
- package/front_end/models/comment_manager/CommentManager.ts +3 -3
- package/front_end/models/comment_manager/CommentThread.ts +50 -5
- package/front_end/models/cpu_profile/CPUProfileDataModel.ts +14 -14
- package/front_end/models/cpu_profile/ProfileTreeModel.ts +4 -4
- package/front_end/models/elements/StyleChanges.ts +38 -0
- package/front_end/models/emulation/EmulatedDevices.ts +12 -12
- package/front_end/models/har/HARFormat.ts +4 -4
- package/front_end/models/javascript_metadata/NativeFunctions.ts +5 -1
- package/front_end/models/lighthouse/LighthouseReporterTypes.ts +57 -3
- package/front_end/models/lighthouse/RunTypes.ts +9 -1
- package/front_end/models/logs/LogManager.ts +2 -2
- package/front_end/models/persistence/AutomaticFileSystemManager.ts +3 -0
- package/front_end/models/persistence/FileSystemWorkspaceBinding.ts +24 -24
- package/front_end/models/persistence/IsolatedFileSystemManager.ts +6 -0
- package/front_end/models/persistence/NetworkPersistenceManager.ts +8 -3
- package/front_end/models/trace/LanternComputationData.ts +37 -11
- package/front_end/models/trace/Processor.ts +2 -1
- package/front_end/models/trace/extras/TraceTree.ts +36 -10
- package/front_end/models/trace/handlers/InitiatorsHandler.ts +27 -34
- package/front_end/models/trace/handlers/LayoutShiftsHandler.ts +2 -6
- package/front_end/models/trace/handlers/SamplesHandler.ts +9 -6
- package/front_end/models/workspace/FileManager.ts +6 -0
- package/front_end/panels/accessibility/ARIAAttributesView.ts +4 -4
- package/front_end/panels/accessibility/AccessibilityAnnouncementRecordingView.ts +8 -1
- package/front_end/panels/accessibility/AccessibilityNodeView.ts +15 -17
- package/front_end/panels/accessibility/AccessibilitySubPane.ts +1 -1
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +5 -5
- package/front_end/panels/ai_assistance/ExternalHandler.ts +10 -1
- package/front_end/panels/ai_assistance/components/ChatMessage.ts +27 -22
- package/front_end/panels/ai_assistance/components/DisabledWidget.ts +19 -23
- package/front_end/panels/ai_assistance/components/ExploreWidget.ts +2 -2
- package/front_end/panels/ai_assistance/components/PermissionPrompt.ts +23 -9
- package/front_end/panels/ai_assistance/components/chatInput.css +1 -1
- package/front_end/panels/animation/AnimationTimeline.ts +37 -17
- package/front_end/panels/animation/animationTimeline.css +19 -3
- package/front_end/panels/application/AppManifestView.ts +1 -2
- package/front_end/panels/application/ApplicationPanelSidebar.ts +143 -128
- package/front_end/panels/application/DOMStorageItemsView.ts +14 -14
- package/front_end/panels/application/DeviceBoundSessionsView.ts +10 -13
- package/front_end/panels/application/ExtensionStorageItemsView.ts +3 -4
- package/front_end/panels/application/IndexedDBViews.ts +8 -4
- package/front_end/panels/application/KeyValueStorageItemsView.ts +4 -5
- package/front_end/panels/application/PrivateVerificationTokensView.ts +53 -0
- package/front_end/panels/application/ServiceWorkerCacheViews.ts +12 -8
- package/front_end/panels/application/ServiceWorkersView.ts +1 -2
- package/front_end/panels/application/StorageItemsToolbar.ts +3 -3
- package/front_end/panels/application/StorageView.ts +2 -2
- package/front_end/panels/application/WebMCPView.ts +91 -109
- package/front_end/panels/application/application.ts +2 -0
- package/front_end/panels/application/components/StorageMetadataView.ts +6 -6
- package/front_end/panels/application/preloading/PreloadingView.ts +70 -37
- package/front_end/panels/application/preloading/components/MismatchedPreloadingGrid.ts +2 -2
- package/front_end/panels/application/preloading/components/PreloadingDisabledInfobar.ts +3 -3
- package/front_end/panels/application/preloading/components/PreloadingGrid.ts +12 -0
- package/front_end/panels/application/preloading/components/RuleSetDetailsView.ts +10 -11
- package/front_end/panels/application/privateVerificationTokensView.css +20 -0
- package/front_end/panels/application/serviceWorkersView.css +2 -2
- package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +24 -24
- package/front_end/panels/changes/ChangesSidebar.ts +5 -5
- package/front_end/panels/changes/ChangesView.ts +10 -11
- package/front_end/panels/comments/CommentsPane.ts +292 -102
- package/front_end/panels/comments/commentsPane.css +93 -12
- package/front_end/panels/common/CommentThreadWidget.ts +69 -0
- package/front_end/panels/common/CommentsOverlayWidget.ts +108 -29
- package/front_end/panels/common/CommentsStatusBarPill.ts +17 -6
- package/front_end/panels/common/DOMLinkifier.ts +37 -12
- package/front_end/panels/common/ExtensionPanel.ts +13 -4
- package/front_end/panels/common/ExtensionServer.ts +27 -3
- package/front_end/panels/common/PersistenceUtils.ts +3 -3
- package/front_end/panels/common/commentThreadWidget.css +25 -1
- package/front_end/panels/common/common-meta.ts +10 -0
- package/front_end/panels/console/ConsolePinPane.ts +13 -15
- package/front_end/panels/console/ConsolePrompt.ts +173 -95
- package/front_end/panels/console/ConsoleSidebar.ts +2 -2
- package/front_end/panels/console/ConsoleView.ts +75 -79
- package/front_end/panels/console/ConsoleViewMessage.ts +52 -4
- package/front_end/panels/console/SymbolizedErrorWidget.ts +8 -4
- package/front_end/panels/console/consolePrompt.css +1 -1
- package/front_end/panels/console/consoleView.css +1 -1
- package/front_end/panels/console_counters/WarningErrorCounter.ts +3 -4
- package/front_end/panels/coverage/CoverageListView.ts +2 -2
- package/front_end/panels/coverage/CoverageView.ts +20 -5
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +4 -3
- package/front_end/panels/css_overview/CSSOverviewPanel.ts +2 -2
- package/front_end/panels/css_overview/CSSOverviewProcessingView.ts +2 -2
- package/front_end/panels/css_overview/CSSOverviewSidebarPanel.ts +2 -2
- package/front_end/panels/css_overview/CSSOverviewStartView.ts +2 -2
- package/front_end/panels/css_overview/CSSOverviewUnusedDeclarations.ts +8 -8
- package/front_end/panels/developer_resources/DeveloperResourcesListView.ts +2 -3
- package/front_end/panels/developer_resources/DeveloperResourcesView.ts +4 -5
- package/front_end/panels/elements/AccessibilityTreeUtils.ts +6 -7
- package/front_end/panels/elements/CSSValueTraceView.ts +3 -3
- package/front_end/panels/elements/ClassesPaneWidget.ts +1 -2
- package/front_end/panels/elements/ComputedStyleWidget.ts +15 -14
- package/front_end/panels/elements/DOMTreeElementWidget.ts +5 -4
- package/front_end/panels/elements/DOMTreeWidget.ts +2 -1
- package/front_end/panels/elements/ElementStatePaneWidget.ts +2 -2
- package/front_end/panels/elements/ElementsPanel.ts +1 -0
- package/front_end/panels/elements/EventListenersWidget.ts +2 -2
- package/front_end/panels/elements/LayoutPane.ts +2 -2
- package/front_end/panels/elements/PlatformFontsWidget.ts +3 -3
- package/front_end/panels/elements/PropertiesWidget.ts +9 -10
- package/front_end/panels/elements/PropertyRenderer.ts +72 -11
- package/front_end/panels/elements/StandaloneStylesContainer.ts +5 -10
- package/front_end/panels/elements/StyleEditorWidget.ts +30 -16
- package/front_end/panels/elements/StylePropertiesSection.ts +93 -44
- package/front_end/panels/elements/StylePropertyTreeElement.ts +230 -302
- package/front_end/panels/elements/StylesContainer.ts +2 -3
- package/front_end/panels/elements/StylesSidebarPane.ts +4 -13
- package/front_end/panels/elements/components/AccessibilityTreeNode.ts +66 -37
- package/front_end/panels/elements/components/CSSHintDetailsView.ts +51 -41
- package/front_end/panels/elements/components/CSSPropertyDocsView.ts +75 -65
- package/front_end/panels/elements/components/CSSQuery.ts +112 -74
- package/front_end/panels/elements/components/CSSVariableValueView.ts +109 -68
- package/front_end/panels/elements/components/ComputedStyleProperty.ts +64 -45
- package/front_end/panels/elements/components/ElementsTreeExpandButton.ts +35 -28
- package/front_end/panels/elements/components/QueryContainer.ts +104 -74
- package/front_end/panels/elements/components/accessibilityTreeNode.css +22 -20
- package/front_end/panels/elements/components/computedStyleProperty.css +2 -0
- package/front_end/panels/elements/components/cssHintDetailsView.css +23 -21
- package/front_end/panels/elements/components/cssPropertyDocsView.css +38 -36
- package/front_end/panels/elements/components/cssVariableValueView.css +42 -40
- package/front_end/panels/elements/components/elementsTreeExpandButton.css +5 -2
- package/front_end/panels/elements/components/queryContainer.css +23 -21
- package/front_end/panels/elements/stylesSidebarPane.css +3 -3
- package/front_end/panels/emulation/DeviceModeToolbar.ts +2 -2
- package/front_end/panels/emulation/InspectedPagePlaceholder.ts +2 -2
- package/front_end/panels/emulation/MediaQueryInspector.ts +9 -10
- package/front_end/panels/emulation/mediaQueryInspector.css +1 -1
- package/front_end/panels/event_listeners/EventListenersView.ts +2 -2
- package/front_end/panels/issues/AffectedCookiesView.ts +144 -101
- package/front_end/panels/issues/AffectedDescendantsWithinSelectElementView.ts +83 -31
- package/front_end/panels/issues/AffectedDirectivesView.ts +218 -135
- package/front_end/panels/issues/AffectedDocumentsInQuirksModeView.ts +84 -34
- package/front_end/panels/issues/AffectedElementsView.ts +86 -23
- package/front_end/panels/issues/AffectedLazyLoadImagesView.ts +2 -2
- package/front_end/panels/issues/AffectedMetadataAllowedSitesView.ts +2 -2
- package/front_end/panels/issues/AffectedPartitioningBlobURLView.ts +36 -11
- package/front_end/panels/issues/AffectedSharedArrayBufferIssueDetailsView.ts +135 -58
- package/front_end/panels/issues/AffectedSourcesView.ts +49 -28
- package/front_end/panels/issues/AffectedTrackingSitesView.ts +3 -4
- package/front_end/panels/issues/CorsIssueDetailsView.ts +490 -269
- package/front_end/panels/issues/GenericIssueDetailsView.ts +2 -2
- package/front_end/panels/issues/IssueKindView.ts +63 -48
- package/front_end/panels/issues/IssueView.ts +14 -18
- package/front_end/panels/issues/components/ElementsPanelLink.ts +70 -34
- package/front_end/panels/issues/components/HideIssuesMenu.ts +56 -32
- package/front_end/panels/issues/components/elementsPanelLink.css +10 -6
- package/front_end/panels/issues/components/hideIssuesMenu.css +16 -14
- package/front_end/panels/issues/issues.ts +2 -0
- package/front_end/panels/issues/issuesTree.css +4 -4
- package/front_end/panels/lighthouse/LighthouseController.ts +6 -6
- package/front_end/panels/lighthouse/LighthouseStatusView.ts +12 -13
- package/front_end/panels/lighthouse/lighthouseStartView.css +1 -1
- package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorPane.ts +159 -161
- package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorView.ts +228 -0
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.ts +32 -41
- package/front_end/panels/linear_memory_inspector/components/linearMemoryHighlightChipList.css +2 -2
- package/front_end/panels/linear_memory_inspector/linear_memory_inspector.ts +2 -0
- package/front_end/panels/media/EventDisplayTable.ts +2 -2
- package/front_end/panels/media/MainView.ts +132 -66
- package/front_end/panels/media/PlayerDetailView.ts +32 -14
- package/front_end/panels/media/PlayerListView.ts +83 -23
- package/front_end/panels/media/PlayerPropertiesView.ts +2 -2
- package/front_end/panels/media/TickingFlameChart.ts +153 -63
- package/front_end/panels/mobile_throttling/NetworkThrottlingSelector.ts +2 -2
- package/front_end/panels/mobile_throttling/ThrottlingSettingsTab.ts +615 -464
- package/front_end/panels/mobile_throttling/throttlingSettingsTab.css +43 -0
- package/front_end/panels/network/EventSourceMessagesView.ts +3 -3
- package/front_end/panels/network/NetworkConfigView.ts +6 -2
- package/front_end/panels/network/NetworkDataGridNode.ts +2 -1
- package/front_end/panels/network/NetworkItemView.ts +27 -26
- package/front_end/panels/network/NetworkManageCustomHeadersView.ts +236 -97
- package/front_end/panels/network/NetworkOverview.ts +8 -10
- package/front_end/panels/network/RequestConditionsDrawer.ts +8 -4
- package/front_end/panels/network/RequestDeviceBoundSessionsView.ts +2 -4
- package/front_end/panels/network/RequestHTMLView.ts +26 -7
- package/front_end/panels/network/RequestHeadersView.ts +2 -2
- package/front_end/panels/network/RequestInitiatorView.ts +21 -22
- package/front_end/panels/network/RequestPayloadView.ts +2 -16
- package/front_end/panels/network/RequestPreviewView.ts +5 -5
- package/front_end/panels/network/RequestTimingView.ts +6 -6
- package/front_end/panels/network/ResourceDirectSocketChunkView.ts +5 -6
- package/front_end/panels/network/ResourceWebSocketFrameView.ts +4 -3
- package/front_end/panels/network/ShowMoreDetailsWidget.ts +11 -12
- package/front_end/panels/network/SignedExchangeInfoView.ts +2 -2
- package/front_end/panels/network/networkLogView.css +2 -2
- package/front_end/panels/network/networkManageCustomHeadersView.css +27 -6
- package/front_end/panels/network/requestConditionsDrawer.css +1 -1
- package/front_end/panels/network/requestInitiatorView.css +5 -3
- package/front_end/panels/performance_monitor/PerformanceMonitor.ts +2 -2
- package/front_end/panels/profiler/HeapDetachedElementsView.ts +1 -2
- package/front_end/panels/profiler/HeapTimelineOverview.ts +77 -15
- package/front_end/panels/profiler/IsolateSelector.ts +258 -187
- package/front_end/panels/profiler/ProfileLauncherView.ts +7 -29
- package/front_end/panels/profiler/profileLauncherView.css +6 -1
- package/front_end/panels/protocol_monitor/JSONEditor.ts +4 -5
- package/front_end/panels/recorder/ControlButton.ts +1 -1
- package/front_end/panels/recorder/RecordingListView.ts +2 -4
- package/front_end/panels/recorder/RecordingView.ts +1 -2
- package/front_end/panels/recorder/SelectorPicker.ts +2 -4
- package/front_end/panels/recorder/StepView.ts +24 -10
- package/front_end/panels/recorder/TimelineSection.ts +1 -1
- package/front_end/panels/recorder/recordingView.css +1 -1
- package/front_end/panels/screencast/ScreencastApp.ts +1 -1
- package/front_end/panels/search/SearchResultsPane.ts +11 -12
- package/front_end/panels/search/SearchView.ts +8 -10
- package/front_end/panels/security/SecurityPanel.ts +1 -8
- package/front_end/panels/security/SecurityPanelSidebar.ts +2 -2
- package/front_end/panels/security/mainView.css +1 -1
- package/front_end/panels/sensors/LocationsSettingsTab.ts +1 -2
- package/front_end/panels/settings/AISettingsTab.ts +1 -1
- package/front_end/panels/settings/BackendLinkingSettingsTab.ts +34 -20
- package/front_end/panels/settings/EditFileSystemView.ts +2 -2
- package/front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts +375 -197
- package/front_end/panels/settings/KeybindsSettingsTab.ts +570 -414
- package/front_end/panels/settings/SettingsScreen.ts +312 -114
- package/front_end/panels/settings/WorkspaceSettingsTab.ts +2 -2
- package/front_end/panels/settings/aiSettingsTab.css +1 -4
- package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +924 -578
- package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +9 -2
- package/front_end/panels/settings/emulation/devicesSettingsTab.css +39 -0
- package/front_end/panels/settings/frameworkIgnoreListSettingsTab.css +37 -8
- package/front_end/panels/settings/settingsScreen.css +0 -24
- package/front_end/panels/sources/BreakpointEditDialog.ts +9 -6
- package/front_end/panels/sources/BreakpointsView.ts +25 -4
- package/front_end/panels/sources/CallStackSidebarPane.ts +7 -1
- package/front_end/panels/sources/DebuggerPlugin.ts +1 -0
- package/front_end/panels/sources/GoToLineQuickOpen.ts +8 -8
- package/front_end/panels/sources/NavigatorView.ts +521 -439
- package/front_end/panels/sources/PersistenceActions.ts +11 -12
- package/front_end/panels/sources/ProfilePlugin.ts +28 -17
- package/front_end/panels/sources/ScopeChainSidebarPane.ts +3 -4
- package/front_end/panels/sources/SourcesNavigator.ts +9 -9
- package/front_end/panels/sources/SourcesPanel.ts +2 -2
- package/front_end/panels/sources/SourcesView.ts +3 -3
- package/front_end/panels/sources/ThreadsSidebarPane.ts +2 -2
- package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +2 -2
- package/front_end/panels/sources/components/HeadersView.ts +1 -2
- package/front_end/panels/timeline/CompatibilityTracksAppender.ts +5 -6
- package/front_end/panels/timeline/EventsTimelineTreeView.ts +73 -34
- package/front_end/panels/timeline/IsolateSelector.ts +25 -37
- package/front_end/panels/timeline/StatusDialog.ts +5 -7
- package/front_end/panels/timeline/ThirdPartyTreeView.ts +10 -13
- package/front_end/panels/timeline/TimelineDetailsView.ts +40 -21
- package/front_end/panels/timeline/TimelineEventOverview.ts +130 -34
- package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +1 -1
- package/front_end/panels/timeline/TimelineMiniMap.ts +255 -103
- package/front_end/panels/timeline/TimelinePaintProfilerView.ts +19 -11
- package/front_end/panels/timeline/TimelinePanel.ts +1 -0
- package/front_end/panels/timeline/TimelineSelectorStatsView.ts +11 -12
- package/front_end/panels/timeline/TimelineTreeView.ts +240 -122
- package/front_end/panels/timeline/TimelineUIUtils.ts +12 -0
- package/front_end/panels/timeline/components/BreadcrumbsUI.ts +5 -4
- package/front_end/panels/timeline/components/DetailsView.ts +97 -65
- package/front_end/panels/timeline/components/LayoutShiftDetails.ts +2 -2
- package/front_end/panels/timeline/components/MetricCard.ts +2 -2
- package/front_end/panels/timeline/components/NetworkRequestDetails.ts +11 -12
- package/front_end/panels/timeline/components/NetworkTrackWidget.ts +57 -50
- package/front_end/panels/timeline/components/RelatedInsightChips.ts +2 -2
- package/front_end/panels/timeline/components/Sidebar.ts +161 -109
- package/front_end/panels/timeline/components/SidebarAnnotationsTab.ts +33 -12
- package/front_end/panels/timeline/components/SidebarInsightsTab.ts +3 -0
- package/front_end/panels/timeline/components/insights/LCPDiscovery.ts +11 -11
- package/front_end/panels/timeline/components/insights/SlowCSSSelector.ts +6 -7
- package/front_end/panels/timeline/components/networkTrackWidget.css +24 -22
- package/front_end/panels/timeline/components/sidebarInsightsTab.css +1 -1
- package/front_end/panels/timeline/overlays/components/TimespanBreakdownOverlay.ts +15 -10
- package/front_end/panels/timeline/overlays/components/entryLabelOverlay.css +1 -1
- package/front_end/panels/timeline/timelinePanel.css +5 -0
- package/front_end/panels/timeline/timelineStatusDialog.css +1 -1
- package/front_end/panels/web_audio/WebAudioView.ts +2 -2
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/legacy-javascript/README.chromium +2 -2
- package/front_end/third_party/legacy-javascript/lib/legacy-javascript.js +2 -2
- package/front_end/third_party/legacy-javascript/package.json +1 -1
- package/front_end/third_party/lighthouse/README.chromium +2 -2
- package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +1983 -2022
- package/front_end/third_party/lighthouse/locales/ar-XB.json +157 -142
- package/front_end/third_party/lighthouse/locales/ar.json +157 -142
- package/front_end/third_party/lighthouse/locales/bg.json +154 -139
- package/front_end/third_party/lighthouse/locales/ca.json +157 -142
- package/front_end/third_party/lighthouse/locales/cs.json +148 -133
- package/front_end/third_party/lighthouse/locales/da.json +153 -138
- package/front_end/third_party/lighthouse/locales/de.json +152 -137
- package/front_end/third_party/lighthouse/locales/el.json +153 -138
- package/front_end/third_party/lighthouse/locales/en-GB.json +160 -145
- package/front_end/third_party/lighthouse/locales/en-US.json +239 -218
- package/front_end/third_party/lighthouse/locales/en-XL.json +239 -218
- package/front_end/third_party/lighthouse/locales/es-419.json +150 -135
- package/front_end/third_party/lighthouse/locales/es.json +149 -134
- package/front_end/third_party/lighthouse/locales/fi.json +151 -136
- package/front_end/third_party/lighthouse/locales/fil.json +154 -139
- package/front_end/third_party/lighthouse/locales/fr.json +150 -135
- package/front_end/third_party/lighthouse/locales/he.json +160 -145
- package/front_end/third_party/lighthouse/locales/hi.json +156 -141
- package/front_end/third_party/lighthouse/locales/hr.json +154 -139
- package/front_end/third_party/lighthouse/locales/hu.json +111 -96
- package/front_end/third_party/lighthouse/locales/id.json +153 -138
- package/front_end/third_party/lighthouse/locales/it.json +153 -138
- package/front_end/third_party/lighthouse/locales/ja.json +150 -135
- package/front_end/third_party/lighthouse/locales/ko.json +42 -27
- package/front_end/third_party/lighthouse/locales/lt.json +152 -137
- package/front_end/third_party/lighthouse/locales/lv.json +93 -78
- package/front_end/third_party/lighthouse/locales/nl.json +149 -134
- package/front_end/third_party/lighthouse/locales/no.json +152 -137
- package/front_end/third_party/lighthouse/locales/pl.json +153 -138
- package/front_end/third_party/lighthouse/locales/pt-PT.json +152 -137
- package/front_end/third_party/lighthouse/locales/pt.json +157 -142
- package/front_end/third_party/lighthouse/locales/ro.json +149 -134
- package/front_end/third_party/lighthouse/locales/ru.json +76 -61
- package/front_end/third_party/lighthouse/locales/sk.json +153 -138
- package/front_end/third_party/lighthouse/locales/sl.json +149 -134
- package/front_end/third_party/lighthouse/locales/sr-Latn.json +151 -136
- package/front_end/third_party/lighthouse/locales/sr.json +151 -136
- package/front_end/third_party/lighthouse/locales/sv.json +152 -137
- package/front_end/third_party/lighthouse/locales/ta.json +156 -141
- package/front_end/third_party/lighthouse/locales/te.json +157 -142
- package/front_end/third_party/lighthouse/locales/th.json +111 -96
- package/front_end/third_party/lighthouse/locales/tr.json +153 -138
- package/front_end/third_party/lighthouse/locales/uk.json +149 -134
- package/front_end/third_party/lighthouse/locales/vi.json +162 -147
- package/front_end/third_party/lighthouse/locales/zh-HK.json +150 -135
- package/front_end/third_party/lighthouse/locales/zh-TW.json +154 -139
- package/front_end/third_party/lighthouse/locales/zh.json +152 -137
- package/front_end/third_party/lighthouse/report/bundle.d.ts +9 -8
- package/front_end/third_party/lighthouse/report/bundle.js +10 -10
- package/front_end/third_party/lighthouse/report-assets/report-generator.mjs +2 -7
- package/front_end/tsconfig.compatibility.json +1 -0
- package/front_end/tsconfig.json +3 -2
- package/front_end/ui/components/dialogs/TypeToAllowDialog.ts +0 -2
- package/front_end/ui/components/dialogs/typeToAllowDialog.css +0 -4
- package/front_end/ui/components/icon_button/fileSourceIcon.css +1 -1
- package/front_end/ui/components/input/textInput.css +1 -1
- package/front_end/ui/components/lists/List.ts +26 -14
- package/front_end/ui/components/menus/menus.ts +0 -2
- package/front_end/ui/components/suggestion_input/SuggestionInput.ts +351 -138
- package/front_end/ui/components/survey_link/surveyLink.css +3 -3
- package/front_end/ui/components/switch/switch.css +6 -6
- package/front_end/ui/components/text_editor/AiCodeCompletionTeaser.ts +2 -3
- package/front_end/ui/components/text_editor/TextEditor.ts +1 -1
- package/front_end/ui/components/tooltips/Tooltip.ts +53 -4
- package/front_end/ui/components/tree_outline/treeOutline.css +7 -7
- package/front_end/ui/helpers/OpenInNewTab.ts +8 -3
- package/front_end/ui/legacy/EmptyWidget.ts +4 -4
- package/front_end/ui/legacy/ForwardedInputEventHandler.ts +2 -2
- package/front_end/ui/legacy/GlassPane.ts +1 -1
- package/front_end/ui/legacy/KeyboardShortcut.ts +7 -7
- package/front_end/ui/legacy/RemoteDebuggingTerminatedScreen.ts +2 -2
- package/front_end/ui/legacy/TabbedPane.ts +198 -66
- package/front_end/ui/legacy/TargetCrashedScreen.ts +2 -2
- package/front_end/ui/legacy/UIUtils.ts +71 -68
- package/front_end/ui/legacy/View.ts +7 -4
- package/front_end/ui/legacy/ViewManager.ts +49 -37
- package/front_end/ui/legacy/Widget.ts +32 -12
- package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +2 -3
- package/front_end/ui/legacy/components/inline_editor/AnimationTimingUI.ts +8 -8
- package/front_end/ui/legacy/components/inline_editor/BezierUI.ts +8 -9
- package/front_end/ui/legacy/components/inline_editor/LinkSwatch.ts +2 -2
- package/front_end/ui/legacy/components/inline_editor/cssAngleEditor.css +1 -1
- package/front_end/ui/legacy/components/inline_editor/cssAngleSwatch.css +1 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +45 -11
- package/front_end/ui/legacy/components/object_ui/RemoteObjectPreviewFormatter.ts +10 -12
- package/front_end/ui/legacy/components/perf_ui/ChartViewport.ts +102 -29
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +148 -122
- package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +20 -14
- package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +1 -1
- package/front_end/ui/legacy/components/source_frame/FontView.ts +29 -5
- package/front_end/ui/legacy/components/source_frame/ImageView.ts +79 -12
- package/front_end/ui/legacy/components/source_frame/JSONView.ts +20 -2
- package/front_end/ui/legacy/components/source_frame/PreviewFactory.ts +2 -2
- package/front_end/ui/legacy/components/source_frame/StreamingContentHexView.ts +6 -10
- package/front_end/ui/legacy/components/source_frame/XMLView.ts +11 -11
- package/front_end/ui/legacy/components/source_frame/fontView.css +7 -0
- package/front_end/ui/legacy/components/source_frame/imageView.css +7 -0
- package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +14 -3
- package/front_end/ui/legacy/components/utils/Linkifier.ts +126 -2
- package/front_end/ui/legacy/emptyWidget.css +2 -1
- package/front_end/ui/legacy/inspectorCommon.css +3 -3
- package/front_end/ui/legacy/smallBubble.css +1 -1
- package/front_end/ui/legacy/tabbedPane.css +6 -0
- package/front_end/ui/lit/Directives.ts +35 -18
- package/front_end/ui/lit/lit.ts +0 -2
- package/front_end/ui/lit/render.ts +0 -7
- package/front_end/ui/visual_logging/KnownContextValues.ts +5 -0
- package/package.json +1 -1
- package/vpython.toml +8 -0
- package/vpython.toml.uv.lock +3 -0
- package/.agents/skills/review-models-core/SKILL.md +0 -73
- package/.agents/skills/review-tests/SKILL.md +0 -67
- package/.agents/skills/review-ui-widgets/SKILL.md +0 -115
- package/front_end/generated/ARIAProperties.ts +0 -2686
- package/front_end/ui/components/menus/README.md +0 -119
- package/front_end/ui/components/menus/SelectMenu.ts +0 -473
- package/front_end/ui/components/menus/selectMenu.css +0 -54
- package/front_end/ui/components/menus/selectMenuButton.css +0 -108
package/eslint.config.mjs
CHANGED
|
@@ -29,7 +29,6 @@ export default defineConfig([
|
|
|
29
29
|
'front_end/diff/diff_match_patch.js',
|
|
30
30
|
'front_end/models/javascript_metadata/NativeFunctions.ts',
|
|
31
31
|
// All of these scripts are auto-generated so don't lint them.
|
|
32
|
-
'front_end/generated/ARIAProperties.ts',
|
|
33
32
|
'front_end/generated/Deprecation.ts',
|
|
34
33
|
'front_end/generated/InspectorBackendCommands.ts',
|
|
35
34
|
'front_end/generated/protocol-mapping.d.ts',
|
|
@@ -647,6 +646,8 @@ export default defineConfig([
|
|
|
647
646
|
],
|
|
648
647
|
'@devtools/no-imperative-dom-api': 'error',
|
|
649
648
|
'@devtools/no-lit-render-outside-of-view': 'error',
|
|
649
|
+
'@devtools/no-empty-view-output': 'error',
|
|
650
|
+
'@devtools/no-widget-constructor-classes': 'error',
|
|
650
651
|
'@devtools/no-importing-images-from-src': 'error',
|
|
651
652
|
'@devtools/enforce-custom-event-names': 'error',
|
|
652
653
|
'@devtools/set-data-type-reference': 'error',
|
|
@@ -728,20 +729,15 @@ export default defineConfig([
|
|
|
728
729
|
'no-console': 'off',
|
|
729
730
|
},
|
|
730
731
|
},
|
|
731
|
-
{
|
|
732
|
-
name: 'API test files',
|
|
733
|
-
files: ['**/*.test.api.ts'],
|
|
734
|
-
rules: {
|
|
735
|
-
'@devtools/no-api-test-unit-helpers': 'error',
|
|
736
|
-
},
|
|
737
|
-
},
|
|
738
732
|
{
|
|
739
733
|
name: 'TypeScript test files',
|
|
740
734
|
files: [
|
|
741
735
|
'*.test.ts',
|
|
736
|
+
'*.test.api.ts',
|
|
742
737
|
'*.docs.ts',
|
|
743
738
|
// This makes the specificity greater than the front-end ts files
|
|
744
739
|
'front_end/**/*.test.ts',
|
|
740
|
+
'front_end/**/*.test.api.ts',
|
|
745
741
|
'front_end/**/*.docs.ts',
|
|
746
742
|
'test/**/*.ts',
|
|
747
743
|
'**/testing/*.ts',
|
|
@@ -820,18 +816,23 @@ export default defineConfig([
|
|
|
820
816
|
],
|
|
821
817
|
},
|
|
822
818
|
},
|
|
819
|
+
{
|
|
820
|
+
name: 'API test files',
|
|
821
|
+
files: ['**/*.test.api.ts'],
|
|
822
|
+
rules: {
|
|
823
|
+
'@devtools/no-api-test-unit-helpers': 'error',
|
|
824
|
+
'@devtools/no-document-body-mutation': 'off',
|
|
825
|
+
},
|
|
826
|
+
},
|
|
823
827
|
{
|
|
824
828
|
name: 'Use private class members rule',
|
|
825
829
|
files: [
|
|
826
|
-
'front_end
|
|
827
|
-
'front_end/models/**/*.ts',
|
|
828
|
-
'front_end/panels/**/components/*.ts',
|
|
829
|
-
'front_end/ui/components/**/*.ts',
|
|
830
|
-
'front_end/entrypoints/**/*.ts',
|
|
830
|
+
'front_end/**/*.ts',
|
|
831
831
|
],
|
|
832
832
|
ignores: [
|
|
833
|
-
'front_end
|
|
834
|
-
'front_end
|
|
833
|
+
'front_end/**/*.test.ts',
|
|
834
|
+
'front_end/**/*.test.api.ts',
|
|
835
|
+
'front_end/**/*.docs.ts',
|
|
835
836
|
],
|
|
836
837
|
|
|
837
838
|
rules: {
|
|
@@ -840,35 +841,315 @@ export default defineConfig([
|
|
|
840
841
|
},
|
|
841
842
|
{
|
|
842
843
|
name: 'Ignore private class members rule',
|
|
844
|
+
// The list below is an explicit burndown list of legacy files that have not
|
|
845
|
+
// yet been migrated to ECMAScript private class members (#method() / #field).
|
|
846
|
+
// This list is NOT supposed to be extended with new files or folders. Any new
|
|
847
|
+
// code must use private class members instead of TypeScript 'private' keywords.
|
|
848
|
+
// As files are migrated, remove them from this list.
|
|
843
849
|
files: [
|
|
844
|
-
'front_end/core/common
|
|
845
|
-
'front_end/core/
|
|
846
|
-
'front_end/core/platform
|
|
847
|
-
'front_end/core/protocol_client
|
|
848
|
-
'front_end/core/sdk
|
|
849
|
-
'front_end/core/
|
|
850
|
-
'front_end/
|
|
851
|
-
'front_end/
|
|
852
|
-
'front_end/
|
|
853
|
-
'front_end/
|
|
854
|
-
'front_end/
|
|
855
|
-
'front_end/
|
|
856
|
-
'front_end/
|
|
857
|
-
'front_end/
|
|
858
|
-
'front_end/
|
|
859
|
-
'front_end/
|
|
860
|
-
'front_end/
|
|
861
|
-
'front_end/
|
|
862
|
-
'front_end/
|
|
863
|
-
'front_end/
|
|
864
|
-
'front_end/
|
|
865
|
-
'front_end/
|
|
866
|
-
'front_end/
|
|
867
|
-
'front_end/
|
|
868
|
-
'front_end/
|
|
850
|
+
'front_end/core/common/Revealer.ts',
|
|
851
|
+
'front_end/core/common/Settings.ts',
|
|
852
|
+
'front_end/core/platform/MapUtilities.ts',
|
|
853
|
+
'front_end/core/protocol_client/InspectorBackend.ts',
|
|
854
|
+
'front_end/core/sdk/CSSMatchedStyles.ts',
|
|
855
|
+
'front_end/core/sdk/CSSPropertyParserMatchers.ts',
|
|
856
|
+
'front_end/core/sdk/ChildTargetManager.ts',
|
|
857
|
+
'front_end/core/sdk/DOMDebuggerModel.ts',
|
|
858
|
+
'front_end/core/sdk/DOMModel.ts',
|
|
859
|
+
'front_end/core/sdk/DOMStorageModel.ts',
|
|
860
|
+
'front_end/core/sdk/DebuggerModel.ts',
|
|
861
|
+
'front_end/core/sdk/EnhancedTracesParser.ts',
|
|
862
|
+
'front_end/core/sdk/NetworkManager.ts',
|
|
863
|
+
'front_end/core/sdk/NetworkRequest.ts',
|
|
864
|
+
'front_end/core/sdk/OverlayPersistentHighlighter.ts',
|
|
865
|
+
'front_end/core/sdk/PageLoad.ts',
|
|
866
|
+
'front_end/core/sdk/PreloadingModel.ts',
|
|
867
|
+
'front_end/core/sdk/RehydratingConnection.ts',
|
|
868
|
+
'front_end/core/sdk/ResourceTreeModel.ts',
|
|
869
|
+
'front_end/core/sdk/ServiceWorkerCacheModel.ts',
|
|
870
|
+
'front_end/core/sdk/ServiceWorkerManager.ts',
|
|
871
|
+
'front_end/core/sdk/StorageBucketsModel.ts',
|
|
872
|
+
'front_end/core/text_utils/TextUtils.ts',
|
|
873
|
+
'front_end/models/bindings/CompilerScriptMapping.ts',
|
|
874
|
+
'front_end/models/bindings/ResourceMapping.ts',
|
|
875
|
+
'front_end/models/bindings/SASSSourceMapping.ts',
|
|
876
|
+
'front_end/models/bindings/StylesSourceMapping.ts',
|
|
877
|
+
'front_end/models/breakpoints/BreakpointManager.ts',
|
|
878
|
+
'front_end/models/computed_style/ComputedStyleModel.ts',
|
|
879
|
+
'front_end/models/elements/ElementUpdateRecord.ts',
|
|
880
|
+
'front_end/models/emulation/DeviceModeModel.ts',
|
|
881
|
+
'front_end/models/extensions/ExtensionEndpoint.ts',
|
|
882
|
+
'front_end/models/extensions/LanguageExtensionEndpoint.ts',
|
|
883
|
+
'front_end/models/extensions/RecorderExtensionEndpoint.ts',
|
|
884
|
+
'front_end/models/formatter/FormatterWorkerPool.ts',
|
|
885
|
+
'front_end/models/formatter/ScriptFormatter.ts',
|
|
886
|
+
'front_end/models/har/Log.ts',
|
|
887
|
+
'front_end/models/issues_manager/IssuesManager.ts',
|
|
888
|
+
'front_end/models/issues_manager/SourceFrameIssuesManager.ts',
|
|
889
|
+
'front_end/models/javascript_metadata/JavaScriptMetadata.ts',
|
|
890
|
+
'front_end/models/logs/NetworkLog.ts',
|
|
891
|
+
'front_end/models/logs/RequestResolver.ts',
|
|
892
|
+
'front_end/models/persistence/Automapping.ts',
|
|
893
|
+
'front_end/models/persistence/IsolatedFileSystem.ts',
|
|
894
|
+
'front_end/models/persistence/IsolatedFileSystemManager.ts',
|
|
895
|
+
'front_end/models/persistence/NetworkPersistenceManager.ts',
|
|
896
|
+
'front_end/models/persistence/PersistenceImpl.ts',
|
|
897
|
+
'front_end/models/source_map_scopes/NamesResolver.ts',
|
|
898
|
+
'front_end/models/trace/extras/TraceFilter.ts',
|
|
899
|
+
'front_end/models/trace/extras/TraceTree.ts',
|
|
900
|
+
'front_end/models/trace/handlers/FramesHandler.ts',
|
|
901
|
+
'front_end/models/trace_source_maps_resolver/SourceMapsResolver.ts',
|
|
902
|
+
'front_end/models/workspace/FileManager.ts',
|
|
903
|
+
'front_end/models/workspace/IgnoreListManager.ts',
|
|
904
|
+
'front_end/models/workspace_diff/WorkspaceDiff.ts',
|
|
905
|
+
'front_end/panels/accessibility/ARIAMetadata.ts',
|
|
906
|
+
'front_end/panels/accessibility/AccessibilityNodeView.ts',
|
|
907
|
+
'front_end/panels/accessibility/AccessibilitySidebarView.ts',
|
|
908
|
+
'front_end/panels/ai_assistance/AiAssistancePanel.ts',
|
|
909
|
+
'front_end/panels/ai_assistance/components/AccessibilityAgentMarkdownRenderer.ts',
|
|
910
|
+
'front_end/panels/ai_assistance/components/PerformanceAgentMarkdownRenderer.ts',
|
|
911
|
+
'front_end/panels/animation/AnimationTimeline.ts',
|
|
912
|
+
'front_end/panels/animation/AnimationUI.ts',
|
|
913
|
+
'front_end/panels/application/AppManifestView.ts',
|
|
914
|
+
'front_end/panels/application/ApplicationPanelSidebar.ts',
|
|
915
|
+
'front_end/panels/application/ApplicationPanelTreeElement.ts',
|
|
916
|
+
'front_end/panels/application/BackForwardCacheTreeElement.ts',
|
|
917
|
+
'front_end/panels/application/BackgroundServiceModel.ts',
|
|
918
|
+
'front_end/panels/application/BackgroundServiceView.ts',
|
|
919
|
+
'front_end/panels/application/BounceTrackingMitigationsTreeElement.ts',
|
|
920
|
+
'front_end/panels/application/CookieItemsView.ts',
|
|
921
|
+
'front_end/panels/application/CrashReportContextView.ts',
|
|
922
|
+
'front_end/panels/application/DOMStorageItemsView.ts',
|
|
923
|
+
'front_end/panels/application/IndexedDBModel.ts',
|
|
924
|
+
'front_end/panels/application/IndexedDBViews.ts',
|
|
925
|
+
'front_end/panels/application/OpenedWindowDetailsView.ts',
|
|
926
|
+
'front_end/panels/application/ReportingApiTreeElement.ts',
|
|
927
|
+
'front_end/panels/application/ResourcesPanel.ts',
|
|
928
|
+
'front_end/panels/application/ServiceWorkerCacheTreeElement.ts',
|
|
929
|
+
'front_end/panels/application/ServiceWorkerCacheViews.ts',
|
|
930
|
+
'front_end/panels/application/ServiceWorkerUpdateCycleView.ts',
|
|
931
|
+
'front_end/panels/application/ServiceWorkersView.ts',
|
|
932
|
+
'front_end/panels/application/StorageBucketsTreeElement.ts',
|
|
933
|
+
'front_end/panels/application/StorageView.ts',
|
|
934
|
+
'front_end/panels/application/TrustTokensTreeElement.ts',
|
|
935
|
+
'front_end/panels/application/preloading/PreloadingView.ts',
|
|
936
|
+
'front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts',
|
|
937
|
+
'front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts',
|
|
938
|
+
'front_end/panels/common/ExtensionPanel.ts',
|
|
939
|
+
'front_end/panels/common/ExtensionServer.ts',
|
|
940
|
+
'front_end/panels/common/ExtensionView.ts',
|
|
941
|
+
'front_end/panels/console/ConsoleContextSelector.ts',
|
|
942
|
+
'front_end/panels/console/ConsolePanel.ts',
|
|
943
|
+
'front_end/panels/console/ConsolePrompt.ts',
|
|
944
|
+
'front_end/panels/console/ConsoleView.ts',
|
|
945
|
+
'front_end/panels/console/ConsoleViewMessage.ts',
|
|
946
|
+
'front_end/panels/console/ConsoleViewport.ts',
|
|
947
|
+
'front_end/panels/console_counters/WarningErrorCounter.ts',
|
|
948
|
+
'front_end/panels/coverage/CoverageDecorationManager.ts',
|
|
949
|
+
'front_end/panels/coverage/CoverageModel.ts',
|
|
950
|
+
'front_end/panels/elements/AccessibilityTreeView.ts',
|
|
951
|
+
'front_end/panels/elements/ClassesPaneWidget.ts',
|
|
952
|
+
'front_end/panels/elements/ColorSwatchPopoverIcon.ts',
|
|
953
|
+
'front_end/panels/elements/ComputedStyleWidget.ts',
|
|
954
|
+
'front_end/panels/elements/DOMTreeElementWidget.ts',
|
|
955
|
+
'front_end/panels/elements/ElementStatePaneWidget.ts',
|
|
956
|
+
'front_end/panels/elements/ElementsPanel.ts',
|
|
957
|
+
'front_end/panels/elements/EventListenersWidget.ts',
|
|
958
|
+
'front_end/panels/elements/ImagePreviewPopover.ts',
|
|
959
|
+
'front_end/panels/elements/InspectElementModeController.ts',
|
|
960
|
+
'front_end/panels/elements/LayersWidget.ts',
|
|
961
|
+
'front_end/panels/elements/MarkerDecorator.ts',
|
|
962
|
+
'front_end/panels/elements/MetricsSidebarPane.ts',
|
|
963
|
+
'front_end/panels/elements/PropertiesWidget.ts',
|
|
964
|
+
'front_end/panels/elements/StyleEditorWidget.ts',
|
|
965
|
+
'front_end/panels/elements/StylePropertiesSection.ts',
|
|
966
|
+
'front_end/panels/elements/StylePropertyHighlighter.ts',
|
|
967
|
+
'front_end/panels/elements/StylePropertyTreeElement.ts',
|
|
968
|
+
'front_end/panels/elements/StylesSidebarPane.ts',
|
|
969
|
+
'front_end/panels/emulation/AdvancedApp.ts',
|
|
970
|
+
'front_end/panels/emulation/DeviceModeToolbar.ts',
|
|
971
|
+
'front_end/panels/emulation/DeviceModeView.ts',
|
|
972
|
+
'front_end/panels/emulation/MediaQueryInspector.ts',
|
|
973
|
+
'front_end/panels/event_listeners/EventListenersView.ts',
|
|
974
|
+
'front_end/panels/layer_viewer/LayerDetailsView.ts',
|
|
975
|
+
'front_end/panels/layer_viewer/LayerTreeOutline.ts',
|
|
976
|
+
'front_end/panels/layer_viewer/LayerViewHost.ts',
|
|
977
|
+
'front_end/panels/layer_viewer/Layers3DView.ts',
|
|
978
|
+
'front_end/panels/layer_viewer/PaintProfilerView.ts',
|
|
979
|
+
'front_end/panels/layer_viewer/TransformController.ts',
|
|
980
|
+
'front_end/panels/layers/LayerPaintProfilerView.ts',
|
|
981
|
+
'front_end/panels/layers/LayerTreeModel.ts',
|
|
982
|
+
'front_end/panels/layers/LayersPanel.ts',
|
|
983
|
+
'front_end/panels/lighthouse/LighthouseController.ts',
|
|
984
|
+
'front_end/panels/lighthouse/LighthousePanel.ts',
|
|
985
|
+
'front_end/panels/lighthouse/LighthouseProtocolService.ts',
|
|
986
|
+
'front_end/panels/lighthouse/LighthouseReportSelector.ts',
|
|
987
|
+
'front_end/panels/lighthouse/LighthouseStartView.ts',
|
|
988
|
+
'front_end/panels/lighthouse/LighthouseStatusView.ts',
|
|
989
|
+
'front_end/panels/lighthouse/LighthouseTimespanView.ts',
|
|
990
|
+
'front_end/panels/lighthouse/RadioSetting.ts',
|
|
991
|
+
'front_end/panels/media/EventDisplayTable.ts',
|
|
992
|
+
'front_end/panels/media/EventTimelineView.ts',
|
|
993
|
+
'front_end/panels/media/MainView.ts',
|
|
994
|
+
'front_end/panels/media/MediaModel.ts',
|
|
995
|
+
'front_end/panels/media/PlayerDetailView.ts',
|
|
996
|
+
'front_end/panels/media/PlayerListView.ts',
|
|
997
|
+
'front_end/panels/media/PlayerMessagesView.ts',
|
|
998
|
+
'front_end/panels/media/TickingFlameChart.ts',
|
|
999
|
+
'front_end/panels/media/TickingFlameChartHelpers.ts',
|
|
1000
|
+
'front_end/panels/mobile_throttling/ThrottlingManager.ts',
|
|
1001
|
+
'front_end/panels/mobile_throttling/ThrottlingSettingsTab.ts',
|
|
1002
|
+
'front_end/panels/network/BinaryResourceView.ts',
|
|
1003
|
+
'front_end/panels/network/EventSourceMessagesView.ts',
|
|
1004
|
+
'front_end/panels/network/NetworkDataGridNode.ts',
|
|
1005
|
+
'front_end/panels/network/NetworkFrameGrouper.ts',
|
|
1006
|
+
'front_end/panels/network/NetworkLogView.ts',
|
|
1007
|
+
'front_end/panels/network/NetworkLogViewColumns.ts',
|
|
1008
|
+
'front_end/panels/network/NetworkManageCustomHeadersView.ts',
|
|
1009
|
+
'front_end/panels/network/NetworkOverview.ts',
|
|
1010
|
+
'front_end/panels/network/NetworkPanel.ts',
|
|
1011
|
+
'front_end/panels/network/NetworkSearchScope.ts',
|
|
1012
|
+
'front_end/panels/network/NetworkWaterfallColumn.ts',
|
|
1013
|
+
'front_end/panels/network/RequestConditionsDrawer.ts',
|
|
1014
|
+
'front_end/panels/network/RequestCookiesView.ts',
|
|
1015
|
+
'front_end/panels/network/RequestPreviewView.ts',
|
|
1016
|
+
'front_end/panels/network/ResourceChunkView.ts',
|
|
1017
|
+
'front_end/panels/network/SignedExchangeInfoView.ts',
|
|
1018
|
+
'front_end/panels/performance_monitor/PerformanceMonitor.ts',
|
|
1019
|
+
'front_end/panels/profiler/ProfileDataGrid.ts',
|
|
1020
|
+
'front_end/panels/protocol_monitor/ProtocolMonitor.ts',
|
|
1021
|
+
'front_end/panels/screencast/InputModel.ts',
|
|
1022
|
+
'front_end/panels/screencast/ScreencastView.ts',
|
|
1023
|
+
'front_end/panels/security/SecurityModel.ts',
|
|
1024
|
+
'front_end/panels/security/SecurityPanel.ts',
|
|
1025
|
+
'front_end/panels/sensors/LocationsSettingsTab.ts',
|
|
1026
|
+
'front_end/panels/sensors/SensorsView.ts',
|
|
1027
|
+
'front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts',
|
|
1028
|
+
'front_end/panels/settings/KeybindsSettingsTab.ts',
|
|
1029
|
+
'front_end/panels/settings/SettingsScreen.ts',
|
|
1030
|
+
'front_end/panels/settings/emulation/DevicesSettingsTab.ts',
|
|
1031
|
+
'front_end/panels/settings/emulation/utils/StructuredHeaders.ts',
|
|
1032
|
+
'front_end/panels/snippets/ScriptSnippetFileSystem.ts',
|
|
1033
|
+
'front_end/panels/snippets/SnippetsQuickOpen.ts',
|
|
1034
|
+
'front_end/panels/sources/AddSourceMapURLDialog.ts',
|
|
1035
|
+
'front_end/panels/sources/CallStackSidebarPane.ts',
|
|
1036
|
+
'front_end/panels/sources/CoveragePlugin.ts',
|
|
1037
|
+
'front_end/panels/sources/DebuggerPausedMessage.ts',
|
|
1038
|
+
'front_end/panels/sources/DebuggerPlugin.ts',
|
|
1039
|
+
'front_end/panels/sources/EditingLocationHistoryManager.ts',
|
|
1040
|
+
'front_end/panels/sources/FilePathScoreFunction.ts',
|
|
1041
|
+
'front_end/panels/sources/FilteredUISourceCodeListProvider.ts',
|
|
1042
|
+
'front_end/panels/sources/NavigatorView.ts',
|
|
1043
|
+
'front_end/panels/sources/OutlineQuickOpen.ts',
|
|
1044
|
+
'front_end/panels/sources/SourcesPanel.ts',
|
|
1045
|
+
'front_end/panels/sources/SourcesSearchScope.ts',
|
|
1046
|
+
'front_end/panels/sources/SourcesView.ts',
|
|
1047
|
+
'front_end/panels/sources/UISourceCodeFrame.ts',
|
|
1048
|
+
'front_end/panels/sources/WatchExpressionsSidebarPane.ts',
|
|
1049
|
+
'front_end/panels/timeline/CountersGraph.ts',
|
|
1050
|
+
'front_end/panels/timeline/EventsTimelineTreeView.ts',
|
|
1051
|
+
'front_end/panels/timeline/TimelineController.ts',
|
|
1052
|
+
'front_end/panels/timeline/TimelineDetailsView.ts',
|
|
1053
|
+
'front_end/panels/timeline/TimelineEventOverview.ts',
|
|
1054
|
+
'front_end/panels/timeline/TimelineFlameChartDataProvider.ts',
|
|
1055
|
+
'front_end/panels/timeline/TimelineFlameChartView.ts',
|
|
1056
|
+
'front_end/panels/timeline/TimelineHistoryManager.ts',
|
|
1057
|
+
'front_end/panels/timeline/TimelineLayersView.ts',
|
|
1058
|
+
'front_end/panels/timeline/TimelineLoader.ts',
|
|
1059
|
+
'front_end/panels/timeline/TimelinePaintProfilerView.ts',
|
|
1060
|
+
'front_end/panels/timeline/TimelinePanel.ts',
|
|
1061
|
+
'front_end/panels/timeline/TimelineTreeView.ts',
|
|
1062
|
+
'front_end/panels/timeline/TimelineUIUtils.ts',
|
|
1063
|
+
'front_end/panels/timeline/TracingLayerTree.ts',
|
|
1064
|
+
'front_end/panels/web_audio/WebAudioModel.ts',
|
|
1065
|
+
'front_end/panels/web_audio/WebAudioView.ts',
|
|
1066
|
+
'front_end/testing/MockIssuesManager.ts',
|
|
1067
|
+
'front_end/testing/MockIssuesModel.ts',
|
|
1068
|
+
'front_end/testing/MockNetworkLog.ts',
|
|
1069
|
+
'front_end/testing/StubIssue.ts',
|
|
1070
|
+
'front_end/third_party/i18n/i18n-impl.ts',
|
|
1071
|
+
'front_end/third_party/i18n/localized-string-set.ts',
|
|
1072
|
+
'front_end/third_party/puppeteer/**/*.ts',
|
|
1073
|
+
'front_end/third_party/wasmparser/package/src/WasmDis.ts',
|
|
1074
|
+
'front_end/third_party/wasmparser/package/src/WasmParser.ts',
|
|
1075
|
+
'front_end/ui/components/text_editor/config.ts',
|
|
1076
|
+
'front_end/ui/legacy/ActionRegistration.ts',
|
|
1077
|
+
'front_end/ui/legacy/ActionRegistry.ts',
|
|
1078
|
+
'front_end/ui/legacy/ContextMenu.ts',
|
|
1079
|
+
'front_end/ui/legacy/Dialog.ts',
|
|
1080
|
+
'front_end/ui/legacy/DockController.ts',
|
|
1081
|
+
'front_end/ui/legacy/DropTarget.ts',
|
|
1082
|
+
'front_end/ui/legacy/FilterBar.ts',
|
|
1083
|
+
'front_end/ui/legacy/FilterSuggestionBuilder.ts',
|
|
1084
|
+
'front_end/ui/legacy/GlassPane.ts',
|
|
1085
|
+
'front_end/ui/legacy/Infobar.ts',
|
|
1086
|
+
'front_end/ui/legacy/InplaceEditor.ts',
|
|
1087
|
+
'front_end/ui/legacy/InspectorView.ts',
|
|
1088
|
+
'front_end/ui/legacy/ListControl.ts',
|
|
1089
|
+
'front_end/ui/legacy/ListModel.ts',
|
|
1090
|
+
'front_end/ui/legacy/ListWidget.ts',
|
|
1091
|
+
'front_end/ui/legacy/Panel.ts',
|
|
1092
|
+
'front_end/ui/legacy/PopoverHelper.ts',
|
|
1093
|
+
'front_end/ui/legacy/ReportView.ts',
|
|
1094
|
+
'front_end/ui/legacy/RootView.ts',
|
|
1095
|
+
'front_end/ui/legacy/SearchableView.ts',
|
|
1096
|
+
'front_end/ui/legacy/ShortcutRegistry.ts',
|
|
1097
|
+
'front_end/ui/legacy/SoftContextMenu.ts',
|
|
1098
|
+
'front_end/ui/legacy/SoftDropDown.ts',
|
|
1099
|
+
'front_end/ui/legacy/SplitWidget.ts',
|
|
1100
|
+
'front_end/ui/legacy/StackedPane.ts',
|
|
1101
|
+
'front_end/ui/legacy/SuggestBox.ts',
|
|
1102
|
+
'front_end/ui/legacy/TabbedPane.ts',
|
|
1103
|
+
'front_end/ui/legacy/TargetCrashedScreen.ts',
|
|
1104
|
+
'front_end/ui/legacy/TextPrompt.ts',
|
|
1105
|
+
'front_end/ui/legacy/Toolbar.ts',
|
|
1106
|
+
'front_end/ui/legacy/Treeoutline.ts',
|
|
1107
|
+
'front_end/ui/legacy/UIUtils.ts',
|
|
1108
|
+
'front_end/ui/legacy/ViewManager.ts',
|
|
1109
|
+
'front_end/ui/legacy/Widget.ts',
|
|
1110
|
+
'front_end/ui/legacy/ZoomManager.ts',
|
|
1111
|
+
'front_end/ui/legacy/components/color_picker/ContrastDetails.ts',
|
|
1112
|
+
'front_end/ui/legacy/components/color_picker/ContrastInfo.ts',
|
|
1113
|
+
'front_end/ui/legacy/components/color_picker/ContrastOverlay.ts',
|
|
1114
|
+
'front_end/ui/legacy/components/color_picker/Spectrum.ts',
|
|
1115
|
+
'front_end/ui/legacy/components/cookie_table/CookiesTable.ts',
|
|
1116
|
+
'front_end/ui/legacy/components/data_grid/DataGrid.ts',
|
|
1117
|
+
'front_end/ui/legacy/components/data_grid/ShowMoreDataGridNode.ts',
|
|
1118
|
+
'front_end/ui/legacy/components/data_grid/ViewportDataGrid.ts',
|
|
1119
|
+
'front_end/ui/legacy/components/inline_editor/BezierEditor.ts',
|
|
1120
|
+
'front_end/ui/legacy/components/inline_editor/CSSAngle.ts',
|
|
1121
|
+
'front_end/ui/legacy/components/inline_editor/CSSAngleEditor.ts',
|
|
1122
|
+
'front_end/ui/legacy/components/inline_editor/CSSAngleSwatch.ts',
|
|
1123
|
+
'front_end/ui/legacy/components/inline_editor/CSSShadowEditor.ts',
|
|
1124
|
+
'front_end/ui/legacy/components/inline_editor/ColorMixSwatch.ts',
|
|
1125
|
+
'front_end/ui/legacy/components/inline_editor/ColorSwatch.ts',
|
|
1126
|
+
'front_end/ui/legacy/components/inline_editor/SwatchPopoverHelper.ts',
|
|
1127
|
+
'front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts',
|
|
1128
|
+
'front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts',
|
|
1129
|
+
'front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts',
|
|
1130
|
+
'front_end/ui/legacy/components/perf_ui/ChartViewport.ts',
|
|
1131
|
+
'front_end/ui/legacy/components/perf_ui/FilmStripView.ts',
|
|
1132
|
+
'front_end/ui/legacy/components/perf_ui/FlameChart.ts',
|
|
1133
|
+
'front_end/ui/legacy/components/perf_ui/LineLevelProfile.ts',
|
|
1134
|
+
'front_end/ui/legacy/components/perf_ui/OverviewGrid.ts',
|
|
1135
|
+
'front_end/ui/legacy/components/perf_ui/PieChart.ts',
|
|
1136
|
+
'front_end/ui/legacy/components/perf_ui/TimelineGrid.ts',
|
|
1137
|
+
'front_end/ui/legacy/components/perf_ui/TimelineOverviewCalculator.ts',
|
|
1138
|
+
'front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts',
|
|
1139
|
+
'front_end/ui/legacy/components/quick_open/CommandMenu.ts',
|
|
1140
|
+
'front_end/ui/legacy/components/quick_open/FilteredListWidget.ts',
|
|
1141
|
+
'front_end/ui/legacy/components/quick_open/HelpQuickOpen.ts',
|
|
1142
|
+
'front_end/ui/legacy/components/quick_open/QuickOpen.ts',
|
|
1143
|
+
'front_end/ui/legacy/components/source_frame/BinaryResourceViewFactory.ts',
|
|
1144
|
+
'front_end/ui/legacy/components/source_frame/FontView.ts',
|
|
1145
|
+
'front_end/ui/legacy/components/source_frame/JSONView.ts',
|
|
1146
|
+
'front_end/ui/legacy/components/source_frame/SourceFrame.ts',
|
|
1147
|
+
'front_end/ui/legacy/components/source_frame/XMLView.ts',
|
|
1148
|
+
'front_end/ui/legacy/components/utils/Linkifier.ts',
|
|
1149
|
+
'front_end/ui/legacy/components/utils/TargetDetachedDialog.ts',
|
|
1150
|
+
'front_end/ui/legacy/theme_support/ThemeSupport.ts',
|
|
869
1151
|
],
|
|
870
1152
|
rules: {
|
|
871
|
-
// TODO(crbug/1402569): Reenable once https://github.com/microsoft/TypeScript/issues/48885 is closed.
|
|
872
1153
|
'@devtools/prefer-private-class-members': 'off',
|
|
873
1154
|
},
|
|
874
1155
|
},
|
|
@@ -998,6 +1279,7 @@ export default defineConfig([
|
|
|
998
1279
|
name: 'Mocha test harness setup files',
|
|
999
1280
|
files: [
|
|
1000
1281
|
'front_end/testing/test_setup.ts',
|
|
1282
|
+
'test/scripts/mocha_hooks.ts',
|
|
1001
1283
|
'test/unit/mocha-hooks.ts',
|
|
1002
1284
|
],
|
|
1003
1285
|
rules: {
|
|
@@ -2503,18 +2503,18 @@ export class Generator {
|
|
|
2503
2503
|
colorForID(id: string): string {
|
|
2504
2504
|
let color = this.#colors.get(id);
|
|
2505
2505
|
if (!color) {
|
|
2506
|
-
color = this
|
|
2506
|
+
color = this.#generateColorForID(id);
|
|
2507
2507
|
this.#colors.set(id, color);
|
|
2508
2508
|
}
|
|
2509
2509
|
return color;
|
|
2510
2510
|
}
|
|
2511
2511
|
|
|
2512
|
-
|
|
2512
|
+
#generateColorForID(id: string): string {
|
|
2513
2513
|
const hash = Platform.StringUtilities.hashCode(id);
|
|
2514
|
-
const h = this
|
|
2515
|
-
const s = this
|
|
2516
|
-
const l = this
|
|
2517
|
-
const a = this
|
|
2514
|
+
const h = this.#indexToValueInSpace(hash, this.#hueSpace);
|
|
2515
|
+
const s = this.#indexToValueInSpace(hash >> 8, this.#satSpace);
|
|
2516
|
+
const l = this.#indexToValueInSpace(hash >> 16, this.#lightnessSpace);
|
|
2517
|
+
const a = this.#indexToValueInSpace(hash >> 24, this.#alphaSpace);
|
|
2518
2518
|
const start = `hsl(${h}deg ${s}% ${l}%`;
|
|
2519
2519
|
if (a !== 1) {
|
|
2520
2520
|
return `${start} / ${Math.floor(a * 100)}%)`;
|
|
@@ -2522,7 +2522,7 @@ export class Generator {
|
|
|
2522
2522
|
return `${start})`;
|
|
2523
2523
|
}
|
|
2524
2524
|
|
|
2525
|
-
|
|
2525
|
+
#indexToValueInSpace(index: number, space: Space): number {
|
|
2526
2526
|
if (typeof space === 'number') {
|
|
2527
2527
|
return space;
|
|
2528
2528
|
}
|
|
@@ -507,16 +507,16 @@ export class ParsedURL {
|
|
|
507
507
|
return ParsedURL.substring(url as Platform.DevToolsPath.UrlString, 0, wasmFunctionIndex);
|
|
508
508
|
}
|
|
509
509
|
|
|
510
|
-
|
|
510
|
+
static #beginsWithWindowsDriveLetter(url: string): boolean {
|
|
511
511
|
return /^[A-Za-z]:/.test(url);
|
|
512
512
|
}
|
|
513
513
|
|
|
514
|
-
|
|
514
|
+
static #beginsWithScheme(url: string): boolean {
|
|
515
515
|
return /^[A-Za-z][A-Za-z0-9+.-]*:/.test(url);
|
|
516
516
|
}
|
|
517
517
|
|
|
518
518
|
static isRelativeURL(url: string): boolean {
|
|
519
|
-
return !this
|
|
519
|
+
return !this.#beginsWithScheme(url) || this.#beginsWithWindowsDriveLetter(url);
|
|
520
520
|
}
|
|
521
521
|
|
|
522
522
|
get displayName(): string {
|
|
@@ -28,7 +28,7 @@ export abstract class ResolverBase<Id, T> {
|
|
|
28
28
|
async waitFor(id: Id): Promise<T> {
|
|
29
29
|
const obj = this.getForId(id);
|
|
30
30
|
if (!obj) {
|
|
31
|
-
return await this
|
|
31
|
+
return await this.#getOrCreatePromise(id);
|
|
32
32
|
}
|
|
33
33
|
return obj;
|
|
34
34
|
}
|
|
@@ -42,7 +42,7 @@ export abstract class ResolverBase<Id, T> {
|
|
|
42
42
|
const obj = this.getForId(id);
|
|
43
43
|
if (!obj) {
|
|
44
44
|
const swallowTheError = (): void => {};
|
|
45
|
-
void this
|
|
45
|
+
void this.#getOrCreatePromise(id).catch(swallowTheError).then(obj => {
|
|
46
46
|
if (obj) {
|
|
47
47
|
callback(obj);
|
|
48
48
|
}
|
|
@@ -63,7 +63,7 @@ export abstract class ResolverBase<Id, T> {
|
|
|
63
63
|
this.#unresolvedIds.clear();
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
#getOrCreatePromise(id: Id): Promise<T> {
|
|
67
67
|
const promiseInfo = this.#unresolvedIds.get(id);
|
|
68
68
|
if (promiseInfo) {
|
|
69
69
|
return promiseInfo.promise;
|
|
@@ -39,7 +39,7 @@ export class SegmentedRange<T> {
|
|
|
39
39
|
if (startIndex > 0) {
|
|
40
40
|
// 2. Try mering the preceding segment
|
|
41
41
|
const precedingSegment = this.#segments[startIndex - 1];
|
|
42
|
-
merged = this
|
|
42
|
+
merged = this.#tryMerge(precedingSegment, newSegment);
|
|
43
43
|
if (merged) {
|
|
44
44
|
--startIndex;
|
|
45
45
|
newSegment = merged;
|
|
@@ -59,7 +59,7 @@ export class SegmentedRange<T> {
|
|
|
59
59
|
}
|
|
60
60
|
// 4. Merge or adjust the succeeding segment if it overlaps.
|
|
61
61
|
if (endIndex < this.#segments.length) {
|
|
62
|
-
merged = this
|
|
62
|
+
merged = this.#tryMerge(newSegment, this.#segments[endIndex]);
|
|
63
63
|
if (merged) {
|
|
64
64
|
endIndex++;
|
|
65
65
|
newSegment = merged;
|
|
@@ -74,7 +74,7 @@ export class SegmentedRange<T> {
|
|
|
74
74
|
return this.#segments;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
#tryMerge(first: Segment<T>, second: Segment<T>): Segment<T>|null {
|
|
78
78
|
const merged = this.#mergeCallback && this.#mergeCallback(first, second);
|
|
79
79
|
if (!merged) {
|
|
80
80
|
return null;
|
|
@@ -24,15 +24,15 @@ export class SimpleHistoryManager {
|
|
|
24
24
|
this.#historyDepth = historyDepth;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
#readOnlyLock(): void {
|
|
28
28
|
++this.#coalescingReadonly;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
#releaseReadOnlyLock(): void {
|
|
32
32
|
--this.#coalescingReadonly;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
#getPreviousValidIndex(): number {
|
|
36
36
|
if (this.empty()) {
|
|
37
37
|
return -1;
|
|
38
38
|
}
|
|
@@ -48,7 +48,7 @@ export class SimpleHistoryManager {
|
|
|
48
48
|
return revealIndex;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
#getNextValidIndex(): number {
|
|
52
52
|
let revealIndex = this.#activeEntryIndex + 1;
|
|
53
53
|
|
|
54
54
|
while (revealIndex < this.#entries.length && !this.#entries[revealIndex].valid()) {
|
|
@@ -61,7 +61,7 @@ export class SimpleHistoryManager {
|
|
|
61
61
|
return revealIndex;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
#readOnly(): boolean {
|
|
65
65
|
return Boolean(this.#coalescingReadonly);
|
|
66
66
|
}
|
|
67
67
|
|
|
@@ -74,7 +74,7 @@ export class SimpleHistoryManager {
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
push(entry: HistoryEntry): void {
|
|
77
|
-
if (this
|
|
77
|
+
if (this.#readOnly()) {
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
80
80
|
if (!this.empty()) {
|
|
@@ -88,36 +88,36 @@ export class SimpleHistoryManager {
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
canRollback(): boolean {
|
|
91
|
-
return this
|
|
91
|
+
return this.#getPreviousValidIndex() >= 0;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
canRollover(): boolean {
|
|
95
|
-
return this
|
|
95
|
+
return this.#getNextValidIndex() >= 0;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
rollback(): boolean {
|
|
99
|
-
const revealIndex = this
|
|
99
|
+
const revealIndex = this.#getPreviousValidIndex();
|
|
100
100
|
if (revealIndex === -1) {
|
|
101
101
|
return false;
|
|
102
102
|
}
|
|
103
|
-
this
|
|
103
|
+
this.#readOnlyLock();
|
|
104
104
|
this.#activeEntryIndex = revealIndex;
|
|
105
105
|
this.#entries[revealIndex].reveal();
|
|
106
|
-
this
|
|
106
|
+
this.#releaseReadOnlyLock();
|
|
107
107
|
|
|
108
108
|
return true;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
rollover(): boolean {
|
|
112
|
-
const revealIndex = this
|
|
112
|
+
const revealIndex = this.#getNextValidIndex();
|
|
113
113
|
if (revealIndex === -1) {
|
|
114
114
|
return false;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
this
|
|
117
|
+
this.#readOnlyLock();
|
|
118
118
|
this.#activeEntryIndex = revealIndex;
|
|
119
119
|
this.#entries[revealIndex].reveal();
|
|
120
|
-
this
|
|
120
|
+
this.#releaseReadOnlyLock();
|
|
121
121
|
|
|
122
122
|
return true;
|
|
123
123
|
}
|
|
@@ -111,18 +111,18 @@ export class Trie<T extends ArrayLike<ElementType<T>>> {
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
const results: T[] = [];
|
|
114
|
-
this
|
|
114
|
+
this.#dfs(node, prefix, results);
|
|
115
115
|
return results;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
|
|
118
|
+
#dfs(node: number, prefix: T, results: T[]): void {
|
|
119
119
|
if (this.#isWord[node]) {
|
|
120
120
|
results.push(prefix);
|
|
121
121
|
}
|
|
122
122
|
const edges = this.#edges[node];
|
|
123
123
|
for (const [edge, node] of edges) {
|
|
124
124
|
const newPrefix = this.#traitImpl.append(prefix, edge);
|
|
125
|
-
this
|
|
125
|
+
this.#dfs(node, newPrefix, results);
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
|