Skip to content

Commit

Permalink
feat(chromium): bump to 844399 (#5044)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgozman authored Jan 18, 2021
1 parent d05c091 commit 0a7b917
Show file tree
Hide file tree
Showing 6 changed files with 309 additions and 78 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://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.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-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)
[![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://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.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-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)

## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)

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 -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Firefox <!-- GEN:firefox-version -->85.0b5<!-- 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": "833159",
"revision": "844399",
"download": true
},
{
Expand Down
1 change: 1 addition & 0 deletions src/server/chromium/crBrowser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ export class CRBrowserContext extends BrowserContext {
delete copy.size;
delete copy.priority;
delete copy.session;
delete copy.sameParty;
return copy as types.NetworkCookie;
}), urls);
}
Expand Down
189 changes: 152 additions & 37 deletions src/server/chromium/protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -807,12 +807,21 @@ some CSP errors in the future.
sourceCodeLocation?: SourceCodeLocation;
violatingNodeId?: DOM.BackendNodeId;
}
/**
* Details for a request that has been blocked with the BLOCKED_BY_RESPONSE
code. Currently only used for COEP/COOP, but may be extended to include
some CSP errors in the future.
*/
export interface SharedArrayBufferTransferIssueDetails {
sourceCodeLocation: SourceCodeLocation;
isWarning: boolean;
}
/**
* A unique identifier for the type of issue. Each type may use one of the
optional fields in InspectorIssueDetails to convey more specific
information about the kind of issue.
*/
export type InspectorIssueCode = "SameSiteCookieIssue"|"MixedContentIssue"|"BlockedByResponseIssue"|"HeavyAdIssue"|"ContentSecurityPolicyIssue";
export type InspectorIssueCode = "SameSiteCookieIssue"|"MixedContentIssue"|"BlockedByResponseIssue"|"HeavyAdIssue"|"ContentSecurityPolicyIssue"|"SharedArrayBufferTransferIssue";
/**
* This struct holds a list of optional fields with additional information
specific to the kind of issue. When adding a new issue code, please also
Expand All @@ -824,6 +833,7 @@ add a new optional field to this type.
blockedByResponseIssueDetails?: BlockedByResponseIssueDetails;
heavyAdIssueDetails?: HeavyAdIssueDetails;
contentSecurityPolicyIssueDetails?: ContentSecurityPolicyIssueDetails;
sharedArrayBufferTransferIssueDetails?: SharedArrayBufferTransferIssueDetails;
}
/**
* An inspector issue reported from the back-end.
Expand Down Expand Up @@ -1023,7 +1033,7 @@ events afterwards if enabled and recording.
*/
windowState?: WindowState;
}
export type PermissionType = "accessibilityEvents"|"audioCapture"|"backgroundSync"|"backgroundFetch"|"clipboardReadWrite"|"clipboardSanitizedWrite"|"durableStorage"|"flash"|"geolocation"|"midi"|"midiSysex"|"nfc"|"notifications"|"paymentHandler"|"periodicBackgroundSync"|"protectedMediaIdentifier"|"sensors"|"videoCapture"|"videoCapturePanTiltZoom"|"idleDetection"|"wakeLockScreen"|"wakeLockSystem";
export type PermissionType = "accessibilityEvents"|"audioCapture"|"backgroundSync"|"backgroundFetch"|"clipboardReadWrite"|"clipboardSanitizedWrite"|"displayCapture"|"durableStorage"|"flash"|"geolocation"|"midi"|"midiSysex"|"nfc"|"notifications"|"paymentHandler"|"periodicBackgroundSync"|"protectedMediaIdentifier"|"sensors"|"videoCapture"|"videoCapturePanTiltZoom"|"idleDetection"|"wakeLockScreen"|"wakeLockSystem";
export type PermissionSetting = "granted"|"denied"|"prompt";
/**
* Definition of PermissionDescriptor defined in the Permissions API:
Expand Down Expand Up @@ -2542,7 +2552,7 @@ front-end.
/**
* Pseudo element type.
*/
export type PseudoType = "first-line"|"first-letter"|"before"|"after"|"marker"|"backdrop"|"selection"|"target-text"|"first-line-inherited"|"scrollbar"|"scrollbar-thumb"|"scrollbar-button"|"scrollbar-track"|"scrollbar-track-piece"|"scrollbar-corner"|"resizer"|"input-list-button";
export type PseudoType = "first-line"|"first-letter"|"before"|"after"|"marker"|"backdrop"|"selection"|"target-text"|"spelling-error"|"grammar-error"|"first-line-inherited"|"scrollbar"|"scrollbar-thumb"|"scrollbar-button"|"scrollbar-track"|"scrollbar-track-piece"|"scrollbar-corner"|"resizer"|"input-list-button";
/**
* Shadow root type.
*/
Expand Down Expand Up @@ -7167,6 +7177,10 @@ module) (0-based).
* Cookie Priority
*/
priority: CookiePriority;
/**
* True if cookie is SameParty.
*/
sameParty: boolean;
}
/**
* Types of reasons why a cookie may not be stored from a response.
Expand Down Expand Up @@ -7893,6 +7907,10 @@ this requestId will be the same as the requestId present in the requestWillBeSen
* WebTransport request URL.
*/
url: string;
/**
* Timestamp.
*/
timestamp: MonotonicTime;
/**
* Request initiator.
*/
Expand All @@ -7903,6 +7921,10 @@ this requestId will be the same as the requestId present in the requestWillBeSen
* WebTransport identifier.
*/
transportId: RequestId;
/**
* Timestamp.
*/
timestamp: MonotonicTime;
}
/**
* Fired when additional information about a requestWillBeSent event is available from the
Expand Down Expand Up @@ -10806,6 +10828,99 @@ this method while metrics collection is enabled returns an error.
}
}

/**
* Reporting of performance timeline events, as specified in
https://w3c.github.io/performance-timeline/#dom-performanceobserver.
*/
export module PerformanceTimeline {
/**
* See https://github.com/WICG/LargestContentfulPaint and largest_contentful_paint.idl
*/
export interface LargestContentfulPaint {
renderTime: Network.TimeSinceEpoch;
loadTime: Network.TimeSinceEpoch;
/**
* The number of pixels being painted.
*/
size: number;
/**
* The id attribute of the element, if available.
*/
elementId?: string;
/**
* The URL of the image (may be trimmed).
*/
url?: string;
nodeId?: DOM.BackendNodeId;
}
export interface LayoutShiftAttribution {
previousRect: DOM.Rect;
currentRect: DOM.Rect;
nodeId?: DOM.BackendNodeId;
}
/**
* See https://wicg.github.io/layout-instability/#sec-layout-shift and layout_shift.idl
*/
export interface LayoutShift {
/**
* Score increment produced by this event.
*/
value: number;
hadRecentInput: boolean;
lastInputTime: Network.TimeSinceEpoch;
sources: LayoutShiftAttribution[];
}
export interface TimelineEvent {
/**
* Identifies the frame that this event is related to. Empty for non-frame targets.
*/
frameId: Page.FrameId;
/**
* The event type, as specified in https://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype
This determines which of the optional "details" fiedls is present.
*/
type: string;
/**
* Name may be empty depending on the type.
*/
name: string;
/**
* Time in seconds since Epoch, monotonically increasing within document lifetime.
*/
time: Network.TimeSinceEpoch;
/**
* Event duration, if applicable.
*/
duration?: number;
lcpDetails?: LargestContentfulPaint;
layoutShiftDetails?: LayoutShift;
}

/**
* Sent when a performance timeline event is added. See reportPerformanceTimeline method.
*/
export type timelineEventAddedPayload = {
event: TimelineEvent;
}

/**
* Previously buffered events would be reported before method returns.
See also: timelineEventAdded
*/
export type enableParameters = {
/**
* The types of event to report, as specified in
https://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype
The specified filter overrides any previous filters, passing empty
filter disables recording.
Note that not all types exposed to the web platform are currently supported.
*/
eventTypes: string[];
}
export type enableReturnValue = {
}
}

