-
-
Notifications
You must be signed in to change notification settings - Fork 191
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
Cannot re-enable site after disabling #2516
Comments
@dhowe how did you disable the page in the first place? The only case in which I was able to reproduce this error was when a root page of a domain is directly added to the trusted-sites list:
instead of
this causes this makes the "re-enable" fail since it is only the second format is removed, but not the first. It seems that uBlock doesn't have this same issue, will check why and resolve asap. |
Here is an example:
"www.carousell.com.hk" is added to TRUSTED SITES What should happen:
|
@dhowe I just implemented the ability to switch the scope of the disable status, without having to chick again on the enable button. The UI issue that appears from that, is that within the uBlock structure, we can only access true/false if a page is disabled, but we can't know if the scope of this disable is domain or page-specific. Which makes the UI confusing since when u click on the popup, it doesn't properly shows what is the current scope by which the page is disabled. For that I see two possible solutions:
|
I remember some discussions about why it wasn't practical to store whether the user had chosen page/domain for every site. So how about this flow: (it may be your A):
|
So I guess this mean that the "popup arrow" needs to dissapear when the website is currently disabled? In order not to confuse the user that it is possible to change the scope of "disable" the website while it is already disabled. |
yes, it needs to disappear when the text changes to 'Enable' |
Ok, I finally understood why this issue with the disable was happening in cases page-specific disable where the last char of a url ended with a '/': Line 2378 in 8c861d2
We are, for some reason, trimming the last char of the url request, which was causing the url saved in trusted sites to be faulty. I'll try to will understand why we do this, and make sure this doesn't happen in such case. |
Created an exception for the trimming character to avoid it happening when toggling the disable button. Also set to hide the arrow when the disable is active AND the popup is not yet closed. |
I don't remember, but this may have been an attempt to ensure that URL versions (https://site.com and https://site.com/) are treated as the same site/domain. Please verify in your fix that this is still the case |
In relation to the disable/enable, yes I have tested and it is working as expected. both https://site.com/ and https://site.com/ are treated as |
Fixed, closing |
I tried to reproduce the issue when...
Description
It seems impossible to un-disable a site after disabling it: see also #2462
Steps to Reproduce
Disable a site, then try to re-able it
The text was updated successfully, but these errors were encountered: