Handle OS-level permission change (#109) · w3c/geolocation@0c378d9 (original) (raw)

`@@ -745,13 +745,39 @@

`

745

745

`

`

746

746

`

`

747

747

`

`

748

``

`-

  • If acquiring a position fails:

    `

    749

    ``

    `-

      `

      750

      ``

      `-

    1. [=Call back with error=] passing |errorCallback|

      `

      751

      ``

      `-

      and

      `

      752

      ``

      `-

      {{GeolocationPositionError/POSITION_UNAVAILABLE}}.

      `

      753

      ``

      `-

    2. `

      754

      ``

      `-

    `

    ``

    748

    `+

  • If acquiring a position fails because of one of the

    `

    ``

    749

    `+

    following reasons:

    `

    ``

    750

    `+

    `

    ``

    751

    `+

    `

    ``

    752

    `+

    Underlying system denies permission:

    `

    ``

    753

    `+

    `

    ``

    754

    `+

    `

    ``

    755

    `+

    `

    ``

    756

    `+

    [=Call back with error=] passing |errorCallback|

    `

    ``

    757

    `+

    and

    `

    ``

    758

    `+

    {{GeolocationPositionError/PERMISSION_DENIED}}.

    `

    ``

    759

    `+

    `

    ``

    760

    `+

    `

    ``

    771

    `+

    `

    ``

    772

    `+

    `

    ``

    773

    `+

    Data acquisition error:

    `

    ``

    774

    `+

    `

    ``

    775

    `+

    `

    ``

    776

    `+

    [=Call back with error=] passing |errorCallback|

    `

    ``

    777

    `+

    and

    `

    ``

    778

    `+

    {{GeolocationPositionError/POSITION_UNAVAILABLE}}.

    `

    ``

    779

    `+

    `

    ``

    780

    `+

    `

    755

    781

    `

  • `

    756

    782

    `

    `

    757

    783

    `

    `