Bug 418487

Summary: Uncaught Promise Exception
Product: [Plasma] plasma-browser-integration Reporter: Michael J. Ryan <tracker1>
Component: ChromeAssignee: Kai Uwe Broulik <kde>
Status: RESOLVED FIXED    
Severity: minor    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Michael J. Ryan 2020-03-05 00:43:28 UTC
SUMMARY

I have the extension installed into my chrome profile, running KDE at home... at work (Windows), I see the following error in my dev tools...

```
(index):1 Uncaught (in promise) {rejected: true, message: {…}}
Promise.then (async)
(anonymous) @ content-script.js:89
Promise.then (async)
(anonymous) @ content-script.js:61
```

Should add a catch handler for: SettingsUtils.get().then(...)
Comment 1 Kai Uwe Broulik 2020-04-09 17:23:35 UTC
Git commit 27710b437aff19ed22b9d540f1ae356694450d68 by Kai Uwe Broulik.
Committed on 09/04/2020 at 17:22.
Pushed by broulik into branch 'master'.

Catch getSubsystemStatus failing on initial load

Silences an error when host is not connected on e.g. unsupported OS.
We could perhaps also check if the OS is supported but needs further testing since
getPlatformInfo is asynchronous and we want those feature to be available as early
in the website DOM/API as possible.

M  +3    -0    extension/content-script.js

https://commits.kde.org/plasma-browser-integration/27710b437aff19ed22b9d540f1ae356694450d68