/**
* Security
*/
Expand Down Expand Up @@ -12269,6 +12384,12 @@ transfer mode (defaults to `none`)
*/
streamCompression?: StreamCompression;
traceConfig?: TraceConfig;
/**
* Base64-encoded serialized perfetto.protos.TraceConfig protobuf message
When specified, the parameters `categories`, `options`, `traceConfig`
are ignored.
*/
perfettoConfig?: binary;
}
export type startReturnValue = {
}
Expand Down Expand Up @@ -13624,33 +13745,6 @@ execution. Overrides `setPauseOnException` state.
*/
exceptionDetails?: Runtime.ExceptionDetails;
}
/**
* Execute a Wasm Evaluator module on a given call frame.
*/
export type executeWasmEvaluatorParameters = {
/**
* WebAssembly call frame identifier to evaluate on.
*/
callFrameId: CallFrameId;
/**
* Code of the evaluator module.
*/
evaluator: binary;
/**
* Terminate execution after timing out (number of milliseconds).
*/
timeout?: Runtime.TimeDelta;
}
export type executeWasmEvaluatorReturnValue = {
/**
* Object wrapper for the evaluation result.
*/
result: Runtime.RemoteObject;
/**
* Exception details.
*/
exceptionDetails?: Runtime.ExceptionDetails;
}
/**
* Returns possible locations for breakpoint. scriptId in start and end range locations should be
the same.
Expand Down Expand Up @@ -14718,11 +14812,13 @@ other objects in their object group.
/**
* Object type.
*/
type: "object"|"function"|"undefined"|"string"|"number"|"boolean"|"symbol"|"bigint"|"wasm";
type: "object"|"function"|"undefined"|"string"|"number"|"boolean"|"symbol"|"bigint";
/**
* Object subtype hint. Specified for `object` or `wasm` type values only.
* Object subtype hint. Specified for `object` type values only.
NOTE: If you change anything here, make sure to also update
`subtype` in `ObjectPreview` and `PropertyPreview` below.
*/
subtype?: "array"|"null"|"node"|"regexp"|"date"|"map"|"set"|"weakmap"|"weakset"|"iterator"|"generator"|"error"|"proxy"|"promise"|"typedarray"|"arraybuffer"|"dataview"|"i32"|"i64"|"f32"|"f64"|"v128"|"externref";
subtype?: "array"|"null"|"node"|"regexp"|"date"|"map"|"set"|"weakmap"|"weakset"|"iterator"|"generator"|"error"|"proxy"|"promise"|"typedarray"|"arraybuffer"|"dataview"|"webassemblymemory";
/**
* Object class (constructor) name. Specified for `object` type values only.
*/
Expand Down Expand Up @@ -14774,7 +14870,7 @@ The result value is json ML array.
/**
* Object subtype hint. Specified for `object` type values only.
*/
subtype?: "array"|"null"|"node"|"regexp"|"date"|"map"|"set"|"weakmap"|"weakset"|"iterator"|"generator"|"error";
subtype?: "array"|"null"|"node"|"regexp"|"date"|"map"|"set"|"weakmap"|"weakset"|"iterator"|"generator"|"error"|"proxy"|"promise"|"typedarray"|"arraybuffer"|"dataview"|"webassemblymemory";
/**
* String representation of the object.
*/
Expand Down Expand Up @@ -14812,7 +14908,7 @@ The result value is json ML array.
/**
* Object subtype hint. Specified for `object` type values only.
*/
subtype?: "array"|"null"|"node"|"regexp"|"date"|"map"|"set"|"weakmap"|"weakset"|"iterator"|"generator"|"error";
subtype?: "array"|"null"|"node"|"regexp"|"date"|"map"|"set"|"weakmap"|"weakset"|"iterator"|"generator"|"error"|"proxy"|"promise"|"typedarray"|"arraybuffer"|"dataview"|"webassemblymemory";
}
export interface EntryPreview {
/**
Expand Down Expand Up @@ -14948,6 +15044,12 @@ script evaluation should be performed.
* Human readable name describing given context.
*/
name: string;
/**
* A system-unique execution context identifier. Unlike the id, this is unique accross
multiple processes, so can be reliably used to identify specific context while backend
performs a cross-process navigation.
*/
uniqueId: string;
/**
* Embedder-specific auxiliary data.
*/
Expand Down Expand Up @@ -15329,6 +15431,9 @@ execution. Overrides `setPauseOnException` state.
/**
* Specifies in which execution context to perform evaluation. If the parameter is omitted the
evaluation will be performed in the context of the inspected page.
This is mutually exclusive with `uniqueContextId`, which offers an
alternative way to identify the execution context that is more reliable
in a multi-process environment.
*/
contextId?: ExecutionContextId;
/**
Expand Down Expand Up @@ -15374,6 +15479,15 @@ when called with non-callable arguments. This flag bypasses CSP for this
evaluation and allows unsafe-eval. Defaults to true.
*/
allowUnsafeEvalBlockedByCSP?: boolean;
/**
* An alternative way to specify the execution context to evaluate in.
Compared to contextId that may be reused accross processes, this is guaranteed to be
system-unique, so it can be used to prevent accidental evaluation of the expression
in context different than intended (e.g. as a result of navigation accross process
boundaries).
This is mutually exclusive with `contextId`.
*/
uniqueContextId?: string;
}
export type evaluateReturnValue = {
/**
Expand Down Expand Up @@ -15757,6 +15871,7 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications.
"Page.windowOpen": Page.windowOpenPayload;
"Page.compilationCacheProduced": Page.compilationCacheProducedPayload;
"Performance.metrics": Performance.metricsPayload;
"PerformanceTimeline.timelineEventAdded": PerformanceTimeline.timelineEventAddedPayload;
"Security.certificateError": Security.certificateErrorPayload;
"Security.visibleSecurityStateChanged": Security.visibleSecurityStateChangedPayload;
"Security.securityStateChanged": Security.securityStateChangedPayload;
Expand Down Expand Up @@ -16161,6 +16276,7 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications.
"Performance.enable": Performance.enableParameters;
"Performance.setTimeDomain": Performance.setTimeDomainParameters;
"Performance.getMetrics": Performance.getMetricsParameters;
"PerformanceTimeline.enable": PerformanceTimeline.enableParameters;
"Security.disable": Security.disableParameters;
"Security.enable": Security.enableParameters;
"Security.setIgnoreCertificateErrors": Security.setIgnoreCertificateErrorsParameters;
Expand Down Expand Up @@ -16245,7 +16361,6 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications.
"Debugger.disable": Debugger.disableParameters;
"Debugger.enable": Debugger.enableParameters;
"Debugger.evaluateOnCallFrame": Debugger.evaluateOnCallFrameParameters;
"Debugger.executeWasmEvaluator": Debugger.executeWasmEvaluatorParameters;
"Debugger.getPossibleBreakpoints": Debugger.getPossibleBreakpointsParameters;
"Debugger.getScriptSource": Debugger.getScriptSourceParameters;
"Debugger.getWasmBytecode": Debugger.getWasmBytecodeParameters;
Expand Down Expand Up @@ -16666,6 +16781,7 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications.
"Performance.enable": Performance.enableReturnValue;
"Performance.setTimeDomain": Performance.setTimeDomainReturnValue;
"Performance.getMetrics": Performance.getMetricsReturnValue;
"PerformanceTimeline.enable": PerformanceTimeline.enableReturnValue;
"Security.disable": Security.disableReturnValue;
"Security.enable": Security.enableReturnValue;
"Security.setIgnoreCertificateErrors": Security.setIgnoreCertificateErrorsReturnValue;
Expand Down Expand Up @@ -16750,7 +16866,6 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications.
"Debugger.disable": Debugger.disableReturnValue;
"Debugger.enable": Debugger.enableReturnValue;
"Debugger.evaluateOnCallFrame": Debugger.evaluateOnCallFrameReturnValue;
"Debugger.executeWasmEvaluator": Debugger.executeWasmEvaluatorReturnValue;
"Debugger.getPossibleBreakpoints": Debugger.getPossibleBreakpointsReturnValue;
"Debugger.getScriptSource": Debugger.getScriptSourceReturnValue;
"Debugger.getWasmBytecode": Debugger.getWasmBytecodeReturnValue;
Expand Down
2 changes: 1 addition & 1 deletion test/headful.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ it('should have default url when launching browser', async ({browserType, browse
});

it('headless should be able to read cookies written by headful', (test, { browserName, platform }) => {
test.fail(platform === 'win32' && browserName === 'chromium');
test.flaky(platform === 'win32' && browserName === 'chromium');
test.flaky(browserName === 'firefox');
test.slow();
}, async ({browserType, browserOptions, server, createUserDataDir}) => {
Expand Down
Loading

0 comments on commit 0a7b917

Please sign in to comment.