webcompat / web-bugs

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

finance-app.itunes.apple.com - Missing notification about "Connecting to the iTunes Store" #76155

Open webcompat-bot opened 3 years ago

webcompat-bot commented 3 years ago

URL: https://finance-app.itunes.apple.com/connecting-client?targetUrl=https%3A%2F%2Ffinance-app.itunes.apple.com%2Faccount%2Fbilling

Browser / Version: Firefox iOS 34.0 Operating System: iOS 14.4.2 Tested Another Browser: Yes Chrome

Problem type: Site is not usable Description: Page not loading correctly Steps to Reproduce: Hi I don’t know that me to do? Sorry!!!

Browser Configuration
  • None

From webcompat.com with ❤️

softvision-oana-arbuzov commented 3 years ago

Thanks for the report, I was able to reproduce the issue. There is no notification about "Connecting to the iTunes Store" on Firefox and Chrome, but it is shown on Safari. image

Tested with: Browser / Version: Firefox Daylight 34.0 (4920), Chrome 91.0.4472.80 Operating System: iPod touch iOS 12.5.3 (1136 x 640 pixels (~326 ppi pixel density)

Moving to Needsdiagnosis for further investigation.

ksy36 commented 3 years ago

This is happening due to incorrect UA agent parsing. I'm getting Uncaught TypeError: Cannot read property 'join' of null in both Firefox and Chrome iOS. It starts in this function:

_parseUserAgent: function() {
            var e = o(this, "userAgent")
            if ("" !== e) {
                var t = -1 !== e.indexOf("iOS/") ? e.split(/\s*[;)( ]\s*/) : e.split(/\s*[;)(]\s*/)
                if (t && t.length > 0) {
                    if (t[0].indexOf("/") > 0) {
                        var n = t[0].split("/");
                        -1 !== t[0].indexOf(p.APPLETV) ? (u(this, "appName", p.APPLETV),
                        u(this, "appVersion", n[0].match(/\d+/g).join(".")),
                        u(this, "osName", p.APPLETV),
                        u(this, "osVersion", n.pop())) : (u(this, "appName", n.shift()),
                        -1 !== e.indexOf(m.ASSISTANT) && u(this, "appName", t[5]),
                        u(this, "appVersion", n.shift()))
                    } else
                        u(this, "appVersion", t[0])
                    if (t.length > 1) {
                        var a = t[1]
                        if (-1 !== a.indexOf("iOS/")) {
                            var r = a.split("/")
                            u(this, "osName", r.shift()),
                            u(this, "osVersion", r.shift().replace("_", ".")),
                            u(this, "model", t[2].split("/").pop()),
                            u(this, "build", t[4].split("/").pop())
                        } else {
                            var i = t[2]
                            u(this, "osName", a),
                            -1 !== e.indexOf("Mac") ? (u(this, "osVersion", i.match(/\d+/g).join(".")),
                            -1 !== e.indexOf("AppleWebKit") && u(this, "webKitVersion", t[3].split("/").pop())) : -1 !== a.indexOf(p.LINUX) ? (-1 !== i.indexOf(p.ANDROID) && u(this, "osName", p.ANDROID),
                            u(this, "osVersion", i.match(/\d+/g).join(".")),
                            -1 !== e.indexOf("AppleWebKit") && u(this, "webKitVersion", t[5].split("/").pop())) : -1 !== a.indexOf(p.WINDOWS) && (u(this, "osVersion", a.split(" ").pop()),
                            u(this, "osName", a.replace(o(this, "osVersion")).trim()),
                            -1 !== e.indexOf("AppleWebKit") && u(this, "webKitVersion", t[4].split("/").pop()))
                        }
                    }
                }
            }
        },

The error is happening at this point: -1 !== e.indexOf("Mac") ? (u(this, "osVersion", i.match(/\d+/g).join(".")),

So this a site issue, moving to needscontact

webcompat-bot commented 3 years ago

Generate outreach template