-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Navigator/vibrate - Firefox for Android doesn't vibrate #7172
Conversation
There is a bug for this: mozilla-mobile/fenix#2371 |
I didn't catch that one, thank you. |
Oops, we need this PR because it really is a known issue! If this has been broken for a while we should document it here. |
well then |
Wow, the existing data here is kinda messy! I think the gist here is that vibration was (inadvertently?) removed in Firefox 72. Check out https://bugzilla.mozilla.org/show_bug.cgi?id=1591113 for details. I think this means we need to restructure the data for both the "firefox" entry and "firefox_android". It should look a little something like this (ignoring the prefixed entry after these): {
"version_added": "72",
"partial_implementation": true,
"notes": "Vibration is disabled. If the window is visible, then <code>navigator.vibrate()</code> returns <code>true</code>, but no vibration takes place (regardless of hardware support). See <a href='https://bugzil.la/1591113'>bug 1591113</code>."
},
{
"version_added": "16",
"version_removed": "72",
"notes": [
"Until Firefox 26 included, when the vibration pattern was too long or any of its elements too large, Firefox threw an exception instead of returning <code>false</code> (<a href='https://bugzil.la/884935'>bug 884935</a>).",
"From Firefox 32 onwards, when the vibration pattern is too long or any of its elements too large, it returns <code>true</code> but truncates the pattern (<a href='https://bugzil.la/1014581'>bug 1014581</a>).",
]
} |
Updated according to mdn#7172 (comment)
I dont think we should put it on |
strange, the build is failing because firefox version 72 is invalid even though the latest firefox daylight is 82.1.3 |
Oops, that was an oversight on my part. Firefox for Android had a discontinuity—it jumped from 68 to 79. So that value should be bumped to 79. Sorry about that! |
@VoxelPrismatic do you plan to return this PR? Or should we open a follow up issue instead? Either way, thank you! |
Co-authored-by: Queen Vinyl Darkscratch <[email protected]>
Oh sorry I didn't receive any emails on this thread. |
Co-authored-by: Queen Vinyl Darkscratch <[email protected]>
Just tested on Nightly 210125 17:01 [latest as of writing], still doesn't vibrate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for persisting at this, @VoxelPrismatic! A couple of suggestions here. We're quite close, but it's unusual data.
Co-authored-by: Daniel D. Beck <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! 🎉
…icture * upstream/master: (1123 commits) Remove Chromium 89 from String.at / Array.at / TypedArray.at (mdn#8869) Add worker_support info for CacheStorage (mdn#8783) Remove several needless "Enabled by default" notes (mdn#8899) Add HTML global attribute nonce (mdn#8764) api.Navigator.vibrate - Firefox for Android doesn't vibrate (mdn#7172) Mark MediaSource's onsourceclose as not supported in Firefox (mdn#8881) Update Florian's ownership (mdn#8893) Mention fix for Chrome's broken PDF loading (mdn#8867) Fill out Chrome data for html.elements.source.{sizes,srcset} (mdn#8889) Weekly data release for 2021-01-28 Add text-decoration-thickness for Opera 73+ (mdn#8872) Update :is and :where pseudo-classes for Chrome (mdn#7375) Add note re Safari <9 partial srcset/sizes support (mdn#7353) Update data for when href (not xlink:href) can be used in SVG (mdn#6603) Add top-level await (mdn#8807) TouchList: Add Safari Desktop and Safari iOS versions (mdn#8848) Update Firefox versions to account for Firefox 85 release (mdn#8864) Fix page_action.show_matches support for Android (mdn#8844) Update Safari support for devicechange_event (mdn#8863) Add HTTPS-only to privacy.network (mdn#8830) ...
A checklist to help your pull request get merged faster:
Summary: Firefox for Android [Daylight, Nightly, Beta] doesn't support vibration, although it always returns true when the window is active
Data: Tested on Firefox for Android Daylight, Nightly and Beta on a Galaxy S8 running Android 9. Test it out with this tool
Notes: I tested that same tool out in Samsung Internet, vibration works fine. I also have
mozVibrate()
on that tool just in case.Possible help: Is there a separate note for API/Vibration_API or is it linked? Otherwise all is good