Bug 1287007 - Remove contextMenusInternal.onClicked r=billm
authorRob Wu <rob@robwu.nl>
Sat, 01 Oct 2016 00:46:19 +0200
changeset 428729 e6a612e71387531f50d8fab977f3c6151cf2f561
parent 428728 daf166cb192a1d04c7a2703d89b5c626f356c070
child 428730 3915db2d27b13a14d1647ceb5370d6cbc04582e5
push id33405
push userbcampen@mozilla.com
push dateMon, 24 Oct 2016 15:32:53 +0000
reviewersbillm
bugs1287007
milestone52.0a1
Bug 1287007 - Remove contextMenusInternal.onClicked r=billm 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
-          }
-        ]
-      }
     ]
   }
 ]