From 7eba459fca354dd5829ca4f9cafa7f17673bc88d Mon Sep 17 00:00:00 2001 From: Mathew Hodson Date: Sat, 18 Mar 2023 11:45:36 +0000 Subject: [PATCH] Bug 1822955 - Disable mozImageSmoothingEnabled by default. r=emilio Differential Revision: https://phabricator.services.mozilla.com/D172860 --- dom/webidl/CanvasRenderingContext2D.webidl | 1 + modules/libpref/init/StaticPrefList.yaml | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/dom/webidl/CanvasRenderingContext2D.webidl b/dom/webidl/CanvasRenderingContext2D.webidl index 102c34efa5a7..ed5e6c0ed8fa 100644 --- a/dom/webidl/CanvasRenderingContext2D.webidl +++ b/dom/webidl/CanvasRenderingContext2D.webidl @@ -46,6 +46,7 @@ interface CanvasRenderingContext2D { // image smoothing mode -- if disabled, images won't be smoothed // if scaled. [Deprecated="PrefixedImageSmoothingEnabled", + Pref="dom.mozImageSmoothingEnabled.enabled", BinaryName="imageSmoothingEnabled"] attribute boolean mozImageSmoothingEnabled; diff --git a/modules/libpref/init/StaticPrefList.yaml b/modules/libpref/init/StaticPrefList.yaml index b655bef82d77..53abaad3e900 100644 --- a/modules/libpref/init/StaticPrefList.yaml +++ b/modules/libpref/init/StaticPrefList.yaml @@ -2158,6 +2158,12 @@ # Prefs starting with "dom." #--------------------------------------------------------------------------- +# Whether CanvasRenderingContext2D.mozImageSmoothingEnabled is enabled. +- name: dom.mozImageSmoothingEnabled.enabled + type: bool + value: false + mirror: always + # Allow cut/copy - name: dom.allow_cut_copy type: bool