Closed Bug 884935 Opened 11 years ago Closed 11 years ago

Align navigator.vibrate with the spec

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla27
Tracking Status
relnote-firefox --- -

People

(Reporter: bzbarsky, Assigned: drexler)

References

Details

(Keywords: dev-doc-complete)

Attachments

(1 file)

Per spec, we should return false when the list is too long or has too-large entries.  We're throwing instead.
I think returning false is better than throwing, we should fix our implementation.

Justin, do you have cycles to take this?
OS: Mac OS X → All
Hardware: x86 → All
Version: unspecified → Trunk
I'd hate to deprive someone of a valuable learning experience; do we have anyone new to take this?  Otherwise sure, it's not a bug deal
Either way, please don't touch this code until I land bug 838146!
Depends on: 838146
(In reply to Justin Lebar [:jlebar] from comment #2)
> I'd hate to deprive someone of a valuable learning experience; do we have
> anyone new to take this?  Otherwise sure, it's not a bug deal
CC'ing jdm
Maria, this one is a simple change that could interest you.
Attached patch ImplSplinter Review
Assignee: nobody → andrew.quartey
Attachment #809531 - Flags: review?(justin.lebar+bug)
I'm not sure if Justin is still available for reviews...
Attachment #809531 - Flags: review?(justin.lebar+bug) → review?(bugs)
https://hg.mozilla.org/mozilla-central/rev/bbf7f7deb76f
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
teoli, 

Seems to impact firefox OS only ? Unclear why would release note it on desktop/android .
:bajaj, it impacts Firefox for Android too (but not Desktop as it has no vibrating device). Can anyone else comfirm/infirm? Andrew?
Flags: needinfo?(andrew.quartey)
(In reply to Jean-Yves Perrier [:teoli] from comment #12)
> :bajaj, it impacts Firefox for Android too (but not Desktop as it has no
> vibrating device). Can anyone else comfirm/infirm? Andrew?

Unless, i'm mistaken this should be for firefox OS and Android only, right Boris?
Flags: needinfo?(andrew.quartey)
Do see comment 12.
Flags: needinfo?(bzbarsky)
We do expose vibrate() on desktop too and this affects the behavior there.
Flags: needinfo?(bzbarsky)
Indeed.  There is no vibration on desktop, but the API is present, and the behavior is detectable by the web page: it gets an exception from a call that should not, per spec, throw one.  Which is obviously less than ideal.
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: