davidedmundson created this revision. Restricted Application added a project: Plasma. Restricted Application added a subscriber: plasma-devel. davidedmundson requested review of this revision.
REVISION SUMMARY PBI has two modes for interacting with media + MPRIS, watching the DOM tree from it's own JS context for normal controls and a massive workaround for crossing contexts to shim the Media Sessions API for getting metadata. We currently inject this on every page. This patch moves that to only be when we find a valid audio/video element, reducing work and risk of breakages on most sites. TEST PLAN Page that used to fail now works Still get thumbnails on media sessions test page REPOSITORY R856 Plasma Browser Integration BRANCH master REVISION DETAIL https://phabricator.kde.org/D13618 AFFECTED FILES extension/content-script.js To: davidedmundson Cc: plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart