Use user agent string to detect Firefox
https://bugzilla.mozilla.org/show_bug.cgi?id=1754441
InstallTrigger is going away. This line currently issues a warning and is likely to entirely not work in the future. The proposed code work I believe should work also with Firefox forks such as IceWeasel