Bug 114045 - WebSpeech: event.elapsedTime is always 1364484608
Summary: WebSpeech: event.elapsedTime is always 1364484608
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: chris fleizach
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2013-04-05 10:52 PDT by chris fleizach
Modified: 2013-04-05 14:52 PDT (History)
2 users (show)

See Also:


Attachments
patch (5.00 KB, patch)
2013-04-05 14:23 PDT, chris fleizach
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description chris fleizach 2013-04-05 10:52:33 PDT
var u = new SpeechSynthesisUtterance();
     u.text = 'Hello World';
     u.lang = 'en-US';
     u.rate = 1.2;
     u.onend = function(event) { alert('Finished in ' + event.elapsedTime + ' seconds.'); }
     speechSynthesis.speak(u);


* RESULTS
No matter what values you give it, event.elapsedTime is always 1364484608. Expected a value more like 1.42346897, as this is value should be a float value representing seconds of elapsed speech time.
Comment 1 chris fleizach 2013-04-05 10:52:47 PDT
rdar://13584644
Comment 2 chris fleizach 2013-04-05 14:23:14 PDT
Created attachment 196682 [details]
patch
Comment 3 chris fleizach 2013-04-05 14:23:29 PDT
Adding Tim to help with review
Comment 4 chris fleizach 2013-04-05 14:37:54 PDT
Comment on attachment 196682 [details]
patch 

Thanks!
Comment 5 WebKit Commit Bot 2013-04-05 14:52:49 PDT
Comment on attachment 196682 [details]
patch 

Clearing flags on attachment: 196682

Committed r147801: <http://trac.webkit.org/changeset/147801>
Comment 6 WebKit Commit Bot 2013-04-05 14:52:51 PDT
All reviewed patches have been landed.  Closing bug.