Description
Prerequisites
- I verified that this is not a filter issue
- Filter issues MUST be reported at filter issue tracker
- This is not a support issue or a question
- Support issues and questions are handled at /r/uBlockOrigin
- 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
when installing uBlock Origin by GPO into Chrome on Windows 10, the custom config of uBlock is not recognized at the first start. When the browser gets closed and started again the settings are there.
A specific URL where the issue occurs
Steps to Reproduce
Prerequesites:
I have two policies configured. One for automatically installing uBlock origin (it may be necessary to join the Windows 10 PC into a domain for using this) and the other one for giving uBlock a config:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\ExtensionInstallForcelist
Name of key: 1
Type: REG_SZ
Value: cjpalhdlnbpafiamejdnhcphjbkeiagm
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\3rdparty\Extensions\cjpalhdlnbpafiamejdnhcphjbkeiagm\policy
Name of key: adminSettings
Type: REG_SZ
Value: {"timeStamp":1617739675266,"version":"1.34.0","userSettings":{"importedLaists":[],"popupPanelSections":15},"selectedFilterLists":["user-filters","assets.json","public_suffix_list.dat","ublock-badlists","ublock-filters","ublock-badware","ublock-privacy","ublock-abuse","ublock-unbreak","easylist","easyprivacy","urlhaus-1","plowe-0","DEU-0"],"hiddenSettings":{},"whitelist":["about-scheme","chrome-extension-scheme","chrome-scheme","edge-scheme","moz-extension-scheme","opera-scheme","vivaldi-scheme","wyciwyg-scheme"],"dynamicFilteringString":"behind-the-scene * * noop\nbehind-the-scene * inline-script noop\nbehind-the-scene * 1p-script noop\nbehind-the-scene * 3p-script noop\nbehind-the-scene * 3p-frame noop\nbehind-the-scene * image noop\nbehind-the-scene * 3p noop","urlFilteringString":"","hostnameSwitchesString":"no-large-media: behind-the-scene false","userFilters":"wikipedia.org##.nag-trigger\nwikipedia.org###centralNotice\nwikipedia.de###WMDE-Banner-Container\nwww.youtube.com###dialog\nwww.youtube.com##.opened\nwww.youtube.com##ytd-popup-container\n"}
In order to simulate a new install do the following:
1.) Goto %LocalAppData%\Google and delete the folder Chrome
2.) Start Chrome. The folder will be recreated and Chrome will reinstall the profile with the ublock origin but without the given config (e.g. my filter is empty)
3.) Close Chrome
3.1) Reboot the machine (optional)
4.) Start Chrome. Now the settings are there
Another way to reproduce is the following:
1.) Goto %LocalAppData%\Google and delete the folder Chrome
2.) Start Chrome. The folder will be recreated and Chrome will reinstall the profile with the ublock origin but without the given config (e.g. my filter is empty)
3.) Open the uBlock Config tab and click on "restore default settings"
Now the correct config gets loaded and applied.
Expected behavior:
I would expect the custom config (from the second registry key) to be active at the very first start of Google Chrome, when the Plugin gets automatically installed without any further interaction.
Actual behavior:
The config seems to be recongnized at the second start or when the default config gets manually loaded (alternative way). Maybe the Plugin checks if there is an adminConfig-Entry every time Chrome starts but not when it gets installed.
Your environment
- uBlock Origin version: 1.34.0
- Browser Name and version: Google Chrome 89.0.4389.114
- Operating System and version: Windows 10 Version 20H2