chrome-devtools-frontend 1.0.923302 → 1.0.925026
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/all_devtools_files.gni +0 -1
- package/config/gni/devtools_grd_files.gni +1 -3
- package/config/gni/devtools_image_files.gni +1 -1
- package/front_end/Images/src/copy_icon.svg +79 -0
- package/front_end/core/common/EventTarget.ts +22 -27
- package/front_end/core/common/Object.ts +28 -26
- package/front_end/core/common/Settings.ts +9 -8
- package/front_end/core/i18n/locales/en-US.json +18 -39
- package/front_end/core/i18n/locales/en-XL.json +18 -39
- package/front_end/core/platform/string-utilities.ts +4 -3
- package/front_end/core/sdk/EmulationModel.ts +1 -1
- package/front_end/core/sdk/NetworkManager.ts +1 -2
- package/front_end/core/sdk/ResourceTreeModel.ts +2 -3
- package/front_end/core/sdk/RuntimeModel.ts +2 -3
- package/front_end/core/sdk/SourceMap.ts +74 -31
- package/front_end/core/sdk/TargetManager.ts +9 -8
- package/front_end/core/sdk/TracingManager.ts +1 -1
- package/front_end/entrypoints/main/MainImpl.ts +1 -1
- package/front_end/entrypoints/node_main/NodeMain.ts +1 -1
- package/front_end/generated/InspectorBackendCommands.js +9 -5
- package/front_end/generated/protocol-mapping.d.ts +1 -0
- package/front_end/generated/protocol-proxy-api.d.ts +1 -0
- package/front_end/generated/protocol.d.ts +13 -2
- package/front_end/legacy_test_runner/application_test_runner/application_test_runner.js +0 -1
- package/front_end/models/bindings/CompilerScriptMapping.ts +24 -6
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +30 -30
- package/front_end/models/extensions/ExtensionServer.ts +10 -13
- package/front_end/models/workspace/WorkspaceImpl.ts +1 -1
- package/front_end/models/workspace_diff/WorkspaceDiff.ts +24 -20
- package/front_end/panels/animation/AnimationModel.ts +6 -1
- package/front_end/panels/animation/AnimationTimeline.ts +2 -2
- package/front_end/panels/application/AppManifestView.ts +58 -20
- package/front_end/panels/application/ApplicationPanelCacheSection.ts +1 -59
- package/front_end/panels/application/ApplicationPanelSidebar.ts +15 -163
- package/front_end/panels/application/BackgroundServiceModel.ts +6 -1
- package/front_end/panels/application/BackgroundServiceView.ts +4 -4
- package/front_end/panels/application/DOMStorageItemsView.ts +2 -2
- package/front_end/panels/application/DatabaseModel.ts +6 -1
- package/front_end/panels/application/DatabaseTableView.ts +1 -1
- package/front_end/panels/application/IndexedDBModel.ts +9 -1
- package/front_end/panels/application/IndexedDBViews.ts +7 -8
- package/front_end/panels/application/ServiceWorkerCacheViews.ts +2 -2
- package/front_end/panels/application/ServiceWorkersView.ts +3 -3
- package/front_end/panels/application/StorageItemsView.ts +2 -3
- package/front_end/panels/application/StorageView.ts +0 -13
- package/front_end/panels/application/appManifestView.css +8 -0
- package/front_end/panels/application/application-legacy.ts +0 -3
- package/front_end/panels/application/application.ts +0 -4
- package/front_end/panels/browser_debugger/ObjectEventListenersSidebarPane.ts +1 -1
- package/front_end/panels/console/ConsolePinPane.ts +1 -2
- package/front_end/panels/console/ConsoleSidebar.ts +2 -2
- package/front_end/panels/console/ConsoleView.ts +7 -6
- package/front_end/panels/console/ConsoleViewMessage.ts +4 -3
- package/front_end/panels/coverage/CoverageModel.ts +9 -3
- package/front_end/panels/coverage/CoverageView.ts +3 -2
- package/front_end/panels/css_overview/CSSOverviewModel.ts +1 -1
- package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +1 -1
- package/front_end/panels/elements/ComputedStyleWidget.ts +2 -2
- package/front_end/panels/elements/ElementsPanel.ts +3 -3
- package/front_end/panels/elements/StylePropertyTreeElement.ts +14 -4
- package/front_end/panels/elements/StylesSidebarPane.ts +4 -2
- package/front_end/panels/input/InputModel.ts +1 -1
- package/front_end/panels/issues/ComboBoxOfCheckBoxes.ts +2 -4
- package/front_end/panels/issues/HiddenIssuesRow.ts +7 -12
- package/front_end/panels/layers/LayerTreeModel.ts +6 -1
- package/front_end/panels/layers/LayersPanel.ts +3 -4
- package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +1 -0
- package/front_end/panels/media/MainView.ts +22 -19
- package/front_end/panels/media/MediaModel.ts +15 -7
- package/front_end/panels/media/PlayerMessagesView.ts +2 -4
- package/front_end/panels/network/NetworkPanel.ts +6 -6
- package/front_end/panels/network/RequestHeadersView.ts +7 -0
- package/front_end/panels/network/ResourceWebSocketFrameView.ts +3 -2
- package/front_end/panels/network/networkLogView.css +5 -0
- package/front_end/panels/profiler/HeapProfileView.ts +14 -4
- package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +14 -1
- package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +11 -3
- package/front_end/panels/profiler/HeapSnapshotView.ts +67 -32
- package/front_end/panels/profiler/LiveHeapProfileView.ts +2 -2
- package/front_end/panels/profiler/ProfileHeader.ts +11 -2
- package/front_end/panels/profiler/ProfileView.ts +3 -3
- package/front_end/panels/profiler/ProfilesPanel.ts +7 -6
- package/front_end/panels/screencast/InputModel.ts +1 -1
- package/front_end/panels/screencast/ScreencastView.ts +1 -1
- package/front_end/panels/security/SecurityModel.ts +5 -1
- package/front_end/panels/security/SecurityPanel.ts +1 -2
- package/front_end/panels/sensors/SensorsView.ts +3 -2
- package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +6 -3
- package/front_end/panels/sources/CSSPlugin.ts +1 -1
- package/front_end/panels/sources/DebuggerPlugin.ts +6 -4
- package/front_end/panels/sources/InplaceFormatterEditorAction.ts +1 -1
- package/front_end/panels/sources/ScriptFormatterEditorAction.ts +1 -1
- package/front_end/panels/sources/SourcesPanel.ts +2 -2
- package/front_end/panels/timeline/TimelineFlameChartView.ts +5 -8
- package/front_end/panels/timeline/TimelineUIUtils.ts +1 -2
- package/front_end/panels/web_audio/AudioContextSelector.ts +4 -6
- package/front_end/panels/web_audio/WebAudioModel.ts +19 -1
- package/front_end/panels/web_audio/WebAudioView.ts +28 -22
- package/front_end/panels/web_audio/graph_visualizer/graph_visualizer.ts +0 -7
- package/front_end/panels/web_audio/web_audio.ts +1 -23
- package/front_end/panels/webauthn/WebauthnPane.ts +20 -10
- package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +598 -595
- package/front_end/third_party/lighthouse/locales/en-US.json +6 -0
- package/front_end/third_party/lighthouse/locales/en-XL.json +6 -0
- package/front_end/third_party/lighthouse/report/bundle.d.ts +25 -4
- package/front_end/third_party/lighthouse/report/bundle.js +111 -22
- package/front_end/third_party/lighthouse/report-assets/report.css +120 -12
- package/front_end/third_party/lighthouse/report-assets/report.js +10 -10
- package/front_end/third_party/puppeteer/README.chromium +1 -1
- package/front_end/third_party/puppeteer/package/CHANGELOG.md +66 -0
- package/front_end/third_party/puppeteer/package/README.md +34 -13
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.js +5 -5
- 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 +18 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js +8 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.d.ts +22 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.js +14 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.d.ts +1 -0
- 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 +10 -6
- 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/DeviceDescriptors.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DeviceDescriptors.js +120 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DeviceDescriptors.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EvalTypes.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EvalTypes.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js +2 -2
- 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 +62 -3
- 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 +131 -3
- 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/Input.d.ts +40 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.js +76 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts +53 -2
- 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 +82 -13
- 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/NetworkManager.d.ts +2 -1
- 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 +14 -2
- 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/PDFOptions.d.ts +5 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts +1053 -29
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js +1114 -22
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.js +17 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/assert.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/assert.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/assert.js +6 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/assert.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.d.ts +21 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.js +47 -28
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/global.d.ts +17 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/global.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/global.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/global.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js +9 -10
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js.map +1 -1
- 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 +5 -2
- 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 +10 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.d.ts +1 -1
- 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 +83 -6
- 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.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.js +7 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.js +17 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js +5 -5
- 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 +18 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js +8 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts +22 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.js +14 -7
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts +1 -0
- 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 +10 -6
- 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/DeviceDescriptors.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.js +120 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EvalTypes.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EvalTypes.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js +2 -2
- 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 +62 -3
- 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 +131 -3
- 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/Input.d.ts +40 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.js +76 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts +53 -2
- 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 +82 -13
- 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/NetworkManager.d.ts +2 -1
- 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 +14 -2
- 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/PDFOptions.d.ts +5 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts +1053 -29
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js +1115 -23
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.js +17 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.js +4 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.d.ts +21 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js +32 -13
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/global.d.ts +17 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/global.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/global.js +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/global.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js +9 -10
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js.map +1 -1
- 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 +5 -2
- 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 +10 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts +1 -1
- 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 +83 -6
- 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.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.js +7 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.js +17 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +1382 -19726
- package/front_end/third_party/puppeteer/package/package.json +9 -6
- package/front_end/third_party/wasmparser/README.chromium +2 -2
- package/front_end/third_party/wasmparser/package/CHANGELOG.md +13 -0
- package/front_end/third_party/wasmparser/package/dist/cjs/WasmDis.js +50 -10
- package/front_end/third_party/wasmparser/package/dist/cjs/WasmDis.js.map +1 -1
- package/front_end/third_party/wasmparser/package/dist/cjs/WasmParser.d.ts +21 -4
- package/front_end/third_party/wasmparser/package/dist/cjs/WasmParser.js +76 -8
- package/front_end/third_party/wasmparser/package/dist/cjs/WasmParser.js.map +1 -1
- package/front_end/third_party/wasmparser/package/dist/esm/WasmDis.js +50 -10
- package/front_end/third_party/wasmparser/package/dist/esm/WasmDis.js.map +1 -1
- package/front_end/third_party/wasmparser/package/dist/esm/WasmParser.d.ts +21 -4
- package/front_end/third_party/wasmparser/package/dist/esm/WasmParser.js +76 -8
- package/front_end/third_party/wasmparser/package/dist/esm/WasmParser.js.map +1 -1
- package/front_end/third_party/wasmparser/package/package.json +1 -1
- package/front_end/third_party/wasmparser/package/src/WasmDis.ts +47 -10
- package/front_end/third_party/wasmparser/package/src/WasmParser.ts +75 -5
- package/front_end/ui/components/icon_button/iconButton.css +4 -0
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorPane.ts +2 -6
- package/front_end/ui/legacy/FilterBar.ts +1 -1
- package/front_end/ui/legacy/GlassPane.ts +1 -3
- package/front_end/ui/legacy/SplitWidget.ts +1 -1
- package/front_end/ui/legacy/UIUtils.ts +3 -4
- package/front_end/ui/legacy/components/color_picker/ContrastDetails.ts +3 -3
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +1 -1
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +15 -6
- package/front_end/ui/legacy/components/data_grid/ViewportDataGrid.ts +7 -1
- package/front_end/ui/legacy/components/inline_editor/SwatchPopoverHelper.ts +6 -2
- package/front_end/ui/legacy/components/perf_ui/OverviewGrid.ts +3 -3
- package/front_end/ui/legacy/components/utils/TargetDetachedDialog.ts +1 -1
- package/front_end/ui/legacy/reportView.css +1 -0
- package/package.json +1 -1
- package/scripts/build/rollup.config.js +0 -5
- package/front_end/Images/src/exclamation_mark_circle_icon.svg +0 -65
- package/front_end/legacy_test_runner/application_test_runner/AppcacheTestRunner.js +0 -220
- package/front_end/panels/application/ApplicationCacheItemsView.ts +0 -335
- package/front_end/panels/application/ApplicationCacheModel.ts +0 -206
|
@@ -306,7 +306,7 @@ export class HeapSnapshotView extends UI.View.SimpleView implements DataDisplayD
|
|
|
306
306
|
this.linkifier = new Components.Linkifier.Linkifier();
|
|
307
307
|
const profileType = profile.profileType();
|
|
308
308
|
|
|
309
|
-
profileType.addEventListener(
|
|
309
|
+
profileType.addEventListener(HeapSnapshotProfileTypeEvents.SnapshotReceived, this.onReceiveSnapshot, this);
|
|
310
310
|
profileType.addEventListener(ProfileTypeEvents.RemoveProfileHeader, this.onProfileHeaderRemoved, this);
|
|
311
311
|
|
|
312
312
|
const isHeapTimeline = profileType.id === TrackingHeapSnapshotProfileType.TypeId;
|
|
@@ -429,7 +429,7 @@ export class HeapSnapshotView extends UI.View.SimpleView implements DataDisplayD
|
|
|
429
429
|
this.currentPerspectiveIndex = 0;
|
|
430
430
|
this.currentPerspective = this.perspectives[0];
|
|
431
431
|
this.currentPerspective.activate(this);
|
|
432
|
-
this.dataGrid =
|
|
432
|
+
this.dataGrid = this.currentPerspective.masterGrid(this);
|
|
433
433
|
|
|
434
434
|
this.populate();
|
|
435
435
|
this.searchThrottler = new Common.Throttler.Throttler(0);
|
|
@@ -444,26 +444,27 @@ export class HeapSnapshotView extends UI.View.SimpleView implements DataDisplayD
|
|
|
444
444
|
this.trackingOverviewGrid = new HeapTimelineOverview();
|
|
445
445
|
this.trackingOverviewGrid.addEventListener(Events.IdsRangeChanged, this.onIdsRangeChanged.bind(this));
|
|
446
446
|
if (!this.profile.fromFile() && profileType.profileBeingRecorded() === this.profile) {
|
|
447
|
-
profileType
|
|
448
|
-
|
|
447
|
+
(profileType as TrackingHeapSnapshotProfileType)
|
|
448
|
+
.addEventListener(TrackingHeapSnapshotProfileTypeEvents.HeapStatsUpdate, this.onHeapStatsUpdate, this);
|
|
449
|
+
(profileType as TrackingHeapSnapshotProfileType)
|
|
450
|
+
.addEventListener(TrackingHeapSnapshotProfileTypeEvents.TrackingStopped, this.onStopTracking, this);
|
|
449
451
|
this.trackingOverviewGrid.start();
|
|
450
452
|
}
|
|
451
453
|
}
|
|
452
454
|
|
|
453
455
|
onStopTracking(): void {
|
|
454
|
-
this.profile.profileType()
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
456
|
+
const profileType = this.profile.profileType() as TrackingHeapSnapshotProfileType;
|
|
457
|
+
profileType.removeEventListener(
|
|
458
|
+
TrackingHeapSnapshotProfileTypeEvents.HeapStatsUpdate, this.onHeapStatsUpdate, this);
|
|
459
|
+
profileType.removeEventListener(TrackingHeapSnapshotProfileTypeEvents.TrackingStopped, this.onStopTracking, this);
|
|
458
460
|
if (this.trackingOverviewGrid) {
|
|
459
461
|
this.trackingOverviewGrid.stop();
|
|
460
462
|
}
|
|
461
463
|
}
|
|
462
464
|
|
|
463
|
-
onHeapStatsUpdate(
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
this.trackingOverviewGrid.setSamples(event.data);
|
|
465
|
+
onHeapStatsUpdate({data: samples}: Common.EventTarget.EventTargetEvent<Samples>): void {
|
|
466
|
+
if (this.trackingOverviewGrid) {
|
|
467
|
+
this.trackingOverviewGrid.setSamples(samples);
|
|
467
468
|
}
|
|
468
469
|
}
|
|
469
470
|
|
|
@@ -726,19 +727,22 @@ export class HeapSnapshotView extends UI.View.SimpleView implements DataDisplayD
|
|
|
726
727
|
return this.profile.profileType().getProfiles();
|
|
727
728
|
}
|
|
728
729
|
|
|
729
|
-
selectionChanged(event: Common.EventTarget.EventTargetEvent):
|
|
730
|
+
selectionChanged(event: Common.EventTarget.EventTargetEvent<DataGrid.DataGrid.DataGridNode<HeapSnapshotGridNode>>):
|
|
731
|
+
void {
|
|
730
732
|
const selectedNode = (event.data as HeapSnapshotGridNode);
|
|
731
733
|
this.setSelectedNodeForDetailsView(selectedNode);
|
|
732
734
|
this.inspectedObjectChanged(event);
|
|
733
735
|
}
|
|
734
736
|
|
|
735
|
-
onSelectAllocationNode(
|
|
737
|
+
onSelectAllocationNode(
|
|
738
|
+
event: Common.EventTarget.EventTargetEvent<DataGrid.DataGrid.DataGridNode<HeapSnapshotGridNode>>): void {
|
|
736
739
|
const selectedNode = (event.data as AllocationGridNode);
|
|
737
740
|
this.constructorsDataGrid.setAllocationNodeId(selectedNode.allocationNodeId());
|
|
738
741
|
this.setSelectedNodeForDetailsView(null);
|
|
739
742
|
}
|
|
740
743
|
|
|
741
|
-
inspectedObjectChanged(
|
|
744
|
+
inspectedObjectChanged(
|
|
745
|
+
event: Common.EventTarget.EventTargetEvent<DataGrid.DataGrid.DataGridNode<HeapSnapshotGridNode>>): void {
|
|
742
746
|
const selectedNode = (event.data as HeapSnapshotGridNode);
|
|
743
747
|
const heapProfilerModel = this.profile.heapProfilerModel();
|
|
744
748
|
if (heapProfilerModel && selectedNode instanceof HeapSnapshotGenericObjectNode) {
|
|
@@ -955,20 +959,20 @@ export class HeapSnapshotView extends UI.View.SimpleView implements DataDisplayD
|
|
|
955
959
|
this.updateFilterOptions();
|
|
956
960
|
}
|
|
957
961
|
|
|
958
|
-
onReceiveSnapshot(event: Common.EventTarget.EventTargetEvent): void {
|
|
962
|
+
onReceiveSnapshot(event: Common.EventTarget.EventTargetEvent<ProfileHeader>): void {
|
|
959
963
|
this.updateControls();
|
|
960
964
|
const profile = event.data;
|
|
961
965
|
profile.addEventListener(ProfileHeaderEvents.ProfileTitleChanged, this.updateControls, this);
|
|
962
966
|
}
|
|
963
967
|
|
|
964
|
-
onProfileHeaderRemoved(event: Common.EventTarget.EventTargetEvent): void {
|
|
968
|
+
onProfileHeaderRemoved(event: Common.EventTarget.EventTargetEvent<ProfileHeader>): void {
|
|
965
969
|
const profile = event.data;
|
|
966
970
|
profile.removeEventListener(ProfileHeaderEvents.ProfileTitleChanged, this.updateControls, this);
|
|
967
971
|
|
|
968
972
|
if (this.profile === profile) {
|
|
969
973
|
this.detach();
|
|
970
974
|
this.profile.profileType().removeEventListener(
|
|
971
|
-
|
|
975
|
+
HeapSnapshotProfileTypeEvents.SnapshotReceived, this.onReceiveSnapshot, this);
|
|
972
976
|
this.profile.profileType().removeEventListener(
|
|
973
977
|
ProfileTypeEvents.RemoveProfileHeader, this.onProfileHeaderRemoved, this);
|
|
974
978
|
this.dispose();
|
|
@@ -1020,7 +1024,7 @@ export class Perspective {
|
|
|
1020
1024
|
heapSnapshotView.splitWidget.detachChildWidgets();
|
|
1021
1025
|
}
|
|
1022
1026
|
|
|
1023
|
-
masterGrid(_heapSnapshotView: HeapSnapshotView):
|
|
1027
|
+
masterGrid(_heapSnapshotView: HeapSnapshotView): HeapSnapshotSortableDataGrid|null {
|
|
1024
1028
|
return null;
|
|
1025
1029
|
}
|
|
1026
1030
|
|
|
@@ -1053,7 +1057,7 @@ export class SummaryPerspective extends Perspective {
|
|
|
1053
1057
|
heapSnapshotView.trackingOverviewGrid.updateGrid();
|
|
1054
1058
|
}
|
|
1055
1059
|
|
|
1056
|
-
masterGrid(heapSnapshotView: HeapSnapshotView):
|
|
1060
|
+
masterGrid(heapSnapshotView: HeapSnapshotView): HeapSnapshotSortableDataGrid {
|
|
1057
1061
|
return heapSnapshotView.constructorsDataGrid;
|
|
1058
1062
|
}
|
|
1059
1063
|
|
|
@@ -1075,7 +1079,7 @@ export class ComparisonPerspective extends Perspective {
|
|
|
1075
1079
|
heapSnapshotView.classNameFilter.setVisible(true);
|
|
1076
1080
|
}
|
|
1077
1081
|
|
|
1078
|
-
masterGrid(heapSnapshotView: HeapSnapshotView):
|
|
1082
|
+
masterGrid(heapSnapshotView: HeapSnapshotView): HeapSnapshotSortableDataGrid {
|
|
1079
1083
|
return heapSnapshotView.diffDataGrid;
|
|
1080
1084
|
}
|
|
1081
1085
|
|
|
@@ -1095,7 +1099,7 @@ export class ContainmentPerspective extends Perspective {
|
|
|
1095
1099
|
heapSnapshotView.splitWidget.show(heapSnapshotView.searchableViewInternal.element);
|
|
1096
1100
|
}
|
|
1097
1101
|
|
|
1098
|
-
masterGrid(heapSnapshotView: HeapSnapshotView):
|
|
1102
|
+
masterGrid(heapSnapshotView: HeapSnapshotView): HeapSnapshotSortableDataGrid {
|
|
1099
1103
|
return heapSnapshotView.containmentDataGrid;
|
|
1100
1104
|
}
|
|
1101
1105
|
}
|
|
@@ -1143,7 +1147,7 @@ export class AllocationPerspective extends Perspective {
|
|
|
1143
1147
|
super.deactivate(heapSnapshotView);
|
|
1144
1148
|
}
|
|
1145
1149
|
|
|
1146
|
-
masterGrid(heapSnapshotView: HeapSnapshotView):
|
|
1150
|
+
masterGrid(heapSnapshotView: HeapSnapshotView): HeapSnapshotSortableDataGrid|null {
|
|
1147
1151
|
return heapSnapshotView.allocationDataGrid;
|
|
1148
1152
|
}
|
|
1149
1153
|
}
|
|
@@ -1157,13 +1161,14 @@ export class StatisticsPerspective extends Perspective {
|
|
|
1157
1161
|
heapSnapshotView.statisticsView.show(heapSnapshotView.searchableViewInternal.element);
|
|
1158
1162
|
}
|
|
1159
1163
|
|
|
1160
|
-
masterGrid(_heapSnapshotView: HeapSnapshotView):
|
|
1164
|
+
masterGrid(_heapSnapshotView: HeapSnapshotView): HeapSnapshotSortableDataGrid|null {
|
|
1161
1165
|
return null;
|
|
1162
1166
|
}
|
|
1163
1167
|
}
|
|
1164
1168
|
|
|
1165
|
-
export class HeapSnapshotProfileType extends
|
|
1166
|
-
|
|
1169
|
+
export class HeapSnapshotProfileType extends
|
|
1170
|
+
Common.ObjectWrapper.eventMixin<HeapSnapshotProfileTypeEventTypes, typeof ProfileType>(ProfileType)
|
|
1171
|
+
implements SDK.TargetManager.SDKModelObserver<SDK.HeapProfilerModel.HeapProfilerModel> {
|
|
1167
1172
|
readonly treatGlobalObjectsAsRoots: Common.Settings.Setting<boolean>;
|
|
1168
1173
|
readonly captureNumericValue: Common.Settings.Setting<boolean>;
|
|
1169
1174
|
customContentInternal: HTMLElement|null;
|
|
@@ -1313,16 +1318,27 @@ export class HeapSnapshotProfileType extends ProfileType implements
|
|
|
1313
1318
|
if (this.profileBeingRecorded() === profile) {
|
|
1314
1319
|
this.setProfileBeingRecorded(null);
|
|
1315
1320
|
}
|
|
1316
|
-
this.dispatchEventToListeners(
|
|
1321
|
+
this.dispatchEventToListeners(HeapSnapshotProfileTypeEvents.SnapshotReceived, profile);
|
|
1317
1322
|
}
|
|
1318
1323
|
|
|
1319
1324
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1320
1325
|
static readonly TypeId: string = 'HEAP';
|
|
1326
|
+
// TODO(crbug.com/1228674): Remove event string once its no longer used in web tests.
|
|
1321
1327
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1322
1328
|
static readonly SnapshotReceived = 'SnapshotReceived';
|
|
1323
1329
|
}
|
|
1324
1330
|
|
|
1325
|
-
export
|
|
1331
|
+
export const enum HeapSnapshotProfileTypeEvents {
|
|
1332
|
+
SnapshotReceived = 'SnapshotReceived',
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
export type HeapSnapshotProfileTypeEventTypes = {
|
|
1336
|
+
[HeapSnapshotProfileTypeEvents.SnapshotReceived]: ProfileHeader,
|
|
1337
|
+
};
|
|
1338
|
+
|
|
1339
|
+
export class TrackingHeapSnapshotProfileType extends
|
|
1340
|
+
Common.ObjectWrapper.eventMixin<TrackingHeapSnapshotProfileTypeEventTypes, typeof HeapSnapshotProfileType>(
|
|
1341
|
+
HeapSnapshotProfileType) {
|
|
1326
1342
|
readonly recordAllocationStacksSettingInternal: Common.Settings.Setting<boolean>;
|
|
1327
1343
|
customContentInternal: UI.UIUtils.CheckboxLabel|null;
|
|
1328
1344
|
recording: boolean;
|
|
@@ -1380,7 +1396,9 @@ export class TrackingHeapSnapshotProfileType extends HeapSnapshotProfileType {
|
|
|
1380
1396
|
if (profileSamples.totalTime < timestamp - profileSamples.timestamps[0]) {
|
|
1381
1397
|
profileSamples.totalTime *= 2;
|
|
1382
1398
|
}
|
|
1383
|
-
|
|
1399
|
+
if (this.profileSamples) {
|
|
1400
|
+
this.dispatchEventToListeners(TrackingHeapSnapshotProfileTypeEvents.HeapStatsUpdate, this.profileSamples);
|
|
1401
|
+
}
|
|
1384
1402
|
const profile = this.profileBeingRecorded();
|
|
1385
1403
|
if (profile) {
|
|
1386
1404
|
profile.updateStatus(null, true);
|
|
@@ -1445,7 +1463,7 @@ export class TrackingHeapSnapshotProfileType extends HeapSnapshotProfileType {
|
|
|
1445
1463
|
this.recording = true;
|
|
1446
1464
|
this.addProfile((this.profileBeingRecorded() as ProfileHeader));
|
|
1447
1465
|
(this.profileBeingRecorded() as HeapProfileHeader).updateStatus(i18nString(UIStrings.recording));
|
|
1448
|
-
this.dispatchEventToListeners(
|
|
1466
|
+
this.dispatchEventToListeners(TrackingHeapSnapshotProfileTypeEvents.TrackingStarted);
|
|
1449
1467
|
return heapProfilerModel;
|
|
1450
1468
|
}
|
|
1451
1469
|
|
|
@@ -1455,7 +1473,7 @@ export class TrackingHeapSnapshotProfileType extends HeapSnapshotProfileType {
|
|
|
1455
1473
|
const stopPromise =
|
|
1456
1474
|
(profile.heapProfilerModel() as SDK.HeapProfilerModel.HeapProfilerModel).stopTrackingHeapObjects(true);
|
|
1457
1475
|
this.recording = false;
|
|
1458
|
-
this.dispatchEventToListeners(
|
|
1476
|
+
this.dispatchEventToListeners(TrackingHeapSnapshotProfileTypeEvents.TrackingStopped);
|
|
1459
1477
|
await stopPromise;
|
|
1460
1478
|
profile = (this.profileBeingRecorded() as HeapProfileHeader);
|
|
1461
1479
|
if (!profile) {
|
|
@@ -1488,7 +1506,7 @@ export class TrackingHeapSnapshotProfileType extends HeapSnapshotProfileType {
|
|
|
1488
1506
|
return i18nString(UIStrings.AllocationTimelinesShowInstrumented);
|
|
1489
1507
|
}
|
|
1490
1508
|
|
|
1491
|
-
resetProfiles(event: Common.EventTarget.EventTargetEvent): void {
|
|
1509
|
+
resetProfiles(event: Common.EventTarget.EventTargetEvent<SDK.HeapProfilerModel.HeapProfilerModel>): void {
|
|
1492
1510
|
const wasRecording = this.recording;
|
|
1493
1511
|
// Clear current profile to avoid stopping backend.
|
|
1494
1512
|
this.setProfileBeingRecorded(null);
|
|
@@ -1506,6 +1524,7 @@ export class TrackingHeapSnapshotProfileType extends HeapSnapshotProfileType {
|
|
|
1506
1524
|
|
|
1507
1525
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1508
1526
|
static readonly TypeId = 'HEAP-RECORD';
|
|
1527
|
+
// TODO(crbug.com/1228674): Remove event strings once they are no longer used in web tests.
|
|
1509
1528
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1510
1529
|
static readonly HeapStatsUpdate = 'HeapStatsUpdate';
|
|
1511
1530
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
@@ -1514,6 +1533,18 @@ export class TrackingHeapSnapshotProfileType extends HeapSnapshotProfileType {
|
|
|
1514
1533
|
static readonly TrackingStopped = 'TrackingStopped';
|
|
1515
1534
|
}
|
|
1516
1535
|
|
|
1536
|
+
export const enum TrackingHeapSnapshotProfileTypeEvents {
|
|
1537
|
+
HeapStatsUpdate = 'HeapStatsUpdate',
|
|
1538
|
+
TrackingStarted = 'TrackingStarted',
|
|
1539
|
+
TrackingStopped = 'TrackingStopped',
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
export type TrackingHeapSnapshotProfileTypeEventTypes = {
|
|
1543
|
+
[TrackingHeapSnapshotProfileTypeEvents.HeapStatsUpdate]: Samples,
|
|
1544
|
+
[TrackingHeapSnapshotProfileTypeEvents.TrackingStarted]: void,
|
|
1545
|
+
[TrackingHeapSnapshotProfileTypeEvents.TrackingStopped]: void,
|
|
1546
|
+
};
|
|
1547
|
+
|
|
1517
1548
|
export class HeapProfileHeader extends ProfileHeader {
|
|
1518
1549
|
readonly heapProfilerModelInternal: SDK.HeapProfilerModel.HeapProfilerModel|null;
|
|
1519
1550
|
maxJSObjectId: number;
|
|
@@ -1736,6 +1767,10 @@ export class HeapProfileHeader extends ProfileHeader {
|
|
|
1736
1767
|
}
|
|
1737
1768
|
return success ? null : reader.error();
|
|
1738
1769
|
}
|
|
1770
|
+
|
|
1771
|
+
override profileType(): HeapSnapshotProfileType {
|
|
1772
|
+
return super.profileType() as HeapSnapshotProfileType;
|
|
1773
|
+
}
|
|
1739
1774
|
}
|
|
1740
1775
|
|
|
1741
1776
|
export class HeapSnapshotStatisticsView extends UI.Widget.VBox {
|
|
@@ -183,8 +183,8 @@ export class LiveHeapProfileView extends UI.Widget.VBox {
|
|
|
183
183
|
this.setting.removeChangeListener(this.settingChanged, this);
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
settingChanged(value: Common.EventTarget.EventTargetEvent): void {
|
|
187
|
-
this.toggleRecordButton.setToggled(
|
|
186
|
+
settingChanged(value: Common.EventTarget.EventTargetEvent<boolean>): void {
|
|
187
|
+
this.toggleRecordButton.setToggled(value.data);
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
async poll(): Promise<void> {
|
|
@@ -104,7 +104,7 @@ export type EventTypes = {
|
|
|
104
104
|
[Events.ProfileTitleChanged]: ProfileHeader,
|
|
105
105
|
};
|
|
106
106
|
|
|
107
|
-
export
|
|
107
|
+
export class ProfileType extends Common.ObjectWrapper.ObjectWrapper<ProfileEventTypes> {
|
|
108
108
|
readonly idInternal: string;
|
|
109
109
|
readonly nameInternal: string;
|
|
110
110
|
profiles: ProfileHeader[];
|
|
@@ -212,7 +212,9 @@ export abstract class ProfileType extends Common.ObjectWrapper.ObjectWrapper {
|
|
|
212
212
|
return profile.loadFromFile(file);
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
|
|
215
|
+
createProfileLoadedFromFile(_title: string): ProfileHeader {
|
|
216
|
+
throw new Error('Not implemented');
|
|
217
|
+
}
|
|
216
218
|
|
|
217
219
|
addProfile(profile: ProfileHeader): void {
|
|
218
220
|
this.profiles.push(profile);
|
|
@@ -272,6 +274,13 @@ export enum ProfileEvents {
|
|
|
272
274
|
ViewUpdated = 'view-updated',
|
|
273
275
|
}
|
|
274
276
|
|
|
277
|
+
export type ProfileEventTypes = {
|
|
278
|
+
[ProfileEvents.AddProfileHeader]: ProfileHeader,
|
|
279
|
+
[ProfileEvents.ProfileComplete]: ProfileHeader,
|
|
280
|
+
[ProfileEvents.RemoveProfileHeader]: ProfileHeader,
|
|
281
|
+
[ProfileEvents.ViewUpdated]: void,
|
|
282
|
+
};
|
|
283
|
+
|
|
275
284
|
export interface DataDisplayDelegate {
|
|
276
285
|
showProfile(profile: ProfileHeader|null): UI.Widget.Widget|null;
|
|
277
286
|
showObject(snapshotObjectId: string, perspectiveName: string): void;
|
|
@@ -480,7 +480,7 @@ export class ProfileView extends UI.View.SimpleView implements UI.SearchableView
|
|
|
480
480
|
this.excludeButton.setEnabled(selected);
|
|
481
481
|
}
|
|
482
482
|
|
|
483
|
-
focusClicked(
|
|
483
|
+
focusClicked(): void {
|
|
484
484
|
if (!this.dataGrid.selectedNode) {
|
|
485
485
|
return;
|
|
486
486
|
}
|
|
@@ -495,7 +495,7 @@ export class ProfileView extends UI.View.SimpleView implements UI.SearchableView
|
|
|
495
495
|
Host.userMetrics.actionTaken(Host.UserMetrics.Action.CpuProfileNodeFocused);
|
|
496
496
|
}
|
|
497
497
|
|
|
498
|
-
excludeClicked(
|
|
498
|
+
excludeClicked(): void {
|
|
499
499
|
const selectedNode = this.dataGrid.selectedNode;
|
|
500
500
|
|
|
501
501
|
if (!selectedNode) {
|
|
@@ -515,7 +515,7 @@ export class ProfileView extends UI.View.SimpleView implements UI.SearchableView
|
|
|
515
515
|
Host.userMetrics.actionTaken(Host.UserMetrics.Action.CpuProfileNodeExcluded);
|
|
516
516
|
}
|
|
517
517
|
|
|
518
|
-
resetClicked(
|
|
518
|
+
resetClicked(): void {
|
|
519
519
|
this.viewSelectComboBox.selectElement().focus();
|
|
520
520
|
this.resetButton.setEnabled(false);
|
|
521
521
|
if (this.profileDataGridTree) {
|
|
@@ -327,16 +327,17 @@ export class ProfilesPanel extends UI.Panel.PanelWithSidebar implements DataDisp
|
|
|
327
327
|
profileTypeSection.childrenListElement.addEventListener(
|
|
328
328
|
'contextmenu', this.handleContextMenuEvent.bind(this), false);
|
|
329
329
|
|
|
330
|
-
function onAddProfileHeader(this: ProfilesPanel, event: Common.EventTarget.EventTargetEvent): void {
|
|
331
|
-
this.addProfileHeader(
|
|
330
|
+
function onAddProfileHeader(this: ProfilesPanel, event: Common.EventTarget.EventTargetEvent<ProfileHeader>): void {
|
|
331
|
+
this.addProfileHeader(event.data);
|
|
332
332
|
}
|
|
333
333
|
|
|
334
|
-
function onRemoveProfileHeader(
|
|
335
|
-
|
|
334
|
+
function onRemoveProfileHeader(
|
|
335
|
+
this: ProfilesPanel, event: Common.EventTarget.EventTargetEvent<ProfileHeader>): void {
|
|
336
|
+
this.removeProfileHeader(event.data);
|
|
336
337
|
}
|
|
337
338
|
|
|
338
|
-
function profileComplete(this: ProfilesPanel, event: Common.EventTarget.EventTargetEvent): void {
|
|
339
|
-
this.showProfile(
|
|
339
|
+
function profileComplete(this: ProfilesPanel, event: Common.EventTarget.EventTargetEvent<ProfileHeader>): void {
|
|
340
|
+
this.showProfile(event.data);
|
|
340
341
|
}
|
|
341
342
|
|
|
342
343
|
profileType.addEventListener(ProfileTypeEvents.ViewUpdated, this.updateProfileTypeSpecificUI, this);
|
|
@@ -6,7 +6,7 @@ import * as SDK from '../../core/sdk/sdk.js';
|
|
|
6
6
|
import type * as ProtocolProxyApi from '../../generated/protocol-proxy-api.js';
|
|
7
7
|
import * as Protocol from '../../generated/protocol.js';
|
|
8
8
|
|
|
9
|
-
export class InputModel extends SDK.SDKModel.SDKModel {
|
|
9
|
+
export class InputModel extends SDK.SDKModel.SDKModel<void> {
|
|
10
10
|
private readonly inputAgent: ProtocolProxyApi.InputApi;
|
|
11
11
|
private activeTouchOffsetTop: number|null;
|
|
12
12
|
private activeTouchParams: Protocol.Input.EmulateTouchFromMouseEventRequest|null;
|
|
@@ -277,7 +277,7 @@ export class ScreencastView extends UI.Widget.VBox implements SDK.OverlayModel.H
|
|
|
277
277
|
this.updateGlasspane();
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
-
private onSuspendStateChange(
|
|
280
|
+
private onSuspendStateChange(): void {
|
|
281
281
|
if (SDK.TargetManager.TargetManager.instance().allTargetsSuspended()) {
|
|
282
282
|
this.stopCasting();
|
|
283
283
|
} else {
|
|
@@ -41,7 +41,7 @@ const str_ = i18n.i18n.registerUIStrings('panels/security/SecurityModel.ts', UIS
|
|
|
41
41
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
42
42
|
const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
|
|
43
43
|
|
|
44
|
-
export class SecurityModel extends SDK.SDKModel.SDKModel {
|
|
44
|
+
export class SecurityModel extends SDK.SDKModel.SDKModel<EventTypes> {
|
|
45
45
|
private readonly dispatcher: SecurityDispatcher;
|
|
46
46
|
private readonly securityAgent: ProtocolProxyApi.SecurityApi;
|
|
47
47
|
constructor(target: SDK.Target.Target) {
|
|
@@ -102,6 +102,10 @@ export enum Events {
|
|
|
102
102
|
VisibleSecurityStateChanged = 'VisibleSecurityStateChanged',
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
+
export type EventTypes = {
|
|
106
|
+
[Events.VisibleSecurityStateChanged]: PageVisibleSecurityState,
|
|
107
|
+
};
|
|
108
|
+
|
|
105
109
|
export const SummaryMessages: {[x: string]: () => string} = {
|
|
106
110
|
[Protocol.Security.SecurityState.Unknown]: i18nLazyString(UIStrings.theSecurityOfThisPageIsUnknown),
|
|
107
111
|
[Protocol.Security.SecurityState.Insecure]: i18nLazyString(UIStrings.thisPageIsNotSecure),
|
|
@@ -540,8 +540,7 @@ export class SecurityPanel extends UI.Panel.PanelWithSidebar implements
|
|
|
540
540
|
this.mainView.updateVisibleSecurityState(visibleSecurityState);
|
|
541
541
|
}
|
|
542
542
|
|
|
543
|
-
private onVisibleSecurityStateChanged(
|
|
544
|
-
const data = event.data as PageVisibleSecurityState;
|
|
543
|
+
private onVisibleSecurityStateChanged({data}: Common.EventTarget.EventTargetEvent<PageVisibleSecurityState>): void {
|
|
545
544
|
this.updateVisibleSecurityState(data);
|
|
546
545
|
}
|
|
547
546
|
|
|
@@ -451,7 +451,7 @@ export class SensorsView extends UI.Widget.VBox {
|
|
|
451
451
|
title: i18nString(UIStrings.presets),
|
|
452
452
|
value: [
|
|
453
453
|
{title: i18nString(UIStrings.portrait), orientation: '[0, 90, 0]'},
|
|
454
|
-
{title: i18nString(UIStrings.portraitUpsideDown), orientation: '[180, -90, 0]'},
|
|
454
|
+
{title: i18nString(UIStrings.portraitUpsideDown), orientation: '[-180, -90, 0]'},
|
|
455
455
|
{title: i18nString(UIStrings.landscapeLeft), orientation: '[90, 0, -90]'},
|
|
456
456
|
{title: i18nString(UIStrings.landscapeRight), orientation: '[90, -180, -90]'},
|
|
457
457
|
{title: i18nString(UIStrings.displayUp), orientation: '[0, 0, 0]'},
|
|
@@ -518,6 +518,7 @@ export class SensorsView extends UI.Widget.VBox {
|
|
|
518
518
|
this.enableOrientationFields(true);
|
|
519
519
|
} else if (value === NonPresetOptions.Custom) {
|
|
520
520
|
this.deviceOrientationOverrideEnabled = true;
|
|
521
|
+
this.resetDeviceOrientation();
|
|
521
522
|
this.alphaElement.focus();
|
|
522
523
|
} else {
|
|
523
524
|
const parsedValue = JSON.parse(value);
|
|
@@ -777,7 +778,7 @@ export class PresetOrientations {
|
|
|
777
778
|
title: i18nString(UIStrings.presets),
|
|
778
779
|
value: [
|
|
779
780
|
{title: i18nString(UIStrings.portrait), orientation: '[0, 90, 0]'},
|
|
780
|
-
{title: i18nString(UIStrings.portraitUpsideDown), orientation: '[180, -90, 0]'},
|
|
781
|
+
{title: i18nString(UIStrings.portraitUpsideDown), orientation: '[-180, -90, 0]'},
|
|
781
782
|
{title: i18nString(UIStrings.landscapeLeft), orientation: '[90, 0, -90]'},
|
|
782
783
|
{title: i18nString(UIStrings.landscapeRight), orientation: '[90, -180, -90]'},
|
|
783
784
|
{title: i18nString(UIStrings.displayUp), orientation: '[0, 0, 0]'},
|
|
@@ -222,16 +222,19 @@ export class UserAgentClientHintsForm extends HTMLElement {
|
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
private handleTreeExpand = (event: KeyboardEvent): void => {
|
|
225
|
-
if (event.code === 'Space' || event.code === 'Enter') {
|
|
225
|
+
if (event.code === 'Space' || event.code === 'Enter' || event.code === 'ArrowLeft' || event.code === 'ArrowRight') {
|
|
226
226
|
event.stopPropagation();
|
|
227
|
-
this.handleTreeClick();
|
|
227
|
+
this.handleTreeClick(event.code);
|
|
228
228
|
}
|
|
229
229
|
};
|
|
230
230
|
|
|
231
|
-
private handleTreeClick = (): void => {
|
|
231
|
+
private handleTreeClick = (key: string): void => {
|
|
232
232
|
if (this.isFormDisabled) {
|
|
233
233
|
return;
|
|
234
234
|
}
|
|
235
|
+
if ((key === 'ArrowLeft' && !this.isFormOpened) || (key === 'ArrowRight' && this.isFormOpened)) {
|
|
236
|
+
return;
|
|
237
|
+
}
|
|
235
238
|
this.isFormOpened = !this.isFormOpened;
|
|
236
239
|
this.render();
|
|
237
240
|
};
|
|
@@ -261,7 +261,7 @@ export class CSSPlugin extends Plugin {
|
|
|
261
261
|
this.swatchPopoverHelper.show(this.spectrum, swatch, this.swatchPopoverHidden.bind(this));
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
private spectrumResized(
|
|
264
|
+
private spectrumResized(): void {
|
|
265
265
|
this.swatchPopoverHelper.reposition();
|
|
266
266
|
}
|
|
267
267
|
|
|
@@ -175,7 +175,8 @@ export class DebuggerPlugin extends Plugin {
|
|
|
175
175
|
private readonly boundMouseDown: (arg0: Event) => void;
|
|
176
176
|
private readonly boundBlur: (arg0: Event) => void;
|
|
177
177
|
private readonly boundWheel: (arg0: Event) => void;
|
|
178
|
-
private readonly boundGutterClick:
|
|
178
|
+
private readonly boundGutterClick:
|
|
179
|
+
(arg0: Common.EventTarget.EventTargetEvent<SourceFrame.SourcesTextEditor.GutterClickEventData>) => void;
|
|
179
180
|
private readonly breakpointDecorations: Set<BreakpointDecoration>;
|
|
180
181
|
private readonly decorationByBreakpoint: Map<Bindings.BreakpointManager.Breakpoint, BreakpointDecoration>;
|
|
181
182
|
private readonly possibleBreakpointsRequested: Set<number>;
|
|
@@ -270,9 +271,10 @@ export class DebuggerPlugin extends Plugin {
|
|
|
270
271
|
this.textEditor.element.addEventListener('focusout', this.boundBlur, false);
|
|
271
272
|
this.boundWheel = (this.onWheel.bind(this) as (arg0: Event) => void);
|
|
272
273
|
this.textEditor.element.addEventListener('wheel', this.boundWheel, true);
|
|
273
|
-
this.boundGutterClick =
|
|
274
|
-
|
|
275
|
-
|
|
274
|
+
this.boundGutterClick =
|
|
275
|
+
(e: Common.EventTarget.EventTargetEvent<SourceFrame.SourcesTextEditor.GutterClickEventData>): void => {
|
|
276
|
+
this.handleGutterClick(e);
|
|
277
|
+
};
|
|
276
278
|
|
|
277
279
|
this.textEditor.addEventListener(SourceFrame.SourcesTextEditor.Events.GutterClick, this.boundGutterClick, this);
|
|
278
280
|
|
|
@@ -94,7 +94,7 @@ export class InplaceFormatterEditorAction implements EditorAction {
|
|
|
94
94
|
return uiSourceCode.contentType().isStyleSheet();
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
private formatSourceInPlace(
|
|
97
|
+
private formatSourceInPlace(): void {
|
|
98
98
|
const uiSourceCode = this.sourcesView.currentUISourceCode();
|
|
99
99
|
if (!uiSourceCode || !this.isFormattable(uiSourceCode)) {
|
|
100
100
|
return;
|
|
@@ -126,7 +126,7 @@ export class ScriptFormatterEditorAction implements EditorAction {
|
|
|
126
126
|
return this.isFormattableScript(uiSourceCode);
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
private onFormatScriptButtonClicked(
|
|
129
|
+
private onFormatScriptButtonClicked(): void {
|
|
130
130
|
this.toggleFormatScriptSource();
|
|
131
131
|
}
|
|
132
132
|
|
|
@@ -684,7 +684,7 @@ export class SourcesPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
|
|
|
684
684
|
return target ? target.model(SDK.DebuggerModel.DebuggerModel) : null;
|
|
685
685
|
}
|
|
686
686
|
|
|
687
|
-
private longResume(
|
|
687
|
+
private longResume(): void {
|
|
688
688
|
const debuggerModel = this.prepareToResume();
|
|
689
689
|
if (debuggerModel) {
|
|
690
690
|
debuggerModel.skipAllPausesUntilReloadOrTimeout(500);
|
|
@@ -692,7 +692,7 @@ export class SourcesPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
|
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
694
|
|
|
695
|
-
private terminateExecution(
|
|
695
|
+
private terminateExecution(): void {
|
|
696
696
|
const debuggerModel = this.prepareToResume();
|
|
697
697
|
if (debuggerModel) {
|
|
698
698
|
debuggerModel.runtimeModel().terminateExecution();
|
|
@@ -150,8 +150,8 @@ export class TimelineFlameChartView extends UI.Widget.VBox implements PerfUI.Fla
|
|
|
150
150
|
private readonly countersView: CountersGraph;
|
|
151
151
|
private readonly detailsSplitWidget: UI.SplitWidget.SplitWidget;
|
|
152
152
|
private readonly detailsView: TimelineDetailsView;
|
|
153
|
-
private readonly onMainEntrySelected: (event
|
|
154
|
-
private readonly onNetworkEntrySelected: (event
|
|
153
|
+
private readonly onMainEntrySelected: (event: Common.EventTarget.EventTargetEvent<number>) => void;
|
|
154
|
+
private readonly onNetworkEntrySelected: (event: Common.EventTarget.EventTargetEvent<number>) => void;
|
|
155
155
|
private nextExtensionIndex: number;
|
|
156
156
|
private readonly boundRefresh: () => void;
|
|
157
157
|
private selectedTrack: TimelineModel.TimelineModel.Track|null;
|
|
@@ -232,11 +232,7 @@ export class TimelineFlameChartView extends UI.Widget.VBox implements PerfUI.Fla
|
|
|
232
232
|
this.detailsSplitWidget.setSidebarWidget(this.detailsView);
|
|
233
233
|
this.detailsSplitWidget.show(this.element);
|
|
234
234
|
|
|
235
|
-
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
236
|
-
// @ts-expect-error
|
|
237
235
|
this.onMainEntrySelected = this.onEntrySelected.bind(this, this.mainDataProvider);
|
|
238
|
-
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
239
|
-
// @ts-expect-error
|
|
240
236
|
this.onNetworkEntrySelected = this.onEntrySelected.bind(this, this.networkDataProvider);
|
|
241
237
|
this.mainFlameChart.addEventListener(PerfUI.FlameChart.Events.EntrySelected, this.onMainEntrySelected, this);
|
|
242
238
|
this.mainFlameChart.addEventListener(PerfUI.FlameChart.Events.EntryInvoked, this.onMainEntrySelected, this);
|
|
@@ -428,8 +424,9 @@ export class TimelineFlameChartView extends UI.Widget.VBox implements PerfUI.Fla
|
|
|
428
424
|
}
|
|
429
425
|
|
|
430
426
|
private onEntrySelected(
|
|
431
|
-
dataProvider: PerfUI.FlameChart.FlameChartDataProvider,
|
|
432
|
-
|
|
427
|
+
dataProvider: PerfUI.FlameChart.FlameChartDataProvider,
|
|
428
|
+
event: Common.EventTarget.EventTargetEvent<number>): void {
|
|
429
|
+
const entryIndex = event.data;
|
|
433
430
|
if (Root.Runtime.experiments.isEnabled('timelineEventInitiators') && dataProvider === this.mainDataProvider) {
|
|
434
431
|
if (this.mainDataProvider.buildFlowForInitiator(entryIndex)) {
|
|
435
432
|
this.mainFlameChart.scheduleUpdate();
|
|
@@ -3605,7 +3605,7 @@ export class EventDispatchTypeDescriptor {
|
|
|
3605
3605
|
}
|
|
3606
3606
|
}
|
|
3607
3607
|
|
|
3608
|
-
export class TimelineCategory
|
|
3608
|
+
export class TimelineCategory {
|
|
3609
3609
|
name: string;
|
|
3610
3610
|
title: string;
|
|
3611
3611
|
visible: boolean;
|
|
@@ -3614,7 +3614,6 @@ export class TimelineCategory extends Common.ObjectWrapper.ObjectWrapper {
|
|
|
3614
3614
|
private hiddenInternal?: boolean;
|
|
3615
3615
|
|
|
3616
3616
|
constructor(name: string, title: string, visible: boolean, childColor: string, color: string) {
|
|
3617
|
-
super();
|
|
3618
3617
|
this.name = name;
|
|
3619
3618
|
this.title = title;
|
|
3620
3619
|
this.visible = visible;
|
|
@@ -59,8 +59,7 @@ export class AudioContextSelector extends Common.ObjectWrapper.ObjectWrapper<Eve
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
contextCreated(
|
|
63
|
-
const context = (event.data as Protocol.WebAudio.BaseAudioContext);
|
|
62
|
+
contextCreated({data: context}: Common.EventTarget.EventTargetEvent<Protocol.WebAudio.BaseAudioContext>): void {
|
|
64
63
|
this.items.insert(this.items.length, context);
|
|
65
64
|
|
|
66
65
|
// Select if this is the first item.
|
|
@@ -69,8 +68,7 @@ export class AudioContextSelector extends Common.ObjectWrapper.ObjectWrapper<Eve
|
|
|
69
68
|
}
|
|
70
69
|
}
|
|
71
70
|
|
|
72
|
-
contextDestroyed(
|
|
73
|
-
const contextId = (event.data as string);
|
|
71
|
+
contextDestroyed({data: contextId}: Common.EventTarget.EventTargetEvent<string>): void {
|
|
74
72
|
const contextIndex =
|
|
75
73
|
this.items.findIndex((context: Protocol.WebAudio.BaseAudioContext): boolean => context.contextId === contextId);
|
|
76
74
|
if (contextIndex > -1) {
|
|
@@ -78,8 +76,8 @@ export class AudioContextSelector extends Common.ObjectWrapper.ObjectWrapper<Eve
|
|
|
78
76
|
}
|
|
79
77
|
}
|
|
80
78
|
|
|
81
|
-
contextChanged(
|
|
82
|
-
|
|
79
|
+
contextChanged({data: changedContext}: Common.EventTarget.EventTargetEvent<Protocol.WebAudio.BaseAudioContext>):
|
|
80
|
+
void {
|
|
83
81
|
const contextIndex = this.items.findIndex(
|
|
84
82
|
(context: Protocol.WebAudio.BaseAudioContext): boolean => context.contextId === changedContext.contextId);
|
|
85
83
|
if (contextIndex > -1) {
|