Bug 1211481 - Expose screenX and screenY to context menu events. r=fabrice

This commit is contained in:
Kevin Grandon 2015-10-05 08:36:00 +02:00
parent efc38b2eca
commit c44fd52108

View File

@ -916,6 +916,8 @@ BrowserElementChild.prototype = {
// Pass along the position where the context menu should be located
menuData.clientX = e.clientX;
menuData.clientY = e.clientY;
menuData.screenX = e.screenX;
menuData.screenY = e.screenY;
// The value returned by the contextmenu sync call is true if the embedder
// called preventDefault() on its contextmenu event.