Closed
Bug 2056300
Opened 2 months ago
Closed 2 months ago
Expose available browser themes to New Tab and apply/install a selected theme
Categories
(Firefox :: New Tab Page, enhancement)
Firefox
New Tab Page
Tracking
()
RESOLVED
FIXED
155 Branch
| Tracking | Status | |
|---|---|---|
| firefox155 | --- | fixed |
People
(Reporter: maxx, Assigned: maxx)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
New Tab has no browser/lightweight-theme integration today. This bug adds the foundational parent-side bridge so New Tab content can (1) receive the list of available Nova themes plus the currently active theme, and (2) request applying/installing a selected theme.
Scope:
- New parent-side feed under
browser/extensions/newtab/lib/talking to the theme system (AddonManager/LightweightThemeManager). - Action types and reducer state in
common/Actions.mjsandcommon/Reducers.sys.mjsto deliver the theme list and active theme to content and to dispatch apply/install requests. - No Customize Panel UI - that lands in the follow-up bugs.
- Full-panel title and back button
| Assignee | ||
Comment 3•2 months ago
|
||
Embed the reusable toolkit theme-picker element (compact layout) in the New Tab customize panel so users can switch their Firefox theme directly from Firefox Home.
- Render
<theme-picker layout="compact" installsource="about:newtab">in ContentSection, gated on the browser-widebrowser.nova.enabledpref. PrefsFeed reads and observes that pref and broadcasts it to content asbrowserNovaEnabled; CustomizeMenu threads it through to ContentSection. - Register the ThemePicker JSWindowActor for
about:newtabandabout:homeso the element's remote controller can reach AddonManager/ThemesList via the parent in the content sandbox (about:home covers the startup-cache first tab). - Load the theme-picker / moz-visual-picker / moz-segmented-control element modules in the live-rendered page (render-activity-stream-html.js) and the about:home startup-cache template (page.html.template) so the custom element is defined on both normal and cached pages.
- Add tests for the gate (ContentSection) and the pref observer/broadcast (PrefsFeed).
Updated•2 months ago
|
Assignee: nobody → mcrawford
Attachment #9613683 -
Attachment description: WIP: Bug 2056300 - Integrate the compact theme-picker into the New Tab customize panel r?#home-newtab-reviewers → Bug 2056300 - Integrate the compact theme-picker into the New Tab customize panel r?#home-newtab-reviewers
Status: NEW → ASSIGNED
| Assignee | ||
Comment 4•2 months ago
|
||
Updated•2 months ago
|
Attachment #9614064 -
Attachment is obsolete: true
Pushed by mcrawford@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/6b1f2658d4ab
https://hg.mozilla.org/integration/autoland/rev/d2552e711a8e
Integrate the compact theme-picker into the New Tab customize panel r=Dre
Pushed by smolnar@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/60265b532094
https://hg.mozilla.org/integration/autoland/rev/f45836b3bd85
Revert "Bug 2056300 - Integrate the compact theme-picker into the New Tab customize panel r=Dre" for causing bc process crashes
Comment 7•2 months ago
|
||
Backed out for causing bc process crashes
Backout link: https://hg.mozilla.org/integration/autoland/rev/f45836b3bd85da6c40b8113377efe4be75d40c38
Flags: needinfo?(mcrawford)
Pushed by mcrawford@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/be9e02019a85
https://hg.mozilla.org/integration/autoland/rev/503206ab0dba
Integrate the compact theme-picker into the New Tab customize panel r=Dre
Backed out for causing node failures.
Comment 10•2 months ago
|
||
Pushed by mcrawford@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/c679cecab1ce
https://hg.mozilla.org/integration/autoland/rev/124bd6c2a9f4
Integrate the compact theme-picker into the New Tab customize panel r=Dre
| Assignee | ||
Updated•2 months ago
|
Flags: needinfo?(mcrawford)
Comment 11•2 months ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
status-firefox155:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
Updated•1 month ago
|
QA Whiteboard: [qa-triage-done-c156/b155]
You need to log in
before you can comment on or make changes to this bug.
Description
•