From 77eef1919903381c6de713e9e58019ffaa3bd589 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20C=C3=A1ceres?= Date: Thu, 15 Jul 2021 15:41:45 +1000 Subject: [PATCH 1/2] Require transient activation to use API --- index.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/index.html b/index.html index 666d562..88381e8 100644 --- a/index.html +++ b/index.html @@ -626,6 +626,16 @@

+
  • If [=this=]'s [=relevant global object=] does not have + [=transient activation=]: +
      +
    1. [=Call back with error=] |errorCallback| and + {{GeolocationPositionError/PERMISSION_DENIED}}. +
    2. +
    3. Terminate this algorithm. +
    4. +
    +
  • [=In parallel=], [=request a position=] passing |successCallback|, |errorCallback|, and |options|.
  • @@ -652,6 +662,16 @@

    +
  • If [=this=]'s [=relevant global object=] does not have + [=transient activation=]: +
      +
    1. [=Call back with error=] |errorCallback| and + {{GeolocationPositionError/PERMISSION_DENIED}}. +
    2. +
    3. Return 0. +
    4. +
    +
  • Let |watchId:unsigned long| be an [=implementation-defined=] {{unsigned long}} that is greater than zero.
  • From 8d0249cd8531dbd553a7a65c6e7facdf6eb217bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20C=C3=A1ceres?= Date: Mon, 19 Jul 2021 15:17:54 +1000 Subject: [PATCH 2/2] Consume transient activation --- index.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.html b/index.html index 88381e8..c6948e9 100644 --- a/index.html +++ b/index.html @@ -636,6 +636,9 @@

    +
  • [=Consume user activation=] of [=this=]'s [=relevant global + object=]. +
  • [=In parallel=], [=request a position=] passing |successCallback|, |errorCallback|, and |options|.
  • @@ -672,6 +675,9 @@

    +
  • [=Consume user activation=] of [=this=]'s [=relevant global + object=]. +
  • Let |watchId:unsigned long| be an [=implementation-defined=] {{unsigned long}} that is greater than zero.