Bug 921685: Read device geometry info from cookie to avoid sync reflows.

See: https://bugzilla.mozilla.org/show_bug.cgi?id=921685