Closed Bug 1003853 Opened 10 years ago Closed 10 years ago

Use the remembered is_desktop_b2g instead of marionette.instance

Categories

(Firefox OS Graveyard :: Gaia::UI Tests, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: zcampbell, Assigned: zcampbell)

Details

Attachments

(1 file)

46 bytes, text/x-github-pull-request
davehunt
: review+
Details | Review
Use the is_desktop_b2g property instead of marionette.instance incase marionette.instance does not exist (eg after a crash)
Attached file github pr
Attachment #8415302 - Flags: review?(dave.hunt)
Attachment #8415302 - Flags: review?(bob.silverberg)
Comment on attachment 8415302 [details] [review]
github pr

I'm going to r- this in its current state. I don't think b2gdesktop should be implicitly linked to maintaining a gecko instance. Couldn't we just handle the case were marionette.instance throws? The bug doesn't really contain enough information for me to provide any other suggestions.
Attachment #8415302 - Flags: review?(dave.hunt) → review-
(In reply to Dave Hunt (:davehunt) from comment #2)
> I don't think b2gdesktop should
> be implicitly linked to maintaining a gecko instance. 

What do you mean by this? I don't understand.
This property comes from marionette's session capabilities so if that's wrong then we should change or clarify it in the is_desktop_b2g property.
Dave sorry I didn't see your PR comments before I wrote these comments!
(In reply to Zac C (:zac) from comment #5)
> Dave sorry I didn't see your PR comments before I wrote these comments!

No problem. Let me know if anything needs clarifying.
OK I'm going to revert this change, but I'll lace "instance" it with a comment instead to explain it
Comment on attachment 8415302 [details] [review]
github pr

Pretty trivial..!
Attachment #8415302 - Flags: review?(dave.hunt)
Attachment #8415302 - Flags: review?(bob.silverberg)
Attachment #8415302 - Flags: review-
Attachment #8415302 - Flags: review?(dave.hunt) → review+
https://github.com/mozilla-b2g/gaia/commit/9f9d4e26658075fe9a27c3102ae4e38fdac71e37
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: