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)
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
Reporter | ||
Comment 1•11 years ago
|
||
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 | ||
Updated•9 years ago
|
Assignee: nobody → chevobbe.nicolas
Priority: -- → P3
Assignee | ||
Updated•9 years ago
|
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Comment 2•9 years ago
|
||
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.
Comment 4•8 years ago
|
||
3 years old issue. Any work in progress?
Assignee | ||
Comment 5•8 years ago
|
||
yes, it's on my todo list
Assignee | ||
Updated•8 years ago
|
Priority: P3 → P1
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 10•8 years ago
|
||
mozreview-review |
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+
Assignee | ||
Comment 11•8 years ago
|
||
mozreview-review-reply |
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 12•8 years ago
|
||
mozreview-review-reply |
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
Assignee | ||
Comment 13•8 years ago
|
||
mozreview-review-reply |
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.
Comment 14•8 years ago
|
||
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 15•8 years ago
|
||
mozreview-review |
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 16•8 years ago
|
||
mozreview-review |
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+
Comment 17•8 years ago
|
||
(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.
Assignee | ||
Updated•8 years ago
|
Attachment #8856921 -
Flags: review?(bgrinstead)
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 22•8 years ago
|
||
mozreview-review |
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 23•8 years ago
|
||
mozreview-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+
Comment 24•8 years ago
|
||
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
Comment 25•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/2c060c63c7dc
https://hg.mozilla.org/mozilla-central/rev/31e0c3582035
https://hg.mozilla.org/mozilla-central/rev/575ccbb27a30
https://hg.mozilla.org/mozilla-central/rev/3c6b8512d77f
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
Comment 26•8 years ago
|
||
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
Comment 27•8 years ago
|
||
(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)
Assignee | ||
Comment 28•8 years ago
|
||
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)
Assignee | ||
Comment 29•8 years ago
|
||
I filed Bug 1356504 for that.
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•