Error-Handler: Ignore errors if the browser is outdated. Fixes #644
datenanfragen/website
Run #8290
Run Properties:
Passed #8290 •
71561ac40b: Don't directly use explanation in innerHTML
| Project |
datenanfragen/website
|
| Branch Review |
m_deprecated_error
|
| Run status |
|
| Run duration | 05m 03s |
| Commit |
|
| Committer | Benjamin Altpeter |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
0
|
|
|
0
|
|
|
8
|
|
|
0
|
|
|
80
|
| View all changes introduced in this branch ↗︎ | |
Thanks! But my concern is that we should only prevent users with unsupported browsers from reporting errors, not from seeing them. That would only lead to the site being inexplicably broken for them.
My suggestion would be to still show the modal but not the sections for reporting the error but instead display a warning that this is likely caused by an outdated browser.
Thanks! But my concern is that we should only prevent users with unsupported browsers from reporting errors, not from seeing them. That would only lead to the site being inexplicably broken for them.
But we are doing the same with extension users. Should we change the behaviour there as well? But I don't think we really want to support debugging weird extensions..
The extension errors usually are meaningless for us (they only occur in the extensions' content scripts) and don't affect our site which continues to work fine.
That's not the case here, though. If the user's browser doesn't support the functions you check for, features on our site will break. If we don't show any notice to the user, the site will just be inexplicably broken for them. We should tell them that the error was caused by their outdated browser and that they need to switch to a supported browser to use our site.
Do we still want this? I'd like to see this merged, to reduce possible future overhead in our inbox.
I tried to test this using BrowserStack. In Firefox 62 (last version to not have Object.fromEntries), our JS is just completely broken, not even the error handler loads. I didn't even test Firefox 12 (last version not to have Map).
But in Firefox 103 (last version without Array.findLast), the site works and as does this change: