Re: [w3c/permissions] Custom PermissionName definitions in other host environments (#212)

Sorry for the delay...

I wonder if you could do:

```
enum DenoPermissionName {
  "run",
  "read",
  "write",
  "net",
  "env",
  "plugin",
  "hrtime",
};

enum PermissionName { 
"geolocation" 
 // ...etc...  
};

typedef (DenoPermissionName or PermissionName) ExtendedPermissionName; 

dictionary PermissionDescriptor {
  required ExtendedPermissionName name;
};
```

> There could be name conflicts in the future between the web's and Deno's permission names. We can address this by prefixing our permission names with "deno-*", I guess. Thoughts on that?

That's also a lightweight and sensible solution, IMO. 

Interested to hear where you ended up! 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/permissions/issues/212#issuecomment-875326524

Received on Wednesday, 7 July 2021 06:35:02 UTC