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
Родитель efc38b2eca
Коммит c44fd52108
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -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.