-
Notifications
You must be signed in to change notification settings - Fork 44
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
Don't set focus to text fragments across origins #227
Comments
I think the real mitigation here is that scrolling won't occur if the initiator of the navigation isn't same-origin:
However, I don't feel too strongly about this since I'm not sure applying focus is super useful anyway (we do set sequential focus for keyboard navigation and accessibility, which are very useful, but I think those aren't programmatically detectable?). |
"Focusing steps" takes an element or navigable, so it seems to me there's a logic error here. |
The spec adds a monkey patch to make |
Hmm, taking a closer look - it seems Chrome doesn't actually apply focus, nor does Safari. I can't think of how applying focus would be useful here and given the potential for leaks it adds I'd err to avoiding the focus steps (for text directives) in the spec. Any objections? |
@jnjaeschke what do you think? |
https://wicg.github.io/scroll-to-text-fragment/#issue-e253a983 says
and https://web.dev/text-fragments/#privacy says
This suggests the spec here is wrong and focusing target, at least across origins, would be a privacy leak.
The text was updated successfully, but these errors were encountered: