News for hackers. Stuff that matters.
Re:Show HN: We got tired of asking 'What browser are you usi... by anonymoushn on Monday September 10, 2012 @09:12AM (#4499555)
It looks like it detects the resolution of the primary display. I'm not sure if there's a way to pick the "right" display, though.

  Screen Width        1440
  Screen Height       900
  Browser Width       2560
  Browser Height      1368
Re:Show HN: We got tired of asking 'What browser are you usi... by ken on Monday September 10, 2012 @12:16PM (#4500541)
For Firefox on OS X, at least, it seems to be reporting the resolution of the display which the window is mostly on.

I think this corresponds to the display which holds the backing store for the window, but I'm not sure -- if you drag a window between a HiDPI display and a normal display, for example, it's rendered as a HiDPI window if it's mostly on the HiDPI display, and vice versa.

I agree that I don't know if it's possible to do the "right" thing, or even exactly what the "right" thing would be.

Re:Show HN: We got tired of asking 'What browser are you usi... by w0utert on Monday September 10, 2012 @09:16AM (#4499572)
I'm not really sure if it's a glitch in the tool or that the resolution is (deliberately?) misreported by my browser, but on my iPad 3 it reports 1024x768.

A nice extension to this would be to add some kind of database of popular mobile devices, so you can detect the device type from the reported attributes. I think you coud extract some interesting device usage statistics out of it.

Re:Show HN: We got tired of asking 'What browser are you usi... by NLips on Monday September 10, 2012 @10:40AM (#4500017)
That's the size reported by Safari so that pages scale correctly for a "retina" screen.
Re:Show HN: We got tired of asking 'What browser are you usi... by JoeAltmaier on Monday September 10, 2012 @10:46AM (#4500054)
Yeah my 1920X1200 Dell display reports at 1536X960