bug_13025 in my tor-browser repo has the fix. I've tested it with
xrandr --output <your-output> --rotate left
In the webconsole 'landscape-primary' showed up then and on the scratchpad in a chrome context 'potrait-primary'.
The remaining parts of the API, like screen.orientation and orientationchange events are not exposed in desktop environments and thus no problem for us AFAICT.
I still need to think about a good way for testing this within our testing framework. This might therefore make it into a separate ticket...
Trac: Status: accepted to needs_review Keywords: N/Adeleted, MikePerry201410R, tbb-testcase added
I should have mentioned this a while ago; sorry. Or maybe I'm wrong.
In my opinion, we shouldn't always answer the same thing. Instead the answer should be determined from the "screen size" (which is faked from the window size). If a site asks for screen size and is given portrait dimensions, wouldn't it make sense to also return portrait for orientation?
I should have mentioned this a while ago; sorry. Or maybe I'm wrong.
In my opinion, we shouldn't always answer the same thing. Instead the answer should be determined from the "screen size" (which is faked from the window size). If a site asks for screen size and is given portrait dimensions
What is triggering the potrait dimensions here? The actual (i.e. vertical) screen? If so, this is #11439 (moved) I'd say and we need to decide how to fix that one. If we say "vertical screens should get dimensions similarly to horizontal screens to blend more into this group" then "landscape-primary" is the best choice. If we want to make own buckets for people with vertical screen layout then I'd agree with you.
I think the number of users with the vertical monitor setting may not be big enough to create a meaningful anonymity set.
My primitive calculations with the Panopticlick data showed that enforcing a cutoff for the screen height (as TBB currently does for the width > 1000px) reduces the overall entropy of TBB-resized screens from 2.63 to 1.28 bits, and # of buckets from 43 to 13.
Per pde's suggestion, I'll rerun these simulations after removing the possible TBB users from the raw data (to prevent double-resizing). Also, I plan to add some % of users with maximized screen size to the distribution. A related idea came up during the meeting with Mike was to resize the TBB window in a way to cover the users with maximized TBB windows.
Here's the list of 10 most common screen dimensions after being resized by the current algorithm.
Basically this the result of the following: take the screen dimension distribution from Panopticlick database, resize them as TBB would do, measure the entropy, number of buckets etc.
WxHxColor_depth, Frequency (Verticals, i.e. Height > Width)
('1000x1400x24', 7350), V
('1000x1300x24', 6246), V
('1000x1100x24', 2216), V
('1000x1700x24', 1126), V
('1000x1500x24', 874), V
('1000x1200x24', 171), V
('1000x1900x24', 60), V
('1000x1600x24', 48), V
('600x1100x24', 22), V
('1000x1800x24', 21), V
('1000x2400x24', 15), V
('1000x2200x24', 14), V
('1000x2100x24', 6), V
('1000x5100x24', 4), V
('1000x9800x24', 3), V
('1000x3200x24', 3)] V
(Ooops! I didn't realize mcs had last used trac on this computer; I posted comment 15)
gk: I'm just arguing for consistency between this orientation property and the rest of the Screen object. It is reasonable for 1000w X 1400h to be recognized as a portrait screen. I can imagine that two web sites might have different approaches for layout -- one site depends on screen orientation and the other looks at the screen dimensions. In this case, it would be make sense to be consistent.
For bug #11439 (moved), I think we should look into capping window height similar to what gacar says that we do for window width.
Well, we merged gk's fix to lie about the orientation, but clearly there still are deeper issues here. I filed #13650 (moved) for the vertical height vs orientation problem.
Trac: Resolution: N/Ato fixed Status: needs_review to closed