-
Notifications
You must be signed in to change notification settings - Fork 53
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
Let each permission refine its algorithms and store data. #66
Conversation
@@ -244,9 +269,71 @@ | |||
</dt> | |||
</dl> | |||
<p> | |||
The <code>PermissionName</code> enum defines the list of known | |||
permission names. | |||
Each enumerator-value in the <a>PermissionName</a> enum identifies a |
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.
enumerator-value is a weird term I've never heard before. Is it a C++ thing? Prefer "enumeration value" or "enum value".
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.
It's a funny mix of C++ and WebIDL. Oops. Fixing.
I think this is ready for a serious look now, @marcoscaceres @mounirlamouri. Feel free to tell me to split it up into a couple different PRs. |
A <dfn data-export="">permission request algorithm</dfn> | ||
</dt> | ||
<dd> | ||
Takes the previously-stored <a>permission storage type</a>, an |
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.
This paragraph needs a few "instance of"s inserted as well.
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.
Done.
ba01b3a
to
4fe83ad
Compare
See https://rawgit.com/jyasskin/web-bluetooth-1/permission-api/index.html#permission-api-integration for the beginning of Web Bluetooth's use of these new hooks. |
Hey Jeffrey, a few random thoughts (some are not solely related to your edits): |
Thanks for the comments!
Yeah. The traditional way to distinguish these would be to avoid describing
Right, I think that's pre-existing. In most cases, I think we can say "the UA may customize the permission prompt, including auto-granting and auto-denying it" and "the UA may revoke at any time", and that's enough? I'd like to fix that in a separate PR, to keep this one from growing much more.
Probably. Again, I want to keep rearrangements separate from the API extension.
Yeah, if it's always |
96dcb08
to
6172478
Compare
The identifier hook is gone. PTAL. |
At a high level I agree with the changes here. Though, it's a very large CL and I can't realistically review this. Could you split this in a few parts:
Also, could you remove tidy changes? It seems that we have issues with your tidy runs getting other results than mine. You are not the first person. I would like to figure this out before every one changes the spec to match its own tidy runs. |
6112fbb
to
e3666ca
Compare
Ok, I've split out a bunch of separate PRs that build on each other. I haven't yet undone the Tidy changes, and I've squashed the remaining changes in this PR since the individual commits were getting incoherent. |
OK, sorry for bitching in the other PR, then. :/ |
e3666ca
to
ebba8ac
Compare
I've noticed that PushMessagingPermissionContext::DecidePermission checks for If it's ok with you folks, I'd like to get the current PR merged, and then fix up details like this in subsequent smaller patches. |
ebba8ac
to
3ac9a97
Compare
This is separate from the PermissionStatus that gets returned to users and from the PermissionDescriptor that users query the permission with.
This defines a "permission" as a collection of types and algorithms used to manage and store information about a user's consent to use platform capabilities.
…iptor type". As requested in w3c#66.
This is now ready to review. See it in action at https://rawgit.com/jyasskin/permissions/allow-choosers/index.html, and a use of the new extension hooks at https://rawgit.com/jyasskin/web-bluetooth-1/permission-api/index.html#permission-api-integration.