-
Notifications
You must be signed in to change notification settings - Fork 11
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
Block navigator.vibrate in cross-origin iframes #15
Comments
I believe this is a good idea - at least document it as an option. Even better, a requirement. |
Firefox is also doing this: https://bugzilla.mozilla.org/show_bug.cgi?id=1591113. |
Seems we should make this normative. @annevk is there a less convoluted way to spec this than what is proposed below? Replace the following step 1 in perform vibration:
With:
|
It might be worthwhile to wait on whatwg/html#4966 at which point we can define a primitive such as "is a top-level origin" which you give an origin and then it returns true or false. Or perhaps even "has a top-level origin" which you can give some kind of object and it takes it from there. We'll need this for a large number of features. |
Chrome is blocking the vibration API in cross-origin iframes.
The current spec allows for that behaviour, but if that's the one other browsers are converging toward, we should probably make it the explicitly required behaviour.
The text was updated successfully, but these errors were encountered: