Repository navigation
Description
Description
W3C Web Application Manifest testing is limited to WPT /appmanifest/ testing static JSON parsing.
There is no automated way in WPT or WebDriver BiDi to test an installed web application context.
Neither WPT nor web developers can run cross-browser automated tests for features that depend on a manifest being applied to a browsing context.
For Interop 2027 proposing a conservative Investigation Effort focused on establishing initial cross-browser engagement and a foundational testing baseline:
- Virtualized Application Context in
testdriver.js/ WebDriver BiDi: Enter an "installed" application browsing context (Manifest § 1.16.5) in headless/automated test runs without modifying host OS registries or desktop shortcuts. - Computed Manifest Inspection: Read back the browser's resolved manifest (
id,start_url,scope,display,name,icons) to verify manifest application across engines (w3c/manifest#1179,w3c/manifest#1194). - Display Mode & Install State Verification: Test
@media (display-mode: standalone | minimal-ui | fullscreen)and install detection (navigator.standalone/@media (installed: yes),w3c/manifest#1092).
Natural Follow-Ons for Future Years (Out of Scope for 2027)
Once the 2027 baseline harness exists, future years can incrementally add testing for:
- In-scope vs. out-of-scope link navigation capturing (
launch_handler) - Manifest update detection and metadata refresh lifecycle
- Install-gated APIs in app contexts (Badging, Push
w3c/push-api#365,share_target#1404) - OS handler launches (
protocol_handlers,file_handlers,shortcuts,window-controls-overlay)
Rationale
- A Developer Priority: In State of HTML 2024, Installed / Progressive Web Apps ranked Cascade Layers #5 overall. In the Native Web Apps report, top pain points were cross-engine behavioral differences.
- Sizable active usage: ~7% of Chrome users actively use installed PWAs.
- Tooling Ecosystem Blocked on WebDriver BiDi:
- Puppeteer (
puppeteer#15202, PR #15235, July 2026) shipped high-levelinstallPWA()/launchPWA()/getPWAState()APIs backed by Chromium's CDPPWA.*domain, but explicitly throwsUnsupportedOperationon WebDriver BiDi because no cross-browser standard exists. - Playwright developers have repeatedly requested
@media (display-mode: standalone)emulation to test app-specific UI (e.g., custom back buttons when browser chrome is hidden) without workarounds (playwright#26853,playwright#38989).
- Puppeteer (
- Browser & Standards Trackers / references:
- Web Feature:
manifest - W3C WebApps WG:
w3c/manifest#1194,w3c/manifest#1179,w3c/manifest#1092(TPAC 2025 discussion) - Chromium:
crbug.com/494012779
- Web Feature:
Investigation Roadmap
Normative specification work takes place in the W3C WebApps Working Group (w3c/manifest) and W3C Browser Testing and Tools Working Group (w3c/webdriver-bidi).
2027 Deliverable Tasks
- Align on Virtualized App Context Semantics: Document how Chromium, WebKit, and Gecko apply a manifest to an application browsing context (Manifest § 1.16.5) and agree on a minimal, virtualized test mode that requires no host OS installation side effects.
- Specify Baseline Testing Hooks (
w3c/manifest&w3c/webdriver-bidi): - Plumb
testdriver.jsin WPT: Expose the baseline app-context and computed-manifest hooks inresources/testdriver.jsandwptrunner. - Land Baseline WPT Suite in
/appmanifest/:- Computed manifest resolution tests on 'resolved' manifest (e.g.
id,start_url,scope,display,name,icons,shortcuts,etc). @media (display-mode: ...)- Allow testing fallback behavior
- Verifying
@media (installed: yes)(or an equivalent resolution of the proposal)
- Computed manifest resolution tests on 'resolved' manifest (e.g.
Natural Follow-Ons for Future Years: As noted in description, several further testing capabilities are appropriate after an initial baseline.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsTodo
Activity
alex-voodoo commentedon Sep 28, 2026
Why shall the application context be virtualised, and the OS registries or desktop shortcuts not be modified? The installed state of a web app implies that there is some persistent state that is available at browser startup time and survives restarts, and some implementations (e.g. Safari) go quite far down this way. Arguably virtualisation of the installed state would require quite a few workaround-like injections that would have no other purpose than making the user agent pretending that the current browsing context acts as if it was created in an installed web app.
The
PWA.*commands in Chromium DevTools protocol do a honest installation and then launch the web app through the same API that the user would install and launch it. Installing a web app modifies the file system and registers the web app, which survives the session end. This is basically the opposite to the virtualisation approach.Probably an easier way would be generalising the Chromium's approach and adding the appropriate concepts in WebDriver.
(A side note: The description mentions Manifest § 1.16.5 but the link points to 1.17.5, although the content at the link is correct.)
scheib commentedon Oct 8, 2026
There are trade offs, and this is open for discussion one there's agreement that there should be progress in testing.
This proposal to virtualize enables more practical testing with limited side effects of operating system behaviors while covering the installation choices and business logic of the browsers. This comes from experience testing other OS side-effect APIs such as Fullscreen, device APIs (Bluetooth, USB), etc. It is a progressive start that hopefully has less risk to begin implementing. Building further tests with operating system state changes would be a natural extension.
gsnedders commentedon Oct 15, 2026
I think there are a number of quite basic questions that need settling, and much of that is probably best tackled in the Browser Testing and Tools WG.
Most obviously, from Safari's point of view it's hard to see how much a virtualised context would tell us. While I believe Chrome runs web apps in the same app as its normal browsing mode, that isn't the case for Safari web apps on macOS or for sites added to the Home Screen as web apps on iOS: both are separate apps from the browser. A test that passes in a virtual context may not say much about the installed case.
alex-voodoo commentedon Oct 15, 2026
Chrome installs web apps into a user profile, but runs them in standalone windows with customised decorations, so this is not 100% normal browsing mode, certain parts of the UI are removed (e.g. the location bar is not shown, so the user cannot navigate away from the app by typing a location).
I think the important point here is the scope. Yes, if we limit it to the manifest and only want to see how it is applied to the browsing context, then it might be enough to just inject the manifest somehow and then verify that settings were read and applied to the page. However, the installed state is mostly beyond that. If we want to test installed apps, likely we will have to install them.