environment.settings.defaultSearchEngine field missing from Telemetry

RESOLVED FIXED in Firefox 40



3 years ago
3 years ago


(Reporter: vladan, Assigned: Dexter)


(Blocks: 1 bug)

Dependency tree / graph
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(firefox40 fixed, firefox41 fixed)


(Whiteboard: [uplift])


(1 attachment, 1 obsolete attachment)



3 years ago
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
update.channel 	nightly
update.enabled 	true
update.autoDownload 	true
userPrefs.browser.cache.disk.capacity 	358400
userPrefs.browser.newtabpage.enhanced 	true
userPrefs.browser.shell.checkDefaultBrowser 	false


3 years ago
Blocks: 1138503


3 years ago
Assignee: nobody → alessio.placitelli


3 years ago
Blocks: 1105864

Comment 1

3 years ago
Created attachment 8612292 [details] [diff] [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+

Comment 3

3 years ago
Created attachment 8612316 [details] [diff] [review]
bug1168931.patch -v2

Thanks Georg!
Attachment #8612292 - Attachment is obsolete: true
Attachment #8612316 - Flags: review+
Last Resolved: 3 years ago
status-firefox41: affected → fixed
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
status-firefox40: --- → affected
Whiteboard: [uplift]
Comment on attachment 8612316 [details] [diff] [review]
bug1168931.patch -v2

Approval Request Comment
[Feature/regressing bug #]:
Unified Telemetry, https://wiki.mozilla.org/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.