Rethink file picker fallback

Bug #1672707 reported by Chris Coulson
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Oxide
Triaged
High
Santosh

Bug Description

The initial FilePicker implementation in Oxide tries to open a ContentPeerPicker and then falls back to a standard FileDialog if that fails. The problem with this is that webbrowser-app depends on content-hub, so opening a ContentPeerPicker will always succeed in any application, even in scenarios where it displays no useful peers and the application could open a standard file dialog.

The way I think this could work is:

- If ContentPeerModel indicates there are no peers (or the only peer is the current app) AND application confinement doesn't prevent the application from browsing the home directory, open a FileDialog, else open the ContentPeerPicker.
- When displaying the ContentPeerPicker, if application confinement doesn't prevent the application from browsing the home directory, display a button at the bottom of the window to switch to a FileDialog.

Changed in oxide:
importance: Undecided → High
status: New → Triaged
Changed in oxide:
assignee: nobody → Santosh (santoshbit2007)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.