Closed Bug 1003883 Opened 10 years ago Closed 10 years ago

[User Story] [W3C Manifest] Set display mode of bookmark from manifest when bookmarking to homescreen

Categories

(Firefox OS Graveyard :: Gaia::System::Browser Chrome, defect, P2)

defect

Tracking

(tracking-b2g:backlog)

RESOLVED DUPLICATE of bug 1088009
tracking-b2g backlog

People

(Reporter: benfrancis, Unassigned)

References

Details

(Keywords: feature, Whiteboard: [ucid:System214], [ft:systemsfe])

User Story

As a developer I want to specify how my app should be displayed when launched, in a manifest so that I can control the experience of my app.

Acceptance Criteria:
1. Implementation matches W3C spec: http://w3c.github.io/manifest/#display-member
and http://w3c.github.io/manifest/#display-modes
2. The display of the app follows the UX spec.
As per the display property of the W3C Manifest draft specification.

http://w3c.github.io/manifest/#display-member
http://w3c.github.io/manifest/#display-modes

Display modes:
* browser - treat as browser window with Rocketbar expanded on load, with back button and overflow menu.
* minimal-ui - fallback to browser display mode?
* standalone - treat as an app window with Rocketbar collapsed on load, with no back button and overflow menu.
* fullscreen - treat as an app window, in full screen mode.
User Story: (updated)
Blocks: 1003890
blocking-b2g: --- → backlog
User Story: (updated)
Summary: [W3C Manifest] Set display mode of bookmark from manifest when bookmarking to homescreen → [User Story] [W3C Manifest] Set display mode of bookmark from manifest when bookmarking to homescreen
Whiteboard: [ucid:System214], [ft:systemsfe]
Priority: -- → P2
An update on this, my latest thinking when mapping the display modes to Firefox OS is:

fullscreen - app window in full screen mode, limited to app scope
standalone - app window with no app chrome, limited to app scope
minimal-ui - app window with app chrome, limited to app scope
browser - browser window (with browser chrome), not limited to any scope

...where the current difference between app chrome and browser chrome is that browser chrome has an overflow menu and shows a URL when the Rocketbar bar is focused.

This means that for the "browser" display mode we would add a bookmark to the homescreen which would open in a browser window, but for all other display modes we might actually dynamically add an app to the app registry via window.navigator.mozApps.install(). That way the app would actually be opened in an app window and get its own data jar etc.
The browser display mode is handled by bug 1003876, the other display modes need support in the window manager, tracked by bug 1088009.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
blocking-b2g: backlog → ---
You need to log in before you can comment on or make changes to this bug.