Re: [w3c/permissions] Handle non-fully-active documents (#162)

I agree that it doesn't make sense to deliver all of the events that happened while in BFCache because but we either have to spec one of
1. these events are not reliable and you must always write a pageshow handler if you want ensure that your JS state matches the true state
2. we will deliver events based on what happened when you were in BFCache
  a. the event will come after pageshow
  b. the event sill come before pageshow

I think 1. seems very bad for developer ergonomics and you can't really say "this only happens with bfcache" because bfcache happens a lot.

I prefer 2. because for pages without a pageshow handler, it just works and even for many pages with a pageshow handler it just works. The exception is a pageshow handler that cares about permissions state but these are broken right now and also seem like they would be very rare anyway.

BTW, I think a similar comment applies to geolocation updates too.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/permissions/issues/162#issuecomment-888168034

Received on Wednesday, 28 July 2021 09:43:09 UTC