Spec
Public standards discussion: https://github.com/WICG/interventions/issues/25
Summary
Block navigator.vibrate in cross-origin iframes, and so that the call of navigator.vibrate will be no-op inside cross-origin iframes.
Motivation
Vibrate is being abused by unsafe third-party content (eg., malicious ads), and some users have complained about it (e.g., this reddit thread). To better protect user, we would like to block vibrate if it is called in cross-origin iframes (eg., a lot of ads are rendered inside iframes).The measurement from Chrome shows that vibrate in (same-origin+cross-origin) iframes is being used by ~0.00025% of pages (See the metrics link), and so it is considered a low risk removal.
None.
Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?
Yes, although vibrate works only on mobile (Android and Android WebView).
OWP launch tracking bug
Link to entry on the feature dashboard
https://www.chromestatus.com/feature/5682658461876224
Requesting approval to ship?
Yes.
Thanks,
- Bin
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
I've seen these ads as well and I'm not sure this mitigation will help because the ads are in new windows/tabs, not iframes. The reddit thread seems to mention this as well.
Why don't we put navigator.vibrate behind a permission prompt instead?
Or limit it to only being usable when showing a notification (that's presumably a primary use case, right?) and in other cases require a user gesture?
Or limit it to only being usable when showing a notification (that's presumably a primary use case, right?) and in other cases require a user gesture?-Darin
> >>>>>>> send an email to blink-dev+unsubscribe@chromium.org.
>
>
>
>
>
>
>
>
>
>
> --
> TAMURA Kent
> Software Engineer, Google
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "blink-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to blink-dev+unsubscribe@chromium.org.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
> >>>>>>> send an email to blink-dev+...@chromium.org.
>
>
>
>
>
>
>
>
>
>
> --
> TAMURA Kent
> Software Engineer, Google
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "blink-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to blink-dev+...@chromium.org.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.