Make SpeechGrammarList's addFromURI/addFromString async with Promise

RESOLVED INVALID

Status

()

Core
DOM
RESOLVED INVALID
4 years ago
3 years ago

People

(Reporter: Andre Natal, Unassigned)

Tracking

(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [webspeechapi])

(Reporter)

Description

4 years ago
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Firefox/31.0 (Beta/Release)
Build ID: 20140716183446
(Reporter)

Comment 1

4 years ago
There is a bug at W3C Bugzilla requesting to Fix the draft here: https://www.w3.org/Bugs/Public/show_bug.cgi?id=26520

We need to modify our implementation of SpeechGrammarList to work async with Promise
OS: Mac OS X → All
Hardware: x86 → All
Summary: Make SpeechGrammarList's addFromURI/addFromString async → Make SpeechGrammarList's addFromURI/addFromString async with Promise
(Reporter)

Comment 2

4 years ago
Should we move forward with this even while W3C does not reply or is better wait ?
Flags: needinfo?(ggoncalves)
Flags: needinfo?(bugs)
(Reporter)

Updated

4 years ago
Blocks: 1049931
(Reporter)

Updated

4 years ago
Blocks: 1051148
No longer blocks: 1049931

Comment 3

4 years ago
AFAIK no one else implements those methods anyway, and adding return value
shouldn't break existing code anyway.
Flags: needinfo?(bugs)
Flags: needinfo?(ggoncalves)
(Reporter)

Updated

4 years ago
Blocks: 1067689
(Reporter)

Updated

4 years ago
No longer blocks: 1051148
(Reporter)

Updated

4 years ago
Status: UNCONFIRMED → NEW
Ever confirmed: true

Updated

3 years ago
Whiteboard: [webspeechapi]

Comment 4

3 years ago
I'd prefer to stick with the spec until W3C responds to our bug[1]. In the mean time the methods
can simply be synchronous.

[1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=26520

Comment 5

3 years ago
Well, we can't load synchronously from network.
(sync IO is not acceptable on main thread)

Comment 6

3 years ago
I'll assume for the moment that "sync IO is not acceptable on main thread".

Must addFromURI and addFromString be called from the main thread? What of,
for example, web workers?

Comment 7

3 years ago
Well, we don't have any speech API stuff on workers. But yes, there sync operations would be ok.

Comment 8

3 years ago
In light of the movement of the grammar check to start() in Bug 1185018
this bug is invalid.
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.