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

Possible regression bug: Preview of CSS 'style' filters no longer works #3257

Closed
yourduskquibbles opened this issue Nov 21, 2017 · 6 comments

Comments

@yourduskquibbles
Copy link

When using the Element Picker tool, clicking preview on filters that contain the CSS modifying :style(foo !important;) tag no longer seems to work. Wondering if this is somehow related to the fix for #3159?

One or more specific URLs where the issue occurs

https://digg.com/

Screenshot in which the issue can be seen

Can post animated gif if needed.

Steps for anyone to reproduce the issue

  1. Navigate to 'https://digg.com'
  2. Use the Element picker tool to click on the header and add the following filter
    ###js--digg-header:style(position: absolute !important;)
  3. Click 'Preview' and scroll down the page, the header SHOULD stay at the top and not be a floating header but in the newest versions of uBlock the preview behavior seems to have stopped working.
  4. In order to confirm this is a valid filter that will pin the header to the top of the screen, click 'Create' and reload the page and observe the correct behavior of the header staying at the top of the screen.
  5. In previous versions of uBlock you used to be able to click 'Preview' and see the impact before having to create the filter.
  6. Is this possibly related to 374e157 which fixed :style filters incorrectly shown in logger #3159?

Your settings

Tested on:

  • Windows 7
  • uBlock Origin dev build 1.14.19.8 on Chrome 62.0.3202.94 (Official Build) (64-bit) AND 1.14.19.b8 on Firefox 57
Your filter lists

Default lists

Your custom filters (if any)

None

Thank you for looking into this, your plugin is awesome! I have a number of people using your plugin and my Annoyances filter list to unsuck the web, one user at a time :)

@gorhill
Copy link
Owner

gorhill commented Nov 21, 2017

Unable to reproduce, the header stays at the top with or without the filter. Using only default settings/lists.

@yourduskquibbles
Copy link
Author

yourduskquibbles commented Nov 21, 2017

Hi @gorhill, thanks for taking a look apologies if my first example did not work.

Can you try reproducing with the following steps on a different site?

  1. Navigate to https://www.redditgifts.com/exchanges/manage/#/exchange/secret-santa-2017/
  2. Use the Element picker tool to click on the "floating" header and add the following filter ##.js-header-main.header-main:style(position: absolute !important;)
  3. Click 'Preview' and scroll down the page, the header under previous versions SHOULD be PINNED to stay at the top and not be a "floating" header but in the newest versions of uBlock the preview behavior seems to have stopped working and the header remains a floating header while scrolling down after clicking 'Preview'.
  4. In order to confirm this is a valid filter that will pin the header to the top of the screen, click 'Create' and reload the page (shift + f5) and observe the correct behavior of the header now being 'pinned' to stay at the top of the screen which you were unable to see this style change using 'Preview'.
  5. In previous versions of uBlock you used to be able to click 'Preview' and see the impact before having to create the filter.

@gorhill
Copy link
Owner

gorhill commented Nov 21, 2017

Ok, I understand what you mean: with the filter, the top banner should scroll with the rest of the page, not being pinned in the viewport. I will investigate.

@gorhill
Copy link
Owner

gorhill commented Nov 21, 2017

The regression was introduced in fix to #2984: 6112a68#diff-3b15596213ed9ba37fb5b8bb1402a6c2L811.

@gorhill
Copy link
Owner

gorhill commented Nov 21, 2017

Good catch, thanks for reporting.

@yourduskquibbles
Copy link
Author

Thank you @gorhill for the quick fix and all you do for the community!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants