This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Some apps and games might work fine in a set of orientation and thus try to lock to the accepted set or orientations. That might be [portrait-primary, portrait-secondary], unfortunate that lock will fail for UAs disabling portrait-secondary due to: For each orientation in the orientations list, run the following sub steps: If orientation isn't part of the allowed orientations, the steps must stop here and return false. Which means that the app will have to try to relock to any kind of subset of the decided allowed orientations.
A way to get around it is allowing allowed orientations in the below to differ per UA. Ie one UA might have portrait mean just portrait-primary. "If orientation is portrait or landscape the value must be removed from orientations and every allowed orientations it is representing must be inserted in orientations." If we go down that road we might want to add "any" meaning any allowed portrait and landscape orientation
Fixed by: https://dvcs.w3.org/hg/screen-orientation/rev/fb358986c6c9 https://dvcs.w3.org/hg/screen-orientation/rev/5397f6ae4528