Closed Bug 964367 Opened 10 years ago Closed 10 years ago

Capability platformName offered by Marionette is incorrect

Categories

(Remote Protocol :: Marionette, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla30

People

(Reporter: ato, Assigned: ato)

References

(Blocks 1 open bug, )

Details

Attachments

(1 file)

The capability platformName that's returned on the creation of a new session in Marionette through newSession is incorrectly formatted.

One of the following values is expected on desktop:

    ANDROID
    IOS
    LINUX
    MAC
    UNIX
    WINDOWS
    ANY

The following is returned on Linux:

    Linux

So for desktop this should be a matter of upper-casing the string.

On Firefox OS we should use "MOZ-FIREFOXOS" as suggested by the WebDriver specification, which could eventually deprecate the "b2g" capability.
Assignee: nobody → ato
Status: NEW → ASSIGNED
Tip of inbound is busted, will wait and trigger a new try run once inbound has been fixed.
Comment on attachment 8371590 [details] [diff] [review]
0001-Bug-964367-Fix-incorrect-format-on-platformName-capa.patch

Review of attachment 8371590 [details] [diff] [review]:
-----------------------------------------------------------------

::: testing/marionette/marionette-server.js
@@ +574,5 @@
> +      // Proprietary extensions
> +      "XULappId" : Services.appinfo.ID,
> +      "appBuildId" : Services.appinfo.appBuildID,
> +      "device": qemu == "1" ? "qemu" : (!device ? "desktop" : device),
> +      "version": Services.appinfo.version

I like the categorization, it's much easier to read now, thanks!
Attachment #8371590 - Flags: review?(mdas) → review+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/76cb0c973a15
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
See Also: → 971605
Thanks for the pointer, and I'm glad to see jgriffin uplifted it.  It's really difficult to spot these incompatibilities because they don't trigger any test errors in try…
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: