Bug 480228

Summary: TypeError: Error in invocation of browserAction.setBadgeBackgroundColor(object details, optional function callback): Error at parameter 'details': Missing required property 'color'.
Product: [Plasma] plasma-browser-integration Reporter: Benjamin Flesch <benjaminflesch>
Component: ChromeAssignee: Kai Uwe Broulik <kde>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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