This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 29560 - WebDriver: Inconsistent use of top-level vs current browsing context in GET /.../cookie
Summary: WebDriver: Inconsistent use of top-level vs current browsing context in GET /...
Status: RESOLVED FIXED
Alias: None
Product: Browser Test/Tools WG
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Browser Testing and Tools WG
QA Contact: Browser Testing and Tools WG
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 20860
  Show dependency treegraph
 
Reported: 2016-04-05 18:04 UTC by Brian Burg
Modified: 2016-04-07 21:24 UTC (History)
2 users (show)

See Also:


Attachments

Description Brian Burg 2016-04-05 18:04:33 UTC
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 'top-level' browsing context. It has been suggested that the second mark is incorrect and should say 'current' browsing context.

">>> 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.

>>> For each cookie among all associated cookies of the current top-level browsing context’s active document, matching on name:"
Comment 1 David Burns :automatedtester 2016-04-07 21:24:48 UTC
landed in 134d1d8