Skip to content

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

Open
@quozl

Description

@quozl

On Ubuntu 18.04 with Browse 7cfd9f2 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:

  • start Browse, open https://scratch.mit.edu/, click on Create, await loading,
  • click on Sound (purple circle),
  • click on Meow in play sound, and select Record ...

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions