Public bug reported: 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. ** Affects: oxide Importance: High Status: Triaged ** Changed in: oxide Importance: Undecided => High ** Changed in: oxide Status: New => Triaged -- You received this bug notification because you are a member of Ubuntu WebApps bug tracking, which is subscribed to Oxide. https://bugs.launchpad.net/bugs/1672707 Title: Rethink file picker fallback Status in Oxide: Triaged 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. To manage notifications about this bug go to: https://bugs.launchpad.net/oxide/+bug/1672707/+subscriptions -- Mailing list: https://launchpad.net/~ubuntu-webapps-bugs Post to : ubuntu-webapps-bugs@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-webapps-bugs More help : https://help.launchpad.net/ListHelp