fune/browser/components/extensions
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
..
schemas Backed out changeset 0fd006bf6f9d (bug 1308058) for timeouts in browser_ext_sessions.js 2016-10-28 15:45:29 +02:00
test Bug 1299411 - Pass port parameter to port.onMessage r=kmag 2016-09-24 11:34:26 +02: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
ext-bookmarks.js Bug 1287010 - Make environment of Context explicit. r=billm 2016-08-16 15:51:50 -07:00
ext-browserAction.js Bug 1287007 - Move part of browserAction and pageAction to child r=billm 2016-09-11 04:18:35 -07:00
ext-c-browserAction.js Bug 1287007 - Move part of browserAction and pageAction to child r=billm 2016-09-11 04:18:35 -07:00
ext-c-contextMenus.js Bug 1287007 - Fix "onclick" in contextMenus, to child. r=billm 2016-09-12 18:26:03 -07:00
ext-c-pageAction.js Bug 1287007 - Move part of browserAction and pageAction to child r=billm 2016-09-11 04:18:35 -07:00
ext-c-tabs.js Bug 1298979 - move tabs.sendMessage/connect to child process r=billm 2016-08-28 20:07:46 -07:00
ext-commands.js Bug 1287010 - Make environment of Context explicit. r=billm 2016-08-16 15:51:50 -07:00
ext-contextMenus.js Bug 1287007 - Fix "onclick" in contextMenus, to child. r=billm 2016-09-12 18:26:03 -07:00
ext-desktop-runtime.js
ext-history.js Bug 1287010 - Make environment of Context explicit. r=billm 2016-08-16 15:51:50 -07:00
ext-pageAction.js Bug 1287007 - Move part of browserAction and pageAction to child r=billm 2016-09-11 04:18:35 -07:00
ext-tabs.js Bug 1287007 - Make window.close in extension pages async r=billm 2016-09-13 20:26:18 -07:00
ext-utils.js Backed out changeset 0fd006bf6f9d (bug 1308058) for timeouts in browser_ext_sessions.js 2016-10-28 15:45:29 +02:00
ext-windows.js Bug 1312055: Fix various eslint errors. r=standard8 2016-10-21 10:03:51 -07:00
extension-mac-panel.css Bug 1280128: [webext] Use transparent backgrounds and correct border radii for popup browsers. r=bwinton ui-r=maritz 2016-08-09 12:08:04 -07:00
extension-mac.css
extension-win-panel.css Bug 1280128: [webext] Use transparent backgrounds and correct border radii for popup browsers. r=bwinton ui-r=maritz 2016-08-09 12:08:04 -07:00
extension.css Bug 1280128: [webext] Use transparent backgrounds and correct border radii for popup browsers. r=bwinton ui-r=maritz 2016-08-09 12:08:04 -07:00
extension.svg
extensions-browser.manifest Backed out changeset 0fd006bf6f9d (bug 1308058) for timeouts in browser_ext_sessions.js 2016-10-28 15:45:29 +02:00
jar.mn Backed out changeset 0fd006bf6f9d (bug 1308058) for timeouts in browser_ext_sessions.js 2016-10-28 15:45:29 +02:00
moz.build Backed out 2 changesets (bug 1296900) for mochitest failures in test_ext_all_apis.html a=backout 2016-09-23 16:15:05 -07:00