This commit is contained in:
Mr. M 2025-05-14 08:45:15 +02:00
commit 2bd548fe41
10 changed files with 22 additions and 3 deletions

View file

@ -5,6 +5,9 @@ on:
- cron: '59 4 * * 2'
workflow_dispatch:
permissions:
contents: read
jobs:
check_candidates:
runs-on: ubuntu-latest

View file

@ -10,6 +10,9 @@ on:
branches:
- dev
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest

View file

@ -1,4 +1,7 @@
name: Monthly issue metrics
permissions:
contents: write
issues: read
on:
workflow_dispatch:
schedule:

View file

@ -1,4 +1,6 @@
name: macOS Release Build
permissions:
contents: read
on:
workflow_call:

View file

@ -1,4 +1,6 @@
name: Pull request test
permissions:
contents: read
on:
pull_request:

View file

@ -1,5 +1,8 @@
name: Windows PGO Builds
permissions:
contents: read
on:
workflow_call:
inputs:

View file

@ -1,5 +1,8 @@
name: Windows Release Build
permissions:
contents: read
on:
workflow_call:
inputs:

View file

@ -275,7 +275,7 @@ var gZenMarketplaceManager = {
const themeList = document.createElement('div');
for (const theme of Object.values(themes).sort((a, b) => a.name.localeCompare(b.name))) {
const sanitizedName = `theme-${theme.name?.replaceAll(/\s/g, '-')?.replaceAll(/[^A-z_-]+/g, '')}`;
const sanitizedName = `theme-${theme.name?.replaceAll(/\s/g, '-')?.replaceAll(/[^A-Za-z_-]+/g, '')}`;
const isThemeEnabled = theme.enabled === undefined || theme.enabled;
const fragment = window.MozXULElement.parseXULToFragment(`
<vbox class="zenThemeMarketplaceItem">

View file

@ -76,7 +76,7 @@ var ZenThemesCommon = {
for (let [entry, label] of Object.entries(preferences)) {
const [_, negation = '', os = '', property] =
/(!?)(?:(macos|windows|linux):)?([A-z0-9-_.]+)/g.exec(entry);
/(!?)(?:(macos|windows|linux):)?([A-Za-z0-9-_.]+)/g.exec(entry);
const isNegation = negation === '!';
if (

View file

@ -249,7 +249,7 @@ var gZenThemesImporter = new (class {
writeToDom(themesWithPreferences) {
for (const browser of ZenMultiWindowFeature.browsers) {
for (const { enabled, preferences, name } of themesWithPreferences) {
const sanitizedName = `theme-${name?.replaceAll(/\s/g, '-')?.replaceAll(/[^A-z_-]+/g, '')}`;
const sanitizedName = `theme-${name?.replaceAll(/\s/g, '-')?.replaceAll(/[^A-Za-z_-]+/g, '')}`;
if (enabled !== undefined && !enabled) {
const element = browser.document.getElementById(sanitizedName);