diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-20 17:39:09 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-20 17:39:09 +0200 |
commit | 0b2e4f1afad41e638bce2c631c7bc895ba6c0c69 (patch) | |
tree | 0fdada34ddfa883d7e36142d0aa2084d1f343b35 /toolkit/components/webextensions/ExtensionCommon.jsm | |
parent | 20a3f8c006445b176fa8559f6529c2cf3cb75b0d (diff) | |
download | UXP-0b2e4f1afad41e638bce2c631c7bc895ba6c0c69.tar UXP-0b2e4f1afad41e638bce2c631c7bc895ba6c0c69.tar.gz UXP-0b2e4f1afad41e638bce2c631c7bc895ba6c0c69.tar.lz UXP-0b2e4f1afad41e638bce2c631c7bc895ba6c0c69.tar.xz UXP-0b2e4f1afad41e638bce2c631c7bc895ba6c0c69.zip |
moebius#217: WebExtensions - Implemented "runtime.onMessageExternal"/"onConnectExternal"
https://github.com/MoonchildProductions/moebius/pull/217
Diffstat (limited to 'toolkit/components/webextensions/ExtensionCommon.jsm')
-rw-r--r-- | toolkit/components/webextensions/ExtensionCommon.jsm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/toolkit/components/webextensions/ExtensionCommon.jsm b/toolkit/components/webextensions/ExtensionCommon.jsm index a339fb27e..9ec84b5c7 100644 --- a/toolkit/components/webextensions/ExtensionCommon.jsm +++ b/toolkit/components/webextensions/ExtensionCommon.jsm @@ -197,10 +197,9 @@ class BaseContext { * @returns {Promise} */ sendMessage(target, messageName, data, options = {}) { - options.recipient = options.recipient || {}; + options.recipient = Object.assign({extensionId: this.extension.id}, options.recipient); options.sender = options.sender || {}; - options.recipient.extensionId = this.extension.id; options.sender.extensionId = this.extension.id; options.sender.contextId = this.contextId; |