2021/01/01
The problem
I've had the issue for a while where a Microsoft Edge browser window freezes and becomes unresponsive after sitting idle for a while. The behaviour is strange, because the interactive elements underneath the freeze will still work and websites still load, but the browser window is not redrawn. If you switch tabs, the browser window will simply render a grey screen, as visible in the screenshot above. Microsoft Edge eventually gets itself together after a solid minute, but a repaint of the brower window can be forced by minimising, then maximising the window again. This is only a temporary fix as the behaviour returns.
Solutions which won't work
The following solutions won't work, because I have tested them:
- Disabling hardware acceleration in the settings
- Disabling tab freeze or tab sleep in
edge://flags
- Disabling media router component in
edge://flags
Solution which will work
- Enter
edge://flags
in the navigation bar - Search for "Calculate window occlusion on Windows"
- Select "Disable" from the dropdown menu for this flag
- Restart Microsoft Edge
I've found the solution in a Google Chrome support thread. The problem occurs for the Google Chrome browser as well, so it is likely a problem which originates from the Chromium open source project. I haven't found any articles detailing a fix for Microsoft Edge, so this might be the first one for Edge. It is unacceptable that a bug of this caliber makes its way into stable browsers.