Skip to content

Block Popups blocks "Open in New Tab" on some sites. #44

Closed

Description

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.

On this site however (http://www.nextgenupdate.com/forums/grand-theft-auto-v/), I can see that the Open in New Tab is detected as a popup and terminated/blocked.

I also tested via the inspector to force a target="_blank" on the link, though I'd see that more exploitable by popups than a browser menu click.

Activity

  1. gorhill commented on Apr 13, 2015

    @gorhill
    Owner

    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.

  2. added a commit that references this issue on Sep 10, 2015
  3. added a commit that references this issue on Sep 10, 2015
  4. added a commit that references this issue on Jun 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions