Open Bug 1995937 Opened 1 month ago Updated 25 days ago

Browser/NTP hangs when a specific string is entered in web console or browser console

Categories

(DevTools :: Console, enhancement, P3)

Desktop
All
enhancement

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

  1. Access browser console
  2. Input "while(true);" and press enter
  3. 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)
QA Whiteboard: [S3][qa-found-in-b145] → [S3][qa-found-in-b145][qa-investig-needed-c146/b145]

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.

Type: defect → enhancement
Priority: -- → P3

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.

May be a duplicate of bug 1903728. Bug 1884377 is also having more context and some other interesting "see also" bugs.

Yep, tried looking for a regression but the behavior is the same even on older builds as Firefox 58.0a1 (2017-10-26).

QA Whiteboard: [S3][qa-found-in-b145][qa-investig-needed-c146/b145] → [S3][qa-found-in-b145][qa-investig-done-c146/b145]
You need to log in before you can comment on or make changes to this bug.