broulik created this revision. broulik added reviewers: Plasma, fvogt. Herald added a project: Plasma. Herald added a subscriber: plasma-devel. broulik requested review of this revision.
REVISION SUMMARY The spec says it must be called with a details callback [1] [1] https://w3c.github.io/mediasession/#callbackdef-mediasessionactionhandler TEST PLAN Given we don't support seeking, only the bare "details" with the action is implemented. navigator.setActionHandler("nexttrack", (details) => { console.log("next track", details); }); prints "next track nexttrack" now instead of "next track undefined" REPOSITORY R856 Plasma Browser Integration REVISION DETAIL https://phabricator.kde.org/D23091 AFFECTED FILES extension/content-script.js To: broulik, #plasma, fvogt Cc: plasma-devel, LeGast00n, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart