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

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

From: Rakina Zata Amni via GitHub <sysbot+gh@w3.org>
Date: Wed, 14 Jul 2021 04:27:04 +0000
To: public-geolocation@w3.org
Message-ID: <issue_comment.created-879576540-1626236822-sysbot+gh@w3.org>
> Similarly, with an iframe: removing the iframe makes it "hidden", but it simultaneously trashes the iframe's window object, hence you can't call geolocation on it (unless you steal a reference to geolocation before it is GC'ed, but at that point you are dealing with dead objects).

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"?

If that's not possible, I guess the only way to test this is through BFCache. Currently @hiroshige-g is setting up the foundations for BFCache WPTs at https://github.com/web-platform-tests/wpt/pull/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 :) )

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 14 July 2021 04:27:06 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 14 July 2021 04:27:07 UTC