summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authorasargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-18 21:05:28 +0000
committerasargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-18 21:05:28 +0000
commit9e9d7913a4032ff833ce731db7e0f38b37914d47 (patch)
tree7de516d278c8327db050df7c0fd5ff344214830a /chrome/renderer
parent416261c9a80c52eb9d5047727bbce605a485cf1c (diff)
downloadchromium_src-9e9d7913a4032ff833ce731db7e0f38b37914d47.zip
chromium_src-9e9d7913a4032ff833ce731db7e0f38b37914d47.tar.gz
chromium_src-9e9d7913a4032ff833ce731db7e0f38b37914d47.tar.bz2
Add ability to limit when context menu items appear with url patterns.
BUG=408198 TEST=Extensions context menu API should work with changes described. Review URL: http://codereview.chromium.org/2811049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52867 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/resources/extension_process_bindings.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/renderer/resources/extension_process_bindings.js b/chrome/renderer/resources/extension_process_bindings.js
index 6e1689c..7594595 100644
--- a/chrome/renderer/resources/extension_process_bindings.js
+++ b/chrome/renderer/resources/extension_process_bindings.js
@@ -279,7 +279,7 @@ var chrome = chrome || {};
var id = arguments[0].menuItemId;
var onclick = chromeHidden.contextMenus.handlers[id];
if (onclick) {
- onclick.apply(onclick, arguments);
+ onclick.apply(null, arguments);
}
});
};