jarek-foksa/xel

x-menu Quick click will cause the page card to die

Closed this issue · 7 comments

u10k commented

Bug Type: Component

Environment

  • xel Version: 0.16.4
  • Browser / OS: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4336.0 Safari/537.36
  • Build Tool: Vite

Reproduction

Related Component

  • x-menu

Reproduction Link

Docs

Steps to reproduce

Right -click quickly

image

Can you reproduce this bug with the latest version of Chrome? You seem to be using Chrome 89 which is very old.

u10k commented

Can you reproduce this bug with the latest version of Chrome? You seem to be using Chrome 89 which is very old.

I found nothing to do with chrome version, Affected by [x-contextmenu]

<x-menu id="x-menu">
   <x-menuitem>copy</x-menuitem>
</x-menu>
document.body).addEventListener('contextmenu', (e) => {
            e.preventDefault();
            const elMenu = document.getElementById('x-menu');
            elMenu.openAtPoint(e.clientX, e.clientY);
 });

if i remove x-contextmenu, is good

Please report this bug on https://bugs.chromium.org/p/chromium/, I can't do it as I'm unable to reproduce the crash. In the Chromium bug report you should include the 16 digit crash ID as shown on chrome://crashes

u10k commented

Please report this bug on https://bugs.chromium.org/p/chromium/, I can't do it as I'm unable to reproduce the crash. In the Chromium bug report you should include the 16 digit crash ID as shown on chrome://crashes

you can run this https://github.com/u10k/xelMenu

Please provide unobfuscated test case.

u10k commented

Please provide unobfuscated test case.

demo
video

Thanks, I managed to reproduce the bug and I fixed it in Xel version 0.17.2.