Skip to content

Commit

Permalink
feat(chromium): bump to r865012 (#5963)
Browse files Browse the repository at this point in the history
References #5858

Co-authored-by: Andrey Lushnikov <lushnikov@chromium.org>
  • Loading branch information
yury-s and aslushnikov committed Mar 31, 2021
1 parent 26f9e29 commit 587682e
Show file tree
Hide file tree
Showing 5 changed files with 202 additions and 18 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# 🎭 Playwright

[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4430.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-87.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->
[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-91.0.4455.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-87.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->

## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)

Playwright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.

| | Linux | macOS | Windows |
| :--- | :---: | :---: | :---: |
| Chromium <!-- GEN:chromium-version -->90.0.4430.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Chromium <!-- GEN:chromium-version -->91.0.4455.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Firefox <!-- GEN:firefox-version -->87.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |

Expand Down
2 changes: 1 addition & 1 deletion browsers.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"browsers": [
{
"name": "chromium",
"revision": "857950",
"revision": "865012",
"installByDefault": true
},
{
Expand Down
101 changes: 95 additions & 6 deletions src/server/chromium/protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1235,6 +1235,21 @@ or 'allowAndName'.
}
export type setDownloadBehaviorReturnValue = {
}
/**
* Cancel a download if in progress
*/
export type cancelDownloadParameters = {
/**
* Global unique identifier of the download.
*/
guid: string;
/**
* BrowserContext to perform the action in. When omitted, default browser context is used.
*/
browserContextId?: BrowserContextID;
}
export type cancelDownloadReturnValue = {
}
/**
* Close browser gracefully.
*/
Expand Down Expand Up @@ -6954,7 +6969,7 @@ passed by the developer (e.g. via "fetch") as understood by the backend.
/**
* The reason why request was blocked.
*/
export type BlockedReason = "other"|"csp"|"mixed-content"|"origin"|"inspector"|"subresource-filter"|"content-type"|"collapsed-by-client"|"coep-frame-resource-needs-coep-header"|"coop-sandboxed-iframe-cannot-navigate-to-coop-page"|"corp-not-same-origin"|"corp-not-same-origin-after-defaulted-to-same-origin-by-coep"|"corp-not-same-site";
export type BlockedReason = "other"|"csp"|"mixed-content"|"origin"|"inspector"|"subresource-filter"|"content-type"|"coep-frame-resource-needs-coep-header"|"coop-sandboxed-iframe-cannot-navigate-to-coop-page"|"corp-not-same-origin"|"corp-not-same-origin-after-defaulted-to-same-origin-by-coep"|"corp-not-same-site";
/**
* The reason why request was blocked.
*/
Expand Down Expand Up @@ -7545,7 +7560,7 @@ https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-
reportingEndpoint?: string;
reportOnlyReportingEndpoint?: string;
}
export type CrossOriginEmbedderPolicyValue = "None"|"RequireCorp";
export type CrossOriginEmbedderPolicyValue = "None"|"CorsOrCredentialless"|"RequireCorp";
export interface CrossOriginEmbedderPolicyStatus {
value: CrossOriginEmbedderPolicyValue;
reportOnlyValue: CrossOriginEmbedderPolicyValue;
Expand Down Expand Up @@ -9762,6 +9777,20 @@ Example URLs: http://www.google.com/file.html -> "google.com"
* The referring-policy used for the navigation.
*/
export type ReferrerPolicy = "noReferrer"|"noReferrerWhenDowngrade"|"origin"|"originWhenCrossOrigin"|"sameOrigin"|"strictOrigin"|"strictOriginWhenCrossOrigin"|"unsafeUrl";
/**
* Per-script compilation cache parameters for `Page.produceCompilationCache`
*/
export interface CompilationCacheParams {
/**
* The URL of the script to produce a compilation cache entry for.
*/
url: string;
/**
* A hint to the backend whether eager compilation is recommended.
(the actual compilation mode used is upon backend discretion).
*/
eager?: boolean;
}

export type domContentEventFiredPayload = {
timestamp: Network.MonotonicTime;
Expand Down Expand Up @@ -10298,17 +10327,29 @@ information in the `cookies` field.
}
export type getLayoutMetricsReturnValue = {
/**
* Metrics relating to the layout viewport.
* Deprecated metrics relating to the layout viewport. Can be in DP or in CSS pixels depending on the `enable-use-zoom-for-dsf` flag. Use `cssLayoutViewport` instead.
*/
layoutViewport: LayoutViewport;
/**
* Metrics relating to the visual viewport.
* Deprecated metrics relating to the visual viewport. Can be in DP or in CSS pixels depending on the `enable-use-zoom-for-dsf` flag. Use `cssVisualViewport` instead.
*/
visualViewport: VisualViewport;
/**
* Size of scrollable area.
* Deprecated size of scrollable area. Can be in DP or in CSS pixels depending on the `enable-use-zoom-for-dsf` flag. Use `cssContentSize` instead.
*/
contentSize: DOM.Rect;
/**
* Metrics relating to the layout viewport in CSS pixels.
*/
cssLayoutViewport: LayoutViewport;
/**
* Metrics relating to the visual viewport in CSS pixels.
*/
cssVisualViewport: VisualViewport;
/**
* Size of scrollable area in CSS pixels.
*/
cssContentSize: DOM.Rect;
}
/**
* Returns navigation history for the current page.
Expand Down Expand Up @@ -10873,12 +10914,29 @@ https://github.com/WICG/web-lifecycle/
}
/**
* Forces compilation cache to be generated for every subresource script.
See also: `Page.produceCompilationCache`.
*/
export type setProduceCompilationCacheParameters = {
enabled: boolean;
}
export type setProduceCompilationCacheReturnValue = {
}
/**
* Requests backend to produce compilation cache for the specified scripts.
Unlike setProduceCompilationCache, this allows client to only produce cache
for specific scripts. `scripts` are appeneded to the list of scripts
for which the cache for would produced. Disabling compilation cache with
`setProduceCompilationCache` would reset all pending cache requests.
The list may also be reset during page navigation.
When script with a matching URL is encountered, the cache is optionally
produced upon backend discretion, based on internal heuristics.
See also: `Page.compilationCacheProduced`.
*/
export type produceCompilationCacheParameters = {
scripts: CompilationCacheParams[];
}
export type produceCompilationCacheReturnValue = {
}
/**
* Seeds compilation cache for given url. Compilation cache does not survive
cross-process navigation.
Expand Down Expand Up @@ -11766,6 +11824,19 @@ current browsing context.
export type getTrustTokensReturnValue = {
tokens: TrustTokens[];
}
/**
* Removes all Trust Tokens issued by the provided issuerOrigin.
Leaves other stored data, including the issuer's Redemption Records, intact.
*/
export type clearTrustTokensParameters = {
issuerOrigin: string;
}
export type clearTrustTokensReturnValue = {
/**
* True if any tokens were deleted, false otherwise.
*/
didDeleteTokens: boolean;
}
}

/**
Expand Down Expand Up @@ -12202,7 +12273,7 @@ one.
*/
export type createTargetParameters = {
/**
* The initial URL the page will be navigated to.
* The initial URL the page will be navigated to. An empty string indicates about:blank.
*/
url: string;
/**
Expand Down Expand Up @@ -12447,6 +12518,14 @@ Keep consistent with memory_dump_request_args.h and
memory_instrumentation.mojom
*/
export type MemoryDumpLevelOfDetail = "background"|"light"|"detailed";
/**
* Backend type to use for tracing. `chrome` uses the Chrome-integrated
tracing service and is supported on all platforms. `system` is only
supported on Chrome OS and uses the Perfetto system tracing service.
`auto` chooses `system` when the perfettoConfig provided to Tracing.start
specifies at least one non-Chrome data source; otherwise uses `chrome`.
*/
export type TracingBackend = "auto"|"chrome"|"system";

export type bufferUsagePayload = {
/**
Expand Down Expand Up @@ -12585,6 +12664,10 @@ When specified, the parameters `categories`, `options`, `traceConfig`
are ignored.
*/
perfettoConfig?: binary;
/**
* Backend type (defaults to `auto`)
*/
tracingBackend?: TracingBackend;
}
export type startReturnValue = {
}
Expand Down Expand Up @@ -16165,6 +16248,7 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications.
"Browser.grantPermissions": Browser.grantPermissionsParameters;
"Browser.resetPermissions": Browser.resetPermissionsParameters;
"Browser.setDownloadBehavior": Browser.setDownloadBehaviorParameters;
"Browser.cancelDownload": Browser.cancelDownloadParameters;
"Browser.close": Browser.closeParameters;
"Browser.crash": Browser.crashParameters;
"Browser.crashGpuProcess": Browser.crashGpuProcessParameters;
Expand Down Expand Up @@ -16466,6 +16550,7 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications.
"Page.setWebLifecycleState": Page.setWebLifecycleStateParameters;
"Page.stopScreencast": Page.stopScreencastParameters;
"Page.setProduceCompilationCache": Page.setProduceCompilationCacheParameters;
"Page.produceCompilationCache": Page.produceCompilationCacheParameters;
"Page.addCompilationCache": Page.addCompilationCacheParameters;
"Page.clearCompilationCache": Page.clearCompilationCacheParameters;
"Page.generateTestReport": Page.generateTestReportParameters;
Expand Down Expand Up @@ -16505,6 +16590,7 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications.
"Storage.untrackCacheStorageForOrigin": Storage.untrackCacheStorageForOriginParameters;
"Storage.untrackIndexedDBForOrigin": Storage.untrackIndexedDBForOriginParameters;
"Storage.getTrustTokens": Storage.getTrustTokensParameters;
"Storage.clearTrustTokens": Storage.clearTrustTokensParameters;
"SystemInfo.getInfo": SystemInfo.getInfoParameters;
"SystemInfo.getProcessInfo": SystemInfo.getProcessInfoParameters;
"Target.activateTarget": Target.activateTargetParameters;
Expand Down Expand Up @@ -16674,6 +16760,7 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications.
"Browser.grantPermissions": Browser.grantPermissionsReturnValue;
"Browser.resetPermissions": Browser.resetPermissionsReturnValue;
"Browser.setDownloadBehavior": Browser.setDownloadBehaviorReturnValue;
"Browser.cancelDownload": Browser.cancelDownloadReturnValue;
"Browser.close": Browser.closeReturnValue;
"Browser.crash": Browser.crashReturnValue;
"Browser.crashGpuProcess": Browser.crashGpuProcessReturnValue;
Expand Down Expand Up @@ -16975,6 +17062,7 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications.
"Page.setWebLifecycleState": Page.setWebLifecycleStateReturnValue;
"Page.stopScreencast": Page.stopScreencastReturnValue;
"Page.setProduceCompilationCache": Page.setProduceCompilationCacheReturnValue;
"Page.produceCompilationCache": Page.produceCompilationCacheReturnValue;
"Page.addCompilationCache": Page.addCompilationCacheReturnValue;
"Page.clearCompilationCache": Page.clearCompilationCacheReturnValue;
"Page.generateTestReport": Page.generateTestReportReturnValue;
Expand Down Expand Up @@ -17014,6 +17102,7 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications.
"Storage.untrackCacheStorageForOrigin": Storage.untrackCacheStorageForOriginReturnValue;
"Storage.untrackIndexedDBForOrigin": Storage.untrackIndexedDBForOriginReturnValue;
"Storage.getTrustTokens": Storage.getTrustTokensReturnValue;
"Storage.clearTrustTokens": Storage.clearTrustTokensReturnValue;
"SystemInfo.getInfo": SystemInfo.getInfoReturnValue;
"SystemInfo.getProcessInfo": SystemInfo.getProcessInfoReturnValue;
"Target.activateTarget": Target.activateTargetReturnValue;
Expand Down
12 changes: 9 additions & 3 deletions test/page/page-route.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,9 @@ it('should support cors with GET', async ({page, server}) => {
}
});

it('should support cors with POST', async ({page, server}) => {
it('should support cors with POST', (test, { browserName, browserChannel }) => {
test.fail(browserName === 'chromium' && !browserChannel, 'https://github.com/microsoft/playwright/issues/6016');
}, async ({page, server}) => {
await page.goto(server.EMPTY_PAGE);
await page.route('**/cars', async route => {
await route.fulfill({
Expand All @@ -554,7 +556,9 @@ it('should support cors with POST', async ({page, server}) => {
expect(resp).toEqual(['electric', 'gas']);
});

it('should support cors with credentials', async ({page, server}) => {
it('should support cors with credentials', (test, { browserName, browserChannel }) => {
test.fail(browserName === 'chromium' && !browserChannel, 'https://github.com/microsoft/playwright/issues/6016');
}, async ({page, server}) => {
await page.goto(server.EMPTY_PAGE);
await page.route('**/cars', async route => {
await route.fulfill({
Expand Down Expand Up @@ -612,7 +616,9 @@ it('should reject cors with disallowed credentials', async ({page, server}) => {
expect(error).toBeTruthy();
});

it('should support cors for different methods', async ({page, server}) => {
it('should support cors for different methods', (test, {browserName, browserChannel}) => {
test.fail(browserName === 'chromium' && !browserChannel, 'https://github.com/microsoft/playwright/issues/6016');
}, async ({page, server}) => {
await page.goto(server.EMPTY_PAGE);
await page.route('**/cars', async (route, request) => {
await route.fulfill({
Expand Down
Loading

0 comments on commit 587682e

Please sign in to comment.