Turn off all New Tab widgets in automation with one pref
Categories
(Firefox :: New Tab Page, task)
Tracking
()
People
(Reporter: maxx, Assigned: maxx)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [hnt][hnt-wattle])
Attachments
(2 external files)
Test harnesses turn off New Tab widgets one at a time today, for example browser.newtabpage.activity-stream.widgets.system.pictureOfTheDay.enabled set to false in testing/profiles. Bug 2078974 makes more widgets available by default on Nightly. Crossword renders an iframe loaded from a Merino host, which crashes any harness that forbids non-local network connections, and that got bug 2078974 backed out twice (browser-chrome, then Marionette).
Set browser.newtabpage.activity-stream.widgets.enabled to false everywhere automation sets prefs, so no widget renders or fetches unless a test turns widgets back on. Every widget render path, and the Picture of the Day feed, already checks this pref through isWidgetEnabled().
The pref is read at runtime, so per the instructions in RecommendedPreferences.sys.mjs it goes in:
testing/profiles/common/user.jsandtesting/profiles/xpcshell/user.js, replacing the per-widget Picture of the Day linetesting/marionette/client/marionette_driver/geckoinstance.pyremote/shared/RecommendedPreferences.sys.mjs
Tests that need widgets turn them back on with pushPrefEnv.
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Sets browser.newtabpage.activity-stream.widgets.enabled to false in the test profiles, the Marionette client and RecommendedPreferences, so no widget renders or fetches in automation unless a test turns widgets back on. This replaces the per-widget Picture of the Day pref in the test profiles.
| Assignee | ||
Updated•1 month ago
|
Comment 3•1 month ago
|
||
| bugherder | ||
| Assignee | ||
Comment 4•26 days ago
|
||
Sets browser.newtabpage.activity-stream.widgets.enabled to false in the test profiles, the Marionette client and RecommendedPreferences, so no widget renders or fetches in automation unless a test turns widgets back on. This replaces the per-widget Picture of the Day pref in the test profiles.
Original Revision: https://phabricator.services.mozilla.com/D332204
Updated•26 days ago
|
Updated•26 days ago
|
Updated•26 days ago
|
Description
•