豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit 7b1b6ef

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/8690378754911413361 R=chrome-devtools-waterfall-gardener-emea-oncall@google.com Bug: none Change-Id: Iafced646d586ff70cb8a7e62ebd923e01b831345 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/7555791 Reviewed-by: Simon Zünd <szuend@chromium.org> Commit-Queue: Alex Rudenko <alexrudenko@chromium.org> Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
1 parent 32c3bac commit 7b1b6ef

File tree

215 files changed

+2344
-521
lines changed

Some content is hidden

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

215 files changed

+2344
-521
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.36.1
4+
Version: 24.37.2
55
License: Apache-2.0
66
License File: LICENSE
7-
Revision: 5d820f2872cdec366fbf6069d03ebc094d8b97f2
7+
Revision: b163ce4593a8f014b86d67d53825fbeb679045ca
88
Security Critical: no
99
Shipped: yes
1010
Update Mechanism: Autoroll

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

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,23 @@ export type IsPageTargetCallback = (target: Target) => boolean;
5353
export declare const WEB_PERMISSION_TO_PROTOCOL_PERMISSION: Map<Permission, Protocol.Browser.PermissionType>;
5454
/**
5555
* @public
56+
* @deprecated in favor of {@link PermissionDescriptor}.
5657
*/
5758
export type Permission = 'accelerometer' | 'ambient-light-sensor' | 'background-sync' | 'camera' | 'clipboard-read' | 'clipboard-sanitized-write' | 'clipboard-write' | 'geolocation' | 'gyroscope' | 'idle-detection' | 'keyboard-lock' | 'magnetometer' | 'microphone' | 'midi-sysex' | 'midi' | 'notifications' | 'payment-handler' | 'persistent-storage' | 'pointer-lock';
59+
/**
60+
* @public
61+
*/
62+
export interface PermissionDescriptor {
63+
name: string;
64+
userVisibleOnly?: boolean;
65+
sysex?: boolean;
66+
panTiltZoom?: boolean;
67+
allowWithoutSanitization?: boolean;
68+
}
69+
/**
70+
* @public
71+
*/
72+
export type PermissionState = 'granted' | 'denied' | 'prompt';
5873
/**
5974
* @public
6075
*/
@@ -445,6 +460,26 @@ export declare abstract class Browser extends EventEmitter<BrowserEvents> {
445460
* browser.defaultBrowserContext().deleteMatchingCookies()}.
446461
*/
447462
deleteMatchingCookies(...filters: DeleteCookiesRequest[]): Promise<void>;
463+
/**
464+
* Sets the permission for a specific origin in the default
465+
* {@link BrowserContext}.
466+
*
467+
* @remarks
468+
*
469+
* Shortcut for
470+
* {@link BrowserContext.setPermission |
471+
* browser.defaultBrowserContext().setPermission()}.
472+
*
473+
* @param origin - The origin to set the permission for.
474+
* @param permission - The permission descriptor.
475+
* @param state - The state of the permission.
476+
*
477+
* @public
478+
*/
479+
setPermission(origin: string, ...permissions: Array<{
480+
permission: PermissionDescriptor;
481+
state: PermissionState;
482+
}>): Promise<void>;
448483
/**
449484
* Installs an extension and returns the ID. In Chrome, this is only
450485
* available if the browser was created using `pipe: true` and the

front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.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/Browser.js

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

0 commit comments

Comments
 (0)