AdguardBrowserExtension
AdguardBrowserExtension copied to clipboard
Export / Import Settings not working correctly
AdGuard Extension version
4.2.162
Browser version
Chrome 109
OS version
Windows 7
What filters do you have enabled?
Filter unblocking search ads and self-promotion
What Stealth Mode options do you have enabled?
No response
Issue Details
Context: After installing the extension, default filters include: EasyList + AdGuard English and ABPVN List (Specific Language).
Import Settings
There are 2 problems with this feature:
- Will receive An error occurred and restore factory settings if the user does not have internet.
When the user does not have internet (network cable unplugged / disabled, internet access is not available,...) and proceeds to Import settings, it will immediately receive the error message An error occurred then it will delete all current settings data and automatically restore the default settings data.
- Enabled filter data in the settings data file is ignored when
Import settings:
I have disabled all filters (including the default one):
And the settings data file also does not enable any filters:
But when Import settings it automatically enable the default filters:
It seems to have ignored enabled-filters in case the array was empty (a.k.a no filters enabled).
Export Settings:
If after Import settings (according to case 2) and you do not proceed to disable the default filters again, but directly proceed to Export settings, it will automatically put the above filters in the list of enable filters:
The error of Import settings will affect the data of Export settings incorrectly.
Expected Behavior
- Can
Import settingswhen the user is not available internet (same as on 4.1 version). - No data is ignored, especially with
enabled-filtersin case the array is empty (a.k.a no filters are enabled). - Fixing the
Import settingserror will (probably) resolve theExport settingserror.
Screenshots
No response
Additional Information
No response
Update on version 4.2.189:
Perhaps this is a problem entirely related to the Import settings feature. It will always enable the default filters (EasyList + AdGuard English and ABPVN List (Specific Language)) whether you enable any filters or not.
As above, when I don't enable any filters, it still automatically turns on the default filter.
On version 4.2.189:
- It is not yet possible to
Import settingswhen internet is not available, the error is similar to that on version 4.2.162. - I tried enabling
Optionalfilter, using my Simple filters source. Then I proceed toExport settings. This is the data file that I got from theExport settings. It can be seen that (and only) theOptionalfilter has been enabled:But when I
Import settingsthat file, it still automatically enable the default filter!
Stealth mode:
I tried enabling Stealth mode, setting the values of Block third-party cookies and Block first-party cookies (not recommended) to 0 then disabling Block third-party cookies -> Block first-party cookies (not recommended) -> Stealth mode.
Can be seen the data file received from Export settings:
stealth-disable-stealth-mode: Stealth mode is disabled.stealth-block-third-party-cookies-timeandstealth-block-first-party-cookies-time: Values ofBlock third-party cookiesandBlock first-party cookies (not recommended)to 0.
But when I Import settings:
- Stealth mode will be enabled.
- The values of
Block third-party cookiesandBlock first-party cookies (not recommended)will automatically reset to default values: 2880 withBlock third-party cookiesand 4320 withBlock first-party cookies (not recommended).
Update on version 4.2.241: Nothing has changed, still the same as on version 4.2.189!