Commit 185e616d authored by Emanuele Aina's avatar Emanuele Aina

web-runtime: Describe the expected contents of app-bundles

Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
Differential Revision: https://phabricator.apertis.org/D4829
parent dfdb82de
......@@ -170,7 +170,32 @@ will live under the application's storage area.
More specifically, data such as those of cookies and HTML storage APIs
will live under the Application User type
while the HTTP cache will live under the Cache type;
see the Data Storage section of the [Applications design document].
see the *Data Storage* section of the [Applications design document].
#### Bundle contents
From the point of view of the application manager, a web application is
just an [app-bundle] containing a [graphical program].
See the [Application Bundle Specification] for a normative specification
of what each app-bundle must provide.
This is a non-normative summary:
* a `.desktop` [entry point] that provides
the metadata needed to display
the application in the application menu
* an [executable script]
with the `Exec` field in the `.desktop` file
pointing to this script
* an [AppArmor profile] to
[enforce isolation between application bundles][Security between applications]
* application files (HTML, JS, CSS, images, etc.) as
[generic resource data]
The web runtime shipped with the platform
will provide the [shared launcher][Shared web runtime launcher]
which is used to interpret the executable scripts
and launch the web application with the appropriate runtime.
### User interface
......@@ -427,5 +452,13 @@ Resources=https://addressbook.example.com;https://cdn.example.com;
[HTML Living Standard origin]: https://html.spec.whatwg.org/multipage/browsers.html#origin
[Preferences and persistence document]: preferences-and-persistence.md
[Security design document]: security.md
[Security between applications]: security.md#security-between-applications
[UI customisation document]: ui-customisation.md
[content hand-over]: https://wiki.apertis.org/Content_hand-over
[Application Bundle Specification]: https://appdev.apertis.org/documentation/bundle-spec.html
[app-bundle]: applications.md#bundle
[graphical program]: https://wiki.apertis.org/Glossary#graphical-program
[entry point]: https://appdev.apertis.org/documentation/bundle-spec.html#entry-points
[executable script]: https://appdev.apertis.org/documentation/bundle-spec.html#executables
[AppArmor profile]: https://appdev.apertis.org/documentation/bundle-spec.html#apparmor-profile
[generic resource data]: https://appdev.apertis.org/documentation/bundle-spec.html#generic-resource-data
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment