Closed
Bug 1441817
Opened 6 years ago
Closed 6 years ago
Browser console throws on console.count in content tab
Categories
(DevTools :: Console, defect, P1)
DevTools
Console
Tracking
(firefox60 fixed)
RESOLVED
FIXED
Firefox 60
Tracking | Status | |
---|---|---|
firefox60 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
References
()
Details
(Whiteboard: [newconsole-mvp])
Attachments
(1 file)
**Steps to reproduce** 1. Open the browser console 2. Open the following in a content tab: data:text/html,<meta charset=utf8><script>console.count("content")</script> **Expected results** I get a "content: 1" message (or at least, something telling me why I can't access the counter) **Actual results** There's an error in the terminal: > JavaScript error: resource://devtools/shared/base-loader.js -> resource://devtools/client/webconsole/new-console-output/utils/messages.js, line 94: TypeError: counter is undefined --- This indicates an error in the frontend [1] which should be easy to fix. But it would be good to see why we have a different packet than in the webconsole. [1] https://searchfox.org/mozilla-central/rev/14d933246211b02f5be21d2e730a57cf087c6606/devtools/client/webconsole/new-console-output/utils/messages.js#85-92
Assignee | ||
Updated•6 years ago
|
Has STR: --- → yes
Priority: -- → P2
Whiteboard: [newconsole-mvp]
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Priority: P2 → P1
Assignee | ||
Comment 1•6 years ago
|
||
Here's the packet we get in the browser console: ```json { "from": "server1.conn0.consoleActor2", "type": "consoleAPICall", "message": { "level": "count", "filename": "data:text/html,<meta%20charset=utf8><script>console.count(\"content\")</script>", "lineNumber": 1, "functionName": "", "timeStamp": 1519828532755, "addonId": "", "arguments": [ "content" ], "workerType": "none", "styles": [], "category": "webdev" } } ``` Note that we don't have a counter argument at all.
Comment hidden (mozreview-request) |
Assignee: nchevobbe → mratcliffe
Has Regression Range: --- → irrelevant
OS: Unspecified → All
Hardware: Unspecified → All
Assignee: mratcliffe → nchevobbe
Comment 3•6 years ago
|
||
mozreview-review |
Comment on attachment 8954757 [details] Bug 1441817 - Fix Error when console.count packet is incomplete; . https://reviewboard.mozilla.org/r/223890/#review232346
Attachment #8954757 -
Flags: review?(mratcliffe) → review+
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e29b54201696 Fix Error when console.count packet is incomplete; r=miker.
Comment 5•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/e29b54201696
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 60
Comment 6•6 years ago
|
||
I was unable to reproduce this issue on Firefox 59.0.3 (20180427210249) on Windows 10x64, Firefox 60.0b16 (20180426170554) on Windows 10x64 or on Firefox Nightly 61.0a1 (20180503220110) on Windows 10x64. [bugday-20180502]
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•