gecko-dev/toolkit
Rob Wu 0c66504d77 Bug 1287007 - Fix "onclick" in contextMenus, to child. r=billm
Main thing: Making contextMenus implementation webext-oop compatible.

Preparation:

- Add getParentEvent to ChildAPIManager to allow use of remote events.
- Introduce `addon_parent_only` to "allowedContexts" to only generate a
  schema API in the main process.
- Do not fill in `null` for missing keys if the schema declares a key as
  `"optional": "omit-key-if-missing"`. This is needed for the second
  point in the next list.

Drive-by fixes:

- Ensure that the "onclick" handler is erased when a context closes.
- Do not clear the "onclick" handler in `contextMenus.update` if the
  onclick key has been omitted (parity with Chrome).
- Remove some unnecessary `Promise.resolve()`
- Add extensive set of tests that check the behavior of the contextMenus
  APIs with regards to the onclick attribute in various scenarios.

MozReview-Commit-ID: A5f3AUQzU8T

--HG--
extra : rebase_source : 0464a1aa2387343a6f1d0fcd8fbabfdd1a68b1bb
2016-09-12 18:26:03 -07:00
..
components Bug 1287007 - Fix "onclick" in contextMenus, to child. r=billm 2016-09-12 18:26:03 -07:00
content Merge inbound to m-c. a=merge 2016-10-23 13:16:27 -04: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 Backed out 2 changesets (bug 1287209) for failures in browser_ext_pageAction_popup_resize.js 2016-10-20 19:23:33 -07:00
obsolete Bug 1292042 - Enable the keyword-spacing rule for eslint. Most of this patch was autogenerated by 'eslint --fix'. Files with .xml extension needed to be changed by hand due to limitations of custom plugin. r=markh 2016-08-04 03:28:58 -04: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 Backed out changeset 92d09cb049f5 (bug 1310056) for cpp failures a=backout 2016-10-20 14:32:04 -07: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 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06: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