Closed Bug 959275 Opened 10 years ago Closed 10 years ago

Custom devtools is logging telemetry information

Categories

(DevTools :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 30

People

(Reporter: kgrandon, Assigned: kgrandon)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file, 1 obsolete file)

In gaia we have a custom profile which registers a devtool in an extension. The following error is being logged:

Warning: An attempt was made to open a tool with an id of "firefox-os-controls", which is not listed in Telemetry._histograms. Location: telemetry.js/toolOpened()

Relevant code: http://mxr.mozilla.org/mozilla-central/source/browser/devtools/shared/telemetry.js#173
(In reply to Kevin Grandon :kgrandon from comment #0)
> In gaia we have a custom profile which registers a devtool in an extension.
> The following error is being logged:
> 
> Warning: An attempt was made to open a tool with an id of
> "firefox-os-controls", which is not listed in Telemetry._histograms.
> Location: telemetry.js/toolOpened()
> 
> Relevant code:
> http://mxr.mozilla.org/mozilla-central/source/browser/devtools/shared/
> telemetry.js#173

Mike, who would normally deal with this, is on PTO this week and next. I looks at a brief skim like this is just a warning message, and not blocking you. Is that right?
I missed that. This is only a debug message, and not a blocker, though we would like to clean this up a bit.
Comment on attachment 8372963 [details] [diff] [review]
Potential-patch-add-custom-devtool-telemetry.patch

Review of attachment 8372963 [details] [diff] [review]:
-----------------------------------------------------------------

Hey - guys, wondering if you have some time to review this. Currently we allow developers to create their own devtool panels (which is something we do in gaia), but when you click on it telemetry errors get logged. This pull request makes it so that we handle custom devtool panels if we can't find a telementry entry for the panel. Alternatively we could just remove the error being logged, and return silently.
Attachment #8372963 - Flags: review?(mratcliffe)
Attachment #8372963 - Flags: review?(jwalker)
Comment on attachment 8372963 [details] [diff] [review]
Potential-patch-add-custom-devtool-telemetry.patch

Review of attachment 8372963 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good to me, r+.
Attachment #8372963 - Flags: review?(mratcliffe)
Attachment #8372963 - Flags: review?(jwalker)
Attachment #8372963 - Flags: review+
Assignee: nobody → kgrandon
Status: NEW → ASSIGNED
Updating patch description /w review.
Attachment #8373400 - Flags: review+
Attachment #8372963 - Attachment is obsolete: true
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/8a9dbcf18c62
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 30
Whiteboard: [qa-]
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: