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?
Asked
Active
Viewed 1.3k times
14
-
1According to [this forum post](https://pyd.io/f/topic/latest-firefox-33-0-2-update-not-working-with-my-pydio-5-2-5-server/) it was broken in FF 33.0 on Windows and Ubuntu, but fixed in 33.1. Have you updated to the latest version? – Rhumborl Dec 08 '14 at 23:05
-
I tried but it didn't help. – user3148225 Dec 09 '14 at 02:27
-
This issue still exists for FireFox 37.0.1. A console error "window.controllers is deprecated. Do not use it for UA detection." is thwon up even for a very simple js page – MarcoZen May 04 '15 at 11:12
2 Answers
27
That's because of your medieval firefox extension you have installed. LiveHTTPHeaders in my case.

alex91ivanov
- 389
- 3
- 6
-
1Just out of curiosity: do you still use LiveHTTPHeaders or have you found one that doesn’t throw this error? – Manngo Apr 25 '17 at 04:17
-
1I don't know if I'd call it "medieval". It's still a handy extension from time to time - especially whenever I need to follow the entire conversation through a zillion redirects, which is something the Firefox Network tab doesn't do without altering the browser's configuration. Google Chrome does temporary persistent network tracing better via a nice toggle button on its Network tab. The best solution in my case is to leave the extension installed and ignore this warning since it's not actually an error. – CubicleSoft Apr 28 '17 at 04:37
1
You may just need to visit about:config
and set the loglevel
to all
Please refer to all options available in config here

rene
- 41,474
- 78
- 114
- 152
-
-
A link to a solution is welcome, but please ensure your answer is useful without it: Add [context around the link](https://meta.stackexchange.com/questions/8231/are-answers-that-just-contain-links-elsewhere-really-good-answers/8259#8259) so your fellow users will have some idea what it is and why it’s there, then quote the most relevant part of the page you're linking to in case the target page is unavailable. [Answers that are little more than a link may be deleted.](https://stackoverflow.com/help/deleted-answers) – Noel Widmer Aug 14 '17 at 12:38