webcompat / web-bugs

A place to report bugs on websites.
https://webcompat.com
Mozilla Public License 2.0
741 stars 63 forks source link

my.murj.com - Firefox is not a recommended browser #120112

Closed webcompat-bot closed 4 months ago

webcompat-bot commented 1 year ago

URL: https://my.murj.com

Browser / Version: Firefox 110.0 Operating System: Windows 10 Tested Another Browser: Yes Edge

Problem type: Site is not usable Description: Browser unsupported Steps to Reproduce: Only chrome is supported. When logging in from a non-chromium browser, the website says "You are using BROWSER Firefox. Please download Chrome." and refuses to let you log in.

Browser Configuration
  • None

From webcompat.com with ❤️

softvision-raul-bucata commented 1 year ago

We appreciate your report. I was able to reproduce the issue.

Screenshot_1

Tested with:

Browser / Version: Firefox Release 111.0.1 (64-bit)/ Firefox Nightly 113.0a1 (2023-03-26) (64-bit) /Chrome Version 111.0.5563.111 (Official Build) (64-bit) Operating System: Windows 10 PRO x64

Notes:

  1. Reproducible regardless of the status of ETP.
  2. Reproducible on the latest build of Firefox Nightly and Release.
  3. Works as expected using :

Moving this to NeedsDiagnosis for further investigations.

[qa_13/2023]

softvision-raul-bucata commented 11 months ago

@karlcow Safari is also affected.

Tested with:

Browser / Version: Safari 16.2 Operating System: Mac Ventura 13.1

[inv_43/2023]

karlcow commented 11 months ago

The error message is created by: https://my.murj.com/static/js/46-chunk.4f4b83a6013d651f41ca.js

void 0) : null, this.props.userStore.wrongBrowserMsg ? (0, o.jsx)("div", {
                                            className: "alert alert-danger fadeIn",
                                            children: (0, o.jsx)("strong", {
                                                children: this.props.userStore.wrongBrowserMsg
                                            }, void 0)
                                        }

which itself is triggered by https://my.murj.com/static/js/main.1faeb74ced767ee9b65e.js

            componentDidMount()
            {
                const {userStore: e} = this.props;
                this.setState({
                    username: "",
                    password: ""
                }),
                this.props.myDeskStore.reset(),
                e.checkBrowser() && !e.errors ? e.loadProfile().then((() => {
                    console.log("Login.componentDidMount(), loaded UserProfile. User is already authenticated, will redirect into app.")
                })).catch((() => {
                    this.closeErrorMessage()
                })).finally((() => this.componentIsMounted = !0)) : this.componentIsMounted = !0
            }

and

                    checkBrowser()
                    {
                        const e = !!window.chrome && (!!window.chrome.webstore || !!window.chrome.runtime) || !!navigator.userAgent && navigator.userAgent.indexOf("Chrome") >= 0 || navigator.userAgent.indexOf("CrOS") >= 0 || this.isBridgeApp;
                        if (!e) {
                            let e;
                            if (!!window.opr || !!window.opera || navigator.userAgent.indexOf(" OPR/") >= 0)
                                e = "Opera";
                            else {
                                if ("undefined" != typeof InstallTrigger)
                                    e = "Firefox";
                                else {
                                    if (Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor") > 0)
                                        e = "Safari";
                                    else {
                                        e = !!window.StyleMedia ? "Edge" : "Unknown: " + navigator.userAgent
                                    }
                                }
                            }
                            this.wrongBrowserMsg = `You are using BROWSER ${e}. Please download Chrome.`
                        }
                        return e
                    }
                }
            },

This is a deliberate choice of user agent sniffing from them without any attempt to test capabilities of the browser.

karlcow commented 11 months ago

They seem to propose a device system for cardiac monitoring https://murj.com/

Not sure, could be a dependency on one of the FUGU APIs.

karlcow commented 11 months ago

Contact information is at https://www.murj.com/contact-murj/

ksy36 commented 4 months ago

Moved to bugzilla as https://bugzilla.mozilla.org/show_bug.cgi?id=1898949.