Ensure we can switch layouts from 1 row to 7 via pref
Categories
(Firefox :: New Tab Page, enhancement, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox75 | --- | verified |
People
(Reporter: thecount, Assigned: thecount)
Details
Attachments
(1 file)
This is specifically for DE, which is 1 row right now because of lack of content.
We're getting more content specifically for DE and want to be able to test that, so we need to ensure that pref works.
Right now it's browser.newtabpage.activity-stream.discoverystream.lang-layout-config
It's lang based, which is kinda awkward, because we cannot specifically target GB, as an example.
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Assignee | ||
Comment 2•4 years ago
|
||
We can technically do this now for DE using a pref.
To do this, ensure you have a de browser, and set browser.newtabpage.activity-stream.discoverystream.lang-layout-config
from "en" to "en,de"
The bug I have attached to this modifies this from lang based, to region based, so we can specifically target UK separately from US if we want to.
Example, the above pref would move to browser.newtabpage.activity-stream.discoverystream.region-layout-config and the value would change from "en" to "US,CA"
Assignee | ||
Comment 3•4 years ago
|
||
To test:
-
Using an en-US or en-CA browser
-
with matching browser.search.region value (US or CA).
Expected: 7 rows of stories -
Change browser.newtabpage.activity-stream.discoverystream.region-layout-config to "DE"
-
restart the browser
Expected: 1 row of stories. -
Using a de browser.
-
with matching browser.search.region value (DE).
Expected: 1 row of stories. -
Using a de browser.
-
with matching browser.search.region value (DE).
-
Set browser.newtabpage.activity-stream.discoverystream.region-layout-config to "DE"
-
restart the browser
Expected: 7 rows of stories
Updated•4 years ago
|
Pushed by sdowne@getpocket.com: https://hg.mozilla.org/integration/autoland/rev/25089cefb258 Pref to switch story rows based on region r=gvn
Updated•4 years ago
|
Comment 5•4 years ago
|
||
bugherder |
Comment 6•4 years ago
|
||
I have verified the following using the steps provided by Scott in comment 3:
- 7 rows of stories are displayed for Firefox Nightly "en-US" or "en-CA" locale builds with the "browser.search.region" pref set to "US" or "CA";
- 1 row of stories is displayed for Firefox Nightly "en-US" or "en-CA" locale builds with the "browser.newtabpage.activity-stream.discoverystream.region-layout-config" pref set to "DE";
- 1 row of stories is displayed for Firefox Nightly "DE" locale build with the "browser.search.region" pref set to "DE";
- 7 rows of stories are displayed for Firefox Nightly "DE" locale build with the "browser.search.region" and the "browser.newtabpage.activity-stream.discoverystream.region-layout-config" prefs set to "DE";
Verified using the latest Firefox Nightly (75.0a1 Build ID - 20200225214332) "en-US", "en-CA" and "de" locale builds installed on Windows 10 x64, Mac 10.15.2, and Ubuntu 18.04 x64.
Description
•