<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>286473</bug_id>
          
          <creation_ts>2025-01-24 06:58:45 -0800</creation_ts>
          <short_desc>MediaStreamTrack configuration change event is not triggered</short_desc>
          <delta_ts>2025-02-14 01:50:25 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebRTC</component>
          <version>Safari 18</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stefan Benicke">stefan.benicke</reporter>
          <assigned_to name="youenn fablet">youennf</assigned_to>
          <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2089507</commentid>
    <comment_count>0</comment_count>
    <who name="Stefan Benicke">stefan.benicke</who>
    <bug_when>2025-01-24 06:58:45 -0800</bug_when>
    <thetext>The background blur API [1] is available in Safari. It tells correctly if backgroundBlur is enabled or not at the beginning of the MediaStreamTrack&apos;s lifetime.

The backgroundBlur setting is never updated, even if the system camera effect &quot;Portrait&quot; is changed.

Furthermore, the &quot;onconfigurationchange&quot; event [2] is never triggered, even if the system camera effect &quot;Portrait&quot; is changed.

The official demo [3] proves that it&apos;s working at the beginning, but doesn&apos;t trigger the configurationchange event.

I  could test on Safari Version 18.2 (20620.1.16.11.8) and also Safari Tech Preview Release 211 (Safari 18.2, WebKit 20621.1.9.111.1) on a MacBook Pro with Apple M2 Pro on macOS 15.2 (24C101). And also tested on an iPhone 13 mini with iOS 18.2.1.

[1] https://github.com/riju/backgroundBlur/blob/main/explainer.md#background-blur-api
[2] https://w3c.github.io/mediacapture-extensions/#exposing-change-of-mediastreamtrack-configuration
[3] https://googlechrome.github.io/samples/image-capture/background-blur.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2089508</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-01-24 07:21:34 -0800</bug_when>
    <thetext>&lt;rdar://problem/143568586&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2089901</commentid>
    <comment_count>2</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2025-01-27 00:24:23 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/39584</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2090389</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-01-29 00:56:56 -0800</bug_when>
    <thetext>Committed 289492@main (09a258d7bf2d): &lt;https://commits.webkit.org/289492@main&gt;

Reviewed commits have been landed. Closing PR #39584 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2094729</commentid>
    <comment_count>4</comment_count>
    <who name="Stefan Benicke">stefan.benicke</who>
    <bug_when>2025-02-14 01:40:22 -0800</bug_when>
    <thetext>Thanks for the update!

I&apos;ve tested in Safari Tech Preview 213 (https://developer.apple.com/documentation/safari-technology-preview-release-notes/stp-release-213), and the &quot;configurationchange&quot; event is triggered. Awesome.

Unfortunately, it still shows the wrong value of &quot;backgroundBlur&quot;. It always shows the value that was set at the beginning of the VideoTrack&apos;s lifetime. If it was true, it will always be true, even if &quot;Portrait&quot; effect is turned off.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2094731</commentid>
    <comment_count>5</comment_count>
    <who name="Stefan Benicke">stefan.benicke</who>
    <bug_when>2025-02-14 01:50:25 -0800</bug_when>
    <thetext>I&apos;ve created a new ticket for this issue https://bugs.webkit.org/show_bug.cgi?id=287692</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>