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)
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 | ||
Updated•10 years ago
|
Assignee: nobody → gduan
Assignee | ||
Comment 1•10 years ago
|
||
waiting for test result.
Assignee | ||
Comment 2•10 years ago
|
||
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)
Comment 3•10 years ago
|
||
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)
Updated•10 years ago
|
Flags: needinfo?(evanxd)
Comment 4•10 years ago
|
||
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)
Assignee | ||
Comment 5•10 years ago
|
||
Attachment #8470592 -
Attachment is obsolete: true
Assignee | ||
Comment 6•10 years ago
|
||
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 7•10 years ago
|
||
Comment on attachment 8498589 [details]
PR to master
r+ with nits, thanks!
Attachment #8498589 -
Flags: review?(alive) → review+
Assignee | ||
Comment 8•10 years ago
|
||
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.
Description
•