Bug 480228 - TypeError: Error in invocation of browserAction.setBadgeBackgroundColor(object details, optional function callback): Error at parameter 'details': Missing required property 'color'.
Summary: TypeError: Error in invocation of browserAction.setBadgeBackgroundColor(objec...
Status: RESOLVED FIXED
Alias: None
Product: plasma-browser-integration
Classification: Plasma
Component: Chrome (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Kai Uwe Broulik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-23 14:45 UTC by Benjamin Flesch
Modified: 2025-07-25 13:55 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Flesch 2024-01-23 14:45:33 UTC
SUMMARY
***
Error handling response: TypeError: Error in invocation of browserAction.setBadgeBackgroundColor(object details, optional function callback): Error at parameter 'details': Missing required property 'color'.
extension-mpris.js:102 (anonymous function)
***

I think it does not like the color: null. Maybe put a try{}catch{} around it?

STEPS TO REPRODUCE
1. run extension in chrome Version 121.0.6167.71 (Official Build) Arch Linux (64-bit)
2. enable "collect errors" in chrome://extensions/?id=cimiefiiaegbelhefglklhhakcgmhkai
3. visit any website with audio player

OBSERVED RESULT
no error message

EXPECTED RESULT
error message

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Kai Uwe Broulik 2025-07-25 13:55:30 UTC
Should be fixed by https://invent.kde.org/plasma/plasma-browser-integration/-/commit/973055aa727788b1dc6840acf29e71124f400be0

Added a try..catch around it

Firefox specifies null as "reset to default" but Chrome apparently does not