From f012da3d6f72e792b23e1aa8d141c295037c94ec Mon Sep 17 00:00:00 2001 From: Imanol Fernandez Date: Thu, 7 Nov 2019 22:37:03 +0100 Subject: [PATCH] Do not show context menu for videos (#2194) --- .../shared/org/mozilla/vrbrowser/ui/widgets/WindowWidget.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/WindowWidget.java b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/WindowWidget.java index eeacc6006..7328acdd0 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/WindowWidget.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/WindowWidget.java @@ -1463,6 +1463,9 @@ private void hideContextMenus() { @Override public void onContextMenu(GeckoSession session, int screenX, int screenY, ContextElement element) { + if (element.type == ContextElement.TYPE_VIDEO) { + return; + } TelemetryWrapper.longPressContextMenuEvent(); hideContextMenus();