<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>30176</bug_id>
          
          <creation_ts>2017-09-04 15:54:32 +0000</creation_ts>
          <short_desc>Specify how the Speech Recognition API (doesn&apos;t) work on non-secure contexts</short_desc>
          <delta_ts>2018-08-06 10:54:38 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Speech API</product>
          <component>Speech API</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Philip Jägenstedt">philip</reporter>
          <assigned_to name="Glen Shires">gshires</assigned_to>
          <cc>anatal</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>128874</commentid>
    <comment_count>0</comment_count>
    <who name="Philip Jägenstedt">philip</who>
    <bug_when>2017-09-04 15:54:32 +0000</bug_when>
    <thetext></thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128875</commentid>
    <comment_count>1</comment_count>
    <who name="Philip Jägenstedt">philip</who>
    <bug_when>2017-09-04 15:59:48 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/speech-api/raw-file/tip/webspeechapi.html should limit the speech recognition API to secure contexts &lt;https://w3c.github.io/webappsec-secure-contexts/&gt; since it requires the use of a microphone, and getUserMedia() has a note about this:
https://w3c.github.io/mediacapture-main/#local-content

In Chrome, getUserMedia() throws/rejects on non-secure contexts.

For speech, this could be done either by throwing an exception, or using [SecureContext] in IDL.

Context: a change to this is being made in https://groups.google.com/a/chromium.org/d/msg/blink-dev/PdGY39MAaeM/LTaCl_f4AQAJ</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129315</commentid>
    <comment_count>2</comment_count>
    <who name="Philip Jägenstedt">philip</who>
    <bug_when>2018-08-06 10:54:38 +0000</bug_when>
    <thetext>Sent a PR: https://github.com/w3c/speech-api/pull/31</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>