<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>24703</bug_id>
          
          <creation_ts>2014-02-17 18:48:25 +0000</creation_ts>
          <short_desc>No easy way to lock to a set of accepted orientations if one UA doesnt support one of them</short_desc>
          <delta_ts>2014-03-14 20:23:51 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - Screen Orientation</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kenneth Rohde Christiansen">kenneth.christiansen</reporter>
          <assigned_to name="Mounir Lamouri">mounir</assigned_to>
          <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>100776</commentid>
    <comment_count>0</comment_count>
    <who name="Kenneth Rohde Christiansen">kenneth.christiansen</who>
    <bug_when>2014-02-17 18:48:25 +0000</bug_when>
    <thetext>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&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100777</commentid>
    <comment_count>1</comment_count>
    <who name="Kenneth Rohde Christiansen">kenneth.christiansen</who>
    <bug_when>2014-02-17 18:53:10 +0000</bug_when>
    <thetext>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.

&quot;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.&quot;

If we go down that road we might want to add &quot;any&quot; meaning any allowed portrait and landscape orientation</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102383</commentid>
    <comment_count>2</comment_count>
    <who name="Mounir Lamouri">mounir</who>
    <bug_when>2014-03-14 20:23:51 +0000</bug_when>
    <thetext>Fixed by:
https://dvcs.w3.org/hg/screen-orientation/rev/fb358986c6c9
https://dvcs.w3.org/hg/screen-orientation/rev/5397f6ae4528</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>