Closed Bug 1043723 Opened 10 years ago Closed 10 years ago

Make Marionette work with Mulet when it's running Gaia

Categories

(Remote Protocol :: Marionette, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla34

People

(Reporter: jgriffin, Assigned: jgriffin)

References

Details

Attachments

(1 file, 1 obsolete file)

Marionette works with Mulet at present when Mulet is just acting like Firefox, but it fails when Mulet is running Gaia.  This is because its appname is "Firefox", but it lacks the new-tab behavior expected by:

http://mxr.mozilla.org/mozilla-central/source/testing/marionette/marionette-server.js#2604

In the case of Mulet+Gaia, we don't want a new tab, we just want to use the existing singular chrome window.

There's nothing in Services.appinfo that can be used to distinguish Mulet from Firefox AFAICT, but we can probably gate this on the chrome url that's loaded.
We can just rely on window.gBrowser not existing, it turns out.
Attachment #8462254 - Flags: review?(mdas)
Attachment #8462254 - Flags: review?(mdas) → review?(dburns)
Comment on attachment 8462254 [details] [diff] [review]
Make Marionette work with Mulet+Gaia,

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

The r= in the commit message needs updating
Attachment #8462254 - Flags: review?(dburns) → review+
Hmm this caused a perma-fail in test_click_chrome, back to the drawing board.
This try run is looking good.  The last patch failed unit tests that opened new windows with custom XUL files, since those wouldn't have win.gBrowser defined.  This mechanism should be a bit more robust.
Attachment #8462832 - Flags: review?(dburns)
Attachment #8462254 - Attachment is obsolete: true
Attachment #8462832 - Flags: review?(dburns) → review+
https://hg.mozilla.org/mozilla-central/rev/e1601237530e
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
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: