Browser/NTP hangs when a specific string is entered in web console or browser console
Categories
(DevTools :: Console, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: csasca, Unassigned)
Details
Found in
- Firefox 145.0b5
Affected versions
- Firefox 145.0b5
- Firefox 146.0a1
Tested platforms
- Affected platforms: Windows 11, Ubuntu 24.04, macOS 26.0.1
Steps to reproduce
- Access browser console
- Input "while(true);" and press enter
- Interact with New Tab page
Expected result
- The New tab page does not hang
Actual result
- The new tab page hangs and cannot be used until Firefox is restarted
Regression range
- Will see for a regression
Additional notes
- The issue can be seen in the following attachment
- If the same steps are followed but web console is used instead, the whole browser will hang (see attachment above)
Updated•1 month ago
|
Comment 1•25 days ago
|
||
We most likely already have bugs filed to make the webconsole safe to execute incorrect scripts, but I couldn't find duplicates at the moment.
I don't think this is a regression, but if you happen to find a regression window, let us know.
Comment 2•25 days ago
|
||
If you try to interact with the content page after running the infinite loop, it should allow to trigger the slow script detector and should allow you to stop the script.
Comment 3•25 days ago
|
||
May be a duplicate of bug 1903728. Bug 1884377 is also having more context and some other interesting "see also" bugs.
| Reporter | ||
Comment 4•25 days ago
|
||
Yep, tried looking for a regression but the behavior is the same even on older builds as Firefox 58.0a1 (2017-10-26).
Description
•