chrome-devtools-frontend 1.0.950850 → 1.0.952284
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/.eslintrc.js +6 -0
- 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/formatter_worker/AcornTokenizer.ts +36 -36
- package/front_end/entrypoints/formatter_worker/CSSFormatter.ts +53 -53
- package/front_end/entrypoints/formatter_worker/ESTreeWalker.ts +11 -11
- package/front_end/entrypoints/formatter_worker/FormattedContentBuilder.ts +43 -43
- package/front_end/entrypoints/formatter_worker/HTMLFormatter.ts +106 -105
- package/front_end/entrypoints/formatter_worker/JavaScriptFormatter.ts +26 -26
- package/front_end/entrypoints/heap_snapshot_worker/AllocationProfile.ts +51 -56
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +201 -204
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshotLoader.ts +84 -83
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshotWorkerDispatcher.ts +16 -16
- package/front_end/entrypoints/inspector_main/InspectorMain.ts +21 -21
- package/front_end/entrypoints/main/ExecutionContextSelector.ts +30 -30
- package/front_end/entrypoints/main/MainImpl.ts +12 -12
- package/front_end/entrypoints/node_app/NodeConnectionsPanel.ts +33 -33
- package/front_end/entrypoints/node_app/NodeMain.ts +35 -35
- package/front_end/generated/InspectorBackendCommands.js +5 -1
- package/front_end/generated/protocol.d.ts +16 -0
- 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/ContentSecurityPolicyIssue.ts +6 -6
- package/front_end/models/issues_manager/ContrastCheckTrigger.ts +15 -15
- package/front_end/models/issues_manager/CorsIssue.ts +9 -9
- package/front_end/models/issues_manager/CrossOriginEmbedderPolicyIssue.ts +5 -5
- package/front_end/models/issues_manager/DeprecationIssue.ts +7 -7
- package/front_end/models/issues_manager/GenericIssue.ts +5 -5
- package/front_end/models/issues_manager/HeavyAdIssue.ts +5 -5
- package/front_end/models/issues_manager/Issue.ts +10 -10
- package/front_end/models/issues_manager/IssueResolver.ts +11 -10
- package/front_end/models/issues_manager/IssuesManager.ts +56 -56
- package/front_end/models/issues_manager/LowTextContrastIssue.ts +4 -4
- package/front_end/models/issues_manager/MixedContentIssue.ts +7 -7
- package/front_end/models/issues_manager/NavigatorUserAgentIssue.ts +7 -7
- package/front_end/models/issues_manager/QuirksModeIssue.ts +4 -4
- package/front_end/models/issues_manager/SameSiteCookieIssue.ts +17 -18
- package/front_end/models/issues_manager/SharedArrayBufferIssue.ts +5 -5
- package/front_end/models/issues_manager/SourceFrameIssuesManager.ts +32 -31
- package/front_end/models/issues_manager/TrustedWebActivityIssue.ts +5 -5
- package/front_end/models/issues_manager/WasmCrossOriginModuleSharingIssue.ts +5 -5
- 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} +96 -62
- package/front_end/panels/application/components/EndpointsGrid.ts +12 -12
- package/front_end/panels/application/components/FrameDetailsView.ts +108 -110
- package/front_end/panels/application/components/OriginTrialTreeView.ts +45 -45
- package/front_end/panels/application/components/PermissionsPolicySection.ts +19 -19
- package/front_end/panels/application/components/ReportsGrid.ts +30 -30
- package/front_end/panels/application/components/StackTrace.ts +48 -47
- package/front_end/panels/application/components/TrustTokensView.ts +31 -31
- 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/css_overview/CSSOverviewCompletedView.ts +41 -52
- package/front_end/panels/css_overview/CSSOverviewController.ts +2 -2
- package/front_end/panels/css_overview/CSSOverviewPanel.ts +18 -27
- package/front_end/panels/css_overview/CSSOverviewProcessingView.ts +2 -2
- package/front_end/panels/css_overview/CSSOverviewSidebarPanel.ts +6 -6
- package/front_end/panels/css_overview/components/CSSOverviewStartView.ts +4 -4
- 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/elements/components/AccessibilityTreeNode.ts +17 -17
- package/front_end/panels/elements/components/AdornerManager.ts +21 -21
- package/front_end/panels/elements/components/AdornerSettingsPane.ts +14 -14
- package/front_end/panels/elements/components/CSSQuery.ts +16 -16
- package/front_end/panels/elements/components/ComputedStyleProperty.ts +14 -14
- package/front_end/panels/elements/components/ComputedStyleTrace.ts +15 -15
- package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +78 -78
- package/front_end/panels/elements/components/ElementsPanelLink.ts +16 -16
- package/front_end/panels/elements/components/LayoutPane.ts +47 -47
- package/front_end/panels/elements/components/NodeText.ts +18 -18
- package/front_end/panels/elements/components/QueryContainer.ts +40 -40
- package/front_end/panels/elements/components/StylePropertyEditor.ts +18 -18
- package/front_end/panels/emulation/components/DeviceSizeInputElement.ts +4 -4
- package/front_end/panels/event_listeners/EventListenersUtils.ts +2 -1
- package/front_end/panels/issues/AffectedBlockedByResponseView.ts +4 -4
- package/front_end/panels/issues/AffectedCookiesView.ts +4 -5
- package/front_end/panels/issues/AffectedDirectivesView.ts +19 -19
- package/front_end/panels/issues/AffectedDocumentsInQuirksModeView.ts +7 -8
- package/front_end/panels/issues/AffectedElementsView.ts +4 -4
- package/front_end/panels/issues/AffectedElementsWithLowContrastView.ts +7 -8
- package/front_end/panels/issues/AffectedHeavyAdView.ts +8 -8
- package/front_end/panels/issues/AffectedResourcesView.ts +25 -26
- package/front_end/panels/issues/AffectedSharedArrayBufferIssueDetailsView.ts +8 -8
- package/front_end/panels/issues/AffectedSourcesView.ts +4 -4
- package/front_end/panels/issues/AffectedTrustedWebActivityIssueDetailsView.ts +4 -4
- package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +17 -17
- package/front_end/panels/issues/CSPViolationsListView.ts +22 -23
- package/front_end/panels/issues/CSPViolationsView.ts +17 -17
- package/front_end/panels/issues/ComboBoxOfCheckBoxes.ts +13 -13
- package/front_end/panels/issues/CorsIssueDetailsView.ts +23 -23
- package/front_end/panels/issues/GenericIssueDetailsView.ts +4 -4
- package/front_end/panels/issues/HiddenIssuesRow.ts +7 -7
- package/front_end/panels/issues/IssueAggregator.ts +95 -95
- package/front_end/panels/issues/IssueKindView.ts +14 -14
- package/front_end/panels/issues/IssueView.ts +98 -98
- package/front_end/panels/issues/IssuesPane.ts +102 -102
- package/front_end/panels/issues/WasmCrossOriginModuleSharingAffectedResourcesView.ts +5 -5
- package/front_end/panels/issues/components/HideIssuesMenu.ts +10 -10
- package/front_end/panels/layer_viewer/Layers3DView.ts +3 -9
- package/front_end/panels/lighthouse/LighthouseController.ts +4 -5
- package/front_end/panels/media/PlayerListView.ts +160 -97
- package/front_end/panels/media/PlayerMessagesView.ts +1 -0
- package/front_end/panels/media/TickingFlameChart.ts +1 -2
- package/front_end/panels/media/playerListView.css +58 -0
- package/front_end/panels/network/NetworkLogView.ts +2 -6
- package/front_end/panels/network/NetworkLogViewColumns.ts +1 -1
- package/front_end/panels/network/NetworkWaterfallColumn.ts +2 -4
- package/front_end/panels/network/components/RequestTrustTokensView.ts +40 -40
- package/front_end/panels/network/components/WebBundleInfoView.ts +9 -9
- package/front_end/panels/performance_monitor/PerformanceMonitor.ts +6 -12
- 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/components/SyncSection.ts +14 -14
- package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +96 -96
- package/front_end/panels/settings/settingsScreen.css +8 -3
- package/front_end/panels/sources/BreakpointEditDialog.ts +4 -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/panels/timeline/components/WebVitalsLane.ts +77 -76
- package/front_end/panels/timeline/components/WebVitalsTimeline.ts +133 -133
- package/front_end/panels/timeline/components/WebVitalsTooltip.ts +9 -9
- package/front_end/panels/webauthn/WebauthnPane.ts +203 -205
- 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/adorners/Adorner.ts +2 -2
- package/front_end/ui/components/buttons/Button.ts +9 -9
- package/front_end/ui/components/data_grid/DataGrid.ts +62 -62
- package/front_end/ui/components/data_grid/DataGridController.ts +22 -22
- package/front_end/ui/components/diff_view/DiffView.ts +6 -6
- package/front_end/ui/components/expandable_list/ExpandableList.ts +5 -5
- package/front_end/ui/components/icon_button/Icon.ts +4 -4
- package/front_end/ui/components/icon_button/IconButton.ts +4 -4
- package/front_end/ui/components/issue_counter/IssueCounter.ts +3 -3
- package/front_end/ui/components/issue_counter/IssueLinkIcon.ts +11 -11
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspector.ts +50 -50
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorController.ts +6 -6
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorPane.ts +4 -4
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryNavigator.ts +12 -12
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryValueInterpreter.ts +11 -11
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryViewer.ts +40 -39
- package/front_end/ui/components/linear_memory_inspector/ValueInterpreterDisplay.ts +18 -18
- package/front_end/ui/components/linear_memory_inspector/ValueInterpreterSettings.ts +6 -6
- package/front_end/ui/components/linkifier/LinkifierImpl.ts +4 -4
- package/front_end/ui/components/markdown_view/MarkdownImage.ts +5 -5
- package/front_end/ui/components/markdown_view/MarkdownLink.ts +2 -2
- package/front_end/ui/components/markdown_view/MarkdownView.ts +4 -5
- package/front_end/ui/components/panel_feedback/FeedbackButton.ts +2 -2
- package/front_end/ui/components/panel_feedback/PanelFeedback.ts +2 -2
- package/front_end/ui/components/panel_feedback/PreviewToggle.ts +4 -4
- package/front_end/ui/components/render_coordinator/RenderCoordinator.ts +22 -22
- package/front_end/ui/components/report_view/ReportView.ts +16 -16
- package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +14 -14
- package/front_end/ui/components/settings/SettingCheckbox.ts +5 -5
- package/front_end/ui/components/survey_link/SurveyLink.ts +8 -8
- package/front_end/ui/components/text_editor/TextEditor.ts +9 -9
- package/front_end/ui/components/text_editor/cursor_tooltip.ts +7 -1
- package/front_end/ui/components/text_prompt/TextPrompt.ts +18 -18
- package/front_end/ui/components/tree_outline/TreeOutline.ts +69 -70
- 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/themeColors.css +2 -0
- package/front_end/ui/legacy/theme_support/theme_support_impl.ts +24 -1
- package/inspector_overlay/main.ts +16 -2
- package/package.json +1 -1
- package/scripts/eslint_rules/lib/use_private_class_members.js +41 -0
- package/scripts/eslint_rules/tests/use_private_class_members_test.js +62 -0
- package/scripts/migration/class-fields/migrate.js +2 -3
- package/scripts/migration/class-fields/migrate.sh +1 -3
- package/scripts/migration/class-fields/package.json +1 -1
|
@@ -71,31 +71,31 @@ export interface BadgeData {
|
|
|
71
71
|
|
|
72
72
|
export class Badge extends HTMLElement {
|
|
73
73
|
static readonly litTagName = LitHtml.literal`devtools-resources-origin-trial-tree-view-badge`;
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
readonly #shadow = this.attachShadow({mode: 'open'});
|
|
75
|
+
#adorner = new Adorners.Adorner.Adorner();
|
|
76
76
|
|
|
77
77
|
set data(data: BadgeData) {
|
|
78
|
-
this
|
|
78
|
+
this.#render(data);
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
connectedCallback(): void {
|
|
82
|
-
this
|
|
82
|
+
this.#shadow.adoptedStyleSheets = [badgeStyles];
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
#render(data: BadgeData): void {
|
|
86
86
|
const adornerContent = document.createElement('span');
|
|
87
87
|
adornerContent.textContent = data.badgeContent;
|
|
88
|
-
this
|
|
88
|
+
this.#adorner.data = {
|
|
89
89
|
name: 'badge',
|
|
90
90
|
content: adornerContent,
|
|
91
91
|
};
|
|
92
|
-
this
|
|
92
|
+
this.#adorner.classList.add(`badge-${data.style}`);
|
|
93
93
|
|
|
94
94
|
LitHtml.render(
|
|
95
95
|
LitHtml.html`
|
|
96
|
-
${this
|
|
96
|
+
${this.#adorner}
|
|
97
97
|
`,
|
|
98
|
-
this
|
|
98
|
+
this.#shadow, {host: this});
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
|
|
@@ -210,73 +210,73 @@ export interface OriginTrialTokenRowsData {
|
|
|
210
210
|
|
|
211
211
|
export class OriginTrialTokenRows extends HTMLElement {
|
|
212
212
|
static readonly litTagName = LitHtml.literal`devtools-resources-origin-trial-token-rows`;
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
213
|
+
readonly #shadow = this.attachShadow({mode: 'open'});
|
|
214
|
+
#tokenWithStatus: Protocol.Page.OriginTrialTokenWithStatus|null = null;
|
|
215
|
+
#parsedTokenDetails: TokenField[] = [];
|
|
216
|
+
#dateFormatter: Intl.DateTimeFormat = new Intl.DateTimeFormat(
|
|
217
217
|
i18n.DevToolsLocale.DevToolsLocale.instance().locale,
|
|
218
218
|
{dateStyle: 'long', timeStyle: 'long'},
|
|
219
219
|
);
|
|
220
220
|
|
|
221
221
|
set data(data: OriginTrialTokenRowsData) {
|
|
222
|
-
this
|
|
223
|
-
this
|
|
222
|
+
this.#tokenWithStatus = data.node.treeNodeData as Protocol.Page.OriginTrialTokenWithStatus;
|
|
223
|
+
this.#setTokenFields();
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
connectedCallback(): void {
|
|
227
|
-
this
|
|
228
|
-
this
|
|
227
|
+
this.#shadow.adoptedStyleSheets = [originTrialTokenRowsStyles];
|
|
228
|
+
this.#render();
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
|
|
231
|
+
#renderTokenField = (fieldValue: string, hasError?: boolean): LitHtml.TemplateResult => LitHtml.html`
|
|
232
232
|
<div class=${LitHtml.Directives.ifDefined(hasError ? 'error-text' : undefined)}>
|
|
233
233
|
${fieldValue}
|
|
234
234
|
</div>`;
|
|
235
235
|
|
|
236
|
-
|
|
237
|
-
if (!this
|
|
236
|
+
#setTokenFields(): void {
|
|
237
|
+
if (!this.#tokenWithStatus?.parsedToken) {
|
|
238
238
|
return;
|
|
239
239
|
}
|
|
240
|
-
this
|
|
240
|
+
this.#parsedTokenDetails = [
|
|
241
241
|
{
|
|
242
242
|
name: i18nString(UIStrings.origin),
|
|
243
|
-
value: this
|
|
244
|
-
this
|
|
245
|
-
this
|
|
243
|
+
value: this.#renderTokenField(
|
|
244
|
+
this.#tokenWithStatus.parsedToken.origin,
|
|
245
|
+
this.#tokenWithStatus.status === Protocol.Page.OriginTrialTokenStatus.WrongOrigin),
|
|
246
246
|
},
|
|
247
247
|
{
|
|
248
248
|
name: i18nString(UIStrings.expiryTime),
|
|
249
|
-
value: this
|
|
250
|
-
this
|
|
251
|
-
this
|
|
249
|
+
value: this.#renderTokenField(
|
|
250
|
+
this.#dateFormatter.format(this.#tokenWithStatus.parsedToken.expiryTime * 1000),
|
|
251
|
+
this.#tokenWithStatus.status === Protocol.Page.OriginTrialTokenStatus.Expired),
|
|
252
252
|
},
|
|
253
253
|
{
|
|
254
254
|
name: i18nString(UIStrings.usageRestriction),
|
|
255
|
-
value: this
|
|
255
|
+
value: this.#renderTokenField(this.#tokenWithStatus.parsedToken.usageRestriction),
|
|
256
256
|
},
|
|
257
257
|
{
|
|
258
258
|
name: i18nString(UIStrings.isThirdParty),
|
|
259
|
-
value: this
|
|
259
|
+
value: this.#renderTokenField(this.#tokenWithStatus.parsedToken.isThirdParty.toString()),
|
|
260
260
|
},
|
|
261
261
|
{
|
|
262
262
|
name: i18nString(UIStrings.matchSubDomains),
|
|
263
|
-
value: this
|
|
263
|
+
value: this.#renderTokenField(this.#tokenWithStatus.parsedToken.matchSubDomains.toString()),
|
|
264
264
|
},
|
|
265
265
|
];
|
|
266
266
|
|
|
267
|
-
if (this
|
|
268
|
-
this
|
|
267
|
+
if (this.#tokenWithStatus.status === Protocol.Page.OriginTrialTokenStatus.UnknownTrial) {
|
|
268
|
+
this.#parsedTokenDetails = [
|
|
269
269
|
{
|
|
270
270
|
name: i18nString(UIStrings.trialName),
|
|
271
|
-
value: this
|
|
271
|
+
value: this.#renderTokenField(this.#tokenWithStatus.parsedToken.trialName),
|
|
272
272
|
},
|
|
273
|
-
...this
|
|
273
|
+
...this.#parsedTokenDetails,
|
|
274
274
|
];
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
-
|
|
279
|
-
if (!this
|
|
278
|
+
#render(): void {
|
|
279
|
+
if (!this.#tokenWithStatus) {
|
|
280
280
|
return;
|
|
281
281
|
}
|
|
282
282
|
|
|
@@ -285,11 +285,11 @@ export class OriginTrialTokenRows extends HTMLElement {
|
|
|
285
285
|
name: i18nString(UIStrings.status),
|
|
286
286
|
value: LitHtml.html`
|
|
287
287
|
<${Badge.litTagName} .data=${{
|
|
288
|
-
badgeContent: this
|
|
289
|
-
style: this
|
|
288
|
+
badgeContent: this.#tokenWithStatus.status,
|
|
289
|
+
style: this.#tokenWithStatus.status === Protocol.Page.OriginTrialTokenStatus.Success ? 'success' : 'error',
|
|
290
290
|
} as BadgeData}></${Badge.litTagName}>`,
|
|
291
291
|
},
|
|
292
|
-
...this
|
|
292
|
+
...this.#parsedTokenDetails,
|
|
293
293
|
];
|
|
294
294
|
|
|
295
295
|
const tokenDetailRows = tokenDetails.map((field: TokenField): LitHtml.TemplateResult => {
|
|
@@ -305,7 +305,7 @@ export class OriginTrialTokenRows extends HTMLElement {
|
|
|
305
305
|
${tokenDetailRows}
|
|
306
306
|
</div>
|
|
307
307
|
`,
|
|
308
|
-
this
|
|
308
|
+
this.#shadow, {host: this});
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
|
|
@@ -317,17 +317,17 @@ export interface OriginTrialTreeViewData {
|
|
|
317
317
|
|
|
318
318
|
export class OriginTrialTreeView extends HTMLElement {
|
|
319
319
|
static readonly litTagName = LitHtml.literal`devtools-resources-origin-trial-tree-view`;
|
|
320
|
-
|
|
320
|
+
readonly #shadow = this.attachShadow({mode: 'open'});
|
|
321
321
|
|
|
322
322
|
set data(data: OriginTrialTreeViewData) {
|
|
323
|
-
this
|
|
323
|
+
this.#render(data.trials);
|
|
324
324
|
}
|
|
325
325
|
|
|
326
326
|
connectedCallback(): void {
|
|
327
|
-
this
|
|
327
|
+
this.#shadow.adoptedStyleSheets = [originTrialTreeViewStyles];
|
|
328
328
|
}
|
|
329
329
|
|
|
330
|
-
|
|
330
|
+
#render(trials: Protocol.Page.OriginTrial[]): void {
|
|
331
331
|
if (!trials.length) {
|
|
332
332
|
return;
|
|
333
333
|
}
|
|
@@ -340,7 +340,7 @@ export class OriginTrialTreeView extends HTMLElement {
|
|
|
340
340
|
} as TreeOutline.TreeOutline.TreeOutlineData<OriginTrialTreeNodeData>}>
|
|
341
341
|
</${TreeOutline.TreeOutline.TreeOutline.litTagName}>
|
|
342
342
|
`,
|
|
343
|
-
this
|
|
343
|
+
this.#shadow, {host: this});
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
|
|
@@ -84,25 +84,25 @@ export function renderIconLink(
|
|
|
84
84
|
|
|
85
85
|
export class PermissionsPolicySection extends HTMLElement {
|
|
86
86
|
static readonly litTagName = LitHtml.literal`devtools-resources-permissions-policy-section`;
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
readonly #shadow = this.attachShadow({mode: 'open'});
|
|
88
|
+
#permissionsPolicySectionData: PermissionsPolicySectionData = {policies: [], showDetails: false};
|
|
89
89
|
|
|
90
90
|
set data(data: PermissionsPolicySectionData) {
|
|
91
|
-
this
|
|
92
|
-
this
|
|
91
|
+
this.#permissionsPolicySectionData = data;
|
|
92
|
+
this.#render();
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
connectedCallback(): void {
|
|
96
|
-
this
|
|
96
|
+
this.#shadow.adoptedStyleSheets = [permissionsPolicySectionStyles];
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
|
|
100
|
-
this
|
|
101
|
-
this
|
|
99
|
+
#toggleShowPermissionsDisallowedDetails(): void {
|
|
100
|
+
this.#permissionsPolicySectionData.showDetails = !this.#permissionsPolicySectionData.showDetails;
|
|
101
|
+
this.#render();
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
|
|
105
|
-
const allowed = this
|
|
104
|
+
#renderAllowed(): LitHtml.TemplateResult|{} {
|
|
105
|
+
const allowed = this.#permissionsPolicySectionData.policies.filter(p => p.allowed).map(p => p.feature).sort();
|
|
106
106
|
if (!allowed.length) {
|
|
107
107
|
return LitHtml.nothing;
|
|
108
108
|
}
|
|
@@ -115,19 +115,19 @@ export class PermissionsPolicySection extends HTMLElement {
|
|
|
115
115
|
`;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
|
|
119
|
-
const disallowed = this
|
|
118
|
+
async #renderDisallowed(): Promise<LitHtml.TemplateResult|{}> {
|
|
119
|
+
const disallowed = this.#permissionsPolicySectionData.policies.filter(p => !p.allowed)
|
|
120
120
|
.sort((a, b) => a.feature.localeCompare(b.feature));
|
|
121
121
|
if (!disallowed.length) {
|
|
122
122
|
return LitHtml.nothing;
|
|
123
123
|
}
|
|
124
|
-
if (!this
|
|
124
|
+
if (!this.#permissionsPolicySectionData.showDetails) {
|
|
125
125
|
return LitHtml.html`
|
|
126
126
|
<${ReportView.ReportView.ReportKey.litTagName}>${i18nString(UIStrings.disabledFeatures)}</${
|
|
127
127
|
ReportView.ReportView.ReportKey.litTagName}>
|
|
128
128
|
<${ReportView.ReportView.ReportValue.litTagName}>
|
|
129
129
|
${disallowed.map(p => p.feature).join(', ')}
|
|
130
|
-
<button class="link" @click=${(): void => this
|
|
130
|
+
<button class="link" @click=${(): void => this.#toggleShowPermissionsDisallowedDetails()}>
|
|
131
131
|
${i18nString(UIStrings.showDetails)}
|
|
132
132
|
</button>
|
|
133
133
|
</${ReportView.ReportView.ReportValue.litTagName}>
|
|
@@ -198,7 +198,7 @@ export class PermissionsPolicySection extends HTMLElement {
|
|
|
198
198
|
<${ReportView.ReportView.ReportValue.litTagName} class="policies-list">
|
|
199
199
|
${featureRows}
|
|
200
200
|
<div class="permissions-row">
|
|
201
|
-
<button class="link" @click=${(): void => this
|
|
201
|
+
<button class="link" @click=${(): void => this.#toggleShowPermissionsDisallowedDetails()}>
|
|
202
202
|
${i18nString(UIStrings.hideDetails)}
|
|
203
203
|
</button>
|
|
204
204
|
</div>
|
|
@@ -206,7 +206,7 @@ export class PermissionsPolicySection extends HTMLElement {
|
|
|
206
206
|
`;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
|
|
209
|
+
async #render(): Promise<void> {
|
|
210
210
|
await coordinator.write('PermissionsPolicySection render', () => {
|
|
211
211
|
// Disabled until https://crbug.com/1079231 is fixed.
|
|
212
212
|
// clang-format off
|
|
@@ -214,12 +214,12 @@ export class PermissionsPolicySection extends HTMLElement {
|
|
|
214
214
|
LitHtml.html`
|
|
215
215
|
<${ReportView.ReportView.ReportSectionHeader.litTagName}>${i18n.i18n.lockedString('Permissions Policy')}</${
|
|
216
216
|
ReportView.ReportView.ReportSectionHeader.litTagName}>
|
|
217
|
-
${this
|
|
218
|
-
${LitHtml.Directives.until(this
|
|
217
|
+
${this.#renderAllowed()}
|
|
218
|
+
${LitHtml.Directives.until(this.#renderDisallowed(), LitHtml.nothing)}
|
|
219
219
|
<${ReportView.ReportView.ReportSectionDivider.litTagName}></${
|
|
220
220
|
ReportView.ReportView.ReportSectionDivider.litTagName}>
|
|
221
221
|
`,
|
|
222
|
-
this
|
|
222
|
+
this.#shadow, {host: this},
|
|
223
223
|
);
|
|
224
224
|
// clang-format on
|
|
225
225
|
});
|
|
@@ -27,14 +27,14 @@ const {render, html} = LitHtml;
|
|
|
27
27
|
|
|
28
28
|
export class ReportsGridStatusHeader extends HTMLElement {
|
|
29
29
|
static readonly litTagName = LitHtml.literal`devtools-resources-reports-grid-status-header`;
|
|
30
|
-
|
|
30
|
+
readonly #shadow = this.attachShadow({mode: 'open'});
|
|
31
31
|
|
|
32
32
|
connectedCallback(): void {
|
|
33
|
-
this
|
|
34
|
-
this
|
|
33
|
+
this.#shadow.adoptedStyleSheets = [reportingApiGridStyles];
|
|
34
|
+
this.#render();
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
#render(): void {
|
|
38
38
|
// Disabled until https://crbug.com/1079231 is fixed.
|
|
39
39
|
// clang-format off
|
|
40
40
|
render(html`
|
|
@@ -47,7 +47,7 @@ export class ReportsGridStatusHeader extends HTMLElement {
|
|
|
47
47
|
height: '16px',
|
|
48
48
|
} as IconButton.Icon.IconData}></${IconButton.Icon.Icon.litTagName}>
|
|
49
49
|
</x-link>
|
|
50
|
-
`, this
|
|
50
|
+
`, this.#shadow, {host: this});
|
|
51
51
|
// clang-format on
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -59,22 +59,22 @@ export interface ReportsGridData {
|
|
|
59
59
|
export class ReportsGrid extends HTMLElement {
|
|
60
60
|
static readonly litTagName = LitHtml.literal`devtools-resources-reports-grid`;
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
readonly #shadow = this.attachShadow({mode: 'open'});
|
|
63
|
+
#reports: Protocol.Network.ReportingApiReport[] = [];
|
|
64
|
+
#protocolMonitorExperimentEnabled = false;
|
|
65
65
|
|
|
66
66
|
connectedCallback(): void {
|
|
67
|
-
this
|
|
68
|
-
this
|
|
69
|
-
this
|
|
67
|
+
this.#shadow.adoptedStyleSheets = [reportingApiGridStyles];
|
|
68
|
+
this.#protocolMonitorExperimentEnabled = Root.Runtime.experiments.isEnabled('protocolMonitor');
|
|
69
|
+
this.#render();
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
set data(data: ReportsGridData) {
|
|
73
|
-
this
|
|
74
|
-
this
|
|
73
|
+
this.#reports = data.reports;
|
|
74
|
+
this.#render();
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
#render(): void {
|
|
78
78
|
const reportsGridData: DataGrid.DataGridController.DataGridControllerData = {
|
|
79
79
|
columns: [
|
|
80
80
|
{
|
|
@@ -123,10 +123,10 @@ export class ReportsGrid extends HTMLElement {
|
|
|
123
123
|
visible: true,
|
|
124
124
|
},
|
|
125
125
|
],
|
|
126
|
-
rows: this
|
|
126
|
+
rows: this.#buildReportRows(),
|
|
127
127
|
};
|
|
128
128
|
|
|
129
|
-
if (this
|
|
129
|
+
if (this.#protocolMonitorExperimentEnabled) {
|
|
130
130
|
reportsGridData.columns.unshift(
|
|
131
131
|
{id: 'id', title: 'ID', widthWeighting: 30, hideable: false, visible: true},
|
|
132
132
|
);
|
|
@@ -137,7 +137,7 @@ export class ReportsGrid extends HTMLElement {
|
|
|
137
137
|
render(html`
|
|
138
138
|
<div class="reporting-container">
|
|
139
139
|
<div class="reporting-header">${i18n.i18n.lockedString('Reports')}</div>
|
|
140
|
-
${this
|
|
140
|
+
${this.#reports.length > 0 ? html`
|
|
141
141
|
<${DataGrid.DataGridController.DataGridController.litTagName} .data=${
|
|
142
142
|
reportsGridData as DataGrid.DataGridController.DataGridControllerData}>
|
|
143
143
|
</${DataGrid.DataGridController.DataGridController.litTagName}>
|
|
@@ -147,22 +147,22 @@ export class ReportsGrid extends HTMLElement {
|
|
|
147
147
|
</div>
|
|
148
148
|
`}
|
|
149
149
|
</div>
|
|
150
|
-
`, this
|
|
150
|
+
`, this.#shadow, {host: this});
|
|
151
151
|
// clang-format on
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
|
|
155
|
-
return this
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
154
|
+
#buildReportRows(): DataGrid.DataGridUtils.Row[] {
|
|
155
|
+
return this.#reports.map(report => ({
|
|
156
|
+
cells: [
|
|
157
|
+
{columnId: 'id', value: report.id},
|
|
158
|
+
{columnId: 'url', value: report.initiatorUrl},
|
|
159
|
+
{columnId: 'type', value: report.type},
|
|
160
|
+
{columnId: 'status', value: report.status},
|
|
161
|
+
{columnId: 'destination', value: report.destination},
|
|
162
|
+
{columnId: 'timestamp', value: new Date(report.timestamp * 1000).toLocaleString()},
|
|
163
|
+
{columnId: 'body', value: JSON.stringify(report.body)},
|
|
164
|
+
],
|
|
165
|
+
}));
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
|
|
@@ -44,38 +44,38 @@ interface StackTraceRowData {
|
|
|
44
44
|
|
|
45
45
|
export class StackTraceRow extends HTMLElement {
|
|
46
46
|
static readonly litTagName = LitHtml.literal`devtools-stack-trace-row`;
|
|
47
|
-
|
|
47
|
+
readonly #shadow = this.attachShadow({mode: 'open'});
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
#stackTraceRowItem: Components.JSPresentationUtils.StackTraceRegularRow|null = null;
|
|
50
50
|
|
|
51
51
|
set data(data: StackTraceRowData) {
|
|
52
|
-
this
|
|
53
|
-
this
|
|
52
|
+
this.#stackTraceRowItem = data.stackTraceRowItem;
|
|
53
|
+
this.#render();
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
connectedCallback(): void {
|
|
57
|
-
this
|
|
57
|
+
this.#shadow.adoptedStyleSheets = [stackTraceRowStyles];
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
if (!this
|
|
60
|
+
#render(): void {
|
|
61
|
+
if (!this.#stackTraceRowItem) {
|
|
62
62
|
return;
|
|
63
63
|
}
|
|
64
64
|
LitHtml.render(
|
|
65
65
|
LitHtml.html`
|
|
66
66
|
<div class="stack-trace-row">
|
|
67
|
-
<div class="stack-trace-function-name text-ellipsis" title=${this
|
|
68
|
-
${this
|
|
67
|
+
<div class="stack-trace-function-name text-ellipsis" title=${this.#stackTraceRowItem.functionName}>
|
|
68
|
+
${this.#stackTraceRowItem.functionName}
|
|
69
69
|
</div>
|
|
70
70
|
<div class="stack-trace-source-location">
|
|
71
71
|
${
|
|
72
|
-
this
|
|
73
|
-
LitHtml.html`<div class="text-ellipsis">\xA0@\xA0${this
|
|
72
|
+
this.#stackTraceRowItem.link ?
|
|
73
|
+
LitHtml.html`<div class="text-ellipsis">\xA0@\xA0${this.#stackTraceRowItem.link}</div>` :
|
|
74
74
|
LitHtml.nothing}
|
|
75
75
|
</div>
|
|
76
76
|
</div>
|
|
77
77
|
`,
|
|
78
|
-
this
|
|
78
|
+
this.#shadow, {host: this});
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
|
|
@@ -86,75 +86,76 @@ interface StackTraceLinkButtonData {
|
|
|
86
86
|
|
|
87
87
|
export class StackTraceLinkButton extends HTMLElement {
|
|
88
88
|
static readonly litTagName = LitHtml.literal`devtools-stack-trace-link-button`;
|
|
89
|
-
|
|
89
|
+
readonly #shadow = this.attachShadow({mode: 'open'});
|
|
90
90
|
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
#onShowAllClick: () => void = () => {};
|
|
92
|
+
#hiddenCallFramesCount: number|null = null;
|
|
93
93
|
|
|
94
94
|
set data(data: StackTraceLinkButtonData) {
|
|
95
|
-
this
|
|
96
|
-
this
|
|
97
|
-
this
|
|
95
|
+
this.#onShowAllClick = data.onShowAllClick;
|
|
96
|
+
this.#hiddenCallFramesCount = data.hiddenCallFramesCount;
|
|
97
|
+
this.#render();
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
connectedCallback(): void {
|
|
101
|
-
this
|
|
101
|
+
this.#shadow.adoptedStyleSheets = [stackTraceLinkButtonStyles];
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
|
|
105
|
-
if (!this
|
|
104
|
+
#render(): void {
|
|
105
|
+
if (!this.#hiddenCallFramesCount) {
|
|
106
106
|
return;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
LitHtml.render(
|
|
110
110
|
LitHtml.html`
|
|
111
111
|
<div class="stack-trace-row">
|
|
112
|
-
<button class="link" @click=${(): void => this
|
|
112
|
+
<button class="link" @click=${(): void => this.#onShowAllClick()}>
|
|
113
113
|
${i18nString(UIStrings.showSMoreFrames, {
|
|
114
|
-
n: this
|
|
114
|
+
n: this.#hiddenCallFramesCount,
|
|
115
115
|
})}
|
|
116
116
|
</button>
|
|
117
117
|
</div>
|
|
118
118
|
`,
|
|
119
|
-
this
|
|
119
|
+
this.#shadow, {host: this});
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
export class StackTrace extends HTMLElement {
|
|
124
124
|
static readonly litTagName = LitHtml.literal`devtools-resources-stack-trace`;
|
|
125
125
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
126
|
+
readonly #shadow = this.attachShadow({mode: 'open'});
|
|
127
|
+
readonly #linkifier = new Components.Linkifier.Linkifier();
|
|
128
|
+
#stackTraceRows: (Components.JSPresentationUtils.StackTraceRegularRow|
|
|
129
|
+
Components.JSPresentationUtils.StackTraceAsyncRow)[] = [];
|
|
130
|
+
#showHidden = false;
|
|
131
131
|
|
|
132
132
|
set data(data: StackTraceData) {
|
|
133
133
|
const frame = data.frame;
|
|
134
134
|
const {creationStackTrace, creationStackTraceTarget} = frame.getCreationStackTraceData();
|
|
135
135
|
if (creationStackTrace) {
|
|
136
|
-
this
|
|
137
|
-
creationStackTrace, creationStackTraceTarget, this
|
|
136
|
+
this.#stackTraceRows = data.buildStackTraceRows(
|
|
137
|
+
creationStackTrace, creationStackTraceTarget, this.#linkifier, true,
|
|
138
|
+
this.#onStackTraceRowsUpdated.bind(this));
|
|
138
139
|
}
|
|
139
|
-
this
|
|
140
|
+
this.#render();
|
|
140
141
|
}
|
|
141
142
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
this
|
|
145
|
-
this
|
|
143
|
+
#onStackTraceRowsUpdated(stackTraceRows: (Components.JSPresentationUtils.StackTraceRegularRow|
|
|
144
|
+
Components.JSPresentationUtils.StackTraceAsyncRow)[]): void {
|
|
145
|
+
this.#stackTraceRows = stackTraceRows;
|
|
146
|
+
this.#render();
|
|
146
147
|
}
|
|
147
148
|
|
|
148
|
-
|
|
149
|
-
this
|
|
150
|
-
this
|
|
149
|
+
#onShowAllClick(): void {
|
|
150
|
+
this.#showHidden = true;
|
|
151
|
+
this.#render();
|
|
151
152
|
}
|
|
152
153
|
|
|
153
154
|
createRowTemplates(): LitHtml.TemplateResult[] {
|
|
154
155
|
const expandableRows = [];
|
|
155
156
|
let hiddenCallFramesCount = 0;
|
|
156
|
-
for (const item of this
|
|
157
|
-
if (this
|
|
157
|
+
for (const item of this.#stackTraceRows) {
|
|
158
|
+
if (this.#showHidden || (!item.ignoreListHide && !item.rowCountHide)) {
|
|
158
159
|
if ('functionName' in item) {
|
|
159
160
|
expandableRows.push(LitHtml.html`
|
|
160
161
|
<${StackTraceRow.litTagName} data-stack-trace-row .data=${{
|
|
@@ -167,7 +168,7 @@ export class StackTrace extends HTMLElement {
|
|
|
167
168
|
`);
|
|
168
169
|
}
|
|
169
170
|
}
|
|
170
|
-
if (!this
|
|
171
|
+
if (!this.#showHidden && 'functionName' in item && (item.ignoreListHide || item.rowCountHide)) {
|
|
171
172
|
hiddenCallFramesCount++;
|
|
172
173
|
}
|
|
173
174
|
}
|
|
@@ -175,7 +176,7 @@ export class StackTrace extends HTMLElement {
|
|
|
175
176
|
// Disabled until https://crbug.com/1079231 is fixed.
|
|
176
177
|
// clang-format off
|
|
177
178
|
expandableRows.push(LitHtml.html`
|
|
178
|
-
<${StackTraceLinkButton.litTagName} data-stack-trace-row .data=${{onShowAllClick: this
|
|
179
|
+
<${StackTraceLinkButton.litTagName} data-stack-trace-row .data=${{onShowAllClick: this.#onShowAllClick.bind(this), hiddenCallFramesCount: hiddenCallFramesCount} as StackTraceLinkButtonData}></${StackTraceLinkButton.litTagName}>
|
|
179
180
|
`);
|
|
180
181
|
// clang-format on
|
|
181
182
|
}
|
|
@@ -183,15 +184,15 @@ export class StackTrace extends HTMLElement {
|
|
|
183
184
|
return expandableRows;
|
|
184
185
|
}
|
|
185
186
|
|
|
186
|
-
|
|
187
|
-
if (!this
|
|
187
|
+
#render(): void {
|
|
188
|
+
if (!this.#stackTraceRows.length) {
|
|
188
189
|
// Disabled until https://crbug.com/1079231 is fixed.
|
|
189
190
|
// clang-format off
|
|
190
191
|
LitHtml.render(
|
|
191
192
|
LitHtml.html`
|
|
192
193
|
<span>${i18nString(UIStrings.cannotRenderStackTrace)}</span>
|
|
193
194
|
`,
|
|
194
|
-
this
|
|
195
|
+
this.#shadow, {host: this});
|
|
195
196
|
return;
|
|
196
197
|
}
|
|
197
198
|
const expandableRows = this.createRowTemplates();
|
|
@@ -202,7 +203,7 @@ export class StackTrace extends HTMLElement {
|
|
|
202
203
|
} as ExpandableList.ExpandableList.ExpandableListData}>
|
|
203
204
|
</${ExpandableList.ExpandableList.ExpandableList.litTagName}>
|
|
204
205
|
`,
|
|
205
|
-
this
|
|
206
|
+
this.#shadow, {host: this});
|
|
206
207
|
// clang-format on
|
|
207
208
|
}
|
|
208
209
|
}
|