Permissions prompt for Web Midi API

445 views
Skip to first unread message

Ajay Rahatekar

unread,
Feb 16, 2023, 11:23:40 AM2/16/23
to blink-api-owners-discuss, web-audio-team
Hello API owners,

The Google Web Audio team is working with the Trust and Safety team on gating the Web Midi API behind a permissions prompt. Can you please advise if an Intent to Ship is needed for this change? Would a PSA to blink-dev suffice as an announcement of this change?

Thanks in advance.

--
Ajay Rahatekar | Technical Program Manager | ajayra...@google.com | 650-797-1279

Chris Harrelson

unread,
Feb 16, 2023, 12:56:32 PM2/16/23
to Ajay Rahatekar, blink-api-owners-discuss, web-audio-team
Hi Ajay,

Question: Am I correct that developers are always provided access to Web Midi today, if they ask for it?

--
You received this message because you are subscribed to the Google Groups "blink-api-owners-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-api-owners-d...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-api-owners-discuss/CAHB%2BDAjiPkM4if-9R-mJc-D9YtXmi%3DA%3Dt5B6%2BueD711ThQe5%3DA%40mail.gmail.com.

Chris Wilson

unread,
Feb 16, 2023, 1:25:00 PM2/16/23
to Chris Harrelson, Ajay Rahatekar, blink-api-owners-discuss, web-audio-team
On secure domains, if system-exclusive access is not requested, and Web MIDI is not disabled, yes.  

Chris Harrelson

unread,
Feb 16, 2023, 1:43:01 PM2/16/23
to Chris Wilson, Ajay Rahatekar, blink-api-owners-discuss, web-audio-team
Ok. Browser policies gating access to APIs are outside the scope of the API owners and the Intent process. However, since this is a case where we're going from no permission prompt to a permission prompt, I think a PSA and developer communication is a good idea. Other chromium-based browsers may want to know as well, via these channels.

Also: will there be a permission prompt by default to use the feature in Chromium? (Not Chrome.)

Alvin Ji

unread,
Feb 23, 2023, 8:42:20 PM2/23/23
to blink-api-owners-discuss, Chris Harrelson, Ajay Rahatekar, blink-api-owners-discuss, web-audio-team, Chris Wilson
I'll try to answer the question while Hongchan is OoO this week.

Yes we wish to have the permission prompt by default to use the feature in Chromium.

Hongchan Choi

unread,
Feb 24, 2023, 11:51:23 AM2/24/23
to blink-api-owners-discuss, Alvin Ji, Chris Harrelson, Ajay Rahatekar, blink-api-owners-discuss, web-audio-team, Chris Wilson
Thanks, Chris. Then we'll go forward with a PSA via blink-dev.

> Other chromium-based browsers may want to know as well, via these channels.

Could you elaborate what "channels" mean? What are other channels except for blink-dev?

> Also: will there be a permission prompt by default to use the feature in Chromium? (Not Chrome.)

Yes. I believe it's sensible to be consistent everywhere.

Cheers,
Hongchan

Ajay Rahatekar

unread,
Mar 7, 2023, 11:57:35 AM3/7/23
to Hongchan Choi, blink-api-owners-discuss, Alvin Ji, Chris Harrelson, web-audio-team, Chris Wilson
Friendly ping to close the loop on the request for Hongchan:

Could you elaborate what "channels" mean? What are other channels except for blink-dev?

Jeff Kaufman

unread,
Mar 21, 2023, 7:37:24 AM3/21/23
to blink-api-owners-discuss, Ajay Rahatekar, blink-api-owners-discuss, Alvin Ji, Chris Harrelson, web-audio-team, Chris Wilson, Hongchan Choi
I don't see a message on blink-dev; did a PSA get sent?  https://groups.google.com/a/chromium.org/g/blink-dev/search?q=midi

MDN documents this as "The user must explicitly grant permission to use the API though a user-agent specific mechanism, or have previously granted permission" even though the only implementing browsers are Chromium-based: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/requestMIDIAccess. It would be good to get this behind a prompt.

Jeff

Ajay Rahatekar

unread,
Mar 21, 2023, 11:52:22 AM3/21/23
to Jeff Kaufman, blink-api-owners-discuss, Alvin Ji, Chris Harrelson, web-audio-team, Chris Wilson, Hongchan Choi
Hi Jeff,

The team is currently working on the PSA and we will send it out as soon as possible.

_Ajay

Ajay Rahatekar

unread,
Apr 13, 2023, 11:40:56 AM4/13/23
to blink-api-owners-discuss, Ajay Rahatekar, blink-api-owners-discuss, Alvin Ji, Chris Harrelson, web-audio-team, Chris Wilson, Hongchan Choi, Jeff Kaufman
Reply all
Reply to author
Forward
0 new messages