Bug 80855 - Web Inspector: Inspector.getCookies protocol should better reflect parsed/raw alternative return type
: Web Inspector: Inspector.getCookies protocol should better reflect parsed/raw...
Status: RESOLVED INVALID
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated)
: 528+ (Nightly build)
: All All
: P2 Normal
Assigned To: Nobody
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-12 10:34 PDT by Peter Rybin
Modified: 2014-01-26 11:11 PST (History)
10 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Rybin 2012-03-12 10:34:54 PDT
getCookies method returns either parsed cookie array or raw string representation. However both "cookies" and "cookiesString" are declared as mandatory return parameters which contradicts variable nature of returns. When the value is not specified, empty string or empty array has to be sent instead.
Protocol specification should be updated, possibly with making returns optional or in some other way.