WebFrontend: Fix context menu bug affecting Firefox and Chromium (but not Opera)