[w3c/ServiceWorker] Expose `display` mode (e.g. `standalone`) on `client` (#1370)

Per a recent partner conversation, it can be useful at fetch time to understand the display mode of the client making a `fetch`. In keeping with our principle of telling developers what we know which they could already get in an inelegant way, we should perhaps expose this on Clients.

It's very inelegant to get this data from the Service Worker context today; it's only available via DOM through a media query, and propagating it through to a fetch is difficult.

-- 
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/ServiceWorker/issues/1370

Received on Thursday, 15 November 2018 01:17:44 UTC