+ 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?
6 Answers
+ 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 .
+ 17
Seniru Pasan Ok thanks. But I'm not using any libraries just simple HTML page and Plain JS.
+ 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
+ 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.
+ 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
+ 3
JaseemAkhtar I have said the solution in my post. And TrueJu has an answer for why it is coming