<table><tr><td style="">davidedmundson created this revision.<br />Restricted Application added a project: Plasma.<br />Restricted Application added a subscriber: plasma-devel.<br />davidedmundson requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D13618">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>PBI has two modes for interacting with media + MPRIS, watching the DOM<br />
tree from it's own JS context for normal controls and a massive<br />
workaround for crossing contexts to shim the Media Sessions API for<br />
getting metadata. We currently inject this on every page.</p>
<p>This patch moves that to only be when we find a valid audio/video<br />
element, reducing work and risk of breakages on most sites.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Page that used to fail now works<br />
Still get thumbnails on media sessions test page</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R856 Plasma Browser Integration</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D13618">https://phabricator.kde.org/D13618</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>extension/content-script.js</div></div></div><br /><div><strong>To: </strong>davidedmundson<br /><strong>Cc: </strong>plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>