<?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>24373</bug_id>
          
          <creation_ts>2014-01-23 17:34:44 +0000</creation_ts>
          <short_desc>Missing mention of status code for getWindowHandles when there is no session</short_desc>
          <delta_ts>2014-03-13 23:55:59 +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>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>25022</dup_id>
          
          <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>20860</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Andreas Tolfsen">ato</reporter>
          <assigned_to name="David Burns :automatedtester">dburns</assigned_to>
          <cc>dburns</cc>
    
    <cc>mike</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>98949</commentid>
    <comment_count>0</comment_count>
    <who name="Andreas Tolfsen">ato</who>
    <bug_when>2014-01-23 17:34:44 +0000</bug_when>
    <thetext>So sayeth the spec:

&gt; This array of returned strings MUST contain a handle for every
&gt; window associated with the browser session and no others. For each
&gt; returned window handle the javascript expression &quot;window.top.closed&quot;
&gt; (or equivalent) MUST evaluate to false at the time the command is
&gt; being executed.

Source:

    https://dvcs.w3.org/hg/webdriver/raw-file/tip/webdriver-spec.html#window-handles

If there is no current browser session (e.g. no windows open), we will
presumably want to return a status code to indicate that WebDriver was
unable to successfully complete the command instead of returning an
empty array.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102339</commentid>
    <comment_count>1</comment_count>
    <who name="David Burns :automatedtester">dburns</who>
    <bug_when>2014-03-13 23:55:59 +0000</bug_when>
    <thetext>since this is more about there being no or invalid sessions merging duplicate

*** This bug has been marked as a duplicate of bug 25022 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>