vimium icon indicating copy to clipboard operation
vimium copied to clipboard

Link hints do not appear for links inside of github's popups

Open Enzodtz opened this issue 1 year ago • 5 comments

Describe the bug

The f shortcut (and probably the other clickable ones), doesn't work on github popups. For example, if you want to approve a pull request you could click on "Review Changes" but not on the buttons that this first one opens.

image

To Reproduce

You can test it on this page. On the navbar, there's a plus sign. Click it with f and it will open a popup. Then, press f again and you'll see that no option is shown.

image

Browser and Vimium version

Chrome: 120.0.6099.234 (Official Build) (arm64) Vimium: 2.0.5

Enzodtz avatar Jan 19 '24 12:01 Enzodtz

Duplicate of #4369

gdh1995 avatar Jan 20 '24 11:01 gdh1995

Hey friends, I've deployed a fix on GitHub.com, this should no longer be an issue.

keithamus avatar Jan 24 '24 18:01 keithamus

@keithamus that sounds awesome, thank you. Unfortunately though that is not working for me yet, despite someone in the other thread saying that it worked for them 🤔

Enzodtz avatar Jan 25 '24 23:01 Enzodtz

It appears this is not a duplicate of #4369. That issue reported that clicking a Vimium link hint for the "Review changes" button did nothing. This is now fixed (thank you @keithamus!).

Instead, this issue is reporting that link hints do not show for the content inside the Review Changes popup once it's opened. This is not yet resolved. I looked into it briefly and the link hints do appear, but they appear under the popup. I didn't look further into how this is possible. Vimium's link hints should have the max z-index.

I detected this by hiding the code review popup. In the screenshot below, you can see the link hints are present if you set the popover to 0.5 opacity.

image

philc avatar Jan 26 '24 06:01 philc

This will be because popovers are enabled on the browser you’re running (either via dom.elements.popover.enabled in about:config or by running the 122 beta I think).

The solution in this case is to make vimiums overlay also use popover.

keithamus avatar Jan 26 '24 08:01 keithamus

@keithamus is that an easy fix? I'm also struggling with this issue.

dudicoco avatar Mar 14 '24 10:03 dudicoco

@dudicoco https://github.com/philc/vimium/pull/4436 this starts off a fix, I can't pursue it any further but it offers the basic principles needed to get a working fix for this issue.

keithamus avatar Mar 14 '24 10:03 keithamus

thanks @keithamus and @philc!

dudicoco avatar Mar 28 '24 15:03 dudicoco