Closed Bug 1088900 Opened 11 years ago Closed 8 years ago

Need parse console.group and console.groupCollapsed with styles input line console.log

Categories

(DevTools :: Console, defect, P1)

x86_64
Windows 7
defect

Tracking

(firefox55 fixed)

RESOLVED FIXED
Firefox 55
Tracking Status
firefox55 --- fixed

People

(Reporter: nekr, Assigned: nchevobbe)

References

Details

Attachments

(4 files)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.104 Safari/537.36
Blocks: 1088355
Component: Untriaged → Developer Tools: Console
Messages |group| and |groupCollapsed| from backend did not have |styles| field, therefore cannot implement styling. http://mxr.mozilla.org/mozilla-central/source/dom/base/Console.cpp#1099
Assignee: nobody → chevobbe.nicolas
Priority: -- → P3
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Yes, I think we'll need to process arguments for console.group and groupCollapsed in the same way that they are processed for the logging methods.
3 years old issue. Any work in progress?
yes, it's on my todo list
Priority: P3 → P1
Comment on attachment 8856918 [details] Bug 1088900 - Parse console.group/groupCollapse for custom styling. https://reviewboard.mozilla.org/r/128842/#review131360 ::: dom/console/Console.cpp:1564 (Diff revision 1) > case MethodError: > case MethodException: > case MethodDebug: > case MethodAssert: > + case MethodGroup: > + case MethodGroupCollapsed: What about MethodGroupEnd? I guess you should add it here as well.
Attachment #8856918 - Flags: review?(amarchesini) → review+
Comment on attachment 8856918 [details] Bug 1088900 - Parse console.group/groupCollapse for custom styling. https://reviewboard.mozilla.org/r/128842/#review131360 > What about MethodGroupEnd? > I guess you should add it here as well. Thanks for the review Andrea ! Since `console.groupEnd` doesn't take any argument (https://console.spec.whatwg.org/#groupend), I don't think we have any reason to parse what may have passed into it. But maybe I'm missing something ?
Comment on attachment 8856918 [details] Bug 1088900 - Parse console.group/groupCollapse for custom styling. https://reviewboard.mozilla.org/r/128842/#review131360 > Thanks for the review Andrea ! > Since `console.groupEnd` doesn't take any argument (https://console.spec.whatwg.org/#groupend), I don't think we have any reason to parse what may have passed into it. But maybe I'm missing something ? Our implementation is (currently) different: https://dxr.mozilla.org/mozilla-central/source/dom/webidl/Console.webidl#23
Comment on attachment 8856918 [details] Bug 1088900 - Parse console.group/groupCollapse for custom styling. https://reviewboard.mozilla.org/r/128842/#review131360 > Our implementation is (currently) different: https://dxr.mozilla.org/mozilla-central/source/dom/webidl/Console.webidl#23 Interresting, thanks ! I'll add a case for `MethodGroupEnd` as well then.
We should check if we want to update our Console API implementation to the latest spec. Maybe follow up? In case there is not an existing bug.
Comment on attachment 8856919 [details] Bug 1088900 - Add backend tests for console.group custom styling. https://reviewboard.mozilla.org/r/128844/#review131448 ::: devtools/server/tests/mochitest/test_webconsole-group-custom-styles.html:1 (Diff revision 1) > +<!DOCTYPE HTML> Our backend tests for webconsole are scattered all over. But most of them are in https://dxr.mozilla.org/mozilla-central/source/devtools/shared/webconsole/test so unless if there's a reason to put this one here I'd say move it with the others.
Comment on attachment 8856920 [details] Bug 1088900 - Use ConsoleMessage's "parameters" property for console.group. https://reviewboard.mozilla.org/r/128846/#review131450
Attachment #8856920 - Flags: review+
(In reply to Andrea Marchesini [:baku] from comment #14) > We should check if we want to update our Console API implementation to the > latest spec. > Maybe follow up? In case there is not an existing bug. There are separate bugs for a change to console.assert and console.count. Offhand I'm not sure if there are other changes to be done.
Attachment #8856921 - Flags: review?(bgrinstead)
Comment on attachment 8856919 [details] Bug 1088900 - Add backend tests for console.group custom styling. https://reviewboard.mozilla.org/r/128844/#review132084
Attachment #8856919 - Flags: review?(bgrinstead) → review+
Comment on attachment 8856921 [details] Bug 1088900 - Add mocha tests for custom styles on console.group messages. https://reviewboard.mozilla.org/r/128848/#review132086
Attachment #8856921 - Flags: review?(bgrinstead) → review+
Pushed by chevobbe.nicolas@gmail.com: https://hg.mozilla.org/integration/autoland/rev/2c060c63c7dc Parse console.group/groupCollapse for custom styling. r=baku https://hg.mozilla.org/integration/autoland/rev/31e0c3582035 Add backend tests for console.group custom styling. r=bgrins https://hg.mozilla.org/integration/autoland/rev/575ccbb27a30 Use ConsoleMessage's "parameters" property for console.group. r=bgrins https://hg.mozilla.org/integration/autoland/rev/3c6b8512d77f Add mocha tests for custom styles on console.group messages. r=bgrins
(In reply to Matthew N. [:MattN] (behind on bugmail; PM if requests are blocking you) from comment #26) > Please review the screenshots to ensure the styling looks good on all > platforms: > https://screenshots.mattn.ca/compare/?oldProject=mozilla- > central&oldRev=fac2c174087f3ba12ecdd739753bdd93f452ecdb&newProject=mozilla- > central&newRev=ff7729561efd16e7c3140d40337a84318730ab9c&filter=_webconsole Thanks for the screenshots - switching from a plain text message to using parameters changed the color on the group title as it is now being highlighted like a string. I'm not sure if there's a black vs orange, passing onto Nicolas for his opinion.
Flags: needinfo?(nchevobbe)
I think we want to keep the same style, sorry for missing that. I'll file a bug and fix this, it should only be a matter of styling
Flags: needinfo?(nchevobbe)
I filed Bug 1356504 for that.
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: