-
Notifications
You must be signed in to change notification settings - Fork 56
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
User Activation API #300
Comments
Hi! Thanks for this. It would help us a lot if you could explain what problem you want to solve and what the use cases are? You've clearly put thought into the detail, but it's hard for us to work with that when we're not sure where on the big picture you're focusing. Our explainer explainer might help with this. |
@hadleybeeman Did you read my explainer The motivation is primarily this use case: "For example if an iframe asks a parent window to resize itself, the parent way wish to check that a current user activation is active" Perhaps if you don't understand that example I can add some more detailed information. But the iframe is generally an ad and it wants to do some type of growth beyond its bounds. And we only want that to occur if the user is interacting with that specific iframe. |
Hey @dtapuska, We did read your explainer; the feature detection snippet is great. I think there are a few open questions:
Thanks for following up on this. |
@slightlyoff IDL is often more descriptive and correct than english 😃 I've adjusted the motivation section to call out the performance, security and user destructive behaviors. And added an Example section that I hope clearly shows how you can do this current behavior and how the API is good for resolving this. |
The proposal seems pretty reasonable to me at first glance. Some things I think are worth looking into:
|
Re: liveness of
dbaron thank you for your comments. Do you have any thought as to the implications that exposing |
At first glance, the cross-origin thing doesn't appear any different an origin's existing ability to |
That is correct. There isn't a different way to look at it. |
So one other comment from TAG discussion right now: a bunch of folks didn't understand what the explainer was saying because the explainer's description of the use cases sort of depends on already understanding some of the concepts involved. I think a clearer way to describe the example user need would be something like the following: Suppose a page that contains a cross-origin |
Maybe rename the object, |
Under what circumstances is a tab or other types of user interaction also a user activation? Where is this defined? |
We are coming back to this open issue in our f2f meeting. I'd like to understand if there is anything we can do further here to help or if the TAG should close this issue? |
To make that question a little more concrete: it feels like a bunch of the use cases for this might be better addressed by enhancements to the permission API to more clearly explain the permission state, e.g., building an API that's expressive enough to say "right now the permission is denied, but following user interaction your page would be able to prompt to ask for this permission"... and then probably also notify the page when that changes. It seems like that sort of thing is an improvement in that it would mean less baking of knowledge of what browsers do (which may differ between browsers and may change over time) into the JS within applications. |
After discussing with @dbaron and @hober the consensus is not to close the issue at this point. There is a concern among some tag members that this may not be the right approach. Maybe it would be a good idea to have a focused discussion on this topic with @dtapuska on a future call...? Our next cal is on the 26th at 21:00 GMT / UK time (16:00 Eastern Time) - are you able to join us? If so, please contact @alice for the call details. |
Out of curiosity, and because I couldn't figure it out myself by following links: what is the working group (or community group, etc.) that is working on this? |
It is part of the whatwg (not W3C). See whatwg/html#4009 @dbaron What about generic things that want to know the state about something? This isn't whether the permission is allowed in the embeder's frame but whether it was allowed in the embedded frame. I am able to make a call at 16:00 Eastern Time that day (only for about an hour though). |
@dtapuska could you give an example use case for one of those "generic things"? I don't think I follow what you're asking about. |
@dbaron the main example of resizing an iframe is an example. For example if I wanted to implement the policy of "if the user has every touched the frame allow the iframe resize" how would you do that? |
I'm not sure -- though I'm also not convinced of the importance of that use case. Do you have examples of sites that do this sort of thing today? |
@plinss Yes same time the following week is fine. |
Great, thanks! |
We discussed this in our teleconference today. |
Thank you so much for joining our call last week. The discussion we had really clarified things for us. We'd love it if you would revise your explainer in light of that conversation. The TAG is only one of the many audiences explainer documents are intended for, and your other readers would benefit from the clarification you were able to provide to us on the call. We're going to close this for now; once your explainer is ready for another look, please either
|
Bonjour TAG,
I'm requesting a TAG review of:
Further details (optional):
You should also know that...
The PostMessageOptions have been factored as a pull request.
We'd prefer the TAG provide feedback as (please select one):
The text was updated successfully, but these errors were encountered: