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
F13089508: D15135.diff
Thu, Apr 25, 1:50 AM
Unknown Object (File)
Mon, Apr 1, 8:28 AM
Unknown Object (File)
Mar 15 2024, 4:26 PM
Unknown Object (File)
Mar 15 2024, 3:19 PM
Unknown Object (File)
Mar 15 2024, 1:14 PM
Unknown Object (File)
Mar 13 2024, 7:17 PM
Unknown Object (File)
Mar 11 2024, 7:13 PM
Unknown Object (File)
Mar 11 2024, 6:05 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.