From ef6155172024e3cf07a33cc12e4bb3b3fa17254d Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Mon, 21 Sep 2026 12:16:51 -0700 Subject: [PATCH 1/2] docs: isMobile is supported in Firefox since v1.61 Fixes https://github.com/microsoft/playwright/issues/42835 --- docs/src/api/params.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/api/params.md b/docs/src/api/params.md index 4bb5b6bd99763..c107b8660ce2a 100644 --- a/docs/src/api/params.md +++ b/docs/src/api/params.md @@ -684,7 +684,7 @@ Specify device scale factor (can be thought of as dpr). Defaults to `1`. Learn m ## context-option-ismobile - `isMobile` <[boolean]> -Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device, so you don't actually need to set it manually. Defaults to `false` and is not supported in Firefox. Learn more about [mobile emulation](../emulation.md#ismobile). +Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device, so you don't actually need to set it manually. Defaults to `false`. Learn more about [mobile emulation](../emulation.md#ismobile). ## context-option-hastouch - `hasTouch` <[boolean]> From 86b80e3040a198ca4f36735bac358be2871fe2e0 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Mon, 21 Sep 2026 12:17:02 -0700 Subject: [PATCH 2/2] docs: regenerate types for isMobile Firefox note --- packages/playwright-client/types/types.d.ts | 16 ++++++++-------- packages/playwright-core/types/types.d.ts | 16 ++++++++-------- packages/playwright/types/test.d.ts | 4 ++-- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/packages/playwright-client/types/types.d.ts b/packages/playwright-client/types/types.d.ts index cd297c4c18d49..e0c5e74a56771 100644 --- a/packages/playwright-client/types/types.d.ts +++ b/packages/playwright-client/types/types.d.ts @@ -11456,8 +11456,8 @@ export interface Browser { /** * Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device, - * so you don't actually need to set it manually. Defaults to `false` and is not supported in Firefox. Learn more - * about [mobile emulation](https://playwright.dev/docs/emulation#ismobile). + * so you don't actually need to set it manually. Defaults to `false`. Learn more about + * [mobile emulation](https://playwright.dev/docs/emulation#ismobile). */ isMobile?: boolean; @@ -17845,8 +17845,8 @@ export interface BrowserType { /** * Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device, - * so you don't actually need to set it manually. Defaults to `false` and is not supported in Firefox. Learn more - * about [mobile emulation](https://playwright.dev/docs/emulation#ismobile). + * so you don't actually need to set it manually. Defaults to `false`. Learn more about + * [mobile emulation](https://playwright.dev/docs/emulation#ismobile). */ isMobile?: boolean; @@ -24827,8 +24827,8 @@ export interface AndroidDevice { /** * Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device, - * so you don't actually need to set it manually. Defaults to `false` and is not supported in Firefox. Learn more - * about [mobile emulation](https://playwright.dev/docs/emulation#ismobile). + * so you don't actually need to set it manually. Defaults to `false`. Learn more about + * [mobile emulation](https://playwright.dev/docs/emulation#ismobile). */ isMobile?: boolean; @@ -26077,8 +26077,8 @@ export interface BrowserContextOptions { /** * Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device, - * so you don't actually need to set it manually. Defaults to `false` and is not supported in Firefox. Learn more - * about [mobile emulation](https://playwright.dev/docs/emulation#ismobile). + * so you don't actually need to set it manually. Defaults to `false`. Learn more about + * [mobile emulation](https://playwright.dev/docs/emulation#ismobile). */ isMobile?: boolean; diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.ts index cd297c4c18d49..e0c5e74a56771 100644 --- a/packages/playwright-core/types/types.d.ts +++ b/packages/playwright-core/types/types.d.ts @@ -11456,8 +11456,8 @@ export interface Browser { /** * Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device, - * so you don't actually need to set it manually. Defaults to `false` and is not supported in Firefox. Learn more - * about [mobile emulation](https://playwright.dev/docs/emulation#ismobile). + * so you don't actually need to set it manually. Defaults to `false`. Learn more about + * [mobile emulation](https://playwright.dev/docs/emulation#ismobile). */ isMobile?: boolean; @@ -17845,8 +17845,8 @@ export interface BrowserType { /** * Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device, - * so you don't actually need to set it manually. Defaults to `false` and is not supported in Firefox. Learn more - * about [mobile emulation](https://playwright.dev/docs/emulation#ismobile). + * so you don't actually need to set it manually. Defaults to `false`. Learn more about + * [mobile emulation](https://playwright.dev/docs/emulation#ismobile). */ isMobile?: boolean; @@ -24827,8 +24827,8 @@ export interface AndroidDevice { /** * Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device, - * so you don't actually need to set it manually. Defaults to `false` and is not supported in Firefox. Learn more - * about [mobile emulation](https://playwright.dev/docs/emulation#ismobile). + * so you don't actually need to set it manually. Defaults to `false`. Learn more about + * [mobile emulation](https://playwright.dev/docs/emulation#ismobile). */ isMobile?: boolean; @@ -26077,8 +26077,8 @@ export interface BrowserContextOptions { /** * Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device, - * so you don't actually need to set it manually. Defaults to `false` and is not supported in Firefox. Learn more - * about [mobile emulation](https://playwright.dev/docs/emulation#ismobile). + * so you don't actually need to set it manually. Defaults to `false`. Learn more about + * [mobile emulation](https://playwright.dev/docs/emulation#ismobile). */ isMobile?: boolean; diff --git a/packages/playwright/types/test.d.ts b/packages/playwright/types/test.d.ts index 9253f8e45ca60..0a946879971d9 100644 --- a/packages/playwright/types/test.d.ts +++ b/packages/playwright/types/test.d.ts @@ -7584,8 +7584,8 @@ export interface PlaywrightTestOptions { ignoreHTTPSErrors: boolean; /** * Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device, - * so you don't actually need to set it manually. Defaults to `false` and is not supported in Firefox. Learn more - * about [mobile emulation](https://playwright.dev/docs/emulation#ismobile). + * so you don't actually need to set it manually. Defaults to `false`. Learn more about + * [mobile emulation](https://playwright.dev/docs/emulation#ismobile). * * **Usage** *