chrome-devtools-frontend 1.0.950768 → 1.0.951864
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/gni/devtools_grd_files.gni +3 -3
- package/extension-api/ExtensionAPI.d.ts +1 -1
- package/front_end/Tests.js +10 -0
- package/front_end/core/common/App.ts +0 -3
- package/front_end/core/common/AppProvider.ts +0 -3
- package/front_end/core/common/JavaScriptMetaData.ts +0 -3
- package/front_end/core/common/QueryParamHandler.ts +0 -3
- package/front_end/core/common/Runnable.ts +0 -3
- package/front_end/core/common/SimpleHistoryManager.ts +0 -3
- package/front_end/core/i18n/locales/en-US.json +183 -183
- package/front_end/core/i18n/locales/en-XL.json +183 -183
- package/front_end/core/sdk/CSSRule.ts +1 -1
- package/front_end/core/sdk/DOMModel.ts +12 -37
- package/front_end/core/sdk/OverlayModel.ts +18 -34
- package/front_end/core/sdk/OverlayPersistentHighlighter.ts +0 -12
- package/front_end/core/sdk/RuntimeModel.ts +0 -1
- package/front_end/core/sdk/SourceMap.ts +1 -1
- package/front_end/core/sdk/TracingManager.ts +0 -3
- package/front_end/entrypoints/heap_snapshot_worker/AllocationProfile.ts +3 -3
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +2 -5
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshotWorkerDispatcher.ts +1 -1
- package/front_end/models/bindings/CSSWorkspaceBinding.ts +0 -3
- package/front_end/models/bindings/DebuggerLanguagePlugins.ts +1 -2
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +1 -4
- package/front_end/models/bindings/FileUtils.ts +0 -4
- package/front_end/models/bindings/IgnoreListManager.ts +1 -2
- package/front_end/models/bindings/NetworkProject.ts +1 -2
- package/front_end/models/extensions/ExtensionAPI.ts +2 -2
- package/front_end/models/extensions/ExtensionTraceProvider.ts +0 -3
- package/front_end/models/issues_manager/SameSiteCookieIssue.ts +1 -2
- package/front_end/models/timeline_model/TimelineModel.ts +1 -1
- package/front_end/models/timeline_model/TracingLayerTree.ts +0 -1
- package/front_end/panels/accessibility/ARIAMetadata.ts +0 -1
- package/front_end/panels/accessibility/AXBreadcrumbsPane.ts +2 -2
- package/front_end/panels/accessibility/AccessibilityNodeView.ts +1 -2
- package/front_end/panels/animation/AnimationTimeline.ts +0 -1
- package/front_end/panels/application/ApplicationPanelCacheSection.ts +3 -4
- package/front_end/panels/application/ServiceWorkerUpdateCycleView.ts +0 -2
- package/front_end/panels/application/StorageView.ts +2 -6
- package/front_end/panels/application/{BackForwardCacheStrings.ts → components/BackForwardCacheStrings.ts} +2 -2
- package/front_end/panels/application/{BackForwardCacheView.ts → components/BackForwardCacheView.ts} +76 -42
- package/front_end/panels/application/{backForwardCacheView.css → components/backForwardCacheView.css} +9 -0
- package/front_end/panels/application/components/components.ts +2 -0
- package/front_end/panels/console/ConsoleViewMessage.ts +1 -25
- package/front_end/panels/console/consoleView.css +5 -0
- package/front_end/panels/elements/ComputedStyleModel.ts +2 -2
- package/front_end/panels/elements/ElementsPanel.ts +1 -5
- package/front_end/panels/elements/ElementsTreeElement.ts +2 -6
- package/front_end/panels/elements/ElementsTreeOutline.ts +2 -2
- package/front_end/panels/elements/StylesSidebarPane.ts +1 -1
- package/front_end/panels/event_listeners/EventListenersUtils.ts +2 -1
- package/front_end/panels/layer_viewer/Layers3DView.ts +3 -9
- package/front_end/panels/lighthouse/LighthouseController.ts +4 -5
- package/front_end/panels/media/TickingFlameChart.ts +1 -2
- package/front_end/panels/network/NetworkLogViewColumns.ts +1 -1
- package/front_end/panels/profiler/HeapProfileView.ts +1 -1
- package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +0 -1
- package/front_end/panels/profiler/HeapSnapshotView.ts +1 -2
- package/front_end/panels/profiler/heapProfiler.css +1 -1
- package/front_end/panels/search/SearchConfig.ts +0 -6
- package/front_end/panels/security/SecurityModel.ts +2 -4
- package/front_end/panels/security/SecurityPanel.ts +2 -2
- package/front_end/panels/settings/KeybindsSettingsTab.ts +4 -0
- package/front_end/panels/settings/settingsScreen.css +8 -3
- package/front_end/panels/sources/FilteredUISourceCodeListProvider.ts +2 -2
- package/front_end/panels/sources/NavigatorView.ts +4 -10
- package/front_end/panels/sources/ScopeChainSidebarPane.ts +2 -3
- package/front_end/panels/sources/SourceMapNamesResolver.ts +3 -3
- package/front_end/panels/sources/SourcesPanel.ts +1 -3
- package/front_end/panels/sources/SourcesView.ts +0 -3
- package/front_end/panels/sources/TabbedEditorContainer.ts +1 -4
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +2 -5
- package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +0 -1
- package/front_end/panels/timeline/TimelineFlameChartView.ts +0 -1
- package/front_end/panels/timeline/TimelineLoader.ts +0 -3
- package/front_end/panels/timeline/TimelinePanel.ts +2 -3
- package/front_end/panels/timeline/TimelineUIUtils.ts +1 -1
- package/front_end/third_party/codemirror.next/bundle.ts +3 -3
- package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/markdown.js +2 -1
- package/front_end/third_party/codemirror.next/codemirror.next.d.ts +10 -1
- package/front_end/third_party/codemirror.next/codemirror.next.js +2 -1
- package/front_end/third_party/codemirror.next/package.json +3 -3
- package/front_end/third_party/puppeteer/package/README.md +11 -11
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api-docs-entry.d.ts +4 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts +4 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.d.ts +1 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts +1 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.d.ts +1 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.d.ts +9 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js +21 -12
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Dialog.d.ts +1 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EvalTypes.d.ts +1 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.d.ts +3 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FileChooser.d.ts +1 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts +8 -10
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts +50 -11
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js +70 -33
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.d.ts +12 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.js +25 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.d.ts +2 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts +39 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js +36 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts +3 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js +2 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.d.ts +46 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.js +124 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts +27 -10
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js +144 -74
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.d.ts +5 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.d.ts +1 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.d.ts +4 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.d.ts +3 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.d.ts +4 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js +43 -17
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.d.ts +1 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js +101 -34
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.d.ts +1 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.d.ts +1 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.d.ts +5 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api-docs-entry.d.ts +4 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts +4 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js +2 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.d.ts +1 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js +3 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts +1 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts +1 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.js +1 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts +9 -7
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js +24 -17
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.d.ts +1 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EvalTypes.d.ts +1 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.d.ts +3 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.d.ts +1 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts +8 -10
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js +7 -8
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts +50 -11
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js +70 -34
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts +12 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.js +26 -7
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts +2 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts +39 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js +38 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.d.ts +3 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.js +4 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.d.ts +46 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.js +120 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts +27 -10
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js +144 -75
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js +12 -14
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.d.ts +5 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.js +3 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.d.ts +1 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts +4 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.d.ts +3 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.js +1 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js +3 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initialize-node.js +1 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js +10 -12
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts +4 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js +43 -20
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts +1 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js +104 -40
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts +1 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.d.ts +1 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.js +1 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts +5 -7
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js +1 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.js +3 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node-puppeteer-core.js +1 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node.js +1 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/web.js +1 -2
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +173 -36
- package/front_end/third_party/puppeteer/package/package.json +3 -3
- package/front_end/ui/components/markdown_view/MarkdownView.ts +0 -1
- package/front_end/ui/components/text_editor/cursor_tooltip.ts +7 -1
- package/front_end/ui/legacy/ContextFlavorListener.ts +0 -4
- package/front_end/ui/legacy/ContextMenu.ts +2 -3
- package/front_end/ui/legacy/InspectorView.ts +1 -1
- package/front_end/ui/legacy/ReportView.ts +3 -4
- package/front_end/ui/legacy/SearchableView.ts +1 -2
- package/front_end/ui/legacy/SplitWidget.ts +2 -3
- package/front_end/ui/legacy/SuggestBox.ts +0 -3
- package/front_end/ui/legacy/TextPrompt.ts +1 -1
- package/front_end/ui/legacy/UIUtils.ts +1 -1
- package/front_end/ui/legacy/XLink.ts +1 -1
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +2 -2
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +9 -9
- package/front_end/ui/legacy/components/data_grid/dataGrid.css +7 -7
- package/front_end/ui/legacy/components/inline_editor/CSSShadowEditor.ts +1 -1
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +1 -5
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +0 -1
- package/front_end/ui/legacy/components/utils/Linkifier.ts +2 -2
- package/front_end/ui/legacy/theme_support/theme_support_impl.ts +12 -1
- package/inspector_overlay/main.ts +16 -2
- package/package.json +1 -1
package/front_end/panels/application/{BackForwardCacheView.ts → components/BackForwardCacheView.ts}
RENAMED
|
@@ -2,15 +2,17 @@
|
|
|
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 type * as Platform from '
|
|
6
|
-
import * as i18n from '
|
|
7
|
-
import * as Buttons from '
|
|
8
|
-
import * as SDK from '
|
|
9
|
-
import * as LitHtml from '
|
|
10
|
-
import * as ReportView from '
|
|
11
|
-
import * as UI from '
|
|
12
|
-
import * as Protocol from '
|
|
13
|
-
import * as IconButton from '
|
|
5
|
+
import type * as Platform from '../../../core/platform/platform.js';
|
|
6
|
+
import * as i18n from '../../../core/i18n/i18n.js';
|
|
7
|
+
import * as Buttons from '../../../ui/components/buttons/buttons.js';
|
|
8
|
+
import * as SDK from '../../../core/sdk/sdk.js';
|
|
9
|
+
import * as LitHtml from '../../../ui/lit-html/lit-html.js';
|
|
10
|
+
import * as ReportView from '../../../ui/components/report_view/report_view.js';
|
|
11
|
+
import * as UI from '../../../ui/legacy/legacy.js';
|
|
12
|
+
import * as Protocol from '../../../generated/protocol.js';
|
|
13
|
+
import * as IconButton from '../../../ui/components/icon_button/icon_button.js';
|
|
14
|
+
import * as ComponentHelpers from '../../../ui/components/helpers/helpers.js';
|
|
15
|
+
import * as Coordinator from '../../../ui/components/render_coordinator/render_coordinator.js';
|
|
14
16
|
|
|
15
17
|
import {NotRestoredReasonDescription} from './BackForwardCacheStrings.js';
|
|
16
18
|
import backForwardCacheViewStyles from './backForwardCacheView.css.js';
|
|
@@ -96,7 +98,7 @@ const UIStrings = {
|
|
|
96
98
|
supportPendingExplanation:
|
|
97
99
|
'Chrome support for these reasons is pending i.e. they will not prevent the page from being eligible for back/forward cache in a future version of Chrome.',
|
|
98
100
|
};
|
|
99
|
-
const str_ = i18n.i18n.registerUIStrings('panels/application/BackForwardCacheView.ts', UIStrings);
|
|
101
|
+
const str_ = i18n.i18n.registerUIStrings('panels/application/components/BackForwardCacheView.ts', UIStrings);
|
|
100
102
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
101
103
|
|
|
102
104
|
const enum ScreenStatusType {
|
|
@@ -104,36 +106,22 @@ const enum ScreenStatusType {
|
|
|
104
106
|
Result = 'Result',
|
|
105
107
|
}
|
|
106
108
|
|
|
107
|
-
export class
|
|
109
|
+
export class BackForwardCacheViewWrapper extends UI.ThrottledWidget.ThrottledWidget {
|
|
110
|
+
private readonly bfcacheView = new BackForwardCacheView();
|
|
111
|
+
|
|
108
112
|
constructor() {
|
|
109
113
|
super(true, 1000);
|
|
110
114
|
this.getMainResourceTreeModel()?.addEventListener(
|
|
111
|
-
SDK.ResourceTreeModel.Events.MainFrameNavigated, this.
|
|
115
|
+
SDK.ResourceTreeModel.Events.MainFrameNavigated, this.update, this);
|
|
112
116
|
this.getMainResourceTreeModel()?.addEventListener(
|
|
113
|
-
SDK.ResourceTreeModel.Events.BackForwardCacheDetailsUpdated, this.
|
|
114
|
-
this.
|
|
115
|
-
this.
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
private screenStatus: ScreenStatusType;
|
|
119
|
-
|
|
120
|
-
wasShown(): void {
|
|
121
|
-
super.wasShown();
|
|
122
|
-
this.registerCSSFiles([backForwardCacheViewStyles]);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
private onBackForwardCacheUpdate(): void {
|
|
117
|
+
SDK.ResourceTreeModel.Events.BackForwardCacheDetailsUpdated, this.update, this);
|
|
118
|
+
this.contentElement.classList.add('overflow-auto');
|
|
119
|
+
this.contentElement.appendChild(this.bfcacheView);
|
|
126
120
|
this.update();
|
|
127
121
|
}
|
|
128
122
|
|
|
129
123
|
async doUpdate(): Promise<void> {
|
|
130
|
-
|
|
131
|
-
const html = LitHtml.html`
|
|
132
|
-
<${ReportView.ReportView.Report.litTagName} .data=${data as ReportView.ReportView.ReportData}>
|
|
133
|
-
${this.renderMainFrameInformation(this.getMainFrame())}
|
|
134
|
-
</${ReportView.ReportView.Report.litTagName}>
|
|
135
|
-
`;
|
|
136
|
-
LitHtml.render(html, this.contentElement, {host: this});
|
|
124
|
+
this.bfcacheView.data = {frame: this.getMainFrame()};
|
|
137
125
|
}
|
|
138
126
|
|
|
139
127
|
private getMainResourceTreeModel(): SDK.ResourceTreeModel.ResourceTreeModel|null {
|
|
@@ -144,21 +132,58 @@ export class BackForwardCacheView extends UI.ThrottledWidget.ThrottledWidget {
|
|
|
144
132
|
private getMainFrame(): SDK.ResourceTreeModel.ResourceTreeFrame|null {
|
|
145
133
|
return this.getMainResourceTreeModel()?.mainFrame || null;
|
|
146
134
|
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
const coordinator = Coordinator.RenderCoordinator.RenderCoordinator.instance();
|
|
138
|
+
|
|
139
|
+
export interface BackForwardCacheViewData {
|
|
140
|
+
frame: SDK.ResourceTreeModel.ResourceTreeFrame|null;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export class BackForwardCacheView extends HTMLElement {
|
|
144
|
+
static readonly litTagName = LitHtml.literal`devtools-resources-back-forward-cache-view`;
|
|
145
|
+
readonly #shadow = this.attachShadow({mode: 'open'});
|
|
146
|
+
#frame: SDK.ResourceTreeModel.ResourceTreeFrame|null = null;
|
|
147
|
+
#screenStatus = ScreenStatusType.Result;
|
|
148
|
+
|
|
149
|
+
connectedCallback(): void {
|
|
150
|
+
this.#shadow.adoptedStyleSheets = [backForwardCacheViewStyles];
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
set data(data: BackForwardCacheViewData) {
|
|
154
|
+
this.#frame = data.frame;
|
|
155
|
+
this.render();
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
private async render(): Promise<void> {
|
|
159
|
+
await coordinator.write('BackForwardCacheView render', () => {
|
|
160
|
+
// Disabled until https://crbug.com/1079231 is fixed.
|
|
161
|
+
// clang-format off
|
|
162
|
+
LitHtml.render(LitHtml.html`
|
|
163
|
+
<${ReportView.ReportView.Report.litTagName} .data=${
|
|
164
|
+
{reportTitle: i18nString(UIStrings.backForwardCacheTitle)} as ReportView.ReportView.ReportData
|
|
165
|
+
}>
|
|
166
|
+
${this.renderMainFrameInformation()}
|
|
167
|
+
</${ReportView.ReportView.Report.litTagName}>
|
|
168
|
+
`, this.#shadow, {host: this});
|
|
169
|
+
// clang-format on
|
|
170
|
+
});
|
|
171
|
+
}
|
|
147
172
|
|
|
148
173
|
private renderBackForwardCacheTestResult(): void {
|
|
149
174
|
SDK.TargetManager.TargetManager.instance().removeModelListener(
|
|
150
175
|
SDK.ResourceTreeModel.ResourceTreeModel, SDK.ResourceTreeModel.Events.FrameNavigated,
|
|
151
176
|
this.renderBackForwardCacheTestResult, this);
|
|
152
|
-
this
|
|
153
|
-
this.
|
|
177
|
+
this.#screenStatus = ScreenStatusType.Result;
|
|
178
|
+
this.render();
|
|
154
179
|
}
|
|
155
180
|
|
|
156
181
|
private async goBackOneHistoryEntry(): Promise<void> {
|
|
157
182
|
SDK.TargetManager.TargetManager.instance().removeModelListener(
|
|
158
183
|
SDK.ResourceTreeModel.ResourceTreeModel, SDK.ResourceTreeModel.Events.FrameNavigated,
|
|
159
184
|
this.goBackOneHistoryEntry, this);
|
|
160
|
-
this
|
|
161
|
-
this.
|
|
185
|
+
this.#screenStatus = ScreenStatusType.Running;
|
|
186
|
+
this.render();
|
|
162
187
|
const mainTarget = SDK.TargetManager.TargetManager.instance().mainTarget();
|
|
163
188
|
if (!mainTarget) {
|
|
164
189
|
return;
|
|
@@ -200,8 +225,8 @@ export class BackForwardCacheView extends UI.ThrottledWidget.ThrottledWidget {
|
|
|
200
225
|
}
|
|
201
226
|
}
|
|
202
227
|
|
|
203
|
-
private renderMainFrameInformation(
|
|
204
|
-
if (!
|
|
228
|
+
private renderMainFrameInformation(): LitHtml.TemplateResult {
|
|
229
|
+
if (!this.#frame) {
|
|
205
230
|
// clang-format off
|
|
206
231
|
return LitHtml.html`
|
|
207
232
|
<${ReportView.ReportView.ReportKey.litTagName}>
|
|
@@ -213,16 +238,16 @@ export class BackForwardCacheView extends UI.ThrottledWidget.ThrottledWidget {
|
|
|
213
238
|
`;
|
|
214
239
|
// clang-format on
|
|
215
240
|
}
|
|
216
|
-
const isDisabled = this
|
|
241
|
+
const isDisabled = this.#screenStatus === ScreenStatusType.Running;
|
|
217
242
|
// clang-format off
|
|
218
243
|
return LitHtml.html`
|
|
219
|
-
${this.renderBackForwardCacheStatus(
|
|
244
|
+
${this.renderBackForwardCacheStatus(this.#frame.backForwardCacheDetails.restoredFromCache)}
|
|
220
245
|
<div class='url'>
|
|
221
246
|
<div class='url-key'>
|
|
222
247
|
${i18nString(UIStrings.url)}
|
|
223
248
|
</div>
|
|
224
249
|
<div class='url-value'>
|
|
225
|
-
${
|
|
250
|
+
${this.#frame.url}
|
|
226
251
|
</div>
|
|
227
252
|
</div>
|
|
228
253
|
<${ReportView.ReportView.ReportSection.litTagName}>
|
|
@@ -239,7 +264,7 @@ export class BackForwardCacheView extends UI.ThrottledWidget.ThrottledWidget {
|
|
|
239
264
|
</${ReportView.ReportView.ReportSection.litTagName}>
|
|
240
265
|
<${ReportView.ReportView.ReportSectionDivider.litTagName}>
|
|
241
266
|
</${ReportView.ReportView.ReportSectionDivider.litTagName}>
|
|
242
|
-
${this.maybeRenderExplanations(
|
|
267
|
+
${this.maybeRenderExplanations(this.#frame.backForwardCacheDetails.explanations)}
|
|
243
268
|
<${ReportView.ReportView.ReportSection.litTagName}>
|
|
244
269
|
<x-link href="https://web.dev/bfcache/" class="link">
|
|
245
270
|
${i18nString(UIStrings.learnMore)}
|
|
@@ -368,3 +393,12 @@ export class BackForwardCacheView extends UI.ThrottledWidget.ThrottledWidget {
|
|
|
368
393
|
// clang-format on
|
|
369
394
|
}
|
|
370
395
|
}
|
|
396
|
+
|
|
397
|
+
ComponentHelpers.CustomElements.defineComponent('devtools-resources-back-forward-cache-view', BackForwardCacheView);
|
|
398
|
+
|
|
399
|
+
declare global {
|
|
400
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
401
|
+
interface HTMLElementTagNameMap {
|
|
402
|
+
'devtools-resources-back-forward-cache-view': BackForwardCacheView;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Use of this source code is governed by a BSD-style license that can be
|
|
4
4
|
* found in the LICENSE file.
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
.inline-icon {
|
|
7
8
|
vertical-align: sub;
|
|
8
9
|
}
|
|
@@ -50,3 +51,11 @@
|
|
|
50
51
|
padding: 0 6px;
|
|
51
52
|
overflow-wrap: break-word;
|
|
52
53
|
}
|
|
54
|
+
|
|
55
|
+
.link,
|
|
56
|
+
.devtools-link {
|
|
57
|
+
color: var(--color-link);
|
|
58
|
+
text-decoration: underline;
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
padding: 2px 0; /* adjust focus ring size */
|
|
61
|
+
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
|
+
import * as BackForwardCacheView from './BackForwardCacheView.js';
|
|
5
6
|
import * as EndpointsGrid from './EndpointsGrid.js';
|
|
6
7
|
import * as FrameDetailsView from './FrameDetailsView.js';
|
|
7
8
|
import * as OriginTrialTreeView from './OriginTrialTreeView.js';
|
|
@@ -10,6 +11,7 @@ import * as StackTrace from './StackTrace.js';
|
|
|
10
11
|
import * as TrustTokensView from './TrustTokensView.js';
|
|
11
12
|
|
|
12
13
|
export {
|
|
14
|
+
BackForwardCacheView,
|
|
13
15
|
EndpointsGrid,
|
|
14
16
|
FrameDetailsView,
|
|
15
17
|
OriginTrialTreeView,
|
|
@@ -49,7 +49,6 @@ import * as DataGrid from '../../ui/legacy/components/data_grid/data_grid.js';
|
|
|
49
49
|
import * as ObjectUI from '../../ui/legacy/components/object_ui/object_ui.js';
|
|
50
50
|
import * as Components from '../../ui/legacy/components/utils/utils.js';
|
|
51
51
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
52
|
-
import * as ThemeSupport from '../../ui/legacy/theme_support/theme_support.js';
|
|
53
52
|
// eslint-disable-next-line rulesdir/es_modules_import
|
|
54
53
|
import objectValueStyles from '../../ui/legacy/components/object_ui/objectValue.css.js';
|
|
55
54
|
import type {Chrome} from '../../../extension-api/ExtensionAPI.js'; // eslint-disable-line rulesdir/es_modules_import
|
|
@@ -1006,11 +1005,7 @@ export class ConsoleViewMessage implements ConsoleViewportElement {
|
|
|
1006
1005
|
wrapper.style.setProperty('max-width', '100%');
|
|
1007
1006
|
wrapper.appendChild(lineFragment);
|
|
1008
1007
|
applyCurrentStyle(wrapper);
|
|
1009
|
-
|
|
1010
|
-
if (child.classList.contains('devtools-link') && child instanceof HTMLElement) {
|
|
1011
|
-
this.applyForcedVisibleStyle(child);
|
|
1012
|
-
}
|
|
1013
|
-
}
|
|
1008
|
+
|
|
1014
1009
|
a.appendChild(wrapper);
|
|
1015
1010
|
if (i < lines.length - 1) {
|
|
1016
1011
|
a.appendChild(document.createElement('br'));
|
|
@@ -1032,25 +1027,6 @@ export class ConsoleViewMessage implements ConsoleViewportElement {
|
|
|
1032
1027
|
return Platform.StringUtilities.format(format, parameters, formatters, formattedResult, append.bind(this));
|
|
1033
1028
|
}
|
|
1034
1029
|
|
|
1035
|
-
private applyForcedVisibleStyle(element: HTMLElement): void {
|
|
1036
|
-
element.style.setProperty('-webkit-text-stroke', '0', 'important');
|
|
1037
|
-
element.style.setProperty('text-decoration', 'underline', 'important');
|
|
1038
|
-
|
|
1039
|
-
const themedColor = ThemeSupport.ThemeSupport.instance().patchColorText(
|
|
1040
|
-
'rgb(33%, 33%, 33%)', ThemeSupport.ThemeSupport.ColorUsage.Foreground);
|
|
1041
|
-
element.style.setProperty('color', themedColor, 'important');
|
|
1042
|
-
|
|
1043
|
-
let backgroundColor = 'hsl(0, 0%, 100%)';
|
|
1044
|
-
if (this.message.level === Protocol.Log.LogEntryLevel.Error) {
|
|
1045
|
-
backgroundColor = 'hsl(0, 100%, 97%)';
|
|
1046
|
-
} else if (this.message.level === Protocol.Log.LogEntryLevel.Warning || this.shouldRenderAsWarning()) {
|
|
1047
|
-
backgroundColor = 'hsl(50, 100%, 95%)';
|
|
1048
|
-
}
|
|
1049
|
-
const themedBackgroundColor = ThemeSupport.ThemeSupport.instance().patchColorText(
|
|
1050
|
-
backgroundColor, ThemeSupport.ThemeSupport.ColorUsage.Background);
|
|
1051
|
-
element.style.setProperty('background-color', themedBackgroundColor, 'important');
|
|
1052
|
-
}
|
|
1053
|
-
|
|
1054
1030
|
matchesFilterRegex(regexObject: RegExp): boolean {
|
|
1055
1031
|
regexObject.lastIndex = 0;
|
|
1056
1032
|
const contentElement = this.contentElement();
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
--override-focused-message-background-color: hsl(214deg 19% 20%);
|
|
50
50
|
--override-console-warning-background-color: hsl(50deg 100% 10%);
|
|
51
51
|
--override-console-warning-text-color: hsl(39deg 89% 55%);
|
|
52
|
+
--override-console-link-color: var(--color-background-inverted);
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
.console-toolbar-container {
|
|
@@ -460,6 +461,10 @@
|
|
|
460
461
|
height: 0;
|
|
461
462
|
}
|
|
462
463
|
|
|
464
|
+
.-theme-with-dark-background #console-messages .console-message-text .devtools-link {
|
|
465
|
+
color: var(--override-console-link-color);
|
|
466
|
+
}
|
|
467
|
+
|
|
463
468
|
@media (forced-colors: active) {
|
|
464
469
|
.console-message-expand-icon,
|
|
465
470
|
.console-warning-level [is="ui-icon"].icon-mask.expand-group-icon {
|
|
@@ -98,11 +98,11 @@ export class ComputedStyleModel extends Common.ObjectWrapper.ObjectWrapper<Event
|
|
|
98
98
|
const elementNode = this.elementNode();
|
|
99
99
|
const cssModel = this.cssModel();
|
|
100
100
|
if (!elementNode || !cssModel) {
|
|
101
|
-
return
|
|
101
|
+
return null;
|
|
102
102
|
}
|
|
103
103
|
const nodeId = elementNode.id;
|
|
104
104
|
if (!nodeId) {
|
|
105
|
-
return
|
|
105
|
+
return null;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
if (!this.computedStylePromise) {
|
|
@@ -1263,11 +1263,7 @@ export class DOMNodeRevealer implements Common.Revealer.Revealer {
|
|
|
1263
1263
|
} else if (node instanceof SDK.DOMModel.DeferredDOMNode) {
|
|
1264
1264
|
(node as SDK.DOMModel.DeferredDOMNode).resolve(checkDeferredDOMNodeThenReveal);
|
|
1265
1265
|
} else if (node instanceof SDK.RemoteObject.RemoteObject) {
|
|
1266
|
-
const domModel =
|
|
1267
|
-
/** @type {!SDK.RemoteObject.RemoteObject} */ (node as SDK.RemoteObject.RemoteObject)
|
|
1268
|
-
.runtimeModel()
|
|
1269
|
-
.target()
|
|
1270
|
-
.model(SDK.DOMModel.DOMModel);
|
|
1266
|
+
const domModel = node.runtimeModel().target().model(SDK.DOMModel.DOMModel);
|
|
1271
1267
|
if (domModel) {
|
|
1272
1268
|
domModel.pushObjectAsNodeToFrontend(node).then(checkRemoteObjectThenReveal);
|
|
1273
1269
|
} else {
|
|
@@ -1811,9 +1811,7 @@ export class ElementsTreeElement extends UI.TreeOutline.TreeElement {
|
|
|
1811
1811
|
this.nodeInternal.removeNode();
|
|
1812
1812
|
}
|
|
1813
1813
|
|
|
1814
|
-
|
|
1815
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1816
|
-
toggleEditAsHTML(callback?: ((arg0: boolean) => any), startEditing?: boolean): void {
|
|
1814
|
+
toggleEditAsHTML(callback?: ((arg0: boolean) => void), startEditing?: boolean): void {
|
|
1817
1815
|
if (this.editing && this.htmlEditElement) {
|
|
1818
1816
|
this.editing.commit();
|
|
1819
1817
|
return;
|
|
@@ -2220,7 +2218,5 @@ export interface EditorHandles {
|
|
|
2220
2218
|
commit: () => void;
|
|
2221
2219
|
cancel: () => void;
|
|
2222
2220
|
editor?: TextEditor.TextEditor.TextEditor;
|
|
2223
|
-
|
|
2224
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2225
|
-
resize: () => any;
|
|
2221
|
+
resize: () => void;
|
|
2226
2222
|
}
|
|
@@ -470,7 +470,7 @@ export class ElementsTreeOutline extends
|
|
|
470
470
|
treeElement = this.lookUpTreeElement(node.parentNode);
|
|
471
471
|
}
|
|
472
472
|
|
|
473
|
-
return
|
|
473
|
+
return treeElement as ElementsTreeElement | null;
|
|
474
474
|
}
|
|
475
475
|
|
|
476
476
|
private lookUpTreeElement(node: SDK.DOMModel.DOMNode|null): UI.TreeOutline.TreeElement|null {
|
|
@@ -1197,7 +1197,7 @@ export class ElementsTreeOutline extends
|
|
|
1197
1197
|
if (index >= treeElement.expandedChildrenLimit()) {
|
|
1198
1198
|
this.setExpandedChildrenLimit(treeElement, index + 1);
|
|
1199
1199
|
}
|
|
1200
|
-
return
|
|
1200
|
+
return treeElement.childAt(index) as ElementsTreeElement;
|
|
1201
1201
|
}
|
|
1202
1202
|
|
|
1203
1203
|
private visibleChildren(node: SDK.DOMModel.DOMNode): SDK.DOMModel.DOMNode[] {
|
|
@@ -452,7 +452,7 @@ export class StylesSidebarPane extends Common.ObjectWrapper.eventMixin<EventType
|
|
|
452
452
|
}
|
|
453
453
|
let sectionToFocus: (StylePropertiesSection|null)|null = null;
|
|
454
454
|
let willIterateForward = false;
|
|
455
|
-
switch (
|
|
455
|
+
switch ((event as KeyboardEvent).key) {
|
|
456
456
|
case 'ArrowUp':
|
|
457
457
|
case 'ArrowLeft': {
|
|
458
458
|
sectionToFocus = section.previousSibling() || section.lastSibling();
|
|
@@ -347,8 +347,9 @@ export function frameworkEventListeners(object: SDK.RemoteObject.RemoteObject):
|
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
|
|
350
|
+
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
350
351
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
351
|
-
function checkInternalHandler(handler: any): (() =>
|
|
352
|
+
function checkInternalHandler(handler: any): (() => void)|null {
|
|
352
353
|
if (handler && (typeof handler === 'function')) {
|
|
353
354
|
return handler;
|
|
354
355
|
}
|
|
@@ -231,8 +231,7 @@ export class Layers3DView extends Common.ObjectWrapper.eventMixin<EventTypes, ty
|
|
|
231
231
|
if (selection.type() === Type.Snapshot) {
|
|
232
232
|
const snapshotWithRect = (selection as SnapshotSelection).snapshot();
|
|
233
233
|
snapshotWithRect.snapshot.addReference();
|
|
234
|
-
return
|
|
235
|
-
Promise<SDK.PaintProfiler.SnapshotWithRect|null>;
|
|
234
|
+
return Promise.resolve(snapshotWithRect);
|
|
236
235
|
}
|
|
237
236
|
if (selection.layer()) {
|
|
238
237
|
const promise = selection.layer().snapshots()[0];
|
|
@@ -240,8 +239,7 @@ export class Layers3DView extends Common.ObjectWrapper.eventMixin<EventTypes, ty
|
|
|
240
239
|
return promise;
|
|
241
240
|
}
|
|
242
241
|
}
|
|
243
|
-
return
|
|
244
|
-
Promise<SDK.PaintProfiler.SnapshotWithRect|null>;
|
|
242
|
+
return Promise.resolve(null);
|
|
245
243
|
}
|
|
246
244
|
|
|
247
245
|
private initGL(canvas: HTMLCanvasElement): WebGLRenderingContext|null {
|
|
@@ -253,7 +251,7 @@ export class Layers3DView extends Common.ObjectWrapper.eventMixin<EventTypes, ty
|
|
|
253
251
|
gl.enable(gl.BLEND);
|
|
254
252
|
gl.clearColor(0.0, 0.0, 0.0, 0.0);
|
|
255
253
|
gl.enable(gl.DEPTH_TEST);
|
|
256
|
-
return
|
|
254
|
+
return gl;
|
|
257
255
|
}
|
|
258
256
|
|
|
259
257
|
private createShader(type: number, script: string): void {
|
|
@@ -434,7 +432,6 @@ export class Layers3DView extends Common.ObjectWrapper.eventMixin<EventTypes, ty
|
|
|
434
432
|
}
|
|
435
433
|
|
|
436
434
|
private calculateDepthsAndVisibility(): void {
|
|
437
|
-
/** @type {!Map<string, number>} */
|
|
438
435
|
this.depthByLayerId = new Map();
|
|
439
436
|
let depth = 0;
|
|
440
437
|
const showInternalLayers = this.layerViewHost.showInternalLayersSetting().get();
|
|
@@ -449,7 +446,6 @@ export class Layers3DView extends Common.ObjectWrapper.eventMixin<EventTypes, ty
|
|
|
449
446
|
|
|
450
447
|
const queue = [root];
|
|
451
448
|
this.depthByLayerId.set(root.id(), 0);
|
|
452
|
-
/** @type {!Set<!SDK.LayerTreeBase.Layer>} */
|
|
453
449
|
this.visibleLayers = new Set();
|
|
454
450
|
while (queue.length > 0) {
|
|
455
451
|
const layer = queue.shift();
|
|
@@ -983,9 +979,7 @@ export class LayerTextureManager {
|
|
|
983
979
|
this.setLayerTree(null);
|
|
984
980
|
}
|
|
985
981
|
|
|
986
|
-
/** @type {!Map<!SDK.LayerTreeBase.Layer, !Array<!Tile>>} */
|
|
987
982
|
this.tilesByLayer = new Map();
|
|
988
|
-
/** @type {!Array<!SDK.LayerTreeBase.Layer>} */
|
|
989
983
|
this.queue = [];
|
|
990
984
|
}
|
|
991
985
|
|
|
@@ -285,11 +285,10 @@ export class LighthouseController extends Common.ObjectWrapper.ObjectWrapper<Eve
|
|
|
285
285
|
for (const runtimeSetting of RuntimeSettings) {
|
|
286
286
|
runtimeSetting.setFlags(flags, runtimeSetting.setting.get());
|
|
287
287
|
}
|
|
288
|
-
return
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
};
|
|
288
|
+
return flags as {
|
|
289
|
+
internalDisableDeviceScreenEmulation: boolean,
|
|
290
|
+
emulatedFormFactor: (string | undefined),
|
|
291
|
+
};
|
|
293
292
|
}
|
|
294
293
|
|
|
295
294
|
getCategoryIDs(): string[] {
|
|
@@ -12,8 +12,7 @@ import * as ThemeSupport from '../../ui/legacy/theme_support/theme_support.js';
|
|
|
12
12
|
import {Bounds, formatMillisecondsToSeconds} from './TickingFlameChartHelpers.js';
|
|
13
13
|
|
|
14
14
|
const defaultFont = '11px ' + Host.Platform.fontFamily();
|
|
15
|
-
const defaultColor =
|
|
16
|
-
ThemeSupport.ThemeSupport.instance().patchColorText('#444', ThemeSupport.ThemeSupport.ColorUsage.Foreground);
|
|
15
|
+
const defaultColor = ThemeSupport.ThemeSupport.instance().getComputedValue('--color-text-primary');
|
|
17
16
|
|
|
18
17
|
const DefaultStyle = {
|
|
19
18
|
height: 20,
|
|
@@ -209,7 +209,7 @@ export class NetworkLogViewColumns {
|
|
|
209
209
|
|
|
210
210
|
private static convertToDataGridDescriptor(columnConfig: Descriptor): DataGrid.DataGrid.ColumnDescriptor {
|
|
211
211
|
const title = columnConfig.title instanceof Function ? columnConfig.title() : columnConfig.title;
|
|
212
|
-
return
|
|
212
|
+
return {
|
|
213
213
|
id: columnConfig.id,
|
|
214
214
|
title,
|
|
215
215
|
sortable: columnConfig.sortable,
|
|
@@ -255,7 +255,7 @@ export class SamplingHeapProfileTypeBase extends
|
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
profileBeingRecorded(): SamplingHeapProfileHeader|null {
|
|
258
|
-
return
|
|
258
|
+
return super.profileBeingRecorded() as SamplingHeapProfileHeader | null;
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
typeName(): string {
|
|
@@ -861,8 +861,7 @@ export class HeapSnapshotView extends UI.View.SimpleView implements DataDisplayD
|
|
|
861
861
|
}
|
|
862
862
|
|
|
863
863
|
getPopoverRequest(event: Event): UI.PopoverHelper.PopoverRequest|null {
|
|
864
|
-
const span =
|
|
865
|
-
/** @type {?HTMLElement} */ (UI.UIUtils.enclosingNodeOrSelfWithNodeName((event.target as Node), 'span'));
|
|
864
|
+
const span = UI.UIUtils.enclosingNodeOrSelfWithNodeName((event.target as Node), 'span');
|
|
866
865
|
const row = UI.UIUtils.enclosingNodeOrSelfWithNodeName((event.target as Node), 'tr');
|
|
867
866
|
if (!row) {
|
|
868
867
|
return null;
|
|
@@ -159,9 +159,6 @@ export class QueryTerm {
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
/**
|
|
163
|
-
* @interface
|
|
164
|
-
*/
|
|
165
162
|
export interface SearchResult {
|
|
166
163
|
label(): string;
|
|
167
164
|
|
|
@@ -176,9 +173,6 @@ export interface SearchResult {
|
|
|
176
173
|
matchRevealable(index: number): Object;
|
|
177
174
|
}
|
|
178
175
|
|
|
179
|
-
/**
|
|
180
|
-
* @interface
|
|
181
|
-
*/
|
|
182
176
|
export interface SearchScope {
|
|
183
177
|
performSearch(
|
|
184
178
|
searchConfig: SearchConfig, progress: Common.Progress.Progress,
|
|
@@ -53,13 +53,11 @@ export class SecurityModel extends SDK.SDKModel.SDKModel<EventTypes> {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
resourceTreeModel(): SDK.ResourceTreeModel.ResourceTreeModel {
|
|
56
|
-
return
|
|
57
|
-
SDK.ResourceTreeModel.ResourceTreeModel) as SDK.ResourceTreeModel.ResourceTreeModel;
|
|
56
|
+
return this.target().model(SDK.ResourceTreeModel.ResourceTreeModel) as SDK.ResourceTreeModel.ResourceTreeModel;
|
|
58
57
|
}
|
|
59
58
|
|
|
60
59
|
networkManager(): SDK.NetworkManager.NetworkManager {
|
|
61
|
-
return
|
|
62
|
-
SDK.NetworkManager.NetworkManager;
|
|
60
|
+
return this.target().model(SDK.NetworkManager.NetworkManager) as SDK.NetworkManager.NetworkManager;
|
|
63
61
|
}
|
|
64
62
|
|
|
65
63
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
@@ -797,11 +797,11 @@ export class SecurityPanelSidebarTree extends UI.TreeOutline.TreeOutlineInShadow
|
|
|
797
797
|
}
|
|
798
798
|
|
|
799
799
|
private originGroupTitle(originGroup: OriginGroup): string {
|
|
800
|
-
return
|
|
800
|
+
return this.originGroupTitles.get(originGroup) as string;
|
|
801
801
|
}
|
|
802
802
|
|
|
803
803
|
private originGroupElement(originGroup: OriginGroup): UI.TreeOutline.TreeElement {
|
|
804
|
-
return
|
|
804
|
+
return this.originGroups.get(originGroup) as UI.TreeOutline.TreeElement;
|
|
805
805
|
}
|
|
806
806
|
|
|
807
807
|
private createOriginGroupElement(originGroupTitle: string): UI.TreeOutline.TreeElement {
|
|
@@ -249,6 +249,10 @@ export class KeybindsSettingsTab extends UI.Widget.VBox implements UI.ListContro
|
|
|
249
249
|
|
|
250
250
|
let currentCategory: string;
|
|
251
251
|
actions.forEach(action => {
|
|
252
|
+
if (action.id() === 'elements.toggle-element-search') {
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
255
|
+
|
|
252
256
|
if (currentCategory !== action.category()) {
|
|
253
257
|
items.push(action.category());
|
|
254
258
|
}
|
|
@@ -137,12 +137,13 @@ fieldset {
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
#experiments-tab-content .settings-container {
|
|
140
|
-
column-width:
|
|
140
|
+
column-width: auto;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
#experiments-tab-content .settings-block {
|
|
144
|
-
width:
|
|
144
|
+
width: auto;
|
|
145
145
|
margin-left: 0;
|
|
146
|
+
margin-right: 10px;
|
|
146
147
|
}
|
|
147
148
|
|
|
148
149
|
.settings-tab-container header > h1 {
|
|
@@ -172,7 +173,11 @@ fieldset {
|
|
|
172
173
|
|
|
173
174
|
.settings-experiment {
|
|
174
175
|
display: grid;
|
|
175
|
-
grid-template-columns: auto 1fr;
|
|
176
|
+
grid-template-columns: auto min-content 1fr;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.settings-experiment [is="dt-checkbox"] {
|
|
180
|
+
padding-right: 10px;
|
|
176
181
|
}
|
|
177
182
|
|
|
178
183
|
.settings-experiment .devtools-link {
|
|
@@ -124,7 +124,7 @@ export class FilteredUISourceCodeListProvider extends QuickOpen.FilteredListWidg
|
|
|
124
124
|
|
|
125
125
|
titleElement.textContent = uiSourceCode.displayName() + (this.queryLineNumberAndColumnNumber || '');
|
|
126
126
|
this.renderSubtitleElement(subtitleElement, fullDisplayName.substring(0, fileNameIndex + 1));
|
|
127
|
-
|
|
127
|
+
UI.Tooltip.Tooltip.install((subtitleElement as HTMLElement), fullDisplayName);
|
|
128
128
|
const ranges = [];
|
|
129
129
|
for (let i = 0; i < indexes.length; ++i) {
|
|
130
130
|
ranges.push({offset: indexes[i], length: 1});
|
|
@@ -151,7 +151,7 @@ export class FilteredUISourceCodeListProvider extends QuickOpen.FilteredListWidg
|
|
|
151
151
|
first.textContent = text.substring(0, splitPosition);
|
|
152
152
|
const second = element.createChild('div', 'second-part');
|
|
153
153
|
second.textContent = text.substring(splitPosition);
|
|
154
|
-
|
|
154
|
+
UI.Tooltip.Tooltip.install((element as HTMLElement), text);
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
selectItem(itemIndex: number|null, promptValue: string): void {
|