[User Story] Allow off-origin URLs to be opened inside a scoped app window

RESOLVED WONTFIX

Status

defect
P2
normal
RESOLVED WONTFIX
5 years ago
Last year

People

(Reporter: benfrancis, Unassigned)

Tracking

({feature})

Dependency tree / graph

Firefox Tracking Flags

(tracking-b2g:backlog)

Details

(Whiteboard: [ucid:System209, ft:systemsfe])

User Story

As a developer, when a user clicks on an external url from within my app, I want to be able to force that url to open from within my app instead of in a new browser window so that I can implement an ideal UX flow for my app (eg. third party authentication).

Acceptance Criteria:
1. Any url that is defined (based on the decided upon implementation) to open within the app that it lives within opens within that app
2. Any url that is not defined to open within the app that it lives within opens within in a new browser window
If bug 972320 gets implemented then the default behaviour inside app windows will be that links to URLs outside of the origin of the app manifest will open outside the app window (either in the system browser or in another app).

There are use cases like third party authentication where this may not be what the app author wants so we could create a mechanism to allow certain off-origin navigations to stay inside the app window (or in future, the app's group of sheets).
One option is to add a list of URL prefixes to the app manifest to define which off-origin URLs open inside the app window.

Another option is to require the use of a particular type of window.open call like using the "dialog" feature or specifying a particular target for window.open and hyperlinks, where the default behaviour is top open all off-origin URLs outside of the app.
blocking-b2g: --- → backlog
User Story: (updated)
Summary: Mechanism to allow off-origin URLs to be opened inside a scoped app window → [User Story] Allow off-origin URLs to be opened inside a scoped app window
Whiteboard: [systemsfe] → [ucid:System209, ft:systemsfe]
Blocks: 1038833
Priority: -- → P2
blocking-b2g: backlog → ---
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: Last year
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.