Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2101)

Unified Diff: chrome/renderer/resources/extensions/webview_custom_bindings.js

Issue 186213003: <webview>: Context menu API implementation CL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync @tott Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/resources/extensions/webview_custom_bindings.js
diff --git a/chrome/renderer/resources/extensions/webview_custom_bindings.js b/chrome/renderer/resources/extensions/webview_custom_bindings.js
index 6d98a71f577d0592f4f369e69bb7f512390ea00c..5fa0b7e669b20475d542f7e8d99206ed2f17ba10 100644
--- a/chrome/renderer/resources/extensions/webview_custom_bindings.js
+++ b/chrome/renderer/resources/extensions/webview_custom_bindings.js
@@ -56,6 +56,7 @@ binding.registerCustomHook(function(bindingsAPI) {
// if there is one.
var id = arguments[0].menuItemId;
var instanceId = arguments[0].webviewInstanceId;
+ delete arguments[0].webviewInstanceId;
var onclick = webviewContextMenus.handlersForId(instanceId, id)[id];
if (onclick) {
$Function.apply(onclick, null, arguments);

Powered by Google App Engine
This is Rietveld 408576698