Bug 1287007 - Remove contextMenusInternal.onClicked draft
authorRob Wu <rob@robwu.nl>
Sat, 01 Oct 2016 00:46:19 +0200
changeset 428450 462145038d13e128d10a8d1b4c73c6967916745a
parent 428449 572c51e9a0902323abbd50651cedbc784cd2d3ef
child 428451 b0e4dc4ba30a4be964fbcbe9ca00ca72f4fe136f
push id33305
push userbmo:rob@robwu.nl
push dateSun, 23 Oct 2016 20:56:25 +0000
bugs1287007
milestone52.0a1
Bug 1287007 - Remove contextMenusInternal.onClicked contextMenusInternal.onClicked is already inlined in context_menus.json. It should be removed because otherwise the `browser.contextMenusInternal.onClicked` API would be generated. MozReview-Commit-ID: LAKd2IGM5GU
browser/components/extensions/schemas/context_menus_internal.json
--- a/browser/components/extensions/schemas/context_menus_internal.json
+++ b/browser/components/extensions/schemas/context_menus_internal.json
@@ -68,31 +68,11 @@
           },
           "checked": {
             "type": "boolean",
             "optional": true,
             "description": "A flag indicating the state of a checkbox or radio item after it is clicked."
           }
         }
       }
-    ],
-    "events": [
-      {
-        "name": "onClicked",
-        "type": "function",
-        "description": "Fired when a context menu item is clicked.",
-        "parameters": [
-          {
-            "name": "info",
-            "$ref": "OnClickData",
-            "description": "Information about the item clicked and the context where the click happened."
-          },
-          {
-            "name": "tab",
-            "$ref": "tabs.Tab",
-            "description": "The details of the tab where the click took place. If the click did not take place in a tab, this parameter will be missing.",
-            "optional": true
-          }
-        ]
-      }
     ]
   }
 ]