Chrome-Developer-Mode-Extension-Warning-Patcher icon indicating copy to clipboard operation
Chrome-Developer-Mode-Extension-Warning-Patcher copied to clipboard

Feature Request: Support Patching Unsupported Flag Ticker

Open aaronliu0130 opened this issue 3 years ago • 7 comments

Is your feature request related to a problem? Please describe. I'm always frustrated when I start my browser and get the annoying ticker "You are using an unsupported command-line flag . Stability and security will suffer." There are certain very useful flags that trigger this message, such as --extensions-on-edge-urls .

Describe the solution you'd like Somehow patch this.

Describe alternatives you've considered (optional) Remove the flag.

Define a name for your feature (optional) Ex.: Add patch to remove unsupported flag ticker

aaronliu0130 avatar Apr 08 '22 11:04 aaronliu0130

Try setting this policy/registry value to 0 first: https://chromeenterprise.google/policies/?policy=CommandLineFlagSecurityWarningsEnabled

Ceiridge avatar Apr 08 '22 17:04 Ceiridge

I can't find the relevant policy key for edge.

aaronliu0130 avatar Apr 09 '22 01:04 aaronliu0130

You will probably need to set it manually in the registry. Maybe you can guess the registry path with the help of these resources: https://admx.help/?Category=ChromeEnterprise&Policy=Google.Policies.Chrome::CommandLineFlagSecurityWarningsEnabled https://docs.microsoft.com/en-us/deployedge/microsoft-edge-policies HKLM\SOFTWARE\Policies\Microsoft\Edge -> CommandLineFlagSecurityWarningsEnabled (DWORD) = 0

Ceiridge avatar Apr 10 '22 23:04 Ceiridge

There appears to be no HKLM\SOFTWARE\Policies\Microsoft\Edge keys

aaronliu0130 avatar Apr 12 '22 08:04 aaronliu0130

Then create they registry key and try if it works. HKLM means HKEY_LOCAL_MACHINE, maybe that's the issue?

Ceiridge avatar Apr 12 '22 16:04 Ceiridge

Still doesn't work. Do I have to reboot or something? image The name is CommandLineFlagSecurityWarningsEnabled

aaronliu0130 avatar Apr 15 '22 09:04 aaronliu0130

This policy normally should hide these warnings, but apparently it does not work (for Edge?). I will potentially add a patch in the future

Ceiridge avatar Apr 15 '22 17:04 Ceiridge

Adding the command line flag --test-type should work. Tell me if there are other consequences

Ceiridge avatar Oct 11 '22 15:10 Ceiridge

Sorry for the mail 2 days ago, that should've been sent out much earlier on Apr 12. Anyways yes that does solve the problem, but it isn't very convenient since I usually launch my apps from the taskbar, and windows 11 appears to lack the functionality of pinning short cuts. why did I upgrade

aaronliu0130 avatar Oct 12 '22 22:10 aaronliu0130

Are you sure that you cannot pin a shortcut to taskbar by right-clicking on it, selecting Show more options and then clicking on Pin to taskbar?

Ceiridge avatar Oct 12 '22 22:10 Ceiridge

Ooh, yes I can. There's a minor problem though. Windows doesn't think shortcuts with/without parameters are different and wouldn't let me pin the shortcut with a parameter without removing the old one.

aaronliu0130 avatar Oct 13 '22 00:10 aaronliu0130

I took a look at the Chromium source code responsible for this information bar and found out that there is a policy that is supposed to disable it. That was months ago. Apparently Chromium ignores the policy. Luckily, there is a command line argument that fixes this somehow. If there is a policy or similar, no patches are needed

Ceiridge avatar Oct 13 '22 01:10 Ceiridge

I'd like to know: which policy?

aaronliu0130 avatar Oct 14 '22 22:10 aaronliu0130

This one: https://github.com/Ceiridge/Chrome-Developer-Mode-Extension-Warning-Patcher/issues/79#issuecomment-1094412397 Can be found here: https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/ui/startup/infobar_utils.cc;l=37;drc=21a4c84dd469bfdc9f27375133dc309b62101ef8

Ceiridge avatar Oct 14 '22 22:10 Ceiridge