W3C home > Mailing lists > Public > public-geolocation@w3.org > June 2021

Re: [geolocation-api] Deal with active/inactive documents (#78)

From: Marcos Cáceres via GitHub <sysbot+gh@w3.org>
Date: Wed, 09 Jun 2021 08:05:17 +0000
To: public-geolocation@w3.org
Message-ID: <issue_comment.created-857481514-1623225916-sysbot+gh@w3.org>
Did a little digging... both Chromium and WebKit simply do the following check: 

```
if (!frame())
   return 0;
```

But I couldn't find any other checks for when `.watchPosition()` is actually running. 

It's hard to test if the callbacks are invoked, as even `.watchPosition()` only fires once.... I'll see if I can try on my phone and move around a bit. 

Gecko unfortunately throws. I can probably fix that in Gecko easily enough though. 



-- 
GitHub Notification of comment by marcoscaceres
Please view or discuss this issue at https://github.com/w3c/geolocation-api/issues/78#issuecomment-857481514 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 9 June 2021 08:05:46 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 9 June 2021 08:06:05 UTC