debugger icon indicating copy to clipboard operation
debugger copied to clipboard

[Sources] List webextensions after web origins

Open fvsch opened this issue 7 years ago • 15 comments

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:

screen shot 2019-02-09 at 13 05 37

Could we show the extension origins at the end of the list instead? So that we have 3 buckets:

  1. Page origin
  2. Other web origins
  3. Webextensions

(We may have more to fit between 1 and 2, for webpack and Angular I believe?)

fvsch avatar Feb 09 '19 12:02 fvsch

Good idea @fvsch

jasonLaster avatar Feb 10 '19 00:02 jasonLaster

@fvsch Can i give a try on this issue, Can you help me with how sources are being fetched and stored.

nagpalm7 avatar Feb 11 '19 15:02 nagpalm7

@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

fvsch avatar Feb 11 '19 15:02 fvsch

@nagpalm7 go for it

jasonLaster avatar Feb 11 '19 15:02 jasonLaster

Thanks @fvsch @jasonLaster

nagpalm7 avatar Feb 11 '19 16:02 nagpalm7

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 avatar Feb 11 '19 16:02 claim

/claim

nagpalm7 avatar Feb 11 '19 16:02 nagpalm7

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.) screenshot

@jasonLaster Do you know how we should order groups, if we try to group by:

  • main origin
  • other origins
  • webextensions
  • webpack/angular/other bundler

fvsch avatar Feb 11 '19 21:02 fvsch

I'd do

  • main origin
  • webpack/angular/other bundler
  • other origins
  • webextensions

jasonLaster avatar Feb 12 '19 06:02 jasonLaster

@jasonLaster can you please mention the type value for all the respective sources or any unique identifier wwhich can be used to sort

nagpalm7 avatar Feb 19 '19 18:02 nagpalm7

hmm, i'm not sure @nagpalm7

jasonLaster avatar Feb 20 '19 17:02 jasonLaster

@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 avatar Feb 25 '19 06:02 nagpalm7

@nagpalm7 compare the urls of origins with the current url of site. The matching one's are main origins and remaining ones are other

charanjit-singh avatar Feb 25 '19 08:02 charanjit-singh

You need to create a pipeline. before adding urlList to datastore, which sorts the list while adding.

charanjit-singh avatar Feb 25 '19 08:02 charanjit-singh

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

janodvarko avatar Mar 01 '21 13:03 janodvarko