<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - AX: Media controls accessibility improvement"
   href="https://bugs.webkit.org/show_bug.cgi?id=160223#c12">Comment # 12</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - AX: Media controls accessibility improvement"
   href="https://bugs.webkit.org/show_bug.cgi?id=160223">bug 160223</a>
              from <span class="vcard"><a class="email" href="mailto:eric.carlson&#64;apple.com" title="Eric Carlson &lt;eric.carlson&#64;apple.com&gt;"> <span class="fn">Eric Carlson</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=284667&amp;action=diff" name="attach_284667" title="patch">attachment 284667</a> <a href="attachment.cgi?id=284667&amp;action=edit" title="patch">[details]</a></span>
patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=284667&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=284667&amp;action=review</a>

<span class="quote">&gt; Source/WebCore/Modules/mediacontrols/mediaControlsApple.js:1182
&gt; +        if (this.video.muted) {
&gt; +            this.video.muted = false;
&gt; +            this.controls.muteButton.setAttribute('aria-checked', 'false');
&gt; +        }
&gt; +        this.video.volume = this.controls.volume.value;
&gt; +        this.controls.volume.setAttribute('aria-valuetext', parseInt(this.controls.volume.value * 100) + '%');</span >

It is unfortunate to have yet another function that checks/changes this.video.muted, sets this.video.volume,  and sets the aria-valuetext. Can you make a helper function that does these common steps and call it from your new event handler and the existing event handler that have duplicate code?</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>