Skip to content

Conversation

@JoelEinbinder
Copy link
Contributor

WebKit for linux crashes when we continue an intercepted request with a 301 redirect. I can't get a stack trace out of it. Happens with both gtk and wpe. I didn't test other operating systems.

Firefox passes the test, but after this test runs it hangs when calling browserServer.close.

Chromium works great.

expect(response.ok()).toBe(true);
expect(intercepted).toBe(true);
});
// WebKit crashes. Firefox succeeds, but then fails to close.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect failing to close might be unrelated issue, I've seen that in FF a few times.

await page.goto(server.PREFIX + '/empty.html');
await page.route('**/*', async(route, request) => {
if (request.url() !== server.PREFIX + '/redirect_this')
return route.continue();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: why not page.route(server.PREFIX + '/redirect_this', ...) ?

@yury-s yury-s merged commit 8536fa8 into microsoft:master Apr 13, 2020
debs-obrien pushed a commit to debs-obrien/playwright that referenced this pull request Jun 10, 2025
Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants