devtools
devtools copied to clipboard
In popup mode clicking the Reset button does not take effect.
Describe the bug
When DevTools are opened in popup mode, clicking the reset-related buttons does not take effect.
I’ve identified the issue and found a solution. I think the root cause is that using confirm() in popup mode causes the operation to fail, since confirm() is a native browser API.
Fix: Replace all confirm() calls with a custom Vue modal dialog.
https://github.com/user-attachments/assets/05b57064-8c49-4228-8010-56730ebd6f58
Reproduction
video
System Info
System:
OS: Windows 11 10.0.22631
CPU: (16) x64 AMD Ryzen 9 7940H w/ Radeon 780M Graphics
Memory: 4.54 GB / 15.22 GB
Binaries:
Node: 22.20.0 - C:\Program Files\nodejs\node.EXE
npm: 10.9.3 - C:\Program Files\nodejs\npm.CMD
pnpm: 10.33.4 - C:\Program Files\nodejs\pnpm.CMD
bun: 1.3.13 - C:\Users\86138\.bun\bin\bun.EXE
Browsers:
Chrome: 148.0.7778.168
Edge: Chromium (140.0.3485.54)
Internet Explorer: 11.0.22621.3527
Used Package Manager
pnpm
Validations
- [x] Follow our Code of Conduct
- [x] Read the Contributing Guide.
- [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [x] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- [x] The provided reproduction is a minimal reproducible of the bug.