andreasgal/gaia — pull request #1381 by davidflanagan (2012-05-10 20:48:33+00:00)
Title: honor manifest.orientation property with screen.mozLockOrientation

This pull request changes many app manifests to lock them into portrait-primary orientation.
It locks cut the rope to landscape, but allows it to be primary or secondary.
It leaves browser, camera, gallery and video unlocked.

The changes are to system/js/window/window_manager.js

The first first 6 commits are three mistakes and three reverts so this isn't as big a patch as it appears.

Note that the calls to mozLockOrientation currently require a hack to dom/base/nsScreen.cpp in order to work, but Mounir is working on a more general patch.