-
Notifications
You must be signed in to change notification settings - Fork 22.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…5847) * updated name and short_name * start_url wip * start_url updates * update syntax blocks * update keys headings * fix feedback wip * fix start_url value interpretation * update glossary app context * add meaning of applied manifest * Update files/en-us/web/manifest/name/index.md * apply feedback * remove chromium notes * fix feedback * update note * Improve description and browser flexibility link * Update files/en-us/web/manifest/start_url/index.md --------- Co-authored-by: Hamish Willee <[email protected]>
- Loading branch information
1 parent
3730011
commit 5d4cc96
Showing
4 changed files
with
188 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,30 @@ | ||
--- | ||
title: Application Context | ||
title: Application context | ||
slug: Glossary/Application_context | ||
page-type: glossary-definition | ||
--- | ||
|
||
{{GlossarySidebar}} | ||
|
||
An **application context** is a top-level {{glossary("browsing context")}} that has a [manifest](/en-US/docs/Web/Manifest) applied to it. | ||
**Application context** refers to the top-level {{glossary("browsing context")}} of a [web application](/en-US/docs/Web/Progressive_web_apps). | ||
It determines how an app's browsing context, such as a tab or a window, is presented and behaves. | ||
|
||
If an application context is created as a result of the user agent being asked to navigate to a deep link, the user agent must immediately navigate to the deep link with replacement enabled. Otherwise, when the application context is created, the user agent must immediately navigate to the start URL with replacement enabled. | ||
Web developers define the application context in the [web app's manifest file](/en-US/docs/Web/Manifest). | ||
They use the [`scope`](/en-US/docs/Web/Manifest/scope) member in the manifest to specify the set of URLs that are considered part of the application context and to which the manifest applies. | ||
|
||
Please note that the start URL is not necessarily the value of the start_url member: the user or user agent could have changed it when the application was added to home-screen or otherwise bookmarked. | ||
The manifest is applied after the application context is created but before navigation begins to either a start URL or a deep link. | ||
A **start URL** is the initial page of the web app. | ||
A **deep link** is a URL that directs users to a specific page within the web app, bypassing the home page. | ||
The application context ensures that the app's defined behavior and presentation are maintained within its scope. | ||
|
||
When an application context is created, browsers must immediately navigate to a start URL or a deep link. | ||
This navigation replaces the current entry in the browsing history. | ||
If the application context is created to navigate to a deep link, the browser navigates directly to that deep link; otherwise, it navigates to the start URL. | ||
|
||
Note that the start URL is not necessarily the value of the [`start_url`](/en-US/docs/Web/Manifest/start_url) member in the manifest. Browsers may ignore the specified `start_url` or may allow users to change its value when adding the web app to their device's home screen or bookmarking it. | ||
|
||
## See also | ||
|
||
- [Progressive web apps (PWA)](/en-US/docs/Web/Progressive_web_apps) | ||
- [`scope`](/en-US/docs/Web/Manifest/scope) | ||
- [Web app manifests](/en-US/docs/Web/Manifest) | ||
- [Progressive web apps (PWA)](/en-US/docs/Web/Progressive_web_apps) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters