[Sources] List webextensions after web origins
When webextension scripts are listed (I think that's only when "Enable browser chrome and addon debugging toolboxes" is checked in DevTools preferences, maybe?), they can appear in-between web origins.
It seems we're currently sorting like this:
- Page origin first
- All other origins, sorted alphabetically (Extensions origins start with "moz-extension")
Which looks like:

Could we show the extension origins at the end of the list instead? So that we have 3 buckets:
- Page origin
- Other web origins
- Webextensions
(We may have more to fit between 1 and 2, for webpack and Angular I believe?)
Good idea @fvsch
@fvsch Can i give a try on this issue, Can you help me with how sources are being fetched and stored.
@nagpalm7 Sure. :) I'm not sure about how Sources work, since I mostly contribute on the UI side (CSS, SVG, bits of JS/React).
There are some guidelines in the docs: https://github.com/devtools-html/debugger.html#next-steps This overview might help: https://github.com/devtools-html/debugger.html/blob/master/docs/debugger-html-react-redux-overview.md
@nagpalm7 go for it
Thanks @fvsch @jasonLaster
Thanks for claiming the issue! :wave:
Here are some links for getting setup, contributing, and developing. We're always happy to answer questions in slack! If you become busy, feel free to /unclaim it.
:fox_face: Debugger team!
/claim
I can also confirm that Webpack sources are listed alphabetically. Probably the same for Angular ones.
(Please ignore the colors in the next screenshot, I was just running some tests.)

@jasonLaster Do you know how we should order groups, if we try to group by:
- main origin
- other origins
- webextensions
- webpack/angular/other bundler
I'd do
- main origin
- webpack/angular/other bundler
- other origins
- webextensions
@jasonLaster can you please mention the type value for all the respective sources or any unique identifier wwhich can be used to sort
hmm, i'm not sure @nagpalm7
@jasonLaster i am not able to figure out how to identify main origins and other origins from path can you help me with that and also let me know all the possible bundler which I can include while reordering the tree.
@nagpalm7 compare the urls of origins with the current url of site. The matching one's are main origins and remaining ones are other
You need to create a pipeline. before adding urlList to datastore, which sorts the list while adding.
Cloned into Bugzilla https://bugzilla.mozilla.org/show_bug.cgi?id=1695638
Firefox Developer Tools (including Debugger tool) development is now entirely happening in Bugzilla and new issues should be reported here: https://bugzilla.mozilla.org/enter_bug.cgi?product=DevTools&component=Debugger
Honza