summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/resources/extension_process_bindings.js
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/resources/extension_process_bindings.js')
-rw-r--r--chrome/renderer/resources/extension_process_bindings.js12
1 files changed, 3 insertions, 9 deletions
diff --git a/chrome/renderer/resources/extension_process_bindings.js b/chrome/renderer/resources/extension_process_bindings.js
index 4a59dcb..4ebc848 100644
--- a/chrome/renderer/resources/extension_process_bindings.js
+++ b/chrome/renderer/resources/extension_process_bindings.js
@@ -263,7 +263,7 @@ var chrome = chrome || {};
}
function setupHiddenContextMenuEvent(extensionId) {
- var eventName = "contextMenu/" + extensionId;
+ var eventName = "contextMenus/" + extensionId;
chromeHidden.contextMenuEvent = new chrome.Event(eventName);
chromeHidden.contextMenuHandlers = {};
chromeHidden.contextMenuEvent.addListener(function() {
@@ -272,12 +272,6 @@ var chrome = chrome || {};
if (onclick) {
onclick.apply(onclick, arguments);
}
-
- var parentMenuItemId = arguments[0].parentMenuItemId;
- var parentOnclick = chromeHidden.contextMenuHandlers[parentMenuItemId];
- if (parentOnclick) {
- parentOnclick.apply(parentOnclick, arguments);
- }
});
}
@@ -597,7 +591,7 @@ var chrome = chrome || {};
details, this.name, this.definition.parameters, "page action");
};
- apiFunctions["experimental.contextMenu.create"].customCallback =
+ apiFunctions["experimental.contextMenus.create"].customCallback =
function(name, request, response) {
if (chrome.extension.lastError || !response) {
return;
@@ -611,7 +605,7 @@ var chrome = chrome || {};
}
};
- apiFunctions["experimental.contextMenu.remove"].customCallback =
+ apiFunctions["experimental.contextMenus.remove"].customCallback =
function(name, request, response) {
// Remove any onclick handler we had registered for this menu item.
if (request.args.length > 0) {