Page MenuHomePhabricator

Improve reliability of detecting small devices when loading Differential changesets
ClosedPublic

Authored by epriestley on Jan 29 2016, 1:00 PM.
Tags
None
Referenced Files
F14003036: D15135.diff
Sat, Oct 26, 1:21 AM
Unknown Object (File)
Thu, Oct 3, 12:15 PM
Unknown Object (File)
Sep 23 2024, 1:34 AM
Unknown Object (File)
Sep 17 2024, 6:22 PM
Unknown Object (File)
Sep 10 2024, 6:35 AM
Unknown Object (File)
Sep 10 2024, 6:35 AM
Unknown Object (File)
Sep 10 2024, 6:35 AM
Unknown Object (File)
Sep 9 2024, 7:12 PM
Subscribers
None

Details

Summary

Ref T10229. Fixes T9969. We make a decision about 1up vs 2up pretty early, and sometimes the viewport size reads as larger than the device, so we incorrectly select 2up when the proper setting would be 1up.

Test Plan

I can reproduce this by, e.g., reloading a lot on an iPhone 4s in iOS Simulator running iOS 9.2. Sometimes it picks 2-up. I added logging to show that the viewport dimension read was the issue.

After this change, it always selects 1-up (window.screen.availWidth is defined and sensible on the device).

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Improve reliability of detecting small devices when loading Differential changesets.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Jan 29 2016, 2:49 PM
This revision was automatically updated to reflect the committed changes.