Bug 229980

Summary: 101edu.co is blocking safari and WebKitView browsers
Product: WebKit Reporter: karl <karl+webkit>
Component: EvangelismAssignee: Jon Davis <jond>
Status: NEW ---    
Severity: Normal CC: jond, karlcow, kevin_neal, smoley, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   

Description karl 2021-09-06 20:41:27 PDT
Browser / Version: Safari 13.1
Operating System: Mac OS X 10.15.4
Tested Another Browser: Yes Safari

Problem type: Site is not usable
Description: Browser unsupported
Steps to Reproduce:

Steps to reproduce.

1. Go to https://app.101edu.co/lti?lti=true

Expected:
Access the site

Actual:
Got the following message

"This browser is currently unsupported. Please use Chrome or Firefox for best results."

Diagnosis:

This is done by user agent detection.

The trigger is here. 

```js
export default function SupportedBrowserWall(props) {
    if (isSupported()) {
        return props.children;
    } else {
        return renderUnsupportedView();
    }
}
```

with 

```js
function isSupported() {
    if (OS != 'web') {
        return true;
    }

    let agent = window.navigator.userAgent;
    if (agent.indexOf("Version") != -1 && agent.indexOf("Safari") != -1) {
        return false;
    }
    return true;
}
```

Not sure what led them to block it. 
Initially reported by a user on the webcompat project
https://github.com/webcompat/web-bugs/issues/84776
Comment 1 Kevin Neal 2021-09-09 14:31:54 PDT
Thank you for filing. The appropriate engineers have been copied.
Comment 2 Radar WebKit Bug Importer 2021-09-13 16:47:39 PDT
<rdar://problem/83078414>