D23568: Call window.postMessage with targetOrigin

Fabian Vogt noreply at phabricator.kde.org
Thu Aug 29 17:48:03 BST 2019


fvogt added a comment.


  In D23568#522065 <https://phabricator.kde.org/D23568#522065>, @broulik wrote:
  
  > What we could also do which I just realized is that we could send a `CustomEvent` to the `window` instead of using `postMessage`
  >  Basically what we did before except without a wrapper `div` as while the JavaScript contexts are different, events posted to `window` are visible from the content script.
  
  
  That does sound much nicer actually. Looking at the documentation it seems like that's intended as the main way for communication with extensions even.

REPOSITORY
  R856 Plasma Browser Integration

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

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/ca943d64/attachment-0001.html>


More information about the Plasma-devel mailing list