gecko-dev/toolkit
Rob Wu ca2c1cf947 Bug 1299411 - Pass port parameter to port.onMessage r=kmag
This should have been a part of bug 1298810, but that only set the
argument for native messaging ports, which does not use Port from
ExtensionUtils. The port parameter must also be included in runtime's
Port.onMessage to avoid regressions when the port implementations are
unified and native messaging starts using runtime's Port.

Note that starting from this commit, multiple onMessage listeners
receive the same (cloned) message instead of a new clone per listener.
This is a side effect of using `fire.withoutClone` instead of `fire`:
`fire` clones all parameters, but ports are not cloneable so we have
to use `fire.withoutClone` instead. This change with regards to message
cloning is fully compatible with Chrome's messaging API (which also
passes the same message object to all `port.onMessage` calls).

MozReview-Commit-ID: AUDuUKHkXCM

--HG--
extra : rebase_source : b91d701bba21f376935961a6eeb1a8489ac5591b
2016-09-24 11:34:26 +02:00
..
components Bug 1299411 - Pass port parameter to port.onMessage r=kmag 2016-09-24 11:34:26 +02:00
content Merge m-i to m-c, a=merge 2016-10-25 22:03:31 -07:00
crashreporter Bug 1280477 - Import jsoncpp into the source tree and integrate it into the build r=ted 2016-10-13 11:19:05 +02:00
forgetaboutsite Bug 1251003 - Change .eslintrc files to .eslintrc.js to avoid obsolete config file format. r=mossop 2016-10-18 08:38:10 +01:00
identity Bug 1251003 - Change .eslintrc files to .eslintrc.js to avoid obsolete config file format. r=mossop 2016-10-18 08:38:10 +01:00
library bug 1305731 - Revert workaround from bug 1301751 now that we have updated to Rust 1.12. r=froydnj 2016-10-17 10:47:30 -04:00
locales Bug 1307445 part A - Don't ever show "A plugin is needed to display this content." or "This plugin is disabled." - Just always use fallback content or empty content. r=mconley+sebastian 2016-10-18 08:42:12 -04:00
modules Merge inbound to m-c. a=merge 2016-10-23 13:16:27 -04:00
mozapps Bug 1252871 - Add support for runtime.onInstalled r=aswan 2016-10-19 10:38:29 +01:00
pluginproblem Fix merge conflict bustage for removed file from bug 1307445 part A. 2016-10-18 09:32:57 -04:00
profile Bug 1251003 - Change .eslintrc files to .eslintrc.js to avoid obsolete config file format. r=mossop 2016-10-18 08:38:10 +01:00
system Bug 862395 - Part 1: Add requireInteraction property to web notifications. r=baku 2016-10-12 17:27:40 -07:00
themes Bug 1307445 - remove last CSS references to :-moz-type-unsupported, r=mconley. 2016-10-19 16:25:05 +02:00
xre Bug 1268733 - Move sandbox telemetry / crash annotation code from mozsandbox to libxul. r=haik 2016-10-26 16:57:10 -06:00
.eslintrc.js Bug 1251003 - Change .eslintrc files to .eslintrc.js to avoid obsolete config file format. r=mossop 2016-10-18 08:38:10 +01:00
moz.build Bug 1312143 - Delete toolkit/obsolete. r=John-Galt 2016-10-24 18:23:24 -07:00
moz.configure Bug 1310027 - Remove DOM/mobilemessage and related code. r=Ehsan 2016-10-17 17:26:51 -07:00
nss.configure Bug 1295480 - Move --enable-dbm to python configure. r=chmanchester 2016-08-17 11:01:44 +09:00
toolkit.mozbuild Bug 1303757 - Build system changes for unified fuzzing interface. r=glandium 2016-10-17 22:19:03 +02:00