Re: [w3c/manifest] Distinction between browser and minimal-ui (Issue #1023)

> And the the question is what do you do in the case of a simplistic browser, not meaningfully different from what you'd get from a minimal-ui UA? This isn't necessarily what we expect from a mainstream smartphone, but the concept of a display-mode is meant to be generic, and to apply to any sort of device with a web UA. Not sure the browser on every TV, set-top box, fridge, in-flight-navigation system, etc, is always that full featured.

This is true. But at the same time, UAs are not required to support every display mode (or installable web apps at all). For instance, Firefox only supports installable web applications on mobile (and it doesn't support "minimal-ui"). 

> I'd expect the display-mode media feature to match browser, since that's what it does in the typical case of a standalone browser.

That's correct. 

>  At the same time, if you actually look at its UI, it's pretty-much what you'd expect for standalone (I cannot find any other UI than CMD+L to open a URL). Should the query match both? Should it not match browser for some reason?

It would match "browser". The only time it would match anything else is if the user agent: 

 1. The user agent has explicitly "[applied](https://www.w3.org/TR/appmanifest/#dfn-applied)" the manifest to the web page (i.e., the web manifest is affecting the presentation). 
 2. Supported some definition of "minimal-ui" or "standalone". 

In other words, because of 1, a regular web page would never match anything but "browser". 

> The query is explicitly defined as applying not only based on app manifest mode switching, but also to UAs that match the described mode. So I think we need a bit more.

Ok, if it says "but also to UAs that match the described mode" that's definitely a bug. It must only match when the manifest is [applied](https://www.w3.org/TR/appmanifest/#dfn-applied).  



-- 
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/manifest/issues/1023#issuecomment-987566745

Received on Tuesday, 7 December 2021 04:51:56 UTC