mozilla-extensions / firefox-voice

Firefox Voice is an experiment in a voice-controlled web user agent
Mozilla Public License 2.0
285 stars 122 forks source link

[Intermittent] After the "Play" command the Spotify tab remains active even if it starts playing #378

Open alexandra-martin opened 4 years ago

alexandra-martin commented 4 years ago

Prerequisites:

Mic permissions are enabled.

STR:

  1. Use the shortcut or click on the mic icon from the browser toolbar.
  2. Say or write a "Play" command, e.g. "Play Green Day".

Expected result:

While in the active tab, a new Spotify tab is opened, becomes active and starts playing, then the previous tab becomes active again with the Spotify playing in the background.

Actual result:

After the Spotify tab starts playing, it remains active and it doesn't switches back to the previous tab.

Notes:

Reproduced on Mac 10.14.6 and Win10x64 with Firefox Nightly 71.0a1 (64-bit). Reproduced intermittently on both Mac and Win. On Win I managed to reproduce it 5/10 times but also 8/10 or 10/10 times. On Mac I managed to reproduce it 5/10 times, but also 6/10 or 7/10 times. Also the following behaviours were observed after performing the above steps:

101

112

ianb commented 4 years ago

I think this is a timing issue – we give the tab a certain amount of time to start playing, and sometimes it just takes too long. Probably the Windows machine is just slightly slower ;)