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

Unified Diff: Source/devtools/front_end/ui/ContextMenu.js

Issue 653613002: [DevTools] Inject element into toolbox window, do not load modules there. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 6 years, 2 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
« no previous file with comments | « Source/devtools/front_end/toolbox_bootstrap/module.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ui/ContextMenu.js
diff --git a/Source/devtools/front_end/ui/ContextMenu.js b/Source/devtools/front_end/ui/ContextMenu.js
index 10552e35d50629b33e760ffe5381632e67894755..893cbc8dd2acd6023636a752c6e4b2c8b31d3884 100644
--- a/Source/devtools/front_end/ui/ContextMenu.js
+++ b/Source/devtools/front_end/ui/ContextMenu.js
@@ -295,7 +295,7 @@ WebInspector.ContextMenu.prototype = {
var softMenu = new WebInspector.SoftContextMenu(menuObject, this._itemSelected.bind(this));
softMenu.show(this._event.target.ownerDocument, this._x, this._y);
} else {
- InspectorFrontendHost.showContextMenuAtPoint(this._x, this._y, menuObject);
+ InspectorFrontendHost.showContextMenuAtPoint(this._x, this._y, menuObject, this._event.target.ownerDocument);
InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.Events.ContextMenuCleared, this._menuCleared, this);
InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.Events.ContextMenuItemSelected, this._onItemSelected, this);
}
« no previous file with comments | « Source/devtools/front_end/toolbox_bootstrap/module.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698