[webkit-dev] Adding the Vibration API to WebCore

권기홍 kihong.kwon at samsung.com
Tue Jan 31 04:50:40 PST 2012


Hi,
I wrote my opinion about Adam and Simon's comments.
 
> One minor comment: you might want to add a security consideration to
> the spec about spam issues.  An unfriendly web site might spam the
> vibration API and deplete the user's battery.
 
Thanks for your comments Adam. 
I guess users can take care of security issues by themselves. As you know, the vibration API works under the page visibility, in which the vibration should not work when the page is set to hidden. Therefore, the mentioned battery issue, I think, is not significant in terms of security in this regard.
 
> For game pads that have vibration feedback, there's obviously a tie-in
> with the joystick API here:
> <https://lists.webkit.org/pipermail/webkit-dev/2011-August/017757.html>
 
Thanks for your comments Simon. 
I can see your point. However, while they can be tied-in each other, the current specs are not related between them. Perhaps, I envisage the next version of the vibration API might include the GamePad vibration feature, though I still think that the current vibration API and the GamePad API are sufficiently meaningful to be implemented in WebKit.
 
Thank you morrita.
Kihong

------- Original Message -------
Sender : Hajime Morrita<morrita at chromium.org>
Date : 2012-01-30 16:14 (GMT+09:00)
Title : Re: [webkit-dev] Adding the Vibration API to WebCore

Hi,

The first patch for this feature is almost ready:
https://bugs.webkit.org/show_bug.cgi?id=72010 But I found that there
is not so positive atmosphere here.

Considering the feature is small and isolated enough and This API can
be taken as a sort of Cookie for LocalStorage in the context of
Gamepad API comparison, I personally feel that this change is OK to
land.

Please let this thread know if there are any concern or objection,
otherwise I'll r+ this in this week. Also, if the author of original
proposal has any discussion around the points that Adam and Simon
raised, it would be helpful to drop it here for supporting this to
happen.

Thanks,
--
morrita





On Fri, Nov 11, 2011 at 7:37 AM, Simon Fraser wrote:
> On Nov 10, 2011, at 5:57 AM, 권기홍 wrote:
>
>> Hi webkit-dev.
>>
>> I want to let you know that I plan to add the Vibration API to WebKit.
>> (http://dev.w3.org/2009/dap/vibration/)
>> This support will be behind the ENABLE_VIBRATION feature define.
>> see : https://bugs.webkit.org/show_bug.cgi?id=72010
>>
>> Spec is not mature because it's recently added.
>> But Mozila is already implemented this.
>>
>> I'm going to support this until finishing both the spec and patch.
>> If you have any comment, please let me know.
>
> For game pads that have vibration feedback, there's obviously a tie-in with the joystick API here:
> 
>
> Simon
>
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


More information about the webkit-dev mailing list