feat: roll Firefox and Firefox-Beta to latest builds (#20449)

These builds initiate browser-side navigation for `page.goto` command.

Drive-by: add a minimal file URL test.
This commit is contained in:
Andrey Lushnikov 2023-01-27 09:31:45 -08:00 committed by GitHub
parent 9ca9b08d90
commit 2af31edadd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 7 deletions

View File

@ -21,13 +21,13 @@
},
{
"name": "firefox",
"revision": "1373",
"revision": "1374",
"installByDefault": true,
"browserVersion": "108.0.2"
},
{
"name": "firefox-beta",
"revision": "1375",
"revision": "1376",
"installByDefault": false,
"browserVersion": "108.0b5"
},

View File

@ -385,7 +385,6 @@ export module Protocol {
export type navigationStartedPayload = {
frameId: string;
navigationId: string;
url: string;
}
export type navigationCommittedPayload = {
frameId: string;
@ -550,7 +549,6 @@ export module Protocol {
};
export type navigateReturnValue = {
navigationId: string|null;
navigationURL: string|null;
};
export type goBackParameters = {
frameId: string;

View File

@ -28,6 +28,15 @@ it('should work @smoke', async ({ page, server }) => {
it('should work with file URL', async ({ page, asset, isAndroid }) => {
it.skip(isAndroid, 'No files on Android');
const fileurl = url.pathToFileURL(asset('empty.html')).href;
await page.goto(fileurl);
expect(page.url().toLowerCase()).toBe(fileurl.toLowerCase());
expect(page.frames().length).toBe(1);
});
it('should work with file URL with subframes', async ({ page, asset, isAndroid }) => {
it.skip(isAndroid, 'No files on Android');
const fileurl = url.pathToFileURL(asset('frames/two-frames.html')).href;
await page.goto(fileurl);
expect(page.url().toLowerCase()).toBe(fileurl.toLowerCase());
@ -404,10 +413,8 @@ it('should fail when replaced by another navigation', async ({ page, server, bro
await anotherPromise;
if (browserName === 'chromium')
expect(error.message).toContain('net::ERR_ABORTED');
else if (browserName === 'webkit')
else if (browserName === 'webkit' || browserName === 'firefox')
expect(error.message).toContain('Navigation interrupted by another one');
else
expect(error.message).toContain('NS_BINDING_ABORTED');
});
it('should work when navigating to valid url', async ({ page, server }) => {