| Summary: | Remove HTMLMediaElement.webkitPreservesPitch | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ahmad Saleem <ahmad.saleem792> |
| Component: | Media | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | eric.carlson, ianhedoesit, jer.noble, karlcow, webkit-bug-importer |
| Priority: | P2 | Keywords: | BrowserCompat, InRadar, WPTImpact |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Bug Depends on: | 214922 | ||
| Bug Blocks: | |||
|
Description
Ahmad Saleem
2023-01-19 16:25:31 PST
I don't see a lot of usage on GitHub https://github.com/search?q=webkitpreservespitch+language%3AJavaScript&type=code&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 && 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&label=experimental&aligned MDN https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/preservesPitch refers to Bug 214922 So I don't think it can be removed without first unprefixing it. 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 I just ran into this. Obviously I'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 :) Committed 274551@main (4ed49192487b): <https://commits.webkit.org/274551@main> Reviewed commits have been landed. Closing PR #24237 and removing active labels. |