Bug 418487 - Uncaught Promise Exception
Summary: Uncaught Promise Exception
Status: RESOLVED FIXED
Alias: None
Product: plasma-browser-integration
Classification: Plasma
Component: Chrome (other bugs)
Version First Reported In: unspecified
Platform: Microsoft Windows Microsoft Windows
: NOR minor
Target Milestone: ---
Assignee: Kai Uwe Broulik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-05 00:43 UTC by Michael J. Ryan
Modified: 2020-04-09 17:23 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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