Bug 258116

Summary: Subtitles menu button does not update when mode is changed through the API when in fullscreen
Product: WebKit Reporter: jeroen.veltmans
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: eric.carlson, jer.noble, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: iPhone / iPad   
OS: iOS 16   

Description jeroen.veltmans 2023-06-15 02:22:39 PDT
Steps to reproduce:
1) Create a basic page with a video element that has a source with native text tracks
2) Make sure you are in native fullscreen
3) Change the text track mode by selecting the video element and executing "$0.textTracks[0].mode = 'showing'"

What is the expected behavior?
The subtitles menu shows the actual track mode that was set through the API.

What is the actual behavior?
The subtitles menu button isn't changed at all.
Comment 1 jeroen.veltmans 2023-06-16 01:58:01 PDT
I made a reproduction page with a test source: https://s3.eu-west-1.amazonaws.com/engineering.public-unsafe/jeroen.veltmans/iOS-subtitle-bug/video.html

Pause at 2:50 in the video to see the Chinese tracks. Then execute the same steps I mentioned before to notice the issue.
Comment 2 Radar WebKit Bug Importer 2023-06-20 08:35:46 PDT
<rdar://problem/111042760>