Bug 1765201 - Remove mozPreservesPitch. r=emilio,devtools-reviewers,nchevobbe

Differential Revision: https://phabricator.services.mozilla.com/D182957
This commit is contained in:
Mathew Hodson 2023-07-11 14:40:07 +00:00
Родитель b9c61cf6dc
Коммит 0c51148647
6 изменённых файлов: 1 добавлений и 19 удалений

Просмотреть файл

@ -9,7 +9,6 @@
module.exports = [
"InstallTrigger",
"farthestViewportElement",
"mozPreservesPitch",
"mozPressure",
"nearestViewportElement",
"onmouseenter",

Просмотреть файл

@ -56,7 +56,6 @@ DEPRECATED_OPERATION(ElementSetCapture)
DEPRECATED_OPERATION(ElementReleaseCapture)
DEPRECATED_OPERATION(DocumentReleaseCapture)
DEPRECATED_OPERATION(OffscreenCanvasToBlob)
DEPRECATED_OPERATION(MozPreservesPitchDeprecatedPrefix)
DEPRECATED_OPERATION(SVGNearestViewportElement)
DEPRECATED_OPERATION(SVGFarthestViewportElement)
DEPRECATED_OPERATION(SizeToContent)

Просмотреть файл

@ -114,11 +114,6 @@ partial interface HTMLMediaElement {
attribute MediaStream? srcObject;
// TODO: Remove mozPreservesPitch. (bug 1765201)
[Deprecated="MozPreservesPitchDeprecatedPrefix",
Pref="dom.media.mozPreservesPitch.enabled",
BinaryName="preservesPitch"]
attribute boolean mozPreservesPitch;
attribute boolean preservesPitch;
// NB: for internal use with the video controls:

Просмотреть файл

@ -3134,12 +3134,6 @@
value: true
mirror: always
# Whether HTMLMediaElement.mozPreservesPitch is enabled.
- name: dom.media.mozPreservesPitch.enabled
type: bool
value: false
mirror: always
# WebCodecs API
- name: dom.media.webcodecs.enabled
type: RelaxedAtomicBool

Просмотреть файл

@ -1 +1 @@
prefs: [dom.security.featurePolicy.experimental.enabled:true, dom.security.featurePolicy.header.enabled:true, dom.security.featurePolicy.webidl.enabled:true, dom.media.mozPreservesPitch.enabled:false]
prefs: [dom.security.featurePolicy.experimental.enabled:true, dom.security.featurePolicy.header.enabled:true, dom.security.featurePolicy.webidl.enabled:true]

Просмотреть файл

@ -12,9 +12,6 @@ function getPreservesPitch(audio) {
if ("preservesPitch" in HTMLAudioElement.prototype) {
return audio.preservesPitch;
}
if ("mozPreservesPitch" in HTMLAudioElement.prototype) {
return audio.mozPreservesPitch;
}
if ("webkitPreservesPitch" in HTMLAudioElement.prototype) {
return audio.webkitPreservesPitch;
}
@ -25,8 +22,6 @@ function getPreservesPitch(audio) {
function setPreservesPitch(audio, value) {
if ("preservesPitch" in HTMLAudioElement.prototype) {
audio.preservesPitch = value;
} else if ("mozPreservesPitch" in HTMLAudioElement.prototype) {
audio.mozPreservesPitch = value;
} else if ("webkitPreservesPitch" in HTMLAudioElement.prototype) {
audio.webkitPreservesPitch = value;
}