Closed Bug 2081428 Opened 1 month ago Closed 14 days ago

Enable showing stylesheets in the debugger by default on Nightly

Categories

(DevTools :: Debugger, task)

task

Tracking

(relnote-firefox nightly+, firefox162 fixed)

RESOLVED FIXED
162 Branch
Tracking Status
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: nobody → hmanilla
Status: NEW → ASSIGNED

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

Flags: needinfo?(hmanilla)
Keywords: dev-doc-needed

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?

Depends on: 2037006

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

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.

Flags: needinfo?(hmanilla)

Lets enable on nightly, as suggested by Nicholas.

Summary: Enable showing stylesheets in the debugger by default → Enable showing stylesheets in the debugger by default on Nightly

Note: I filed Bug 2084281 to fallback to the style editor in the short term for links to inline styles until Bug 2037006 lands.

Note: Also updated to check the standard Sourcemap response header
rather than the non-standard X-Sourcemap header.

Pushed by hmanilla@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/1ed9f312ef6d https://hg.mozilla.org/integration/autoland/rev/bb512c5f98f4 [devtools] Enable 'devtools.debugger.features.stylesheets-in-debugger' by default r=devtools-reviewers,jdescottes,nchevobbe https://github.com/mozilla-firefox/firefox/commit/d621b8461d9c https://hg.mozilla.org/integration/autoland/rev/71cf64ec8f36 [devtools] Clarify the rule view link tests for styles with sourcemaps r=devtools-reviewers,nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 17 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
Pushed by smolnar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/cffcb84c5cc2 https://hg.mozilla.org/integration/autoland/rev/08f2b59998d1 Revert "Bug 2081428 - [devtools] Clarify the rule view link tests for styles with sourcemaps r=devtools-reviewers,nchevobbe" for causing dt failures @ browser_dbg-reloading.js.js
Status: RESOLVED → REOPENED
Flags: needinfo?(hmanilla)
Resolution: FIXED → ---
Target Milestone: 162 Branch → ---
Pushed by hmanilla@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/78fbf11ad231 https://hg.mozilla.org/integration/autoland/rev/c16610f68b7e [devtools] Enable 'devtools.debugger.features.stylesheets-in-debugger' by default r=devtools-reviewers,jdescottes,nchevobbe https://github.com/mozilla-firefox/firefox/commit/a016453e9dba https://hg.mozilla.org/integration/autoland/rev/735fd3959b58 [devtools] Clarify the rule view link tests for styles with sourcemaps r=devtools-reviewers,nchevobbe
Status: REOPENED → RESOLVED
Closed: 17 days ago → 14 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
Regressions: 2091416
Flags: needinfo?(hmanilla)
Regressions: 2092096

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.

Keywords: perf-alert
Regressions: 2091984

: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.

Flags: needinfo?(hmanilla)

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)]:

Flags: needinfo?(hmanilla)
relnote-firefox: --- → ?

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.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: