chrome-devtools-frontend 1.0.950768 → 1.0.951864
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/gni/devtools_grd_files.gni +3 -3
- package/extension-api/ExtensionAPI.d.ts +1 -1
- package/front_end/Tests.js +10 -0
- package/front_end/core/common/App.ts +0 -3
- package/front_end/core/common/AppProvider.ts +0 -3
- package/front_end/core/common/JavaScriptMetaData.ts +0 -3
- package/front_end/core/common/QueryParamHandler.ts +0 -3
- package/front_end/core/common/Runnable.ts +0 -3
- package/front_end/core/common/SimpleHistoryManager.ts +0 -3
- package/front_end/core/i18n/locales/en-US.json +183 -183
- package/front_end/core/i18n/locales/en-XL.json +183 -183
- package/front_end/core/sdk/CSSRule.ts +1 -1
- package/front_end/core/sdk/DOMModel.ts +12 -37
- package/front_end/core/sdk/OverlayModel.ts +18 -34
- package/front_end/core/sdk/OverlayPersistentHighlighter.ts +0 -12
- package/front_end/core/sdk/RuntimeModel.ts +0 -1
- package/front_end/core/sdk/SourceMap.ts +1 -1
- package/front_end/core/sdk/TracingManager.ts +0 -3
- package/front_end/entrypoints/heap_snapshot_worker/AllocationProfile.ts +3 -3
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +2 -5
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshotWorkerDispatcher.ts +1 -1
- package/front_end/models/bindings/CSSWorkspaceBinding.ts +0 -3
- package/front_end/models/bindings/DebuggerLanguagePlugins.ts +1 -2
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +1 -4
- package/front_end/models/bindings/FileUtils.ts +0 -4
- package/front_end/models/bindings/IgnoreListManager.ts +1 -2
- package/front_end/models/bindings/NetworkProject.ts +1 -2
- package/front_end/models/extensions/ExtensionAPI.ts +2 -2
- package/front_end/models/extensions/ExtensionTraceProvider.ts +0 -3
- package/front_end/models/issues_manager/SameSiteCookieIssue.ts +1 -2
- package/front_end/models/timeline_model/TimelineModel.ts +1 -1
- package/front_end/models/timeline_model/TracingLayerTree.ts +0 -1
- package/front_end/panels/accessibility/ARIAMetadata.ts +0 -1
- package/front_end/panels/accessibility/AXBreadcrumbsPane.ts +2 -2
- package/front_end/panels/accessibility/AccessibilityNodeView.ts +1 -2
- package/front_end/panels/animation/AnimationTimeline.ts +0 -1
- package/front_end/panels/application/ApplicationPanelCacheSection.ts +3 -4
- package/front_end/panels/application/ServiceWorkerUpdateCycleView.ts +0 -2
- package/front_end/panels/application/StorageView.ts +2 -6
- package/front_end/panels/application/{BackForwardCacheStrings.ts → components/BackForwardCacheStrings.ts} +2 -2
- package/front_end/panels/application/{BackForwardCacheView.ts → components/BackForwardCacheView.ts} +76 -42
- package/front_end/panels/application/{backForwardCacheView.css → components/backForwardCacheView.css} +9 -0
- package/front_end/panels/application/components/components.ts +2 -0
- package/front_end/panels/console/ConsoleViewMessage.ts +1 -25
- package/front_end/panels/console/consoleView.css +5 -0
- package/front_end/panels/elements/ComputedStyleModel.ts +2 -2
- package/front_end/panels/elements/ElementsPanel.ts +1 -5
- package/front_end/panels/elements/ElementsTreeElement.ts +2 -6
- package/front_end/panels/elements/ElementsTreeOutline.ts +2 -2
- package/front_end/panels/elements/StylesSidebarPane.ts +1 -1
- package/front_end/panels/event_listeners/EventListenersUtils.ts +2 -1
- package/front_end/panels/layer_viewer/Layers3DView.ts +3 -9
- package/front_end/panels/lighthouse/LighthouseController.ts +4 -5
- package/front_end/panels/media/TickingFlameChart.ts +1 -2
- package/front_end/panels/network/NetworkLogViewColumns.ts +1 -1
- package/front_end/panels/profiler/HeapProfileView.ts +1 -1
- package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +0 -1
- package/front_end/panels/profiler/HeapSnapshotView.ts +1 -2
- package/front_end/panels/profiler/heapProfiler.css +1 -1
- package/front_end/panels/search/SearchConfig.ts +0 -6
- package/front_end/panels/security/SecurityModel.ts +2 -4
- package/front_end/panels/security/SecurityPanel.ts +2 -2
- package/front_end/panels/settings/KeybindsSettingsTab.ts +4 -0
- package/front_end/panels/settings/settingsScreen.css +8 -3
- package/front_end/panels/sources/FilteredUISourceCodeListProvider.ts +2 -2
- package/front_end/panels/sources/NavigatorView.ts +4 -10
- package/front_end/panels/sources/ScopeChainSidebarPane.ts +2 -3
- package/front_end/panels/sources/SourceMapNamesResolver.ts +3 -3
- package/front_end/panels/sources/SourcesPanel.ts +1 -3
- package/front_end/panels/sources/SourcesView.ts +0 -3
- package/front_end/panels/sources/TabbedEditorContainer.ts +1 -4
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +2 -5
- package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +0 -1
- package/front_end/panels/timeline/TimelineFlameChartView.ts +0 -1
- package/front_end/panels/timeline/TimelineLoader.ts +0 -3
- package/front_end/panels/timeline/TimelinePanel.ts +2 -3
- package/front_end/panels/timeline/TimelineUIUtils.ts +1 -1
- package/front_end/third_party/codemirror.next/bundle.ts +3 -3
- package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/markdown.js +2 -1
- package/front_end/third_party/codemirror.next/codemirror.next.d.ts +10 -1
- package/front_end/third_party/codemirror.next/codemirror.next.js +2 -1
- package/front_end/third_party/codemirror.next/package.json +3 -3
- package/front_end/third_party/puppeteer/package/README.md +11 -11
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api-docs-entry.d.ts +4 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts +4 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.d.ts +1 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts +1 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.d.ts +1 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.d.ts +9 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js +21 -12
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Dialog.d.ts +1 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EvalTypes.d.ts +1 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.d.ts +3 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FileChooser.d.ts +1 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts +8 -10
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts +50 -11
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js +70 -33
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.d.ts +12 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.js +25 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.d.ts +2 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts +39 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js +36 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts +3 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js +2 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.d.ts +46 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.js +124 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts +27 -10
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js +144 -74
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.d.ts +5 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.d.ts +1 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.d.ts +4 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.d.ts +3 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.d.ts +4 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js +43 -17
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.d.ts +1 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js +101 -34
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.d.ts +1 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.d.ts +1 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.d.ts +5 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api-docs-entry.d.ts +4 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts +4 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js +2 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.d.ts +1 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js +3 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts +1 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts +1 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.js +1 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts +9 -7
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js +24 -17
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.d.ts +1 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EvalTypes.d.ts +1 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.d.ts +3 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.d.ts +1 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts +8 -10
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js +7 -8
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts +50 -11
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js +70 -34
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts +12 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.js +26 -7
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts +2 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts +39 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js +38 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.d.ts +3 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.js +4 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.d.ts +46 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.js +120 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts +27 -10
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js +144 -75
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js +12 -14
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.d.ts +5 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.js +3 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.d.ts +1 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts +4 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.d.ts +3 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.js +1 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js +3 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initialize-node.js +1 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js +10 -12
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts +4 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js +43 -20
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts +1 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js +104 -40
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts +1 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.d.ts +1 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.js +1 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts +5 -7
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js +1 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.js +3 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node-puppeteer-core.js +1 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node.js +1 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/web.js +1 -2
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +173 -36
- package/front_end/third_party/puppeteer/package/package.json +3 -3
- package/front_end/ui/components/markdown_view/MarkdownView.ts +0 -1
- package/front_end/ui/components/text_editor/cursor_tooltip.ts +7 -1
- package/front_end/ui/legacy/ContextFlavorListener.ts +0 -4
- package/front_end/ui/legacy/ContextMenu.ts +2 -3
- package/front_end/ui/legacy/InspectorView.ts +1 -1
- package/front_end/ui/legacy/ReportView.ts +3 -4
- package/front_end/ui/legacy/SearchableView.ts +1 -2
- package/front_end/ui/legacy/SplitWidget.ts +2 -3
- package/front_end/ui/legacy/SuggestBox.ts +0 -3
- package/front_end/ui/legacy/TextPrompt.ts +1 -1
- package/front_end/ui/legacy/UIUtils.ts +1 -1
- package/front_end/ui/legacy/XLink.ts +1 -1
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +2 -2
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +9 -9
- package/front_end/ui/legacy/components/data_grid/dataGrid.css +7 -7
- package/front_end/ui/legacy/components/inline_editor/CSSShadowEditor.ts +1 -1
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +1 -5
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +0 -1
- package/front_end/ui/legacy/components/utils/Linkifier.ts +2 -2
- package/front_end/ui/legacy/theme_support/theme_support_impl.ts +12 -1
- package/inspector_overlay/main.ts +16 -2
- package/package.json +1 -1
|
@@ -73,7 +73,7 @@ export class CSSRule {
|
|
|
73
73
|
getStyleSheetHeader(styleSheetId: Protocol.CSS.StyleSheetId): CSSStyleSheetHeader {
|
|
74
74
|
const styleSheetHeader = this.cssModelInternal.styleSheetHeaderForId(styleSheetId);
|
|
75
75
|
console.assert(styleSheetHeader !== null);
|
|
76
|
-
return
|
|
76
|
+
return styleSheetHeader as CSSStyleSheetHeader;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
|
|
@@ -408,11 +408,7 @@ export class DOMNode {
|
|
|
408
408
|
return this.localName();
|
|
409
409
|
}
|
|
410
410
|
|
|
411
|
-
setNodeName(
|
|
412
|
-
name: string,
|
|
413
|
-
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
414
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
415
|
-
callback?: ((arg0: string|null, arg1: DOMNode|null) => any)): void {
|
|
411
|
+
setNodeName(name: string, callback?: ((arg0: string|null, arg1: DOMNode|null) => void)): void {
|
|
416
412
|
this.#agent.invoke_setNodeName({nodeId: this.id, name}).then(response => {
|
|
417
413
|
if (!response.getError()) {
|
|
418
414
|
this.#domModelInternal.markUndoableState();
|
|
@@ -435,9 +431,7 @@ export class DOMNode {
|
|
|
435
431
|
this.nodeValueInternal = nodeValue;
|
|
436
432
|
}
|
|
437
433
|
|
|
438
|
-
|
|
439
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
440
|
-
setNodeValue(value: string, callback?: ((arg0: string|null) => any)): void {
|
|
434
|
+
setNodeValue(value: string, callback?: ((arg0: string|null) => void)): void {
|
|
441
435
|
this.#agent.invoke_setNodeValue({nodeId: this.id, value}).then(response => {
|
|
442
436
|
if (!response.getError()) {
|
|
443
437
|
this.#domModelInternal.markUndoableState();
|
|
@@ -453,11 +447,7 @@ export class DOMNode {
|
|
|
453
447
|
return attr ? attr.value : undefined;
|
|
454
448
|
}
|
|
455
449
|
|
|
456
|
-
setAttribute(
|
|
457
|
-
name: string, text: string,
|
|
458
|
-
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
459
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
460
|
-
callback?: ((arg0: string|null) => any)): void {
|
|
450
|
+
setAttribute(name: string, text: string, callback?: ((arg0: string|null) => void)): void {
|
|
461
451
|
this.#agent.invoke_setAttributesAsText({nodeId: this.id, text, name}).then(response => {
|
|
462
452
|
if (!response.getError()) {
|
|
463
453
|
this.#domModelInternal.markUndoableState();
|
|
@@ -468,11 +458,7 @@ export class DOMNode {
|
|
|
468
458
|
});
|
|
469
459
|
}
|
|
470
460
|
|
|
471
|
-
setAttributeValue(
|
|
472
|
-
name: string, value: string,
|
|
473
|
-
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
474
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
475
|
-
callback?: ((arg0: string|null) => any)): void {
|
|
461
|
+
setAttributeValue(name: string, value: string, callback?: ((arg0: string|null) => void)): void {
|
|
476
462
|
this.#agent.invoke_setAttributeValue({nodeId: this.id, name, value}).then(response => {
|
|
477
463
|
if (!response.getError()) {
|
|
478
464
|
this.#domModelInternal.markUndoableState();
|
|
@@ -520,9 +506,7 @@ export class DOMNode {
|
|
|
520
506
|
return outerHTML;
|
|
521
507
|
}
|
|
522
508
|
|
|
523
|
-
|
|
524
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
525
|
-
setOuterHTML(html: string, callback?: ((arg0: string|null) => any)): void {
|
|
509
|
+
setOuterHTML(html: string, callback?: ((arg0: string|null) => void)): void {
|
|
526
510
|
this.#agent.invoke_setOuterHTML({nodeId: this.id, outerHTML: html}).then(response => {
|
|
527
511
|
if (!response.getError()) {
|
|
528
512
|
this.#domModelInternal.markUndoableState();
|
|
@@ -533,10 +517,7 @@ export class DOMNode {
|
|
|
533
517
|
});
|
|
534
518
|
}
|
|
535
519
|
|
|
536
|
-
removeNode(callback?: (
|
|
537
|
-
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
538
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
539
|
-
(arg0: string|null, arg1?: Protocol.DOM.NodeId|undefined) => any)): Promise<void> {
|
|
520
|
+
removeNode(callback?: ((arg0: string|null, arg1?: Protocol.DOM.NodeId|undefined) => void)): Promise<void> {
|
|
540
521
|
return this.#agent.invoke_removeNode({nodeId: this.id}).then(response => {
|
|
541
522
|
if (!response.getError()) {
|
|
542
523
|
this.#domModelInternal.markUndoableState();
|
|
@@ -738,11 +719,8 @@ export class DOMNode {
|
|
|
738
719
|
this.#attributesInternal.delete(name);
|
|
739
720
|
}
|
|
740
721
|
|
|
741
|
-
copyTo(
|
|
742
|
-
|
|
743
|
-
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
744
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
745
|
-
callback?: ((arg0: string|null, arg1: DOMNode|null) => any)): void {
|
|
722
|
+
copyTo(targetNode: DOMNode, anchorNode: DOMNode|null, callback?: ((arg0: string|null, arg1: DOMNode|null) => void)):
|
|
723
|
+
void {
|
|
746
724
|
this.#agent
|
|
747
725
|
.invoke_copyTo(
|
|
748
726
|
{nodeId: this.id, targetNodeId: targetNode.id, insertBeforeNodeId: anchorNode ? anchorNode.id : undefined})
|
|
@@ -756,11 +734,8 @@ export class DOMNode {
|
|
|
756
734
|
});
|
|
757
735
|
}
|
|
758
736
|
|
|
759
|
-
moveTo(
|
|
760
|
-
|
|
761
|
-
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
762
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
763
|
-
callback?: ((arg0: string|null, arg1: DOMNode|null) => any)): void {
|
|
737
|
+
moveTo(targetNode: DOMNode, anchorNode: DOMNode|null, callback?: ((arg0: string|null, arg1: DOMNode|null) => void)):
|
|
738
|
+
void {
|
|
764
739
|
this.#agent
|
|
765
740
|
.invoke_moveTo(
|
|
766
741
|
{nodeId: this.id, targetNodeId: targetNode.id, insertBeforeNodeId: anchorNode ? anchorNode.id : undefined})
|
|
@@ -1076,11 +1051,11 @@ export class DOMModel extends SDKModel<EventTypes> {
|
|
|
1076
1051
|
}
|
|
1077
1052
|
|
|
1078
1053
|
cssModel(): CSSModel {
|
|
1079
|
-
return
|
|
1054
|
+
return this.target().model(CSSModel) as CSSModel;
|
|
1080
1055
|
}
|
|
1081
1056
|
|
|
1082
1057
|
overlayModel(): OverlayModel {
|
|
1083
|
-
return
|
|
1058
|
+
return this.target().model(OverlayModel) as OverlayModel;
|
|
1084
1059
|
}
|
|
1085
1060
|
|
|
1086
1061
|
static cancelSearch(): void {
|
|
@@ -59,27 +59,13 @@ export class OverlayModel extends SDKModel<EventTypes> implements ProtocolProxyA
|
|
|
59
59
|
#hideHighlightTimeout: number|null;
|
|
60
60
|
#defaultHighlighter: Highlighter;
|
|
61
61
|
#highlighter: Highlighter;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
#
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
#
|
|
68
|
-
|
|
69
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
70
|
-
#showAdHighlightsSetting: Common.Settings.Setting<any>;
|
|
71
|
-
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
72
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
73
|
-
#showDebugBordersSetting: Common.Settings.Setting<any>;
|
|
74
|
-
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
75
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
76
|
-
#showFPSCounterSetting: Common.Settings.Setting<any>;
|
|
77
|
-
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
78
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
79
|
-
#showScrollBottleneckRectsSetting: Common.Settings.Setting<any>;
|
|
80
|
-
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
81
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
82
|
-
#showWebVitalsSetting: Common.Settings.Setting<any>;
|
|
62
|
+
#showPaintRectsSetting: Common.Settings.Setting<boolean>;
|
|
63
|
+
#showLayoutShiftRegionsSetting: Common.Settings.Setting<boolean>;
|
|
64
|
+
#showAdHighlightsSetting: Common.Settings.Setting<boolean>;
|
|
65
|
+
#showDebugBordersSetting: Common.Settings.Setting<boolean>;
|
|
66
|
+
#showFPSCounterSetting: Common.Settings.Setting<boolean>;
|
|
67
|
+
#showScrollBottleneckRectsSetting: Common.Settings.Setting<boolean>;
|
|
68
|
+
#showWebVitalsSetting: Common.Settings.Setting<boolean>;
|
|
83
69
|
#registeredListeners: Common.EventTarget.EventDescriptor[];
|
|
84
70
|
#showViewportSizeOnResize: boolean;
|
|
85
71
|
#persistentHighlighter: OverlayPersistentHighlighter|null;
|
|
@@ -113,14 +99,15 @@ export class OverlayModel extends SDKModel<EventTypes> implements ProtocolProxyA
|
|
|
113
99
|
this.#defaultHighlighter = new DefaultHighlighter(this);
|
|
114
100
|
this.#highlighter = this.#defaultHighlighter;
|
|
115
101
|
|
|
116
|
-
this.#showPaintRectsSetting = Common.Settings.Settings.instance().moduleSetting('showPaintRects');
|
|
117
|
-
this.#showLayoutShiftRegionsSetting =
|
|
118
|
-
|
|
119
|
-
this.#
|
|
120
|
-
this.#
|
|
102
|
+
this.#showPaintRectsSetting = Common.Settings.Settings.instance().moduleSetting<boolean>('showPaintRects');
|
|
103
|
+
this.#showLayoutShiftRegionsSetting =
|
|
104
|
+
Common.Settings.Settings.instance().moduleSetting<boolean>('showLayoutShiftRegions');
|
|
105
|
+
this.#showAdHighlightsSetting = Common.Settings.Settings.instance().moduleSetting<boolean>('showAdHighlights');
|
|
106
|
+
this.#showDebugBordersSetting = Common.Settings.Settings.instance().moduleSetting<boolean>('showDebugBorders');
|
|
107
|
+
this.#showFPSCounterSetting = Common.Settings.Settings.instance().moduleSetting<boolean>('showFPSCounter');
|
|
121
108
|
this.#showScrollBottleneckRectsSetting =
|
|
122
|
-
Common.Settings.Settings.instance().moduleSetting('showScrollBottleneckRects');
|
|
123
|
-
this.#showWebVitalsSetting = Common.Settings.Settings.instance().moduleSetting('showWebVitals');
|
|
109
|
+
Common.Settings.Settings.instance().moduleSetting<boolean>('showScrollBottleneckRects');
|
|
110
|
+
this.#showWebVitalsSetting = Common.Settings.Settings.instance().moduleSetting<boolean>('showWebVitals');
|
|
124
111
|
|
|
125
112
|
this.#registeredListeners = [];
|
|
126
113
|
this.#showViewportSizeOnResize = true;
|
|
@@ -178,18 +165,15 @@ export class OverlayModel extends SDKModel<EventTypes> implements ProtocolProxyA
|
|
|
178
165
|
return this.#domModel;
|
|
179
166
|
}
|
|
180
167
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
highlightRect({x, y, width, height, color, outlineColor}: HighlightRect): Promise<any> {
|
|
168
|
+
highlightRect({x, y, width, height, color, outlineColor}: HighlightRect):
|
|
169
|
+
Promise<Protocol.ProtocolResponseWithError> {
|
|
184
170
|
const highlightColor = color || {r: 255, g: 0, b: 255, a: 0.3};
|
|
185
171
|
const highlightOutlineColor = outlineColor || {r: 255, g: 0, b: 255, a: 0.5};
|
|
186
172
|
return this.overlayAgent.invoke_highlightRect(
|
|
187
173
|
{x, y, width, height, color: highlightColor, outlineColor: highlightOutlineColor});
|
|
188
174
|
}
|
|
189
175
|
|
|
190
|
-
|
|
191
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
192
|
-
clearHighlight(): Promise<any> {
|
|
176
|
+
clearHighlight(): Promise<Protocol.ProtocolResponseWithError> {
|
|
193
177
|
return this.overlayAgent.invoke_hideHighlight();
|
|
194
178
|
}
|
|
195
179
|
|
|
@@ -360,15 +360,9 @@ export class OverlayPersistentHighlighter {
|
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
362
|
|
|
363
|
-
/**
|
|
364
|
-
* @interface
|
|
365
|
-
*/
|
|
366
363
|
export interface DOMModel {
|
|
367
364
|
nodeForId(nodeId: Protocol.DOM.NodeId): void;
|
|
368
365
|
}
|
|
369
|
-
/**
|
|
370
|
-
* @interface
|
|
371
|
-
*/
|
|
372
366
|
export interface OverlayAgent {
|
|
373
367
|
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
374
368
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
@@ -415,16 +409,10 @@ export interface OverlayAgent {
|
|
|
415
409
|
}): void;
|
|
416
410
|
}
|
|
417
411
|
|
|
418
|
-
/**
|
|
419
|
-
* @interface
|
|
420
|
-
*/
|
|
421
412
|
export interface Target {
|
|
422
413
|
overlayAgent(): OverlayAgent;
|
|
423
414
|
}
|
|
424
415
|
|
|
425
|
-
/**
|
|
426
|
-
* @interface
|
|
427
|
-
*/
|
|
428
416
|
export interface OverlayModel {
|
|
429
417
|
getDOMModel(): DOMModel;
|
|
430
418
|
|
|
@@ -644,7 +644,6 @@ export class ExecutionContext {
|
|
|
644
644
|
return this.evaluateGlobal(options, userGesture, awaitPromise);
|
|
645
645
|
}
|
|
646
646
|
|
|
647
|
-
/** @type {!EvaluationResult} */
|
|
648
647
|
if (this.runtimeModel.hasSideEffectSupport() !== false) {
|
|
649
648
|
await this.runtimeModel.checkSideEffectSupport();
|
|
650
649
|
if (this.runtimeModel.hasSideEffectSupport()) {
|
|
@@ -303,7 +303,7 @@ export class TextSourceMap implements SourceMap {
|
|
|
303
303
|
this.eachSection(this.parseMap.bind(this));
|
|
304
304
|
this.#json = null;
|
|
305
305
|
}
|
|
306
|
-
return
|
|
306
|
+
return this.#mappingsInternal;
|
|
307
307
|
}
|
|
308
308
|
|
|
309
309
|
private reversedMappings(sourceURL: string): number[] {
|
|
@@ -190,14 +190,14 @@ export class AllocationProfile {
|
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
private ensureBottomUpNode(nodeId: number): BottomUpAllocationNode {
|
|
193
|
-
let node
|
|
193
|
+
let node = this.idToNode[nodeId];
|
|
194
194
|
if (!node) {
|
|
195
195
|
const functionInfo = this.collapsedTopNodeIdToFunctionInfo[nodeId];
|
|
196
196
|
node = functionInfo.bottomUpRoot();
|
|
197
197
|
delete this.collapsedTopNodeIdToFunctionInfo[nodeId];
|
|
198
198
|
this.idToNode[nodeId] = node;
|
|
199
199
|
}
|
|
200
|
-
return
|
|
200
|
+
return node as BottomUpAllocationNode;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
private serializeCaller(node: BottomUpAllocationNode): HeapSnapshotModel.HeapSnapshotModel.SerializedAllocationNode {
|
|
@@ -331,7 +331,7 @@ export class FunctionAllocationInfo {
|
|
|
331
331
|
if (!this.bottomUpTree) {
|
|
332
332
|
this.buildAllocationTraceTree();
|
|
333
333
|
}
|
|
334
|
-
return
|
|
334
|
+
return this.bottomUpTree as BottomUpAllocationNode;
|
|
335
335
|
}
|
|
336
336
|
|
|
337
337
|
private buildAllocationTraceTree(): void {
|
|
@@ -2280,9 +2280,7 @@ export class HeapSnapshotNodesProvider extends HeapSnapshotItemProvider {
|
|
|
2280
2280
|
const ascending1 = comparator.ascending1 ? 1 : -1;
|
|
2281
2281
|
const ascending2 = comparator.ascending2 ? 1 : -1;
|
|
2282
2282
|
|
|
2283
|
-
|
|
2284
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2285
|
-
function sortByNodeField(fieldAccessor: () => any, ascending: number): number {
|
|
2283
|
+
function sortByNodeField(fieldAccessor: () => void, ascending: number): number {
|
|
2286
2284
|
const valueA = fieldAccessor.call(nodeA);
|
|
2287
2285
|
const valueB = fieldAccessor.call(nodeB);
|
|
2288
2286
|
return valueA < valueB ? -ascending : (valueA > valueB ? ascending : 0);
|
|
@@ -2616,8 +2614,7 @@ export class JSHeapSnapshot extends HeapSnapshot {
|
|
|
2616
2614
|
}
|
|
2617
2615
|
|
|
2618
2616
|
getStatistics(): HeapSnapshotModel.HeapSnapshotModel.Statistics {
|
|
2619
|
-
return
|
|
2620
|
-
HeapSnapshotModel.HeapSnapshotModel.Statistics;
|
|
2617
|
+
return this.statistics as HeapSnapshotModel.HeapSnapshotModel.Statistics;
|
|
2621
2618
|
}
|
|
2622
2619
|
}
|
|
2623
2620
|
|
|
@@ -58,7 +58,7 @@ export class HeapSnapshotWorkerDispatcher {
|
|
|
58
58
|
for (let i = 0; i < path.length; ++i) {
|
|
59
59
|
result = result[path[i]];
|
|
60
60
|
}
|
|
61
|
-
return
|
|
61
|
+
return result as Function;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration)
|
|
@@ -152,9 +152,6 @@ export class CSSWorkspaceBinding implements SDK.TargetManager.SDKModelObserver<S
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
/**
|
|
156
|
-
* @interface
|
|
157
|
-
*/
|
|
158
155
|
export interface SourceMapping {
|
|
159
156
|
rawLocationToUILocation(rawLocation: SDK.CSSModel.CSSLocation): Workspace.UISourceCode.UILocation|null;
|
|
160
157
|
|
|
@@ -677,8 +677,7 @@ class SourceScopeRemoteObject extends SDK.RemoteObject.RemoteObjectImpl {
|
|
|
677
677
|
properties.push(makeProperty(namespace, (namespaces[namespace] as SDK.RemoteObject.RemoteObject)));
|
|
678
678
|
}
|
|
679
679
|
|
|
680
|
-
return
|
|
681
|
-
SDK.RemoteObject.GetPropertiesResult;
|
|
680
|
+
return {properties: properties, internalProperties: []};
|
|
682
681
|
}
|
|
683
682
|
}
|
|
684
683
|
|
|
@@ -421,7 +421,7 @@ class ModelData {
|
|
|
421
421
|
uiLocation = uiLocation || this.resourceMapping.rawLocationToUILocation(rawLocation);
|
|
422
422
|
uiLocation = uiLocation || ResourceMapping.instance().jsLocationToUILocation(rawLocation);
|
|
423
423
|
uiLocation = uiLocation || this.#defaultMapping.rawLocationToUILocation(rawLocation);
|
|
424
|
-
return
|
|
424
|
+
return uiLocation;
|
|
425
425
|
}
|
|
426
426
|
|
|
427
427
|
uiLocationToRawLocations(
|
|
@@ -561,9 +561,6 @@ export interface RawLocationRange {
|
|
|
561
561
|
end: SDK.DebuggerModel.Location;
|
|
562
562
|
}
|
|
563
563
|
|
|
564
|
-
/**
|
|
565
|
-
* @interface
|
|
566
|
-
*/
|
|
567
564
|
export interface DebuggerSourceMapping {
|
|
568
565
|
rawLocationToUILocation(rawLocation: SDK.DebuggerModel.Location): Workspace.UISourceCode.UILocation|null;
|
|
569
566
|
|
|
@@ -31,9 +31,6 @@
|
|
|
31
31
|
import type * as Common from '../../core/common/common.js';
|
|
32
32
|
import * as Workspace from '../workspace/workspace.js';
|
|
33
33
|
|
|
34
|
-
/**
|
|
35
|
-
* @interface
|
|
36
|
-
*/
|
|
37
34
|
export interface ChunkedReader {
|
|
38
35
|
fileSize(): number;
|
|
39
36
|
|
|
@@ -217,7 +214,6 @@ export class FileOutputStream implements Common.StringOutputStream.OutputStream
|
|
|
217
214
|
|
|
218
215
|
async open(fileName: string): Promise<boolean> {
|
|
219
216
|
this.#closed = false;
|
|
220
|
-
/** @type {!Array<function():void>} */
|
|
221
217
|
this.#writeCallbacks = [];
|
|
222
218
|
this.#fileName = fileName;
|
|
223
219
|
const saveResponse = await Workspace.FileManager.FileManager.instance().save(this.#fileName, '', true);
|
|
@@ -83,8 +83,7 @@ export class IgnoreListManager implements SDK.TargetManager.SDKModelObserver<SDK
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
private getSkipStackFramesPatternSetting(): Common.Settings.RegExpSetting {
|
|
86
|
-
return
|
|
87
|
-
'skipStackFramesPattern') as Common.Settings.RegExpSetting;
|
|
86
|
+
return Common.Settings.Settings.instance().moduleSetting('skipStackFramesPattern') as Common.Settings.RegExpSetting;
|
|
88
87
|
}
|
|
89
88
|
|
|
90
89
|
private setIgnoreListPatterns(debuggerModel: SDK.DebuggerModel.DebuggerModel): Promise<boolean> {
|
|
@@ -180,7 +180,6 @@ export class NetworkProject {
|
|
|
180
180
|
return [];
|
|
181
181
|
}
|
|
182
182
|
const frames = Array.from(attribution.keys()).map(frameId => resourceTreeModel.frameForId(frameId));
|
|
183
|
-
return
|
|
184
|
-
SDK.ResourceTreeModel.ResourceTreeFrame[];
|
|
183
|
+
return frames.filter(frame => Boolean(frame)) as SDK.ResourceTreeModel.ResourceTreeFrame[];
|
|
185
184
|
}
|
|
186
185
|
}
|
|
@@ -304,8 +304,9 @@ namespace APIImpl {
|
|
|
304
304
|
// We cannot use the stronger `unknown` type in place of `any` in the following type definition. The type is used as
|
|
305
305
|
// the right-hand side of `extends` in a few places, which doesn't narrow `unknown`. Without narrowing, overload
|
|
306
306
|
// resolution and meaningful type inference of arguments break, for example.
|
|
307
|
+
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
307
308
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
308
|
-
export type Callable = (...args: any) =>
|
|
309
|
+
export type Callable = (...args: any) => void;
|
|
309
310
|
|
|
310
311
|
export interface EventSink<ListenerT extends Callable> extends PublicAPI.Chrome.DevTools.EventSink<ListenerT> {
|
|
311
312
|
_type: string;
|
|
@@ -640,7 +641,6 @@ self.injectedExtensionAPI = function(
|
|
|
640
641
|
};
|
|
641
642
|
|
|
642
643
|
function LanguageServicesAPIImpl(this: APIImpl.LanguageExtensions): void {
|
|
643
|
-
/** @type {!Map<*, !MessagePort>} */
|
|
644
644
|
this._plugins = new Map();
|
|
645
645
|
}
|
|
646
646
|
|
|
@@ -42,9 +42,6 @@ export class ExtensionTraceProvider {
|
|
|
42
42
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
43
43
|
let _lastSessionId = 0;
|
|
44
44
|
|
|
45
|
-
/**
|
|
46
|
-
* @interface
|
|
47
|
-
*/
|
|
48
45
|
export interface TracingSession {
|
|
49
46
|
complete(url: string, timeOffsetMicroseconds: number): void;
|
|
50
47
|
}
|
|
@@ -67,8 +67,7 @@ export class SameSiteCookieIssue extends Issue {
|
|
|
67
67
|
static createIssuesFromSameSiteDetails(
|
|
68
68
|
sameSiteDetails: Protocol.Audits.SameSiteCookieIssueDetails,
|
|
69
69
|
issuesModel: SDK.IssuesModel.IssuesModel): SameSiteCookieIssue[] {
|
|
70
|
-
|
|
71
|
-
const issues = [];
|
|
70
|
+
const issues: SameSiteCookieIssue[] = [];
|
|
72
71
|
|
|
73
72
|
// Exclusion reasons have priority. It means a cookie was blocked. Create an issue
|
|
74
73
|
// for every exclusion reason but ignore warning reasons if the cookie was blocked.
|
|
@@ -122,7 +122,7 @@ export class TimelineModelImpl {
|
|
|
122
122
|
static forEachEvent(
|
|
123
123
|
events: SDK.TracingModel.Event[], onStartEvent: (arg0: SDK.TracingModel.Event) => void,
|
|
124
124
|
onEndEvent: (arg0: SDK.TracingModel.Event) => void,
|
|
125
|
-
onInstantEvent?: ((arg0: SDK.TracingModel.Event, arg1: SDK.TracingModel.Event|null) =>
|
|
125
|
+
onInstantEvent?: ((arg0: SDK.TracingModel.Event, arg1: SDK.TracingModel.Event|null) => void), startTime?: number,
|
|
126
126
|
endTime?: number, filter?: ((arg0: SDK.TracingModel.Event) => boolean)): void {
|
|
127
127
|
startTime = startTime || 0;
|
|
128
128
|
endTime = endTime || Infinity;
|
|
@@ -178,7 +178,6 @@ export class TracingLayer implements SDK.LayerTreeBase.Layer {
|
|
|
178
178
|
payload.compositing_reason_ids || (payload.debug_info && payload.debug_info.compositing_reason_ids) || [];
|
|
179
179
|
this.drawsContentInternal = Boolean(payload.draws_content);
|
|
180
180
|
this.gpuMemoryUsageInternal = payload.gpu_memory_usage;
|
|
181
|
-
/** @type {!Array<!LayerPaintEvent>} */
|
|
182
181
|
this.paints = [];
|
|
183
182
|
}
|
|
184
183
|
|
|
@@ -499,11 +499,11 @@ export class AXBreadcrumb {
|
|
|
499
499
|
}
|
|
500
500
|
|
|
501
501
|
element(): HTMLElement {
|
|
502
|
-
return
|
|
502
|
+
return this.elementInternal;
|
|
503
503
|
}
|
|
504
504
|
|
|
505
505
|
nodeElement(): HTMLElement {
|
|
506
|
-
return
|
|
506
|
+
return this.nodeElementInternal;
|
|
507
507
|
}
|
|
508
508
|
|
|
509
509
|
appendChild(breadcrumb: AXBreadcrumb): void {
|
|
@@ -203,8 +203,7 @@ export class AXNodeSubPane extends AccessibilitySubPane {
|
|
|
203
203
|
};
|
|
204
204
|
addProperty(roleProperty);
|
|
205
205
|
}
|
|
206
|
-
for (const property of
|
|
207
|
-
Protocol.Accessibility.AXProperty[]) {
|
|
206
|
+
for (const property of axNode.properties() as Protocol.Accessibility.AXProperty[]) {
|
|
208
207
|
addProperty(property);
|
|
209
208
|
}
|
|
210
209
|
|
|
@@ -240,7 +240,6 @@ export class AnimationTimeline extends UI.Widget.VBox implements SDK.TargetManag
|
|
|
240
240
|
UI.ARIAUtils.markAsListBox(playbackRateControl);
|
|
241
241
|
UI.ARIAUtils.setAccessibleName(playbackRateControl, i18nString(UIStrings.playbackRates));
|
|
242
242
|
|
|
243
|
-
/** @type {!Array<!HTMLElement>} */
|
|
244
243
|
this.#playbackRateButtons = [];
|
|
245
244
|
for (const playbackRate of GlobalPlaybackRates) {
|
|
246
245
|
const button = (playbackRateControl.createChild('button', 'animation-playback-rate-button') as HTMLElement);
|
|
@@ -6,9 +6,9 @@ import type * as Common from '../../core/common/common.js';
|
|
|
6
6
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
7
7
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
8
8
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
9
|
+
import * as ApplicationComponents from './components/components.js';
|
|
9
10
|
|
|
10
11
|
import {ApplicationPanelTreeElement, ExpandableApplicationPanelTreeElement} from './ApplicationPanelTreeElement.js';
|
|
11
|
-
import {BackForwardCacheView} from './BackForwardCacheView.js';
|
|
12
12
|
import type {ResourcesPanel} from './ResourcesPanel.js';
|
|
13
13
|
import {ServiceWorkerCacheView} from './ServiceWorkerCacheViews.js';
|
|
14
14
|
|
|
@@ -125,7 +125,6 @@ export class SWCacheTreeElement extends ApplicationPanelTreeElement {
|
|
|
125
125
|
super(resourcesPanel, cache.cacheName + ' - ' + cache.securityOrigin, false);
|
|
126
126
|
this.model = model;
|
|
127
127
|
this.cache = cache;
|
|
128
|
-
/** @type {?} */
|
|
129
128
|
this.view = null;
|
|
130
129
|
const icon = UI.Icon.Icon.create('mediumicon-table', 'resource-tree-item');
|
|
131
130
|
this.setLeadingIcons([icon]);
|
|
@@ -175,7 +174,7 @@ export class SWCacheTreeElement extends ApplicationPanelTreeElement {
|
|
|
175
174
|
}
|
|
176
175
|
|
|
177
176
|
export class BackForwardCacheTreeElement extends ApplicationPanelTreeElement {
|
|
178
|
-
private view?: BackForwardCacheView;
|
|
177
|
+
private view?: ApplicationComponents.BackForwardCacheView.BackForwardCacheViewWrapper;
|
|
179
178
|
|
|
180
179
|
constructor(resourcesPanel: ResourcesPanel) {
|
|
181
180
|
super(resourcesPanel, i18nString(UIStrings.backForwardCache), false);
|
|
@@ -190,7 +189,7 @@ export class BackForwardCacheTreeElement extends ApplicationPanelTreeElement {
|
|
|
190
189
|
onselect(selectedByUser?: boolean): boolean {
|
|
191
190
|
super.onselect(selectedByUser);
|
|
192
191
|
if (!this.view) {
|
|
193
|
-
this.view = new BackForwardCacheView();
|
|
192
|
+
this.view = new ApplicationComponents.BackForwardCacheView.BackForwardCacheViewWrapper();
|
|
194
193
|
}
|
|
195
194
|
this.showView(this.view);
|
|
196
195
|
return false;
|
|
@@ -105,7 +105,6 @@ export class ServiceWorkerUpdateCycleView {
|
|
|
105
105
|
}
|
|
106
106
|
state = state.previousState;
|
|
107
107
|
}
|
|
108
|
-
/** @type {Array <ServiceWorkerUpdateRange>} */
|
|
109
108
|
const ranges: Array<ServiceWorkerUpdateRange> = [];
|
|
110
109
|
addNormalizedRanges(
|
|
111
110
|
ranges, version.id, beginInstallTime, endInstallTime, beginActivateTime, endActivateTime, currentStatus);
|
|
@@ -158,7 +157,6 @@ export class ServiceWorkerUpdateCycleView {
|
|
|
158
157
|
this.selectedRowIndex = -1;
|
|
159
158
|
this.removeRows();
|
|
160
159
|
this.createTimingTableHead();
|
|
161
|
-
/** @type {!Array<ServiceWorkerUpdateRange>} */
|
|
162
160
|
const timeRangeArray = timeRanges;
|
|
163
161
|
if (timeRangeArray.length === 0) {
|
|
164
162
|
return;
|
|
@@ -178,9 +178,7 @@ export class StorageView extends UI.ThrottledWidget.ThrottledWidget {
|
|
|
178
178
|
|
|
179
179
|
this.reportView.element.classList.add('clear-storage-header');
|
|
180
180
|
this.reportView.show(this.contentElement);
|
|
181
|
-
/** @type {?SDK.Target.Target} */
|
|
182
181
|
this.target = null;
|
|
183
|
-
/** @type {?string} */
|
|
184
182
|
this.securityOrigin = null;
|
|
185
183
|
|
|
186
184
|
this.settings = new Map();
|
|
@@ -213,7 +211,6 @@ export class StorageView extends UI.ThrottledWidget.ThrottledWidget {
|
|
|
213
211
|
quotaOverrideCheckboxRow.appendChild(this.quotaOverrideCheckbox);
|
|
214
212
|
this.quotaOverrideCheckbox.checkboxElement.addEventListener('click', this.onClickCheckbox.bind(this), false);
|
|
215
213
|
this.quotaOverrideControlRow = quota.appendRow();
|
|
216
|
-
/** @type {!HTMLInputElement} */
|
|
217
214
|
this.quotaOverrideEditor =
|
|
218
215
|
this.quotaOverrideControlRow.createChild('input', 'quota-override-notification-editor') as HTMLInputElement;
|
|
219
216
|
this.quotaOverrideControlRow.appendChild(UI.UIUtils.createLabel(i18nString(UIStrings.mb)));
|
|
@@ -446,7 +443,7 @@ export class StorageView extends UI.ThrottledWidget.ThrottledWidget {
|
|
|
446
443
|
return;
|
|
447
444
|
}
|
|
448
445
|
|
|
449
|
-
const securityOrigin =
|
|
446
|
+
const securityOrigin = this.securityOrigin;
|
|
450
447
|
const response = await this.target.storageAgent().invoke_getUsageAndQuota({origin: securityOrigin});
|
|
451
448
|
this.quotaRow.textContent = '';
|
|
452
449
|
if (response.getError()) {
|
|
@@ -475,8 +472,7 @@ export class StorageView extends UI.ThrottledWidget.ThrottledWidget {
|
|
|
475
472
|
|
|
476
473
|
if (this.quotaUsage === null || this.quotaUsage !== response.usage) {
|
|
477
474
|
this.quotaUsage = response.usage;
|
|
478
|
-
|
|
479
|
-
const slices = [];
|
|
475
|
+
const slices: PerfUI.PieChart.Slice[] = [];
|
|
480
476
|
for (const usageForType of response.usageBreakdown.sort((a, b) => b.usage - a.usage)) {
|
|
481
477
|
const value = usageForType.usage;
|
|
482
478
|
if (!value) {
|
|
@@ -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 * as i18n from '
|
|
5
|
+
import * as i18n from '../../../core/i18n/i18n.js';
|
|
6
6
|
|
|
7
7
|
const UIStrings = {
|
|
8
8
|
/**
|
|
@@ -422,7 +422,7 @@ const UIStrings = {
|
|
|
422
422
|
contentMediaPlay: 'A media player was playing upon navigating away.',
|
|
423
423
|
};
|
|
424
424
|
|
|
425
|
-
const str_ = i18n.i18n.registerUIStrings('panels/application/BackForwardCacheStrings.ts', UIStrings);
|
|
425
|
+
const str_ = i18n.i18n.registerUIStrings('panels/application/components/BackForwardCacheStrings.ts', UIStrings);
|
|
426
426
|
const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
|
|
427
427
|
|
|
428
428
|
export const NotRestoredReasonDescription = {
|