<?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>29560</bug_id>
          
          <creation_ts>2016-04-05 18:04:33 +0000</creation_ts>
          <short_desc>WebDriver: Inconsistent use of top-level vs current browsing context in GET /.../cookie</short_desc>
          <delta_ts>2016-04-07 21:24:48 +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>All</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>
          
          <blocked>20860</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Brian Burg">bburg</reporter>
          <assigned_to name="Browser Testing and Tools WG">public-browser-tools-testing</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>125728</commentid>
    <comment_count>0</comment_count>
    <who name="Brian Burg">bburg</who>
    <bug_when>2016-04-05 18:04:33 +0000</bug_when>
    <thetext>At the first mark, the command is described as getting cookies for the current browsing context. At the second mark, the command is for the &apos;top-level&apos; browsing context. It has been suggested that the second mark is incorrect and should say &apos;current&apos; browsing context.

&quot;&gt;&gt;&gt; The Get Cookie command returns all cookies associated with the address of the current browsing context’s active document.

Provided with an optional name parameter, the returned set will consist of only a single cookie matching an entry’s cookie name in the cookie store, or be empty.

The remote end steps are:

If the current browsing context is no longer open, return error with error code no such window.

Handle any user prompts, and return its value if it is an error.

Let result be an initially empty JSON List.

&gt;&gt;&gt; For each cookie among all associated cookies of the current top-level browsing context’s active document, matching on name:&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125768</commentid>
    <comment_count>1</comment_count>
    <who name="David Burns :automatedtester">dburns</who>
    <bug_when>2016-04-07 21:24:48 +0000</bug_when>
    <thetext>landed in 134d1d8</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>