feat(firefox): roll Firefox to 1420 (#24205)

Fixes https://github.com/microsoft/playwright/issues/22753
This commit is contained in:
Andrey Lushnikov 2023-07-13 03:54:47 -07:00 committed by GitHub
parent 7787988043
commit 615f5afb2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 2 deletions

View File

@ -21,13 +21,13 @@
},
{
"name": "firefox",
"revision": "1419",
"revision": "1420",
"installByDefault": true,
"browserVersion": "115.0"
},
{
"name": "firefox-beta",
"revision": "1419",
"revision": "1420",
"installByDefault": false,
"browserVersion": "116.0b2"
},

View File

@ -966,3 +966,20 @@ for (const method of ['fulfill', 'continue', 'fallback', 'abort'] as const) {
expect(e.message).toContain('Route is already handled!');
});
}
it('should intercept when postData is more than 1MB', async ({ page, server }) => {
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/22753' });
await page.goto(server.EMPTY_PAGE);
let interceptionCallback;
const interceptionPromise = new Promise(x => interceptionCallback = x);
const POST_BODY = '0'.repeat(2 * 1024 * 1024); // 2MB
await page.route('**/404.html', async route => {
await route.abort();
interceptionCallback(route.request().postData());
});
await page.evaluate(POST_BODY => fetch('/404.html', {
method: 'POST',
body: POST_BODY,
}).catch(e => {}), POST_BODY);
expect(await interceptionPromise).toBe(POST_BODY);
});