Re: [permissions] Why "prompt" instead of "default"? (#25)

I would say that the `prompt` answer still better describes how `Notification.requestPermission()` behaves.

I agree though that it doesn't as well describe the behavior of the `showNotification()` function.

But I don't think it's obvious that using `default` would be a net win. I.e. we'd describe the behavior of `showNotification()` a *little* better. `denied` really would be a better answer for that. But we'd also describe the behavior of `Notification.requestPermission()` a worse, since `prompt` is a better description of that.

And for all other APIs that we have so far, `prompt` is more descriptive than `default`.

So all in all I think that `prompt` (or `ask`) is better than `default`. And we'd have to document the weirdness that `showNotification()`/`new Notification` rejects if permission hasn't been granted.

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/permissions/issues/25#issuecomment-99992895

Received on Thursday, 7 May 2015 19:41:59 UTC