mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-05 10:48:15 +02:00
- 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 --HG-- extra : rebase_source : eb095d04ce381606be90d325712bfc57233d8291
11 lines
199 B
JavaScript
11 lines
199 B
JavaScript
"use strict";
|
|
|
|
extensions.registerModules({
|
|
menusChild: {
|
|
url: "chrome://browser/content/child/ext-menus-child.js",
|
|
scopes: ["content_child"],
|
|
paths: [
|
|
["menus"],
|
|
],
|
|
},
|
|
});
|