← Back to release summary

Block navigator.vibrate in cross-origin iframes

Category
Device
Type
New or changed feature
Status
Removed (Chrome 55)
Intent stage
None

Summary

Calls to navigator.vibrate will immediately return 'false' inside cross-origin iframes.The Vibrate API is being abused by unsafe third-party content (eg., malicious ads). As of Chrome 57 this is relaxed to allow vibration after the user has tapped on the frame. See https://crbug.com/683938.

Standards & signals

Docs: https://github.com/WICG/interventions/issues/25

Samples: http://output.jsbin.com/murono

View on chromestatus.com