Skip to content

Commit

Permalink
Bug 1754124 - Filter out expired themes for UITour colorways r=Gijs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mardak committed Feb 9, 2022
1 parent 3b28b11 commit baa8ab9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 4 additions & 3 deletions browser/components/uitour/UITour.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ XPCOMUtils.defineLazyModuleGetters(this, {
AddonManager: "resource://gre/modules/AddonManager.jsm",
AppConstants: "resource://gre/modules/AppConstants.jsm",
BrowserUsageTelemetry: "resource:///modules/BrowserUsageTelemetry.jsm",
BuiltInThemeConfig: "resource:///modules/BuiltInThemeConfig.jsm",
BuiltInThemes: "resource:///modules/BuiltInThemes.jsm",
CustomizableUI: "resource:///modules/CustomizableUI.jsm",
fxAccounts: "resource://gre/modules/FxAccounts.jsm",
FxAccounts: "resource://gre/modules/FxAccounts.jsm",
Expand Down Expand Up @@ -47,8 +47,9 @@ const MAX_BUTTONS = 4;

// Array of which colorway/theme ids can be activated.
XPCOMUtils.defineLazyGetter(this, "COLORWAY_IDS", () =>
[...BuiltInThemeConfig.keys()].filter(id =>
id.endsWith("[email protected]")
[...BuiltInThemes.builtInThemeMap.keys()].filter(
id =>
id.endsWith("[email protected]") && !BuiltInThemes.themeIsExpired(id)
)
);

Expand Down
1 change: 0 additions & 1 deletion browser/components/uitour/test/browser.ini
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ skip-if = os == "linux" # Linux: Bug 986760, Bug 989101.
[browser_UITour_availableTargets.js]
[browser_UITour_annotation_size_attributes.js]
[browser_UITour_colorway.js]
skip-if = true # temporarily disable test in Bug 1754124
[browser_UITour_defaultBrowser.js]
[browser_UITour_detach_tab.js]
[browser_UITour_forceReaderMode.js]
Expand Down

0 comments on commit baa8ab9

Please sign in to comment.