[Merge] lp:~uriboni/webbrowser-app/media-access into lp:webbrowser-app

Ugo Riboni ugo.riboni at canonical.com
Thu Oct 1 09:22:04 UTC 2015


> You’re connecting to onMediaAccessPermissionRequested for the current webview.
> What happens if another tab requests media access? Is the request lost?

If there is no handler connected to mediaAccessPermissionRequested then oxide will reject the request, but it will also not remember that choice internally for the session.
So when you go back to the page and cause navigator.getUserMedia to be called again by the page, a new onMediaAccessPermissionRequested call will be made, and webbrowser-app will be able to handle it.

What I can try to do if this is not the desired behavior is to connect mediaAccessPermissionRequested to all open webviews, and if the user has already granted/denied permission then go ahead and respond with that information to the request. Otherwise I can try to "hold" the request pending and display a dialog with the permission request as soon as the user switches back to the page. Though I am not sure yet if this is possible, because as soon as the mediaAccessPermissionRequested handler returns, oxide will temporarily deny the request.
-- 
https://code.launchpad.net/~uriboni/webbrowser-app/media-access/+merge/272919
Your team Ubuntu Phablet Team is requested to review the proposed merge of lp:~uriboni/webbrowser-app/media-access into lp:webbrowser-app.



More information about the Ubuntu-reviews mailing list