Skip to content

Commit

Permalink
Bug 1765201 - Remove mozPreservesPitch. r=emilio,devtools-reviewers,n…
Browse files Browse the repository at this point in the history
…chevobbe

Differential Revision: https://phabricator.services.mozilla.com/D182957
  • Loading branch information
mathewhodson committed Jul 11, 2023
1 parent b9c61cf commit 0c51148
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
module.exports = [
"InstallTrigger",
"farthestViewportElement",
"mozPreservesPitch",
"mozPressure",
"nearestViewportElement",
"onmouseenter",
Expand Down
1 change: 0 additions & 1 deletion dom/base/nsDeprecatedOperationList.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
5 changes: 0 additions & 5 deletions dom/webidl/HTMLMediaElement.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 0 additions & 6 deletions modules/libpref/init/StaticPrefList.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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]
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
if ("preservesPitch" in HTMLAudioElement.prototype) {
return audio.preservesPitch;
}
if ("mozPreservesPitch" in HTMLAudioElement.prototype) {
return audio.mozPreservesPitch;
}
if ("webkitPreservesPitch" in HTMLAudioElement.prototype) {
return audio.webkitPreservesPitch;
}
Expand All @@ -25,8 +22,6 @@
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;
}
Expand Down

0 comments on commit 0c51148

Please sign in to comment.