Enable showing stylesheets in the debugger by default on Nightly
Categories
(DevTools :: Debugger, task)
Tracking
(relnote-firefox nightly+, firefox162 fixed)
People
(Reporter: bomsy, Assigned: bomsy)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
(Keywords: dev-doc-needed, perf-alert)
Attachments
(2 external files)
Let's enable stylesheet viewing and editing from the debugger by default. Our usage metrics show that more users are turning this preference on rather than off. We see strong activity on Release, and by making it available by default we expose this feature to users who don't know the preference exists.
| Assignee | ||
Comment 1•1 month ago
|
||
Updated•1 month ago
|
Comment 2•1 month ago
|
||
This should be mentioned at least in the dev release notes, so adding the dev-doc-needed flag.
This is probably also worth mentioning in the normal release notes. Bomsy, if you agree, would you mind nominating this feature for the release notes by setting the relnote-firefox flag to "?"?
https://wiki.mozilla.org/Release_Management/Release_Notes_Nomination
Sebastian
Comment 3•1 month ago
|
||
I'd block this on Bug 2037006
I do have the pref enabled, and each time I try to navigate to an inline style from the Rules view, it opens a new tab and then I have to manually go to the Style Editor, so that's not a great experience to have by default.
I wonder if this should come at a later point once we have "MVP" feature parity with the Style Editor (so toggling stylesheets, adding/importing a local stylesheet, saving to file, β¦) otherwise we might break some people's workflow
We could even discuss if we should rename the panel to "Sources" before making this the default, so people are not confused by the (JS) Debugger opening the StyleSheets.
And once we make this the default, we might also show a notification or something so people could turn it off easily
Our usage metrics show that more users are turning this preference on rather than off.
I'm curious what the number are in comparison to the number of people using the Style Editor in Nightly, can we check that?
Comment 4•1 month ago
|
||
Oh I actually thought this was for enabling this on Nightly first, but looks like the attached patch was for enabling by default.
I think we should first have something to enable on Nightly and let it bake in a couple months so we can get feedback before enabling it on all channels
| Assignee | ||
Comment 5•1 month ago
•
|
||
Thanks for the comment. Just adding some details to continue the discussions
(In reply to Nicolas Chevobbe [:nchevobbe] from comment #3)
I'd block this on Bug 2037006
I do have the pref enabled, and each time I try to navigate to an inline style from the Rules view, it opens a new tab and then I have to manually go to the Style Editor, so that's not a great experience to have by default.
Ah yeah... its annoying .blocked by inline styles work.
Just thinking if we have a short term fix to keep showing inline links in the Styleeditor until inline style patch lands.
Chrome also does not show inline styles in the debugger.
I wonder if this should come at a later point once we have "MVP" feature parity with the Style Editor (so toggling stylesheets, adding/importing a local stylesheet, saving to file, β¦) otherwise we might break some people's workflow
So the thought behind this is that, we have had this feature behind the pref for a couple of cycles already, as experimental.
We have not really gotten a lot of bugs filed from outside the team. We want to be a bit more aggressive about getting it in front of users which would be helpful to drive the direction of the feature. We could have a notification indicating it as experimental. The metrics have shown the most activity on release, so thought that would be helpful.
Also the Style editor would still be enabled and can still be used some of those unsupported features adding/importing a local stylesheet, saving to file, until those are supported in the debugger.
We could even discuss if we should rename the panel to "Sources" before making this the default, so people are not confused by the (JS) Debugger opening the StyleSheets.
This is planned for when we have all the features.
And once we make this the default, we might also show a notification or something so people could turn it off easily
We could do this.
Our usage metrics show that more users are turning this preference on rather than off.
I'm curious what the number are in comparison to the number of people using the Style Editor in Nightly, can we check that?
Yeah, I'll try to check that and get the style editor numbers as well.
| Assignee | ||
Comment 6•1 month ago
|
||
Lets enable on nightly, as suggested by Nicholas.
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 7•1 month ago
|
||
Note: I filed Bug 2084281 to fallback to the style editor in the short term for links to inline styles until Bug 2037006 lands.
| Assignee | ||
Comment 8•25 days ago
|
||
Note: Also updated to check the standard Sourcemap response header
rather than the non-standard X-Sourcemap header.
Comment 10•17 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/bb512c5f98f4
https://hg.mozilla.org/mozilla-central/rev/71cf64ec8f36
Comment 11•17 days ago
|
||
Comment 12•17 days ago
|
||
Backed out for causing dt failures @ browser_dbg-reloading.js.js
Backout link: https://hg.mozilla.org/integration/autoland/rev/bc2fa72882bd6bc888bb7476b7b7e805590a3c49
Comment 13•14 days ago
|
||
Comment 14•14 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/c16610f68b7e
https://hg.mozilla.org/mozilla-central/rev/735fd3959b58
| Assignee | ||
Updated•14 days ago
|
Comment 15•10 days ago
|
||
Perfherder has detected a devtools performance change from push bc2fa72882bd6bc888bb7476b7b7e805590a3c49.
No action is required from the author; this comment is provided for informational purposes only.
| Regression | Test | Platform | Options | Absolute values [old vs new] |
|---|---|---|---|---|
| 15% | damp custom.jsdebugger.project-search.DAMP (doc) | macosx1500-aarch64-shippable | e10s fission stylo webrender | 552.94 ms -> 633.91 ms |
| 8% | damp custom.jsdebugger.stepOut.big-bundle.DAMP (doc) | macosx1500-aarch64-shippable | e10s fission stylo webrender | 189.57 ms -> 204.72 ms |
| 6% | damp custom.jsdebugger.stepIn.big-bundle.DAMP (doc) | macosx1500-aarch64-shippable | e10s fission stylo webrender | 623.54 ms -> 658.46 ms |
| 4% | damp custom.jsdebugger.stepIn.DAMP (doc) | macosx1500-aarch64-shippable | e10s fission stylo webrender | 570.52 ms -> 596.04 ms |
| 3% | damp source-map.eachMapping.DAMP (doc) | macosx1500-aarch64-shippable | e10s fission stylo webrender | 79.03 ms -> 81.39 ms |
Need Help or Information?
If you have any questions, please reach out to acseh@mozilla.com. Alternatively, you can find help on Slack by joining #perf-help, and on Matrix you can find help by joining #perftest.
Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests.
Comment 16•8 days ago
|
||
:bomsy Did you want to nominate this for a Nightly relnote? If so, set the relnote-firefox flag to "?". Also, we might want to look into the performance regressions to avoid a backout.
Possible wording:
Starting with Firefox 162, Nightly builds show stylesheets in the Debugger, where they can be viewed and edited alongside scripts.
| Assignee | ||
Comment 17•7 days ago
|
||
Release Note Request (optional, but appreciated)
[Why is this notable]: This feature enables users to view and edit external stylesheets in the debugger.
[Affects Firefox for Android]: No
[Suggested wording]: Starting with Firefox 162, Nightly builds show external stylesheets in the Debugger alongside scripts, where they can be viewed and edited.
[Links (documentation, blog post, etc)]:
| Assignee | ||
Updated•7 days ago
|
Updated•7 days ago
|
| Assignee | ||
Comment 18•6 days ago
|
||
The 15% regression on damp custom.jsdebugger.project-search.DAMP makes sense as we now search stylesheets in the debugger.
The others are not clear and feel like noise, and al on one os.
Description
•