Commit Graph

3 Commits

Author SHA1 Message Date
Kris Maglione
4da8984c59 Bug 1472491: Part 5e - Add ContextMenuChild actor. r=felipe
MozReview-Commit-ID: GUJfyCPkRw8
2018-07-29 20:07:33 -07:00
Rob Wu
ff23c04605 Bug 1325814 - Support shadow DOM in menus.getTargetElement + test r=mixedpuppy
MozReview-Commit-ID: JzVM8wVpaeP
2018-08-08 18:06:41 +02:00
Rob Wu
cd1bdb8e47 Bug 1325814 - Add extension API to find menu target r=mixedpuppy
- Add info.targetElementId to menus.onShown event.

- Add info.targetElementId to menus.onClicked event.

- Add menus.getTargetElement API that is available to all contexts,
  including content scripts, which allows extensions to get the DOM
  element for a given targetElementId.

- Add new schema instead of re-using schemas/menus.json to avoid sending
  too much schema data (of the existing menus API) to content processes.

MozReview-Commit-ID: 6Onf7jZlIho
2018-08-04 18:09:49 +02:00