MSEdgeRedirect icon indicating copy to clipboard operation
MSEdgeRedirect copied to clipboard

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

Open zhaobudaomingzi opened this issue 10 months ago • 9 comments

Preflight Checklist

  • [X] Running microsoft-edge:https://google.com redirects successfully
  • [ ] Microsoft Edge is selected in any "How do you want to open this?" box

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 avatar Apr 14 '24 04:04 zhaobudaomingzi

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

zhaobudaomingzi avatar Apr 14 '24 04:04 zhaobudaomingzi

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

zhaobudaomingzi avatar Apr 14 '24 04:04 zhaobudaomingzi

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

zhaobudaomingzi avatar Apr 14 '24 04:04 zhaobudaomingzi

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?

rcmaehl avatar Apr 14 '24 22:04 rcmaehl

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

zhaobudaomingzi avatar Apr 15 '24 01:04 zhaobudaomingzi

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

rcmaehl avatar Apr 15 '24 01:04 rcmaehl

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

zhaobudaomingzi avatar Apr 15 '24 02:04 zhaobudaomingzi

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

rcmaehl avatar Apr 15 '24 02:04 rcmaehl

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

zhaobudaomingzi avatar Apr 24 '24 09:04 zhaobudaomingzi