Manifest member in Manifest
scope manifest member
Published Updated
The scope manifest member defines which pages belong to an installed web app and use its window without browser controls. Its value is a URL string. A URL is within scope when it is same
origin as the scope URL and its path begins with the scope URL’s path; everything else is out of
scope and is still reachable, but the browser restores its own UI to say so.
BCD manifests.webapp.scope records support from Chrome 53 (Chrome Android mirrors it), Firefox for
Android 79, Safari 11.3 on iOS, and Safari 17 on macOS. BCD lists Firefox on desktop
as unsupported. On Android the same
string also decides which links an installed WebAPK captures from other apps.
Member
Section titled “Member”| Property | Value |
|---|---|
| Type | string holding a URL, absolute or relative; a relative value resolves against the manifest file’s URL, not the document’s. |
| Default | start_url with its filename, query, and fragment removed. start_url of /app/index.html?user=1#home gives an effective scope of /app/. |
| Example value | "/app/". |
One rule drops the member and falls back to the default: start_url must be within the scope,
otherwise Chromium logs property 'scope' ignored. Start url should be within scope of scope URL.
A scope on another origin fails the same check, because start_url is on the document’s origin.
The message comes from ParseScope in Chromium’s manifest_parser.cc.
Matching is a plain string prefix on the path, not a directory test. "/app" matches
/app-admin/ and /application.html as well as /app/; end the value with / to confine it
to one directory. Scope is not a security boundary: an out-of-scope navigation is not blocked,
and the service worker’s scope is a separate value set at register() time (MDN,
ServiceWorkerRegistration.scope) that can be wider or narrower than the manifest’s.
What out-of-scope looks like differs by platform. Chrome on Android opens the page in a custom-tab
style view with the URL shown at the top; Chrome and Edge on desktop add a toolbar with the origin
and an “open in browser” control; Safari 16.4 on iOS shows a banner inside the home-screen app
rather than a full address bar (BCD note). Cross-origin pages can be pulled into scope only with
scope_extensions.
Examples
Section titled “Examples”Set a scope explicitly to confine the app to a subpath, or let the browser derive it from the start URL.
Confining the app to a subpath
Section titled “Confining the app to a subpath”A dashboard uses /app/, while the site’s marketing pages live at the root. Links to
/pricing/ open in the app window with browser controls restored, so the visitor can tell they
have left the app.
{ "name": "Ledger", "start_url": "/app/", "scope": "/app/", "display": "standalone"}The trailing slash matters: "scope": "/app" would also claim /app-status/ and
/apply.html because matching is a path-prefix comparison.
Letting the default scope derive from a start_url with a query
Section titled “Letting the default scope derive from a start_url with a query”A manifest that tags launches with a query string and declares no scope. The browser strips the
filename, query, and fragment from start_url, so the effective scope is /app/ and the whole
directory is in scope, including the untagged /app/ URL the user reaches by navigation.
{ "name": "Ledger", "start_url": "/app/index.html?source=homescreen", "display": "standalone"}If the same manifest had "start_url": "/app/index.html?source=homescreen" and
"scope": "/dashboard/", the scope would be dropped (start URL not within it) and /app/ would
again be the effective scope; the mistake is silent except for the DevTools line quoted above.
Detecting an out-of-scope context at runtime
Section titled “Detecting an out-of-scope context at runtime”The manifest’s scope is not exposed to script, but the display-mode media feature reports
whether the current page is being shown with browser UI. In an installed app that means the page
is out of scope (or the user opened it in a tab); in an engine without the feature the query
matches nothing and the code takes the same fallback branch as a browser tab.
function isWithinScope(target, scope) { const t = new URL(target, location.href); const s = new URL(scope, location.href); return t.origin === s.origin && t.pathname.startsWith(s.pathname);}
const APP_SCOPE = '/app/';const inAppWindow = matchMedia('(display-mode: standalone)').matches;
if (!inAppWindow || !isWithinScope(location.href, APP_SCOPE)) { // Browser tab, unsupported engine, or an out-of-scope page: show the full site header. document.documentElement.dataset.chrome = 'site';} else { document.documentElement.dataset.chrome = 'app';}Keep APP_SCOPE in one constant shared with the manifest build so the two cannot drift; the
browser gives no warning when they do.
See also
Section titled “See also”- start_url manifest member
- scope_extensions manifest member
- display manifest member
- Service worker registration and scope
- PWAs on Chrome and Android (WebAPK, TWA)
- Web Application Manifest: scope member (w3.org)
- WebAPKs on Android (web.dev)
Specifications
| Specification | Status |
|---|---|
| Web App Manifest: scope | W3C |
| Web Application Manifest: within scope | W3C |
- Legend
- Yes
- Partial
- Flag
- No
- Unknown
| Browser / Platform | Support | Versions | Confidence | Source | Notes |
|---|---|---|---|---|---|
| Chrome (Desktop)# | Yes | 53 | high | source | — |
| Chrome (Android)# | Yes | 53 | high | source | 1 |
| Edge (Desktop)# | Yes | 79 | high | source | 2 |
| Firefox (Desktop)# | No | — | high | source | 3 |
| Firefox (Android)# | Yes | 79 | high | source | — |
| Safari (macOS)# | Yes | 17 | high | source | — |
| Safari (iOS)# | Yes | 11.3 | high | source | — |
| Samsung Internet# | Yes | 6.0 | high | source | 4 |
| WebView (Android)# | Yes | 53 | high | source | 5 |
- Derived by browser-compat-data mirroring from Chrome.
- Derived by browser-compat-data mirroring from Chrome.
- No Firefox support is recorded in browser-compat-data.
- Derived by browser-compat-data mirroring from Chrome Android.
- Derived by browser-compat-data mirroring from Chrome Android.
Ecosystem & commercial policy
| Entity | Type | Context | Status | Sponsored | Notes |
|---|---|---|---|---|---|
| Google Play (TWA)# | distribution_channel | Google Play TWA | Yes | No | assetlinks.json origin must match the manifest scope origin, or the TWA degrades to a Custom Tab with browser chrome. |
| Microsoft Store (PWA)# | distribution_channel | Microsoft Store | Yes | No | Scope defines the in-app boundary store reviewers preview at submission. |
Cite this table
Web App Manifest: scope compatibility data — OpenPWA · Verified 2026-10-20 · CC BY 4.0 · JSON
When reusing compatibility data, keep the attribution, identify your changes and check each row’s original source. This citation excludes market-share and reach figures, which use CC BY-SA 4.0.