Closed Bug 1049439 Opened 10 years ago Closed 10 years ago

change appWindowManager from singleton to class

Categories

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

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gduan, Assigned: gduan)

References

Details

Attachments

(1 file, 1 obsolete file)

change appWindowManager from singleton to class.
Assignee: nobody → gduan
Attached file PR to master (obsolete) (deleted) —
waiting for test result.
Comment on attachment 8470592 [details] PR to master Hi Alive, I'm trying to make appWindowManager as class format. I think that would make sense if moving getActiveApp method to System.js, I'm also wondering that, should we also move getApp and getAppByURL to system, so that other module won't depend on appWindowManager.js ? could I have your opinion? Thanks.
Flags: needinfo?(alive)
I don't really object, but you need to change gaia_apps.js and marionette-apps as well. They are using AppWindowManager.getActiveApp() too. Evan please kindly help the marionette-apps part. Please note everything will be changed again later to |System.request('getActiveApp')|
Flags: needinfo?(alive)
Flags: needinfo?(evanxd)
Hi Alive, As I know, AppWindowManager.getActiveApp() is only used in Python Marionette[1], not in marionette-apps. JSMarionette uses navigator.mozApps[2] to get app list. So we only need to update Python Marionette. [1] https://github.com/mozilla-b2g/gaia/blob/master/tests/atoms/gaia_apps.js#L344 [2] https://github.com/mozilla-b2g/marionette-apps/blob/master/lib/scripts/getallapps.js#L25
Flags: needinfo?(evanxd)
Attached file PR to master (deleted) —
Attachment #8470592 - Attachment is obsolete: true
Comment on attachment 8498589 [details] PR to master Hi Alive, could you review this patch? Gip fail due to bug 1079130.
Attachment #8498589 - Flags: review?(alive)
Comment on attachment 8498589 [details] PR to master r+ with nits, thanks!
Attachment #8498589 - Flags: review?(alive) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Depends on: 1082741
Depends on: 1083054
No longer depends on: 1083054
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: