You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Block Popups blocks "Open in New Tab" on some sites. #44
On some sites, disabling popups causes the right click "Open in New Tab" to not function, or the tab to be immediately closed. I'm not sure if all sites should behave this way due to aggressive popup checks, or not, but I would think that me right clicking a browser context menu (I don't know if this is in any way distinguishable in the API or not) would never be a popup.
Some sites are OK, an example is GitHub itself. I can block all popups just fine.
Unfortunately, this is caused by a limitation of chrome API: it is not possible for the code to reliably find out whether a tab opened because a user opened the link or because javascript opened the link.
The block-all-popups feature should be seen as a last resort tool for when a site creates nuisance popups and there are no static filters (yet) for these. Workaround is to copy-link-address and paste manually.
Activity
gorhill commentedon Apr 13, 2015
Yes this was reported before: uBlock-LLC/uBlock#1143.
Unfortunately, this is caused by a limitation of chrome API: it is not possible for the code to reliably find out whether a tab opened because a user opened the link or because javascript opened the link.
The block-all-popups feature should be seen as a last resort tool for when a site creates nuisance popups and there are no static filters (yet) for these. Workaround is to copy-link-address and paste manually.
Experimental fix for #44
#44: meant to use mousedown...
Merge pull request gorhill#44 from gorhill/master