From 3224844b52810fa73bcd50772560d83f20ab8920 Mon Sep 17 00:00:00 2001 From: Jay Harris Date: Wed, 19 Jun 2019 16:23:23 +1000 Subject: [PATCH 1/3] Begins cleaning up the spec for release --- index.html | 31 ++++++++++--------------------- 1 file changed, 10 insertions(+), 21 deletions(-) diff --git a/index.html b/index.html index 93707a0..00a85f3 100644 --- a/index.html +++ b/index.html @@ -23,6 +23,10 @@ name: "Matt Giuca", company: "Google Inc.", companyURL: "https://google.com" + }, { + name: "Jay Harris", + company: "Google Inc.", + companyURL: "https://google.com" }], otherLinks: [{ key: "Implementation status", @@ -46,12 +50,6 @@ notification.

-
-

- This specification is currently a work in progress. Implementors should - not expose the API surface to the open web. -

-

Usage examples @@ -117,12 +115,10 @@

Badge display

- When the application is installed and the application's flag - is set, the user agent SHOULD display the application's badge - alongside the symbolic representation of the application in the user's - operating system (for example, as a small overlay on top of the - application's icon). + When the application's flag is set, the user agent SHOULD display + the application's badge alongside the symbolic representation of the + application in the user's operating system (for example, as a small + overlay on top of the application's icon).

The special value flag indicates that the badge is set, but @@ -142,7 +138,7 @@

Badge interface

-        [Exposed=(Window, Worker)]
+        [Exposed=(Window)]
         interface Badge {
           static void set(optional [EnforceRange] unsigned long long contents);
           static void clear();
@@ -152,13 +148,6 @@ 

The Badge interface provides methods for setting and clearing the application badge indicator.

-
- This section is not clear about which web application is associated - with a particular context. In particular, when called from a - service worker whose scope is - outside of the app manifest scope, the - web application may be ambiguous. -

set() method @@ -202,7 +191,7 @@

TypeError - is defined by [[!ECMASCRIPT]]. + is defined by [[ECMASCRIPT]].

From bc22c5eb017030cc29c4823afd9400750496923e Mon Sep 17 00:00:00 2001 From: Jay Harris Date: Thu, 20 Jun 2019 14:35:21 +1000 Subject: [PATCH 2/3] Cleans up references --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 992a483..2942bf7 100644 --- a/index.html +++ b/index.html @@ -42,12 +42,12 @@

This specification defines an API allowing web applications to set an application-wide badge, + "appmanifest#installable-web-applications">web applications to set an application-wide badge, shown in an operating-system-specific place associated with the application (such as the shelf or home screen), for the purpose of notifying the user when the state of the application has changed (e.g., when new messages have arrived), without showing a more heavyweight - notification. + notification.

@@ -87,7 +87,7 @@

There is a single global badge associated with each web application. At any time, the application's badge + "appmanifest#installable-web-applications">web application. At any time, the application's badge is set to one of the following values:

    From 226b14a825158bc0f17a1e655ba99ed9ed0887c7 Mon Sep 17 00:00:00 2001 From: Jay Harris Date: Thu, 20 Jun 2019 14:37:27 +1000 Subject: [PATCH 3/3] Adds SotD --- index.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.html b/index.html index 2942bf7..51218ea 100644 --- a/index.html +++ b/index.html @@ -50,6 +50,11 @@ notification.

+
+

+ This is an early draft of the Badging API spec. +

+

Usage examples