Skip to content

[REGRESSION]: firefox-1378 times out on await page.reload() when URL contains a #hash #21145

@rudolfs

Description

@rudolfs

Context:

  • GOOD Playwright Version: 1.30.0 with firefox-1323
  • BAD Playwright Version: 1.31.1 with firefox-1378
  • Operating System: MacOS 12.4 and Ubuntu 22.04.1

Code Snippet

When running the following testcase:

test("reload times out on firefox-1378", async ({ page }) => {
  await page.goto("https://playwright.dev/docs/intro#whats-installed");
  await page.reload();
});

I get:

    Test timeout of 30000ms exceeded.

    page.reload: Navigation failed because page was closed!
    =========================== logs ===========================
    waiting for navigation until "load"
    ============================================================

Describe the bug

If there is a hash in the URL then await page.reload() times out with Test timeout of 30000ms exceeded.. I expected the test to pass after a page reload. This might be a bug with Firefox itself, but it used to work in a previous playwright/firefox combination.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions