Repository navigation
Description
Product: Microsoft Edge
Component: DevTools / Capture node screenshot / Downloads
Severity: Browser crash
Description
Microsoft Edge crashes when opening a PNG screenshot generated using the built-in DevTools "Capture node screenshot" feature.
The screenshot is successfully saved to disk. However, when I click the red "Show all downloads" button that appears in DevTools, navigate to edge://downloads/, and click the newly downloaded image, the entire Edge browser closes unexpectedly.
The issue is reproducible and occurs when using Edge's native Developer Tools without third-party extensions or screenshot software.
Steps to reproduce
- Open a webpage containing an independently scrolling text area.
- Right-click text inside the scrolling area and select "Inspect."
- In the DevTools Elements panel, select the HTML element containing the scrolling content.
- Right-click the selected element and choose "Capture node screenshot."
- Wait for the red "Show all downloads" button to appear in the bottom-right corner of DevTools.
- Click "Show all downloads," which opens edge://downloads/.
- Click the newly downloaded PNG image.
Actual result
Microsoft Edge closes unexpectedly. The entire browser crashes when opening the downloaded image.
Expected result
The downloaded PNG should open normally without crashing Edge, regardless of whether DevTools remains open.
Reproduction and testing
I reproduced the issue on both a live website and a standalone local HTML test page.
The following tests produced these results:
Test 1 — DevTools remains open
Capture a node screenshot, click "Show all downloads" in DevTools, and click the downloaded PNG.
Result: Edge crashes.
Test 2 — Close DevTools before opening the image
Capture a node screenshot, close DevTools, manually navigate to edge://downloads/, and click the newly downloaded PNG.
Result: The image opens normally. No crash.
Test 3 — Restore the webpage layout before opening the image
Capture a screenshot, restore the webpage element to its original dimensions, leave DevTools open, and open the downloaded PNG from Downloads.
Result: Edge crashes.
Test 4 — Open the same image after restarting Edge
After the crash, restart Edge, navigate directly to edge://downloads/, and click the exact same downloaded PNG.
Result: The image opens normally. No crash.
Test 5 — Reproduce using a standalone HTML test page
Open a local HTML file containing a scrolling text area, capture a screenshot using DevTools, click "Show all downloads," and open the PNG.
Result: Edge crashes.
Observations
- The PNG file is successfully created and is readable after restarting Edge.
- Closing DevTools before opening the downloaded image prevents the crash in my testing.
- The issue is reproducible across different webpages, including a standalone local HTML file.
- The crash appears to be associated with the interaction between DevTools' native screenshot capture functionality and Edge's Downloads interface.
The underlying cause has not been established. In particular, it is unclear whether the crash is triggered by DevTools remaining open, the "Show all downloads" navigation, or another browser state associated with screenshot capture.
Workaround
Close DevTools after capturing the screenshot and before opening the downloaded image from edge://downloads/.
Environment
- Microsoft Edge version: Version 157.0.4341.46 (Official build) (64-bit)
- Operating system: Windows 10
- Screenshot format: PNG
- Screenshot method: Built-in DevTools → Capture node screenshot
Additional information
A standalone HTML test page containing a scrolling text area is attached for reproducing the issue without relying on a specific website.
scrolling_screenshot_test.html
Additional debugging information:
WinDbg confirms that the faulting instruction in msedge.dll is UD2 (opcode 0F 0B), at module offset 0xB9B414A. The resulting exception is 0xC000001D (Illegal Instruction).
This appears consistent with an intentional Chromium crash mechanism, possibly triggered by an internal assertion or consistency check. The exact underlying cause remains undetermined due to limited debugging symbols.
Activity
[-]Microsoft Edge crashes when opening a DevTools-generated screenshot from Downloads while DevTools remains open[/-][+]test[/+][-]test[/-][+]Microsoft Edge crashes when opening a DevTools-generated screenshot from Downloads while DevTools remains open[/+]