Skip to content
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

Regression: tabs created by user are closed by popup filter #774

Closed
8 tasks
gwarser opened this issue Nov 4, 2019 · 9 comments
Closed
8 tasks

Regression: tabs created by user are closed by popup filter #774

gwarser opened this issue Nov 4, 2019 · 9 comments
Labels
bug Something isn't working fixed issue has been addressed

Comments

@gwarser
Copy link

gwarser commented Nov 4, 2019

Details

Prerequisites

  • I verified that this is not a filter issue
  • This is not a support issue or a question
  • I performed a cursory search of the issue tracker to avoid opening a duplicate issue
    • Your issue may already be reported.
  • I tried to reproduce the issue when...
    • uBlock Origin is the only extension
    • uBlock Origin with default lists/settings
    • using a new, unmodified browser profile
  • I am running the latest version of uBlock Origin
  • I checked the documentation to understand that the issue I report is not a normal behavior

Description

Original discussion here: https://www.reddit.com/r/uBlockOrigin/comments/dpnpk8/ublock_possible_automatically_closing_tabs_when/

New tab is closed by matching popup filter when opened by middle click or Ctrl + click.

uBO had protection to not close tabs when opened directly by user: gorhill/uBlock@7713597

This stopped working after gorhill/uBlock@f204d24

$ git bisect good && ./tools/make-chromium.sh
f204d24bf4a7a5f70419bd8b0c7a87595f0a4181 is the first bad commit
commit f204d24bf4a7a5f70419bd8b0c7a87595f0a4181
Author: Raymond Hill <[email protected]>
Date:   Mon Sep 23 08:25:23 2019 -0400

    Match static popup filter against local context...

A specific URL where the issue occurs

https://www.reddit.com/r/uBlockOrigin/comments/dpnpk8/ublock_possible_automatically_closing_tabs_when/f695dan/

Steps to Reproduce

  1. add ||netdna-ssl.com^$popup,third-party to My filters
  2. middle click on http://ffp4g1ylyit3jdyti1hqcvtb-wpengine.netdna-ssl.com/opendesign/files/2019/06/FX_Design_Blog_Logos_Family.jpg

Original STR: https://www.reddit.com/r/uBlockOrigin/comments/dpnpk8/ublock_possible_automatically_closing_tabs_when/f695dan/

Expected behavior:

New tab should open as requested by user.

Actual behavior:

Tab is closed by filter.

Your environment

  • uBlock Origin version: bisection
  • Browser Name and version: Nightly 72 20191104094118, Chrome Version 77.0.3865.120 (Official Build) (64-bit)
  • Operating System and version: Manjaro
@gwarser gwarser added the bug Something isn't working label Nov 4, 2019
gorhill added a commit to gorhill/uBlock that referenced this issue Nov 4, 2019
@gorhill
Copy link
Member

gorhill commented Nov 4, 2019

I added a test, no. 14, to detect this kind of regression: http://raymondhill.net/ublock/popup.html.

@uBlock-user
Copy link
Contributor

uBlock-user commented Nov 4, 2019

add ||netdna-ssl.com^$popup,third-party to My filters
middle click on http://ffp4g1ylyit3jdyti1hqcvtb-wpengine.netdna-ssl.com/opendesign/files/2019/06/FX_Design_Blog_Logos_Family.jpg

Can't reproduce on my Nightly, it's a week old version.

@gwarser
Copy link
Author

gwarser commented Nov 4, 2019

Can't reproduce on my Nightly, it's a week old version.

uBO version? Tested also on Firefox beta Version 71.0b6 Build ID 20191031113544

It's fixed.

@gwarser gwarser added the fixed issue has been addressed label Nov 4, 2019
@uBlock-user
Copy link
Contributor

uBO version?

1.23.1b15

@gwarser
Copy link
Author

gwarser commented Nov 4, 2019

Also with test 14 on http://raymondhill.net/ublock/popup.html ?

@uBlock-user
Copy link
Contributor

Also with test 14

Yes, with ||example.com^$popup,third-party

logger never shows popup entry..

@gwarser
Copy link
Author

gwarser commented Nov 4, 2019

Maybe somehow related with this about:blank entry? I don't see it in Chrome.

+0 /adhandler.aspx?$popup -- 3,3 popup http://example.com/AdHandler.aspx?
+0 popup about:blank

Filter: /adhandler.aspx?$popup
Filter list: EasyList


Try latest Nightly? If it does work in beta try bisecting https://mozilla.github.io/mozregression/

@uBlock-user
Copy link
Contributor

uBlock-user commented Nov 5, 2019

It rather show example.com/adhandler.aspx, as new navigational entry in dark grey border.

It's okay, it's one of those times where something is working as expecting without a fix, it's rare but it's good and the fix is already implemented, not worth investing time in mozregression...

@gorhill
Copy link
Member

gorhill commented Aug 10, 2024

The link at example.com is https://www.iana.org/domains/example, the URL of the final page in the new tab is https://www.iana.org/help/example-domains, so there is a mismatch between the link and page URL in new tab, thus it will be considered a candidate for popup filtering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed issue has been addressed
Projects
None yet
Development

No branches or pull requests

3 participants