Closed Bug 1198501 Opened 10 years ago Closed 7 years ago

Multi window handling

Categories

(Firefox OS Graveyard :: Runtime, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: irakli, Unassigned)

Details

Currently there are several issues associated with this that is limiting for browser.html: 1. https://github.com/mozilla/browser.html/issues/344 2. https://github.com/mozilla/browser.html/issues/342 3. https://github.com/mozilla/browser.html/issues/349 4. https://github.com/mozilla/browser.html/issues/350 I think current set up has a fundamental flaw, as it's unable to handle multiple windows. I know we are planning to make browser.html uni-window app but that's a separate topic. Fundamental issue is "where does the code that manages windows lives" in fact I think that code should not be bound to any single window as that window can be closed sooner than the other windows. As of uni-window apps that window manager script would just need to delegate to the only open window all events to let it handle them. I think it would make most sense if window manager code could open / close windows and treat them more or less like remote iframes.
I'm not familiar with the browser.html setup. What does "multi window" mean? Do you mean multiple top level chrome windows?
> Do you mean multiple top level chrome windows? Yes. B2G is designed to only have one "native" window open.
(In reply to Paul Rouget [:paul] from comment #3) > > Do you mean multiple top level chrome windows? > > Yes. B2G is designed to only have one "native" window open. But in B2G the top level "window" is a mozbrowser iframe in shell.html which loads the system app. The multi-screen project (bug 1116089) uses multiple such top level window for each screen. So I think it's not impossible.
> The multi-screen project Haha! Very cool. I see it uses a new chrome window (shell-remote). I'll keep an eye on this and see how this could fit the needs of browser.html.
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.