Bug 1014581 - Follow-up, fix typo. r=me
authorMounir Lamouri <mounir@lamouri.fr>
Sat, 07 Jun 2014 13:40:20 +0100
changeset 187392 0ea62f66f109388f7ba55ccdf7953ef95ac61629
parent 187391 731411eebd0ada53b7d7a6329dde5bd5f7be3019
child 187393 b68a8421c642590e7b5df2ec7502016a504f4721
push id26917
push userryanvm@gmail.com
push dateSat, 07 Jun 2014 18:13:47 +0000
treeherdermozilla-central@a2f0e0619332 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1014581
milestone32.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1014581 - Follow-up, fix typo. r=me
dom/base/Navigator.cpp
--- a/dom/base/Navigator.cpp
+++ b/dom/base/Navigator.cpp
@@ -790,17 +790,17 @@ Navigator::Vibrate(const nsTArray<uint32
   if (doc->Hidden()) {
     // Hidden documents cannot start or stop a vibration.
     return false;
   }
 
   nsTArray<uint32_t> pattern(aPattern);
 
   if (pattern.Length() > sMaxVibrateListLen) {
-    pattern.SetLength(sMaxVibrateMS);
+    pattern.SetLength(sMaxVibrateListLen);
   }
 
   for (size_t i = 0; i < pattern.Length(); ++i) {
     if (pattern[i] > sMaxVibrateMS) {
       pattern[i] = sMaxVibrateMS;
     }
   }