w3c / screen-orientation

The screen orientation lock specification
https://w3c.github.io/screen-orientation/
Other
27 stars 29 forks source link

Require a gesture? #210

Open marcoscaceres opened 2 years ago

marcoscaceres commented 2 years ago

I wonder if we should require transient activation to perform a rotation?

Going fullscreen would give us the initial rotation... but it would be better to request the rotation when going full screen in the first place.

Then, one could change rotation based on a click() or some other gesture.

michaelwasserman commented 2 years ago

That's a reasonable line of inquiry, presumably to protect users against abusive sites.

Would you suggest consuming or simply gating on a transient activation signal?

IIUC, sites can currently request an orientation lock change while fullscreen, and invoke another transient activation gated (or consuming) API in response to the same user gesture. How might we determine whether introducing this new requirement would break existing usage and use cases?

marcoscaceres commented 2 years ago

I think we want to consume it...

How might we determine whether introducing this new requirement would break existing usage and use cases?

We might need to have a look (via telemetry)... or one of us takes the compat hit.

michaelwasserman commented 1 year ago

See my comment on #218. Passive telemetry gauging the impact of simply requiring transient user activation (i.e. measure orientation locks that would fail) is far more tractable than that of consuming it (i.e. also measuring other API usage failures after orientation lock consumes). Gating on the activation timestamp alone could help prevent abuse, but consuming may be a better long-term goal. Any thoughts?