Firefox window.controllers is deprecated. Do not use it for UA detection

user3148225 picture user3148225 · Dec 8, 2014 · Viewed 11.5k times · Source

My website works in Chrome, IE, and Safari, but when I load it in Firefox, Firefox complains saying "window.controllers is deprecated. Do not use it for UA detection." This code is in the OpenLayers API (OpenLayers 2, latest version), so I can't change it. Is there something I can put into my code so that it'll work in Firefox?

Answer

alex91ivanov picture alex91ivanov · Aug 2, 2015

That's because of your medieval firefox extension you have installed. LiveHTTPHeaders in my case.