D21112: Support message response and reply callbacks

Kai Uwe Broulik noreply at phabricator.kde.org
Thu Jun 13 18:28:10 BST 2019


broulik planned changes to this revision.
broulik added a comment.


  Ok, I have an idea.
  `browser.runtime.sendMessage` (Firefox) returns a promise that is fulfilled when a reply is sent. Chrome instead uses a callback function in `chrome.runtime.sendMessage`
  I'm gonna rework the `sendMessage()` to always return a Promise (makes for nicer code) by either forwarding the promise from Firefox or creating one forwarding the callback in Chrome

REPOSITORY
  R856 Plasma Browser Integration

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

To: broulik, #plasma, fvogt
Cc: plasma-devel, LeGast00n, ericadams, jraleigh, 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/20190613/75fa16e1/attachment.html>


More information about the Plasma-devel mailing list