Bug 1152104 - use command event and delegate clicks to it, r=jaws
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Wed, 08 Apr 2015 15:54:53 +0100
changeset 238246 f610b8d267ed
parent 238245 87f15ce8266d
child 238247 6be66458eff4
push id12284
push usergijskruitbosch@gmail.com
push dateThu, 09 Apr 2015 14:30:55 +0000
treeherderfx-team@6be66458eff4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws
bugs1152104
milestone40.0a1
Bug 1152104 - use command event and delegate clicks to it, r=jaws
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);"/>