chore(build): update chromium-bidi to 0.5.20 (#12513)

Co-authored-by: Alex Rudenko <alexrudenko@chromium.org>
This commit is contained in:
Nikolay Vitkov 2024-06-03 22:26:03 +02:00 committed by GitHub
parent d8654f1eed
commit 077ca4532f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 19 additions and 27 deletions

16
package-lock.json generated
View File

@ -12517,7 +12517,7 @@
"license": "Apache-2.0",
"dependencies": {
"@puppeteer/browsers": "2.2.3",
"chromium-bidi": "0.5.19",
"chromium-bidi": "0.5.20",
"debug": "4.3.4",
"devtools-protocol": "0.0.1286932",
"ws": "8.17.0"
@ -12541,22 +12541,22 @@
"license": "MIT"
},
"packages/puppeteer-core/node_modules/chromium-bidi": {
"version": "0.5.19",
"resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.5.19.tgz",
"integrity": "sha512-UA6zL77b7RYCjJkZBsZ0wlvCTD+jTjllZ8f6wdO4buevXgTZYjV+XLB9CiEa2OuuTGGTLnI7eN9I60YxuALGQg==",
"version": "0.5.20",
"resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.5.20.tgz",
"integrity": "sha512-RZa5N+VXCQ5W3wp0KynCtljy7bglk1VaB82H7a5OKiXGUOiz5G4CEwo89ovOk/DtvkLULr5AoQaG5O7VUxlZyQ==",
"dependencies": {
"mitt": "3.0.1",
"urlpattern-polyfill": "10.0.0",
"zod": "3.22.4"
"zod": "3.23.5"
},
"peerDependencies": {
"devtools-protocol": "*"
}
},
"packages/puppeteer-core/node_modules/chromium-bidi/node_modules/zod": {
"version": "3.22.4",
"resolved": "https://registry.npmjs.org/zod/-/zod-3.22.4.tgz",
"integrity": "sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==",
"version": "3.23.5",
"resolved": "https://registry.npmjs.org/zod/-/zod-3.23.5.tgz",
"integrity": "sha512-fkwiq0VIQTksNNA131rDOsVJcns0pfVUjHzLrNBiF/O/Xxb5lQyEXkhZWcJ7npWsYlvs+h0jFWXXy4X46Em1JA==",
"funding": {
"url": "https://github.com/sponsors/colinhacks"
}

View File

@ -120,7 +120,7 @@
"license": "Apache-2.0",
"dependencies": {
"@puppeteer/browsers": "2.2.3",
"chromium-bidi": "0.5.19",
"chromium-bidi": "0.5.20",
"debug": "4.3.4",
"devtools-protocol": "0.0.1286932",
"ws": "8.17.0"

View File

@ -707,7 +707,9 @@ export function handleError(error: ProtocolError): void {
// 'Expected "header" [...]'.
if (
error.originalMessage.includes('Invalid header') ||
error.originalMessage.includes('Expected "header"')
error.originalMessage.includes('Expected "header"') ||
// WebDriver BiDi error for invalid values, for example, headers.
error.originalMessage.includes('invalid argument')
) {
throw error;
}

View File

@ -136,7 +136,7 @@ export class BidiConnection
this.#callbacks.reject(
object.id,
createProtocolError(object),
object.message
`${object.error}: ${object.message}`
);
return;
case 'event':

View File

@ -2561,20 +2561,6 @@
"expectations": ["FAIL", "PASS"],
"comment": "TODO: add a comment explaining why this expectation is required (include links to issues)"
},
{
"testIdPattern": "[network.spec] network raw network headers Same-origin set-cookie navigation",
"platforms": ["darwin", "linux", "win32"],
"parameters": ["chrome", "webDriverBiDi"],
"expectations": ["FAIL"],
"comment": "TODO: add a comment explaining why this expectation is required (include links to issues)"
},
{
"testIdPattern": "[network.spec] network raw network headers Same-origin set-cookie subresource",
"platforms": ["darwin", "linux", "win32"],
"parameters": ["chrome", "webDriverBiDi"],
"expectations": ["FAIL"],
"comment": "TODO: add a comment explaining why this expectation is required (include links to issues)"
},
{
"testIdPattern": "[network.spec] network raw network headers Same-origin set-cookie subresource",
"platforms": ["darwin", "linux", "win32"],

View File

@ -770,7 +770,9 @@ describe('request interception', function () {
await request.continue();
});
await page.goto(server.PREFIX + '/empty.html');
expect(error.message).toMatch(/Invalid header|Expected "header"/);
expect(error.message).toMatch(
/Invalid header|Expected "header"|invalid argument/
);
});
});
@ -938,7 +940,9 @@ describe('request interception', function () {
});
});
await page.goto(server.PREFIX + '/empty.html');
expect(error.message).toMatch(/Invalid header|Expected "header"/);
expect(error.message).toMatch(
/Invalid header|Expected "header"|invalid argument/
);
});
});