Skip to content

Commit aa5f452

Browse files
devtools-ci-autoroll-builderDevtools-frontend LUCI CQ
authored andcommitted
Roll puppeteer-core
This roll requires a manual review. See http://go/reviewed-rolls for guidance. In case of failures or errors, reach out to someone from config/owner/RECORDER_OWNERS. Roll created at https://cr-buildbucket.appspot.com/build/8703605911085810929 [email protected] Bug: none Change-Id: I62c64bfe4982e4c051bcaaca85316dcb226c0d6e Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6951054 Commit-Queue: Alex Rudenko <[email protected]> Reviewed-by: Alex Rudenko <[email protected]> Reviewed-by: Nikolay Vitkov <[email protected]>
1 parent 578c379 commit aa5f452

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+351
-117
lines changed

front_end/third_party/puppeteer/README.chromium

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Name: Puppeteer Core
22
Short Name: Puppeteer Core
33
URL: https://github.com/puppeteer/puppeteer/tree/main/packages/puppeteer-core
4-
Version: 24.20.0
4+
Version: 24.21.0
55
License: Apache-2.0
66
License File: LICENSE
7-
Revision: e9998aa9f7cdc7a3eecc1ab08c69fc6da29c37ed
7+
Revision: fcbfb730b8abb9412ce797ccfd0e1579d4e1d490
88
Security Critical: no
99
Shipped: yes
1010
Update Mechanism: Autoroll

front_end/third_party/puppeteer/package/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ npm i puppeteer-core # Alternatively, install as a library, without downloading
2525
import puppeteer from 'puppeteer';
2626
// Or import puppeteer from 'puppeteer-core';
2727

28-
// Launch the browser and open a new blank page
28+
// Launch the browser and open a new blank page.
2929
const browser = await puppeteer.launch();
3030
const page = await browser.newPage();
3131

@@ -35,15 +35,18 @@ await page.goto('https://developer.chrome.com/');
3535
// Set screen size.
3636
await page.setViewport({width: 1080, height: 1024});
3737

38+
// Open the search menu using the keyboard.
39+
await page.keyboard.press('/');
40+
3841
// Type into search box using accessible input name.
39-
await page.locator('aria/Search').fill('automate beyond recorder');
42+
await page.locator('::-p-aria(Search)').fill('automate beyond recorder');
4043

4144
// Wait and click on first result.
4245
await page.locator('.devsite-result-item-link').click();
4346

4447
// Locate the full title with a unique string.
4548
const textSelector = await page
46-
.locator('text/Customize and automate')
49+
.locator('::-p-text(Customize and automate)')
4750
.waitHandle();
4851
const fullTitle = await textSelector?.evaluate(el => el.textContent);
4952

front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ export declare abstract class Browser extends EventEmitter<BrowserEvents> {
297297
* Gets this {@link Browser | browser's} original user agent.
298298
*
299299
* {@link Page | Pages} can override the user agent with
300-
* {@link Page.setUserAgent}.
300+
* {@link Page.(setUserAgent:2) }.
301301
*
302302
*/
303303
abstract userAgent(): Promise<string>;

front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1341,8 +1341,18 @@ export declare abstract class Page extends EventEmitter<PageEvents> {
13411341
* @param userAgentData - Specific user agent client hint data to use in this
13421342
* page
13431343
* @returns Promise which resolves when the user agent is set.
1344+
* @deprecated Use {@link Page.(setUserAgent:2) } instead.
13441345
*/
13451346
abstract setUserAgent(userAgent: string, userAgentMetadata?: Protocol.Emulation.UserAgentMetadata): Promise<void>;
1347+
/**
1348+
* @param options - Object containing user agent and optional user agent metadata
1349+
* @returns Promise which resolves when the user agent is set.
1350+
*/
1351+
abstract setUserAgent(options: {
1352+
userAgent?: string;
1353+
userAgentMetadata?: Protocol.Emulation.UserAgentMetadata;
1354+
platform?: string;
1355+
}): Promise<void>;
13461356
/**
13471357
* Object containing metrics as key/value pairs.
13481358
*
@@ -1556,7 +1566,7 @@ export declare abstract class Page extends EventEmitter<PageEvents> {
15561566
*
15571567
* @remarks
15581568
* This method is a shortcut for calling two methods:
1559-
* {@link Page.setUserAgent} and {@link Page.setViewport}.
1569+
* {@link Page.(setUserAgent:2) } and {@link Page.setViewport}.
15601570
*
15611571
* This method will resize the page. A lot of websites don't expect phones to
15621572
* change size, so you should emulate before navigating to the page.

front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ export declare class BidiPage extends Page {
4848
* @internal
4949
*/
5050
_userAgentHeaders: Record<string, string>;
51-
setUserAgent(userAgent: string, userAgentMetadata?: Protocol.Emulation.UserAgentMetadata): Promise<void>;
51+
setUserAgent(userAgentOrOptions: string | {
52+
userAgent?: string;
53+
userAgentMetadata?: Protocol.Emulation.UserAgentMetadata;
54+
platform?: string;
55+
}, userAgentMetadata?: Protocol.Emulation.UserAgentMetadata): Promise<void>;
5256
setBypassCSP(enabled: boolean): Promise<void>;
5357
queryObjects<Prototype>(prototypeHandle: BidiJSHandle<Prototype>): Promise<BidiJSHandle<Prototype[]>>;
5458
browser(): BidiBrowser;

front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js

Lines changed: 30 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)