W3C home > Mailing lists > Public > public-device-apis-log@w3.org > July 2021

Re: [geolocation-api] Gracefully handle documents that are not fully active (#90)

From: Marcos Cáceres via GitHub <sysbot+gh@w3.org>
Date: Thu, 15 Jul 2021 05:30:58 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-880407856-1626327056-sysbot+gh@w3.org>
> Is this still true for the window on a nested iframe too? (so you detach the parent iframe but watch on the nested iframe). Also what about testing the "watch position -> detach, update position -> attach again, see no location update is sent"?

I holds true there too. Once the `iframe` is removed, the whole `document` and the `window` object is GC'd. Reattaching it creates a both a new `Window` and a new `Document` (i.e., so position updates are not sent). 

> Currently @hiroshige-g is setting up the foundations for BFCache WPTs at web-platform-tests/wpt#28950. I think he's planning to write a Geolocation WPT eventually, but if you want to try writing one now you're more than welcome to! (also it's great to have a feedback on the WPT foundations from a non-BFCache person :) )

@hiroshige-g I've be happy to help review those, as it would be an opportunity for me to learn about BFCache.

I'm going to go ahead and merge this, as at least it gets all the browsers aligned on behavior and it's a great privacy improvement.   

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 15 July 2021 05:30:59 UTC

This archive was generated by hypermail 2.4.0 : Monday, 4 July 2022 12:47:58 UTC