Closed Bug 951837 Opened 11 years ago Closed 10 years ago

AppWindowManager.getDisplayedApp reporting incorrectly for Gallery app when launched from Activities

Categories

(Firefox OS Graveyard :: Gaia::System::Window Mgmt, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: bsilverberg, Assigned: alive)

References

Details

(Whiteboard: [gaia-ui-test])

Attachments

(1 file)

When editing a contact and adding a picture, when you click the "add picture" button it brings up the Activities list which includes "Gallery" and "Camera". If you click the "Gallery" option, which brings up the Gallery app to choose a picture, the displayed app is reported as "Contacts", whereas it should be reported as "Gallery". Because of this we are unable to switch to the frame of the displayed app in our test as it is incorrect.
I'm afraid this is expected. AppWindowManager should only care about 'app' but not 'activity'.
If you'd like to know who is the top of the activity:
Use AppWindowManager.getActiveApp().activityCallee
There would be a link list and find out the active one by Activity.isActive();

However I do not suggest to couple with System app API so deeply.

I will think this again to see if we have better solution for test framework.
Assignee: nobody → alive
Yes I wouldn't want to dig into the API that deeply either.

In this case for the test we just want the topmost frame that is visible to the user.

Alive, will the topmost frame have the `active` class on it? We could target that instead of using the AppManager.
This is activity as mentioned in https://bugzilla.mozilla.org/show_bug.cgi?id=951837 so I think it is correct behaviour.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: