<?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>23949</bug_id>
          
          <creation_ts>2013-12-02 11:48:11 +0000</creation_ts>
          <short_desc>Setting orientation to secondary view angles</short_desc>
          <delta_ts>2013-12-17 00:12:56 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Browser Test/Tools WG</product>
          <component>WebDriver</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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>
          
          <blocked>24121</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Andreas Tolfsen">ato</reporter>
          <assigned_to name="Browser Testing and Tools WG">public-browser-tools-testing</assigned_to>
          <cc>dburns</cc>
    
    <cc>fisherii</cc>
    
    <cc>jgriffin</cc>
    
    <cc>mdas</cc>
    
    <cc>mike</cc>
    
    <cc>simon.m.stewart</cc>
          
          <qa_contact name="Browser Testing and Tools WG">public-browser-tools-testing</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>96955</commentid>
    <comment_count>0</comment_count>
    <who name="Andreas Tolfsen">ato</who>
    <bug_when>2013-12-02 11:48:11 +0000</bug_when>
    <thetext>WebDriver currently supports setting the screen orientation to either
portrait or landscape mode on devices that support this configuration.
Many devices support further rotation by 90° so that the top of the
device aligns with the bottom border of the viewport.

In Android this is refered to as secondary orientations.  My
suggestion is to use *-primary and *-secondary as optional additions
to specify the type of orientation.  This would recognize:

    PORTRAIT
    LANDSCAPE
    PORTRAIT-PRIMARY
    LANDSCAPE-PRIMARY
    PORTRAIT-SECONDARY
    LANDSCAPE-SECONDARY

The PORTRAIT and LANDSCAPE orientations would default to
PORTRAIT-PRIMARY and LANDSCAPE-PRIMARY.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96970</commentid>
    <comment_count>1</comment_count>
    <who name="Marc Fisher">fisherii</who>
    <bug_when>2013-12-02 19:16:48 +0000</bug_when>
    <thetext>This was discussed at the F2F in Boston, and it was decided to make essentially this change, with reference to the screen orientation spec: https://dvcs.w3.org/hg/screen-orientation/raw-file/tip/Overview.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97035</commentid>
    <comment_count>2</comment_count>
    <who name="Andreas Tolfsen">ato</who>
    <bug_when>2013-12-03 13:23:20 +0000</bug_when>
    <thetext>Having the ability to unlock the device&apos;s orientation could be nice.
WebDriver&apos;s current setScreenOrientation(or) call would presumably
lock the device in the given orientation, without providing a way to
reset/unlock its orientation state.

Keeping a WebDriver API for this is still necessary because of the
device barrier.  But is there any reason we can&apos;t mimick the screen
orientation spec&apos;s API in this case?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>