-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: add iframe permissions support #399
base: main
Are you sure you want to change the base?
Conversation
beaugunderson
commented
Feb 7, 2025
•
edited
Loading
edited
- https://canvasmedical.atlassian.net/browse/KOALA-2500
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We want these to be specified in the manifest rather than in the effect. This will allow the permissions to be surfaced on an extension listing page.
hmm... the permissions will need to be pairs of |
Yes |
@aduane how does this look? example: {
...
"url_permissions": [
{
"url": "https://example-a.com/testing",
"permissions": ["microphone"]
},
{
"url": "https://example-b.com",
"permissions": ["allow-same-origin", "microphone"]
},
] |
I think the structure looks good, but I wonder about the name. Should it mention ![]() I'm trying to think backwards from what we would display on a plugin's listing page.
|
you could have |
Like this? {
"other_stuff": "..."
"origins": [
{
"url": "http://www.canvasmedical.com",
"permissions": ["allow-same-origin", "microphone"]
},
{
"url": "http://example.com",
"permissions": ["scripts", "microphone", "allow-downloads", "usb"]
}
]
} We'd be mixing concepts here. Some would belong in the Definitely a good developer experience, we would just have to take on the burden of sorting them out on our end (which is a mark of a good platform! shift the complexity away from the developer and towards the platform) |
yes, the other PR already sorts them into the right place ( |
I like it as long as we identify when the "old way" of defining origins is used and provide a warning / a cutover date for when the "new way" is the "only way". |