Greetings,
I've been working on an extension where the goal is to programmatically update policies by navigating to chrome://policy page then execute chrome.send('reloadPolicies'); as javascript code.
The purpose is to initially block all websites and then allow specific websites by appending to URLAllowlist in the policy file during runtime.
After some research, I've managed to get the code execution part working, but if I try to open the web URL immediately after reloading the policies, it still throws the error ERR_BLOCKED_BY_ADMINISTRATOR and then only after a delay the page will work (between 3 and 5 seconds).
So my question here is: Is the chrome://policy reload functionality only for UI display purposes and the only real reload occurs in the async job?
Thanks