+ 33

The Components object is deprecated.

Firefox , in the Developer's tools console tab shows , "The Components object is deprecated. It will soon be removed". Why this warning is coming and how to resolve it?

3rd Mar 2019, 10:54 AM
Jaseem Akhtar
6 Réponses
+ 19
Seniru Pasan hey ,i know what deprecated means. I am asking ,why the warning is coming because of what it is showing? . Ok Thanks for your answer .
3rd Mar 2019, 12:43 PM
Jaseem Akhtar
+ 17
Seniru Pasan Ok thanks. But I'm not using any libraries just simple HTML page and Plain JS.
3rd Mar 2019, 1:56 PM
Jaseem Akhtar
+ 5
Deprecated means that the object or method is put of date/old fashioned/or dangerous to implement and there is a good alternative available. Simply type the deprecation warning in google and you will get the things to get . If you are using an external library then go to their website or forum and ask or search this
3rd Mar 2019, 12:37 PM
Seniru
Seniru - avatar
+ 5
Offhand I believe the message you mention is technically a warning not an error. This should be gone in an update. Even the newest versions of Firefox show it, even tho it shouldn't be shown as an error more as a warning.
3rd Mar 2019, 12:38 PM
TrueJu
TrueJu - avatar
+ 4
You are getting this warning because you invoked a method belonging to the Components object. methods belonging to this object include classes, classesByID. See this for more explanation https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Language_Bindings/Components_object
3rd Mar 2019, 8:45 PM
Ore
Ore - avatar
+ 3
JaseemAkhtar I have said the solution in my post. And TrueJu has an answer for why it is coming
3rd Mar 2019, 12:44 PM
Seniru
Seniru - avatar