Web Install API in Chrome 158: Installing Web Apps from HTML

Chrome 158 reaches stable on November 17, 2026, and its release notes carry two related entries: the Web Install API, and a new HTML element called <install>. Together they settle a question that sat outside the standards for years — how a page asks the browser to install a web app, whether that app is its own or one on another origin.

The problem

Installation has always been the browser's decision to make, and the only practical route was the non-standard beforeinstallprompt event: wait for the browser to fire it, stash the event, then call prompt() when the user clicks a button. Three limits came with that pattern.

  • The event never became a standard, and WebKit never shipped it. Any "Install app" button built on it quietly disappears on Safari.
  • The browser decides when to fire it. If its conditions aren't met, there is no button at all.
  • It only covers the current app. A page cannot offer to install an app on another domain — which is exactly what a catalog, a landing page, or a marketplace needs.

What changed in Chrome 158

The two new entries separate installation into two paths with different trust surfaces.

The first is declarative. The <install> element is rendered by the browser itself, with standardized text and iconography, so there is no way to disguise it as some other button. The children inside the element are the fallback: a browser without support renders them under ordinary HTML rules, and a browser with support hides them and draws its own control.

html
<install
  manifest="https://music.example/manifest.webmanifest"
  manifestid="https://music.example/app">
  <a href="https://music.example/">Open Music Example</a>
</install>

The element fires an installresult event whose result is one of success, aborted, or invalid-data. It also exposes isValid and invalidReason for the blocked state — illegal_subframe when the document sits in a subframe where the Permissions Policy feature is disabled, or illegal_sandbox for sandboxed documents.

The second path is imperative: navigator.install(). With no arguments it installs the current document's app, provided the manifest carries an id field. With arguments it installs an app on another origin.

js
if (!('install' in navigator)) return;

try {
  await navigator.install({
    manifest: "https://music.example/manifest.webmanifest",
    manifestId: "https://music.example/app"
  });
} catch (err) {
  if (err.name === 'AbortError') {
    // user cancelled, or denied the permission
  } else if (err.name === 'DataError') {
    // manifest invalid, fetch failed, or id mismatch
  } else if (err.name === 'NotAllowedError') {
    // no user activation
  }
}

The promise resolves with an empty WebInstallResult reserved for future use, so the real signal lives in the exception rather than the result.

Real-world caveats

  • User activation is mandatory. Calling navigator.install() without a genuine click throws NotAllowedError, and success consumes the activation.
  • Permission applies to cross-origin only. Installing another origin goes through a browser-rendered permission bound to the requesting site, and a denial shuts that origin out. Installing the current document, and the declarative path, skip the permission step.
  • Permissions Policy. The web-app-installation feature defaults to an allowlist of self, so a cross-origin iframe needs explicit delegation. At the organization level, the WebAppInstallByUserEnabled policy disables installs outright.
  • Isolation is rejected. Documents with a sandboxing flag set, and fenced navigables, are refused by both entry points.
  • App already installed? The browser may show a launch prompt instead; accepting resolves the promise, declining rejects it with AbortError.
  • Other engines. Shipping starts on desktop — Windows, macOS, Linux, ChromeOS — with Android later and no WebView support. Gecko has given no signal, and WebKit opposes site-initiated installs. Fallback content is not a luxury here.

Takeaway

The declarative element is the practical default: no JavaScript, higher trust from the browser, and free fallback inside the element itself. The imperative API stays for cases where the page needs to control the moment and handle each failure mode separately. Any install logic built on beforeinstallprompt today is worth revisiting now that a standard path exists.

Primary source: the Chrome 158 release notes and the WICG install element draft. In the same vein, <install> belongs to the capability-element family alongside <camera> and <microphone>.