chrome-devtools-frontend 1.0.950484 → 1.0.951410
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 -4
- package/docs/triage_guidelines.md +2 -2
- package/front_end/core/dom_extension/DOMExtension.ts +1 -1
- package/front_end/core/host/InspectorFrontendHostAPI.ts +0 -1
- package/front_end/core/host/UserMetrics.ts +0 -14
- 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/platform/platform.ts +1 -2
- package/front_end/core/platform/typescript-utilities.ts +4 -0
- 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/RuntimeModel.ts +0 -1
- package/front_end/core/sdk/SourceMap.ts +1 -1
- package/front_end/devtools_compatibility.js +0 -1
- package/front_end/entrypoints/device_mode_emulation_frame/device_mode_emulation_frame.ts +2 -7
- package/front_end/entrypoints/heap_snapshot_worker/AllocationProfile.ts +3 -3
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +1 -2
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshotWorkerDispatcher.ts +1 -1
- package/front_end/entrypoints/main/MainImpl.ts +1 -3
- package/front_end/models/bindings/DebuggerLanguagePlugins.ts +1 -2
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +1 -1
- package/front_end/models/bindings/FileUtils.ts +0 -1
- 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 +0 -1
- package/front_end/models/issues_manager/SameSiteCookieIssue.ts +1 -2
- package/front_end/models/timeline_model/TracingLayerTree.ts +0 -1
- package/front_end/panels/accessibility/ARIAMetadata.ts +0 -1
- package/front_end/panels/accessibility/AXBreadcrumbsPane.ts +2 -2
- package/front_end/panels/accessibility/AccessibilityNodeView.ts +1 -2
- package/front_end/panels/animation/AnimationTimeline.ts +0 -1
- package/front_end/panels/application/ApplicationPanelCacheSection.ts +3 -4
- package/front_end/panels/application/ServiceWorkerUpdateCycleView.ts +0 -2
- package/front_end/panels/application/StorageView.ts +2 -6
- package/front_end/panels/application/{BackForwardCacheStrings.ts → components/BackForwardCacheStrings.ts} +2 -2
- package/front_end/panels/application/{BackForwardCacheView.ts → components/BackForwardCacheView.ts} +76 -42
- package/front_end/panels/application/{backForwardCacheView.css → components/backForwardCacheView.css} +9 -0
- package/front_end/panels/application/components/components.ts +2 -0
- package/front_end/panels/elements/ComputedStyleModel.ts +2 -2
- package/front_end/panels/elements/ElementsPanel.ts +1 -5
- package/front_end/panels/elements/ElementsTreeOutline.ts +2 -2
- package/front_end/panels/elements/StylesSidebarPane.ts +1 -1
- package/front_end/panels/layer_viewer/Layers3DView.ts +3 -9
- package/front_end/panels/lighthouse/LighthouseController.ts +4 -5
- package/front_end/panels/media/TickingFlameChart.ts +1 -2
- package/front_end/panels/network/NetworkLogViewColumns.ts +1 -1
- package/front_end/panels/profiler/HeapProfileView.ts +1 -1
- package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +0 -1
- package/front_end/panels/profiler/HeapSnapshotView.ts +1 -2
- package/front_end/panels/profiler/heapProfiler.css +1 -1
- package/front_end/panels/security/SecurityModel.ts +2 -4
- package/front_end/panels/security/SecurityPanel.ts +2 -2
- package/front_end/panels/settings/settingsScreen.css +8 -3
- package/front_end/panels/sources/FilteredUISourceCodeListProvider.ts +2 -2
- package/front_end/panels/sources/NavigatorView.ts +1 -1
- package/front_end/panels/sources/ScopeChainSidebarPane.ts +2 -3
- package/front_end/panels/sources/TabbedEditorContainer.ts +1 -1
- 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/TimelinePanel.ts +2 -3
- package/front_end/panels/timeline/TimelineUIUtils.ts +1 -1
- package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
- package/front_end/third_party/codemirror.next/codemirror.next.d.ts +15 -0
- package/front_end/third_party/codemirror.next/package.json +3 -3
- package/front_end/third_party/puppeteer/package/README.md +11 -11
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api-docs-entry.d.ts +4 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts +4 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.d.ts +1 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts +1 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.d.ts +1 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.d.ts +9 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js +21 -12
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Dialog.d.ts +1 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EvalTypes.d.ts +1 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.d.ts +3 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FileChooser.d.ts +1 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts +8 -10
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts +50 -11
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js +70 -33
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.d.ts +12 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.js +25 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.d.ts +2 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts +39 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js +36 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts +3 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js +2 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.d.ts +46 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.js +124 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts +27 -10
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js +144 -74
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.d.ts +5 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.d.ts +1 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.d.ts +4 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.d.ts +3 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.d.ts +4 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js +43 -17
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.d.ts +1 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js +101 -34
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.d.ts +1 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.d.ts +1 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.d.ts +5 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api-docs-entry.d.ts +4 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts +4 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js +2 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.d.ts +1 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js +3 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts +1 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts +1 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.js +1 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts +9 -7
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js +24 -17
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.d.ts +1 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EvalTypes.d.ts +1 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.d.ts +3 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.d.ts +1 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts +8 -10
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js +7 -8
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts +50 -11
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js +70 -34
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts +12 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.js +26 -7
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts +2 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts +39 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js +38 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.d.ts +3 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.js +4 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.d.ts +46 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.js +120 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts +27 -10
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js +144 -75
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js +12 -14
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.d.ts +5 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.js +3 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.d.ts +1 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts +4 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.d.ts +3 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.js +1 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js +3 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initialize-node.js +1 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js +10 -12
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts +4 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js +43 -20
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts +1 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js +104 -40
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts +1 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.d.ts +1 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.js +1 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts +5 -7
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js +1 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.js +3 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node-puppeteer-core.js +1 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node.js +1 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/web.js +1 -2
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +173 -36
- package/front_end/third_party/puppeteer/package/package.json +3 -3
- package/front_end/ui/components/markdown_view/MarkdownView.ts +0 -1
- package/front_end/ui/components/report_view/report.css +0 -1
- package/front_end/ui/components/text_editor/config.ts +7 -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/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 +3 -3
- 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 -2
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +0 -1
- package/front_end/ui/legacy/components/utils/Linkifier.ts +2 -2
- package/front_end/ui/legacy/theme_support/theme_support_impl.ts +12 -1
- package/inspector_overlay/main.ts +16 -2
- package/package.json +1 -1
- package/scripts/build/ninja/copy.gni +2 -2
- package/front_end/core/platform/utilities.ts +0 -49
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { assert } from './assert.js';
|
|
17
16
|
import { EventEmitter } from './EventEmitter.js';
|
|
18
|
-
import {
|
|
17
|
+
import { assert } from './assert.js';
|
|
18
|
+
import { helper, debugError } from './helper.js';
|
|
19
19
|
import { HTTPRequest } from './HTTPRequest.js';
|
|
20
20
|
import { HTTPResponse } from './HTTPResponse.js';
|
|
21
|
-
|
|
21
|
+
import { NetworkEventManager } from './NetworkEventManager.js';
|
|
22
22
|
/**
|
|
23
23
|
* We use symbols to prevent any external parties listening to these events.
|
|
24
24
|
* They are internal to Puppeteer.
|
|
@@ -38,39 +38,7 @@ export const NetworkManagerEmittedEvents = {
|
|
|
38
38
|
export class NetworkManager extends EventEmitter {
|
|
39
39
|
constructor(client, ignoreHTTPSErrors, frameManager) {
|
|
40
40
|
super();
|
|
41
|
-
|
|
42
|
-
* There are four possible orders of events:
|
|
43
|
-
* A. `_onRequestWillBeSent`
|
|
44
|
-
* B. `_onRequestWillBeSent`, `_onRequestPaused`
|
|
45
|
-
* C. `_onRequestPaused`, `_onRequestWillBeSent`
|
|
46
|
-
* D. `_onRequestPaused`, `_onRequestWillBeSent`, `_onRequestPaused`
|
|
47
|
-
* (see crbug.com/1196004)
|
|
48
|
-
*
|
|
49
|
-
* For `_onRequest` we need the event from `_onRequestWillBeSent` and
|
|
50
|
-
* optionally the `interceptionId` from `_onRequestPaused`.
|
|
51
|
-
*
|
|
52
|
-
* If request interception is disabled, call `_onRequest` once per call to
|
|
53
|
-
* `_onRequestWillBeSent`.
|
|
54
|
-
* If request interception is enabled, call `_onRequest` once per call to
|
|
55
|
-
* `_onRequestPaused` (once per `interceptionId`).
|
|
56
|
-
*
|
|
57
|
-
* Events are stored to allow for subsequent events to call `_onRequest`.
|
|
58
|
-
*
|
|
59
|
-
* Note that (chains of) redirect requests have the same `requestId` (!) as
|
|
60
|
-
* the original request. We have to anticipate series of events like these:
|
|
61
|
-
* A. `_onRequestWillBeSent`,
|
|
62
|
-
* `_onRequestWillBeSent`, ...
|
|
63
|
-
* B. `_onRequestWillBeSent`, `_onRequestPaused`,
|
|
64
|
-
* `_onRequestWillBeSent`, `_onRequestPaused`, ...
|
|
65
|
-
* C. `_onRequestWillBeSent`, `_onRequestPaused`,
|
|
66
|
-
* `_onRequestPaused`, `_onRequestWillBeSent`, ...
|
|
67
|
-
* D. `_onRequestPaused`, `_onRequestWillBeSent`,
|
|
68
|
-
* `_onRequestPaused`, `_onRequestWillBeSent`, `_onRequestPaused`, ...
|
|
69
|
-
* (see crbug.com/1196004)
|
|
70
|
-
*/
|
|
71
|
-
this._requestIdToRequestWillBeSentEvent = new Map();
|
|
72
|
-
this._requestIdToRequestPausedEvent = new Map();
|
|
73
|
-
this._requestIdToRequest = new Map();
|
|
41
|
+
this._networkEventManager = new NetworkEventManager();
|
|
74
42
|
this._extraHTTPHeaders = {};
|
|
75
43
|
this._credentials = null;
|
|
76
44
|
this._attemptedAuthentications = new Set();
|
|
@@ -93,6 +61,7 @@ export class NetworkManager extends EventEmitter {
|
|
|
93
61
|
this._client.on('Network.responseReceived', this._onResponseReceived.bind(this));
|
|
94
62
|
this._client.on('Network.loadingFinished', this._onLoadingFinished.bind(this));
|
|
95
63
|
this._client.on('Network.loadingFailed', this._onLoadingFailed.bind(this));
|
|
64
|
+
this._client.on('Network.responseReceivedExtraInfo', this._onResponseReceivedExtraInfo.bind(this));
|
|
96
65
|
}
|
|
97
66
|
async initialize() {
|
|
98
67
|
await this._client.send('Network.enable');
|
|
@@ -120,9 +89,7 @@ export class NetworkManager extends EventEmitter {
|
|
|
120
89
|
return Object.assign({}, this._extraHTTPHeaders);
|
|
121
90
|
}
|
|
122
91
|
numRequestsInProgress() {
|
|
123
|
-
return
|
|
124
|
-
return !request.response();
|
|
125
|
-
}).length;
|
|
92
|
+
return this._networkEventManager.numRequestsInProgress();
|
|
126
93
|
}
|
|
127
94
|
async setOfflineMode(value) {
|
|
128
95
|
this._emulatedNetworkConditions.offline = value;
|
|
@@ -195,13 +162,16 @@ export class NetworkManager extends EventEmitter {
|
|
|
195
162
|
// Request interception doesn't happen for data URLs with Network Service.
|
|
196
163
|
if (this._userRequestInterceptionEnabled &&
|
|
197
164
|
!event.request.url.startsWith('data:')) {
|
|
198
|
-
const requestId = event
|
|
199
|
-
|
|
200
|
-
|
|
165
|
+
const { requestId: networkRequestId } = event;
|
|
166
|
+
this._networkEventManager.storeRequestWillBeSent(networkRequestId, event);
|
|
167
|
+
/**
|
|
168
|
+
* CDP may have sent a Fetch.requestPaused event already. Check for it.
|
|
169
|
+
*/
|
|
170
|
+
const requestPausedEvent = this._networkEventManager.getRequestPaused(networkRequestId);
|
|
201
171
|
if (requestPausedEvent) {
|
|
202
|
-
const
|
|
203
|
-
this._onRequest(event,
|
|
204
|
-
this.
|
|
172
|
+
const { requestId: fetchRequestId } = requestPausedEvent;
|
|
173
|
+
this._onRequest(event, fetchRequestId);
|
|
174
|
+
this._networkEventManager.forgetRequestPaused(networkRequestId);
|
|
205
175
|
}
|
|
206
176
|
return;
|
|
207
177
|
}
|
|
@@ -227,6 +197,15 @@ export class NetworkManager extends EventEmitter {
|
|
|
227
197
|
})
|
|
228
198
|
.catch(debugError);
|
|
229
199
|
}
|
|
200
|
+
/**
|
|
201
|
+
* CDP may send a Fetch.requestPaused without or before a
|
|
202
|
+
* Network.requestWillBeSent
|
|
203
|
+
*
|
|
204
|
+
* CDP may send multiple Fetch.requestPaused
|
|
205
|
+
* for the same Network.requestWillBeSent.
|
|
206
|
+
*
|
|
207
|
+
*
|
|
208
|
+
*/
|
|
230
209
|
_onRequestPaused(event) {
|
|
231
210
|
if (!this._userRequestInterceptionEnabled &&
|
|
232
211
|
this._protocolRequestInterceptionEnabled) {
|
|
@@ -236,54 +215,75 @@ export class NetworkManager extends EventEmitter {
|
|
|
236
215
|
})
|
|
237
216
|
.catch(debugError);
|
|
238
217
|
}
|
|
239
|
-
const requestId = event
|
|
240
|
-
|
|
241
|
-
if (!requestId) {
|
|
218
|
+
const { networkId: networkRequestId, requestId: fetchRequestId } = event;
|
|
219
|
+
if (!networkRequestId) {
|
|
242
220
|
return;
|
|
243
221
|
}
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
(requestWillBeSentEvent
|
|
248
|
-
requestWillBeSentEvent.request.
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
222
|
+
const requestWillBeSentEvent = (() => {
|
|
223
|
+
const requestWillBeSentEvent = this._networkEventManager.getRequestWillBeSent(networkRequestId);
|
|
224
|
+
// redirect requests have the same `requestId`,
|
|
225
|
+
if (requestWillBeSentEvent &&
|
|
226
|
+
(requestWillBeSentEvent.request.url !== event.request.url ||
|
|
227
|
+
requestWillBeSentEvent.request.method !== event.request.method)) {
|
|
228
|
+
this._networkEventManager.forgetRequestWillBeSent(networkRequestId);
|
|
229
|
+
return;
|
|
230
|
+
}
|
|
231
|
+
return requestWillBeSentEvent;
|
|
232
|
+
})();
|
|
252
233
|
if (requestWillBeSentEvent) {
|
|
253
|
-
this._onRequest(requestWillBeSentEvent,
|
|
254
|
-
this._requestIdToRequestWillBeSentEvent.delete(requestId);
|
|
234
|
+
this._onRequest(requestWillBeSentEvent, fetchRequestId);
|
|
255
235
|
}
|
|
256
236
|
else {
|
|
257
|
-
this.
|
|
237
|
+
this._networkEventManager.storeRequestPaused(networkRequestId, event);
|
|
258
238
|
}
|
|
259
239
|
}
|
|
260
|
-
_onRequest(event,
|
|
240
|
+
_onRequest(event, fetchRequestId) {
|
|
261
241
|
let redirectChain = [];
|
|
262
242
|
if (event.redirectResponse) {
|
|
263
|
-
|
|
243
|
+
// We want to emit a response and requestfinished for the
|
|
244
|
+
// redirectResponse, but we can't do so unless we have a
|
|
245
|
+
// responseExtraInfo ready to pair it up with. If we don't have any
|
|
246
|
+
// responseExtraInfos saved in our queue, they we have to wait until
|
|
247
|
+
// the next one to emit response and requestfinished, *and* we should
|
|
248
|
+
// also wait to emit this Request too because it should come after the
|
|
249
|
+
// response/requestfinished.
|
|
250
|
+
let redirectResponseExtraInfo = null;
|
|
251
|
+
if (event.redirectHasExtraInfo) {
|
|
252
|
+
redirectResponseExtraInfo = this._networkEventManager
|
|
253
|
+
.responseExtraInfo(event.requestId)
|
|
254
|
+
.shift();
|
|
255
|
+
if (!redirectResponseExtraInfo) {
|
|
256
|
+
this._networkEventManager.queueRedirectInfo(event.requestId, {
|
|
257
|
+
event,
|
|
258
|
+
fetchRequestId,
|
|
259
|
+
});
|
|
260
|
+
return;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
const request = this._networkEventManager.getRequest(event.requestId);
|
|
264
264
|
// If we connect late to the target, we could have missed the
|
|
265
265
|
// requestWillBeSent event.
|
|
266
266
|
if (request) {
|
|
267
|
-
this._handleRequestRedirect(request, event.redirectResponse);
|
|
267
|
+
this._handleRequestRedirect(request, event.redirectResponse, redirectResponseExtraInfo);
|
|
268
268
|
redirectChain = request._redirectChain;
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
271
|
const frame = event.frameId
|
|
272
272
|
? this._frameManager.frame(event.frameId)
|
|
273
273
|
: null;
|
|
274
|
-
const request = new HTTPRequest(this._client, frame,
|
|
275
|
-
this.
|
|
274
|
+
const request = new HTTPRequest(this._client, frame, fetchRequestId, this._userRequestInterceptionEnabled, event, redirectChain);
|
|
275
|
+
this._networkEventManager.storeRequest(event.requestId, request);
|
|
276
276
|
this.emit(NetworkManagerEmittedEvents.Request, request);
|
|
277
277
|
request.finalizeInterceptions();
|
|
278
278
|
}
|
|
279
279
|
_onRequestServedFromCache(event) {
|
|
280
|
-
const request = this.
|
|
280
|
+
const request = this._networkEventManager.getRequest(event.requestId);
|
|
281
281
|
if (request)
|
|
282
282
|
request._fromMemoryCache = true;
|
|
283
283
|
this.emit(NetworkManagerEmittedEvents.RequestServedFromCache, request);
|
|
284
284
|
}
|
|
285
|
-
_handleRequestRedirect(request, responsePayload) {
|
|
286
|
-
const response = new HTTPResponse(this._client, request, responsePayload);
|
|
285
|
+
_handleRequestRedirect(request, responsePayload, extraInfo) {
|
|
286
|
+
const response = new HTTPResponse(this._client, request, responsePayload, extraInfo);
|
|
287
287
|
request._response = response;
|
|
288
288
|
request._redirectChain.push(request);
|
|
289
289
|
response._resolveBody(new Error('Response body is unavailable for redirect responses'));
|
|
@@ -291,27 +291,85 @@ export class NetworkManager extends EventEmitter {
|
|
|
291
291
|
this.emit(NetworkManagerEmittedEvents.Response, response);
|
|
292
292
|
this.emit(NetworkManagerEmittedEvents.RequestFinished, request);
|
|
293
293
|
}
|
|
294
|
-
|
|
295
|
-
const request = this.
|
|
294
|
+
_emitResponseEvent(responseReceived, extraInfo) {
|
|
295
|
+
const request = this._networkEventManager.getRequest(responseReceived.requestId);
|
|
296
296
|
// FileUpload sends a response without a matching request.
|
|
297
297
|
if (!request)
|
|
298
298
|
return;
|
|
299
|
-
const
|
|
299
|
+
const extraInfos = this._networkEventManager.responseExtraInfo(responseReceived.requestId);
|
|
300
|
+
if (extraInfos.length) {
|
|
301
|
+
debugError(new Error('Unexpected extraInfo events for request ' +
|
|
302
|
+
responseReceived.requestId));
|
|
303
|
+
}
|
|
304
|
+
const response = new HTTPResponse(this._client, request, responseReceived.response, extraInfo);
|
|
300
305
|
request._response = response;
|
|
301
306
|
this.emit(NetworkManagerEmittedEvents.Response, response);
|
|
302
307
|
}
|
|
308
|
+
_onResponseReceived(event) {
|
|
309
|
+
const request = this._networkEventManager.getRequest(event.requestId);
|
|
310
|
+
let extraInfo = null;
|
|
311
|
+
if (request && !request._fromMemoryCache && event.hasExtraInfo) {
|
|
312
|
+
extraInfo = this._networkEventManager
|
|
313
|
+
.responseExtraInfo(event.requestId)
|
|
314
|
+
.shift();
|
|
315
|
+
if (!extraInfo) {
|
|
316
|
+
// Wait until we get the corresponding ExtraInfo event.
|
|
317
|
+
this._networkEventManager.queueEventGroup(event.requestId, {
|
|
318
|
+
responseReceivedEvent: event,
|
|
319
|
+
});
|
|
320
|
+
return;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
this._emitResponseEvent(event, extraInfo);
|
|
324
|
+
}
|
|
325
|
+
_onResponseReceivedExtraInfo(event) {
|
|
326
|
+
// We may have skipped a redirect response/request pair due to waiting for
|
|
327
|
+
// this ExtraInfo event. If so, continue that work now that we have the
|
|
328
|
+
// request.
|
|
329
|
+
const redirectInfo = this._networkEventManager.takeQueuedRedirectInfo(event.requestId);
|
|
330
|
+
if (redirectInfo) {
|
|
331
|
+
this._networkEventManager.responseExtraInfo(event.requestId).push(event);
|
|
332
|
+
this._onRequest(redirectInfo.event, redirectInfo.fetchRequestId);
|
|
333
|
+
return;
|
|
334
|
+
}
|
|
335
|
+
// We may have skipped response and loading events because we didn't have
|
|
336
|
+
// this ExtraInfo event yet. If so, emit those events now.
|
|
337
|
+
const queuedEvents = this._networkEventManager.getQueuedEventGroup(event.requestId);
|
|
338
|
+
if (queuedEvents) {
|
|
339
|
+
this._emitResponseEvent(queuedEvents.responseReceivedEvent, event);
|
|
340
|
+
if (queuedEvents.loadingFinishedEvent) {
|
|
341
|
+
this._emitLoadingFinished(queuedEvents.loadingFinishedEvent);
|
|
342
|
+
}
|
|
343
|
+
if (queuedEvents.loadingFailedEvent) {
|
|
344
|
+
this._emitLoadingFailed(queuedEvents.loadingFailedEvent);
|
|
345
|
+
}
|
|
346
|
+
return;
|
|
347
|
+
}
|
|
348
|
+
// Wait until we get another event that can use this ExtraInfo event.
|
|
349
|
+
this._networkEventManager.responseExtraInfo(event.requestId).push(event);
|
|
350
|
+
}
|
|
303
351
|
_forgetRequest(request, events) {
|
|
304
352
|
const requestId = request._requestId;
|
|
305
353
|
const interceptionId = request._interceptionId;
|
|
306
|
-
this.
|
|
354
|
+
this._networkEventManager.forgetRequest(requestId);
|
|
307
355
|
this._attemptedAuthentications.delete(interceptionId);
|
|
308
356
|
if (events) {
|
|
309
|
-
this.
|
|
310
|
-
this._requestIdToRequestPausedEvent.delete(requestId);
|
|
357
|
+
this._networkEventManager.forget(requestId);
|
|
311
358
|
}
|
|
312
359
|
}
|
|
313
360
|
_onLoadingFinished(event) {
|
|
314
|
-
|
|
361
|
+
// If the response event for this request is still waiting on a
|
|
362
|
+
// corresponding ExtraInfo event, then wait to emit this event too.
|
|
363
|
+
const queuedEvents = this._networkEventManager.getQueuedEventGroup(event.requestId);
|
|
364
|
+
if (queuedEvents) {
|
|
365
|
+
queuedEvents.loadingFinishedEvent = event;
|
|
366
|
+
}
|
|
367
|
+
else {
|
|
368
|
+
this._emitLoadingFinished(event);
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
_emitLoadingFinished(event) {
|
|
372
|
+
const request = this._networkEventManager.getRequest(event.requestId);
|
|
315
373
|
// For certain requestIds we never receive requestWillBeSent event.
|
|
316
374
|
// @see https://crbug.com/750469
|
|
317
375
|
if (!request)
|
|
@@ -324,7 +382,18 @@ export class NetworkManager extends EventEmitter {
|
|
|
324
382
|
this.emit(NetworkManagerEmittedEvents.RequestFinished, request);
|
|
325
383
|
}
|
|
326
384
|
_onLoadingFailed(event) {
|
|
327
|
-
|
|
385
|
+
// If the response event for this request is still waiting on a
|
|
386
|
+
// corresponding ExtraInfo event, then wait to emit this event too.
|
|
387
|
+
const queuedEvents = this._networkEventManager.getQueuedEventGroup(event.requestId);
|
|
388
|
+
if (queuedEvents) {
|
|
389
|
+
queuedEvents.loadingFailedEvent = event;
|
|
390
|
+
}
|
|
391
|
+
else {
|
|
392
|
+
this._emitLoadingFailed(event);
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
_emitLoadingFailed(event) {
|
|
396
|
+
const request = this._networkEventManager.getRequest(event.requestId);
|
|
328
397
|
// For certain requestIds we never receive requestWillBeSent event.
|
|
329
398
|
// @see https://crbug.com/750469
|
|
330
399
|
if (!request)
|
package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NetworkManager.js","sourceRoot":"","sources":["../../../../src/common/NetworkManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAIjD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AA4BjD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,OAAO,EAAE,MAAM,CAAC,wBAAwB,CAAC;IACzC,sBAAsB,EAAE,MAAM,CAAC,uCAAuC,CAAC;IACvE,QAAQ,EAAE,MAAM,CAAC,yBAAyB,CAAC;IAC3C,aAAa,EAAE,MAAM,CAAC,8BAA8B,CAAC;IACrD,eAAe,EAAE,MAAM,CAAC,gCAAgC,CAAC;CACjD,CAAC;AAEX;;GAEG;AACH,MAAM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,OAAO;YAAE,OAAO;QAErB,qEAAqE;QACrE,qDAAqD;QACrD,IAAI,OAAO,CAAC,QAAQ,EAAE;YAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;QAC9D,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACnC,IAAI,CAAC,IAAI,CAAC,2BAA2B,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED,gBAAgB,CAAC,KAA0C;QACzD,+DAA+D;QAC/D,mEAAmE;QACnE,MAAM,YAAY,GAAG,IAAI,CAAC,oBAAoB,CAAC,mBAAmB,CAChE,KAAK,CAAC,SAAS,CAChB,CAAC;QACF,IAAI,YAAY,EAAE;YAChB,YAAY,CAAC,kBAAkB,GAAG,KAAK,CAAC;SACzC;aAAM;YACL,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;SAChC;IACH,CAAC;IAED,kBAAkB,CAAC,KAA0C;QAC3D,MAAM,OAAO,GAAG,IAAI,CAAC,oBAAoB,CAAC,UAAU,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QACtE,mEAAmE;QACnE,gCAAgC;QAChC,IAAI,CAAC,OAAO;YAAE,OAAO;QACrB,OAAO,CAAC,YAAY,GAAG,KAAK,CAAC,SAAS,CAAC;QACvC,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;QACpC,IAAI,QAAQ;YAAE,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;QAC1C,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACnC,IAAI,CAAC,IAAI,CAAC,2BAA2B,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;CACF"}
|
|
@@ -13,27 +13,25 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
import { Accessibility } from './Accessibility.js';
|
|
19
|
-
import { assert, assertNever } from './assert.js';
|
|
20
|
-
import { CDPSessionEmittedEvents, Connection, } from './Connection.js';
|
|
21
|
-
import { ConsoleMessage } from './ConsoleMessage.js';
|
|
22
|
-
import { Coverage } from './Coverage.js';
|
|
16
|
+
import { EventEmitter } from './EventEmitter.js';
|
|
17
|
+
import { Connection, CDPSessionEmittedEvents, } from './Connection.js';
|
|
23
18
|
import { Dialog } from './Dialog.js';
|
|
24
19
|
import { EmulationManager } from './EmulationManager.js';
|
|
25
|
-
import { EventEmitter } from './EventEmitter.js';
|
|
26
|
-
import { FileChooser } from './FileChooser.js';
|
|
27
20
|
import { FrameManager, FrameManagerEmittedEvents, } from './FrameManager.js';
|
|
28
|
-
import { debugError , helper} from './helper.js';
|
|
29
21
|
import { Keyboard, Mouse, Touchscreen } from './Input.js';
|
|
22
|
+
import { Tracing } from './Tracing.js';
|
|
23
|
+
import { assert, assertNever } from './assert.js';
|
|
24
|
+
import { helper, debugError } from './helper.js';
|
|
25
|
+
import { Coverage } from './Coverage.js';
|
|
26
|
+
import { WebWorker } from './WebWorker.js';
|
|
30
27
|
import { createJSHandle } from './JSHandle.js';
|
|
31
28
|
import { NetworkManagerEmittedEvents, } from './NetworkManager.js';
|
|
32
|
-
import {
|
|
29
|
+
import { Accessibility } from './Accessibility.js';
|
|
33
30
|
import { TimeoutSettings } from './TimeoutSettings.js';
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
|
|
31
|
+
import { FileChooser } from './FileChooser.js';
|
|
32
|
+
import { ConsoleMessage } from './ConsoleMessage.js';
|
|
33
|
+
import { paperFormats } from './PDFOptions.js';
|
|
34
|
+
import { isNode } from '../environment.js';
|
|
37
35
|
/**
|
|
38
36
|
* Page provides methods to interact with a single tab or
|
|
39
37
|
* {@link https://developer.chrome.com/extensions/background_pages | extension background page} in Chromium.
|
|
@@ -13,15 +13,14 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import {
|
|
17
|
-
import { BrowserConnectOptions } from './BrowserConnector.js';
|
|
16
|
+
import { PuppeteerErrors } from './Errors.js';
|
|
18
17
|
import { ConnectionTransport } from './ConnectionTransport.js';
|
|
19
18
|
import { DevicesMap } from './DeviceDescriptors.js';
|
|
20
|
-
import {
|
|
21
|
-
import { PredefinedNetworkConditions } from './NetworkConditions.js';
|
|
22
|
-
import { Product } from './Product.js';
|
|
19
|
+
import { Browser } from './Browser.js';
|
|
23
20
|
import { CustomQueryHandler } from './QueryHandler.js';
|
|
24
|
-
|
|
21
|
+
import { Product } from './Product.js';
|
|
22
|
+
import { BrowserConnectOptions } from './BrowserConnector.js';
|
|
23
|
+
import { PredefinedNetworkConditions } from './NetworkConditions.js';
|
|
25
24
|
/**
|
|
26
25
|
* Settings that are common to the Puppeteer class, regardless of enviroment.
|
|
27
26
|
* @internal
|
|
@@ -13,12 +13,11 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { connectToBrowser } from './BrowserConnector.js';
|
|
17
|
-
import { devicesMap } from './DeviceDescriptors.js';
|
|
18
16
|
import { puppeteerErrors } from './Errors.js';
|
|
17
|
+
import { devicesMap } from './DeviceDescriptors.js';
|
|
18
|
+
import { registerCustomQueryHandler, unregisterCustomQueryHandler, customQueryHandlerNames, clearCustomQueryHandlers, } from './QueryHandler.js';
|
|
19
|
+
import { connectToBrowser } from './BrowserConnector.js';
|
|
19
20
|
import { networkConditions, } from './NetworkConditions.js';
|
|
20
|
-
import { clearCustomQueryHandlers, customQueryHandlerNames, registerCustomQueryHandler, unregisterCustomQueryHandler, } from './QueryHandler.js';
|
|
21
|
-
|
|
22
21
|
/**
|
|
23
22
|
* The main Puppeteer class.
|
|
24
23
|
*
|
|
@@ -13,9 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { DOMWorld
|
|
16
|
+
import { WaitForSelectorOptions, DOMWorld } from './DOMWorld.js';
|
|
17
17
|
import { ElementHandle, JSHandle } from './JSHandle.js';
|
|
18
|
-
|
|
19
18
|
/**
|
|
20
19
|
* @internal
|
|
21
20
|
*/
|
|
@@ -13,15 +13,13 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { Protocol } from 'devtools-protocol';
|
|
17
|
-
|
|
18
|
-
import { Browser, BrowserContext } from './Browser.js';
|
|
19
|
-
import { CDPSession } from './Connection.js';
|
|
20
16
|
import { Page } from './Page.js';
|
|
17
|
+
import { WebWorker } from './WebWorker.js';
|
|
18
|
+
import { CDPSession } from './Connection.js';
|
|
19
|
+
import { Browser, BrowserContext } from './Browser.js';
|
|
21
20
|
import { Viewport } from './PuppeteerViewport.js';
|
|
21
|
+
import { Protocol } from 'devtools-protocol';
|
|
22
22
|
import { TaskQueue } from './TaskQueue.js';
|
|
23
|
-
import { WebWorker } from './WebWorker.js';
|
|
24
|
-
|
|
25
23
|
/**
|
|
26
24
|
* @public
|
|
27
25
|
*/
|
|
@@ -13,14 +13,12 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { Protocol } from 'devtools-protocol';
|
|
17
|
-
|
|
18
|
-
import { CDPSession } from './Connection.js';
|
|
19
|
-
import { EvaluateHandleFn, SerializableOrJSHandle } from './EvalTypes.js';
|
|
20
16
|
import { EventEmitter } from './EventEmitter.js';
|
|
21
17
|
import { ExecutionContext } from './ExecutionContext.js';
|
|
22
18
|
import { JSHandle } from './JSHandle.js';
|
|
23
|
-
|
|
19
|
+
import { CDPSession } from './Connection.js';
|
|
20
|
+
import { Protocol } from 'devtools-protocol';
|
|
21
|
+
import { EvaluateHandleFn, SerializableOrJSHandle } from './EvalTypes.js';
|
|
24
22
|
/**
|
|
25
23
|
* @internal
|
|
26
24
|
*/
|
|
@@ -14,10 +14,9 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { EventEmitter } from './EventEmitter.js';
|
|
17
|
-
import { ExecutionContext } from './ExecutionContext.js';
|
|
18
17
|
import { debugError } from './helper.js';
|
|
18
|
+
import { ExecutionContext } from './ExecutionContext.js';
|
|
19
19
|
import { JSHandle } from './JSHandle.js';
|
|
20
|
-
|
|
21
20
|
/**
|
|
22
21
|
* The WebWorker class represents a
|
|
23
22
|
* {@link https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API | WebWorker}.
|
|
@@ -13,12 +13,10 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { isNode } from '../environment.js';
|
|
17
|
-
|
|
18
|
-
import { assert } from './assert.js';
|
|
19
|
-
import { debug } from './Debug.js';
|
|
20
16
|
import { TimeoutError } from './Errors.js';
|
|
21
|
-
|
|
17
|
+
import { debug } from './Debug.js';
|
|
18
|
+
import { assert } from './assert.js';
|
|
19
|
+
import { isNode } from '../environment.js';
|
|
22
20
|
export const debugError = debug('puppeteer:error');
|
|
23
21
|
function getExceptionMessage(exceptionDetails) {
|
|
24
22
|
if (exceptionDetails.exception)
|
|
@@ -13,11 +13,9 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import pkgDir from 'pkg-dir';
|
|
17
|
-
|
|
18
16
|
import { PuppeteerNode } from './node/Puppeteer.js';
|
|
19
17
|
import { PUPPETEER_REVISIONS } from './revisions.js';
|
|
20
|
-
|
|
18
|
+
import pkgDir from 'pkg-dir';
|
|
21
19
|
export const initializePuppeteerNode = (packageName) => {
|
|
22
20
|
const puppeteerRootDirectory = pkgDir.sync(__dirname);
|
|
23
21
|
let preferredRevision = PUPPETEER_REVISIONS.chromium;
|
|
@@ -13,23 +13,21 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import * as childProcess from 'child_process';
|
|
17
|
-
import extractZip from 'extract-zip';
|
|
18
|
-
import * as fs from 'fs';
|
|
19
|
-
import * as http from 'http';
|
|
20
|
-
import * as https from 'https';
|
|
21
|
-
import createHttpsProxyAgent from 'https-proxy-agent';
|
|
22
16
|
import * as os from 'os';
|
|
17
|
+
import * as fs from 'fs';
|
|
23
18
|
import * as path from 'path';
|
|
24
|
-
import { getProxyForUrl } from 'proxy-from-env';
|
|
25
|
-
import removeRecursive from 'rimraf';
|
|
26
|
-
import * as URL from 'url';
|
|
27
19
|
import * as util from 'util';
|
|
20
|
+
import * as childProcess from 'child_process';
|
|
21
|
+
import * as https from 'https';
|
|
22
|
+
import * as http from 'http';
|
|
23
|
+
import extractZip from 'extract-zip';
|
|
24
|
+
import { debug } from '../common/Debug.js';
|
|
28
25
|
import { promisify } from 'util';
|
|
29
|
-
|
|
26
|
+
import removeRecursive from 'rimraf';
|
|
27
|
+
import * as URL from 'url';
|
|
28
|
+
import createHttpsProxyAgent from 'https-proxy-agent';
|
|
29
|
+
import { getProxyForUrl } from 'proxy-from-env';
|
|
30
30
|
import { assert } from '../common/assert.js';
|
|
31
|
-
import { debug } from '../common/Debug.js';
|
|
32
|
-
|
|
33
31
|
const debugFetcher = debug('puppeteer:fetcher');
|
|
34
32
|
const downloadURLs = {
|
|
35
33
|
chrome: {
|
|
@@ -13,22 +13,21 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { LaunchOptions } from './LaunchOptions.js';
|
|
16
17
|
import { Connection } from '../common/Connection.js';
|
|
17
18
|
import { Product } from '../common/Product.js';
|
|
18
|
-
|
|
19
|
-
import { LaunchOptions } from './LaunchOptions.js';
|
|
20
|
-
|
|
21
19
|
export declare class BrowserRunner {
|
|
22
20
|
private _product;
|
|
23
21
|
private _executablePath;
|
|
24
22
|
private _processArguments;
|
|
25
|
-
private
|
|
23
|
+
private _userDataDir;
|
|
24
|
+
private _isTempUserDataDir?;
|
|
26
25
|
proc: any;
|
|
27
26
|
connection: any;
|
|
28
27
|
private _closed;
|
|
29
28
|
private _listeners;
|
|
30
29
|
private _processClosing;
|
|
31
|
-
constructor(product: Product, executablePath: string, processArguments: string[],
|
|
30
|
+
constructor(product: Product, executablePath: string, processArguments: string[], userDataDir: string, isTempUserDataDir?: boolean);
|
|
32
31
|
start(options: LaunchOptions): void;
|
|
33
32
|
close(): Promise<void>;
|
|
34
33
|
kill(): void;
|
package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrowserRunner.d.ts","sourceRoot":"","sources":["../../../../src/node/BrowserRunner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"BrowserRunner.d.ts","sourceRoot":"","sources":["../../../../src/node/BrowserRunner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAaH,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAGrD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAc/C,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAU;IAC1B,OAAO,CAAC,eAAe,CAAS;IAChC,OAAO,CAAC,iBAAiB,CAAW;IACpC,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,kBAAkB,CAAC,CAAU;IAErC,IAAI,MAAQ;IACZ,UAAU,MAAQ;IAElB,OAAO,CAAC,OAAO,CAAQ;IACvB,OAAO,CAAC,UAAU,CAAM;IACxB,OAAO,CAAC,eAAe,CAAgB;gBAGrC,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,MAAM,EACtB,gBAAgB,EAAE,MAAM,EAAE,EAC1B,WAAW,EAAE,MAAM,EACnB,iBAAiB,CAAC,EAAE,OAAO;IAS7B,KAAK,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IA2FnC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAiBtB,IAAI,IAAI,IAAI;IA0BN,eAAe,CAAC,OAAO,EAAE;QAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,iBAAiB,EAAE,MAAM,CAAC;KAC3B,GAAG,OAAO,CAAC,UAAU,CAAC;CAsBxB"}
|