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 f5f2adb889682fab78404fec795c9fa4129dded5
parent 258423 948241aa9d1a359d35a33641731b9e56ddeddaaa
child 258425 6d9fdd280e65d020fd6bdbcc3e6bb74fd44f1881
push id4665
push userryanvm@gmail.com
push dateFri, 10 Apr 2015 17:13:43 +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);"/>