Index: chrome/browser/resources/shared/js/cr/ui/menu_item.js |
diff --git a/chrome/browser/resources/shared/js/cr/ui/menu_item.js b/chrome/browser/resources/shared/js/cr/ui/menu_item.js |
index 381eb2d3eb48f9166021b9d79ab8120fdeda6b70..e31af667b85afc96e993fd14fbf0c02152c10364 100644 |
--- a/chrome/browser/resources/shared/js/cr/ui/menu_item.js |
+++ b/chrome/browser/resources/shared/js/cr/ui/menu_item.js |
@@ -124,8 +124,11 @@ cr.define('cr.ui', function() { |
// Store |contextElement| since it'll be removed by {Menu} on handling |
// 'activate' event. |
var contextElement = this.parentNode.contextElement; |
+ var activationEvent = cr.doc.createEvent('Event'); |
+ activationEvent.initEvent('activate', true, true); |
+ activationEvent.originalEvent = e; |
// Dispatch command event followed by executing the command object. |
- if (cr.dispatchSimpleEvent(this, 'activate', true, true)) { |
+ if (this.dispatchEvent(activationEvent)) { |
var command = this.command; |
if (command) |
command.execute(contextElement); |