← Back to release summary

Remove navigator.vibrate without user gesture

Category
Device
Type
New or changed feature
Status
Enabled by default (Chrome 60)
Intent stage
None

Summary

Calls to navigator.vibrate will immediately return 'false' if user hasn't tapped on the frame or any embedded frame yet. The Vibrate API is being abused by malicious sites. This extends what we do for cross-origin iframes to all frames including top-level page. See https://www.chromestatus.com/features/5682658461876224.

Standards & signals

Docs: https://github.com/WICG/interventions/issues/47 https://developer.mozilla.org/en-US/docs/Web/API/Navigator/vibrate

View on chromestatus.com