Bug 497617

Summary: Plasma Integration breaks PreMID functionality on YouTube Music (Attempt to postMessage on disconnected port)
Product: [Plasma] plasma-browser-integration Reporter: Krishnan Shankar <krishnans2006>
Component: FirefoxAssignee: Kai Uwe Broulik <kde>
Status: REPORTED ---    
Severity: major    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: NixOS   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Krishnan Shankar 2024-12-17 17:46:42 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY
When Plasma Integration is enabled, PreMID (another extension) stops working in certain situations.

STEPS TO REPRODUCE
1. Install Plasma Integration
2. Install PreMID and enable the YouTube Music presence
3. Open YouTube Music
4. Play any song

OBSERVED RESULT
PreMID does not show the music as playing, with an "Attempt to postMessage on disconnected port" error.

EXPECTED RESULT
PreMID works as expected

SOFTWARE/OS VERSIONS
Operating System: NixOS 25.05
KDE Plasma Version: 6.2.3
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel Version: 6.6.62 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Comment 1 Krishnan Shankar 2024-12-18 01:35:28 UTC
Here's a helpful GitHub comment that goes into further details: https://github.com/PreMiD/Presences/issues/8574#issuecomment-2249045241
Comment 2 Bug Janitor Service 2025-07-25 08:11:03 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-browser-integration/-/merge_requests/152