Closed Bug 1496241 Opened 6 years ago Closed 6 years ago

Activity Stream doesn't honor default preference set via Autoconfig (and policy)

Categories

(Firefox :: New Tab Page, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
Firefox 65
Iteration:
65.1 - Nov 2
Tracking Status
firefox64 --- wontfix
firefox65 --- fixed

People

(Reporter: mkaply, Assigned: Mardak)

References

Details

Attachments

(1 file)

We've had request from folks to set some activity stream prefs via policy and autoconfig: browser.newtabpage.activity-stream.default.sites browser.newtabpage.activity-stream.feeds.section.highlights browser.newtabpage.activity-stream.feeds.snippets browser.newtabpage.activity-stream.migrationExpired browser.newtabpage.activity-stream.showSearch browser.newtabpage.activity-stream.topSitesRows browser.onboarding.enabled What I've discovered is that if you set many of these prefs as default prefs (which is typical in autoconfig and policy), activity stream doesn't read the default values (it only reads user values). The problem seems to be that activity stream sets the default values without checking to see if they exist as default values already.
:mkaply, is this for ESR configurations?
Flags: needinfo?(mozilla)
> :mkaply, is this for ESR configurations? Yes. It's should we can add policies to configure the new tab/activity stream for enterprises.
Flags: needinfo?(mozilla)
Iteration: --- → 65.1 (Nov 2)
Priority: -- → P2
Looks like we can follow the same pattern used in bug 1245277. Although some quick testing shows that if the user has set a pref, the PREF_INVALID check from the default branch will still get the type of the user set value. So potentially we could end up in a situation where there's no default…
Assignee: nobody → edilee
See Also: → 1245277
Commit pushed to master at https://github.com/mozilla/activity-stream https://github.com/mozilla/activity-stream/commit/b79d9f4c37eb5f396dd6f18fd1311d0550998aa0 Fix Bug 1496241 - Activity Stream doesn't honor default preference set via Autoconfig (and policy) (#4531)
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Blocks: 1502461
Target Milestone: --- → Firefox 65
Blocks: 1457146
Component: Activity Streams: Newtab → New Tab Page
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: