Bug 259862 - Setting and Getting 'audio.muted' and 'video.muted' via script-created fails
Summary: Setting and Getting 'audio.muted' and 'video.muted' via script-created fails
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar, WPTImpact
Depends on:
Blocks:
 
Reported: 2023-08-05 06:34 PDT by Ahmad Saleem
Modified: 2024-05-19 18:21 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. :-(