On Thu, Jan 4, 2018 at 1:09 PM, Blair MacIntyre <bmacint...@mozilla.com> wrote: > We could chat about it, sure; how do you envision it working without > breaking old websites?
With the understanding that this is purely spitballing... We would stop providing events (or provide them with extremely low frequency [1]), but if the currently focused context has an event handler registered for orientation events, we would enable events once the orientation changes by a large amount or quickly. The thresholds might need some tuning, but a shake or large movement should work. That means that sites that expect and only receive subtle movement would stop receiving events. Sites that don't receive input focus would stop receiving events (that prevents an embedded iframe from getting events). But sites that legitimately use the API will only appear to be a little "sticky" initially. We might also persist this "implicit" permission to remove that stickiness for sites that are used often (or reduce the activation thresholds over repeat visits). We should also look at getting a hook into the permission API so that the current state can be queried. But that API doesn't really understand this sort of model, so that might be tricky to work out. _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform