After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 781404 - Disable inline audio play in message preview
Disable inline audio play in message preview
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
3.22.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2017-04-17 13:05 UTC by André Klapper
Modified: 2017-04-19 17:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot (106.58 KB, image/png)
2017-04-17 13:09 UTC, André Klapper
Details

Description André Klapper 2017-04-17 13:05:58 UTC
Open an email that has an MP3 file attached. 
See that black thingy to play the attachment inside of evolution-3.22.6-2.fc25.x86_64. 
Click the Play button. 
Nothing ever happens (and I can play that MP3 file with e.g. Totem).
Comment 1 André Klapper 2017-04-17 13:09:32 UTC
Created attachment 349944 [details]
screenshot
Comment 2 Milan Crha 2017-04-19 14:28:52 UTC
Ouch, such a long file in a message, shame on you :)

That "black thingy" is provided by WebKit itself, evolution doesn't have much influence on this, except of telling WebKit to do something with it with:

    <audio controls>
    <source src="data:xxx;base64,xxxxx"/>
    </audio>

thus even epiphany should behave the same with an HTML page like this:

   <html><body><audio controls>
   <source src="file:///home/andre/Music/file.mp3"/>
   </audio></body></html>

Could you try with it, please? It should be as simple as saving the above HTML content as, say, /tmp/test.html and then run:

   $ epiphany /tmp/test.html

Change the file path in the HTML content, of course.

It can be either WebKit is wrong, or data passed to it this way do not work (a non-existent file reference behaves similarly as you described).
Comment 3 André Klapper 2017-04-19 15:04:51 UTC
"$ epiphany /home/acko/Desktop/bug781404.html" works without a problem and plays the file in epiphany-3.22.7-1.fc25.x86_64 and webkitgtk4-2.16.1-2.fc25.x86_64
Comment 4 Milan Crha 2017-04-19 15:37:34 UTC
Ah, I see, the same here. Issue in evolution then. Confirming.
Comment 5 Milan Crha 2017-04-19 16:36:28 UTC
After some testing, that audio control requires javascript, which is a no-go for evolution (due to security reasons). I'll disable that inline audio formatter to not confuse users.
Comment 6 Milan Crha 2017-04-19 17:09:38 UTC
I forgot to mention that I have it also confirmed from WebKitGTK+ developers. I'm disabling the code at the moment, not removing it, thus it can be eventually re-enabled when WebKitGTK+ player will start working differently, maybe without javascript.

Created commit 377e82f in evo master (3.25.1+)
Created commit 0de6eff in evo gnome-3-24 (3.24.2+)