Skip to content

Installed Web App Automated Testing #1437

Open

Description

@scheib

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:

  1. 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.
  2. 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).
  3. 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

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

  1. 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.
  2. Specify Baseline Testing Hooks (w3c/manifest & w3c/webdriver-bidi):
    • Add an Automated Testing section to w3c/manifest (#1194) and specify computed manifest retrieval (#1179).
    • Define minimal WebDriver BiDi commands to launch a browsing context with a manifest applied and set/query display-mode.
  3. Plumb testdriver.js in WPT: Expose the baseline app-context and computed-manifest hooks in resources/testdriver.js and wptrunner.
  4. 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: ...)
      1. Allow testing fallback behavior
    • Verifying @media (installed: yes) (or an equivalent resolution of the proposal)

Natural Follow-Ons for Future Years: As noted in description, several further testing capabilities are appropriate after an initial baseline.

Activity

  1. added
    investigation-effort-proposal
    on Sep 22, 2026
  2. alex-voodoo commented on Sep 28, 2026

    @alex-voodoo

    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.)

  3. scheib commented on Oct 8, 2026

    @scheib
    Author

    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.

  4. gsnedders commented on Oct 15, 2026

    @gsnedders
    Member

    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.

  5. alex-voodoo commented on Oct 15, 2026

    @alex-voodoo

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    investigation-effort-proposal

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions