Re: question about screen_size in Runtime and Security Model

On Monday, 25 February 2013 at 16:08, Mounir Lamouri wrote:

> On 20/02/13 21:31, Lars Knudsen wrote:
> > I think it's good that you are working on a spec to encapsulate what is
> > needed to make it somewhat easy to do generic app descriptors for web
> > apps - as opposed to fiddling with all kinds of Apple (or other)
> > specific tags and tricks to make webapps behave the same across
> > platforms. However, I am not too fond of the spec proposal I found on
> > github, where the screen_size options seem limited to minimum width/height.
> 
> 
> I'm personally not a big fan of this but this is a feedback from our
> Apps team that said application developers wanted it. I think the point
> is that application made for Desktop or Tablets might not work well on
> Mobile and sometimes developers don't want to spend the required time to
> make it work via media queries. I am not sure that any hack can prevent
> that given that at best you will have a very small content or a
> scrollable area. Unless the real issue is dpi or screen size?

This makes problematic assumptions about dimensions and pixel ratios, etc. and could end up conflicting with other parts of the platform (e.g., meta viewport and @viewport). And worst, we could end up specifying a useless feature that does nothing in practice.

In addition, this starts getting into dangerous territory of using these values to target particular device sizes. Unless we intend to have floating applications, I would strongly urge the WG to drop this. 

If, for business reasons, developers want to sell a tablet version and a phone version of their app, then they should do that through different origins:

hd.myapp.com
phone.myapp.com

--
Marcos Caceres
http://datadriven.com.au

Received on Monday, 4 March 2013 10:44:43 UTC