chrome-devtools-frontend 1.0.973342 → 1.0.974080
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 +2 -0
- package/config/gni/devtools_image_files.gni +2 -0
- package/front_end/Images/src/triangle-collapsed.svg +1 -0
- package/front_end/Images/src/triangle-expanded.svg +1 -0
- package/front_end/core/common/ParsedURL.ts +9 -9
- package/front_end/core/sdk/DOMModel.ts +4 -4
- package/front_end/core/sdk/RemoteObject.ts +10 -2
- package/front_end/core/sdk/ResourceTreeModel.ts +1 -1
- package/front_end/core/sdk/SourceMap.ts +45 -38
- package/front_end/core/sdk/SourceMapManager.ts +2 -2
- package/front_end/core/sdk/Target.ts +5 -4
- package/front_end/entrypoints/node_app/NodeMain.ts +2 -1
- package/front_end/models/bindings/CompilerScriptMapping.ts +3 -2
- package/front_end/models/bindings/SASSSourceMapping.ts +1 -1
- package/front_end/models/formatter/SourceFormatter.ts +1 -1
- package/front_end/models/text_utils/StaticContentProvider.ts +4 -4
- package/front_end/models/workspace/UISourceCode.ts +8 -1
- package/front_end/panels/application/AppManifestView.ts +10 -4
- package/front_end/panels/application/DOMStorageItemsView.ts +2 -1
- package/front_end/panels/application/InterestGroupTreeElement.ts +3 -0
- package/front_end/panels/application/components/InterestGroupAccessGrid.ts +11 -0
- package/front_end/panels/console/ConsolePrompt.ts +8 -0
- package/front_end/panels/console/ErrorStackParser.ts +5 -1
- package/front_end/panels/elements/StylesSidebarPane.ts +2 -1
- package/front_end/panels/network/BinaryResourceView.ts +4 -1
- package/front_end/panels/network/RequestTimingView.ts +12 -2
- package/front_end/panels/network/ResourceWebSocketFrameView.ts +3 -2
- package/front_end/panels/sources/SourcesView.ts +51 -0
- package/front_end/third_party/puppeteer/package/README.md +15 -22
- package/front_end/third_party/puppeteer/package/cjs-entry-core.js +1 -1
- package/front_end/third_party/puppeteer/package/cjs-entry.js +1 -1
- package/front_end/third_party/puppeteer/package/install.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js +46 -13
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.js +11 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConnectionTransport.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConnectionTransport.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.js.map +1 -1
- 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 +3 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DeviceDescriptors.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DeviceDescriptors.js +336 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DeviceDescriptors.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.js +4 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.js +2 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts +9 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js +11 -0
- 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/HTTPResponse.d.ts +5 -0
- 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 +7 -0
- 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/JSHandle.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/fetch.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/fetch.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.js +13 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initialize-node.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initialize-node.js +16 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initialize-node.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js +25 -4
- 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/Launcher.d.ts +5 -4
- 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 +35 -21
- 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/Puppeteer.d.ts +5 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.js +12 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js +46 -13
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js +11 -7
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectionTransport.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectionTransport.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.js.map +1 -1
- 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 +3 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.js +336 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js +4 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.js +2 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts +9 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js +11 -0
- 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/HTTPResponse.d.ts +5 -0
- 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 +7 -0
- 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/JSHandle.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/fetch.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/fetch.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js +13 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initialize-node.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initialize-node.js +16 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initialize-node.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js +25 -4
- 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/Launcher.d.ts +5 -4
- 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 +35 -21
- 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/Puppeteer.d.ts +5 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.js +12 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +32 -18
- package/front_end/third_party/puppeteer/package/package.json +36 -35
- package/front_end/ui/components/text_editor/config.ts +17 -1
- package/front_end/ui/components/text_editor/cursor_tooltip.ts +7 -6
- package/front_end/ui/components/text_editor/javascript.ts +10 -5
- package/front_end/ui/components/text_prompt/TextPrompt.ts +9 -8
- package/front_end/ui/components/text_prompt/textPrompt.css +1 -6
- package/front_end/ui/legacy/TabbedPane.ts +3 -0
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +17 -3
- package/front_end/ui/legacy/components/source_frame/BinaryResourceViewFactory.ts +8 -8
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +1 -1
- package/package.json +1 -1
- package/scripts/build/assert_third_party_readmes.py +1 -1
- package/scripts/build/ninja/README.md +11 -40
@@ -209,6 +209,13 @@ export class ConsolePrompt extends Common.ObjectWrapper.eventMixin<EventTypes, t
|
|
209
209
|
{key: 'ArrowDown', run: (): boolean => this.moveHistory(1)},
|
210
210
|
{mac: 'Ctrl-p', run: (): boolean => this.moveHistory(-1, true)},
|
211
211
|
{mac: 'Ctrl-n', run: (): boolean => this.moveHistory(1, true)},
|
212
|
+
{
|
213
|
+
key: 'Escape',
|
214
|
+
run: (): boolean => {
|
215
|
+
TextEditor.JavaScript.closeArgumentsHintsTooltip(this.editor.editor);
|
216
|
+
return true;
|
217
|
+
},
|
218
|
+
},
|
212
219
|
{
|
213
220
|
key: 'Enter',
|
214
221
|
run: (): boolean => {
|
@@ -259,6 +266,7 @@ export class ConsolePrompt extends Common.ObjectWrapper.eventMixin<EventTypes, t
|
|
259
266
|
private async handleEnter(): Promise<void> {
|
260
267
|
if (await this.enterWillEvaluate()) {
|
261
268
|
this.appendCommand(this.text(), true);
|
269
|
+
TextEditor.JavaScript.closeArgumentsHintsTooltip(this.editor.editor);
|
262
270
|
this.editor.dispatch({
|
263
271
|
changes: {from: 0, to: this.editor.state.doc.length},
|
264
272
|
scrollIntoView: true,
|
@@ -3,6 +3,7 @@
|
|
3
3
|
// found in the LICENSE file.
|
4
4
|
|
5
5
|
import * as Common from '../../core/common/common.js';
|
6
|
+
import type * as Platform from '../../core/platform/platform.js';
|
6
7
|
import type * as SDK from '../../core/sdk/sdk.js';
|
7
8
|
import type * as Protocol from '../../generated/protocol.js';
|
8
9
|
|
@@ -80,7 +81,10 @@ export function parseSourcePositionsFromErrorStack(
|
|
80
81
|
}
|
81
82
|
let url = parseOrScriptMatch(debuggerModel, splitResult.url);
|
82
83
|
if (!url && Common.ParsedURL.ParsedURL.isRelativeURL(splitResult.url)) {
|
83
|
-
|
84
|
+
// TODO(crbug.com/1253323): Cast to UrlString will be removed when migration to branded types is complete.
|
85
|
+
url = parseOrScriptMatch(
|
86
|
+
debuggerModel,
|
87
|
+
Common.ParsedURL.ParsedURL.completeURL(baseURL as Platform.DevToolsPath.UrlString, splitResult.url));
|
84
88
|
}
|
85
89
|
if (!url) {
|
86
90
|
return null;
|
@@ -3391,7 +3391,8 @@ export class StylesSidebarPropertyRenderer {
|
|
3391
3391
|
UI.UIUtils.createTextChild(container, 'url(');
|
3392
3392
|
let hrefUrl: (string|null)|null = null;
|
3393
3393
|
if (this.rule && this.rule.resourceURL()) {
|
3394
|
-
|
3394
|
+
// TODO(crbug.com/1253323): Cast to UrlString will be removed when migration to branded types is complete.
|
3395
|
+
hrefUrl = Common.ParsedURL.ParsedURL.completeURL(this.rule.resourceURL() as Platform.DevToolsPath.UrlString, url);
|
3395
3396
|
} else if (this.node) {
|
3396
3397
|
hrefUrl = this.node.resolveURL(url);
|
3397
3398
|
}
|
@@ -8,6 +8,7 @@ import * as i18n from '../../core/i18n/i18n.js';
|
|
8
8
|
|
9
9
|
import binaryResourceViewStyles from './binaryResourceView.css.js';
|
10
10
|
|
11
|
+
import type * as Platform from '../../core/platform/platform.js';
|
11
12
|
import type * as TextUtils from '../../models/text_utils/text_utils.js';
|
12
13
|
import * as SourceFrame from '../../ui/legacy/components/source_frame/source_frame.js';
|
13
14
|
import * as UI from '../../ui/legacy/legacy.js';
|
@@ -70,7 +71,9 @@ export class BinaryResourceView extends UI.Widget.VBox {
|
|
70
71
|
private addFadeoutSettimeoutId: number|null;
|
71
72
|
private lastView: UI.Widget.Widget|null;
|
72
73
|
|
73
|
-
constructor(
|
74
|
+
constructor(
|
75
|
+
base64content: string, contentUrl: Platform.DevToolsPath.UrlString,
|
76
|
+
resourceType: Common.ResourceType.ResourceType) {
|
74
77
|
super();
|
75
78
|
|
76
79
|
this.binaryResourceViewFactory =
|
@@ -224,6 +224,7 @@ const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
224
224
|
export class RequestTimingView extends UI.Widget.VBox {
|
225
225
|
private request: SDK.NetworkRequest.NetworkRequest;
|
226
226
|
private calculator: NetworkTimeCalculator;
|
227
|
+
private lastMinimumBoundary: number;
|
227
228
|
private tableElement?: Element;
|
228
229
|
constructor(request: SDK.NetworkRequest.NetworkRequest, calculator: NetworkTimeCalculator) {
|
229
230
|
super();
|
@@ -231,6 +232,7 @@ export class RequestTimingView extends UI.Widget.VBox {
|
|
231
232
|
|
232
233
|
this.request = request;
|
233
234
|
this.calculator = calculator;
|
235
|
+
this.lastMinimumBoundary = -1;
|
234
236
|
}
|
235
237
|
|
236
238
|
private static timeRangeTitle(name: RequestTimeRangeNames): string {
|
@@ -647,7 +649,7 @@ export class RequestTimingView extends UI.Widget.VBox {
|
|
647
649
|
wasShown(): void {
|
648
650
|
this.request.addEventListener(SDK.NetworkRequest.Events.TimingChanged, this.refresh, this);
|
649
651
|
this.request.addEventListener(SDK.NetworkRequest.Events.FinishedLoading, this.refresh, this);
|
650
|
-
this.calculator.addEventListener(Events.BoundariesChanged, this.
|
652
|
+
this.calculator.addEventListener(Events.BoundariesChanged, this.boundaryChanged, this);
|
651
653
|
this.registerCSSFiles([networkingTimingTableStyles]);
|
652
654
|
this.refresh();
|
653
655
|
}
|
@@ -655,7 +657,7 @@ export class RequestTimingView extends UI.Widget.VBox {
|
|
655
657
|
willHide(): void {
|
656
658
|
this.request.removeEventListener(SDK.NetworkRequest.Events.TimingChanged, this.refresh, this);
|
657
659
|
this.request.removeEventListener(SDK.NetworkRequest.Events.FinishedLoading, this.refresh, this);
|
658
|
-
this.calculator.removeEventListener(Events.BoundariesChanged, this.
|
660
|
+
this.calculator.removeEventListener(Events.BoundariesChanged, this.boundaryChanged, this);
|
659
661
|
}
|
660
662
|
|
661
663
|
private refresh(): void {
|
@@ -671,6 +673,14 @@ export class RequestTimingView extends UI.Widget.VBox {
|
|
671
673
|
this.constructFetchDetailsView();
|
672
674
|
}
|
673
675
|
}
|
676
|
+
|
677
|
+
private boundaryChanged(): void {
|
678
|
+
const minimumBoundary = this.calculator.minimumBoundary();
|
679
|
+
if (minimumBoundary !== this.lastMinimumBoundary) {
|
680
|
+
this.lastMinimumBoundary = minimumBoundary;
|
681
|
+
this.refresh();
|
682
|
+
}
|
683
|
+
}
|
674
684
|
}
|
675
685
|
|
676
686
|
// TODO(crbug.com/1167717): Make this a const enum again
|
@@ -461,8 +461,9 @@ export class ResourceWebSocketFrameNode extends DataGrid.SortableDataGrid.Sortab
|
|
461
461
|
|
462
462
|
if (!this.binaryViewInternal) {
|
463
463
|
if (this.dataTextInternal.length > 0) {
|
464
|
-
this.binaryViewInternal =
|
465
|
-
|
464
|
+
this.binaryViewInternal = new BinaryResourceView(
|
465
|
+
this.dataTextInternal, /* url */ '' as Platform.DevToolsPath.UrlString,
|
466
|
+
Common.ResourceType.resourceTypes.WebSocket);
|
466
467
|
}
|
467
468
|
}
|
468
469
|
return this.binaryViewInternal;
|
@@ -385,19 +385,62 @@ export class SourcesView extends Common.ObjectWrapper.eventMixin<EventTypes, typ
|
|
385
385
|
this.historyManager.trackSourceFrameCursorJumps(sourceFrame);
|
386
386
|
}
|
387
387
|
|
388
|
+
uiSourceCode.addEventListener(Workspace.UISourceCode.Events.TitleChanged, this.#uiSourceCodeTitleChanged, this);
|
389
|
+
|
388
390
|
const widget = (sourceFrame || sourceView as UI.Widget.Widget);
|
389
391
|
this.sourceViewByUISourceCode.set(uiSourceCode, widget);
|
390
392
|
return widget;
|
391
393
|
}
|
392
394
|
|
395
|
+
#sourceViewTypeForWidget(widget: UI.Widget.Widget): SourceViewType {
|
396
|
+
if (widget instanceof SourceFrame.ImageView.ImageView) {
|
397
|
+
return SourceViewType.ImageView;
|
398
|
+
}
|
399
|
+
if (widget instanceof SourceFrame.FontView.FontView) {
|
400
|
+
return SourceViewType.FontView;
|
401
|
+
}
|
402
|
+
return SourceViewType.SourceView;
|
403
|
+
}
|
404
|
+
|
405
|
+
#sourceViewTypeForContentType(contentType: Common.ResourceType.ResourceType): SourceViewType {
|
406
|
+
switch (contentType) {
|
407
|
+
case Common.ResourceType.resourceTypes.Image:
|
408
|
+
return SourceViewType.ImageView;
|
409
|
+
case Common.ResourceType.resourceTypes.Font:
|
410
|
+
return SourceViewType.FontView;
|
411
|
+
default:
|
412
|
+
return SourceViewType.SourceView;
|
413
|
+
}
|
414
|
+
}
|
415
|
+
|
416
|
+
#uiSourceCodeTitleChanged(event: Common.EventTarget.EventTargetEvent<Workspace.UISourceCode.UISourceCode>): void {
|
417
|
+
const uiSourceCode = event.data;
|
418
|
+
const widget = this.sourceViewByUISourceCode.get(uiSourceCode);
|
419
|
+
if (widget) {
|
420
|
+
const contentType = uiSourceCode.contentType();
|
421
|
+
if (this.#sourceViewTypeForWidget(widget) !== this.#sourceViewTypeForContentType(contentType)) {
|
422
|
+
// Remove the exisiting editor tab and create a new one of the correct type.
|
423
|
+
this.removeUISourceCodes([uiSourceCode]);
|
424
|
+
this.showSourceLocation(uiSourceCode);
|
425
|
+
}
|
426
|
+
}
|
427
|
+
}
|
428
|
+
|
429
|
+
getSourceView(uiSourceCode: Workspace.UISourceCode.UISourceCode): UI.Widget.Widget|undefined {
|
430
|
+
return this.sourceViewByUISourceCode.get(uiSourceCode);
|
431
|
+
}
|
432
|
+
|
393
433
|
private getOrCreateSourceView(uiSourceCode: Workspace.UISourceCode.UISourceCode): UI.Widget.Widget {
|
394
434
|
return this.sourceViewByUISourceCode.get(uiSourceCode) || this.createSourceView(uiSourceCode);
|
395
435
|
}
|
396
436
|
|
397
437
|
recycleUISourceCodeFrame(sourceFrame: UISourceCodeFrame, uiSourceCode: Workspace.UISourceCode.UISourceCode): void {
|
438
|
+
sourceFrame.uiSourceCode().removeEventListener(
|
439
|
+
Workspace.UISourceCode.Events.TitleChanged, this.#uiSourceCodeTitleChanged, this);
|
398
440
|
this.sourceViewByUISourceCode.delete(sourceFrame.uiSourceCode());
|
399
441
|
sourceFrame.setUISourceCode(uiSourceCode);
|
400
442
|
this.sourceViewByUISourceCode.set(uiSourceCode, sourceFrame);
|
443
|
+
uiSourceCode.addEventListener(Workspace.UISourceCode.Events.TitleChanged, this.#uiSourceCodeTitleChanged, this);
|
401
444
|
}
|
402
445
|
|
403
446
|
viewForFile(uiSourceCode: Workspace.UISourceCode.UISourceCode): UI.Widget.Widget {
|
@@ -410,6 +453,7 @@ export class SourcesView extends Common.ObjectWrapper.eventMixin<EventTypes, typ
|
|
410
453
|
if (sourceView && sourceView instanceof UISourceCodeFrame) {
|
411
454
|
(sourceView as UISourceCodeFrame).dispose();
|
412
455
|
}
|
456
|
+
uiSourceCode.removeEventListener(Workspace.UISourceCode.Events.TitleChanged, this.#uiSourceCodeTitleChanged, this);
|
413
457
|
}
|
414
458
|
|
415
459
|
private editorClosed(event: Common.EventTarget.EventTargetEvent<Workspace.UISourceCode.UISourceCode>): void {
|
@@ -719,3 +763,10 @@ export class ActionDelegate implements UI.ActionRegistration.ActionDelegate {
|
|
719
763
|
return false;
|
720
764
|
}
|
721
765
|
}
|
766
|
+
|
767
|
+
// eslint-disable-next-line rulesdir/const_enum
|
768
|
+
enum SourceViewType {
|
769
|
+
ImageView = 'ImageView',
|
770
|
+
FontView = 'FontView',
|
771
|
+
SourceView = 'SourceView',
|
772
|
+
}
|
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
<img src="https://user-images.githubusercontent.com/10379601/29446482-04f7036a-841f-11e7-9872-91d1fc2ea683.png" height="200" align="right">
|
10
10
|
|
11
|
-
###### [API](https://github.com/puppeteer/puppeteer/blob/v13.
|
11
|
+
###### [API](https://github.com/puppeteer/puppeteer/blob/v13.4.0/docs/api.md) | [FAQ](#faq) | [Contributing](https://github.com/puppeteer/puppeteer/blob/main/CONTRIBUTING.md) | [Troubleshooting](https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md)
|
12
12
|
|
13
13
|
> Puppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the [DevTools Protocol](https://chromedevtools.github.io/devtools-protocol/). Puppeteer runs [headless](https://developers.google.com/web/updates/2017/04/headless-chrome) by default, but can be configured to run full (non-headless) Chrome or Chromium.
|
14
14
|
|
@@ -39,7 +39,7 @@ npm i puppeteer
|
|
39
39
|
# or "yarn add puppeteer"
|
40
40
|
```
|
41
41
|
|
42
|
-
Note: When you install Puppeteer, it downloads a recent version of Chromium (~170MB Mac, ~282MB Linux, ~280MB Win) that is guaranteed to work with the API. To skip the download, download into another path, or download a different browser, see [Environment variables](https://github.com/puppeteer/puppeteer/blob/v13.
|
42
|
+
Note: When you install Puppeteer, it downloads a recent version of Chromium (~170MB Mac, ~282MB Linux, ~280MB Win) that is guaranteed to work with the API. To skip the download, download into another path, or download a different browser, see [Environment variables](https://github.com/puppeteer/puppeteer/blob/v13.4.0/docs/api.md#environment-variables).
|
43
43
|
|
44
44
|
### puppeteer-core
|
45
45
|
|
@@ -64,7 +64,7 @@ Note: Prior to v1.18.1, Puppeteer required at least Node v6.4.0. Versions from v
|
|
64
64
|
Node 8.9.0+. Starting from v3.0.0 Puppeteer starts to rely on Node 10.18.1+. All examples below use async/await which is only supported in Node v7.6.0 or greater.
|
65
65
|
|
66
66
|
Puppeteer will be familiar to people using other browser testing frameworks. You create an instance
|
67
|
-
of `Browser`, open pages, and then manipulate them with [Puppeteer's API](https://github.com/puppeteer/puppeteer/blob/v13.
|
67
|
+
of `Browser`, open pages, and then manipulate them with [Puppeteer's API](https://github.com/puppeteer/puppeteer/blob/v13.4.0/docs/api.md#).
|
68
68
|
|
69
69
|
**Example** - navigating to https://example.com and saving a screenshot as _example.png_:
|
70
70
|
|
@@ -89,7 +89,7 @@ Execute script on the command line
|
|
89
89
|
node example.js
|
90
90
|
```
|
91
91
|
|
92
|
-
Puppeteer sets an initial page size to 800×600px, which defines the screenshot size. The page size can be customized with [`Page.setViewport()`](https://github.com/puppeteer/puppeteer/blob/v13.
|
92
|
+
Puppeteer sets an initial page size to 800×600px, which defines the screenshot size. The page size can be customized with [`Page.setViewport()`](https://github.com/puppeteer/puppeteer/blob/v13.4.0/docs/api.md#pagesetviewportviewport).
|
93
93
|
|
94
94
|
**Example** - create a PDF.
|
95
95
|
|
@@ -116,7 +116,7 @@ Execute script on the command line
|
|
116
116
|
node hn.js
|
117
117
|
```
|
118
118
|
|
119
|
-
See [`Page.pdf()`](https://github.com/puppeteer/puppeteer/blob/v13.
|
119
|
+
See [`Page.pdf()`](https://github.com/puppeteer/puppeteer/blob/v13.4.0/docs/api.md#pagepdfoptions) for more information about creating pdfs.
|
120
120
|
|
121
121
|
**Example** - evaluate script in the context of the page
|
122
122
|
|
@@ -151,7 +151,7 @@ Execute script on the command line
|
|
151
151
|
node get-dimensions.js
|
152
152
|
```
|
153
153
|
|
154
|
-
See [`Page.evaluate()`](https://github.com/puppeteer/puppeteer/blob/v13.
|
154
|
+
See [`Page.evaluate()`](https://github.com/puppeteer/puppeteer/blob/v13.4.0/docs/api.md#pageevaluatepagefunction-args) for more information on `evaluate` and related methods like `evaluateOnNewDocument` and `exposeFunction`.
|
155
155
|
|
156
156
|
<!-- [END getstarted] -->
|
157
157
|
|
@@ -161,7 +161,7 @@ See [`Page.evaluate()`](https://github.com/puppeteer/puppeteer/blob/v13.1.1/docs
|
|
161
161
|
|
162
162
|
**1. Uses Headless mode**
|
163
163
|
|
164
|
-
Puppeteer launches Chromium in [headless mode](https://developers.google.com/web/updates/2017/04/headless-chrome). To launch a full version of Chromium, set the [`headless` option](https://github.com/puppeteer/puppeteer/blob/v13.
|
164
|
+
Puppeteer launches Chromium in [headless mode](https://developers.google.com/web/updates/2017/04/headless-chrome). To launch a full version of Chromium, set the [`headless` option](https://github.com/puppeteer/puppeteer/blob/v13.4.0/docs/api.md#puppeteerlaunchoptions) when launching a browser:
|
165
165
|
|
166
166
|
```js
|
167
167
|
const browser = await puppeteer.launch({ headless: false }); // default is true
|
@@ -177,7 +177,7 @@ pass in the executable's path when creating a `Browser` instance:
|
|
177
177
|
const browser = await puppeteer.launch({ executablePath: '/path/to/Chrome' });
|
178
178
|
```
|
179
179
|
|
180
|
-
You can also use Puppeteer with Firefox Nightly (experimental support). See [`Puppeteer.launch()`](https://github.com/puppeteer/puppeteer/blob/v13.
|
180
|
+
You can also use Puppeteer with Firefox Nightly (experimental support). See [`Puppeteer.launch()`](https://github.com/puppeteer/puppeteer/blob/v13.4.0/docs/api.md#puppeteerlaunchoptions) for more information.
|
181
181
|
|
182
182
|
See [`this article`](https://www.howtogeek.com/202825/what%E2%80%99s-the-difference-between-chromium-and-chrome/) for a description of the differences between Chromium and Chrome. [`This article`](https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/chromium_browser_vs_google_chrome.md) describes some differences for Linux users.
|
183
183
|
|
@@ -189,7 +189,7 @@ Puppeteer creates its own browser user profile which it **cleans up on every run
|
|
189
189
|
|
190
190
|
## Resources
|
191
191
|
|
192
|
-
- [API Documentation](https://github.com/puppeteer/puppeteer/blob/v13.
|
192
|
+
- [API Documentation](https://github.com/puppeteer/puppeteer/blob/v13.4.0/docs/api.md)
|
193
193
|
- [Examples](https://github.com/puppeteer/puppeteer/tree/main/examples/)
|
194
194
|
- [Community list of Puppeteer resources](https://github.com/transitive-bullshit/awesome-puppeteer)
|
195
195
|
|
@@ -331,7 +331,7 @@ See [Contributing](https://github.com/puppeteer/puppeteer/blob/main/CONTRIBUTING
|
|
331
331
|
|
332
332
|
Official Firefox support is currently experimental. The ongoing collaboration with Mozilla aims to support common end-to-end testing use cases, for which developers expect cross-browser coverage. The Puppeteer team needs input from users to stabilize Firefox support and to bring missing APIs to our attention.
|
333
333
|
|
334
|
-
From Puppeteer v2.1.0 onwards you can specify [`puppeteer.launch({product: 'firefox'})`](https://github.com/puppeteer/puppeteer/blob/v13.
|
334
|
+
From Puppeteer v2.1.0 onwards you can specify [`puppeteer.launch({product: 'firefox'})`](https://github.com/puppeteer/puppeteer/blob/v13.4.0/docs/api.md#puppeteerlaunchoptions) to run your Puppeteer scripts in Firefox Nightly, without any additional custom patches. While [an older experiment](https://www.npmjs.com/package/puppeteer-firefox) required a patched version of Firefox, [the current approach](https://wiki.mozilla.org/Remote) works with “stock” Firefox.
|
335
335
|
|
336
336
|
We will continue to collaborate with other browser vendors to bring Puppeteer support to browsers such as Safari.
|
337
337
|
This effort includes exploration of a standard for executing cross-browser commands (instead of relying on the non-standard DevTools Protocol used by Chrome).
|
@@ -387,7 +387,10 @@ npm install puppeteer-core@chrome-71
|
|
387
387
|
|
388
388
|
#### Q: Which Chromium version does Puppeteer use?
|
389
389
|
|
390
|
-
|
390
|
+
Find the version using one of the following ways:
|
391
|
+
|
392
|
+
- Look for the `chromium` entry in [revisions.ts](https://github.com/puppeteer/puppeteer/blob/main/src/revisions.ts). To find the corresponding Chromium commit and version number, search for the revision prefixed by an `r` in [OmahaProxy](https://omahaproxy.appspot.com/)'s "Find Releases" section.
|
393
|
+
- Look for the `versionsPerRelease` map in [versions.js](https://github.com/puppeteer/puppeteer/blob/main/versions.js) which contains mapping between Chromium and Puppeteer versions. Note: The file contains only Puppeteer versions where Chromium is updated. Not all Puppeteer versions are listed.
|
391
394
|
|
392
395
|
#### Q: Which Firefox version does Puppeteer use?
|
393
396
|
|
@@ -431,7 +434,7 @@ await page.evaluate(() => {
|
|
431
434
|
|
432
435
|
You may find that Puppeteer does not behave as expected when controlling pages that incorporate audio and video. (For example, [video playback/screenshots is likely to fail](https://github.com/puppeteer/puppeteer/issues/291).) There are two reasons for this:
|
433
436
|
|
434
|
-
- Puppeteer is bundled with Chromium — not Chrome — and so by default, it inherits all of [Chromium's media-related limitations](https://www.chromium.org/audio-video). This means that Puppeteer does not support licensed formats such as AAC or H.264. (However, it is possible to force Puppeteer to use a separately-installed version Chrome instead of Chromium via the [`executablePath` option to `puppeteer.launch`](https://github.com/puppeteer/puppeteer/blob/v13.
|
437
|
+
- Puppeteer is bundled with Chromium — not Chrome — and so by default, it inherits all of [Chromium's media-related limitations](https://www.chromium.org/audio-video). This means that Puppeteer does not support licensed formats such as AAC or H.264. (However, it is possible to force Puppeteer to use a separately-installed version Chrome instead of Chromium via the [`executablePath` option to `puppeteer.launch`](https://github.com/puppeteer/puppeteer/blob/v13.4.0/docs/api.md#puppeteerlaunchoptions). You should only use this configuration if you need an official release of Chrome that supports these media formats.)
|
435
438
|
- Since Puppeteer (in all configurations) controls a desktop version of Chromium/Chrome, features that are only supported by the mobile version of Chrome are not supported. This means that Puppeteer [does not support HTTP Live Streaming (HLS)](https://caniuse.com/#feat=http-live-streaming).
|
436
439
|
|
437
440
|
#### Q: I am having trouble installing / running Puppeteer in my test environment. Where should I look for help?
|
@@ -459,16 +462,6 @@ npm test
|
|
459
462
|
npm ci
|
460
463
|
```
|
461
464
|
|
462
|
-
#### Q: How do I try/test a prerelease version of Puppeteer?
|
463
|
-
|
464
|
-
You can check out this repo or install the latest prerelease from npm:
|
465
|
-
|
466
|
-
```bash
|
467
|
-
npm i --save puppeteer@next
|
468
|
-
```
|
469
|
-
|
470
|
-
Please note that prerelease may be unstable and contain bugs.
|
471
|
-
|
472
465
|
#### Q: I have more questions! Where do I ask?
|
473
466
|
|
474
467
|
There are many ways to get help on Puppeteer:
|
@@ -25,5 +25,5 @@
|
|
25
25
|
* This means that we can publish to CJS and ESM whilst maintaining the expected
|
26
26
|
* import behaviour for CJS and ESM users.
|
27
27
|
*/
|
28
|
-
const puppeteerExport = require('./lib/cjs/puppeteer/node-puppeteer-core');
|
28
|
+
const puppeteerExport = require('./lib/cjs/puppeteer/node-puppeteer-core.js');
|
29
29
|
module.exports = puppeteerExport.default;
|
@@ -25,5 +25,5 @@
|
|
25
25
|
* This means that we can publish to CJS and ESM whilst maintaining the expected
|
26
26
|
* import behaviour for CJS and ESM users.
|
27
27
|
*/
|
28
|
-
const puppeteerExport = require('./lib/cjs/puppeteer/node');
|
28
|
+
const puppeteerExport = require('./lib/cjs/puppeteer/node.js');
|
29
29
|
module.exports = puppeteerExport.default;
|
@@ -24,7 +24,7 @@
|
|
24
24
|
* necessary.
|
25
25
|
*/
|
26
26
|
|
27
|
-
const compileTypeScriptIfRequired = require('./typescript-if-required');
|
27
|
+
const compileTypeScriptIfRequired = require('./typescript-if-required.js');
|
28
28
|
|
29
29
|
async function download() {
|
30
30
|
await compileTypeScriptIfRequired();
|
@@ -32,7 +32,7 @@ async function download() {
|
|
32
32
|
const {
|
33
33
|
downloadBrowser,
|
34
34
|
logPolitely,
|
35
|
-
} = require('./lib/cjs/puppeteer/node/install');
|
35
|
+
} = require('./lib/cjs/puppeteer/node/install.js');
|
36
36
|
|
37
37
|
if (process.env.PUPPETEER_SKIP_DOWNLOAD) {
|
38
38
|
logPolitely(
|
@@ -264,7 +264,7 @@ export declare class Browser extends EventEmitter {
|
|
264
264
|
* const newWindowTarget = await browser.waitForTarget(target => target.url() === 'https://www.example.com/');
|
265
265
|
* ```
|
266
266
|
*/
|
267
|
-
waitForTarget(predicate: (x: Target) => boolean
|
267
|
+
waitForTarget(predicate: (x: Target) => boolean | Promise<boolean>, options?: WaitForTargetOptions): Promise<Target>;
|
268
268
|
/**
|
269
269
|
* An array of all open pages inside the Browser.
|
270
270
|
*
|
@@ -393,7 +393,7 @@ export declare class BrowserContext extends EventEmitter {
|
|
393
393
|
* @returns Promise which resolves to the first target found
|
394
394
|
* that matches the `predicate` function.
|
395
395
|
*/
|
396
|
-
waitForTarget(predicate: (x: Target) => boolean
|
396
|
+
waitForTarget(predicate: (x: Target) => boolean | Promise<boolean>, options?: {
|
397
397
|
timeout?: number;
|
398
398
|
}): Promise<Target>;
|
399
399
|
/**
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Browser.d.ts","sourceRoot":"","sources":["../../../../src/common/Browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAIH,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,UAAU,EAA2B,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B;AAED;;GAEG;AACH,oBAAY,oBAAoB,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AAE9D;;GAEG;AACH,oBAAY,oBAAoB,GAAG,CACjC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,UAAU,KAC/B,OAAO,CAAC;AA4Bb;;GAEG;AACH,oBAAY,UAAU,GAClB,aAAa,GACb,MAAM,GACN,eAAe,GACf,QAAQ,GACR,YAA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AMG;IACH,WAAW,IAAI,OAAO;IAItB;;;;;;;;;;OAUG;IACG,mBAAmB,CACvB,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,UAAU,EAAE,GACxB,OAAO,CAAC,IAAI,CAAC;IAehB;;;;;;;;;;OAUG;IACG,wBAAwB,IAAI,OAAO,CAAC,IAAI,CAAC;IAM/C;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAIxB;;OAEG;IACH,OAAO,IAAI,OAAO;IAIlB;;;;;;OAMG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAI7B"}
|
@@ -103,7 +103,7 @@ class Browser extends EventEmitter_js_1.EventEmitter {
|
|
103
103
|
this._connection = connection;
|
104
104
|
this._closeCallback = closeCallback || function () { };
|
105
105
|
this._targetFilterCallback = targetFilterCallback || (() => true);
|
106
|
-
this._defaultContext = new BrowserContext(this._connection, this
|
106
|
+
this._defaultContext = new BrowserContext(this._connection, this);
|
107
107
|
this._contexts = new Map();
|
108
108
|
for (const contextId of contextIds)
|
109
109
|
this._contexts.set(contextId, new BrowserContext(this._connection, this, contextId));
|
@@ -126,7 +126,8 @@ class Browser extends EventEmitter_js_1.EventEmitter {
|
|
126
126
|
* {@link Puppeteer.connect}.
|
127
127
|
*/
|
128
128
|
process() {
|
129
|
-
|
129
|
+
var _a;
|
130
|
+
return (_a = this._process) !== null && _a !== void 0 ? _a : null;
|
130
131
|
}
|
131
132
|
/**
|
132
133
|
* Creates a new incognito browser context. This won't share cookies/cache with other
|
@@ -173,23 +174,30 @@ class Browser extends EventEmitter_js_1.EventEmitter {
|
|
173
174
|
* Used by BrowserContext directly so cannot be marked private.
|
174
175
|
*/
|
175
176
|
async _disposeContext(contextId) {
|
177
|
+
if (!contextId) {
|
178
|
+
return;
|
179
|
+
}
|
176
180
|
await this._connection.send('Target.disposeBrowserContext', {
|
177
|
-
browserContextId: contextId
|
181
|
+
browserContextId: contextId,
|
178
182
|
});
|
179
183
|
this._contexts.delete(contextId);
|
180
184
|
}
|
181
185
|
async _targetCreated(event) {
|
186
|
+
var _a;
|
182
187
|
const targetInfo = event.targetInfo;
|
183
188
|
const { browserContextId } = targetInfo;
|
184
189
|
const context = browserContextId && this._contexts.has(browserContextId)
|
185
190
|
? this._contexts.get(browserContextId)
|
186
191
|
: this._defaultContext;
|
192
|
+
if (!context) {
|
193
|
+
throw new Error('Missing browser context');
|
194
|
+
}
|
187
195
|
const shouldAttachToTarget = this._targetFilterCallback(targetInfo);
|
188
196
|
if (!shouldAttachToTarget) {
|
189
197
|
this._ignoredTargets.add(targetInfo.targetId);
|
190
198
|
return;
|
191
199
|
}
|
192
|
-
const target = new Target_js_1.Target(targetInfo, context, () => this._connection.createSession(targetInfo), this._ignoreHTTPSErrors, this._defaultViewport, this._screenshotTaskQueue);
|
200
|
+
const target = new Target_js_1.Target(targetInfo, context, () => this._connection.createSession(targetInfo), this._ignoreHTTPSErrors, (_a = this._defaultViewport) !== null && _a !== void 0 ? _a : null, this._screenshotTaskQueue);
|
193
201
|
(0, assert_js_1.assert)(!this._targets.has(event.targetInfo.targetId), 'Target should not exist before targetCreated');
|
194
202
|
this._targets.set(event.targetInfo.targetId, target);
|
195
203
|
if (await target._initializedPromise) {
|
@@ -201,6 +209,9 @@ class Browser extends EventEmitter_js_1.EventEmitter {
|
|
201
209
|
if (this._ignoredTargets.has(event.targetId))
|
202
210
|
return;
|
203
211
|
const target = this._targets.get(event.targetId);
|
212
|
+
if (!target) {
|
213
|
+
throw new Error(`Missing target in _targetDestroyed (id = ${event.targetId})`);
|
214
|
+
}
|
204
215
|
target._initializedCallback(false);
|
205
216
|
this._targets.delete(event.targetId);
|
206
217
|
target._closedCallback();
|
@@ -215,7 +226,9 @@ class Browser extends EventEmitter_js_1.EventEmitter {
|
|
215
226
|
if (this._ignoredTargets.has(event.targetInfo.targetId))
|
216
227
|
return;
|
217
228
|
const target = this._targets.get(event.targetInfo.targetId);
|
218
|
-
|
229
|
+
if (!target) {
|
230
|
+
throw new Error(`Missing target in targetInfoChanged (id = ${event.targetInfo.targetId})`);
|
231
|
+
}
|
219
232
|
const previousURL = target.url();
|
220
233
|
const wasInitialized = target._isInitialized;
|
221
234
|
target._targetInfoChanged(event.targetInfo);
|
@@ -263,8 +276,17 @@ class Browser extends EventEmitter_js_1.EventEmitter {
|
|
263
276
|
browserContextId: contextId || undefined,
|
264
277
|
});
|
265
278
|
const target = this._targets.get(targetId);
|
266
|
-
|
279
|
+
if (!target) {
|
280
|
+
throw new Error(`Missing target for page (id = ${targetId})`);
|
281
|
+
}
|
282
|
+
const initialized = await target._initializedPromise;
|
283
|
+
if (!initialized) {
|
284
|
+
throw new Error(`Failed to create target for page (id = ${targetId})`);
|
285
|
+
}
|
267
286
|
const page = await target.page();
|
287
|
+
if (!page) {
|
288
|
+
throw new Error(`Failed to create a page for context (id = ${contextId})`);
|
289
|
+
}
|
268
290
|
return page;
|
269
291
|
}
|
270
292
|
/**
|
@@ -278,7 +300,11 @@ class Browser extends EventEmitter_js_1.EventEmitter {
|
|
278
300
|
* The target associated with the browser.
|
279
301
|
*/
|
280
302
|
target() {
|
281
|
-
|
303
|
+
const browserTarget = this.targets().find((target) => target.type() === 'browser');
|
304
|
+
if (!browserTarget) {
|
305
|
+
throw new Error('Browser target is not found');
|
306
|
+
}
|
307
|
+
return browserTarget;
|
282
308
|
}
|
283
309
|
/**
|
284
310
|
* Searches for a target in all browser contexts.
|
@@ -296,9 +322,6 @@ class Browser extends EventEmitter_js_1.EventEmitter {
|
|
296
322
|
*/
|
297
323
|
async waitForTarget(predicate, options = {}) {
|
298
324
|
const { timeout = 30000 } = options;
|
299
|
-
const existingTarget = this.targets().find(predicate);
|
300
|
-
if (existingTarget)
|
301
|
-
return existingTarget;
|
302
325
|
let resolve;
|
303
326
|
const targetPromise = new Promise((x) => (resolve = x));
|
304
327
|
this.on("targetcreated" /* TargetCreated */, check);
|
@@ -306,14 +329,24 @@ class Browser extends EventEmitter_js_1.EventEmitter {
|
|
306
329
|
try {
|
307
330
|
if (!timeout)
|
308
331
|
return await targetPromise;
|
309
|
-
return await helper_js_1.helper.waitWithTimeout(
|
332
|
+
return await helper_js_1.helper.waitWithTimeout(Promise.race([
|
333
|
+
targetPromise,
|
334
|
+
(async () => {
|
335
|
+
for (const target of this.targets()) {
|
336
|
+
if (await predicate(target)) {
|
337
|
+
return target;
|
338
|
+
}
|
339
|
+
}
|
340
|
+
await targetPromise;
|
341
|
+
})(),
|
342
|
+
]), 'target', timeout);
|
310
343
|
}
|
311
344
|
finally {
|
312
345
|
this.removeListener("targetcreated" /* TargetCreated */, check);
|
313
346
|
this.removeListener("targetchanged" /* TargetChanged */, check);
|
314
347
|
}
|
315
|
-
function check(target) {
|
316
|
-
if (predicate(target))
|
348
|
+
async function check(target) {
|
349
|
+
if (await predicate(target))
|
317
350
|
resolve(target);
|
318
351
|
}
|
319
352
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Browser.js","sourceRoot":"","sources":["../../../../src/common/Browser.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,2CAAqC;AACrC,2CAAqC;AACrC,2CAAqC;AACrC,uDAAiD;AACjD,mDAAsE;AAGtE,iDAA2C;AAiC3C,MAAM,qCAAqC,GAAG,IAAI,GAAG,CAGnD;IACA,CAAC,aAAa,EAAE,aAAa,CAAC;IAC9B,CAAC,MAAM,EAAE,MAAM,CAAC;IAChB,CAAC,eAAe,EAAE,eAAe,CAAC;IAClC,iCAAiC;IACjC,oBAAoB;IACpB,CAAC,QAAQ,EAAE,cAAc,CAAC;IAC1B,CAAC,YAAY,EAAE,cAAc,CAAC;IAC9B,CAAC,iBAAiB,EAAE,gBAAgB,CAAC;IACrC,CAAC,sBAAsB,EAAE,SAAS,CAAC;IACnC,CAAC,eAAe,EAAE,SAAS,CAAC;IAC5B,CAAC,WAAW,EAAE,SAAS,CAAC;IACxB,CAAC,cAAc,EAAE,SAAS,CAAC;IAC3B,CAAC,sBAAsB,E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SAAS;SACxC,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,OAAO;QACL,OAAO,IAAI,CAAC,QAAQ,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACtD,CAAC;IAED;;OAEG;IACH,OAAO;QACL,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,KAAK;QACT,IAAA,kBAAM,EAAC,IAAI,CAAC,GAAG,EAAE,0CAA0C,CAAC,CAAC;QAC7D,MAAM,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAChD,CAAC;CACF;AArJD,wCAqJC"}
|
package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"BrowserConnector.d.ts","sourceRoot":"","sources":["../../../../src/common/BrowserConnector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;
|
1
|
+
{"version":3,"file":"BrowserConnector.d.ts","sourceRoot":"","sources":["../../../../src/common/BrowserConnector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAI7D,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAIlD;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,eAAe,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IAClC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,YAAY,CAAC,EAAE,oBAAoB,CAAC;CACrC;AASD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,YAClB,qBAAqB,GAAG;IAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,mBAAmB,CAAC;CACjC,KACA,QAAQ,OAAO,CA6CjB,CAAC"}
|
package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js
CHANGED
@@ -39,8 +39,8 @@ const Browser_js_1 = require("./Browser.js");
|
|
39
39
|
const assert_js_1 = require("./assert.js");
|
40
40
|
const helper_js_1 = require("../common/helper.js");
|
41
41
|
const Connection_js_1 = require("./Connection.js");
|
42
|
-
const fetch_js_1 = require("./fetch.js");
|
43
42
|
const environment_js_1 = require("../environment.js");
|
43
|
+
const fetch_js_1 = require("./fetch.js");
|
44
44
|
const getWebSocketTransportClass = async () => {
|
45
45
|
return environment_js_1.isNode
|
46
46
|
? (await Promise.resolve().then(() => __importStar(require('../node/NodeWebSocketTransport.js')))).NodeWebSocketTransport
|