fvogt added inline comments.

INLINE COMMENTS

> content-script.js:687
> +                    // still be able to handle it
> +                    if (!["play", "pause", "seekbackward", "seekforward", 
> "previoustrack", "nexttrack", "skipad", "stop"].includes(name)) {
> +                        throw new TypeError("Failed to execute 
> 'setActionHandler' on 'MediaSession': The provided value '" + name + "' is 
> not a valid enum value of type MediaSessionAction.");

Why add this check and not just save the exception thrown from 
`oldSetActionHandler` for throwing later?

Otherwise the addon controls which browser functionality is accessible.

REPOSITORY
  R856 Plasma Browser Integration

REVISION DETAIL
  https://phabricator.kde.org/D23090

To: broulik, #plasma, fvogt
Cc: plasma-devel, LeGast00n, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, 
ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, 
apol, mart

Reply via email to