[Touch-packages] [Bug 1503332] Re: Blank page when access to local URL (file://…) is denied
I had a quick look at how we can detect that access was denied, and it seems that the only difference with a normal load sequence (load started, load committed, load succeeded) is that the HTTP status code is always 0 for all events in the sequence. A "load succeeded" event with an HTTP status code of 0 might be enough to indicate that access was denied, need to double check. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to webbrowser-app in Ubuntu. https://bugs.launchpad.net/bugs/1503332 Title: Blank page when access to local URL (file://…) is denied Status in Ubuntu UX: New Status in webbrowser-app package in Ubuntu: New Bug description: Since version 0.23+15.10.20151005-0ubuntu1, webbrowser-app is running under apparmor confinement. This means that access to the local filesystem is denied (file://… URLs). There is no user feedback when that happens other than a blank page, which is not really great UX. A user-friendly error message to inform that browsing the local filesystem is restricted would be better. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-ux/+bug/1503332/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1503332] Re: Blank page when access to local URL (file://…) is denied
Discussed the design side of things with James, and his guidance is to use the standard error page for this case, which should come for free once oxide reports a failed load. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to webbrowser-app in Ubuntu. https://bugs.launchpad.net/bugs/1503332 Title: Blank page when access to local URL (file://…) is denied Status in Oxide: New Status in Ubuntu UX: New Status in webbrowser-app package in Ubuntu: New Bug description: Since version 0.23+15.10.20151005-0ubuntu1, webbrowser-app is running under apparmor confinement. This means that access to the local filesystem is denied (file://… URLs). There is no user feedback when that happens other than a blank page, which is not really great UX. A user-friendly error message to inform that browsing the local filesystem is restricted would be better. To manage notifications about this bug go to: https://bugs.launchpad.net/oxide/+bug/1503332/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1503332] Re: Blank page when access to local URL (file://…) is denied
It doesn't look like net::URLRequestFileJob does an access check or handles that condition. However, net::FileProtocolHandler delegates an access check to net::NetworkDelegate (via OnCanAccessFile), and it looks like that can be used to fail the load. I'll give it a try ** Also affects: oxide Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to webbrowser-app in Ubuntu. https://bugs.launchpad.net/bugs/1503332 Title: Blank page when access to local URL (file://…) is denied Status in Oxide: New Status in Ubuntu UX: New Status in webbrowser-app package in Ubuntu: New Bug description: Since version 0.23+15.10.20151005-0ubuntu1, webbrowser-app is running under apparmor confinement. This means that access to the local filesystem is denied (file://… URLs). There is no user feedback when that happens other than a blank page, which is not really great UX. A user-friendly error message to inform that browsing the local filesystem is restricted would be better. To manage notifications about this bug go to: https://bugs.launchpad.net/oxide/+bug/1503332/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1503332] Re: Blank page when access to local URL (file://…) is denied
Ignore that - this should result in a failed load already. I'll investigate what's going wrong -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to webbrowser-app in Ubuntu. https://bugs.launchpad.net/bugs/1503332 Title: Blank page when access to local URL (file://…) is denied Status in Oxide: New Status in Ubuntu UX: New Status in webbrowser-app package in Ubuntu: New Bug description: Since version 0.23+15.10.20151005-0ubuntu1, webbrowser-app is running under apparmor confinement. This means that access to the local filesystem is denied (file://… URLs). There is no user feedback when that happens other than a blank page, which is not really great UX. A user-friendly error message to inform that browsing the local filesystem is restricted would be better. To manage notifications about this bug go to: https://bugs.launchpad.net/oxide/+bug/1503332/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp