Clear pattern to prevent timing problem between cancelVibration and vibrate
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 Aug 2012 00:10:36 +0000 (00:10 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 Aug 2012 00:10:36 +0000 (00:10 +0000)
commita326605d1ef4a85febaa549f6c429b2ed5db8992
treea1083cbf8ef4677972e948d786cfa4af398b3a94
parentb5966474bbdf1616dd497b4245c7beddc0b76284
Clear pattern to prevent timing problem between cancelVibration and vibrate
https://bugs.webkit.org/show_bug.cgi?id=93957

Patch by Kihong Kwon <kihong.kwon@samsung.com> on 2012-08-14
Reviewed by Kentaro Hara.

There is a timing issue in the cancelVibration.
Since vibrate works based on timer, cancelVibration might be called
eariler than vibrate when cancelVibration is called just after vibrate call.
It can be prevented from clearing m_pattern in the cancelVibration.

* Modules/vibration/Vibration.cpp:
(WebCore::Vibration::cancelVibration):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@125624 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/Modules/vibration/Vibration.cpp