-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tab is opened twice #3579
Comments
Usually Firefox has a strict popup-window blocker, which will block Vimium's requests of clicking a link and opening a new tab for it. To work around it, Vimium has used a special part of code to create a tab with the link's URL (using web-extension APIs, which is not blocked). According to what you met, it seems that this blocker has some changes and now passes Vimium's normal requests (the one using not web-extension APIs but "clicking" event). Maybe it's because of a special browser setting, a special flag in |
@gdh1995 Can you link to that piece of code, please? I’m curious how it works :) |
Lines 323 to 337 in 6aecf63
|
Cool, thanks! I’m not sure if it helps, but I’ve implemented workarounds for Firefox’s popup blocker too: https://github.com/lydell/LinkHints/blob/efa18fdfbf95016bd706b83a2d51545cb157b440/src/worker/Program.js#L1337-L1631 |
@gdh1995 that also explains why firefox was showing me those popup-blocked msg even though there was no pop-up in sight. Seeing that msg I explicitly allowed popus from qwant. That's why normal request passed. Removing qwant from white list indeed stops second tab from opening. I get that popup-block msg back. I need to dont-show-this-msg to remove it. Follow-up questiion. Is there a simple way to explain why this yellow block msg is not happening on all sites? |
If a page hooks This often occurs when JavaScript code (including those of extensions) wants to trigger |
Thanks for all the information! |
I don’t think this issue should be closed. It is possible to avoid the double-open and popup blocker (it works in my extension). |
@lydell, the way of adding click listener on all items in
|
As said in philc/vimium#3579 (comment), https://github.com/lydell/LinkHints/blob/efa18fdfbf95016bd706b83a2d51545cb157b440/src/worker/Program.js#L1337-L1631 does check ancestors of the element to click
Yes, it’s not perfect but it does work in a lot of situations. 🤷♂️ |
this is happening to me on github now but instead it happens when i open a link into a new tab. started today or yesterday |
Can confirm, I'm also affected on Firefox Nightly. |
Describe the bug
I do not know whether issue is on vimium's side. I would like to ask for help determining that. See below for issue description.
To Reproduce
Steps to reproduce the behavior:
qwant.com
search engineBrowser and Vimium version
Firefox - 76.0.1
OS - Linux 4.19.122-1-MANJARO
Vimium - 1.66
Please let me know if I can help debugging this.
The text was updated successfully, but these errors were encountered: