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)
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
Reporter | ||
Updated•8 years ago
|
Component: Untriaged → Developer Tools: Console
Comment 1•8 years ago
|
||
Thanks for filing. We are attempting to open the debugger in this case but should be going to the style editor as you say
Blocks: enable-new-console
Priority: -- → P2
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → chevobbe.nicolas
Comment 2•8 years ago
|
||
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
Assignee | ||
Comment 3•8 years ago
|
||
> 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 hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 6•8 years ago
|
||
Comment 7•8 years ago
|
||
mozreview-review |
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+
Updated•8 years ago
|
Status: NEW → ASSIGNED
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 10•8 years ago
|
||
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
Comment 11•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox53:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 53
Comment 12•8 years ago
|
||
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]
Updated•8 years ago
|
Status: RESOLVED → VERIFIED
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•