Closed Bug 1648145 Opened 4 years ago Closed 4 years ago

Main Thread Title Doesn't Change in Sources Tree

Categories

(DevTools :: Debugger, defect)

defect

Tracking

(firefox80 verified)

RESOLVED FIXED
Firefox 80
Tracking Status
firefox80 --- verified

People

(Reporter: davidwalsh, Assigned: davidwalsh)

References

Details

Attachments

(2 files)

Attached image MainThread.png
  1. Go to https://davidwalsh.name
  2. Open debugger -- see "David Walsh ...." at the top of the sources tress.
  3. Click a link to any blog post
  4. ERROR: Main thread title DOES NOT CHANGE (articles are swapped via AJAX, so maybe reasonable that the title doesn't change)
  5. Navigate to https://facebook.com
  6. ERROR: Main thread title is "David Walsh ..."

It appears that the main thread title never changes in the sources tree. I believe this is because that the thread name is set when initially attached but doesn't update upon navigation.

I don't know that setting the main thread name to the page title is a good solution. Since document.title can change a page title within JavaScript, and someone could update that every 2 milliseconds, updating page titles could either not work or just bog down the debugger.

Good call. We should probably use 'Main Thread' or something generic like that.

Assignee: nobody → dwalsh
Status: NEW → ASSIGNED
Pushed by dwalsh@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/aacc7585e011
Show 'Main Thread' label for top level main thread in sources tree r=jlast
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 80

Verified fixed on Nightly 80.0a1 (20200701213212)

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: