Bug 1031226 - [vibration] navigator.vibrate([]) fails to cancel a pre-existing instance of the processing vibration patterns algorithm, r=mounir

--HG--
extra : rebase_source : a4a5d894ce010ebf6ac9d97b03b05986e0a42dd6
This commit is contained in:
Olli Pettay 2014-07-10 17:31:36 +03:00
parent 35136e5a31
commit c8e027a1cf

View File

@ -809,7 +809,7 @@ Navigator::Vibrate(const nsTArray<uint32_t>& aPattern)
// The spec says we check sVibratorEnabled after we've done the sanity
// checking on the pattern.
if (pattern.IsEmpty() || !sVibratorEnabled) {
if (!sVibratorEnabled) {
return true;
}