sugarlabs / browse-activity

Sugar activity to browse the internet; WebKit on GTK on Sugar Toolkit
GNU General Public License v2.0
8 stars 44 forks source link

Browse does not handle the new user media permission requests #85

Open quozl opened 5 years ago

quozl commented 5 years ago

On Ubuntu 18.04 with Browse 7cfd9f251fd9e5586d3323c50b760f50f2e7eae1 and v202, scratch.mit.edu online editor v3.0 does play sound fine, but does not record sound. When an attempt is made, a dialog from the web app is shown, but it is insensitive. There is no WebKit2.UserMediaPermissionRequest sent. Console shows an internationalisation error in the web app;

projects.bundle.js:68:13595
Unhandled Promise Rejection:
Invariant Violation: 
[React Intl] An `id` must be provided to format a message

screenshot_ubb_2019-01-12_09 10 01

Reproducer:

Attemping to bisect by wrapper, MiniBrowser from libwebkit2gtk-4.0-37 does not render the editor at all.

Works fine with Firefox, which pops up a permission request at this time. If the permission request is refused, the editor remains in the same state as shown by the screenshot above.

https://www.html5rocks.com/en/tutorials/getusermedia/intro references an audio record demonstration at http://webaudiodemos.appspot.com/AudioRecorder/index.html which likewise does not work.

So the cause is a failure to receive and handle the permission request.

quozl commented 5 years ago

Also occurs on Fedora-SoaS-Live-x86_64-Rawhide-20190213.n.0.iso with

Browse and Epiphany are both web browsers that implement WebKit.

Browse is correctly subscribing to WebKit permission requests.

This problem is caused by WebKit, and nothing we do in Browse will fix it. Any further work on the problem may have to happen with WebKit.

quozl commented 5 years ago

Tracking at WebKit as 194805. It appears to be a licensing corner case with the use of an SSL implementation. No progress is expected.