tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 8907898a3a55eee4d67dcadbbefeac3c0dcceb39
parent 13a0928ff72be71faccb3103f8584d172899acea
Author: Irene Ni <ini@mozilla.com>
Date:   Sat, 18 Oct 2025 06:52:11 +0000

Bug 1922398 - Fix New Tab Customize button focus order. r=home-newtab-reviewers,nbarrett,ayeddi

Differential Revision: https://phabricator.services.mozilla.com/D268147

Diffstat:
Mbrowser/extensions/newtab/content-src/components/Base/Base.jsx | 60++++++++++++++++++++++++++++++------------------------------
Mbrowser/extensions/newtab/data/content/activity-stream.bundle.js | 54+++++++++++++++++++++++++++---------------------------
2 files changed, 57 insertions(+), 57 deletions(-)

diff --git a/browser/extensions/newtab/content-src/components/Base/Base.jsx b/browser/extensions/newtab/content-src/components/Base/Base.jsx @@ -779,36 +779,6 @@ export class BaseContent extends React.PureComponent { return ( <div className={featureClassName}> - {/* Floating menu for customize menu toggle */} - <menu className="personalizeButtonWrapper"> - <CustomizeMenu - onClose={this.closeCustomizationMenu} - onOpen={this.openCustomizationMenu} - openPreferences={this.openPreferences} - setPref={this.setPref} - enabledSections={enabledSections} - enabledWidgets={enabledWidgets} - wallpapersEnabled={wallpapersEnabled} - activeWallpaper={activeWallpaper} - pocketRegion={pocketRegion} - mayHaveTopicSections={mayHavePersonalizedTopicSections} - mayHaveInferredPersonalization={mayHaveInferredPersonalization} - mayHaveWeather={mayHaveWeather} - mayHaveTrendingSearch={mayHaveTrendingSearch} - mayHaveWidgets={mayHaveWidgets} - mayHaveTimerWidget={mayHaveTimerWidget} - mayHaveListsWidget={mayHaveListsWidget} - showing={customizeMenuVisible} - /> - {this.shouldShowOMCHighlight("CustomWallpaperHighlight") && ( - <MessageWrapper dispatch={this.props.dispatch}> - <WallpaperFeatureHighlight - position="inset-block-start inset-inline-start" - dispatch={this.props.dispatch} - /> - </MessageWrapper> - )} - </menu> <div className="weatherWrapper"> {shouldDisplayWeather && ( <ErrorBoundary> @@ -887,6 +857,36 @@ export class BaseContent extends React.PureComponent { <TopicSelection supportUrl={supportUrl} /> )} </div> + {/* Floating menu for customize menu toggle */} + <menu className="personalizeButtonWrapper"> + <CustomizeMenu + onClose={this.closeCustomizationMenu} + onOpen={this.openCustomizationMenu} + openPreferences={this.openPreferences} + setPref={this.setPref} + enabledSections={enabledSections} + enabledWidgets={enabledWidgets} + wallpapersEnabled={wallpapersEnabled} + activeWallpaper={activeWallpaper} + pocketRegion={pocketRegion} + mayHaveTopicSections={mayHavePersonalizedTopicSections} + mayHaveInferredPersonalization={mayHaveInferredPersonalization} + mayHaveWeather={mayHaveWeather} + mayHaveTrendingSearch={mayHaveTrendingSearch} + mayHaveWidgets={mayHaveWidgets} + mayHaveTimerWidget={mayHaveTimerWidget} + mayHaveListsWidget={mayHaveListsWidget} + showing={customizeMenuVisible} + /> + {this.shouldShowOMCHighlight("CustomWallpaperHighlight") && ( + <MessageWrapper dispatch={this.props.dispatch}> + <WallpaperFeatureHighlight + position="inset-block-start inset-inline-start" + dispatch={this.props.dispatch} + /> + </MessageWrapper> + )} + </menu> </div> ); } diff --git a/browser/extensions/newtab/data/content/activity-stream.bundle.js b/browser/extensions/newtab/data/content/activity-stream.bundle.js @@ -16746,32 +16746,7 @@ class BaseContent extends (external_React_default()).PureComponent { const shouldShowDownloadHighlight = this.state.showDownloadHighlightOverride ?? this.shouldShowOMCHighlight("DownloadMobilePromoHighlight"); return /*#__PURE__*/external_React_default().createElement("div", { className: featureClassName - }, /*#__PURE__*/external_React_default().createElement("menu", { - className: "personalizeButtonWrapper" - }, /*#__PURE__*/external_React_default().createElement(CustomizeMenu, { - onClose: this.closeCustomizationMenu, - onOpen: this.openCustomizationMenu, - openPreferences: this.openPreferences, - setPref: this.setPref, - enabledSections: enabledSections, - enabledWidgets: enabledWidgets, - wallpapersEnabled: wallpapersEnabled, - activeWallpaper: activeWallpaper, - pocketRegion: pocketRegion, - mayHaveTopicSections: mayHavePersonalizedTopicSections, - mayHaveInferredPersonalization: mayHaveInferredPersonalization, - mayHaveWeather: mayHaveWeather, - mayHaveTrendingSearch: mayHaveTrendingSearch, - mayHaveWidgets: mayHaveWidgets, - mayHaveTimerWidget: mayHaveTimerWidget, - mayHaveListsWidget: mayHaveListsWidget, - showing: customizeMenuVisible - }), this.shouldShowOMCHighlight("CustomWallpaperHighlight") && /*#__PURE__*/external_React_default().createElement(MessageWrapper, { - dispatch: this.props.dispatch - }, /*#__PURE__*/external_React_default().createElement(WallpaperFeatureHighlight, { - position: "inset-block-start inset-inline-start", - dispatch: this.props.dispatch - }))), /*#__PURE__*/external_React_default().createElement("div", { + }, /*#__PURE__*/external_React_default().createElement("div", { className: "weatherWrapper" }, shouldDisplayWeather && /*#__PURE__*/external_React_default().createElement(ErrorBoundary, null, /*#__PURE__*/external_React_default().createElement(Weather_Weather, null))), /*#__PURE__*/external_React_default().createElement("div", { className: `mobileDownloadPromoWrapper ${mobileDownloadPromoWrapperHeightModifier}` @@ -16808,7 +16783,32 @@ class BaseContent extends (external_React_default()).PureComponent { dispatch: this.props.dispatch }))), mayShowTopicSelection && pocketEnabled && /*#__PURE__*/external_React_default().createElement(TopicSelection, { supportUrl: supportUrl - }))); + })), /*#__PURE__*/external_React_default().createElement("menu", { + className: "personalizeButtonWrapper" + }, /*#__PURE__*/external_React_default().createElement(CustomizeMenu, { + onClose: this.closeCustomizationMenu, + onOpen: this.openCustomizationMenu, + openPreferences: this.openPreferences, + setPref: this.setPref, + enabledSections: enabledSections, + enabledWidgets: enabledWidgets, + wallpapersEnabled: wallpapersEnabled, + activeWallpaper: activeWallpaper, + pocketRegion: pocketRegion, + mayHaveTopicSections: mayHavePersonalizedTopicSections, + mayHaveInferredPersonalization: mayHaveInferredPersonalization, + mayHaveWeather: mayHaveWeather, + mayHaveTrendingSearch: mayHaveTrendingSearch, + mayHaveWidgets: mayHaveWidgets, + mayHaveTimerWidget: mayHaveTimerWidget, + mayHaveListsWidget: mayHaveListsWidget, + showing: customizeMenuVisible + }), this.shouldShowOMCHighlight("CustomWallpaperHighlight") && /*#__PURE__*/external_React_default().createElement(MessageWrapper, { + dispatch: this.props.dispatch + }, /*#__PURE__*/external_React_default().createElement(WallpaperFeatureHighlight, { + position: "inset-block-start inset-inline-start", + dispatch: this.props.dispatch + })))); } } BaseContent.defaultProps = {