Bug 259862

Summary: Setting and Getting 'audio.muted' and 'video.muted' via script-created fails
Product: WebKit Reporter: Ahmad Saleem <ahmad.saleem792>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: eric.carlson, jer.noble, webkit-bug-importer
Priority: P2 Keywords: BrowserCompat, InRadar, WPTImpact
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=119537

Description Ahmad Saleem 2023-08-05 06:34:45 PDT
Hi Team,

I didn't manage to find the bug for failing 'muted.html' WPT test case, so I thought to just create it and fix these:

WPT Test Case: https://wpt.fyi/results/html/semantics/embedded-content/media-elements/user-interface/muted.html?label=master&label=experimental&aligned

WPT Live Test Case: http://wpt.live/html/semantics/embedded-content/media-elements/user-interface/muted.html

Failing test cases:

getting audio.muted with muted="" (script-created)
setting audio.muted with muted="" (script-created)

and

getting video.muted with muted="" (script-created)
setting video.muted with muted="" (script-created)

_______

Just wanted to raise for tracking.

Thanks!
Comment 1 Radar WebKit Bug Importer 2023-08-12 06:35:12 PDT
<rdar://problem/113796341>
Comment 2 Ahmad Saleem 2024-05-19 18:21:11 PDT
In HTMLMediaElement::attributeChanged, I tried adding:

 case AttributeNames::mutedAttr:
        if (attributeModificationReason == AttributeModificationReason::Parser)
            m_muted = true;
        return;

But it didn't work.

If I change to m_explicitlyMuted = true; then it progress these four but also fail 12 more. :-(