Change Firefox Detection Method

Instead of using `navigator.userAgent` string to test for Mozilla Firefox (Which can be spoofed), it may be more robust to use the proprietary `InstallTrigger` variable present in all gecko-based browsers, including Firefox.

Source: <https://developer.mozilla.org/en-US/docs/XPInstall_API_Reference/InstallTrigger_Object>