chrome-devtools-frontend 1.0.923319 → 1.0.925171
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/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 +6 -7
- package/front_end/panels/application/ServiceWorkerCacheViews.ts +1 -1
- 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/networkLogView.css +5 -0
- package/front_end/panels/profiler/HeapProfileView.ts +14 -4
- package/front_end/panels/profiler/HeapSnapshotView.ts +54 -22
- 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/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/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
|
@@ -913,25 +913,22 @@ export class ExtensionServer extends Common.ObjectWrapper.ObjectWrapper<EventTyp
|
|
|
913
913
|
this.subscriptionStopHandlers.set(eventTopic, onUnsubscribeLast);
|
|
914
914
|
}
|
|
915
915
|
|
|
916
|
-
private registerAutosubscriptionHandler(
|
|
917
|
-
eventTopic: string, eventTarget: Common.EventTarget.EventTarget
|
|
918
|
-
handler:
|
|
916
|
+
private registerAutosubscriptionHandler<Events, T extends keyof Events>(
|
|
917
|
+
eventTopic: string, eventTarget: Common.EventTarget.EventTarget<Events>, frontendEventType: T,
|
|
918
|
+
handler: Common.EventTarget.EventListener<Events, T>): void {
|
|
919
919
|
this.registerSubscriptionHandler(
|
|
920
920
|
eventTopic, () => eventTarget.addEventListener(frontendEventType, handler, this),
|
|
921
|
-
eventTarget.removeEventListener
|
|
921
|
+
() => eventTarget.removeEventListener(frontendEventType, handler, this));
|
|
922
922
|
}
|
|
923
923
|
|
|
924
|
-
private registerAutosubscriptionTargetManagerHandler(
|
|
925
|
-
eventTopic: string, modelClass: new(arg1: SDK.Target.Target) => SDK.SDKModel.SDKModel
|
|
926
|
-
|
|
924
|
+
private registerAutosubscriptionTargetManagerHandler<Events, T extends keyof Events>(
|
|
925
|
+
eventTopic: string, modelClass: new(arg1: SDK.Target.Target) => SDK.SDKModel.SDKModel<Events>,
|
|
926
|
+
frontendEventType: T, handler: Common.EventTarget.EventListener<Events, T>): void {
|
|
927
927
|
this.registerSubscriptionHandler(
|
|
928
928
|
eventTopic,
|
|
929
|
-
|
|
930
|
-
SDK.TargetManager.TargetManager.instance().
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
SDK.TargetManager.TargetManager.instance().removeModelListener.bind(
|
|
934
|
-
SDK.TargetManager.TargetManager.instance(), modelClass, frontendEventType, handler, this));
|
|
929
|
+
() => SDK.TargetManager.TargetManager.instance().addModelListener(modelClass, frontendEventType, handler, this),
|
|
930
|
+
() => SDK.TargetManager.TargetManager.instance().removeModelListener(
|
|
931
|
+
modelClass, frontendEventType, handler, this));
|
|
935
932
|
}
|
|
936
933
|
|
|
937
934
|
private registerResourceContentCommittedHandler(
|
|
@@ -194,7 +194,7 @@ export class ProjectStore {
|
|
|
194
194
|
|
|
195
195
|
let workspaceInstance: WorkspaceImpl|undefined;
|
|
196
196
|
|
|
197
|
-
export class WorkspaceImpl extends Common.ObjectWrapper.ObjectWrapper {
|
|
197
|
+
export class WorkspaceImpl extends Common.ObjectWrapper.ObjectWrapper<EventTypes> {
|
|
198
198
|
private projectsInternal: Map<string, Project>;
|
|
199
199
|
private hasResourceContentTrackingExtensionsInternal: boolean;
|
|
200
200
|
|
|
@@ -33,16 +33,14 @@ export class WorkspaceDiffImpl extends Common.ObjectWrapper.ObjectWrapper<EventT
|
|
|
33
33
|
return this.uiSourceCodeDiff(uiSourceCode).requestDiff();
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
subscribeToDiffChange(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
this.uiSourceCodeDiff(uiSourceCode).addEventListener(Events.DiffChanged, callback, thisObj);
|
|
36
|
+
subscribeToDiffChange(uiSourceCode: Workspace.UISourceCode.UISourceCode, callback: () => void, thisObj?: Object):
|
|
37
|
+
void {
|
|
38
|
+
this.uiSourceCodeDiff(uiSourceCode).addEventListener(UISourceCodeDiffEvents.DiffChanged, callback, thisObj);
|
|
40
39
|
}
|
|
41
40
|
|
|
42
|
-
unsubscribeFromDiffChange(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
this.uiSourceCodeDiff(uiSourceCode).removeEventListener(Events.DiffChanged, callback, thisObj);
|
|
41
|
+
unsubscribeFromDiffChange(uiSourceCode: Workspace.UISourceCode.UISourceCode, callback: () => void, thisObj?: Object):
|
|
42
|
+
void {
|
|
43
|
+
this.uiSourceCodeDiff(uiSourceCode).removeEventListener(UISourceCodeDiffEvents.DiffChanged, callback, thisObj);
|
|
46
44
|
}
|
|
47
45
|
|
|
48
46
|
modifiedUISourceCodes(): Workspace.UISourceCode.UISourceCode[] {
|
|
@@ -166,7 +164,20 @@ export class WorkspaceDiffImpl extends Common.ObjectWrapper.ObjectWrapper<EventT
|
|
|
166
164
|
}
|
|
167
165
|
}
|
|
168
166
|
|
|
169
|
-
export
|
|
167
|
+
export const enum Events {
|
|
168
|
+
ModifiedStatusChanged = 'ModifiedStatusChanged',
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export interface ModifiedStatusChangedEvent {
|
|
172
|
+
uiSourceCode: Workspace.UISourceCode.UISourceCode;
|
|
173
|
+
isModified: boolean;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export type EventTypes = {
|
|
177
|
+
[Events.ModifiedStatusChanged]: ModifiedStatusChangedEvent,
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
export class UISourceCodeDiff extends Common.ObjectWrapper.ObjectWrapper<UISourceCodeDiffEventTypes> {
|
|
170
181
|
private uiSourceCode: Workspace.UISourceCode.UISourceCode;
|
|
171
182
|
private requestDiffPromise: Promise<Diff.Diff.DiffArray|null>|null;
|
|
172
183
|
private pendingChanges: number|null;
|
|
@@ -196,7 +207,7 @@ export class UISourceCodeDiff extends Common.ObjectWrapper.ObjectWrapper {
|
|
|
196
207
|
if (this.dispose) {
|
|
197
208
|
return;
|
|
198
209
|
}
|
|
199
|
-
this.dispatchEventToListeners(
|
|
210
|
+
this.dispatchEventToListeners(UISourceCodeDiffEvents.DiffChanged);
|
|
200
211
|
this.pendingChanges = null;
|
|
201
212
|
}
|
|
202
213
|
}
|
|
@@ -259,19 +270,12 @@ export class UISourceCodeDiff extends Common.ObjectWrapper.ObjectWrapper {
|
|
|
259
270
|
|
|
260
271
|
// TODO(crbug.com/1167717): Make this a const enum again
|
|
261
272
|
// eslint-disable-next-line rulesdir/const_enum
|
|
262
|
-
export enum
|
|
273
|
+
export enum UISourceCodeDiffEvents {
|
|
263
274
|
DiffChanged = 'DiffChanged',
|
|
264
|
-
ModifiedStatusChanged = 'ModifiedStatusChanged',
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
export interface ModifiedStatusChangedEvent {
|
|
268
|
-
uiSourceCode: Workspace.UISourceCode.UISourceCode;
|
|
269
|
-
isModified: boolean;
|
|
270
275
|
}
|
|
271
276
|
|
|
272
|
-
export type
|
|
273
|
-
[
|
|
274
|
-
[Events.ModifiedStatusChanged]: ModifiedStatusChangedEvent,
|
|
277
|
+
export type UISourceCodeDiffEventTypes = {
|
|
278
|
+
[UISourceCodeDiffEvents.DiffChanged]: void,
|
|
275
279
|
};
|
|
276
280
|
|
|
277
281
|
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
@@ -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 AnimationModel extends SDK.SDKModel.SDKModel {
|
|
9
|
+
export class AnimationModel extends SDK.SDKModel.SDKModel<EventTypes> {
|
|
10
10
|
readonly runtimeModel: SDK.RuntimeModel.RuntimeModel;
|
|
11
11
|
readonly agent: ProtocolProxyApi.AnimationApi;
|
|
12
12
|
private animationsById: Map<string, AnimationImpl>;
|
|
@@ -167,6 +167,11 @@ export enum Events {
|
|
|
167
167
|
ModelReset = 'ModelReset',
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
+
export type EventTypes = {
|
|
171
|
+
[Events.AnimationGroupStarted]: AnimationGroup,
|
|
172
|
+
[Events.ModelReset]: void,
|
|
173
|
+
};
|
|
174
|
+
|
|
170
175
|
export class AnimationImpl {
|
|
171
176
|
private readonly animationModel: AnimationModel;
|
|
172
177
|
private readonly payloadInternal: Protocol.Animation.Animation;
|
|
@@ -491,8 +491,8 @@ export class AnimationTimeline extends UI.Widget.VBox implements SDK.TargetManag
|
|
|
491
491
|
this.renderGrid();
|
|
492
492
|
}
|
|
493
493
|
|
|
494
|
-
private animationGroupStarted(
|
|
495
|
-
this.addAnimationGroup(
|
|
494
|
+
private animationGroupStarted({data}: Common.EventTarget.EventTargetEvent<AnimationGroup>): void {
|
|
495
|
+
this.addAnimationGroup(data);
|
|
496
496
|
}
|
|
497
497
|
|
|
498
498
|
private addAnimationGroup(group: AnimationGroup): void {
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import * as Common from '../../core/common/common.js';
|
|
6
|
+
import * as Host from '../../core/host/host.js';
|
|
6
7
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
7
8
|
|
|
8
9
|
import appManifestViewStyles from './appManifestView.css.js';
|
|
@@ -53,20 +54,37 @@ const UIStrings = {
|
|
|
53
54
|
*/
|
|
54
55
|
shortName: 'Short name',
|
|
55
56
|
/**
|
|
56
|
-
*@description Label in the App Manifest View for the App Id
|
|
57
|
+
*@description Label in the App Manifest View for the Computed App Id
|
|
57
58
|
*/
|
|
58
|
-
|
|
59
|
+
computedAppId: 'Computed App Id',
|
|
59
60
|
/**
|
|
60
61
|
*@description Popup-text explaining what the App Id is used for.
|
|
61
62
|
*/
|
|
62
63
|
appIdExplainer:
|
|
63
64
|
'This is used by the browser to know whether the manifest should be updating an existing application, or whether it refers to a new web app that can be installed.',
|
|
64
65
|
/**
|
|
66
|
+
*@description Text which is a hyperlink to more documentation
|
|
67
|
+
*/
|
|
68
|
+
learnMore: 'Learn more',
|
|
69
|
+
/**
|
|
65
70
|
*@description Explanation why it is advisable to specify an 'id' field in the manifest.
|
|
66
|
-
*@example {
|
|
71
|
+
*@example {Note:} PH1
|
|
72
|
+
*@example {id} PH2
|
|
73
|
+
*@example {start_url} PH3
|
|
74
|
+
*@example {id} PH4
|
|
75
|
+
*@example {/index.html} PH5
|
|
76
|
+
*@example {(button for copying suggested value into clipboard)} PH6
|
|
67
77
|
*/
|
|
68
78
|
appIdNote:
|
|
69
|
-
'
|
|
79
|
+
'{PH1} {PH2} is not specified in the manifest, {PH3} is used instead. To specify an App Id that matches the current identity, set the {PH4} field to {PH5} {PH6}.',
|
|
80
|
+
/**
|
|
81
|
+
*@description Label for reminding the user of something important. Is shown in bold and followed by the actual note to show the user.
|
|
82
|
+
*/
|
|
83
|
+
note: 'Note:',
|
|
84
|
+
/**
|
|
85
|
+
*@description Tooltip text that appears when hovering over a button which copies the previous text to the clipboard.
|
|
86
|
+
*/
|
|
87
|
+
copyToClipboard: 'Copy to clipboard',
|
|
70
88
|
/**
|
|
71
89
|
*@description Text for the description of something
|
|
72
90
|
*/
|
|
@@ -507,7 +525,9 @@ export class AppManifestView extends UI.Widget.VBox implements SDK.TargetManager
|
|
|
507
525
|
installabilityErrors: Protocol.Page.InstallabilityError[], manifestIcons: {
|
|
508
526
|
primaryIcon: string|null,
|
|
509
527
|
},
|
|
510
|
-
|
|
528
|
+
appIdResponse: Protocol.Page.GetAppIdResponse): Promise<void> {
|
|
529
|
+
const appId = appIdResponse?.appId || null;
|
|
530
|
+
const recommendedId = appIdResponse?.recommendedId || null;
|
|
511
531
|
if (!data && !errors.length) {
|
|
512
532
|
this.emptyView.showWidget();
|
|
513
533
|
this.reportView.hideWidget();
|
|
@@ -547,29 +567,47 @@ export class AppManifestView extends UI.Widget.VBox implements SDK.TargetManager
|
|
|
547
567
|
}
|
|
548
568
|
|
|
549
569
|
const startURL = stringProperty('start_url');
|
|
550
|
-
if (appId &&
|
|
551
|
-
const appIdField = this.identitySection.appendField(i18nString(UIStrings.
|
|
570
|
+
if (appId && recommendedId) {
|
|
571
|
+
const appIdField = this.identitySection.appendField(i18nString(UIStrings.computedAppId));
|
|
552
572
|
UI.ARIAUtils.setAccessibleName(appIdField, 'App Id');
|
|
553
573
|
appIdField.textContent = appId;
|
|
554
574
|
|
|
555
|
-
if (!stringProperty('id')) {
|
|
556
|
-
const exclamationIcon = new IconButton.Icon.Icon();
|
|
557
|
-
exclamationIcon.data = {
|
|
558
|
-
iconName: 'exclamation_mark_circle_icon',
|
|
559
|
-
color: 'var(--color-text-secondary)',
|
|
560
|
-
width: '16px',
|
|
561
|
-
height: '16px',
|
|
562
|
-
};
|
|
563
|
-
exclamationIcon.classList.add('inline-icon');
|
|
564
|
-
exclamationIcon.title = i18nString(UIStrings.appIdNote, {PH1: startURL});
|
|
565
|
-
appIdField.appendChild(exclamationIcon);
|
|
566
|
-
}
|
|
567
|
-
|
|
568
575
|
const helpIcon = new IconButton.Icon.Icon();
|
|
569
576
|
helpIcon.data = {iconName: 'help_outline', color: 'var(--color-text-secondary)', width: '16px', height: '16px'};
|
|
570
577
|
helpIcon.classList.add('inline-icon');
|
|
571
578
|
helpIcon.title = i18nString(UIStrings.appIdExplainer);
|
|
572
579
|
appIdField.appendChild(helpIcon);
|
|
580
|
+
|
|
581
|
+
appIdField.appendChild(UI.XLink.XLink.create(
|
|
582
|
+
'https://developer.chrome.com/blog/pwa-manifest-id/', i18nString(UIStrings.learnMore), 'learn-more'));
|
|
583
|
+
|
|
584
|
+
if (!stringProperty('id')) {
|
|
585
|
+
const suggestedIdNote = appIdField.createChild('div', 'multiline-value');
|
|
586
|
+
const noteSpan = document.createElement('b');
|
|
587
|
+
noteSpan.textContent = i18nString(UIStrings.note);
|
|
588
|
+
const idSpan = document.createElement('code');
|
|
589
|
+
idSpan.textContent = 'id';
|
|
590
|
+
const idSpan2 = document.createElement('code');
|
|
591
|
+
idSpan2.textContent = 'id';
|
|
592
|
+
const startUrlSpan = document.createElement('code');
|
|
593
|
+
startUrlSpan.textContent = 'start_url';
|
|
594
|
+
const suggestedIdSpan = document.createElement('code');
|
|
595
|
+
suggestedIdSpan.textContent = recommendedId;
|
|
596
|
+
|
|
597
|
+
const copyButton = new IconButton.IconButton.IconButton();
|
|
598
|
+
copyButton.title = i18nString(UIStrings.copyToClipboard);
|
|
599
|
+
copyButton.data = {
|
|
600
|
+
groups: [{iconName: 'copy_icon', iconHeight: '12px', iconWidth: '12px', text: ''}],
|
|
601
|
+
clickHandler: (): void => {
|
|
602
|
+
Host.InspectorFrontendHost.InspectorFrontendHostInstance.copyText(recommendedId);
|
|
603
|
+
},
|
|
604
|
+
compact: true,
|
|
605
|
+
};
|
|
606
|
+
|
|
607
|
+
suggestedIdNote.appendChild(i18n.i18n.getFormatLocalizedString(
|
|
608
|
+
str_, UIStrings.appIdNote,
|
|
609
|
+
{PH1: noteSpan, PH2: idSpan, PH3: startUrlSpan, PH4: idSpan2, PH5: suggestedIdSpan, PH6: copyButton}));
|
|
610
|
+
}
|
|
573
611
|
}
|
|
574
612
|
|
|
575
613
|
this.startURLField.removeChildren();
|
|
@@ -2,13 +2,11 @@
|
|
|
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 Common from '../../core/common/common.js';
|
|
5
|
+
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
|
-
import type * as Protocol from '../../generated/protocol.js';
|
|
9
8
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
10
9
|
|
|
11
|
-
import type {ApplicationPanelSidebar} from './ApplicationPanelSidebar.js';
|
|
12
10
|
import {ApplicationPanelTreeElement, ExpandableApplicationPanelTreeElement} from './ApplicationPanelTreeElement.js';
|
|
13
11
|
import {BackForwardCacheView} from './BackForwardCacheView.js';
|
|
14
12
|
import type {ResourcesPanel} from './ResourcesPanel.js';
|
|
@@ -34,27 +32,6 @@ const UIStrings = {
|
|
|
34
32
|
};
|
|
35
33
|
const str_ = i18n.i18n.registerUIStrings('panels/application/ApplicationPanelCacheSection.ts', UIStrings);
|
|
36
34
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
37
|
-
export class ApplicationCacheManifestTreeElement extends ApplicationPanelTreeElement {
|
|
38
|
-
private readonly manifestURL: string;
|
|
39
|
-
|
|
40
|
-
constructor(resourcesPanel: ResourcesPanel, manifestURL: string) {
|
|
41
|
-
const title = new Common.ParsedURL.ParsedURL(manifestURL).displayName;
|
|
42
|
-
super(resourcesPanel, title, false);
|
|
43
|
-
this.tooltip = manifestURL;
|
|
44
|
-
this.manifestURL = manifestURL;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
get itemURL(): string {
|
|
48
|
-
return 'appcache://' + this.manifestURL;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
onselect(selectedByUser: boolean|undefined): boolean {
|
|
52
|
-
super.onselect(selectedByUser);
|
|
53
|
-
this.resourcesPanel.showCategoryView(this.manifestURL, null);
|
|
54
|
-
return false;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
35
|
export class ServiceWorkerCacheTreeElement extends ExpandableApplicationPanelTreeElement {
|
|
59
36
|
private swCacheModel: SDK.ServiceWorkerCacheModel.ServiceWorkerCacheModel|null;
|
|
60
37
|
private swCacheTreeElements: Set<SWCacheTreeElement>;
|
|
@@ -197,41 +174,6 @@ export class SWCacheTreeElement extends ApplicationPanelTreeElement {
|
|
|
197
174
|
}
|
|
198
175
|
}
|
|
199
176
|
|
|
200
|
-
export class ApplicationCacheFrameTreeElement extends ApplicationPanelTreeElement {
|
|
201
|
-
private readonly sidebar: ApplicationPanelSidebar;
|
|
202
|
-
readonly frameId: Protocol.Page.FrameId;
|
|
203
|
-
readonly manifestURL: string;
|
|
204
|
-
|
|
205
|
-
constructor(sidebar: ApplicationPanelSidebar, frame: SDK.ResourceTreeModel.ResourceTreeFrame, manifestURL: string) {
|
|
206
|
-
super(sidebar.panel, '', false);
|
|
207
|
-
this.sidebar = sidebar;
|
|
208
|
-
this.frameId = frame.id;
|
|
209
|
-
this.manifestURL = manifestURL;
|
|
210
|
-
this.refreshTitles(frame);
|
|
211
|
-
|
|
212
|
-
const icon = UI.Icon.Icon.create('mediumicon-frame-top', 'navigator-folder-tree-item');
|
|
213
|
-
this.setLeadingIcons([icon]);
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
get itemURL(): string {
|
|
217
|
-
return 'appcache://' + this.manifestURL + '/' + encodeURI(this.titleAsText());
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
private refreshTitles(frame: SDK.ResourceTreeModel.ResourceTreeFrame): void {
|
|
221
|
-
this.title = frame.displayName();
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
frameNavigated(frame: SDK.ResourceTreeModel.ResourceTreeFrame): void {
|
|
225
|
-
this.refreshTitles(frame);
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
onselect(selectedByUser: boolean|undefined): boolean {
|
|
229
|
-
super.onselect(selectedByUser);
|
|
230
|
-
this.sidebar.showApplicationCache(this.frameId);
|
|
231
|
-
return false;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
|
|
235
177
|
export class BackForwardCacheTreeElement extends ApplicationPanelTreeElement {
|
|
236
178
|
private view?: BackForwardCacheView;
|
|
237
179
|
|
|
@@ -42,9 +42,7 @@ import * as Protocol from '../../generated/protocol.js';
|
|
|
42
42
|
import * as SourceFrame from '../../ui/legacy/components/source_frame/source_frame.js';
|
|
43
43
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
44
44
|
|
|
45
|
-
import {
|
|
46
|
-
import {ApplicationCacheModel, Events as ApplicationCacheModelEvents} from './ApplicationCacheModel.js';
|
|
47
|
-
import {ApplicationCacheFrameTreeElement, ApplicationCacheManifestTreeElement, BackForwardCacheTreeElement, ServiceWorkerCacheTreeElement} from './ApplicationPanelCacheSection.js';
|
|
45
|
+
import {BackForwardCacheTreeElement, ServiceWorkerCacheTreeElement} from './ApplicationPanelCacheSection.js';
|
|
48
46
|
import {ApplicationPanelTreeElement, ExpandableApplicationPanelTreeElement} from './ApplicationPanelTreeElement.js';
|
|
49
47
|
import {AppManifestView} from './AppManifestView.js';
|
|
50
48
|
import {BackgroundServiceModel} from './BackgroundServiceModel.js';
|
|
@@ -99,10 +97,6 @@ const UIStrings = {
|
|
|
99
97
|
/**
|
|
100
98
|
*@description Text in Application Panel Sidebar of the Application panel
|
|
101
99
|
*/
|
|
102
|
-
applicationCache: 'Application Cache',
|
|
103
|
-
/**
|
|
104
|
-
*@description Text in Application Panel Sidebar of the Application panel
|
|
105
|
-
*/
|
|
106
100
|
backgroundServices: 'Background Services',
|
|
107
101
|
/**
|
|
108
102
|
*@description Text for rendering frames
|
|
@@ -185,9 +179,6 @@ function assertNotMainTarget(targetId: Protocol.Target.TargetID|'main'): asserts
|
|
|
185
179
|
|
|
186
180
|
export class ApplicationPanelSidebar extends UI.Widget.VBox implements SDK.TargetManager.Observer {
|
|
187
181
|
panel: ResourcesPanel;
|
|
188
|
-
private readonly applicationCacheViews: Map<Protocol.Page.FrameId, ApplicationCacheItemsView>;
|
|
189
|
-
private readonly applicationCacheFrameElements: Map<Protocol.Page.FrameId, ApplicationCacheFrameTreeElement>;
|
|
190
|
-
private readonly applicationCacheManifestElements: Map<string, ApplicationCacheManifestTreeElement>;
|
|
191
182
|
private readonly sidebarTree: UI.TreeOutline.TreeOutlineInShadow;
|
|
192
183
|
private readonly applicationTreeElement: UI.TreeOutline.TreeElement;
|
|
193
184
|
serviceWorkersTreeElement: ServiceWorkersTreeElement;
|
|
@@ -198,7 +189,6 @@ export class ApplicationPanelSidebar extends UI.Widget.VBox implements SDK.Targe
|
|
|
198
189
|
cookieListTreeElement: ExpandableApplicationPanelTreeElement;
|
|
199
190
|
trustTokensTreeElement: TrustTokensTreeElement;
|
|
200
191
|
cacheStorageListTreeElement: ServiceWorkerCacheTreeElement;
|
|
201
|
-
applicationCacheListTreeElement: ExpandableApplicationPanelTreeElement;
|
|
202
192
|
private backForwardCacheListTreeElement?: BackForwardCacheTreeElement;
|
|
203
193
|
backgroundFetchTreeElement: BackgroundServiceTreeElement|undefined;
|
|
204
194
|
backgroundSyncTreeElement: BackgroundServiceTreeElement|undefined;
|
|
@@ -218,7 +208,6 @@ export class ApplicationPanelSidebar extends UI.Widget.VBox implements SDK.Targe
|
|
|
218
208
|
};
|
|
219
209
|
private target?: SDK.Target.Target;
|
|
220
210
|
private databaseModel?: DatabaseModel|null;
|
|
221
|
-
private applicationCacheModel?: ApplicationCacheModel|null;
|
|
222
211
|
private previousHoveredElement?: FrameTreeElement;
|
|
223
212
|
|
|
224
213
|
constructor(panel: ResourcesPanel) {
|
|
@@ -226,10 +215,6 @@ export class ApplicationPanelSidebar extends UI.Widget.VBox implements SDK.Targe
|
|
|
226
215
|
|
|
227
216
|
this.panel = panel;
|
|
228
217
|
|
|
229
|
-
this.applicationCacheViews = new Map();
|
|
230
|
-
this.applicationCacheFrameElements = new Map();
|
|
231
|
-
this.applicationCacheManifestElements = new Map();
|
|
232
|
-
|
|
233
218
|
this.sidebarTree = new UI.TreeOutline.TreeOutlineInShadow();
|
|
234
219
|
this.sidebarTree.element.classList.add('resources-sidebar');
|
|
235
220
|
|
|
@@ -293,13 +278,6 @@ export class ApplicationPanelSidebar extends UI.Widget.VBox implements SDK.Targe
|
|
|
293
278
|
const cacheTreeElement = this.addSidebarSection(cacheSectionTitle);
|
|
294
279
|
this.cacheStorageListTreeElement = new ServiceWorkerCacheTreeElement(panel);
|
|
295
280
|
cacheTreeElement.appendChild(this.cacheStorageListTreeElement);
|
|
296
|
-
this.applicationCacheListTreeElement =
|
|
297
|
-
new ExpandableApplicationPanelTreeElement(panel, i18nString(UIStrings.applicationCache), 'ApplicationCache');
|
|
298
|
-
this.applicationCacheListTreeElement.setLink(
|
|
299
|
-
'https://developer.chrome.com/docs/devtools/storage/applicationcache/?utm_source=devtools');
|
|
300
|
-
const applicationCacheIcon = UI.Icon.Icon.create('mediumicon-table', 'resource-tree-item');
|
|
301
|
-
this.applicationCacheListTreeElement.setLeadingIcons([applicationCacheIcon]);
|
|
302
|
-
cacheTreeElement.appendChild(this.applicationCacheListTreeElement);
|
|
303
281
|
|
|
304
282
|
if (Root.Runtime.experiments.isEnabled('bfcacheDebugging')) {
|
|
305
283
|
this.backForwardCacheListTreeElement = new BackForwardCacheTreeElement(panel);
|
|
@@ -445,10 +423,6 @@ export class ApplicationPanelSidebar extends UI.Widget.VBox implements SDK.Targe
|
|
|
445
423
|
if (cacheStorageModel) {
|
|
446
424
|
cacheStorageModel.enable();
|
|
447
425
|
}
|
|
448
|
-
const resourceTreeModel = this.target && this.target.model(SDK.ResourceTreeModel.ResourceTreeModel);
|
|
449
|
-
if (resourceTreeModel) {
|
|
450
|
-
this.populateApplicationCacheTree(resourceTreeModel);
|
|
451
|
-
}
|
|
452
426
|
const serviceWorkerCacheModel =
|
|
453
427
|
this.target && this.target.model(SDK.ServiceWorkerCacheModel.ServiceWorkerCacheModel) || null;
|
|
454
428
|
this.cacheStorageListTreeElement.initialize(serviceWorkerCacheModel);
|
|
@@ -501,13 +475,6 @@ export class ApplicationPanelSidebar extends UI.Widget.VBox implements SDK.Targe
|
|
|
501
475
|
this.databasesListTreeElement.setExpandable(false);
|
|
502
476
|
}
|
|
503
477
|
|
|
504
|
-
private resetAppCache(): void {
|
|
505
|
-
for (const frameId of this.applicationCacheFrameElements.keys()) {
|
|
506
|
-
this.applicationCacheFrameManifestRemoved({data: frameId});
|
|
507
|
-
}
|
|
508
|
-
this.applicationCacheListTreeElement.setExpandable(false);
|
|
509
|
-
}
|
|
510
|
-
|
|
511
478
|
private treeElementAdded(event: Common.EventTarget.EventTargetEvent<UI.TreeOutline.TreeElement>): void {
|
|
512
479
|
// On tree item selection its itemURL and those of its parents are persisted.
|
|
513
480
|
// On reload/navigation we check for matches starting from the root on the
|
|
@@ -553,16 +520,10 @@ export class ApplicationPanelSidebar extends UI.Widget.VBox implements SDK.Targe
|
|
|
553
520
|
if (frame.isTopFrame()) {
|
|
554
521
|
this.reset();
|
|
555
522
|
}
|
|
556
|
-
|
|
557
|
-
const applicationCacheFrameTreeElement = this.applicationCacheFrameElements.get(frame.id);
|
|
558
|
-
if (applicationCacheFrameTreeElement) {
|
|
559
|
-
applicationCacheFrameTreeElement.frameNavigated(frame);
|
|
560
|
-
}
|
|
561
523
|
this.addCookieDocument(frame);
|
|
562
524
|
}
|
|
563
525
|
|
|
564
|
-
private databaseAdded(
|
|
565
|
-
const database = (event.data as DatabaseModelDatabase);
|
|
526
|
+
private databaseAdded({data: database}: Common.EventTarget.EventTargetEvent<DatabaseModelDatabase>): void {
|
|
566
527
|
const databaseTreeElement = new DatabaseTreeElement(this, database);
|
|
567
528
|
this.databaseTreeElements.set(database, databaseTreeElement);
|
|
568
529
|
this.databasesListTreeElement.appendChild(databaseTreeElement);
|
|
@@ -673,18 +634,6 @@ export class ApplicationPanelSidebar extends UI.Widget.VBox implements SDK.Targe
|
|
|
673
634
|
this.innerShowView(view);
|
|
674
635
|
}
|
|
675
636
|
|
|
676
|
-
showApplicationCache(frameId: Protocol.Page.FrameId): void {
|
|
677
|
-
if (!this.applicationCacheModel) {
|
|
678
|
-
return;
|
|
679
|
-
}
|
|
680
|
-
let view = this.applicationCacheViews.get(frameId);
|
|
681
|
-
if (!view) {
|
|
682
|
-
view = new ApplicationCacheItemsView(this.applicationCacheModel, frameId);
|
|
683
|
-
this.applicationCacheViews.set(frameId, view);
|
|
684
|
-
}
|
|
685
|
-
this.innerShowView(view);
|
|
686
|
-
}
|
|
687
|
-
|
|
688
637
|
showFileSystem(view: UI.Widget.Widget): void {
|
|
689
638
|
this.innerShowView(view);
|
|
690
639
|
}
|
|
@@ -732,95 +681,6 @@ export class ApplicationPanelSidebar extends UI.Widget.VBox implements SDK.Targe
|
|
|
732
681
|
await databasesTreeElement.updateChildren();
|
|
733
682
|
}
|
|
734
683
|
|
|
735
|
-
private populateApplicationCacheTree(_resourceTreeModel: SDK.ResourceTreeModel.ResourceTreeModel): void {
|
|
736
|
-
if (!this.target) {
|
|
737
|
-
return;
|
|
738
|
-
}
|
|
739
|
-
this.applicationCacheModel = this.target.model(ApplicationCacheModel);
|
|
740
|
-
if (!this.applicationCacheModel) {
|
|
741
|
-
return;
|
|
742
|
-
}
|
|
743
|
-
this.applicationCacheModel.addEventListener(
|
|
744
|
-
ApplicationCacheModelEvents.FrameManifestAdded, this.applicationCacheFrameManifestAdded, this);
|
|
745
|
-
this.applicationCacheModel.addEventListener(
|
|
746
|
-
ApplicationCacheModelEvents.FrameManifestRemoved, this.applicationCacheFrameManifestRemoved, this);
|
|
747
|
-
this.applicationCacheModel.addEventListener(
|
|
748
|
-
ApplicationCacheModelEvents.FrameManifestsReset, this.resetAppCache, this);
|
|
749
|
-
|
|
750
|
-
this.applicationCacheModel.addEventListener(
|
|
751
|
-
ApplicationCacheModelEvents.FrameManifestStatusUpdated, this.applicationCacheFrameManifestStatusChanged, this);
|
|
752
|
-
this.applicationCacheModel.addEventListener(
|
|
753
|
-
ApplicationCacheModelEvents.NetworkStateChanged, this.applicationCacheNetworkStateChanged, this);
|
|
754
|
-
}
|
|
755
|
-
|
|
756
|
-
private applicationCacheFrameManifestAdded(event: Common.EventTarget.EventTargetEvent): void {
|
|
757
|
-
const frameId = event.data;
|
|
758
|
-
if (!this.applicationCacheModel || !this.target || frameId !== 'string') {
|
|
759
|
-
return;
|
|
760
|
-
}
|
|
761
|
-
const manifestURL = this.applicationCacheModel.frameManifestURL(frameId);
|
|
762
|
-
|
|
763
|
-
let manifestTreeElement = this.applicationCacheManifestElements.get(manifestURL);
|
|
764
|
-
if (!manifestTreeElement) {
|
|
765
|
-
manifestTreeElement = new ApplicationCacheManifestTreeElement(this.panel, manifestURL);
|
|
766
|
-
this.applicationCacheListTreeElement.appendChild(manifestTreeElement);
|
|
767
|
-
this.applicationCacheManifestElements.set(manifestURL, manifestTreeElement);
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
const model = this.target.model(SDK.ResourceTreeModel.ResourceTreeModel);
|
|
771
|
-
const frame = model && model.frameForId(frameId);
|
|
772
|
-
if (model && frame) {
|
|
773
|
-
const frameTreeElement = new ApplicationCacheFrameTreeElement(this, frame, manifestURL);
|
|
774
|
-
manifestTreeElement.appendChild(frameTreeElement);
|
|
775
|
-
manifestTreeElement.expand();
|
|
776
|
-
this.applicationCacheFrameElements.set(frameId, frameTreeElement);
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
private applicationCacheFrameManifestRemoved(event: Common.EventTarget.EventTargetEvent<Protocol.Page.FrameId>):
|
|
781
|
-
void {
|
|
782
|
-
const frameId = event.data;
|
|
783
|
-
const frameTreeElement = this.applicationCacheFrameElements.get(frameId);
|
|
784
|
-
if (!frameTreeElement) {
|
|
785
|
-
return;
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
const manifestURL = frameTreeElement.manifestURL;
|
|
789
|
-
this.applicationCacheFrameElements.delete(frameId);
|
|
790
|
-
this.applicationCacheViews.delete(frameId);
|
|
791
|
-
frameTreeElement.parent && frameTreeElement.parent.removeChild(frameTreeElement);
|
|
792
|
-
|
|
793
|
-
const manifestTreeElement = this.applicationCacheManifestElements.get(manifestURL);
|
|
794
|
-
if (!manifestTreeElement || manifestTreeElement.childCount()) {
|
|
795
|
-
return;
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
this.applicationCacheManifestElements.delete(manifestURL);
|
|
799
|
-
manifestTreeElement.parent && manifestTreeElement.parent.removeChild(manifestTreeElement);
|
|
800
|
-
}
|
|
801
|
-
|
|
802
|
-
private applicationCacheFrameManifestStatusChanged(event: Common.EventTarget.EventTargetEvent<Protocol.Page.FrameId>):
|
|
803
|
-
void {
|
|
804
|
-
if (!this.applicationCacheModel) {
|
|
805
|
-
return;
|
|
806
|
-
}
|
|
807
|
-
const frameId = event.data;
|
|
808
|
-
const status = this.applicationCacheModel.frameManifestStatus(frameId);
|
|
809
|
-
|
|
810
|
-
const view = this.applicationCacheViews.get(frameId);
|
|
811
|
-
if (view) {
|
|
812
|
-
view.updateStatus(status);
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
|
-
|
|
816
|
-
private applicationCacheNetworkStateChanged(event: Common.EventTarget.EventTargetEvent): void {
|
|
817
|
-
const isNowOnline = (event.data as boolean);
|
|
818
|
-
|
|
819
|
-
for (const view of this.applicationCacheViews.values()) {
|
|
820
|
-
view.updateNetworkState(isNowOnline);
|
|
821
|
-
}
|
|
822
|
-
}
|
|
823
|
-
|
|
824
684
|
private onmousemove(event: MouseEvent): void {
|
|
825
685
|
const nodeUnderMouse = (event.target as Node);
|
|
826
686
|
if (!nodeUnderMouse) {
|
|
@@ -1113,9 +973,9 @@ export class IndexedDBTreeElement extends ExpandableApplicationPanelTreeElement
|
|
|
1113
973
|
}
|
|
1114
974
|
}
|
|
1115
975
|
|
|
1116
|
-
private indexedDBAdded(
|
|
1117
|
-
|
|
1118
|
-
|
|
976
|
+
private indexedDBAdded({
|
|
977
|
+
data: {databaseId, model},
|
|
978
|
+
}: Common.EventTarget.EventTargetEvent<{databaseId: DatabaseId, model: IndexedDBModel}>): void {
|
|
1119
979
|
this.addIndexedDB(model, databaseId);
|
|
1120
980
|
}
|
|
1121
981
|
|
|
@@ -1126,10 +986,9 @@ export class IndexedDBTreeElement extends ExpandableApplicationPanelTreeElement
|
|
|
1126
986
|
model.refreshDatabase(databaseId);
|
|
1127
987
|
}
|
|
1128
988
|
|
|
1129
|
-
private indexedDBRemoved(
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
989
|
+
private indexedDBRemoved({
|
|
990
|
+
data: {databaseId, model},
|
|
991
|
+
}: Common.EventTarget.EventTargetEvent<{databaseId: DatabaseId, model: IndexedDBModel}>): void {
|
|
1133
992
|
const idbDatabaseTreeElement = this.idbDatabaseTreeElement(model, databaseId);
|
|
1134
993
|
if (!idbDatabaseTreeElement) {
|
|
1135
994
|
return;
|
|
@@ -1144,11 +1003,9 @@ export class IndexedDBTreeElement extends ExpandableApplicationPanelTreeElement
|
|
|
1144
1003
|
this.setExpandable(this.childCount() > 0);
|
|
1145
1004
|
}
|
|
1146
1005
|
|
|
1147
|
-
private indexedDBLoaded(
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
const entriesUpdated = (event.data.entriesUpdated as boolean);
|
|
1151
|
-
|
|
1006
|
+
private indexedDBLoaded(
|
|
1007
|
+
{data: {database, model, entriesUpdated}}: Common.EventTarget
|
|
1008
|
+
.EventTargetEvent<{database: IndexedDBModelDatabase, model: IndexedDBModel, entriesUpdated: boolean}>): void {
|
|
1152
1009
|
const idbDatabaseTreeElement = this.idbDatabaseTreeElement(model, database.databaseId);
|
|
1153
1010
|
if (!idbDatabaseTreeElement) {
|
|
1154
1011
|
return;
|
|
@@ -1161,11 +1018,10 @@ export class IndexedDBTreeElement extends ExpandableApplicationPanelTreeElement
|
|
|
1161
1018
|
// For sniffing in tests.
|
|
1162
1019
|
}
|
|
1163
1020
|
|
|
1164
|
-
private indexedDBContentUpdated(
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1021
|
+
private indexedDBContentUpdated({
|
|
1022
|
+
data: {databaseId, objectStoreName, model},
|
|
1023
|
+
}: Common.EventTarget.EventTargetEvent<{databaseId: DatabaseId, objectStoreName: string, model: IndexedDBModel}>):
|
|
1024
|
+
void {
|
|
1169
1025
|
const idbDatabaseTreeElement = this.idbDatabaseTreeElement(model, databaseId);
|
|
1170
1026
|
if (!idbDatabaseTreeElement) {
|
|
1171
1027
|
return;
|
|
@@ -1946,10 +1802,6 @@ export class FrameTreeElement extends ApplicationPanelTreeElement {
|
|
|
1946
1802
|
const resourceTreeElement = new FrameResourceTreeElement(this.section.panel, resource);
|
|
1947
1803
|
categoryElement.appendChild(resourceTreeElement, FrameTreeElement.presentationOrderCompare);
|
|
1948
1804
|
this.treeElementForResource.set(resource.url, resourceTreeElement);
|
|
1949
|
-
|
|
1950
|
-
if (this.view) {
|
|
1951
|
-
this.view.update();
|
|
1952
|
-
}
|
|
1953
1805
|
}
|
|
1954
1806
|
|
|
1955
1807
|
windowOpened(targetInfo: Protocol.Target.TargetInfo): void {
|