The Edge browser will soon warn you if you are going to close multiple tabs to avoid unwanted crashes.
Microsoft does not want Edge users to be disappointed when they accidentally close their tabs. For now, if you press the Alt + F4 keyboard shortcut or press the exit button on the window, Microsoft Edge or Chrome will simply shut down without warning.
Unwanted browser output is not the best, especially when you have opened many important browser sessions. Fortunately, Microsoft is now working on a solution to protect you from any unwanted accidents.
According to experimental flags found in Canary editions, you will soon be able to enable tab protection in Microsoft Edge to prevent your error before Windows or macOS shut down your browser.
Basically, you just need to go to the Microsoft Edge settings and select the Ask before closing multiple tabs option, as shown in the screenshot below.
Once your command to close the entire window is activated, Microsoft Edge will display a pop-up warning when you try to close multiple active tabs.
There will be two options. "Close all" to exit the browser and "Cancel" to continue using the browser. You can also select "Do not ask me this question again" in the pop-up window to turn off this feature without opening the Edge Settings page.
The Microsoft Edge solution is sleek and will not warn you when you have only one tab open. The warning only appears when you have several tabs open.
If you want to try this feature right now, install Edge Canary and turn on the test flag labeled "Ask Before Closing Multiple Tabs".
This feature is expected to reach firm versions of Microsoft Edge early next year and will save you valuable time if you are prone to closing your tabs incorrectly.