[Feature]: Safe area / Inset emulation
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- playwright, typescript
- Domain
- testing-qa
Research direction
Start by reading Playwright’s browser emulation APIs and how viewport and screen sizes are configured. Check the Chromium debugging protocol support for Emulation.setSafeAreaInsetsOverride, then compare what WebKit and Firefox expose. Done means Playwright can configure safe area insets and overlays across the supported browser engines to test embedded mobile layouts.
Written by the indexing model from the issue text.
Description
🚀 Feature Request
It would be great if we specify viewport sizes separately from screen sizes, so as to allow testing against emulated versions of mobile browser rendering engines with insets and overlays (such as notification drawers and on-screen keyboards).
- Chromium has official support for this in their debugging protocol (behind an experimental flag), via "Emulation.setSafeAreaInsetsOverride".
- It's somewhat possible to do this in Webkit, as methods to do this are supported internally, but there are not currently any debug protocol or UI for setting anything like this.
- Firefox does not yet ship anything that can be used for simulating this yet, so is in the same state as Webkit.
Example
No response
Motivation
Supporting this would allow for Playwright to be configured to better reflect browser environments when embedded inside apps on Android / iOS devices.
- Dominant language
- TypeScript
- Stars
- 97.4k
- Forks
- 6.6k
- Avg merge
- 22h 17m
- Merged PRs (30d)
- 278
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/playwright
-
[Bug]: Windows: Chrome for Testing crashes in its stack sampling profiler during fullPage screenshotsPossibly taken @yury-s claimed this today. Openneeds-triage-win
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
microsoft/playwright#43327 · 1 comment ·
Maintainers usually reply within 1 day
-
[Feature]: Set `this.name` in `TargetClosedError` constructorMay be free again @LeonxLJX claimed this 40 days ago, and no pull request is open. OpenP3-collecting-feedback
Difficulty 1/5 Under an hour Newbie friendliness 86/100
microsoft/playwright#42522 · 7 comments ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 28/100
microsoft/playwright#43347 · 1 comment ·
Maintainers usually reply within 1 day
-
[Bug] Chromium: launch({ proxy: { username, password } }) credentials are sent to a website's 401 Basic challengePossibly taken @yury-s claimed this today. Open
Difficulty 4/5 3-5 days Newbie friendliness 45/100
microsoft/playwright#43326 ·
Maintainers usually reply within 1 day
-
[Bug]: Firefox drops the context's colorScheme and deviceScaleFactor on pages that send Cross-Origin-Opener-PolicyPossibly taken @dgozman claimed this 1 day ago. Openbrowser-firefox v1.65
microsoft/playwright#43287 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
All issues in microsoft/playwright
Similar issues
-
Add: VIVE TVOpenapproved check:passed streams:add
Difficulty 1/5 Under an hour Newbie friendliness 72/100
iptv-org/iptv#55293 · 1 comment ·
Maintainers usually reply within 1 day
-
bug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Fission-AI/OpenSpec#2084 ·
Maintainers usually reply within 2 days
-
Contrib indemnité de départ à la retraite : faire le pont avec le simulateur sur la page génériqueOpenP1
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
SocialGouv/code-du-travail-numerique#7561 ·
Maintainers usually reply within 1 day
-
beginner bug
Difficulty 1/5 Under an hour Newbie friendliness 88/100
hiero-ledger/hiero-sdk-js#4517 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
kubernetes-sigs/headlamp#7950 ·
Maintainers usually reply within 3 days