Closed Bug 1810000 Opened 2 years ago Closed 2 years ago

Vibration API doesn't work

Categories

(Fenix :: Browser Engine, defect, P3)

All
Android

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1653318

People

(Reporter: csadilek, Unassigned)

References

Details

From github: https://github.com/mozilla-mobile/fenix/issues/2371.

Steps to reproduce

  1. visit https://www.audero.it/demo/vibration-api-demo.html
  2. click any of the buttons (vibrate once, vibrate trice)

Expected behavior

Fenix shows a permission prompt to use the API and if granted the device will vibrate.

Actual behavior

Nothing happens.

Device information

  • Android device: 7.1.1
  • Fenix version: 1.0.1919

┆Issue is synchronized with this Jira Task

Change performed by the Move to Bugzilla add-on.

The severity field is not set for this bug.
:cpeterson, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(cpeterson)

According to https://developer.mozilla.org/en-US/docs/Web/API/Vibration_API, this is disabled intentionally due to abuse concerns.
https://bugzilla.mozilla.org/show_bug.cgi?id=1653318 and https://bugzilla.mozilla.org/show_bug.cgi?id=1591113 are referenced.
A permission-based approach, like we have on other features for websites ( notably autoplay) might work if we ever decide to fix this.

Severity: -- → S3
Flags: needinfo?(cpeterson)

I think we can resolve this bug as a duplicate of navigator.vibrate() bug 1653318.

Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1653318
Priority: -- → P3
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.