Bug 1058922 - Disable Speech APIs in prerendering; r=jst

--HG--
extra : amend_source : eae9649cecf94a998249ddcf6139efd4eadbb92d
This commit is contained in:
Roshan Vidyashankar 2014-12-21 12:02:12 -05:00
parent fa82df7ce1
commit af560191f4
2 changed files with 3 additions and 1 deletions

View File

@ -28,7 +28,7 @@ interface SpeechRecognition : EventTarget {
attribute DOMString serviceURI;
// methods to drive the speech interaction
[Throws]
[Throws, UnsafeInPrerendering]
void start(optional MediaStream stream);
void stop();
void abort();

View File

@ -16,9 +16,11 @@ interface SpeechSynthesis {
readonly attribute boolean speaking;
readonly attribute boolean paused;
[UnsafeInPrerendering]
void speak(SpeechSynthesisUtterance utterance);
void cancel();
void pause();
[UnsafeInPrerendering]
void resume();
sequence<SpeechSynthesisVoice> getVoices();
};