-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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: ability to transfer activation to another frame #4364
Comments
Here is the design doc for our proposal. |
So we'd end up with both a timeout and forwarding a bit? Seems a bit unfortunate. cc @smaug---- |
Let me clarify the difference between the proposed "transfer" vs the "gesture token forwarding" we (conceptually) have without UAv2. I mentioned "conceptually" here because no browser fully supported it because of the complications involved.
Btw, it doesn't have to be |
Thanks. FWIW, I don't think we want another synchronous communication channel between two places that could be in different processes. |
Sticking to
|
@mounirlamouri suggested @annevk, wdyt? @smaug----: we would love to know your thoughts too. |
Something that was pointed out to me offline is that my proposal assumes that the user activation isn't linked to a scope which may be what Mozilla and Chrome are doing but not what Safari is. Do we see a path forward with some consistency here? Do we want to design an API based on a convergence towards a similar behaviour? |
@mounirlamouri: The transfer idea here could be applied to scoped user activation model too, primarily because the model never really worked consistently with |
I agree with @mounirlamouri that |
So, since this transfer API (whether |
@travisleithead: we proposed a separate query API for that. |
Ah, makes sense. Thanks! https://github.com/dtapuska/useractivation |
Motivated by the feedback from TAG about this proposal, plus a new use-case we want to support, we have switched our focus to an alternate Capability Delegation API (WICG repo, design doc). |
To prove that a simple user activation model works for the web (#1903), Chrome just shipped User Activation v2 in M72 (stable release started 2 weeks ago). We encountered some minor regressions so far, all around the common theme that an activated frame wants to delegate activation-dependent tasks to another frame.
This requirement was not relevant before UAv2 in Chrome, because of render-process-wide visibility of activation state. UAv2 defines the default visibility of a user activation to be all container frames, which exposed those use-cases as regressions.
We need to address this problem now: define a way to change the default visibility of user activation.
Here is our proposal: allow transfer of user activation to a target frame through
postMessage()
calls.The text was updated successfully, but these errors were encountered: