Bug 1152104 - Use command event and delegate clicks to it. r=jaws, a=sledru
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Wed, 08 Apr 2015 15:54:53 +0100
changeset 258424 f5f2adb88968
parent 258423 948241aa9d1a
child 258425 6d9fdd280e65
push id4665
push userryanvm@gmail.com
push date2015-04-10 17:13 +0000
treeherdermozilla-beta@6d9fdd280e65 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws, sledru
bugs1152104
milestone38.0
Bug 1152104 - Use command event and delegate clicks to it. r=jaws, a=sledru
browser/base/content/browser-context.inc
--- a/browser/base/content/browser-context.inc
+++ b/browser/base/content/browser-context.inc
@@ -416,9 +416,10 @@
                 accesskey="&inspectContextMenu.accesskey;"
                 oncommand="gContextMenu.inspectNode();"/>
       <menuseparator id="context-media-eme-separator" hidden="true"/>
       <menuitem id="context-media-eme-learnmore"
                 class="menuitem-iconic"
                 hidden="true"
                 label="&emeLearnMoreContextMenu.label;"
                 accesskey="&emeLearnMoreContextMenu.accesskey;"
-                onclick="gContextMenu.drmLearnMore(event);"/>
+                oncommand="gContextMenu.drmLearnMore(event);"
+                onclick="checkForMiddleClick(this, event);"/>