rcmaehl / MSEdgeRedirect

A Tool to Redirect News, Search, Widgets, Weather and More to Your Default Browser
https://MSEdgeRedirect.com
GNU Lesser General Public License v3.0
3.93k stars 92 forks source link

Cannot open Edge with "--disable-features=RendererCodeIntegrity" #412

Open zhaobudaomingzi opened 2 months ago

zhaobudaomingzi commented 2 months ago

Preflight Checklist

Install Type

New Install

Install Mode

Active Mode

Steps to reproduce

  1. install MSEdgeRedirect
  2. edit Edge shortcut
  3. add "--disable-features=RendererCodeIntegrity"
  4. click Edge shortcut
  5. or Run "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --disable-features=RendererCodeIntegrity using the Windows + R keys 屏幕截图 2024-04-14 113956 屏幕截图 2024-04-14 114002

✔️ Expected Behavior

open Edge with "--disable-features=RendererCodeIntegrity" on Active Mode

❌ Actual Behavior

cannot open Edge with "--disable-features=RendererCodeIntegrity"

Microsoft Windows version

22H2 Build 19045.4291

Other Software

No response

zhaobudaomingzi commented 2 months ago

This bug is triggered even if I don't enable any additional redirections 屏幕截图 2024-04-14 114006

zhaobudaomingzi commented 2 months ago

In addition, when Edge's update is complete and click Restart, it will launch from Chrome

zhaobudaomingzi commented 2 months ago

When I edit MSEdgeRedirect settings, if one of the Active Mode options is checked and saved, it remains checked the next time I try to uncheck it. I tried edge stable and was able to reproduce it

rcmaehl commented 2 months ago

This is intended behavior as is likely creating an entry in %appdata%\MSEdgeRedirect\logs\AppSecurity.log for an unsafe flag as I don't think most people are using it. Can you advise why you are using the flag and I may be able to make a patch?

zhaobudaomingzi commented 2 months ago

Can you advise why you are using the flag and I may be able to make a patch?

I'm using the MacType application, which is used for font rendering. When I add --disable-features=RendererCodeIntegrity to the Edge shortcut, it allows third-party DLL injections, and MacType works fine, as seen at snowie2000/mactype Wiki

rcmaehl commented 2 months ago

I will look into adding a custom allowed flags list. In the meantime you can workaround this by creating:

HKLM\SOFTWARE\Policies\Robert Maehl Software\MSEdgeRedirect\RunUnsafe as a DWORD and setting the value to 1

Or by running the following in an admin command prompt

reg add "HKLM\SOFTWARE\Policies\Robert Maehl Software\MSEdgeRedirect" /v RunUnsafe /t REG_DWORD /d 1

zhaobudaomingzi commented 2 months ago

I will look into adding a custom allowed flags list.

Thanks for making the improvements. If you have time, could you help me with the other two issues I'm having?

In addition, when Edge's update is complete and click Restart, it will launch from Chrome

When I edit MSEdgeRedirect settings, if one of the Active Mode options is checked and saved, it remains checked the next time I try to uncheck it. I tried edge stable and was able to reproduce it

rcmaehl commented 2 months ago

In addition, when Edge's update is complete and click Restart, it will launch from Chrome

Known issue, working on it

When I edit MSEdgeRedirect settings, if one of the Active Mode options is checked and saved, it remains checked the next time I try to uncheck it. I tried edge stable and was able to reproduce it

I will look into this

zhaobudaomingzi commented 2 months ago

I found a new bug, when I try to open a pdf or an image file such as a png with Edge in the File Explorer, Edge doesn't wake up