Closed Bug 1387380 Opened 7 years ago Closed 7 years ago

Remove capabilities negotiation from Marionette

Categories

(Remote Protocol :: Marionette, enhancement, P2)

Version 3
enhancement

Tracking

(firefox57 fixed)

RESOLVED FIXED
mozilla57
Tracking Status
firefox57 --- fixed

People

(Reporter: ato, Assigned: ato)

References

Details

Attachments

(1 file)

Marionette reads the "capabilities" key, containing the old-style
Selenium New Session body with "desiredCapabilities" and
"requiredCapabilities" fields:

    https://searchfox.org/mozilla-central/rev/30a47c4339bd397b937abdb2305f99d3bb537ba6/testing/marionette/driver.js#670-677

In an effort to get rid of desired/required capabilities negotiation
in Marionette, now that geckodriver does the negotiation for us,
we should look at the outermost cmd.parameters JSON Object so that
geckodrive can remove the inner "capabilities" field down the line.

Furthermore, this implies we can get rid of the ‘merging’ of
capabilities objects.
Priority: -- → P2
Assignee: nobody → ato
Status: NEW → ASSIGNED
Comment on attachment 8893936 [details]
Bug 1387380 - Stop capabilities negotiation in Marionette.

https://reviewboard.mozilla.org/r/164998/#review170726

Looks fine to me generally. There is one thing I would like to get reverted through to be closer to the spec naming convention.

::: testing/marionette/session.js:275
(Diff revision 1)
>        ["moz:headless", Cc["@mozilla.org/gfx/info;1"].getService(Ci.nsIGfxInfo).isHeadless],
>      ]);
>    }
>  
>    /**
> -   * @param {string} key
> +   * @param {string} name

In the spec we list the name as 'key' and so I think we should keep it here.
Attachment #8893936 - Flags: review?(hskupin) → review+
Pushed by atolfsen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/34af7208f1c0
Stop capabilities negotiation in Marionette. r=whimboo
https://hg.mozilla.org/mozilla-central/rev/34af7208f1c0
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
Blocks: 1388424
No longer blocks: 1388424
Depends on: 1388424
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: