Open
Description
At minimum, the New Session command mandates the presence of a capabilities
field with an empty object for creating a new session:
{"capabilities": {}}
This is due to how the processing capabilities algorithm is phrased:
- Let capabilities request be the result of getting the property "
capabilities
" from parameters.
- If capabilities request is not a JSON object, return error with error code invalid argument.
The logical consequence of this is that using an empty top-level JSON Object, like this, is illegal:
{}
It was @whimboo who discovered this, and first reported it in https://bugzilla.mozilla.org/show_bug.cgi?id=1470976.