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

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

Using
window.location.href = "mailto:" + strMailto;

will throw on the console:
window.controllers is deprecated. Do not use it for UA detection.

Also the msg is thrown, a compose window is opened with the mailto
address given with 'strMailto'.
I tried to find an alternative, but Dr.G doesn't give one for that. Any
idea how to replace the "window.location"?

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

On 02.10.2017 00:29, gNeandr wrote:

> Using
> window.location.href = "mailto:" + strMailto;
>
> will throw on the console:
> window.controllers is deprecated. Do not use it for UA detection.
>
> Also the msg is thrown, a compose window is opened with the mailto
> address given with 'strMailto'.
> I tried to find an alternative, but Dr.G doesn't give one for that. Any
> idea how to replace the "window.location"?
>
> This is on Thunderbird:
> Mozilla/5.0 (X11; Linux x8664; rv:52.0) Gecko/20100101 Thunderbird/52.3.0_

Just for completeness:
Starting Thunderbird in safe mode (which disables all extensions!) and
executing the location.ref as mentioned will throw that
“window.controllers is deprecated.” also!
So it seems to be a general situation, maybe not a problem … but good to
know and probably there is no alternative … some what strange …
_______________________________________________
dev-apps-thunderbird mailing list
[hidden email]https://lists.mozilla.org/listinfo/dev-apps-thunderbird