From 538a9813a5abafbdef1ee4dbd1390e7bfb548463 Mon Sep 17 00:00:00 2001
From: Anssi Kostiainen
For example, on user agents that support installation, a web - application could be presented and and launched in a way that, to the + application could be presented and launched in a way that, to the end-user, is indistinguishable from native applications: such as appearing as a labeled icon on the home screen, launcher, or start menu. When launched, the manifest is applied by the user agent - to the browsing context prior to the start URL being loaded. - This gives the user agent time to apply the relevant values of the - manifest, possibly changing the display mode and screen - orientation of the web application. Alternatively, and again as an - example, the user agent could install the web application into a - list of bookmarks within the user agent itself. + to the top-level browsing context prior to the start URL + being loaded. This gives the user agent time to apply the relevant + values of the manifest, possibly changing the display mode and + screen orientation of the web application. Alternatively, and again as + an example, the user agent could install the web application + into a list of bookmarks within the user agent itself.
An end-user can manually @@ -269,7 +269,7 @@
The steps to install the web application are given by the - following algorithm.: + following algorithm:
Window
object of the
@@ -282,8 +282,8 @@ Document
's metadata to create an
+ agent can, at this point, fall back to using the top-level
+ browsing context' Document
's metadata to create an
installation process.
In the case that the end-user manually triggered the - installation process, the user agent MUST run the steps to install - the web application. + installation process, the user agent MUST run the steps to + install the web application.
AppInstallEventHandlersMixin
mix-in
+ AppInstallEventHandlers
mixin
- The AppInstallEventHandlersMixin
defines the event
- handler attributes on which events relating to the installation of a
- web application are fired.
+ The AppInstallEventHandlers
mixin defines the
+ event handler attributes on which events relating to the
+ installation of a web application are fired.
[NoInterfaceObject, exposed=(Window)] - interface AppInstallEventHandlersMixin { + interface AppInstallEventHandlers { attribute EventHandler oninstall; }; - Window implements AppInstallEventHandlersMixin; + Window implements AppInstallEventHandlers;
@@ -394,14 +394,14 @@
function handleInstall(ev){ const date = new Date(ev.timeStamp / 1000); - console.log(`Yay! Our app got installed at ${date.toTimeString()}`) + console.log(`Yay! Our app got installed at ${date.toTimeString()}`); } // Using the event handler IDL attribute window.oninstall = handleInstall; // Using .addEventListener() -window.addEventListener("install", handleInstall) +window.addEventListener("install", handleInstall);
false
.
Enforcing the navigation scope depends on [[!HTML]]'s navigate algorithm. As such, the following algorithm monkey patches [[!HTML]]. @@ -521,8 +521,8 @@
An application context can be instantiated through a deep link (a URL that is within scope of the installed web - application); in which case, the manifest is applied and the deep - link is loaded within the context of a web application. + application); in which case, the manifest is applied and the deep + link is loaded within the context of a web application.
From 9e78eeb9116eba03a53131489c3eb9da718beaef Mon Sep 17 00:00:00 2001
From: Marcos Caceres
Enforcing the navigation scope depends on [[!HTML]]'s navigate
algorithm. As such, the following algorithm monkey patches [[!HTML]].
false
.