feat: roll to Chrome 117.0.5938.62 (r1181205) (#10893)

Co-authored-by: Nikolay Vitkov <nvitkov@chromium.org>
This commit is contained in:
browser-automation-bot 2023-09-13 16:35:47 +02:00 committed by GitHub
parent 9b6f1de8b9
commit 4b8d20d0ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 27 additions and 20 deletions

16
package-lock.json generated
View File

@ -3953,9 +3953,9 @@
} }
}, },
"node_modules/devtools-protocol": { "node_modules/devtools-protocol": {
"version": "0.0.1159816", "version": "0.0.1179426",
"resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1159816.tgz", "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1179426.tgz",
"integrity": "sha512-2cZlHxC5IlgkIWe2pSDmCrDiTzbSJWywjbDDnupOImEBcG31CQgBLV8wWE+5t+C4rimcjHsbzy7CBzf9oFjboA==" "integrity": "sha512-KKC7IGwdOr7u9kTGgjUvGTov/z1s2H7oHi3zKCdR9eSDyCPia5CBi4aRhtp7d8uR7l0GS5UTDw3TjKGu5CqINg=="
}, },
"node_modules/dezalgo": { "node_modules/dezalgo": {
"version": "1.0.4", "version": "1.0.4",
@ -11117,7 +11117,7 @@
"chromium-bidi": "0.4.27", "chromium-bidi": "0.4.27",
"cross-fetch": "4.0.0", "cross-fetch": "4.0.0",
"debug": "4.3.4", "debug": "4.3.4",
"devtools-protocol": "0.0.1159816", "devtools-protocol": "0.0.1179426",
"ws": "8.14.1" "ws": "8.14.1"
}, },
"devDependencies": { "devDependencies": {
@ -13779,9 +13779,9 @@
"dev": true "dev": true
}, },
"devtools-protocol": { "devtools-protocol": {
"version": "0.0.1159816", "version": "0.0.1179426",
"resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1159816.tgz", "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1179426.tgz",
"integrity": "sha512-2cZlHxC5IlgkIWe2pSDmCrDiTzbSJWywjbDDnupOImEBcG31CQgBLV8wWE+5t+C4rimcjHsbzy7CBzf9oFjboA==" "integrity": "sha512-KKC7IGwdOr7u9kTGgjUvGTov/z1s2H7oHi3zKCdR9eSDyCPia5CBi4aRhtp7d8uR7l0GS5UTDw3TjKGu5CqINg=="
}, },
"dezalgo": { "dezalgo": {
"version": "1.0.4", "version": "1.0.4",
@ -17251,7 +17251,7 @@
"chromium-bidi": "0.4.27", "chromium-bidi": "0.4.27",
"cross-fetch": "4.0.0", "cross-fetch": "4.0.0",
"debug": "4.3.4", "debug": "4.3.4",
"devtools-protocol": "0.0.1159816", "devtools-protocol": "0.0.1179426",
"disposablestack": "1.1.1", "disposablestack": "1.1.1",
"mitt": "3.0.1", "mitt": "3.0.1",
"parsel-js": "1.1.2", "parsel-js": "1.1.2",

View File

@ -27,6 +27,7 @@
"test-types": "tsd -t packages/puppeteer", "test-types": "tsd -t packages/puppeteer",
"test:chrome:headful": "wireit", "test:chrome:headful": "wireit",
"test:chrome:new-headless": "wireit", "test:chrome:new-headless": "wireit",
"test:chrome:new-headless-tab": "wireit",
"test:chrome:headless": "wireit", "test:chrome:headless": "wireit",
"test:chrome:bidi": "wireit", "test:chrome:bidi": "wireit",
"test:chrome:bidi-local": "wireit", "test:chrome:bidi-local": "wireit",
@ -67,6 +68,9 @@
"test:chrome:new-headless": { "test:chrome:new-headless": {
"command": "npm test -- --test-suite chrome-new-headless" "command": "npm test -- --test-suite chrome-new-headless"
}, },
"test:chrome:new-headless-tab": {
"command": "npm test -- --test-suite chrome-new-headless-tab"
},
"test:chrome:bidi": { "test:chrome:bidi": {
"command": "npm test -- --test-suite chrome-bidi" "command": "npm test -- --test-suite chrome-bidi"
}, },

View File

@ -144,7 +144,7 @@
"chromium-bidi": "0.4.27", "chromium-bidi": "0.4.27",
"cross-fetch": "4.0.0", "cross-fetch": "4.0.0",
"debug": "4.3.4", "debug": "4.3.4",
"devtools-protocol": "0.0.1159816", "devtools-protocol": "0.0.1179426",
"ws": "8.14.1" "ws": "8.14.1"
}, },
"devDependencies": { "devDependencies": {

View File

@ -353,6 +353,7 @@ class AXNode {
case 'doc-cover': case 'doc-cover':
case 'graphics-symbol': case 'graphics-symbol':
case 'img': case 'img':
case 'image':
case 'Meter': case 'Meter':
case 'scrollbar': case 'scrollbar':
case 'slider': case 'slider':

View File

@ -64,7 +64,7 @@ const normalizeValue = (value: string): string => {
* The following examples showcase how the syntax works wrt. querying: * The following examples showcase how the syntax works wrt. querying:
* *
* - 'title[role="heading"]' queries for elements with name 'title' and role 'heading'. * - 'title[role="heading"]' queries for elements with name 'title' and role 'heading'.
* - '[role="img"]' queries for elements with role 'img' and any name. * - '[role="image"]' queries for elements with role 'image' and any name.
* - 'label' queries for elements with name 'label' and any role. * - 'label' queries for elements with name 'label' and any role.
* - '[name=""][role="button"]' queries for elements with no name and role 'button'. * - '[name=""][role="button"]' queries for elements with no name and role 'button'.
*/ */

View File

@ -675,7 +675,6 @@ describe('NetworkManager', () => {
requestId: '1360.2', requestId: '1360.2',
timestamp: 10959.060708, timestamp: 10959.060708,
encodedDataLength: 85928, encodedDataLength: 85928,
shouldReportCorbBlocking: false,
}); });
expect(requests).toHaveLength(1); expect(requests).toHaveLength(1);
@ -802,7 +801,6 @@ describe('NetworkManager', () => {
requestId: 'LOADERID', requestId: 'LOADERID',
timestamp: 671.234448, timestamp: 671.234448,
encodedDataLength: 197, encodedDataLength: 197,
shouldReportCorbBlocking: false,
}); });
expect(pendingRequests).toHaveLength(1); expect(pendingRequests).toHaveLength(1);
@ -1115,7 +1113,6 @@ describe('NetworkManager', () => {
requestId: 'E18BEB94B486CA8771F9AFA2030FEA37', requestId: 'E18BEB94B486CA8771F9AFA2030FEA37',
timestamp: 510294.113383, timestamp: 510294.113383,
encodedDataLength: 197, encodedDataLength: 197,
shouldReportCorbBlocking: false,
}); });
mockCDPSession.emit('Network.responseReceivedExtraInfo', { mockCDPSession.emit('Network.responseReceivedExtraInfo', {
requestId: 'E18BEB94B486CA8771F9AFA2030FEA37', requestId: 'E18BEB94B486CA8771F9AFA2030FEA37',
@ -1283,7 +1280,6 @@ describe('NetworkManager', () => {
requestId: '6D76C8ACAECE880C722FA515AD380015', requestId: '6D76C8ACAECE880C722FA515AD380015',
timestamp: 31949.963861, timestamp: 31949.963861,
encodedDataLength: 847, encodedDataLength: 847,
shouldReportCorbBlocking: false,
}); });
mockCDPSession.emit('Network.requestWillBeSent', { mockCDPSession.emit('Network.requestWillBeSent', {
@ -1534,7 +1530,6 @@ describe('NetworkManager', () => {
requestId: '4C2CC44FB6A6CAC5BE2780BCC9313105', requestId: '4C2CC44FB6A6CAC5BE2780BCC9313105',
timestamp: 31949.989412, timestamp: 31949.989412,
encodedDataLength: 0, encodedDataLength: 0,
shouldReportCorbBlocking: false,
}); });
expect( expect(
responses.map(r => { responses.map(r => {

View File

@ -18,6 +18,6 @@
* @internal * @internal
*/ */
export const PUPPETEER_REVISIONS = Object.freeze({ export const PUPPETEER_REVISIONS = Object.freeze({
chrome: '116.0.5845.96', chrome: '117.0.5938.62',
firefox: 'latest', firefox: 'latest',
}); });

View File

@ -1347,7 +1347,7 @@
"testIdPattern": "[accessibility.spec] Accessibility filtering children of leaf nodes rich text editable fields should have children", "testIdPattern": "[accessibility.spec] Accessibility filtering children of leaf nodes rich text editable fields should have children",
"platforms": ["darwin", "linux", "win32"], "platforms": ["darwin", "linux", "win32"],
"parameters": ["chrome", "webDriverBiDi"], "parameters": ["chrome", "webDriverBiDi"],
"expectations": ["FAIL"] "expectations": ["PASS"]
}, },
{ {
"testIdPattern": "[accessibility.spec] Accessibility get snapshots while the tree is re-calculated", "testIdPattern": "[accessibility.spec] Accessibility get snapshots while the tree is re-calculated",
@ -4084,5 +4084,11 @@
"platforms": ["darwin", "linux", "win32"], "platforms": ["darwin", "linux", "win32"],
"parameters": ["cdp", "chrome", "headless"], "parameters": ["cdp", "chrome", "headless"],
"expectations": ["FAIL", "PASS"] "expectations": ["FAIL", "PASS"]
},
{
"testIdPattern": "[coverage.spec] Coverage specs JSCoverage resetOnNavigation should report scripts across navigations when disabled",
"platforms": ["darwin", "linux", "win32"],
"parameters": ["chrome", "new-headless", "cdp", "tabTarget"],
"expectations": ["FAIL"]
} }
] ]

View File

@ -338,7 +338,7 @@ describe('Accessibility', function () {
name: 'Edit this image: ', name: 'Edit this image: ',
}, },
{ {
role: 'img', role: 'image',
name: 'my fake image', name: 'my fake image',
}, },
], ],

View File

@ -390,7 +390,7 @@ describe('AriaQueryHandler', () => {
let imgFound = false; let imgFound = false;
const waitForSelector = page const waitForSelector = page
.waitForSelector('aria/[role="img"]') .waitForSelector('aria/[role="image"]')
.then(() => { .then(() => {
return (imgFound = true); return (imgFound = true);
}); });

View File

@ -17,6 +17,7 @@
const versionsPerRelease = new Map([ const versionsPerRelease = new Map([
// This is a mapping from Chrome version => Puppeteer version. // This is a mapping from Chrome version => Puppeteer version.
// In Chrome roll patches, use `NEXT` for the Puppeteer version. // In Chrome roll patches, use `NEXT` for the Puppeteer version.
['117.0.5938.62', 'NEXT'],
['116.0.5845.96', 'v21.1.0'], ['116.0.5845.96', 'v21.1.0'],
['115.0.5790.170', 'v21.0.2'], ['115.0.5790.170', 'v21.0.2'],
['115.0.5790.102', 'v21.0.0'], ['115.0.5790.102', 'v21.0.0'],
@ -65,7 +66,7 @@ const versionsPerRelease = new Map([
]); ]);
// Should not be more than 2 major versions behind Chrome Stable (https://chromestatus.com/roadmap). // Should not be more than 2 major versions behind Chrome Stable (https://chromestatus.com/roadmap).
const lastMaintainedChromeVersion = '114.0.5735.90'; const lastMaintainedChromeVersion = '114.0.5735.133';
if (!versionsPerRelease.has(lastMaintainedChromeVersion)) { if (!versionsPerRelease.has(lastMaintainedChromeVersion)) {
throw new Error( throw new Error(