[webapp-container] No access to video provided despite policy_group "camera" in .apparmour file

Bug #1554202 reported by Peter Bittner
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
High
David Barth
webapps-sprint
Fix Released
High
Alexandre Abreu
webbrowser-app (Ubuntu)
Fix Released
High
Alexandre Abreu

Bug Description

A web app that displays a website trying to access camera and microphone (for video conferencing, using WebRTC) will be refused to access the camera despite the "camera" policy_group in apparmour.

The trust-store dialog pops up in the webbrowser-app for a website such as [1], but it doesn't pop up when the website is embedded with webapp-container.

[1] https://appear.in/test-drive

Details
-------

- Detailed explanations on the mailing list: https://lists.launchpad.net/ubuntu-phone/msg18658.html
- Affected web app (Store): https://uappexplorer.com/app/appear-in.peter-bittner
- Affected web app (rev 2): https://myapps.developer.ubuntu.com/dev/click-apps/4646/rev/2/
- Bug report for affected app: https://github.com/bittner/appear-in/issues/1

Related branches

description: updated
Revision history for this message
Olivier Tilloy (osomon) wrote :

The webapp container needs to hook to the webview’s mediaAccessPermissionRequested signal, similar to what’s done for geolocationPermissionRequested.

Changed in webbrowser-app (Ubuntu):
assignee: nobody → Alexandre Abreu (abreu-alexandre)
importance: Undecided → High
status: New → Confirmed
Changed in webbrowser-app (Ubuntu):
status: Confirmed → In Progress
David Barth (dbarth)
Changed in canonical-devices-system-image:
importance: Undecided → High
status: New → In Progress
assignee: nobody → David Barth (dbarth)
milestone: none → ww08-2016
Changed in webapps-sprint:
milestone: none → sprint-19
assignee: nobody → Alexandre Abreu (abreu-alexandre)
importance: Undecided → High
status: New → In Progress
Revision history for this message
Peter Bittner (peter-bittner) wrote :

Will this fix make it into OTA-10?

Revision history for this message
Olivier Tilloy (osomon) wrote :

That’s the plan, indeed.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package webbrowser-app - 0.23+16.04.20160318-0ubuntu1

---------------
webbrowser-app (0.23+16.04.20160318-0ubuntu1) xenial; urgency=medium

  [ Alexandre Abreu ]
  * Handle media access request from webcontainer main view and overlay
    views (LP: #1554202)

  [ CI Train Bot ]
  * Resync trunk.

 -- Alexandre Abreu <email address hidden> Fri, 18 Mar 2016 15:08:11 +0000

Changed in webbrowser-app (Ubuntu):
status: In Progress → Fix Released
Changed in canonical-devices-system-image:
status: In Progress → Fix Committed
Changed in webapps-sprint:
status: In Progress → Fix Committed
status: Fix Committed → Fix Released
Revision history for this message
Peter Bittner (peter-bittner) wrote :

I can confirm this has been (sort of) fixed with OTA-10. However, a confirmation to access the camera is now asked for *every single time* I open the webapp. Not sure if this is by design or a bug.

NOTE: Interestingly, access to the microphone alone (I guess that was it) is only asked the very first time you open the webapp. So, the very first time (only) you use the app you have to confirm *two* dialog.

Changed in webapps-sprint:
milestone: sprint-19 → sprint-21
Changed in canonical-devices-system-image:
status: Fix Committed → Fix Released
Revision history for this message
Olivier Tilloy (osomon) wrote :

@Peter: the fact that the permissions are not remembered is a known issue in oxide (missing functionality, really), see https://blueprints.launchpad.net/oxide/+spec/site-settings.

David Barth (dbarth)
Changed in webapps-sprint:
milestone: sprint-21 → sprint-20
Revision history for this message
Peter Bittner (peter-bittner) wrote :

I can confirm that the permission and remember-permission issues are now fixed (as of OTA-12, OTA-13). Unfortunately, the Appear.in video chat application is still non-functional as it now suffers from an upside-down image of the person using Ubuntu Touch.

See https://bugs.launchpad.net/oxide/+bug/1535820

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.