D23568: Call window.postMessage with targetOrigin

Kai Uwe Broulik noreply at phabricator.kde.org
Thu Aug 29 16:05:43 BST 2019


broulik created this revision.
broulik added reviewers: Plasma, ognarb, fvogt, davidedmundson.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
broulik requested review of this revision.

REVISION SUMMARY
  According to documentation [1] `targetOrigin` is a required argument. Apparently it has to be "*" for messaging to an extension. Neither Firefox, nor Chrome cared about the lack of this argument but Waterfox (which we don't officially support and I didn't even know existed) complains.
  
  [1] https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage
  
  BUG: 411423

TEST PLAN
  - Waterfox has working YouTube controls now
  - Firefox and Chrome behave unchanged
  
  (I'm not going to do an "emergency release" as Waterfox isn't officially supported by us)

REPOSITORY
  R856 Plasma Browser Integration

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

AFFECTED FILES
  extension/content-script.js

To: broulik, #plasma, ognarb, fvogt, davidedmundson
Cc: plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20190829/4fa73775/attachment.html>


More information about the Plasma-devel mailing list