From 79890ab1151cf03be65a6398e2cd47d858f752c2 Mon Sep 17 00:00:00 2001 From: Eric Willigers Date: Thu, 16 Jul 2020 15:42:46 +1000 Subject: [PATCH 1/7] Introduce "web-share" feature policy resolves #151 --- index.html | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/index.html b/index.html index fb75f86..8b58c7e 100644 --- a/index.html +++ b/index.html @@ -137,6 +137,11 @@

|data:ShareData|, run the following steps:

    +
  1. If the current settings object's responsible document is not + allowed to use the "[=web-share-feature|web-share=]" + feature, return [=a promise rejected with=] with a + {{"NotAllowedError"}} {{DOMException}}. +
  2. Let |window| be [=relevant global object=] of [=this=].
  3. If |window| does not have [=transient activation=], return [=a @@ -387,6 +392,24 @@

    +
    +

    + Feature Policy integration +

    +

    + This specification defines a policy-controlled feature identified by + the string "web-share". Its default allowlist is + 'self'. +

    +
    +

    + A document’s feature policy determines whether a + {{Navigator/share()}} call immediately rejects with a + {{"NotAllowedError"}} {{DOMException}}. +

    +
    +

    Accessibility considerations From 5772b34f28e0d5f7160bf6f1d13ad26896ec1677 Mon Sep 17 00:00:00 2001 From: Eric Willigers Date: Thu, 16 Jul 2020 22:37:38 +1000 Subject: [PATCH 2/7] feature => permission MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Marcos Cáceres --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 8b58c7e..b5f92bb 100644 --- a/index.html +++ b/index.html @@ -139,7 +139,7 @@

    1. If the current settings object's responsible document is not allowed to use the "[=web-share-feature|web-share=]" - feature, return [=a promise rejected with=] with a + permission, return [=a promise rejected with=] with a {{"NotAllowedError"}} {{DOMException}}.
    2. Let |window| be [=relevant global object=] of [=this=]. From 4ba64dc0ed0627f9a86575fd9cca48123b60a3ef Mon Sep 17 00:00:00 2001 From: Eric Willigers Date: Thu, 16 Jul 2020 22:38:01 +1000 Subject: [PATCH 3/7] Feature => Permission MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Marcos Cáceres --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index b5f92bb..012d1e6 100644 --- a/index.html +++ b/index.html @@ -394,7 +394,7 @@

    - Feature Policy integration + Permission Policy integration

    This specification defines a policy-controlled feature identified by From 03b7ffda274b08d2c2ca083c7f34d02feb16fa9c Mon Sep 17 00:00:00 2001 From: Eric Willigers Date: Thu, 16 Jul 2020 22:38:23 +1000 Subject: [PATCH 4/7] feature => permission MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Marcos Cáceres --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 012d1e6..813fd34 100644 --- a/index.html +++ b/index.html @@ -397,7 +397,7 @@

    Permission Policy integration

    - This specification defines a policy-controlled feature identified by + This specification defines a policy-controlled permission identified by the string "web-share". Its default allowlist is 'self'. From 69082dfb6fcdd3baea3d0837ab823a5f1ec21313 Mon Sep 17 00:00:00 2001 From: Eric Willigers Date: Thu, 16 Jul 2020 22:39:15 +1000 Subject: [PATCH 5/7] dfn web-share MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Marcos Cáceres --- index.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 813fd34..afa79b2 100644 --- a/index.html +++ b/index.html @@ -398,9 +398,8 @@

    This specification defines a policy-controlled permission identified by - the string "web-share". Its default allowlist is - 'self'. + the string "web-share". Its default allowlist is + '`self`'.

    From 8c9baf885ace5422379c755205c91bca5fd67f91 Mon Sep 17 00:00:00 2001 From: Eric Willigers Date: Thu, 16 Jul 2020 22:39:31 +1000 Subject: [PATCH 6/7] feature => permission MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Marcos Cáceres --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index afa79b2..2ecef64 100644 --- a/index.html +++ b/index.html @@ -403,7 +403,7 @@

    - A document’s feature policy determines whether a + A document’s permission policy determines whether a {{Navigator/share()}} call immediately rejects with a {{"NotAllowedError"}} {{DOMException}}.

    From 79e0d6fb3e2209f3ef035a43c2bc0f160dc38433 Mon Sep 17 00:00:00 2001 From: Eric Willigers Date: Thu, 16 Jul 2020 22:42:19 +1000 Subject: [PATCH 7/7] HTML Tidy --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 2ecef64..977a2ea 100644 --- a/index.html +++ b/index.html @@ -398,8 +398,8 @@

    This specification defines a policy-controlled permission identified by - the string "web-share". Its default allowlist is - '`self`'. + the string "web-share". Its default + allowlist is '`self`'.