Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: housekeeping after the last firefox roll (#35116)

Dmitry Gozman49f03c87fcd8
diff --git a/packages/playwright-core/src/server/firefox/ffBrowser.ts b/packages/playwright-core/src/server/firefox/ffBrowser.ts
index 2320dcc77a..66724468de 100644
--- a/packages/playwright-core/src/server/firefox/ffBrowser.ts
+++ b/packages/playwright-core/src/server/firefox/ffBrowser.ts
@@ -444,5 +444,4 @@ function toJugglerProxyOptions(proxy: types.ProxySettings) {
// Prefs for quick fixes that didn't make it to the build.
// Should all be moved to `playwright.cfg`.
const kBandaidFirefoxUserPrefs = {
- 'dom.fetchKeepalive.enabled': false,
};
diff --git a/tests/library/browsercontext-basic.spec.ts b/tests/library/browsercontext-basic.spec.ts
index df9db587d6..cf06cce2ae 100644
--- a/tests/library/browsercontext-basic.spec.ts
+++ b/tests/library/browsercontext-basic.spec.ts
@@ -342,3 +342,10 @@ it('default user agent', async ({ launchPersistent, browser, page, mode }) => {
const { userAgent } = await (browser as any)._channel.defaultUserAgentForTest();
expect(await page.evaluate(() => navigator.userAgent)).toBe(userAgent);
});
+
+it('should create two pages in parallel', async ({ context }) => {
+ await Promise.all([
+ context.newPage(),
+ context.newPage(),
+ ]);
+});