Closed Bug 1168931 Opened 9 years ago Closed 9 years ago

environment.settings.defaultSearchEngine field missing from Telemetry


(Toolkit :: Telemetry, defect)

Not set



Tracking Status
firefox40 --- fixed
firefox41 --- fixed


(Reporter: vladan, Assigned: Dexter)



(Whiteboard: [uplift])


(1 file, 1 obsolete file)

Sometimes the defaultSearchEngine field is missing from about:telemetry and the Telemetry pings. I see this on an updated Nightly e10s profile.

The browser was up for several days. No errors in devtools console. Default search settings. I am using dom.ipc.processCount > 1 on this e10s profile but it seems unrelated

This is what i see in about:telemetry#Environment/settings

Name 	Value
blocklistEnabled 	true
isDefaultBrowser 	false
e10sEnabled 	true
telemetryEnabled 	true
locale 	en-US 	nightly
update.enabled 	true
update.autoDownload 	true
userPrefs.browser.cache.disk.capacity 	358400
userPrefs.browser.newtabpage.enhanced 	true 	false
Blocks: 1138503
Assignee: nobody → alessio.placitelli
Blocks: 1105864
Attached patch bug1168931.patch (obsolete) — Splinter Review
The "settings" section of the Environment was getting overwritten on preferences change, basically discarding the defaultSearchEngine.

This patch fixes the issue and adds test coverage.
Attachment #8612292 - Flags: review?(gfritzsche)
OS: Unspecified → All
Hardware: Unspecified → All
Comment on attachment 8612292 [details] [diff] [review]

Review of attachment 8612292 [details] [diff] [review]:

::: toolkit/components/telemetry/TelemetryEnvironment.jsm
@@ +981,5 @@
>          autoDownload: Preferences.get(PREF_UPDATE_AUTODOWNLOAD, true),
>        },
>        userPrefs: this._getPrefData(),
>      };
> +    this._updateSearchEngine();

Nit: Empty line before that.
Attachment #8612292 - Flags: review?(gfritzsche) → review+
Thanks Georg!
Attachment #8612292 - Attachment is obsolete: true
Attachment #8612316 - Flags: review+
Closed: 9 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
Whiteboard: [uplift]
Comment on attachment 8612316 [details] [diff] [review]
bug1168931.patch -v2

Approval Request Comment
[Feature/regressing bug #]:
Unified Telemetry,
This is part of the first (main) batch of uplifts to 40 to enable shipping on that train, see bug 1120356, comment 2.
[User impact if declined]:
Data & measurement insight projects delayed or blocked with direct impact on projects depending on this.
[Describe test coverage new/current, TreeHerder]:
We have good automation coverage of the feature.
We also had manual tests of the main tasks as well as confirmation of correct behavior on Nightly for the patches here.
[Risks and why]:
Low-risk - these patches are rather isolated to Telemetry and have been on Nightly for a while with no bad reports.
We intend to track on-going data quality and other issues during the 40 aurora & beta and flip the new behavior off when it doesn't meet the requirements.
[String/UUID change made/needed]:
The only string changes were to the about:telemetry page.
We decided that we can live with missing translations on that page for a cycle as that page is not exactly user-facing.
Attachment #8612316 - Flags: approval-mozilla-aurora?
Comment on attachment 8612316 [details] [diff] [review]
bug1168931.patch -v2

Unified telemetry is an important new feature. It is blocking some other projects. Taking it.
Attachment #8612316 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
You need to log in before you can comment on or make changes to this bug.