chrome-devtools-frontend 1.0.1736236 → 1.0.1739869
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/.agents/rules/ui-and-widgets/ui-css-scoping-and-flex-layout.md +1 -1
- package/.agents/skills/version-control/SKILL.md +63 -11
- package/.stylelintrc.json +3 -1
- package/docs/devtools-protocol.md +3 -1
- package/eslint.config.mjs +127 -6
- package/front_end/application_tokens.css +0 -30
- package/front_end/core/host/AidaClient.ts +14 -36
- package/front_end/core/host/AidaGcaTranslation.ts +8 -5
- package/front_end/core/root/Runtime.ts +0 -5
- package/front_end/core/sdk/SourceMap.ts +30 -3
- package/front_end/core/sdk/SourceMapRangeMappings.ts +57 -0
- package/front_end/design_system_tokens.css +1 -0
- package/front_end/entrypoints/formatter_worker/JavaScriptFormatter.ts +5 -9
- package/front_end/entrypoints/main/GlobalAiButton.ts +2 -9
- package/front_end/entrypoints/main/MainImpl.ts +0 -4
- package/front_end/generated/SupportedCSSProperties.ts +24 -23
- package/front_end/models/ai-utils/AiUtils.ts +1 -5
- package/front_end/models/ai_assistance/agents/AiAgent.ts +2 -18
- package/front_end/models/ai_assistance/contexts/FileContext.ts +1 -2
- package/front_end/models/ai_assistance/tools/ListSources.ts +3 -1
- package/front_end/models/ai_code_generation/AiCodeGeneration.ts +0 -6
- package/front_end/models/javascript_metadata/NativeFunctions.ts +9 -5
- package/front_end/models/trace/EventsSerializer.ts +0 -8
- package/front_end/models/trace/extras/TraceFilter.ts +16 -8
- package/front_end/models/trace/extras/TraceTree.ts +104 -67
- package/front_end/models/trace/handlers/ExtensionTraceDataHandler.ts +0 -5
- package/front_end/models/trace/handlers/RendererHandler.ts +7 -6
- package/front_end/models/trace/handlers/SamplesHandler.ts +1 -1
- package/front_end/models/trace/helpers/Extensions.ts +1 -3
- package/front_end/models/trace/helpers/SamplesIntegrator.ts +155 -87
- package/front_end/models/trace/helpers/Trace.ts +15 -12
- package/front_end/models/trace/helpers/TreeHelpers.ts +38 -10
- package/front_end/models/trace/insights/SlowCSSSelector.ts +3 -3
- package/front_end/models/trace/lantern/metrics/LargestContentfulPaint.ts +19 -4
- package/front_end/models/workspace/UISourceCode.ts +30 -8
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +1 -7
- package/front_end/panels/ai_assistance/ai_assistance-meta.ts +15 -34
- package/front_end/panels/ai_assistance/components/ChatView.ts +2 -16
- package/front_end/panels/ai_assistance/components/chatView.css +0 -212
- package/front_end/panels/ai_assistance/components/walkthroughView.css +1 -1
- package/front_end/panels/animation/AnimationTimeline.ts +1 -1
- package/front_end/panels/animation/animationTimeline.css +5 -3
- package/front_end/panels/application/ApplicationPanelTreeElement.ts +66 -3
- package/front_end/panels/application/PrivateVerificationTokensView.ts +114 -26
- package/front_end/panels/application/ResourcesPanel.ts +1 -0
- package/front_end/panels/application/backgroundServiceView.css +2 -2
- package/front_end/panels/application/components/backForwardCacheView.css +1 -1
- package/front_end/panels/application/components/permissionsPolicySection.css +0 -4
- package/front_end/panels/application/frameDetailsReportView.css +0 -7
- package/front_end/panels/application/indexedDBViews.css +3 -3
- package/front_end/panels/application/privateVerificationTokensView.css +6 -0
- package/front_end/panels/application/resourcesPanel.css +0 -48
- package/front_end/panels/application/serviceWorkerUpdateCycleView.css +1 -1
- package/front_end/panels/application/serviceWorkersView.css +2 -2
- package/front_end/panels/comments/CommentsPane.ts +1 -1
- package/front_end/panels/comments/commentsPane.css +1 -1
- package/front_end/panels/common/common.ts +0 -1
- package/front_end/panels/console/ConsoleView.ts +11 -1
- package/front_end/panels/console/ConsoleViewMessage.ts +5 -1
- package/front_end/panels/console/consolePinPane.css +1 -1
- package/front_end/panels/console/consoleView.css +6 -5
- package/front_end/panels/elements/DOMTreeWidget.ts +47 -5
- package/front_end/panels/elements/StylePropertiesSection.ts +4 -9
- package/front_end/panels/elements/StylePropertyTreeElement.ts +52 -34
- package/front_end/panels/elements/classesPaneWidget.css +3 -7
- package/front_end/panels/elements/components/CSSQuery.ts +6 -5
- package/front_end/panels/elements/layoutPane.css +0 -1
- package/front_end/panels/elements/metricsSidebarPane.css +2 -2
- package/front_end/panels/elements/stylePropertiesTreeOutline.css +0 -6
- package/front_end/panels/elements/stylesSidebarPane.css +0 -1
- package/front_end/panels/emulation/InspectedPagePlaceholder.ts +1 -0
- package/front_end/panels/emulation/deviceModeView.css +0 -1
- package/front_end/panels/explain/components/consoleInsight.css +1 -6
- package/front_end/panels/issues/AffectedBlockedByResponseView.ts +88 -46
- package/front_end/panels/issues/AffectedHeavyAdView.ts +72 -43
- package/front_end/panels/issues/AffectedResourcesView.ts +81 -13
- package/front_end/panels/issues/GenericIssueDetailsView.ts +112 -32
- package/front_end/panels/issues/issues.ts +2 -0
- package/front_end/panels/issues/issuesTree.css +9 -2
- package/front_end/panels/layer_viewer/LayerDetailsView.ts +34 -17
- package/front_end/panels/layer_viewer/LayerTreeOutline.ts +39 -17
- package/front_end/panels/layer_viewer/Layers3DView.ts +34 -13
- package/front_end/panels/layer_viewer/layerDetailsView.css +2 -2
- package/front_end/panels/layer_viewer/layers3DView.css +0 -4
- package/front_end/panels/lighthouse/lighthousePanel.css +0 -9
- package/front_end/panels/linear_memory_inspector/components/linearMemoryValueInterpreter.css +2 -2
- package/front_end/panels/media/playerListView.css +0 -18
- package/front_end/panels/media/playerPropertiesView.css +1 -1
- package/front_end/panels/mobile_throttling/throttlingSettingsTab.css +2 -2
- package/front_end/panels/network/NetworkLogView.ts +9 -2
- package/front_end/panels/network/NetworkWaterfallColumn.ts +22 -10
- package/front_end/panels/network/RequestPreviewView.ts +182 -63
- package/front_end/panels/network/RequestTimingView.ts +16 -2
- package/front_end/panels/network/SignedExchangeInfoView.ts +242 -158
- package/front_end/panels/network/networkConfigView.css +3 -3
- package/front_end/panels/network/networkLogView.css +4 -16
- package/front_end/panels/network/networkPanel.css +0 -7
- package/front_end/panels/network/networkTimingTable.css +12 -27
- package/front_end/panels/network/signedExchangeInfoView.css +12 -8
- package/front_end/panels/performance_monitor/performanceMonitor.css +2 -2
- package/front_end/panels/profiler/IsolateSelector.ts +31 -10
- package/front_end/panels/profiler/profilesPanel.css +0 -19
- package/front_end/panels/protocol_monitor/JSONEditor.css +1 -1
- package/front_end/panels/recorder/ControlButton.ts +1 -1
- package/front_end/panels/recorder/RecordingView.ts +22 -1
- package/front_end/panels/recorder/StepView.ts +26 -1
- package/front_end/panels/recorder/TimelineSection.ts +22 -6
- package/front_end/panels/recorder/controlButton.css +2 -9
- package/front_end/panels/recorder/recorderPanel.css +0 -1
- package/front_end/panels/recorder/recordingView.css +32 -32
- package/front_end/panels/recorder/replaySection.css +2 -0
- package/front_end/panels/recorder/stepView.css +18 -14
- package/front_end/panels/recorder/timelineSection.css +60 -84
- package/front_end/panels/screencast/screencastView.css +2 -2
- package/front_end/panels/search/searchView.css +1 -1
- package/front_end/panels/security/SecurityPanel.ts +474 -418
- package/front_end/panels/security/SecurityPanelSidebar.ts +68 -48
- package/front_end/panels/security/lockIcon.css +52 -50
- package/front_end/panels/security/mainView.css +149 -145
- package/front_end/panels/security/originView.css +117 -115
- package/front_end/panels/sensors/LocationsSettingsTab.ts +2 -50
- package/front_end/panels/sensors/SensorsView.ts +6 -21
- package/front_end/panels/sensors/locationsSettingsTab.css +1 -21
- package/front_end/panels/settings/AISettingsTab.ts +1 -2
- package/front_end/panels/settings/SettingsScreen.ts +1 -1
- package/front_end/panels/sources/CallStackSidebarPane.ts +31 -6
- package/front_end/panels/sources/NavigatorView.ts +105 -31
- package/front_end/panels/sources/breakpointsView.css +5 -3
- package/front_end/panels/sources/scopeChainSidebarPane.css +1 -1
- package/front_end/panels/sources/sourcesView.css +2 -1
- package/front_end/panels/timeline/EventsTimelineTreeView.ts +18 -5
- package/front_end/panels/timeline/ThirdPartyTreeView.ts +1 -0
- package/front_end/panels/timeline/TimelineController.ts +30 -26
- package/front_end/panels/timeline/TimelineDetailsView.ts +10 -9
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +4 -16
- package/front_end/panels/timeline/TimelineLayersView.ts +108 -46
- package/front_end/panels/timeline/TimelineMiniMap.ts +132 -54
- package/front_end/panels/timeline/TimelinePanel.ts +4 -2
- package/front_end/panels/timeline/TimelineTreeView.ts +25 -9
- package/front_end/panels/timeline/components/DetailsView.ts +7 -14
- package/front_end/panels/timeline/components/NetworkTrackWidget.ts +5 -1
- package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +1 -1
- package/front_end/panels/timeline/components/interactionBreakdown.css +1 -0
- package/front_end/panels/timeline/components/networkRequestDetails.css +2 -1
- package/front_end/panels/timeline/components/networkTrackWidget.css +1 -1
- package/front_end/panels/timeline/components/sidebarInsightsTab.css +1 -0
- package/front_end/panels/timeline/docs/profile_calls.md +7 -9
- package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +0 -7
- package/front_end/panels/timeline/timelineDetailsView.css +2 -2
- package/front_end/panels/web_audio/webAudio.css +1 -2
- package/front_end/panels/webauthn/WebauthnPane.ts +1 -1
- package/front_end/panels/webauthn/webauthnPane.css +1 -1
- package/front_end/panels/whats_new/ReleaseNoteText.ts +6 -6
- package/front_end/panels/whats_new/resources/WNDT.md +6 -6
- package/front_end/third_party/axe-core/README.chromium +2 -3
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/puppeteer/README.chromium +2 -2
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +328 -11
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +907 -588
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.d.ts +119 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.d.ts +120 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.d.ts +16 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.js +5 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPResponse.d.ts +26 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts +23 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js +21 -14
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.d.ts +5 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.js +4 -4
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.d.ts +6 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.js +158 -67
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BrowserConnector.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Connection.js +3 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Frame.js +28 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.js +19 -11
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.js +17 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Input.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Input.js +62 -4
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Input.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/NetworkEvents.d.ts +29 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/NetworkEvents.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/NetworkEvents.js +60 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/NetworkEvents.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.d.ts +9 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.js +24 -9
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Realm.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Realm.js +16 -7
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Realm.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Browser.d.ts +6 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Browser.js +37 -20
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.js +10 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Navigation.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Navigation.js +18 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Navigation.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Request.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Request.js +24 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Request.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Binding.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Binding.js +6 -4
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Binding.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ExtensionTransport.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ExtensionTransport.js +30 -6
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ExtensionTransport.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/FrameManager.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/FrameManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/FrameManager.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.d.ts +5 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.js +12 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPResponse.d.ts +3 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPResponse.js +40 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.d.ts +23 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.js +37 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.js +74 -16
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.d.ts +3 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.js +34 -23
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ResponseBodyStream.d.ts +10 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ResponseBodyStream.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ResponseBodyStream.js +94 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ResponseBodyStream.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.js +29 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/utils.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/utils.js +6 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/utils.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/ConsoleMessage.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/ConsoleMessage.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/ConsoleMessage.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.d.ts +4 -4
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.js +34 -15
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.d.ts +3 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.js +11 -7
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ChromeLauncher.js +10 -7
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ChromeLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/decorators.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +328 -11
- package/front_end/third_party/puppeteer/package/package.json +10 -8
- package/front_end/third_party/puppeteer/package/src/api/Browser.ts +118 -0
- package/front_end/third_party/puppeteer/package/src/api/BrowserContext.ts +119 -0
- package/front_end/third_party/puppeteer/package/src/api/HTTPRequest.ts +25 -2
- package/front_end/third_party/puppeteer/package/src/api/HTTPResponse.ts +28 -0
- package/front_end/third_party/puppeteer/package/src/api/Page.ts +65 -38
- package/front_end/third_party/puppeteer/package/src/api/locators/locators.ts +27 -7
- package/front_end/third_party/puppeteer/package/src/bidi/Browser.ts +43 -7
- package/front_end/third_party/puppeteer/package/src/bidi/BrowserConnector.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/bidi/Connection.ts +5 -1
- package/front_end/third_party/puppeteer/package/src/bidi/Frame.ts +38 -8
- package/front_end/third_party/puppeteer/package/src/bidi/HTTPRequest.ts +27 -12
- package/front_end/third_party/puppeteer/package/src/bidi/HTTPResponse.ts +19 -6
- package/front_end/third_party/puppeteer/package/src/bidi/Input.ts +72 -5
- package/front_end/third_party/puppeteer/package/src/bidi/NetworkEvents.ts +82 -0
- package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +37 -13
- package/front_end/third_party/puppeteer/package/src/bidi/Realm.ts +26 -14
- package/front_end/third_party/puppeteer/package/src/bidi/core/Browser.ts +43 -22
- package/front_end/third_party/puppeteer/package/src/bidi/core/BrowsingContext.ts +13 -5
- package/front_end/third_party/puppeteer/package/src/bidi/core/Navigation.ts +21 -1
- package/front_end/third_party/puppeteer/package/src/bidi/core/Request.ts +27 -5
- package/front_end/third_party/puppeteer/package/src/cdp/Binding.ts +6 -4
- package/front_end/third_party/puppeteer/package/src/cdp/ExtensionTransport.ts +31 -6
- package/front_end/third_party/puppeteer/package/src/cdp/FrameManager.ts +5 -0
- package/front_end/third_party/puppeteer/package/src/cdp/HTTPRequest.ts +18 -1
- package/front_end/third_party/puppeteer/package/src/cdp/HTTPResponse.ts +48 -0
- package/front_end/third_party/puppeteer/package/src/cdp/NetworkEventManager.ts +58 -5
- package/front_end/third_party/puppeteer/package/src/cdp/NetworkManager.ts +94 -14
- package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +50 -28
- package/front_end/third_party/puppeteer/package/src/cdp/ResponseBodyStream.ts +106 -0
- package/front_end/third_party/puppeteer/package/src/cdp/Target.ts +38 -3
- package/front_end/third_party/puppeteer/package/src/cdp/cdp.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/cdp/utils.ts +6 -5
- package/front_end/third_party/puppeteer/package/src/common/ConsoleMessage.ts +5 -0
- package/front_end/third_party/puppeteer/package/src/common/EventEmitter.ts +17 -8
- package/front_end/third_party/puppeteer/package/src/common/util.ts +32 -15
- package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +21 -13
- package/front_end/third_party/puppeteer/package/src/node/ChromeLauncher.ts +10 -10
- package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/util/decorators.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
- package/front_end/third_party/puppeteer/puppeteer-tsconfig.json +2 -0
- package/front_end/ui/comments/CommentAnchorResolver.ts +45 -4
- package/front_end/ui/comments/CommentOverlayManager.ts +45 -12
- package/front_end/ui/components/buttons/FloatingButton.ts +2 -6
- package/front_end/ui/components/buttons/button.css +2 -2
- package/front_end/ui/components/buttons/floatingButton.css +0 -44
- package/front_end/ui/components/diff_view/diffView.css +0 -2
- package/front_end/ui/components/icon_button/iconButton.css +1 -1
- package/front_end/ui/components/markdown_view/markdownView.css +1 -1
- package/front_end/ui/components/tooltips/Tooltip.ts +29 -0
- package/front_end/ui/components/tree_outline/treeOutline.css +1 -1
- package/front_end/ui/legacy/ContextMenu.ts +7 -5
- package/front_end/ui/legacy/InspectorDrawerView.ts +1 -0
- package/front_end/ui/legacy/InspectorView.ts +5 -1
- package/front_end/ui/legacy/PopoverHelper.ts +1 -0
- package/front_end/ui/legacy/RootView.ts +9 -3
- package/front_end/ui/legacy/SplitWidget.ts +1 -0
- package/front_end/ui/legacy/Treeoutline.ts +9 -0
- package/front_end/ui/legacy/UIUtils.ts +1 -1
- package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +130 -137
- package/front_end/ui/legacy/components/inline_editor/CSSShadowEditor.ts +1 -1
- package/front_end/ui/legacy/components/inline_editor/SwatchPopoverHelper.ts +1 -0
- package/front_end/ui/legacy/components/inline_editor/bezierEditor.css +1 -1
- package/front_end/ui/legacy/components/inline_editor/cssAngleEditor.css +3 -1
- package/front_end/ui/legacy/components/inline_editor/cssShadowEditor.css +7 -6
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +34 -20
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +43 -14
- package/front_end/ui/legacy/components/perf_ui/pieChart.css +2 -2
- package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +1 -10
- package/front_end/ui/legacy/components/source_frame/imageView.css +2 -2
- package/front_end/ui/legacy/filter.css +7 -3
- package/front_end/ui/legacy/infobar.css +1 -1
- package/front_end/ui/legacy/inspectorCommon.css +3 -55
- package/front_end/ui/legacy/inspectorDrawerTabbedPane.css +3 -3
- package/front_end/ui/legacy/listWidget.css +3 -8
- package/front_end/ui/legacy/softDropDownButton.css +1 -1
- package/front_end/ui/legacy/tabbedPane.css +2 -9
- package/front_end/ui/legacy/treeoutline.css +3 -2
- package/front_end/ui/visual_logging/KnownContextValues.ts +134 -0
- package/front_end/ui/visual_logging/LoggingEvents.ts +1 -1
- package/inspector_overlay/tool_highlight.css +0 -7
- package/inspector_overlay/tool_highlight.ts +0 -1
- package/package.json +1 -1
- package/front_end/Images/geminiInDevTools.png +0 -0
- package/front_end/Images/geminiInDevTools_2x.png +0 -0
- package/front_end/generated/InspectorBackendCommands.ts +0 -1690
- package/front_end/generated/protocol-mapping.d.ts +0 -5986
- package/front_end/generated/protocol-proxy-api.d.ts +0 -5452
- package/front_end/generated/protocol.ts +0 -23364
- package/front_end/panels/common/GeminiRebrandPromoDialog.ts +0 -193
- package/front_end/panels/common/geminiRebrandPromoDialog.css +0 -47
|
@@ -19,19 +19,17 @@ We parse the CPU profile received from the backend containing the samples to rec
|
|
|
19
19
|
|
|
20
20
|
With this data we can deduce with certainty how the full JS stack looked at the time of each sample, **but** we can only guess/estimate how it looked at any point in between samples.
|
|
21
21
|
|
|
22
|
-
### 2.
|
|
22
|
+
### 2. Streaming samples and trace events with two cursors
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
`SamplesIntegrator#buildProfileCalls()` streams the sorted trace events and the sorted CPU profile samples in chronological order using two cursors rather than allocating a `ProfileCall` for every sample or building a merged input array up front.
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
Before the merge loop starts, `#prepareSamples()` indexes the preceding non-GC node for each garbage-collection sample by `sampleIndex` (and populates `jsSampleEvents` when `debugMode` is enabled). During the merge loop, `advanceSample()` reuses a single mutable scratch `SyntheticProfileCall` carrying the current sample's top-of-stack `nodeId`, `callFrame`, `sampleIndex`, and `ts` (`dur` is `0`).
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
### 3. Estimate JS call durations
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
To estimate the duration of JS calls, `SamplesIntegrator` maintains an active JS stack (`#currentJSStack`), where each entry is a `SyntheticProfileCall`. As the two cursors advance through trace events and CPU samples, the integrator updates `#currentJSStack`:
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
For example, if we find a sample (represented as an empty profile call) for the first time, we push the call frames in the sample (which we create using the call tree we built on the first step) to the stack. If we then find a second sample, we compare the call frames in it with the current JS stack, position by position, and update the frames in the stack accordingly: repeated call frames are “merged” together by extending one’s duration to cover the other’s timestamp, obsolete call frames are removed from the stack and new call frames are pushed to it.
|
|
32
|
+
For example, when the first sample arrives, `SamplesIntegrator` walks the CPU profile call tree from step 1 to reconstruct the sample's stack frames and allocates `SyntheticProfileCall` objects for the frames pushed onto `#currentJSStack`. When a subsequent sample arrives, its stack frames are compared with `#currentJSStack` position by position: matching frames are extended to cover the new sample's timestamp, frames that ended are truncated from `#currentJSStack`, and only newly opened frames allocate new `SyntheticProfileCall` objects.
|
|
35
33
|
|
|
36
34
|
Graphically,
|
|
37
35
|
|
|
@@ -53,7 +51,7 @@ Becomes this:
|
|
|
53
51
|
[E] dur = 0
|
|
54
52
|
^ t1 ^ t3
|
|
55
53
|
|
|
56
|
-
_Note:
|
|
54
|
+
_Note: Because `advanceSample()` reuses one scratch `SyntheticProfileCall` and `#extractStackTrace()` only allocates `SyntheticProfileCall` entries for frames newly pushed onto `#currentJSStack` (`[E]` above), repeated samples of already-open frames (`[A]`, `[B]`, `[C]`) extend durations in place without transient allocations._
|
|
57
55
|
|
|
58
56
|
Every time we add a call frame to the JS stack array, we also add them to another array, called `constructedProfileCalls` to hold a reference. At the end of the loop, `constructedProfileCalls` contains all estimated JS calls with their estimated duration.
|
|
59
57
|
|
|
@@ -125,13 +125,6 @@ const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
|
125
125
|
const lockedString = i18n.i18n.lockedString;
|
|
126
126
|
|
|
127
127
|
function isAiAssistanceServerSideLoggingEnabled(): boolean {
|
|
128
|
-
// Disable logging for now.
|
|
129
|
-
// For context, see b/454563259#comment35.
|
|
130
|
-
// We should be able to remove this ~end of April.
|
|
131
|
-
if (Root.Runtime.hostConfig.devToolsGeminiRebranding?.enabled) {
|
|
132
|
-
return false;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
128
|
return !Root.Runtime.hostConfig.aidaAvailability?.disallowLogging;
|
|
136
129
|
}
|
|
137
130
|
|
|
@@ -80,8 +80,8 @@
|
|
|
80
80
|
background-color: var(--override-details-warning-background-color);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
.theme-with-dark-background .timeline-details-warning,
|
|
84
|
-
:host-context(.theme-with-dark-background) .timeline-details-warning {
|
|
83
|
+
.theme-with-dark-background .timeline-details-warning, /* stylelint-disable-line plugin/check_scope_selectors */
|
|
84
|
+
:host-context(.theme-with-dark-background) .timeline-details-warning { /* stylelint-disable-line plugin/check_scope_selectors */
|
|
85
85
|
--override-details-warning-background-color: rgb(87 10 10 / 48%);
|
|
86
86
|
}
|
|
87
87
|
|
|
@@ -65,7 +65,6 @@
|
|
|
65
65
|
.context-detail-row {
|
|
66
66
|
grid-template-columns: min-content 1fr;
|
|
67
67
|
display: grid;
|
|
68
|
-
line-height: 18px;
|
|
69
68
|
margin: var(--sys-size-3) var(--sys-size-9) var(--sys-size-3) var(--sys-size-9);
|
|
70
69
|
gap: var(--sys-size-6);
|
|
71
70
|
}
|
|
@@ -73,7 +72,7 @@
|
|
|
73
72
|
.context-detail-row-entry:not(:empty) {
|
|
74
73
|
color: var(--sys-color-on-surface-subtle);
|
|
75
74
|
overflow: hidden;
|
|
76
|
-
min-width:
|
|
75
|
+
min-width: var(--sys-size-21);
|
|
77
76
|
font: var(--sys-typescale-body5-medium);
|
|
78
77
|
}
|
|
79
78
|
|
|
@@ -317,7 +317,7 @@ function renderNewAuthenticatorSection(
|
|
|
317
317
|
<select id="protocol" jslog=${VisualLogging.dropDown('protocol').track({change: true})}
|
|
318
318
|
value=${options.protocol}
|
|
319
319
|
@change=${(e:Event) => onUpdate({protocol: (e.target as HTMLSelectElement).value as Protocol.WebAuthn.AuthenticatorProtocol})}>
|
|
320
|
-
${Object.values(PROTOCOL_AUTHENTICATOR_VALUES).sort().map(option => html`
|
|
320
|
+
${Object.values<Protocol.WebAuthn.AuthenticatorProtocol>(PROTOCOL_AUTHENTICATOR_VALUES).sort().map(option => html`
|
|
321
321
|
<option value=${option} jslog=${VisualLogging.item(option).track({click: true})}>
|
|
322
322
|
${option}
|
|
323
323
|
</option>`)}
|
|
@@ -51,7 +51,7 @@ export function getReleaseNote(): ReleaseNote {
|
|
|
51
51
|
|
|
52
52
|
let releaseNote: ReleaseNote = {
|
|
53
53
|
version: 158,
|
|
54
|
-
header: 'New in DevTools (
|
|
54
|
+
header: 'New in DevTools (December 2026)',
|
|
55
55
|
announcement: {
|
|
56
56
|
title: 'Modern Web Guidance is now stable!',
|
|
57
57
|
description: 'Upgrade your coding agents with expert-vetted web development best practices.',
|
|
@@ -63,17 +63,17 @@ let releaseNote: ReleaseNote = {
|
|
|
63
63
|
markdownLinks: [
|
|
64
64
|
{
|
|
65
65
|
key: 'mcp',
|
|
66
|
-
link: 'https://developer.chrome.com/blog/new-in-devtools-
|
|
66
|
+
link: 'https://developer.chrome.com/blog/new-in-devtools-december-2026/#mcp',
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
key: 'sources',
|
|
70
|
-
link: 'https://developer.chrome.com/blog/new-in-devtools-
|
|
70
|
+
link: 'https://developer.chrome.com/blog/new-in-devtools-december-2026/#sources',
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
|
-
key: '
|
|
74
|
-
link: 'https://developer.chrome.com/blog/new-in-devtools-
|
|
73
|
+
key: 'performance',
|
|
74
|
+
link: 'https://developer.chrome.com/blog/new-in-devtools-december-2026/#performance',
|
|
75
75
|
},
|
|
76
76
|
],
|
|
77
77
|
videoLinks: [],
|
|
78
|
-
link: 'https://developer.chrome.com/blog/new-in-devtools-
|
|
78
|
+
link: 'https://developer.chrome.com/blog/new-in-devtools-december-2026/',
|
|
79
79
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
### [DevTools for agents](mcp)
|
|
1
|
+
### [DevTools for agents: Logpoints, virtual WebAuthn authenticators, live config reloading, and offline heap snapshots](mcp)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Set source-mapped logpoints (`set_logpoints`), configure virtual WebAuthn authenticators (`configure_webauthn`), watch and hot-reload MCP configuration files with `--watchConfig`, and analyze heap snapshots and V8 execution contexts offline without a browser connection.
|
|
4
4
|
|
|
5
|
-
### [
|
|
5
|
+
### [Sources: Original scopes view, stack traces, and expression evaluation with ECMA-426 source map scopes](sources)
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Inspect your authored file's original lexical scope tree in the **Scope** pane, view original function names and merged outlined frames across stack traces, and evaluate expressions using original variable names powered by ECMA-426 source map `scopes`.
|
|
8
8
|
|
|
9
|
-
### [
|
|
9
|
+
### [Performance and Memory: Faster trace parsing, Lantern HTTP/3 simulation, and generator context analysis](performance)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Parse large performance traces roughly 26% faster with reduced memory usage, and analyze heap snapshot context retention across suspended generators, async functions, and finished ES modules.
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
Name: AXE-CORE Accessibility Audit
|
|
2
2
|
Short Name: axe-core
|
|
3
3
|
URL: https://github.com/dequelabs/axe-core/
|
|
4
|
-
Version:
|
|
5
|
-
|
|
6
|
-
Revision: d02dba3223fefe525438330e40b5da5de81eeeb5
|
|
4
|
+
Version: 3.3.2
|
|
5
|
+
Revision: c39c3a3db4975fb39365acace3fe1ffa7893004d
|
|
7
6
|
Update Mechanism: Manual
|
|
8
7
|
License: MPL-2.0
|
|
9
8
|
License File: LICENSE
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Name: Dependencies sourced from the upstream `chromium` repository
|
|
2
2
|
URL: Internal
|
|
3
3
|
Version: N/A
|
|
4
|
-
Revision:
|
|
4
|
+
Revision: 5abc82b75a12aba2070f008c93349d463e81dc10
|
|
5
5
|
Update Mechanism: Manual (https://crbug.com/428069060)
|
|
6
6
|
License: BSD-3-Clause
|
|
7
7
|
License File: LICENSE
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Name: Puppeteer Core
|
|
2
2
|
Short Name: Puppeteer Core
|
|
3
3
|
URL: https://github.com/puppeteer/puppeteer/tree/main/packages/puppeteer-core
|
|
4
|
-
Version: 25.
|
|
4
|
+
Version: 25.17.0
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
License File: LICENSE
|
|
7
|
-
Revision:
|
|
7
|
+
Revision: f255d2374e24a24880d4c37582d53f422377c7d4
|
|
8
8
|
Security Critical: no
|
|
9
9
|
Shipped: yes
|
|
10
10
|
Update Mechanism: Autoroll
|
|
@@ -890,6 +890,116 @@ export declare const enum BrowserContextEvent {
|
|
|
890
890
|
* when a page is closed. Contains a {@link Target} instance.
|
|
891
891
|
*/
|
|
892
892
|
TargetDestroyed = 'targetdestroyed',
|
|
893
|
+
/**
|
|
894
|
+
* Emitted when JavaScript within any page or worker in the browser context
|
|
895
|
+
* calls one of the console API methods, e.g. `console.log` or
|
|
896
|
+
* `console.dir`. Contains a {@link ConsoleMessage} instance.
|
|
897
|
+
*
|
|
898
|
+
* @remarks
|
|
899
|
+
* Use {@link ConsoleMessage.page}, {@link ConsoleMessage.frame} or
|
|
900
|
+
* {@link ConsoleMessage.worker} to identify the originating context.
|
|
901
|
+
* Messages from workers have no page or frame: use
|
|
902
|
+
* {@link ConsoleMessage.worker} for them. Messages logged by the browser
|
|
903
|
+
* itself (e.g. network errors or violations) can have no page, frame or
|
|
904
|
+
* worker.
|
|
905
|
+
*
|
|
906
|
+
* Events are only delivered for pages and workers that Puppeteer has
|
|
907
|
+
* attached to, e.g. via {@link BrowserContext.pages} or
|
|
908
|
+
* {@link Target.page}. Registering the listener before attaching
|
|
909
|
+
* guarantees that console messages replayed by the browser on attachment
|
|
910
|
+
* are not lost.
|
|
911
|
+
*
|
|
912
|
+
* With WebDriver BiDi, console messages that the browser replays while
|
|
913
|
+
* connecting are delivered once, right after {@link Puppeteer.connect}
|
|
914
|
+
* resolves: register the listener before awaiting anything else, or they
|
|
915
|
+
* are missed. Replayed messages can be delivered after messages logged
|
|
916
|
+
* later.
|
|
917
|
+
*
|
|
918
|
+
* Service workers and shared workers are not attached automatically:
|
|
919
|
+
* their console messages are only delivered after {@link Target.worker}
|
|
920
|
+
* has been called for their target. With WebDriver BiDi, their console
|
|
921
|
+
* messages are not reported.
|
|
922
|
+
*
|
|
923
|
+
* The {@link ConsoleMessage.args | arguments} are shared with listeners
|
|
924
|
+
* registered on {@link Page}, {@link WebWorker} and {@link Browser}.
|
|
925
|
+
* Disposing them in one listener invalidates them for all other listeners.
|
|
926
|
+
*
|
|
927
|
+
* @experimental
|
|
928
|
+
*/
|
|
929
|
+
Console = 'console',
|
|
930
|
+
/**
|
|
931
|
+
* Emitted when any page in the browser context issues a request. Contains
|
|
932
|
+
* a {@link HTTPRequest} instance.
|
|
933
|
+
*
|
|
934
|
+
* @remarks
|
|
935
|
+
* Use {@link HTTPRequest.page} or {@link HTTPRequest.frame} to identify
|
|
936
|
+
* the originating context. Requests from dedicated workers have no page
|
|
937
|
+
* or frame: use {@link HTTPRequest.worker} for them. Dedicated worker
|
|
938
|
+
* requests and {@link HTTPRequest.worker} are not supported with
|
|
939
|
+
* WebDriver BiDi.
|
|
940
|
+
*
|
|
941
|
+
* With CDP, events are only delivered for pages that have a {@link Page}
|
|
942
|
+
* instance, e.g. created via {@link BrowserContext.pages} or {@link Target.page}.
|
|
943
|
+
* Requests issued before the instance exists, such as the initial
|
|
944
|
+
* navigation of a popup, are not reported. With WebDriver BiDi, requests
|
|
945
|
+
* from all pages are reported. Requests from service workers and shared
|
|
946
|
+
* workers are not reported.
|
|
947
|
+
*
|
|
948
|
+
* These listeners only observe requests. Do not call
|
|
949
|
+
* `request.continue()`, `abort()` or `respond()` from them: they are not
|
|
950
|
+
* coordinated with page-level handlers (see
|
|
951
|
+
* {@link https://pptr.dev/guides/network-interception#cooperative-intercept-mode | cooperative intercept mode}).
|
|
952
|
+
* To intercept requests, use {@link Page.setRequestInterception} with a
|
|
953
|
+
* {@link PageEvent.Request} listener.
|
|
954
|
+
*
|
|
955
|
+
* @experimental
|
|
956
|
+
*/
|
|
957
|
+
Request = 'request',
|
|
958
|
+
/**
|
|
959
|
+
* Emitted when a request issued by any page in the browser context is
|
|
960
|
+
* served from the memory cache. Contains a {@link HTTPRequest} instance.
|
|
961
|
+
*
|
|
962
|
+
* @remarks
|
|
963
|
+
* The same delivery rules as for {@link BrowserContextEvent.Request} apply.
|
|
964
|
+
*
|
|
965
|
+
* @experimental
|
|
966
|
+
*/
|
|
967
|
+
RequestServedFromCache = 'requestservedfromcache',
|
|
968
|
+
/**
|
|
969
|
+
* Emitted when a response is received for a request issued by any page in
|
|
970
|
+
* the browser context. Contains a {@link HTTPResponse} instance.
|
|
971
|
+
*
|
|
972
|
+
* @remarks
|
|
973
|
+
* Use {@link HTTPResponse.request} to access the originating request. The
|
|
974
|
+
* same delivery rules as for {@link BrowserContextEvent.Request} apply.
|
|
975
|
+
*
|
|
976
|
+
* @experimental
|
|
977
|
+
*/
|
|
978
|
+
Response = 'response',
|
|
979
|
+
/**
|
|
980
|
+
* Emitted when a request issued by any page in the browser context fails,
|
|
981
|
+
* for example by timing out. Contains a {@link HTTPRequest} instance.
|
|
982
|
+
*
|
|
983
|
+
* @remarks
|
|
984
|
+
* HTTP error responses, such as 404 or 503, are still successful responses
|
|
985
|
+
* from HTTP standpoint, so the request completes with
|
|
986
|
+
* {@link BrowserContextEvent.RequestFinished} and not with
|
|
987
|
+
* {@link BrowserContextEvent.RequestFailed}. The same delivery rules as
|
|
988
|
+
* for {@link BrowserContextEvent.Request} apply.
|
|
989
|
+
*
|
|
990
|
+
* @experimental
|
|
991
|
+
*/
|
|
992
|
+
RequestFailed = 'requestfailed',
|
|
993
|
+
/**
|
|
994
|
+
* Emitted when a request issued by any page in the browser context
|
|
995
|
+
* finishes successfully. Contains a {@link HTTPRequest} instance.
|
|
996
|
+
*
|
|
997
|
+
* @remarks
|
|
998
|
+
* The same delivery rules as for {@link BrowserContextEvent.Request} apply.
|
|
999
|
+
*
|
|
1000
|
+
* @experimental
|
|
1001
|
+
*/
|
|
1002
|
+
RequestFinished = 'requestfinished',
|
|
893
1003
|
}
|
|
894
1004
|
|
|
895
1005
|
/**
|
|
@@ -902,6 +1012,12 @@ export declare interface BrowserContextEvents extends Record<
|
|
|
902
1012
|
[BrowserContextEvent.TargetChanged]: Target;
|
|
903
1013
|
[BrowserContextEvent.TargetCreated]: Target;
|
|
904
1014
|
[BrowserContextEvent.TargetDestroyed]: Target;
|
|
1015
|
+
[BrowserContextEvent.Console]: ConsoleMessage;
|
|
1016
|
+
[BrowserContextEvent.Request]: HTTPRequest;
|
|
1017
|
+
[BrowserContextEvent.RequestServedFromCache]: HTTPRequest;
|
|
1018
|
+
[BrowserContextEvent.Response]: HTTPResponse;
|
|
1019
|
+
[BrowserContextEvent.RequestFailed]: HTTPRequest;
|
|
1020
|
+
[BrowserContextEvent.RequestFinished]: HTTPRequest;
|
|
905
1021
|
}
|
|
906
1022
|
|
|
907
1023
|
/**
|
|
@@ -967,6 +1083,115 @@ export declare const enum BrowserEvent {
|
|
|
967
1083
|
* contexts.
|
|
968
1084
|
*/
|
|
969
1085
|
TargetDestroyed = 'targetdestroyed',
|
|
1086
|
+
/**
|
|
1087
|
+
* Emitted when JavaScript within any page or worker in the browser calls
|
|
1088
|
+
* one of the console API methods, e.g. `console.log` or `console.dir`.
|
|
1089
|
+
* Contains a {@link ConsoleMessage} instance.
|
|
1090
|
+
*
|
|
1091
|
+
* @remarks
|
|
1092
|
+
* Use {@link ConsoleMessage.page}, {@link ConsoleMessage.frame} or
|
|
1093
|
+
* {@link ConsoleMessage.worker} to identify the originating context.
|
|
1094
|
+
* Messages from workers have no page or frame: use
|
|
1095
|
+
* {@link ConsoleMessage.worker} for them. Messages logged by the browser
|
|
1096
|
+
* itself (e.g. network errors or violations) can have no page, frame or
|
|
1097
|
+
* worker.
|
|
1098
|
+
*
|
|
1099
|
+
* Events are only delivered for pages and workers that Puppeteer has
|
|
1100
|
+
* attached to, e.g. via {@link Browser.pages} or {@link Target.page}.
|
|
1101
|
+
* Registering the listener before attaching guarantees that console
|
|
1102
|
+
* messages replayed by the browser on attachment are not lost.
|
|
1103
|
+
*
|
|
1104
|
+
* With WebDriver BiDi, console messages that the browser replays while
|
|
1105
|
+
* connecting are delivered once, right after {@link Puppeteer.connect}
|
|
1106
|
+
* resolves: register the listener before awaiting anything else, or they
|
|
1107
|
+
* are missed. Replayed messages can be delivered after messages logged
|
|
1108
|
+
* later.
|
|
1109
|
+
*
|
|
1110
|
+
* Service workers and shared workers are not attached automatically:
|
|
1111
|
+
* their console messages are only delivered after {@link Target.worker}
|
|
1112
|
+
* has been called for their target. With WebDriver BiDi, their console
|
|
1113
|
+
* messages are not reported.
|
|
1114
|
+
*
|
|
1115
|
+
* The {@link ConsoleMessage.args | arguments} are shared with listeners
|
|
1116
|
+
* registered on {@link Page}, {@link WebWorker} and {@link BrowserContext}.
|
|
1117
|
+
* Disposing them in one listener invalidates them for all other listeners.
|
|
1118
|
+
*
|
|
1119
|
+
* @experimental
|
|
1120
|
+
*/
|
|
1121
|
+
Console = 'console',
|
|
1122
|
+
/**
|
|
1123
|
+
* Emitted when any page in the browser issues a request. Contains a
|
|
1124
|
+
* {@link HTTPRequest} instance.
|
|
1125
|
+
*
|
|
1126
|
+
* @remarks
|
|
1127
|
+
* Use {@link HTTPRequest.page} or {@link HTTPRequest.frame} to identify
|
|
1128
|
+
* the originating context. Requests from dedicated workers have no page
|
|
1129
|
+
* or frame: use {@link HTTPRequest.worker} for them. Dedicated worker
|
|
1130
|
+
* requests and {@link HTTPRequest.worker} are not supported with
|
|
1131
|
+
* WebDriver BiDi.
|
|
1132
|
+
*
|
|
1133
|
+
* With CDP, events are only delivered for pages that have a {@link Page}
|
|
1134
|
+
* instance, e.g. created via {@link Browser.pages} or {@link Target.page}.
|
|
1135
|
+
* Requests issued before the instance exists, such as the initial
|
|
1136
|
+
* navigation of a popup, are not reported. With WebDriver BiDi, requests
|
|
1137
|
+
* from all pages are reported. Requests from service workers and shared
|
|
1138
|
+
* workers are not reported.
|
|
1139
|
+
*
|
|
1140
|
+
* These listeners only observe requests. Do not call
|
|
1141
|
+
* `request.continue()`, `abort()` or `respond()` from them: they are not
|
|
1142
|
+
* coordinated with page-level handlers (see
|
|
1143
|
+
* {@link https://pptr.dev/guides/network-interception#cooperative-intercept-mode | cooperative intercept mode}).
|
|
1144
|
+
* To intercept requests, use {@link Page.setRequestInterception} with a
|
|
1145
|
+
* {@link PageEvent.Request} listener.
|
|
1146
|
+
*
|
|
1147
|
+
* @experimental
|
|
1148
|
+
*/
|
|
1149
|
+
Request = 'request',
|
|
1150
|
+
/**
|
|
1151
|
+
* Emitted when a request issued by any page in the browser is served from
|
|
1152
|
+
* the memory cache. Contains a {@link HTTPRequest} instance.
|
|
1153
|
+
*
|
|
1154
|
+
* @remarks
|
|
1155
|
+
* The same delivery rules as for {@link BrowserEvent.Request} apply.
|
|
1156
|
+
*
|
|
1157
|
+
* @experimental
|
|
1158
|
+
*/
|
|
1159
|
+
RequestServedFromCache = 'requestservedfromcache',
|
|
1160
|
+
/**
|
|
1161
|
+
* Emitted when a response is received for a request issued by any page in
|
|
1162
|
+
* the browser. Contains a {@link HTTPResponse} instance.
|
|
1163
|
+
*
|
|
1164
|
+
* @remarks
|
|
1165
|
+
* Use {@link HTTPResponse.request} to access the originating request. The
|
|
1166
|
+
* same delivery rules as for {@link BrowserEvent.Request} apply.
|
|
1167
|
+
*
|
|
1168
|
+
* @experimental
|
|
1169
|
+
*/
|
|
1170
|
+
Response = 'response',
|
|
1171
|
+
/**
|
|
1172
|
+
* Emitted when a request issued by any page in the browser fails, for
|
|
1173
|
+
* example by timing out. Contains a {@link HTTPRequest} instance.
|
|
1174
|
+
*
|
|
1175
|
+
* @remarks
|
|
1176
|
+
* HTTP error responses, such as 404 or 503, are still successful responses
|
|
1177
|
+
* from HTTP standpoint, so the request completes with
|
|
1178
|
+
* {@link BrowserEvent.RequestFinished} and not with
|
|
1179
|
+
* {@link BrowserEvent.RequestFailed}. The same delivery rules as for
|
|
1180
|
+
* {@link BrowserEvent.Request} apply.
|
|
1181
|
+
*
|
|
1182
|
+
* @experimental
|
|
1183
|
+
*/
|
|
1184
|
+
RequestFailed = 'requestfailed',
|
|
1185
|
+
/**
|
|
1186
|
+
* Emitted when a request issued by any page in the browser finishes
|
|
1187
|
+
* successfully. Contains a {@link HTTPRequest} instance.
|
|
1188
|
+
*
|
|
1189
|
+
* @remarks
|
|
1190
|
+
* The same delivery rules as for {@link BrowserEvent.Request} apply.
|
|
1191
|
+
*
|
|
1192
|
+
* @experimental
|
|
1193
|
+
*/
|
|
1194
|
+
RequestFinished = 'requestfinished',
|
|
970
1195
|
}
|
|
971
1196
|
|
|
972
1197
|
/**
|
|
@@ -977,6 +1202,12 @@ export declare interface BrowserEvents extends Record<EventType, unknown> {
|
|
|
977
1202
|
[BrowserEvent.TargetCreated]: Target;
|
|
978
1203
|
[BrowserEvent.TargetDestroyed]: Target;
|
|
979
1204
|
[BrowserEvent.TargetChanged]: Target;
|
|
1205
|
+
[BrowserEvent.Console]: ConsoleMessage;
|
|
1206
|
+
[BrowserEvent.Request]: HTTPRequest;
|
|
1207
|
+
[BrowserEvent.RequestServedFromCache]: HTTPRequest;
|
|
1208
|
+
[BrowserEvent.Response]: HTTPResponse;
|
|
1209
|
+
[BrowserEvent.RequestFailed]: HTTPRequest;
|
|
1210
|
+
[BrowserEvent.RequestFinished]: HTTPRequest;
|
|
980
1211
|
}
|
|
981
1212
|
|
|
982
1213
|
/**
|
|
@@ -1617,6 +1848,10 @@ export declare interface ConsoleMessageLocation {
|
|
|
1617
1848
|
* 0-based column number in the resource if known or `undefined` otherwise.
|
|
1618
1849
|
*/
|
|
1619
1850
|
columnNumber?: number;
|
|
1851
|
+
/**
|
|
1852
|
+
* Script identifier if known or `undefined` otherwise.
|
|
1853
|
+
*/
|
|
1854
|
+
scriptId?: string;
|
|
1620
1855
|
}
|
|
1621
1856
|
|
|
1622
1857
|
/**
|
|
@@ -2912,7 +3147,10 @@ export declare class EventEmitter<
|
|
|
2912
3147
|
*/
|
|
2913
3148
|
on<Key extends keyof EventsWithWildcard<Events>>(
|
|
2914
3149
|
type: Key,
|
|
2915
|
-
handler:
|
|
3150
|
+
handler: (
|
|
3151
|
+
event: EventsWithWildcard<Events>[Key],
|
|
3152
|
+
eventData: Key extends '*' ? Events[keyof Events] : never,
|
|
3153
|
+
) => void,
|
|
2916
3154
|
): this;
|
|
2917
3155
|
/**
|
|
2918
3156
|
* Remove an event listener from firing.
|
|
@@ -2922,7 +3160,10 @@ export declare class EventEmitter<
|
|
|
2922
3160
|
*/
|
|
2923
3161
|
off<Key extends keyof EventsWithWildcard<Events>>(
|
|
2924
3162
|
type: Key,
|
|
2925
|
-
handler?:
|
|
3163
|
+
handler?: (
|
|
3164
|
+
event: EventsWithWildcard<Events>[Key],
|
|
3165
|
+
eventData: Key extends '*' ? Events[keyof Events] : never,
|
|
3166
|
+
) => void,
|
|
2926
3167
|
): this;
|
|
2927
3168
|
/**
|
|
2928
3169
|
* Emit an event and call any associated listeners.
|
|
@@ -2943,7 +3184,10 @@ export declare class EventEmitter<
|
|
|
2943
3184
|
*/
|
|
2944
3185
|
once<Key extends keyof EventsWithWildcard<Events>>(
|
|
2945
3186
|
type: Key,
|
|
2946
|
-
handler:
|
|
3187
|
+
handler: (
|
|
3188
|
+
event: EventsWithWildcard<Events>[Key],
|
|
3189
|
+
eventData: Key extends '*' ? Events[keyof Events] : never,
|
|
3190
|
+
) => void,
|
|
2947
3191
|
): this;
|
|
2948
3192
|
/**
|
|
2949
3193
|
* Gets the number of listeners for a given event.
|
|
@@ -2970,7 +3214,7 @@ export declare class EventEmitter<
|
|
|
2970
3214
|
export declare type EventsWithWildcard<
|
|
2971
3215
|
Events extends Record<EventType, unknown>,
|
|
2972
3216
|
> = Events & {
|
|
2973
|
-
'*':
|
|
3217
|
+
'*': keyof Events;
|
|
2974
3218
|
};
|
|
2975
3219
|
|
|
2976
3220
|
/**
|
|
@@ -4118,9 +4362,22 @@ export declare abstract class HTTPRequest {
|
|
|
4118
4362
|
* been received yet.
|
|
4119
4363
|
*/
|
|
4120
4364
|
abstract response(): HTTPResponse | null;
|
|
4365
|
+
/**
|
|
4366
|
+
* The page that initiated the request, or null if navigating to
|
|
4367
|
+
* error pages or the request is coming from a worker.
|
|
4368
|
+
*/
|
|
4369
|
+
abstract page(): Page | null;
|
|
4370
|
+
/**
|
|
4371
|
+
* The worker that initiated the request, or null if the request
|
|
4372
|
+
* was not initiated by a worker.
|
|
4373
|
+
*
|
|
4374
|
+
* @remarks
|
|
4375
|
+
* Not supported with WebDriver BiDi.
|
|
4376
|
+
*/
|
|
4377
|
+
abstract worker(): WebWorker | null;
|
|
4121
4378
|
/**
|
|
4122
4379
|
* The frame that initiated the request, or null if navigating to
|
|
4123
|
-
* error pages.
|
|
4380
|
+
* error pages or the request is coming from a worker.
|
|
4124
4381
|
*/
|
|
4125
4382
|
abstract frame(): Frame | null;
|
|
4126
4383
|
/**
|
|
@@ -4311,6 +4568,19 @@ export declare abstract class HTTPResponse {
|
|
|
4311
4568
|
* Timing information related to the response.
|
|
4312
4569
|
*/
|
|
4313
4570
|
abstract timing(): Protocol.Network.ResourceTiming | null;
|
|
4571
|
+
/**
|
|
4572
|
+
* Total number of bytes received for this request over the network.
|
|
4573
|
+
*
|
|
4574
|
+
* @remarks
|
|
4575
|
+
* The value is updated when the response finishes loading. During the
|
|
4576
|
+
* `response` event, it only covers the bytes received up to the response
|
|
4577
|
+
* headers. To get the total encoded transfer size (headers + compressed
|
|
4578
|
+
* body), read it in a `requestfinished` handler or after awaiting
|
|
4579
|
+
* {@link HTTPResponse.content}. If the request fails after the response is
|
|
4580
|
+
* received, the value is not updated. If the browser does not report a
|
|
4581
|
+
* size, e.g. for `data:` or `file:` URLs, the value is `0`.
|
|
4582
|
+
*/
|
|
4583
|
+
abstract encodedDataLength(): number;
|
|
4314
4584
|
/**
|
|
4315
4585
|
* Promise which resolves to a buffer with response body.
|
|
4316
4586
|
*
|
|
@@ -4323,6 +4593,19 @@ export declare abstract class HTTPResponse {
|
|
|
4323
4593
|
* https://github.com/puppeteer/puppeteer/issues/6478.
|
|
4324
4594
|
*/
|
|
4325
4595
|
abstract content(): Promise<Uint8Array>;
|
|
4596
|
+
/**
|
|
4597
|
+
* Returns the response body as a stream of chunks as they arrive from the
|
|
4598
|
+
* network.
|
|
4599
|
+
*
|
|
4600
|
+
* @remarks
|
|
4601
|
+
*
|
|
4602
|
+
* Call this from the {@link PageEvent.Response | response} event to
|
|
4603
|
+
* receive the body while it is still loading. If the body has already
|
|
4604
|
+
* finished loading, the stream contains the whole body as a single chunk.
|
|
4605
|
+
*
|
|
4606
|
+
* @experimental
|
|
4607
|
+
*/
|
|
4608
|
+
abstract stream(): Promise<ReadableStream<Uint8Array>>;
|
|
4326
4609
|
/**
|
|
4327
4610
|
* {@inheritDoc HTTPResponse.content}
|
|
4328
4611
|
*/
|
|
@@ -5518,7 +5801,10 @@ export declare abstract class Locator<T> extends EventEmitter<LocatorEvents> {
|
|
|
5518
5801
|
*
|
|
5519
5802
|
* @public
|
|
5520
5803
|
*/
|
|
5521
|
-
map<To
|
|
5804
|
+
map<To, Args extends unknown[] = []>(
|
|
5805
|
+
mapper: Mapper<T, To, Args>,
|
|
5806
|
+
...args: Args
|
|
5807
|
+
): Locator<To>;
|
|
5522
5808
|
/**
|
|
5523
5809
|
* Creates an expectation that is evaluated against located values.
|
|
5524
5810
|
*
|
|
@@ -5526,7 +5812,10 @@ export declare abstract class Locator<T> extends EventEmitter<LocatorEvents> {
|
|
|
5526
5812
|
*
|
|
5527
5813
|
* @public
|
|
5528
5814
|
*/
|
|
5529
|
-
filter<S extends T
|
|
5815
|
+
filter<S extends T, Args extends unknown[] = []>(
|
|
5816
|
+
predicate: Predicate<T, S, Args>,
|
|
5817
|
+
...args: Args
|
|
5818
|
+
): Locator<S>;
|
|
5530
5819
|
/**
|
|
5531
5820
|
* Clicks the located element.
|
|
5532
5821
|
*/
|
|
@@ -5664,7 +5953,10 @@ export declare type LowerCasePaperFormat =
|
|
|
5664
5953
|
/**
|
|
5665
5954
|
* @public
|
|
5666
5955
|
*/
|
|
5667
|
-
export declare type Mapper<From, To> = (
|
|
5956
|
+
export declare type Mapper<From, To, Args extends unknown[] = []> = (
|
|
5957
|
+
value: From,
|
|
5958
|
+
...args: InnerParams<Args>
|
|
5959
|
+
) => Awaitable<To>;
|
|
5668
5960
|
|
|
5669
5961
|
/**
|
|
5670
5962
|
* A media feature to emulate.
|
|
@@ -5739,6 +6031,16 @@ export declare interface Metrics {
|
|
|
5739
6031
|
* Total JavaScript heap size, in bytes.
|
|
5740
6032
|
*/
|
|
5741
6033
|
JSHeapTotalSize?: number;
|
|
6034
|
+
/**
|
|
6035
|
+
* The timestamp when the DOMContentLoaded event was fired, in monotonic
|
|
6036
|
+
* time (seconds since an arbitrary point in the past).
|
|
6037
|
+
*/
|
|
6038
|
+
DomContentLoaded?: number;
|
|
6039
|
+
/**
|
|
6040
|
+
* The timestamp when the navigation started, in monotonic time (seconds
|
|
6041
|
+
* since an arbitrary point in the past).
|
|
6042
|
+
*/
|
|
6043
|
+
NavigationStart?: number;
|
|
5742
6044
|
}
|
|
5743
6045
|
|
|
5744
6046
|
/**
|
|
@@ -6959,6 +7261,12 @@ export declare abstract class Page extends EventEmitter<PageEvents> {
|
|
|
6959
7261
|
*
|
|
6960
7262
|
* - `JSHeapTotalSize` : Total JavaScript heap size, in bytes.
|
|
6961
7263
|
*
|
|
7264
|
+
* - `DomContentLoaded` : The timestamp when the DOMContentLoaded event was
|
|
7265
|
+
* fired, in monotonic time (seconds).
|
|
7266
|
+
*
|
|
7267
|
+
* - `NavigationStart` : The timestamp when the navigation started, in
|
|
7268
|
+
* monotonic time (seconds).
|
|
7269
|
+
*
|
|
6962
7270
|
* @remarks
|
|
6963
7271
|
* All timestamps are in monotonic time: monotonically increasing time
|
|
6964
7272
|
* in seconds since an arbitrary point in the past.
|
|
@@ -7631,7 +7939,11 @@ export declare abstract class Page extends EventEmitter<PageEvents> {
|
|
|
7631
7939
|
*
|
|
7632
7940
|
* To generate a PDF with the `screen` media type, call
|
|
7633
7941
|
* {@link Page.emulateMediaType | `page.emulateMediaType('screen')`} before
|
|
7634
|
-
* calling `page.pdf()`.
|
|
7942
|
+
* calling `page.pdf()`. Note that this disables `@media print` stylesheets,
|
|
7943
|
+
* which may cause layout issues on pages that rely on print styles for
|
|
7944
|
+
* pagination. Call
|
|
7945
|
+
* {@link Page.emulateMediaType | `page.emulateMediaType(null)`} to restore
|
|
7946
|
+
* the default `print` media type.
|
|
7635
7947
|
*
|
|
7636
7948
|
* By default, `page.pdf()` generates a pdf with modified colors for printing.
|
|
7637
7949
|
* Use the
|
|
@@ -8558,8 +8870,13 @@ export declare const PredefinedNetworkConditions: Readonly<{
|
|
|
8558
8870
|
/**
|
|
8559
8871
|
* @public
|
|
8560
8872
|
*/
|
|
8561
|
-
export declare type Predicate<
|
|
8562
|
-
|
|
8873
|
+
export declare type Predicate<
|
|
8874
|
+
From,
|
|
8875
|
+
To extends From = From,
|
|
8876
|
+
Args extends unknown[] = [],
|
|
8877
|
+
> =
|
|
8878
|
+
| ((value: From, ...args: InnerParams<Args>) => value is To)
|
|
8879
|
+
| ((value: From, ...args: InnerParams<Args>) => Awaitable<boolean>);
|
|
8563
8880
|
|
|
8564
8881
|
declare interface ProcessExitEmitter {
|
|
8565
8882
|
once(event: 'exit', listener: () => void): void;
|