Closed Bug 796629 Opened 14 years ago Closed 13 years ago

[System: Window Manager] Get rid of "origin" and use manifestURL instead

Categories

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

defect
Not set
normal

Tracking

(blocking-basecamp:-)

RESOLVED DUPLICATE of bug 913323
blocking-basecamp -

People

(Reporter: ghtobz, Unassigned)

Details

(Whiteboard: [label:task][label:system/window_management][label:mentored])

Attachments

(1 file)

[GitHub issue by timdream on 2012-09-12T06:58:57Z, https://github.com/mozilla-b2g/gaia/issues/4613] This is a clean up task, but I am sure if we should do it at feature complete phase or bug fixing phase since the change is expected to be impact-ful. At line 720 `window_manager.js` is still calling removed `Applications.getByOrigin(origin)`, and it's `runningApps` object is still list apps with `origin` -- app with multiple entry points comes with fake "origin" in line 762. Good news is if the total line of code will be reduced once the clean up is done, we could even remove `runningApps` object IMO. Less line of code means less bugs to fix. @vingtetun @etiennesegonzac @fabricedesre @davidflanagan ^
[GitHub comment by fabricedesre on 2012-09-12T16:26:43Z] I absolutely agree we should do that.
[GitHub comment by autonome on 2012-09-18T07:02:16Z] Why does this block? Sounds like code hygiene... Which is great, but doesn't block.
[GitHub comment by etiennesegonzac on 2012-09-18T09:42:02Z] Well apparently line 720 of the window manager is a JS error waiting to happen. If we never go through this path we should remove it or update it, but we should definitely not keep it in the shipping product.
What's the user impact here? Have we seen any fallout yet?
(In reply to Alex Keybl [:akeybl] from comment #4) > What's the user impact here? Have we seen any fallout yet? Not that I know of, which makes me think that we could probably remove the damaged code.
(In reply to Etienne Segonzac (:etienne) from comment #5) > (In reply to Alex Keybl [:akeybl] from comment #4) > > What's the user impact here? Have we seen any fallout yet? > > Not that I know of, which makes me think that we could probably remove the > damaged code. That has been quietly removed in bug 799039. We will still need to fix this one though.
Assignee: 21 → ferjmoreno
Vivien, I am currently working on bug 803141 which will get rid of screenshots for transitioning loaded app frames, so if you want to fix this bug please coordinate with me. I also have no idea why this bug ended up blocking+; window management is not optimal right now; we should probably give each frame a container and put their own overlays (prompt, popups, permission dialog, etc.) into the container. This is definitely not v1. What's your plan?
No user impact, minusing blocking.
blocking-basecamp: + → -
Attached file WM analysis —
Despite this has finally been marked as non blocking basecamp, correct me if I am wrong, we still want this bug to be fixed. So I'd like to push this forward and try to make the change from 'origin' to 'manifestURL', as it seems that we are doing several hacks because of this issue. I am aware that this change might cause several regressions in Gaia and that we've got to be very careful and absolutely sure that there are no regressions before merging any change in Gaia master, so first of all, I'd like to write some unit tests for the Window Manager to cover as much code as possible. I'll file a bug for it. As I mentioned to some of you on IRC, I've done a quick analysis of the status of the Window Manager and write down a few notes about it that I am attaching along with this comment. Basically, apart from obviously changing the dependency of app origin to manifestURL, the main change for the WindowManager would be morphing the 'runningApps' object to something like: runningApps[manifestURL] = { entryPoint_1: { frame: null, launchTime: 0 launchPath: "..." }, entryPoint_N: { frame: null, launchTime: 0 launchPath: "..." }, frame: null, launchTime: 0, launchPath: "..." }, As you can see on the attached file, I've done a quick check for all the WindowManager dependencies, and so far I didn't find any case that avoids us to make the change. I've identified a platform change that would be great to have in order to implement the morph from origin to manifestURL, which is that the 'webapps-launch' event includes, apart from the manifestURL and the url, the entry point information. Anyway, not having that would not block here, as we could get the entry point from the url. Fabrice, do you think that we can introduce this change? I would really appreciate your feedback here.
Flags: needinfo?(21)
After talking with Francisco, it makes sense to separate the entry points: runningApps[manifestURL] = { entryPoints: { entryPoint_1: { frame: null, launchTime: 0, launchPath: "..." }, entryPoint_n: { frame: null, launchTime: 0, launchPath: "..." } } frame: null, launchTime: 0, launchPath: "..." }
No longer blocks: 804485
After talking with Vivien, we agreed to postpone this until v2 (whenever that is)
Assignee: ferjmoreno → nobody
Flags: needinfo?(21)
Component: Gaia → Gaia::System
Dupe as new window management system.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: