Open Bug 1898952 Opened 6 months ago Updated 2 months ago

digits.t-mobile.com - Firefox is not a recommended browser

Categories

(Web Compatibility :: Site Reports, defect, P1)

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: ksenia, Assigned: twisniewski)

References

(Depends on 1 open bug, )

Details

(Keywords: webcompat:needs-contact, webcompat:site-report, webcompat:sitepatch-applied, Whiteboard: [webcompat-source:web-bugs])

User Story

platform:windows,mac,linux,android
impact:blocked
configuration:general
affects:all
branch:release

Attachments

(1 file)

Environment:
Operating system: Linux
Originally reported Firefox version: Firefox 111.0
Last reproduced with the following UA: Mozilla/5.0 (X11; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0
Platforms reproduced on: windows,mac,linux,android

Steps to reproduce:
The site claims it wont work in Firefox, doesn't let me log in until I switch my user agent to Chrome

Actual Behavior:
Browser unsupported

Created from https://github.com/webcompat/web-bugs/issues/119767

This is the code they're using to sniff the UA:

    t.supportBrowser = function () {
      if (c()) return !0;
      if (r && !r.mobile) {
        const e = r.brands;
        if (e.length > 0) for (const t of e) if (['Google Chrome',
        'Microsoft Edge'].includes(t.brand)) return !0
      }
      return !1
    },

And predictably, r is undefined, because:

const r = navigator.userAgentData;

So we need to spoof userAgentData to have Google Chrome or Microsoft Edge in its brands.

Assignee: nobody → twisniewski
Status: NEW → ASSIGNED
Keywords: leave-open
Pushed by twisniewski@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b0d68e2ff13e Add JS intervention for digits.t-mobile.com; r=denschub,webcompat-reviewers
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: