<?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>250871</bug_id>
          
          <creation_ts>2023-01-19 16:25:31 -0800</creation_ts>
          <short_desc>Remove HTMLMediaElement.webkitPreservesPitch</short_desc>
          <delta_ts>2024-02-13 09:21:07 -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>Media</component>
          <version>WebKit Nightly Build</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>BrowserCompat, InRadar, WPTImpact</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>214922</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ahmad Saleem">ahmad.saleem792</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>eric.carlson</cc>
    
    <cc>ianhedoesit</cc>
    
    <cc>jer.noble</cc>
    
    <cc>karlcow</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1926749</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-01-19 16:25:31 -0800</bug_when>
    <thetext>Hi Team,

While going through Blink&apos;s commit, I came across another potential removal of non-standard.

Blink Commit - https://chromium.googlesource.com/chromium/blink/+/79ddcbce61e61f4cfb09e4563c6deca94de44e6c

WebKit Source - https://searchfox.org/wubkat/source/Source/WebCore/html/HTMLMediaElement.h#1053 &amp; https://searchfox.org/wubkat/source/Source/WebCore/html/HTMLMediaElement.cpp#3892

Just wanted to get input whether it is something we can get rid of now or we still need it?

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1926752</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-01-19 16:31:48 -0800</bug_when>
    <thetext>&lt;rdar://problem/104451631&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1927369</commentid>
    <comment_count>2</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2023-01-22 18:53:45 -0800</bug_when>
    <thetext>I don&apos;t see a lot of usage on GitHub
https://github.com/search?q=webkitpreservespitch+language%3AJavaScript&amp;type=code&amp;l=JavaScript


BUT still I can find things like
https://github.com/scottschiller/ArmorAlley/blob/da1d98a542bf55e5595b456983776890cb27a9b5/script/soundmanager2.js#L2196-L2199

            // 01/2022: prefixes for best compatibility
            if (audioContext &amp;&amp; sm2.usePlaybackRate) {
              a.preservesPitch = a.mozPreservesPitch = a.webkitPreservesPitch = !!s._iO.preservesPitch;
            }
            a.play();

On the side of WPT:
https://wpt.fyi/results/html/semantics/embedded-content/media-elements/preserves-pitch.html?label=master&amp;label=experimental&amp;aligned


MDN 
https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/preservesPitch
refers to Bug 214922


So I don&apos;t think it can be removed without first unprefixing it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1927370</commentid>
    <comment_count>3</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2023-01-22 19:00:15 -0800</bug_when>
    <thetext>On the other hand the live test is passing 5 tests on the 9
http://wpt.live/html/semantics/embedded-content/media-elements/preserves-pitch.html

It requires user interaction. So Probably the failure in WPT is an infra issue. 

one of the tests is to test if it has been unprefixed.
the 3 remaining FAIL are about a difference in between the range of expected values


expected 440 +/- 23.46041055718475 but got 469.208211143695
expected 880 +/- 23.46041055718475 but got 469.208211143695
expected 220 +/- 23.46041055718475 but got 469.208211143695</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1979263</commentid>
    <comment_count>4</comment_count>
    <who name="Ian Harris">ianhedoesit</who>
    <bug_when>2023-09-21 21:03:49 -0700</bug_when>
    <thetext>I just ran into this. Obviously I&apos;ll still need to use the `webkit` prefix for now, but it would be nice to have `preservesPitch` be the only property to deal with for all browsers :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2013179</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-02-13 09:21:05 -0800</bug_when>
    <thetext>Committed 274551@main (4ed49192487b): &lt;https://commits.webkit.org/274551@main&gt;

Reviewed commits have been landed. Closing PR #24237 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>