Bug 227120

Summary: [GTK][MiniBrowser] AudioTrack label not decoded?
Product: WebKit Reporter: luigifab <code>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bugs-noreply
Priority: P3 Keywords: Gtk
Version: Other   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
Screenshot of the video with console results none

Description luigifab 2021-06-17 06:44:46 PDT
OS: Debian Testing amd64
Package: libwebkit2gtk-4.0-37 (v2.32.1-2) (http://ftp2.fr.debian.org/debian/pool/main/w/webkit2gtk/libwebkit2gtk-4.0-37_2.32.1-2_amd64.deb)

Command line used: /usr/lib/x86_64-linux-gnu/webkit2gtk-4.0/MiniBrowser --enable-media-stream=True --enable-encrypted-media=True --enable-media-capabilities=True

Go to: https://www.luigifab.fr/sintel-en-fr.webm (IPv6 required)

Run in console (F12): document.querySelector('video').audioTracks[0]
Result is: AudioTrack, ... label: "english" ...

Run in console (F12): document.querySelector('video').audioTracks[1]
Result is: AudioTrack, ... label: "français" ...


Do the same with Chrome 91, Edge 91 and Opera 77 (after enabling Experimental Web Platform features in chrome://flags).
The second result is always: AudioTrack, ... label: "français" ...


With MiniBrowser, I can "fix" the label with: decodeURIComponent(escape(label))
Comment 1 luigifab 2021-06-17 06:46:26 PDT
Created attachment 431657 [details]
Screenshot of the video with console results