Closed Bug 1318796 Opened 8 years ago Closed 8 years ago

Web Console CSS links should open the Style Editor

Categories

(DevTools :: Console, defect, P2)

53 Branch
defect

Tracking

(firefox53 verified)

VERIFIED FIXED
Firefox 53
Tracking Status
firefox53 --- verified

People

(Reporter: johngraciliano, Assigned: nchevobbe)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.2; Win64; x64; rv:53.0) Gecko/20100101 Firefox/53.0 Build ID: 20161118030222 Steps to reproduce: (I am glad about the inclusion of CSS in the new Web Console. However...) Open Firefox 53. Visit "https://duckduckgo.com/" Open the Web Console. Ensure showing Warnings and CSS (through the Filter symbol.) Click on a css file link in one of the messages (t1222.css). Actual results: The css file is opened in the browser. (Close it this tab.) The Debugger is open within the tools for the original page. Expected results: The file should open in the Style Editor and the Debugger should remain inactive. This is a regression to Bug ID #782653
Component: Untriaged → Developer Tools: Console
Status: UNCONFIRMED → NEW
Ever confirmed: true
Thanks for filing. We are attempting to open the debugger in this case but should be going to the style editor as you say
Priority: -- → P2
Assignee: nobody → chevobbe.nicolas
This should be an option to pass into the frame component. Also, it might be nice to support Scratchpad links: https://dxr.mozilla.org/mozilla-central/source/devtools/client/webconsole/webconsole.js#2584
> Also, it might be nice to support Scratchpad links: You read my mind, I have an almost-ready patch which does that : open the adequate tool (debugger, style editor, scratchpad) when clicking on location, even in the stacktrace
Comment on attachment 8819954 [details] Bug 1318796 - Open the appropriate tool when clicking on a location in the new console; https://reviewboard.mozilla.org/r/97898/#review100120 Great patch Nicolas, thanks! ::: devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_stacktrace_location_scratchpad_link.js:11 (Diff revision 2) > +"use strict"; > + > +const TEST_URI = "data:text/html;charset=utf8,<p>test stacktrace scratchpad linking</p>"; > + > +add_task(function* () { > + Services.prefs.setBoolPref("devtools.scratchpad.enabled", true); Register a cleanup function to clear the pref or use pushPref from shared-head.js ::: devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_stacktrace_location_scratchpad_link.js:52 (Diff revision 2) > + info("Clicking link to switch to and focus Scratchpad"); > + > + ok(message, "Found console.trace message from Scratchpad"); > + let anchor = message.querySelector(".stack-trace .frame-link .frame-link-filename"); > + > + let onScratchpadSelected = new Promise((resolve) => { can be simplified as let onScratchpadSelected = toolbox.once("scratchpad-selected"); ::: devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_location_styleeditor_link.js:11 (Diff revision 2) > - "/test-bug-782653-css-errors.html"; > - > -var nodes, hud, StyleEditorUI; > > add_task(function* () { > - yield loadTab(TEST_URI); > + Services.prefs.setBoolPref("devtools.webconsole.filter.css", true); Register a cleanup function to clear the pref or use pushPref from shared-head.js ::: devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_location_scratchpad_link.js:11 (Diff revision 2) > - SpecialPowers.pushPrefEnv(options, deferred.resolve); > - return deferred.promise; > -} > > add_task(function* () { > - waitForExplicitFinish(); > + Services.prefs.setBoolPref("devtools.scratchpad.enabled", true); Register a cleanup function to clear the pref or use pushPref from shared-head.js
Attachment #8819954 - Flags: review?(jdescottes) → review+
Status: NEW → ASSIGNED
Pushed by chevobbe.nicolas@gmail.com: https://hg.mozilla.org/integration/autoland/rev/7cfa5f7c0ec2 Open the appropriate tool when clicking on a location in the new console; r=jdescottes
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 53
I have reproduced this bug with Nightly 53.0a1 (2016-11-18) (32-bit) on WIndows 10 , 64 Bit. This bug's fix is now verified on latest Nightly 53.0a1. Build ID : 20161230030205 User Agent : Mozilla/5.0 (Windows NT 10.0; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0 [bugday-20161228]
Status: RESOLVED → VERIFIED
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: