From a996d76d0ce782b4ff26aca82f7084dbe82d1c0d Mon Sep 17 00:00:00 2001 From: Tooru Fujisawa Date: Wed, 21 Jun 2023 05:45:23 +0000 Subject: [PATCH] Bug 1839355 - Add deprecation warning to Services.jsm. r=Standard8 Differential Revision: https://phabricator.services.mozilla.com/D181463 --- toolkit/modules/Services.jsm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/toolkit/modules/Services.jsm b/toolkit/modules/Services.jsm index 65fba8c10599..3d01f7afdec6 100644 --- a/toolkit/modules/Services.jsm +++ b/toolkit/modules/Services.jsm @@ -5,3 +5,7 @@ const Services = globalThis.Services; var EXPORTED_SYMBOLS = ["Services"]; + +console.warn( + "Services.jsm will be removed by Firefox 117 or 118. Use the Services global variable instead" +);