Open Bug 1454337 Opened 6 years ago Updated 2 years ago

Dev Toolbar - Data URL source links and their tooltips for CSS rules from Userstyle : Should be more useful

Categories

(DevTools :: Inspector: Rules, enhancement, P5)

59 Branch
enhancement

Tracking

(Not tracked)

People

(Reporter: decembre56, Unassigned)

Details

Attachments

(3 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
Build ID: 20180324220229

Steps to reproduce:

Using the Dev Toolbar, find Data URL source links of an Userstyles in the right htlm panel


Actual results:

But now if we can find the number line of the css easily, it could be better.

By example, actually it provide only :
"inline:74074


Expected results:


Should be more useful (specially when we test many Userstyle for one site) :
"(inline)Userstyles TableView+Enhancer - Dark-Grey v.105:74074"
or generally:
"USERSYTLE NAME" + CSS Line Number"

It's possible to have the userstyle name (Directly or on hover) from which 
the CSS rule come from + line number in it ??
Hi decembre56,

The described issue seems more like and enhancement, thus I will assign it to a component in order to involve the development team for a proper review.
Severity: normal → enhancement
Status: UNCONFIRMED → NEW
Component: Untriaged → Developer Tools: Console
Ever confirmed: true
;-)
Hello decembre56,

I feel it is related to the inspector panel right ?
I am not sure what to do with the steps to reproduce, so could you: 
- give us an url to see the issue (a codepen/glitch would be perfect)
- give us the exact steps you take that lead to the issue

Thanks !
Flags: needinfo?(decembre56)
well...
It's a little bit complicated for me :
I don't know how to make a codepen.

You can easily test if you use Userstyles, go to their site.

and install one of my Userstles for it (maybe not to good for you : i make t for a large screen):
https://userstyles.org/styles/56792/userstyles-tableview-enhancer-dark-grey-v-106 .

If you use the inspector , you can understand what i mean... i hope!
Flags: needinfo?(decembre56)
Okay, I installed the extension and your style, and then inspected an element.
Are you talking about the links I circled in red ?
Flags: needinfo?(decembre56)
perfectly!
Flags: needinfo?(decembre56)
Product: Firefox → DevTools
I return to test how work the inspector in Firefox Quantum and if it is better it always miss something to make it useful as Firebug before.

Before in firefox + firebug, we see the style name (truncated if too long) + the number line and on hover of it , the header of the userstyles used.

That's more comfortable!
I test many userstyles for the same site and it really a pain to not have these infos provided in Quantum.
Waterfox + Firebug - BUGzilla - INSPECTOR ( show my userstyles name)
Component: Console → Inspector
FIR QUANTUM + Inspector - for BUGzilla - INSPECTOR Css selector don't display the userstyles name.

Any new update about it ?
I think it should be useful not only for me :-)
I post about it in Reddit :
CSS - Firefox Quantum vs Waterfox and Dev Toolbar vs Firebug (need enhancement...)
https://www.reddit.com/r/waterfox/comments/c6wq21/css_firefox_quantum_vs_waterfox_and_dev_toolbar/

Hi, decembre56!

This looks like an enhancement request to how stylesheets with content expressed from a data URI are represented in the Rules view. Right now, DevTools uses the inline stylesheet representation. As I understand it, the stylesheet links point right source for inspection in the Style Editor, so there's no blocker, just an inconvenience.

While I agree this would be a nice to have, we currently don't have something like this on our roadmap for work.
However, we will review a patch if anyone is interested in working on it.

Priority: -- → P5
Component: Inspector → Inspector: Rules

No one is interested by enhance this ?

I have read somewhere that you ask our advise about the New devtools (which normally include now some Firebugs "like" functions):
Yes, it seems better and better, offer a lot of interesting ways to inspect / observe / etc ...
But too, i think it should make infos useable and more readable, which help to adopt it .

Each time a new Quantum is lunched , i test it to see if some change are made to make my CSS and Style usage,
more easy...
But, for me, that's not the case:
It's very far of the combination Firebug+ Firpath provided before.

I know, it's a 2 year old bug, but after reading:
GitHub - Stylus Addon: expose style name #1403
With the dev reply, i realize that Firefox Quantum:

Note that this PR is mostly useless for Firefox because it doesn't support names in the inspector.

Yes, it's:

an enhancement request to how stylesheets with content expressed from a data URI are represented in the Rules view.
It need to post an other request?
But it seems i can't find the right way to explain it.

Other explanation by this dev (copy/ paste):
"I have limited it to Chrome now because FF's devtools doesn't support sourceURL comment in style elements,
so the only thing the PR did was adding a data-name attribute on style elements,
which is arguably entirely meaningless because devtools in FF doesn't link rules to elements."

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: