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

View File

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

View File

@ -707,7 +707,9 @@ export function handleError(error: ProtocolError): void {
// 'Expected "header" [...]'. // 'Expected "header" [...]'.
if ( if (
error.originalMessage.includes('Invalid header') || 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; throw error;
} }

View File

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

View File

@ -2561,20 +2561,6 @@
"expectations": ["FAIL", "PASS"], "expectations": ["FAIL", "PASS"],
"comment": "TODO: add a comment explaining why this expectation is required (include links to issues)" "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", "testIdPattern": "[network.spec] network raw network headers Same-origin set-cookie subresource",
"platforms": ["darwin", "linux", "win32"], "platforms": ["darwin", "linux", "win32"],

View File

@ -770,7 +770,9 @@ describe('request interception', function () {
await request.continue(); await request.continue();
}); });
await page.goto(server.PREFIX + '/empty.html'); 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'); 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/
);
}); });
}); });