marionette-apps.close() cannot close an app when it is on background

NEW
Unassigned

Status

Testing
JSMarionette
4 years ago
2 years ago

People

(Reporter: evanxd, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Comment hidden (empty)
(Reporter)

Comment 1

4 years ago
Created attachment 8429870 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/marionette-apps/pull/33

WIP patch.
(Reporter)

Updated

4 years ago
Target Milestone: --- → 2.0 S3 (6june)
Target Milestone: 2.0 S3 (6june) → 2.0 S4 (20june)
(Reporter)

Updated

4 years ago
Target Milestone: 2.0 S4 (20june) → ---
(Reporter)

Comment 2

4 years ago
After Bug 1003788 is landed, the `close` method could not close an app run on background. Because currently the `switchToApp` method will wait for an app is with `transition-state` as `opened`.

I am trying to fix this issue, but I don't have a good idea yet. Do you guys have any idea? And I think it is also a good time to find a good way to deal with the dependencies between marionette-apps module and Gaia.
(Reporter)

Updated

4 years ago
Flags: needinfo?(jlal)
(Reporter)

Updated

4 years ago
Flags: needinfo?(gaye)
(Reporter)

Updated

4 years ago
Flags: needinfo?(kgrandon)
I don't really have any ideas on a good solution until you can find a nice way to decouple gaia from marionette-apps, but that sounds challenging. I suppose there is always doing executeScript in the system app, but that doesn't sound like a good idea either. Maybe James/Gareth have better ideas than myself :)
Flags: needinfo?(kgrandon)
(Reporter)

Updated

2 years ago
Assignee: evan → nobody
(Reporter)

Updated

2 years ago
Flags: needinfo?(jlal)
Flags: needinfo?(gaye)
You need to log in before you can comment on or make changes to this bug.