Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Actions] "Actions" model should be aligned with "mediasession actions" #36

Open
alvestrand opened this issue Mar 15, 2022 · 2 comments
Labels

Comments

@alvestrand
Copy link

We already have a model for media sessions that allow actions to be performed:

https://w3c.github.io/mediasession/#actions-model

We should carefully consider how the two models for "actions" can be aligned, and in particular we should introduce no more restrictions on any new actions model than what this particular interface implies. (I could also argue for fewer restrictions.)

@eladalon1983 eladalon1983 changed the title "Actions" model should be aligned with "mediasession actions" [Actions] "Actions" model should be aligned with "mediasession actions" Mar 16, 2022
@jan-ivar
Copy link
Member

What do you mean by "align"? The security properties are wildly different:

I.e. they come from users. In contrast, capture actions can come from malicious sites. So we need to apply more restrictions than mediaSession to prevent abuse.

@eladalon1983
Copy link
Member

I think I remember some past interactions about this topic that could be illuminating:

  • It has previously been claimed that the set of actions in MediaSession does not map completely onto the set of actions we'd want to support here. Both in terms of extraneous as well as missing actions. I do not recall a counter-argument to that.
  • Youenn has said that an origin could be attached to actions, thereby allowing applications to distinguish actions coming from the user vs. ones coming from a capturing application. I do not recall a proposal to make such a mechanism backwards compatible, in the sense that existing applications should NOT accept actions from other origins without explicitly modifying their code. An allowlisting mechanism might do that, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants