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

Addressing inconsistencies in the dynamic rule matrix #544

Open
seanrand opened this issue Jul 30, 2015 · 3 comments
Open

Addressing inconsistencies in the dynamic rule matrix #544

seanrand opened this issue Jul 30, 2015 · 3 comments

Comments

@seanrand
Copy link
Contributor

Following up on #527 (comment), I threw together a quick/very dirty demonstration for gorhill to play with. For now I ignored the image type rule as I don't think it's as important in the context of the matrix.

Adding a yellow indicator for cells that have conflicting dynamic rules (e.g. 3p block & 3p-scripts allow) applied to them in the filtering matrix would resolve most inconsistencies and the confusion they cause.

The yellow indicator is already used for hosts that have some requests allowed and some denied in the first column of the matrix, so it would be intuitive to apply that to (at least parts of) the third column.

The commit is here: seanrand@8eefa9f (only tested in Chromium 48.0.2539.0, by the way)

Thoughts?

P.S., sorry for not following contributing.md but I hope the comment and commit is enough to get my point across as to why I think this would be an improvement.

@gorhill
Copy link
Owner

gorhill commented Jul 31, 2015

Thoughts?

There is an ambiguity, however I have many reservations about how to solve this, and even whether this needs "solving" at all. I will elaborate when I get time.

@seanrand
Copy link
Contributor Author

No worries, I realise this isn't a high priority "bug" and could be considered a non-issue/not worth the effort if you assume the user reads/understands the wiki on dynamic filtering. Nonetheless, I think the yellow mixed indicator would clear things up a bit, but maybe I'm missing some corner cases.
I didn't find any discussion on this other than you acknowledging that some cases currently can't be/aren't represented accurately in the matrix, which is why I opened this issue.

seanrand added a commit to seanrand/uBlock that referenced this issue Oct 28, 2015
This is a quick demonstration of how inconsistencies
caused by conflicting dynamic block/allow rules in the
dynamic blocking matrix could be handled. A yellow-ish
indicator is added to cells that are affected by more
than one conflicting dynamic filtering rule.

For example if 3p deny and 3p-scripts or 3p-frames allow/noop
are selected, the current way of shading 3p cells red/gray
does not accurately reflect the mixed state for those cells.
For first-party cells, inline-script and 1p-script are affected.
The display of image and all rules hasn't been changed.

This is based on the idea outlined in my comment
gorhill#527 (comment)
refer to that for screenshots and further examples.

gorhill#544
@seanrand seanrand closed this as completed Jan 3, 2021
@gorhill gorhill reopened this Jan 3, 2021
@gorhill
Copy link
Owner

gorhill commented Jan 3, 2021

I often come back to this one to come up with a visual, eventually I will make a decision. I didn't want yellowish because it implies a mix of block and allow rules, which is not the case, it's a block rule partially affecting the cell.

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