Add breakpoint in closed source tab accidentally
Steps to reproduce
- Go to "about:home"
- Select source "chrome://browser/content/contentSearchUI.js"
- Click Pretty Print button -> formatted source tab "{ } contentSearchUI.js" will be opened.
- Close formatted source tab "{ } contentSearchUI.js"
- Add breakpoint on line 7 in "contentSearchUI.js" tab
- breakpoint is added in "contentSearchUI.js:formatted: 6"
Actual Results breakpoint is added in closed tab "contentSearchUI.js:formatted: 6"
Expected Results Add breakpoint in active source tab.

I'm able to reproduce this in Nightly. Now we just need to be able to reproduce it in development mode.
Thanks for filing the bug. This is actually intended behavior because we will store breakpoints in the original location (a.k.a pretty location).
We can do something nice here and jump you to the original location where we store the breakpoint if it would help.
I'm able to reproduce this in Nightly. Now we just need to be able to reproduce it in development mode.
Oh, I was actually looking at the wrong bug. I thought this was #1982
Should the the tab auto switch to the prettied tab { } contentSearchUI.js when add breakpoint on contentSearchUI.js?
It is complicated behavior for me. Because in step 5, if click on line 1, new breakpoint will be added in original tab. I think that If it is intended behavior, both of original and prettied tab should not be displayed at the same time.
I think #2813 is related here. Going to close this one out for now as I don't think we're getting to it right away. I can only reproduce it on about: pages and not with other websites, that would be good to get a better test case.