Closed Bug 1076613 Opened 11 years ago Closed 11 years ago

Separate the homescreen related thing from appwindowmanager as homescreenwindowmanager

Categories

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

x86
macOS
defect
Not set
normal

Tracking

(b2g-v2.1 fixed, b2g-v2.2 fixed)

RESOLVED FIXED
2.1 S7 (24Oct)
Tracking Status
b2g-v2.1 --- fixed
b2g-v2.2 --- fixed

People

(Reporter: johnhu, Assigned: johnhu)

References

Details

(Whiteboard: [ft:conndevices])

Attachments

(2 files, 1 obsolete file)

To finish Bug #1074040, we have to support multiple homescreen app in current appwindowmanager. We should separate the homescreenwindowmanager from appwindowmanager and let it be aware of which homescreen app should be launched. So, the multiple homescreen app will be encapsulated in homescreenwindowmanager. In bug 1074040, we will create another homescreen launcher and homescreenwindowmanager for TV and use build script to swap it at build time. This TV homescreenwindowmanager dynamic loads the second homescreen launcher and determine which homescreen app should be shown based on the event type and current active homescreen.
Sorry, I shift the feedback flag from bug 1074040 here. The PR is totally the same.
Attachment #8498616 - Flags: feedback?(alive)
Comment on attachment 8498616 [details] [review] HomescreenWindowManager for phone (shifted from bug 1074040) LGTM!
Attachment #8498616 - Flags: feedback?(alive) → feedback+
The patch is ready but not sure about TBPL result. Wait for result before setting review.
Attachment #8498616 - Attachment is obsolete: true
Comment on attachment 8498784 [details] [review] HomescreenWindowManager for phone, test included. Hi Alive, Please review this patch. The changes in system/js/ are almost the same, except the one we found at gij, the logic of getActiveApp(). The TPBL gives almost green but one intermittent error. I feel that may be fine. Please review this patch and give me some feedback. Thanks.
Attachment #8498784 - Flags: review?(alive)
Comment on attachment 8498784 [details] [review] HomescreenWindowManager for phone, test included. I think this is fine it no test is broken; much thanks to take your time on refactoring requested by me, great done!
Attachment #8498784 - Flags: review?(alive) → review+
merged to master: https://github.com/mozilla-b2g/gaia/commit/bec2d31f589fbf0adaf43811214acf86207344ba Thank you alive. This is a good start. We may follow similar path in the future if we need to extend system app.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Blocks: 1078193
Comment on attachment 8498784 [details] [review] HomescreenWindowManager for phone, test included. Needs a branch patch but its a very minor conflict [Approval Request Comment] [Bug caused by] (feature/regressing bug #): Originally broken implementation [User impact] if declined: Extremely slow transition to homescreen from landscape orientated app, this is a blocker in https://bugzilla.mozilla.org/show_bug.cgi?id=1072531 [Testing completed]: Patch looks to have a good amount of unit testing, and has settled on master [Risk to taking this patch] (and alternatives if risky): [String changes made]:
Attachment #8498784 - Flags: approval-gaia-v2.1?
Attachment #8498784 - Flags: approval-gaia-v2.1? → approval-gaia-v2.1+
Pushed to try John, before I uplift is there anything else I should worry about / changes that this may effect?
Flags: needinfo?(im)
Also needinfoing myself to remind myself to land
Flags: needinfo?(dale)
Please also uplift Bug 1078193. Bug 1078193 changes the sequence of event listener and this makes the interception of homescreen app launch[1] work. Although we don't have a way to launch verticalhome currently, Bug 1078193 may help us when we have a homescreen which is able to launch or with system message. [1] https://github.com/mozilla-b2g/gaia/blob/master/apps/system/js/homescreen_window_manager.js#L77-L84
Flags: needinfo?(im)
Change milestone for tracking the issues related to connected device.
Target Milestone: --- → 2.1 S7 (24Oct)
Blocks: CardUI
(In reply to John Hu [:johnhu][:johu][:醬糊小弟] from comment #11) > Please also uplift Bug 1078193. You'll need to request approval in that bug if you want it uplifted.
Depends on: 1088675
Flags: needinfo?(dale)
Didnt mean to take this off needinfo, have the branch patch but not landing until 2.1 is green
Flags: needinfo?(dale)
Whiteboard: [ft:conndevices]
Attached file Branch patch for 2.1
Flags: needinfo?(dale)
Finally for a try run that was intermittent but had all suites green https://treeherder.mozilla.org/ui/#/jobs?repo=gaia-try&revision=e122a00ac717 John if you are wanting the other patch uplifted as well you should ask for approval seperately as it looks like that only effects the ordering in which you can replace the homescreen right?
Flags: needinfo?(im)
Keywords: checkin-needed
Thanks Dale, I will do that. And yes, it wants to prevent user to launch another homescreen app instance.
Flags: needinfo?(im)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: