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
: WebKit
Web Inspector (Deprecated)
: 528+ (Nightly build)
: All All
: P2 Normal
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2012-03-12 10:34 PST by
Modified: 2014-01-26 11:11 PST (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2012-03-12 10:34:54 PST
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.