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 254940 ec764eab6567
parent 254939 0dcc817ca441
child 254941 091fa522326b
push id7904
push userryanvm@gmail.com
push dateFri, 10 Apr 2015 15:52:14 +0000
treeherdermozilla-aurora@091fa522326b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws, sledru
bugs1152104
milestone39.0a2
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);"/>