Compare commits
201 Commits
1.0.0-a.6
...
1.0.0-a.13
Author | SHA1 | Date | |
---|---|---|---|
![]() |
2d72365dbd | ||
![]() |
d61186a042 | ||
![]() |
33ba2f25cd | ||
![]() |
3e4d69a012 | ||
![]() |
c27f4767db | ||
![]() |
6740a7a610 | ||
![]() |
c00eb07484 | ||
![]() |
1b72b68a47 | ||
![]() |
0ac10f2c03 | ||
![]() |
0b824acd20 | ||
![]() |
b37b2e656a | ||
![]() |
36d6abda0d | ||
![]() |
07893e79fe | ||
![]() |
d8a9cabb2b | ||
![]() |
9729f8d84e | ||
![]() |
641c709f5d | ||
![]() |
be45bdb83f | ||
![]() |
2773bd4850 | ||
![]() |
a0e95e7748 | ||
![]() |
b90e50ed87 | ||
![]() |
9c8b0081c0 | ||
![]() |
bb1cd6097b | ||
![]() |
1496f3addc | ||
![]() |
a2bd16a210 | ||
![]() |
26e158072e | ||
![]() |
84a5f05eb6 | ||
![]() |
79967edb22 | ||
![]() |
53644a4ba0 | ||
![]() |
01df43fdc5 | ||
![]() |
b524ec7569 | ||
![]() |
eea0a8aee7 | ||
![]() |
498c909756 | ||
![]() |
661dcbb9f9 | ||
![]() |
c2e8b2790c | ||
![]() |
14da8cd9e7 | ||
![]() |
741cfd7af4 | ||
![]() |
fa6911df5e | ||
![]() |
4e61ab5e98 | ||
![]() |
3900908ed7 | ||
![]() |
3cd21f5516 | ||
![]() |
29411d02d5 | ||
![]() |
ab5cf96bf1 | ||
![]() |
d60d4e888a | ||
![]() |
9998f93942 | ||
![]() |
76b2b55eda | ||
![]() |
b224616b43 | ||
![]() |
236c4160fc | ||
![]() |
7e3c44846d | ||
![]() |
b1709c757a | ||
![]() |
65841d2085 | ||
![]() |
58f18098f7 | ||
![]() |
e31d49ec36 | ||
![]() |
3454ca6336 | ||
![]() |
bd5c242c8c | ||
![]() |
86f8b91fdb | ||
![]() |
3d57cff39b | ||
![]() |
7b40eba9b7 | ||
![]() |
57ac6c1b37 | ||
![]() |
d7630b258a | ||
![]() |
0883536f75 | ||
![]() |
6e2b4b17e6 | ||
![]() |
38e4a7150c | ||
![]() |
052774c5c3 | ||
![]() |
18055e09d9 | ||
![]() |
e24dcdb6ac | ||
![]() |
e3774d666f | ||
![]() |
ec1eef6159 | ||
![]() |
6862e6cbc6 | ||
![]() |
639806e13f | ||
![]() |
ef01c86d7c | ||
![]() |
e32d9cad92 | ||
![]() |
3b5e401899 | ||
![]() |
3bfdb7e3db | ||
![]() |
e567dee12f | ||
![]() |
c55fadc889 | ||
![]() |
33d2954e93 | ||
![]() |
9304b51391 | ||
![]() |
0347ead8a1 | ||
![]() |
9fd9883c8f | ||
![]() |
01e99f6f3d | ||
![]() |
259072a5e5 | ||
![]() |
5079bb6364 | ||
![]() |
37bc8f5f65 | ||
![]() |
4f97d66443 | ||
![]() |
8e19e74894 | ||
![]() |
babc34cc90 | ||
![]() |
c2f97454ac | ||
![]() |
7de872b4dd | ||
![]() |
dc5992bdc7 | ||
![]() |
453c9fef53 | ||
![]() |
5d946db186 | ||
![]() |
406f11dd9a | ||
![]() |
be1efb2ac5 | ||
![]() |
6c4b3aa6f9 | ||
![]() |
2975d5c645 | ||
![]() |
97ce6bae00 | ||
![]() |
b659bfd5e6 | ||
![]() |
81f88c2c21 | ||
![]() |
5bbbefb2a7 | ||
![]() |
ea5c42674e | ||
![]() |
ad2e2f6b24 | ||
![]() |
3333fe22d2 | ||
![]() |
349b33c115 | ||
![]() |
2c0b34e666 | ||
![]() |
84bc2c3c89 | ||
![]() |
2927b58924 | ||
![]() |
a6aa7e3eae | ||
![]() |
d67e1e5b3e | ||
![]() |
09b808b18a | ||
![]() |
deaa0e2781 | ||
![]() |
3140931cdb | ||
![]() |
084d70e68d | ||
![]() |
ac3df15a57 | ||
![]() |
6688fff000 | ||
![]() |
33ff028509 | ||
![]() |
e2ca345dea | ||
![]() |
b17fb12715 | ||
![]() |
51bd006bd1 | ||
![]() |
4fc321292f | ||
![]() |
ea3c6e7131 | ||
![]() |
234f4ecfed | ||
![]() |
d5164f05a5 | ||
![]() |
ae2aa202de | ||
![]() |
940ce6a6d7 | ||
![]() |
edf17c7eed | ||
![]() |
2f668de97d | ||
![]() |
73dea3ad96 | ||
![]() |
2171635145 | ||
![]() |
935fcd9153 | ||
![]() |
a9bfa4dd26 | ||
![]() |
2dc59efd99 | ||
![]() |
b1a3f97592 | ||
![]() |
3bd2d169b4 | ||
![]() |
fc8a501e73 | ||
![]() |
32a3ad96ee | ||
![]() |
3f684745ee | ||
![]() |
13f1daf465 | ||
![]() |
28c84d971d | ||
![]() |
9251970257 | ||
![]() |
a3fd8d17ba | ||
![]() |
17fea1b017 | ||
![]() |
b11c0d8700 | ||
![]() |
86aca3144f | ||
![]() |
11890a70c0 | ||
![]() |
e9f727ceba | ||
![]() |
5342c408fa | ||
![]() |
b494f661b2 | ||
![]() |
5020640e8e | ||
![]() |
48773b80f4 | ||
![]() |
e3edc10e95 | ||
![]() |
d5a4ce2331 | ||
![]() |
1bd4bcf93f | ||
![]() |
7b7f8a3f13 | ||
![]() |
81df7ea605 | ||
![]() |
2b56b9b97d | ||
![]() |
80027fbe48 | ||
![]() |
bd23758cd0 | ||
![]() |
1e464392c2 | ||
![]() |
96f31e8993 | ||
![]() |
01bdbfca4e | ||
![]() |
cc900885ca | ||
![]() |
a3213e069b | ||
![]() |
711fd0ab8b | ||
![]() |
05a6dcb416 | ||
![]() |
fd7d0bbd50 | ||
![]() |
bf96065340 | ||
![]() |
5985420dbb | ||
![]() |
2dd50cfe9a | ||
![]() |
c3a94c128f | ||
![]() |
b94c6c616a | ||
![]() |
9950ebd99e | ||
![]() |
1c4108d961 | ||
![]() |
1be4bbf08b | ||
![]() |
5ba50f2988 | ||
![]() |
e2618e5681 | ||
![]() |
3304259383 | ||
![]() |
d83df429bc | ||
![]() |
191ffd6efe | ||
![]() |
7e0e3f4145 | ||
![]() |
8b56897a11 | ||
![]() |
6a55fecca6 | ||
![]() |
f80a454261 | ||
![]() |
0f97a1cb4d | ||
![]() |
58e049a76f | ||
![]() |
dfa5013a79 | ||
![]() |
22dfa8daec | ||
![]() |
5c5608938d | ||
![]() |
cfd1ef11aa | ||
![]() |
b82530c890 | ||
![]() |
69e5bb552f | ||
![]() |
915350db3c | ||
![]() |
0dfb198609 | ||
![]() |
f1039324cf | ||
![]() |
3ce4bb8ecf | ||
![]() |
005398a20d | ||
![]() |
f45b1ec317 | ||
![]() |
4714cfcc84 | ||
![]() |
c221c8e242 | ||
![]() |
5464da21c4 | ||
![]() |
f2a783fbce | ||
![]() |
bb3ee371a1 |
21
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
@@ -1,6 +1,5 @@
|
||||
name: Bug Report
|
||||
name: Bug Report Or Feature Request
|
||||
description: File a bug report
|
||||
labels: [bug]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
@@ -29,6 +28,21 @@ body:
|
||||
placeholder: 1.0.0
|
||||
validations:
|
||||
required: true
|
||||
- type: dropdown
|
||||
id: severity
|
||||
attributes:
|
||||
label: Severity impact
|
||||
description: See label descriptions for more information.
|
||||
options:
|
||||
- Low
|
||||
- Medium
|
||||
- High
|
||||
- Critical
|
||||
- Enhancement
|
||||
multiple: true
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: dropdown
|
||||
id: platform
|
||||
attributes:
|
||||
@@ -36,7 +50,8 @@ body:
|
||||
multiple: true
|
||||
options:
|
||||
- Linux
|
||||
- macOS
|
||||
- macOS - aarch64
|
||||
- macOS - Intel
|
||||
- Windows
|
||||
validations:
|
||||
required: true
|
||||
|
2
.github/ISSUE_TEMPLATE/config.yml
vendored
@@ -1 +1 @@
|
||||
blank_issues_enabled: true
|
||||
blank_issues_enabled: false
|
20
.github/ISSUE_TEMPLATE/feature_request.md
vendored
@@ -1,20 +0,0 @@
|
||||
---
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
title: ''
|
||||
labels: feature_request
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**Is your feature request related to a problem? Please describe.**
|
||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||
|
||||
**Describe the solution you'd like**
|
||||
A clear and concise description of what you want to happen.
|
||||
|
||||
**Describe alternatives you've considered**
|
||||
A clear and concise description of any alternative solutions or features you've considered.
|
||||
|
||||
**Additional context**
|
||||
Add any other context or screenshots about the feature request here.
|
32
.github/ISSUE_TEMPLATE/feature_request.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
name: Feature Request
|
||||
description: File a feature request
|
||||
labels:
|
||||
- "kind: enhancement"
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
Thank you for filing a feature request.
|
||||
- type: textarea
|
||||
id: what-happened
|
||||
attributes:
|
||||
label: What feature would you like to see?
|
||||
description: Please describe the feature you would like to see.
|
||||
placeholder: Tell us what you would like to see!
|
||||
validations:
|
||||
required: true
|
||||
- type: dropdown
|
||||
id: platform
|
||||
attributes:
|
||||
label: What platform are you seeing the problem on?
|
||||
options:
|
||||
- Linux
|
||||
- macOS
|
||||
- Windows
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: logs
|
||||
attributes:
|
||||
label: Additional context
|
||||
description: Add any other context about the feature request here.
|
18
.github/advanced-issue-labeler.yml
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
# Keep up to date with workflows/issue-create.yml !!!
|
||||
|
||||
policy:
|
||||
- section:
|
||||
- id: [severity]
|
||||
label:
|
||||
- name: 'kind: low severity'
|
||||
keys: ['Low']
|
||||
- name: 'kind: medium severity'
|
||||
keys: ['Medium']
|
||||
- name: 'kind: high severity'
|
||||
keys: ['High']
|
||||
- name: 'kind: critical severity'
|
||||
keys: ['Critical']
|
||||
- name: 'kind: enhancement'
|
||||
keys: ['Enhancement']
|
||||
|
183
.github/workflows/alpha.yml
vendored
@@ -128,7 +128,7 @@ jobs:
|
||||
permissions:
|
||||
contents: write
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build-data]
|
||||
needs: [build-data, check-release]
|
||||
|
||||
steps:
|
||||
- name: Install Node.js
|
||||
@@ -198,7 +198,7 @@ jobs:
|
||||
# needs: [windows-step-1, build-data]
|
||||
# with:
|
||||
# build-version: ${{ needs.build-data.outputs.version }}
|
||||
# profile-data-path-archive: zen-windows-x86_64-profile-data-and-jarlog.zip
|
||||
# profile-data-path-archive: zen.win64-pgo-stage-1.zip
|
||||
|
||||
windows-step-3:
|
||||
name: Windows build step 3 (build with profile data)
|
||||
@@ -228,16 +228,72 @@ jobs:
|
||||
with:
|
||||
build-version: ${{ needs.build-data.outputs.version }}
|
||||
|
||||
appimage:
|
||||
name: AppImage build - Linux ${{ matrix.generic == true && 'generic' || 'specific' }}
|
||||
permissions:
|
||||
contents: write
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
generic: [true, false]
|
||||
needs: [linux]
|
||||
steps:
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 20
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
npm install -g pnpm
|
||||
sudo apt-get update
|
||||
sudo apt-get -y install libfuse2
|
||||
|
||||
- name: Download linux build
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: zen.linux-${{ matrix.generic == true && 'generic' || 'specific' }}.tar.bz2
|
||||
|
||||
- name: Execute AppImage build
|
||||
run: |
|
||||
set -eux
|
||||
rm AppDir/.DirIcon || true
|
||||
cp configs/branding/alpha/logo128.png AppDir/usr/share/icons/hicolor/128x128/apps/zen.png
|
||||
cp configs/branding/alpha/logo128.png AppDir/zen.png && ln -s zen.png AppDir/.DirIcon
|
||||
|
||||
APPDIR=AppDir
|
||||
tar -xvf *.tar.* && rm -rf *.tar.*
|
||||
mv zen/* $APPDIR/
|
||||
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
|
||||
chmod +x *.AppImage
|
||||
chmod +x ./AppDir/AppRun
|
||||
echo "AppDir: $APPDIR"
|
||||
ls -al
|
||||
find .
|
||||
ls -al "$APPDIR"
|
||||
ARCH=x86_64 ./appimagetool-x86_64.AppImage --comp gzip "$APPDIR" zen.AppImage
|
||||
mkdir dist
|
||||
mv zen.AppImage* dist/.
|
||||
mv ./dist/zen.AppImage ./dist/zen-${{ matrix.generic == true && 'generic' || 'specific' }}.AppImage
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: zen-${{ matrix.generic == true && 'generic' || 'specific' }}.AppImage
|
||||
path: ./dist/zen-${{ matrix.generic == true && 'generic' || 'specific' }}.AppImage
|
||||
|
||||
release:
|
||||
if: ${{ github.event.inputs.create_release == 'true' }}
|
||||
permissions: write-all
|
||||
name: Release
|
||||
needs: [build-data, linux, source, windows-step-3, check-release, mac]
|
||||
needs: [build-data, linux, source, windows-step-3, check-release, mac, appimage]
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Update repo
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Git Pull
|
||||
run: git pull
|
||||
@@ -258,9 +314,14 @@ jobs:
|
||||
run: |
|
||||
cd updates-server
|
||||
mkdir -p updates
|
||||
cp -a ../linux_update_manifest/. updates/
|
||||
cp -a ../windows_update_manifest/. updates/
|
||||
cp -a ../macos_update_manifest/. updates/
|
||||
cp -a ../linux_update_manifest_generic/. updates/
|
||||
cp -a ../linux_update_manifest_specific/. updates/
|
||||
|
||||
cp -a ../windows_update_manifest_generic/. updates/
|
||||
cp -a ../windows_update_manifest_specific/. updates/
|
||||
|
||||
cp -a ../macos_update_manifest_aarch64/. updates/
|
||||
cp -a ../macos_update_manifest_x64/. updates/
|
||||
|
||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
@@ -274,49 +335,103 @@ jobs:
|
||||
with:
|
||||
repo_token: '${{ secrets.DEPLOY_KEY }}'
|
||||
automatic_release_tag: ${{ needs.build-data.outputs.version }}
|
||||
prerelease: false
|
||||
title: 'Alpha build - ${{ needs.build-data.outputs.version }} (${{ needs.build-data.outputs.build_date }})'
|
||||
files: |
|
||||
zen.linux.tar.bz2
|
||||
zen.win64.zip
|
||||
zen.source.tar.gz
|
||||
zen.linux-generic.tar.bz2
|
||||
zen.linux-specific.tar.bz2
|
||||
zen-generic.AppImage
|
||||
zen-specific.AppImage
|
||||
zen.win-generic.zip
|
||||
zen.win-specific.zip
|
||||
linux.mar
|
||||
linux-generic.mar
|
||||
windows.mar
|
||||
macos.mar
|
||||
windows-generic.mar
|
||||
macos-x64.mar
|
||||
macos-aarch64.mar
|
||||
zen.installer.exe
|
||||
zen.installer.pretty.exe
|
||||
zen.macos.dmg
|
||||
zen.installer-generic.exe
|
||||
zen.macos-x64.dmg
|
||||
zen.macos-aarch64.dmg
|
||||
|
||||
distro-flatpak:
|
||||
name: Build flatpak repos
|
||||
needs: [linux, release]
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
container:
|
||||
image: bilelmoussaoui/flatpak-github-actions:gnome-44
|
||||
options: --privileged
|
||||
release-flatpak:
|
||||
if: ${{ github.event.inputs.create_release == 'true' }}
|
||||
permissions: write-all
|
||||
name: Release Flatpak
|
||||
needs: [release, linux, build-data]
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Clone flatpak repo
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: zen-browser/flatpak
|
||||
repository: flathub/io.github.zen_browser.zen
|
||||
token: ${{ secrets.DEPLOY_KEY }}
|
||||
submodules: recursive
|
||||
|
||||
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
|
||||
- name: Download linux generic build
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
bundle: org.zen.browser.flatpak
|
||||
manifest-path: org.zen.browser.flatpak.yml
|
||||
cache-key: flatpak-builder-${{ github.sha }}
|
||||
verbose: true
|
||||
name: zen.linux-generic.tar.bz2
|
||||
|
||||
- name: Find flatpak bundle
|
||||
run: find .
|
||||
- name: Update repo
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: zen-browser
|
||||
token: ${{ secrets.DEPLOY_KEY }}
|
||||
|
||||
- name: Upload flatpak bundle
|
||||
- name: Download flatpak archive
|
||||
run: |
|
||||
wget https://github.com/zen-browser/flatpak/releases/latest/download/archive.tar -O archive.tar
|
||||
|
||||
- name: Setup git
|
||||
run: |
|
||||
git config --global user.name "github-actions[bot]"
|
||||
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||
|
||||
- name: Prepare flatpak manifest
|
||||
run: |
|
||||
python3 ./zen-browser/scripts/prepare-flatpak-release.py \
|
||||
--flatpak-archive archive.tar \
|
||||
--version ${{ needs.build-data.outputs.version }} \
|
||||
--linux-archive zen.linux-generic.tar.bz2 \
|
||||
--output io.github.zen_browser.zen.yml \
|
||||
--template-root ./zen-browser/flatpak
|
||||
|
||||
- name: Commit changes
|
||||
run: |
|
||||
git add io.github.zen_browser.zen.yml
|
||||
git commit -m "Update to version ${{ needs.build-data.outputs.version }}"
|
||||
|
||||
- name: Clean up
|
||||
run: |
|
||||
rm -rf zen-browser
|
||||
rm -rf archive.tar
|
||||
rm -rf zen.linux-generic.tar.bz2
|
||||
|
||||
- name: Upload flatpak manifest
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: zen.flatpak
|
||||
path: ./org.zen.browser.flatpak
|
||||
name: io.github.zen_browser.zen.yml
|
||||
path: ./io.github.zen_browser.zen.yml
|
||||
|
||||
- name: Create pull request
|
||||
uses: peter-evans/create-pull-request@v6
|
||||
env:
|
||||
GIT_TRACE: 1
|
||||
GIT_CURL_VERBOSE: 1
|
||||
with:
|
||||
token: ${{ secrets.DEPLOY_KEY }}
|
||||
commit-message: 🚀 Update to version ${{ needs.build-data.outputs.version }}
|
||||
title: 🚀 Update to version ${{ needs.build-data.outputs.version }}
|
||||
body: |
|
||||
This PR updates the Zen Browser Flatpak package to version ${{ needs.build-data.outputs.version }}.
|
||||
|
||||
@mauro-balades
|
||||
branch: update-to-${{ needs.build-data.outputs.version }}
|
||||
base: master
|
||||
git-token: ${{ secrets.DEPLOY_KEY }}
|
||||
delete-branch: true
|
||||
|
||||
|
||||
|
30
.github/workflows/clear-cache.yml
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
name: Clear cache
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
actions: write
|
||||
|
||||
jobs:
|
||||
clear-cache:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Clear cache
|
||||
uses: actions/github-script@v6
|
||||
with:
|
||||
script: |
|
||||
console.log("About to clear")
|
||||
const caches = await github.rest.actions.getActionsCacheList({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
})
|
||||
for (const cache of caches.data.actions_caches) {
|
||||
console.log(cache)
|
||||
github.rest.actions.deleteActionsCacheById({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
cache_id: cache.id,
|
||||
})
|
||||
}
|
||||
console.log("Clear completed")
|
35
.github/workflows/issue-create.yml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
name: Issue labeler
|
||||
on:
|
||||
issues:
|
||||
types: [ opened ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
label-component:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
# required for all workflows
|
||||
issues: write
|
||||
|
||||
# only required for workflows in private repositories
|
||||
actions: read
|
||||
contents: read
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Parse issue form
|
||||
uses: stefanbuck/github-issue-parser@v3
|
||||
id: issue-parser
|
||||
with:
|
||||
template-path: .github/ISSUE_TEMPLATE/bug_report.yml
|
||||
|
||||
- name: Set labels based on severity field
|
||||
uses: redhat-plumbers-in-action/advanced-issue-labeler@v3
|
||||
with:
|
||||
issue-form: ${{ steps.issue-parser.outputs.jsonString }}
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
section: severity
|
28
.github/workflows/linux-alpha-build.yml
vendored
@@ -12,6 +12,11 @@ jobs:
|
||||
permissions:
|
||||
contents: write
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
generic: [true, false]
|
||||
name: Build Linux - ${{ matrix.generic == true && 'Generic' || 'Specific' }}
|
||||
|
||||
steps:
|
||||
- name: Install Node.js
|
||||
@@ -86,6 +91,8 @@ jobs:
|
||||
run: pnpm surfer download
|
||||
|
||||
- name: Import
|
||||
env:
|
||||
SURFER_COMPAT: ${{ matrix.generic == true }}
|
||||
run: pnpm surfer import
|
||||
|
||||
- name: Bootstrap
|
||||
@@ -95,35 +102,42 @@ jobs:
|
||||
cd ..
|
||||
|
||||
- name: Build
|
||||
env:
|
||||
SURFER_COMPAT: ${{ matrix.generic == true }}
|
||||
continue-on-error: true
|
||||
run: sh .github/workflows/src/alpha-build.sh
|
||||
|
||||
- name: Build again if it failed
|
||||
if: failure()
|
||||
env:
|
||||
SURFER_COMPAT: ${{ matrix.generic == true }}
|
||||
run: sh .github/workflows/src/alpha-build.sh
|
||||
|
||||
- name: Package
|
||||
env:
|
||||
SURFER_COMPAT: ${{ matrix.generic == true }}
|
||||
run: pnpm package
|
||||
|
||||
- name: Rename artifacts
|
||||
run: |
|
||||
mv dist/zen-*.tar.bz2 "zen.linux.tar.bz2"
|
||||
mv dist/output.mar linux.mar
|
||||
mv dist/zen-*.tar.bz2 "zen.linux-${{ matrix.generic == true && 'generic' || 'specific' }}.tar.bz2"
|
||||
mv dist/output.mar linux${{ matrix.generic == true && '-generic' || '' }}.mar
|
||||
|
||||
- name: Upload binary
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: zen.linux.tar.bz2
|
||||
path: ./zen.linux.tar.bz2
|
||||
|
||||
name: zen.linux-${{ matrix.generic == true && 'generic' || 'specific' }}.tar.bz2
|
||||
path: ./zen.linux-${{ matrix.generic == true && 'generic' || 'specific' }}.tar.bz2
|
||||
|
||||
- name: Upload mar
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: linux.mar
|
||||
path: ./linux.mar
|
||||
name: linux${{ matrix.generic == true && '-generic' || '' }}.mar
|
||||
path: ./linux${{ matrix.generic == true && '-generic' || '' }}.mar
|
||||
|
||||
- name: Upload update manifests
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: linux_update_manifest
|
||||
name: linux_update_manifest_${{ matrix.generic == true && 'generic' || 'specific' }}
|
||||
path: ./dist/update
|
||||
|
44
.github/workflows/macos-alpha-build.yml
vendored
@@ -9,7 +9,16 @@ on:
|
||||
|
||||
jobs:
|
||||
mac-build:
|
||||
runs-on: macos-14
|
||||
name: Build macOS - ${{ matrix.arch }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- arch: aarch64
|
||||
os: macos-14
|
||||
- arch: x64
|
||||
os: macos-13
|
||||
|
||||
steps:
|
||||
- name: Install Node.js
|
||||
@@ -60,7 +69,10 @@ jobs:
|
||||
run: pnpm surfer download
|
||||
|
||||
- name: Import
|
||||
run: pnpm surfer import
|
||||
env:
|
||||
SURFER_COMPAT: ${{ matrix.arch == 'x64' }}
|
||||
run: |
|
||||
pnpm surfer import
|
||||
|
||||
- name: Bootstrap
|
||||
run: |
|
||||
@@ -68,31 +80,43 @@ jobs:
|
||||
./mach --no-interactive bootstrap --application-choice browser
|
||||
cd ..
|
||||
|
||||
- name: surfer build
|
||||
- name: build Zen
|
||||
env:
|
||||
SURFER_COMPAT: ${{ matrix.arch == 'x64' }}
|
||||
run: |
|
||||
if test "${{ matrix.arch }}" = "x64"; then
|
||||
export ZEN_DISABLE_LTO=1
|
||||
fi
|
||||
sh .github/workflows/src/alpha-build.sh
|
||||
|
||||
- name: Rebuild Zen if failed
|
||||
if: failure()
|
||||
run: sh .github/workflows/src/alpha-build.sh
|
||||
|
||||
- name: Package
|
||||
env:
|
||||
SURFER_COMPAT: ${{ matrix.arch == 'x64' }}
|
||||
run: pnpm package
|
||||
|
||||
- name: Rename artifacts
|
||||
run: |
|
||||
mv ./dist/*.dmg "zen.macos.dmg"
|
||||
mv ./dist/output.mar macos.mar
|
||||
mv ./dist/*.dmg "zen.macos-${{ matrix.arch }}.dmg"
|
||||
mv ./dist/output.mar macos-${{ matrix.arch }}.mar
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: zen.macos.dmg
|
||||
path: ./zen.macos.dmg
|
||||
name: zen.macos-${{ matrix.arch }}.dmg
|
||||
path: ./zen.macos-${{ matrix.arch }}.dmg
|
||||
|
||||
- name: Upload mar
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: macos.mar
|
||||
path: ./macos.mar
|
||||
name: macos-${{ matrix.arch }}.mar
|
||||
path: ./macos-${{ matrix.arch }}.mar
|
||||
|
||||
- name: Upload update manifests
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: macos_update_manifest
|
||||
name: macos_update_manifest_${{ matrix.arch }}
|
||||
path: ./dist/update
|
||||
|
6
.github/workflows/src/alpha-build.sh
vendored
@@ -9,10 +9,8 @@ fi
|
||||
ulimit -n 4096
|
||||
|
||||
# Check if xfvb is installed
|
||||
if ! command -v Xvfb &> /dev/null
|
||||
then
|
||||
if ! test "$ZEN_CROSS_COMPILING"
|
||||
then
|
||||
if ! command -v Xvfb &> /dev/null; then
|
||||
if ! test "$ZEN_CROSS_COMPILING"; then
|
||||
Xvfb :2 -screen 0 1024x768x24 &
|
||||
export LLVM_PROFDATA=$HOME/.mozbuild/clang/bin/llvm-profdata
|
||||
export DISPLAY=:2
|
||||
|
41
.github/workflows/src/windows_mozconfig
vendored
@@ -1,41 +0,0 @@
|
||||
|
||||
export WINSYSROOT="$(echo ~)/win-cross/vs2022"
|
||||
|
||||
export MIDL="$(echo ~)/win-cross/wine/bin/widl"
|
||||
export WINE="$(echo ~)/win-cross/wine/bin/wine64"
|
||||
export WINEDEBUG=-all
|
||||
|
||||
#? https://bugzilla.mozilla.org/show_bug.cgi?id=1617793
|
||||
#? https://phabricator.services.mozilla.com/D170170
|
||||
ac_add_options --target=x86_64-pc-windows-msvc
|
||||
|
||||
export MOZ_STUB_INSTALLER=1
|
||||
export MOZ_PKG_FORMAT=TAR
|
||||
|
||||
export CROSS_BUILD=1
|
||||
CROSS_COMPILE=1
|
||||
TOOLS=$(echo ~)/win-cross
|
||||
|
||||
export MIDL="$TOOLS/wine/bin/widl"
|
||||
export MOZ_INCLUDE_SOURCE_INFO=1
|
||||
export MOZ_STUB_INSTALLER=1
|
||||
export WINEDEBUG=-all
|
||||
export WINE="$TOOLS/wine/bin/wine64"
|
||||
#export WIN32_REDIST_DIR="$TOOLS"/vs2022/VC/Redist/MSVC/14.34.31931/x64/Microsoft.VC143.CRT
|
||||
#export WIN_UCRT_REDIST_DIR="$TOOLS/vs2022/Windows Kits/10/Redist/10.0.22621.0/ucrt/DLLs/x64"
|
||||
|
||||
ac_add_options --disable-maintenance-service
|
||||
ac_add_options --disable-bits-download
|
||||
|
||||
# if test "$ZEN_GA_GENERATE_PROFILE"; then
|
||||
# mk_add_options "export MOZ_AUTOMATION_PACKAGE_GENERATED_SOURCES=0"
|
||||
# ac_add_options --enable-profile-generate=cross
|
||||
# ac_add_options --without-wasm-sandboxed-libraries
|
||||
# else
|
||||
ac_add_options --disable-profiling
|
||||
# ac_add_options --enable-profile-use=cross
|
||||
# ac_add_options --with-pgo-profile-path=$(echo ~)/artifact/merged.profdata
|
||||
# ac_add_options --with-pgo-jarlog=$(echo ~)/artifact/en-US.log
|
||||
# fi
|
||||
|
||||
# ALWAYS MANTAIN ONE LINE BREAK AT THE END OF THIS FILE
|
52
.github/workflows/windows-alpha-build.yml
vendored
@@ -16,7 +16,12 @@ on:
|
||||
|
||||
jobs:
|
||||
windows-build:
|
||||
name: Build Windows - ${{ matrix.generic == true && 'Generic' || 'Specific' }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
generic: [true, false]
|
||||
|
||||
steps:
|
||||
- name: Install Node.js and pnpm
|
||||
@@ -92,8 +97,6 @@ jobs:
|
||||
|
||||
chmod -R +x "$(echo ~)/win-cross/vs2022" || true
|
||||
|
||||
cat ../.github/workflows/src/windows_mozconfig >> ../configs/common/mozconfig
|
||||
|
||||
cd ..
|
||||
npm install -g pnpm
|
||||
export SURFER_PLATFORM="win32"
|
||||
@@ -104,6 +107,9 @@ jobs:
|
||||
echo "export LIB=\"$(cd ~/.mozbuild/clang/lib/clang/* && cd lib/windows && pwd)\"" >> ../configs/common/mozconfig
|
||||
cat ../configs/common/mozconfig
|
||||
|
||||
sudo apt-get update
|
||||
sudo apt-get install dos2unix
|
||||
|
||||
ls ~/win-cross/wine || true
|
||||
ls ~/win-cross/vs2022 || true
|
||||
|
||||
@@ -119,6 +125,8 @@ jobs:
|
||||
cargo download -x windows=0.52.0
|
||||
#? https://github.com/mozilla/sccache#known-caveats
|
||||
export CARGO_INCREMENTAL=0
|
||||
|
||||
echo "" >> ../configs/common/mozconfig
|
||||
echo "export MOZ_WINDOWS_RS_DIR=$(pwd)/windows-0.52.0" >> ../configs/common/mozconfig
|
||||
|
||||
- uses: actions/download-artifact@v4
|
||||
@@ -128,25 +136,30 @@ jobs:
|
||||
path: ~/artifact
|
||||
|
||||
- name: Import
|
||||
env:
|
||||
SURFER_COMPAT: ${{ matrix.generic == true }}
|
||||
run: pnpm surfer import --verbose
|
||||
|
||||
- name: Build
|
||||
env:
|
||||
SURFER_COMPAT: ${{ matrix.generic == true }}
|
||||
run: |
|
||||
set -x
|
||||
unset SURFER_PLATFORM
|
||||
dos2unix configs/windows/mozconfig
|
||||
export SURFER_PLATFORM="win32"
|
||||
export ZEN_CROSS_COMPILING=1
|
||||
if test ${{ inputs.generate-gpo }}; then
|
||||
#export ZEN_GA_GENERATE_PROFILE=1
|
||||
echo "note: PGO build is disabled"
|
||||
if test ${{ inputs.generate-gpo }} = true; then
|
||||
export ZEN_GA_GENERATE_PROFILE=1
|
||||
fi
|
||||
sh .github/workflows/src/alpha-build.sh
|
||||
|
||||
- name: Package
|
||||
env:
|
||||
SURFER_COMPAT: ${{ matrix.generic == true }}
|
||||
run: |
|
||||
set -x
|
||||
export SURFER_PLATFORM="win32"
|
||||
pnpm package
|
||||
mv ./dist/output.mar windows.mar
|
||||
mv ./dist/zen-$(pnpm surfer get version | xargs).en-US.win64.zip zen.win64.zip
|
||||
ls ./dist
|
||||
ls .
|
||||
@@ -157,37 +170,44 @@ jobs:
|
||||
set -x
|
||||
mv ./zen.win64.zip ./zen.win64-pgo-stage-1.zip
|
||||
|
||||
- name: Rename artifacts
|
||||
if: ${{ !inputs.generate-gpo }}
|
||||
run: |
|
||||
mv ./zen.win64.zip zen.win-${{ matrix.generic == true && 'generic' || 'specific' }}.zip
|
||||
mv ./dist/output.mar windows${{ matrix.generic == true && '-generic' || '' }}.mar
|
||||
mv ./dist/zen.installer.exe ./zen.installer${{ matrix.generic == true && '-generic' || '' }}.exe
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
if: ${{ !inputs.generate-gpo }}
|
||||
with:
|
||||
name: zen.win64.zip
|
||||
path: ./zen.win64.zip
|
||||
name: zen.win-${{ matrix.generic == true && 'generic' || 'specific' }}.zip
|
||||
path: ./zen.win-${{ matrix.generic == true && 'generic' || 'specific' }}.zip
|
||||
|
||||
- name: Upload PGO build
|
||||
uses: actions/upload-artifact@v4
|
||||
if: ${{ inputs.generate-gpo }}
|
||||
with:
|
||||
name: ${{ inputs.profile-data-path-archive }}
|
||||
name: ${{ matrix.generic == true && 'generic' || 'specific' }}-${{ inputs.profile-data-path-archive }}
|
||||
path: ./zen.win64-pgo-stage-1.zip
|
||||
|
||||
- name: Upload mar
|
||||
uses: actions/upload-artifact@v4
|
||||
if: ${{ !inputs.generate-gpo }}
|
||||
with:
|
||||
name: windows.mar
|
||||
path: ./windows.mar
|
||||
name: windows${{ matrix.generic == true && '-generic' || '' }}.mar
|
||||
path: ./windows${{ matrix.generic == true && '-generic' || '' }}.mar
|
||||
|
||||
- name: Upload installer
|
||||
uses: actions/upload-artifact@v4
|
||||
if: ${{ !inputs.generate-gpo }}
|
||||
with:
|
||||
name: zen.installer.exe
|
||||
path: ./dist/zen.installer.exe
|
||||
name: zen.installer${{ matrix.generic == true && '-generic' || '' }}.exe
|
||||
path: ./zen.installer${{ matrix.generic == true && '-generic' || '' }}.exe
|
||||
|
||||
- name: Upload installer stub
|
||||
uses: actions/upload-artifact@v4
|
||||
if: ${{ !inputs.generate-gpo }}
|
||||
if: ${{ !inputs.generate-gpo && false }}
|
||||
with:
|
||||
name: zen.installer.pretty.exe
|
||||
path: ./dist/zen.installer.pretty.exe
|
||||
@@ -196,5 +216,5 @@ jobs:
|
||||
uses: actions/upload-artifact@v4
|
||||
if: ${{ !inputs.generate-gpo }}
|
||||
with:
|
||||
name: windows_update_manifest
|
||||
name: windows_update_manifest_${{ matrix.generic == true && 'generic' || 'specific' }}
|
||||
path: ./dist/update
|
||||
|
15
.github/workflows/windows-profile-build.yml
vendored
@@ -13,6 +13,11 @@ on:
|
||||
|
||||
jobs:
|
||||
windows-profile-build:
|
||||
name: Windows Profile Build - ${{ matrix.generic == true && 'generic' || 'specific' }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
generic: [true, false]
|
||||
runs-on: windows-latest
|
||||
# Script edited from https://github.com/Floorp-Projects/Floorp/blob/ESR115/.github/workflows/window-generate-profile-data-and-jarlog.yml
|
||||
steps:
|
||||
@@ -40,13 +45,14 @@ jobs:
|
||||
name: Download artifact
|
||||
with:
|
||||
path: C:\artifact
|
||||
name: ${{ matrix.generic == true && 'generic' || 'specific' }}-zen-windows-x86_64-profile-data-and-jarlog.zip
|
||||
|
||||
- name: Unpack artifact
|
||||
run: |
|
||||
cd C:\artifact
|
||||
ls
|
||||
7z x ${{ inputs.profile-data-path-archive }}
|
||||
ls
|
||||
zstd -d ${{ inputs.profile-data-path-archive }}
|
||||
7z x zen-*.tar
|
||||
|
||||
- name: Setup
|
||||
run: |
|
||||
@@ -68,6 +74,7 @@ jobs:
|
||||
echo $workspace_dir
|
||||
|
||||
echo "cd $workspace_dir" '' >> mozilla-build-run.sh
|
||||
echo 'export PATH=/c/mozilla-build/msys2/usr/bin:$PATH' '' >> mozilla-build-run.sh
|
||||
echo './mach --no-interactive bootstrap --application-choice browser' '' >> mozilla-build-run.sh
|
||||
echo 'ls /c/Users/runneradmin/.mozbuild/clang/bin' '' >> mozilla-build-run.sh
|
||||
echo 'LLVM_PROFDATA=/c/Users/runneradmin/.mozbuild/clang/bin/llvm-profdata.exe JARLOG_FILE=en-US.log ./mach python build/pgo/profileserver.py --binary /c/artifact/zen/zen.exe' '' >> mozilla-build-run.sh
|
||||
@@ -81,10 +88,10 @@ jobs:
|
||||
- name: Publish merged.profdata
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
path: merged.profdata
|
||||
path: merged-${{ matrix.generic == true && 'generic' || 'specific' }}.profdata
|
||||
|
||||
- name: Publish en-US.log
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
path: en-US.log
|
||||
path: en-US-${{ matrix.generic == true && 'generic' || 'specific' }}.log
|
||||
|
||||
|
14
AppDir/AppRun
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
SELF=$(readlink -f "$0")
|
||||
HERE=${SELF%/*}
|
||||
export PATH="${HERE}:${HERE}/usr/bin/:${HERE}/usr/sbin/:${HERE}/usr/games/:${HERE}/bin/:${HERE}/sbin/${PATH:+:$PATH}"
|
||||
export LD_LIBRARY_PATH="${HERE}/usr/lib/:${HERE}/usr/lib/i386-linux-gnu/:${HERE}/usr/lib/x86_64-linux-gnu/:${HERE}/usr/lib32/:${HERE}/usr/lib64/:${HERE}/lib/:${HERE}/lib/i386-linux-gnu/:${HERE}/lib/x86_64-linux-gnu/:${HERE}/lib32/:${HERE}/lib64/${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
|
||||
export PYTHONPATH="${HERE}/usr/share/pyshared/${PYTHONPATH:+:$PYTHONPATH}"
|
||||
export MOZ_LEGACY_PROFILES=1 # Prevent per installation profiles
|
||||
DEFAULT_XDG_DATA_DIRS='./share/:/usr/share/gnome:/usr/local/share/:/usr/share/'
|
||||
export XDG_DATA_DIRS="${HERE}/usr/share/:${XDG_DATA_DIRS:-$DEFAULT_XDG_DATA_DIRS}"
|
||||
export PERLLIB="${HERE}/usr/share/perl5/:${HERE}/usr/lib/perl5/${PERLLIB:+:$PERLLIB}"
|
||||
export GSETTINGS_SCHEMA_DIR="${HERE}/usr/share/glib-2.0/schemas/${GSETTINGS_SCHEMA_DIR:+:$GSETTINGS_SCHEMA_DIR}"
|
||||
export QT_PLUGIN_PATH="${HERE}/usr/lib/qt4/plugins/:${HERE}/usr/lib/i386-linux-gnu/qt4/plugins/:${HERE}/usr/lib/x86_64-linux-gnu/qt4/plugins/:${HERE}/usr/lib32/qt4/plugins/:${HERE}/usr/lib64/qt4/plugins/:${HERE}/usr/lib/qt5/plugins/:${HERE}/usr/lib/i386-linux-gnu/qt5/plugins/:${HERE}/usr/lib/x86_64-linux-gnu/qt5/plugins/:${HERE}/usr/lib32/qt5/plugins/:${HERE}/usr/lib64/qt5/plugins/${QT_PLUGIN_PATH:+:$QT_PLUGIN_PATH}"
|
||||
EXEC=$(grep -e '^Exec=.*' "${HERE}"/*.desktop | head -n 1 | cut -d "=" -f 2 | cut -d " " -f 1)
|
||||
exec "${EXEC}" "$@"
|
8
AppDir/distribution/policies.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"policies": {
|
||||
"DisableAppUpdate": true,
|
||||
"AppAutoUpdate": false,
|
||||
"ManualAppUpdateOnly": true,
|
||||
"BackgroundAppUpdate": false
|
||||
}
|
||||
}
|
25
AppDir/zen.desktop
Normal file
@@ -0,0 +1,25 @@
|
||||
[Desktop Entry]
|
||||
Name=Zen Browser
|
||||
Exec=zen %u
|
||||
Icon=zen
|
||||
Type=Application
|
||||
MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;application/x-xpinstall;application/pdf;application/json;
|
||||
StartupWMClass=zen-alpha
|
||||
Categories=Network;WebBrowser;
|
||||
StartupNotify=true
|
||||
Terminal=false
|
||||
X-MultipleArgs=false
|
||||
Keywords=Internet;WWW;Browser;Web;Explorer;
|
||||
Actions=new-window;new-private-window;profilemanager;
|
||||
|
||||
[Desktop Action new-window]
|
||||
Name=Open a New Window
|
||||
Exec=zen %u
|
||||
|
||||
[Desktop Action new-private-window]
|
||||
Name=Open a New Private Window
|
||||
Exec=zen --private-window %u
|
||||
|
||||
[Desktop Action profilemanager]
|
||||
Name=Open the Profile Manager
|
||||
Exec=zen --ProfileManager %u
|
16
README.md
@@ -3,12 +3,22 @@
|
||||
|
||||
Experience tranquillity while browsing the web without people tracking you!
|
||||
|
||||
<a href='https://flathub.org/apps/io.github.zen_browser.zen'>
|
||||
<img width='240' alt='Get it on Flathub' src='https://flathub.org/api/badge?locale=en'/>
|
||||
</a>
|
||||
|
||||
# Compatibility
|
||||
|
||||
Zen is currently built using firefox version `128.0.2`!
|
||||
Zen is currently built using firefox version `128.0.3`!
|
||||
|
||||
* Checkout the latest [releases notes](https://get-zen.vercel.app/release-notes)!
|
||||
|
||||
# Performance
|
||||
|
||||
Zen is built with performance in mind, and we have optimized the browser to be as fast as possible!
|
||||
|
||||
* Checkout the latest [performance benchmarks](./docs/performance.md)!
|
||||
|
||||
## 🚀 Run Locally
|
||||
|
||||
Clone the project
|
||||
@@ -50,6 +60,10 @@ See `contributing.md` for ways to get started.
|
||||
|
||||
Please adhere to this project's `code of conduct`.
|
||||
|
||||
## Special Thanks
|
||||
|
||||
- [Erlend](https://havn.blog) (For making the logo)
|
||||
- [ptr1337](https://github.com/ptr1337) (AUR Packages and optimization flags)
|
||||
|
||||
## License
|
||||
|
||||
|
BIN
configs/branding/alpha/logo-mac.png
Normal file
After Width: | Height: | Size: 483 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 889 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 501 B After Width: | Height: | Size: 890 B |
Before Width: | Height: | Size: 629 B After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 646 B After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 830 B After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 156 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 5.1 KiB |
@@ -1,4 +1,4 @@
|
||||
<svg width="320" height="130" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect width="300" height="100" x="10" y="10" style="fill:rgb(0,0,255);stroke-width:3;stroke:red" />
|
||||
<rect width="300" height="100" x="10" y="10" style="fill:rgb(0,0,255);stroke-width:3;stroke:red" />
|
||||
Sorry, your browser does not support inline SVG.
|
||||
</svg>
|
Before Width: | Height: | Size: 228 B After Width: | Height: | Size: 225 B |
BIN
configs/branding/beta/logo-mac.png
Normal file
After Width: | Height: | Size: 483 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 889 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 501 B After Width: | Height: | Size: 890 B |
Before Width: | Height: | Size: 629 B After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 646 B After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 830 B After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 156 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 5.1 KiB |
@@ -1,9 +1,7 @@
|
||||
|
||||
# Browser branding
|
||||
ac_add_options --enable-update-channel=release
|
||||
|
||||
ac_add_options --with-app-name=${binName}
|
||||
ac_add_options --with-app-basename=Zen
|
||||
ac_add_options --enable-official-branding
|
||||
|
||||
export MOZ_USER_DIR="${name}"
|
||||
export MOZ_APP_VENDOR="${vendor}"
|
||||
@@ -12,9 +10,7 @@ export MOZ_APP_PROFILE=${binName}
|
||||
export MOZ_APP_DISPLAYNAME="${name}"
|
||||
export MOZ_BRANDING_DIRECTORY=${brandingDir}
|
||||
export MOZ_OFFICIAL_BRANDING_DIRECTORY=${brandingDir}
|
||||
export MOZ_MACBUNDLE_ID=${appId}
|
||||
export MOZ_DISTRIBUTION_ID=${appId}
|
||||
export MOZ_MACBUNDLE_NAME="Zen Browser.app"
|
||||
|
||||
# Uncomment if builds are too resource hungry
|
||||
# mk_add_options MOZ_MAKE_FLAGS="-j4"
|
||||
@@ -26,64 +22,63 @@ export MOZ_SOURCE_REPO=https://github.com/zen-browser/desktop
|
||||
export MOZ_SOURCE_CHANGESET=${changeset}
|
||||
export MOZ_INCLUDE_SOURCE_INFO=1
|
||||
|
||||
ac_add_options --enable-bootstrap
|
||||
|
||||
ac_add_options --enable-application=browser
|
||||
|
||||
if test "$ZEN_RELEASE"; then
|
||||
ac_add_options --enable-bootstrap
|
||||
|
||||
ac_add_options --enable-release
|
||||
ac_add_options --disable-debug
|
||||
ac_add_options --disable-debug-symbols
|
||||
ac_add_options --disable-debug-js-modules
|
||||
ac_add_options --disable-tests
|
||||
ac_add_options --enable-strip
|
||||
ac_add_options --enable-install-strip
|
||||
ac_add_options --disable-jprof
|
||||
|
||||
ac_add_options --enable-rust-simd
|
||||
mk_add_options MOZ_PARALLEL_COMPILE=1
|
||||
mk_add_options MOZ_CRASHREPORTER=0
|
||||
mk_add_options MOZ_DATA_REPORTING=0
|
||||
mk_add_options MOZ_SERVICES_HEALTHREPORT=0
|
||||
mk_add_options MOZ_TELEMETRY_REPORTING=0
|
||||
|
||||
ac_add_options --enable-proxy-bypass-protection
|
||||
ac_add_options --enable-hardening
|
||||
ac_add_options --disable-profiling
|
||||
|
||||
ac_add_options --disable-crashreporter
|
||||
ac_add_options --disable-dmd
|
||||
ac_add_options --disable-geckodriver
|
||||
ac_add_options --disable-rust-tests
|
||||
ac_add_options --disable-default-browser-agent
|
||||
|
||||
export MOZ_LTO=thin
|
||||
ac_add_options MOZ_LTO=thin
|
||||
ac_add_options --enable-lto=thin
|
||||
ac_add_options --disable-vtune
|
||||
|
||||
if test "$ZEN_CROSS_COMPILING"; then
|
||||
ac_add_options --disable-jemalloc
|
||||
else
|
||||
ac_add_options --enable-jemalloc
|
||||
if ! test "$ZEN_DISABLE_LTO"; then
|
||||
export MOZ_LTO=1
|
||||
ac_add_options MOZ_LTO=1
|
||||
ac_add_options --enable-lto=full,cross
|
||||
fi
|
||||
|
||||
ac_add_options --enable-jemalloc
|
||||
|
||||
mk_add_options MOZILLA_OFFICIAL=1
|
||||
MOZILLA_OFFICIAL=1
|
||||
export MOZILLA_OFFICIAL=1
|
||||
|
||||
mk_add_options MOZ_OPTIMIZE=1
|
||||
MOZ_OPTIMIZE=1
|
||||
export MOZ_OPTIMIZE=1
|
||||
mk_add_options MOZ_OPTIMIZE=2
|
||||
MOZ_OPTIMIZE=2
|
||||
export MOZ_OPTIMIZE=2
|
||||
|
||||
export OPT_LEVEL="3"
|
||||
ac_add_options OPT_LEVEL="3"
|
||||
|
||||
export RUSTC_OPT_LEVEL="3"
|
||||
ac_add_options RUSTC_OPT_LEVEL="3"
|
||||
|
||||
mk_add_options AUTOCLOBBER=1
|
||||
export AUTOCLOBBER=1
|
||||
|
||||
ac_add_options --enable-updater
|
||||
|
||||
export MOZ_PACKAGE_JSSHELL=1
|
||||
fi
|
||||
|
||||
ac_add_options --enable-unverified-updates
|
||||
ac_add_options --enable-updater
|
||||
|
||||
ac_add_options --enable-raw
|
||||
ac_add_options --enable-webrtc
|
||||
@@ -91,20 +86,16 @@ ac_add_options --enable-jxl
|
||||
ac_add_options --enable-av1
|
||||
ac_add_options --enable-eme=widevine
|
||||
|
||||
ac_add_options --allow-addon-sideload
|
||||
ac_add_options --with-unsigned-addon-scopes=app,system
|
||||
|
||||
export MOZ_REQUIRE_SIGNING=
|
||||
export MOZ_TELEMETRY_REPORTING=
|
||||
|
||||
mk_add_options MOZ_CRASHREPORTER=0
|
||||
mk_add_options MOZ_DATA_REPORTING=0
|
||||
mk_add_options MOZ_SERVICES_HEALTHREPORT=0
|
||||
mk_add_options MOZ_TELEMETRY_REPORTING=0
|
||||
|
||||
if test "$ZEN_CROSS_COMPILING"; then
|
||||
ac_add_options --target=x86_64-pc-linux-gnu
|
||||
fi
|
||||
|
||||
export MOZ_APP_UA_NAME="Firefox"
|
||||
|
||||
# ALWAYS MANTAIN ONE LINE BREAK AT THE END OF THIS FILE
|
||||
# Allow loading unsigned extensions
|
||||
export MOZ_REQUIRE_SIGNING=1
|
||||
mk_add_options MOZ_REQUIRE_SIGNING=1
|
||||
|
@@ -1,44 +1,51 @@
|
||||
ac_add_options --enable-wasm-avx
|
||||
|
||||
# not when cross compiling
|
||||
if ! test "$ZEN_CROSS_COMPILING"; then
|
||||
|
||||
if test -d "$HOME/.mozbuild/clang/bin"; then
|
||||
if test -d "$HOME/.mozbuild/clang/bin"; then
|
||||
export CC="$HOME"/.mozbuild/clang/bin/clang
|
||||
export CXX="$HOME"/.mozbuild/clang/bin/clang++
|
||||
else
|
||||
else
|
||||
export CC=clang
|
||||
export CXX=clang++
|
||||
fi
|
||||
|
||||
ac_add_options --enable-linker=lld
|
||||
ac_add_options --disable-elf-hack
|
||||
fi
|
||||
|
||||
if test "$ZEN_RELEASE"; then
|
||||
|
||||
ac_add_options --disable-dmd
|
||||
ac_add_options --enable-linker=lld
|
||||
ac_add_options --disable-elf-hack
|
||||
|
||||
ac_add_options --enable-install-strip
|
||||
ac_add_options --enable-strip
|
||||
export STRIP_FLAGS="--strip-debug --strip-unneeded"
|
||||
|
||||
if [ -f /home/runner/.mozbuild/sccache/sccache ]; then
|
||||
mk_add_options 'export RUSTC_WRAPPER=/home/runner/.mozbuild/sccache/sccache'
|
||||
mk_add_options 'export CCACHE_CPP2=yes'
|
||||
ac_add_options --with-ccache=/home/runner/.mozbuild/sccache/sccache
|
||||
mk_add_options 'export SCCACHE_GHA_ENABLED=on'
|
||||
|
||||
# PGO may cause link errors on windows!
|
||||
if ! test "$ZEN_CROSS_COMPILING"; then
|
||||
# WE ARE JUST SUPPORTING PGO FOR LINUX!
|
||||
export MOZ_PGO=1
|
||||
ac_add_options MOZ_PGO=1
|
||||
fi
|
||||
|
||||
export CFLAGS="-O2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -maes"
|
||||
export CPPFLAGS="-O2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -maes"
|
||||
export CXXFLAGS="-O2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -maes"
|
||||
export LDFLAGS="-Wl,-O3 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -maes"
|
||||
POLLY="-mllvm -polly -mllvm -polly-2nd-level-tiling -mllvm -polly-loopfusion-greedy -mllvm -polly-pattern-matching-based-opts -mllvm -polly-position=before-vectorizer -mllvm -polly-vectorizer=stripmine"
|
||||
export RUSTFLAGS="$RUSTFLAGS -C target-feature=+avx -C codegen-units=1 -Ctarget-cpu=x86-64-v3"
|
||||
export MOZ_PGO=1
|
||||
ac_add_options MOZ_PGO=1
|
||||
|
||||
if test "$SURFER_COMPAT" = "true"; then
|
||||
ac_add_options --enable-optimize="-O3 -march=x86-64"
|
||||
|
||||
export CFLAGS="$CFLAGS -O3 -ffp-contract=fast -march=x86-64"
|
||||
export CPPFLAGS="$CPPFLAGS -O3 -ffp-contract=fast -march=x86-64"
|
||||
export CXXFLAGS="$CXXFLAGS -O3 -ffp-contract=fast -march=x86-64"
|
||||
export LDFLAGS="$LDFLAGS -Wl,-O3 -Wl,-mllvm,-fp-contract=fast -march=x86-64"
|
||||
export RUSTFLAGS="$RUSTFLAGS -C target-cpu=x86-64 -C codegen-units=1"
|
||||
else
|
||||
ac_add_options --enable-wasm-avx
|
||||
ac_add_options --enable-optimize="-O3 -march=x86-64-v3 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -maes"
|
||||
|
||||
export CFLAGS="$CFLAGS -O3 -ffp-contract=fast -march=x86-64-v3 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -maes"
|
||||
export CPPFLAGS="$CPPFLAGS -O3 -ffp-contract=fast -march=x86-64-v3 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -maes"
|
||||
export CXXFLAGS="$CXXFLAGS -O3 -ffp-contract=fast -march=x86-64-v3 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -maes"
|
||||
export LDFLAGS="$LDFLAGS -Wl,-O3 -Wl,-mllvm,-fp-contract=fast -march=x86-64-v3"
|
||||
export RUSTFLAGS="$RUSTFLAGS -C target-cpu=x86-64-v3 -C target-feature=+sse4.1 -C target-feature=+avx2 -C codegen-units=1"
|
||||
fi
|
||||
export VERBOSE=1
|
||||
fi
|
||||
|
||||
# Disable telemetry and tracking
|
||||
mk_add_options MOZ_TELEMETRY_REPORTING=
|
||||
mk_add_options MOZ_DATA_REPORTING=
|
||||
ac_add_options --target=x86_64-pc-linux
|
||||
|
@@ -1,9 +1,35 @@
|
||||
POLLY="-mllvm -polly -mllvm -polly-2nd-level-tiling -mllvm -polly-loopfusion-greedy -mllvm -polly-pattern-matching-based-opts -mllvm -polly-position=before-vectorizer -mllvm -polly-vectorizer=stripmine"
|
||||
|
||||
# if test "$ZEN_RELEASE"; then
|
||||
# ac_add_options --enable-optimize="-mcpu=apple-m1 -O3 -w"
|
||||
# export RUSTFLAGS="$RUSTFLAGS -Ctarget-cpu=apple-m1"
|
||||
# fi
|
||||
# SURFER_COMPAT has a different meaning here, in macOS it means that the build is for
|
||||
# x86_64, not ARM64.
|
||||
unset MOZ_STDCXX_COMPAT
|
||||
|
||||
ac_add_options --enable-install-strip
|
||||
ac_add_options --target=aarch64-apple-darwin
|
||||
ac_add_options --disable-dmd
|
||||
|
||||
export MOZ_MACBUNDLE_ID=${appId}
|
||||
export MOZ_MACBUNDLE_NAME="Zen Browser.app"
|
||||
|
||||
if test "$SURFER_COMPAT" = "true"; then
|
||||
export MOZ_PGO=1
|
||||
ac_add_options MOZ_PGO=1
|
||||
ac_add_options --target=x86_64-apple-darwin
|
||||
|
||||
ac_add_options --enable-wasm-avx
|
||||
ac_add_options --enable-optimize="-march=nehalem -mtune=haswell -O3 -w"
|
||||
|
||||
export CFLAGS="-O3 -march=nehalem"
|
||||
export CPPFLAGS="-O3 -march=nehalem"
|
||||
export CXXFLAGS="-O3 -march=nehalem"
|
||||
export LDFLAGS="-Wl,-O3 -march=nehalem"
|
||||
export RUSTFLAGS="-Ctarget-cpu=nehalem -C codegen-units=1"
|
||||
else
|
||||
ac_add_options --target=aarch64-apple-darwin
|
||||
|
||||
ac_add_options --enable-optimize="-O3 -mcpu=apple-m1 -march=armv8.3-a+simd"
|
||||
|
||||
export CFLAGS="-O3 -march=armv8.3-a+simd -mcpu=apple-m1"
|
||||
export CPPFLAGS="-O3 -march=armv8.3-a+simd -mcpu=apple-m1"
|
||||
export CXXFLAGS="-O3 -march=armv8.3-a+simd -mcpu=apple-m1"
|
||||
export LDFLAGS="-Wl,-O3 -march=armv8.3-a+simd -mcpu=apple-m1"
|
||||
export RUSTFLAGS="-C target-feature=+v8.3a -C codegen-units=1 -Ctarget-cpu=apple-m1"
|
||||
fi
|
||||
export VERBOSE=1
|
||||
|
@@ -1,5 +1,71 @@
|
||||
|
||||
if test "$ZEN_CROSS_COMPILING"; then
|
||||
|
||||
export WINSYSROOT="$(echo ~)/win-cross/vs2022"
|
||||
|
||||
export MIDL="$(echo ~)/win-cross/wine/bin/widl"
|
||||
export WINE="$(echo ~)/win-cross/wine/bin/wine64"
|
||||
export WINEDEBUG=-all
|
||||
|
||||
export MOZ_STUB_INSTALLER=1
|
||||
export MOZ_PKG_FORMAT=TAR
|
||||
|
||||
export CROSS_BUILD=1
|
||||
CROSS_COMPILE=1
|
||||
TOOLS=$(echo ~)/win-cross
|
||||
|
||||
#export WIN32_REDIST_DIR="$TOOLS"/vs2022/VC/Redist/MSVC/14.34.31931/x64/Microsoft.VC143.CRT
|
||||
#export WIN_UCRT_REDIST_DIR="$TOOLS/vs2022/Windows Kits/10/Redist/10.0.22621.0/ucrt/DLLs/x64"
|
||||
|
||||
export MIDL="$TOOLS/wine/bin/widl"
|
||||
export MOZ_INCLUDE_SOURCE_INFO=1
|
||||
export MOZ_STUB_INSTALLER=1
|
||||
export WINEDEBUG=-all
|
||||
export WINE="$TOOLS/wine/bin/wine64"
|
||||
|
||||
fi
|
||||
|
||||
#? https://bugzilla.mozilla.org/show_bug.cgi?id=1617793
|
||||
#? https://phabricator.services.mozilla.com/D170170
|
||||
ac_add_options --target=x86_64-pc-windows-msvc
|
||||
|
||||
ac_add_options --disable-maintenance-service
|
||||
ac_add_options --disable-bits-download
|
||||
|
||||
ac_add_options --without-wasm-sandboxed-libraries
|
||||
|
||||
if test "$SURFER_COMPAT" = "true"; then
|
||||
ac_add_options --enable-optimize="-O3 -mavx -maes -w -ftree-vectorize"
|
||||
|
||||
export CFLAGS="-mavx -maes -mtune=haswell -march=x86-64"
|
||||
export CPPFLAGS="-mavx -maes -mtune=haswell -march=x86-64"
|
||||
export CXXFLAGS="-mavx -maes -mtune=haswell -march=x86-64"
|
||||
export LDFLAGS="-Wl,-O3"
|
||||
export RUSTFLAGS="-C target-feature=+avx -C codegen-units=1 -Ctarget-cpu=x86-64"
|
||||
else
|
||||
ac_add_options --enable-optimize="-O2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -maes -Xclang -ftree-vectorize -w"
|
||||
ac_add_options --enable-wasm-avx
|
||||
|
||||
export CFLAGS="-O2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -maes /arch:AVX -march=x86-64-v3"
|
||||
export CPPFLAGS="-O2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -maes /arch:AVX -march=x86-64-v3"
|
||||
export CXXFLAGS="-O2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -maes /arch:AVX -march=x86-64-v3"
|
||||
export LDFLAGS="-Wl,-O3 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -maes -march=x86-64-v3"
|
||||
export RUSTFLAGS="-C target-feature=+avx -C codegen-units=1 -Ctarget-cpu=x86-64-v3"
|
||||
fi
|
||||
export POLLY="-mllvm -polly -mllvm -polly-2nd-level-tiling -mllvm -polly-loopfusion-greedy -mllvm -polly-pattern-matching-based-opts -mllvm -polly-position=before-vectorizer -mllvm -polly-vectorizer=stripmine"
|
||||
export VERBOSE=1
|
||||
|
||||
#if test "$ZEN_GA_GENERATE_PROFILE"; then
|
||||
# mk_add_options "export MOZ_AUTOMATION_PACKAGE_GENERATED_SOURCES=0"
|
||||
# ac_add_options --enable-profile-generate=cross
|
||||
#else
|
||||
# ac_add_options --enable-profile-use=cross
|
||||
# if test "$SURFER_COMPAT" = "true"; then
|
||||
# ac_add_options --with-pgo-profile-path=$(echo ~)/artifact/merged-generic.profdata
|
||||
# ac_add_options --with-pgo-jarlog=$(echo ~)/artifact/en-US-generic.log
|
||||
# else
|
||||
# ac_add_options --with-pgo-profile-path=$(echo ~)/artifact/merged-specific.profdata
|
||||
# ac_add_options --with-pgo-jarlog=$(echo ~)/artifact/en-US-specific.log
|
||||
# fi
|
||||
#fi
|
||||
|
||||
# Disable telemetry and tracking
|
||||
mk_add_options MOZ_TELEMETRY_REPORTING=
|
||||
mk_add_options MOZ_DATA_REPORTING=
|
||||
|
@@ -9,4 +9,5 @@
|
||||
* Welcome Page
|
||||
* Overall performance
|
||||
* Overall stability
|
||||
* Pinning tabs (Grid layout)
|
||||
* Overall UX
|
||||
|
99
docs/performance.md
Normal file
@@ -0,0 +1,99 @@
|
||||
# 🌀 Zen Browser Performance traker
|
||||
```mermaid
|
||||
graph TD;
|
||||
A[mauro-balades] -->B(Zen custom code)
|
||||
G-->B
|
||||
H(ptr1337/CachyOS)-->|AUR Pkg and Opt. flags|D
|
||||
E(Fire Fox-Code)-->C
|
||||
B --> C{Final code}
|
||||
D-->G(Perf. Testing)
|
||||
C-->D(Build)
|
||||
D--> F(Release)
|
||||
F-->I(mar)
|
||||
F-->L(Mac)
|
||||
F-->T(Linux)
|
||||
F-->V(Win install)
|
||||
V-->Z(Zip)
|
||||
V-->Z2(Intall.exe)
|
||||
I-->I1(windows.mar)
|
||||
I-->I2(linux.mar)
|
||||
I-->I3(macos.mar)
|
||||
T-->T1(zen.linux.tar.bz2)
|
||||
T-->T2(AUR)
|
||||
T-->T3(Flatpak)
|
||||
T-->T4(AppImage)
|
||||
L-->L1(zen.macos.dmg)
|
||||
```
|
||||
|
||||
|
||||
## Scores
|
||||
|
||||
## 1
|
||||
- [NOCanoa](https://github.com/NOCanoa)
|
||||
|
||||
OS: win 11; CPU: i5 13600k
|
||||
|
||||
## web.basemark
|
||||
|
||||
https://web.basemark.com/
|
||||
|
||||
| | score: |CSS | HTML5 | Page load and Responsiveness | Resize Cap. |
|
||||
|-----------|-----|-----|-------|------------------------------|-------------|
|
||||
| 1.0.0-a.12-opt | 1874.49 | 59% | 91% | 91% | 76% |
|
||||
| 1.0.0-a.11-opt | 1678.49 | 59% | 91% | 91% | 76% |
|
||||
| 1.0.0-a.10 | 1660.89 | 59% | 91% | 91% | 76% |
|
||||
| 1.0.0-a.9 | 470 | why | why | why | why |
|
||||
| 1.0.0-a.8 | 446.74 | 59% | 91% | 96% | 76% |
|
||||
| 1.0.0-a.7 | 1964.43 | 59% | 91% | 91% | 76% |
|
||||
| 1.0.0-a.6 | 1747.98 | 59% | 91% | 91% | 76% |
|
||||
| 1.0.0-a.4 | 470.49 | 59% | 91% | 97% | 76% |
|
||||
| 1.0.0-a.3 | 475.52 |59% | 91% | 97% | 76% |
|
||||
| other | last | utpdate | 31/7 | 2024 | - |
|
||||
| Librewolf 128.0-2 | 1953.65 | 59.66% | 89.01% | 91.72% | 76.12% |
|
||||
| FF nightly 130.0a1 | 1912.77 | 59.66% | 90.91% | 91.72% | 76.12% |
|
||||
|
||||
|
||||
```mermaid
|
||||
xychart-beta
|
||||
title "Performance over time (Higher is better)"
|
||||
x-axis [.3, .4, .6, .7, .8, .9, .10, .11, .12]
|
||||
y-axis "Benchmark Points"
|
||||
bar [475.52, 470.49, 1747.98, 1964.43, 446.74, 470, 1660.89, 1678.49, 1874.49]
|
||||
line [475.52, 470.49, 1747.98, 1964.43, 446.74, 470, 1660.89, 1678.49, 1874.49]
|
||||
```
|
||||
|
||||
## Speedometer3.0
|
||||
|
||||
https://browserbench.org/Speedometer3.0/
|
||||
|
||||
| | score: |
|
||||
|-----------|-----|
|
||||
| 1.0.0-a.12-opt | 21.5 |
|
||||
| 1.0.0-a.11-opt | 20.8 |
|
||||
| 1.0.0-a.10 | 21.2 |
|
||||
| others| - |
|
||||
| Vivaldi 6.7.3329.39| 27.8 |
|
||||
| FF nightly 130.0a1 | 27.0 |
|
||||
| Librewolf 128.0-2 | 20.2 |
|
||||
|
||||
|
||||
## 2
|
||||
|
||||
- [Verix](https://github.com/Veriiix)
|
||||
|
||||
OS: Win 11
|
||||
CPU: i7-13700KF
|
||||
GPU: AMD RX 7900 XTX
|
||||
https://www.tablesgenerator.com/
|
||||
|
||||
| Version | Score: |
|
||||
|------------|--------|
|
||||
| 1.0.0-a.12-opt | 23 |
|
||||
| 1.0.0-a.11-opt | 22.1 |
|
||||
| 1.0.0-a.10 | 21.7 |
|
||||
| 1.0.0-a.9 | 3.7 |
|
||||
| others| - |
|
||||
| Default FF | 28 |
|
||||
|
||||
|
||||
https://browserbench.org/Speedometer3.0/
|
31
docs/requirements.md
Normal file
@@ -0,0 +1,31 @@
|
||||
|
||||
# Supported CPUs for optimized builds (Windows and Linux)
|
||||
|
||||
> If you CPU is not listed, you should use the "Generic" build.
|
||||
|
||||
* AMD Family 15h (Excavator)
|
||||
* AMD Family 17h (Zen)
|
||||
* AMD Family 17h (Zen+)
|
||||
* AMD Family 17h (Zen 2)
|
||||
* AMD Family 19h (Zen 3)
|
||||
* Intel 4th Gen Core (Haswell)
|
||||
* Intel 5th Gen Core (Broadwell)
|
||||
* Intel 6th Gen Core (Skylake)
|
||||
* Intel 7th Gen Core (Kaby Lake)
|
||||
* Intel 8/9th Gen Core (Coffee Lake)
|
||||
* Intel 10th Gen Core (Comet Lake)
|
||||
* Intel 12th Gen (Alder Lake)
|
||||
* Intel 13th Gen (Raptor Lake)
|
||||
* Intel 14th Gen (Raptor Lake Refresh)
|
||||
* Intel 15th Gen (Lunar / Arrow Lake)
|
||||
* AMD Family 19h (Zen 4 / Zen 4c)
|
||||
* AMD Family 1Ah (Zen 5 / Zen 5c)
|
||||
* Intel 6th Gen Core (Skylake X)
|
||||
* Intel 8th Gen Core i3 (Cannon Lake)
|
||||
* Intel Xeon / 10th Gen Core (Ice Lake)
|
||||
* Intel Xeon (Cascade Lake)
|
||||
* Intel Xeon (Cooper Lake)
|
||||
* Intel 3rd Gen 10nm++ (Tiger Lake)
|
||||
* Intel 4th Gen 10nm++ (Sapphire Rapids)
|
||||
* Intel 5th Gen 10nm++ (Emerald Rapids)
|
||||
* Intel 11th Gen (Rocket Lake)
|
46
flatpak/io.github.zen_browser.zen.yml.template
Normal file
@@ -0,0 +1,46 @@
|
||||
app-id: io.github.zen_browser.zen
|
||||
runtime: org.freedesktop.Platform
|
||||
runtime-version: '23.08'
|
||||
sdk: org.freedesktop.Sdk
|
||||
base: org.mozilla.firefox.BaseApp
|
||||
base-version: '23.08'
|
||||
command: launch-script.sh
|
||||
finish-args:
|
||||
- --share=ipc
|
||||
- --share=network
|
||||
- --socket=pulseaudio
|
||||
- --socket=wayland
|
||||
- --socket=fallback-x11
|
||||
- --socket=pcsc
|
||||
- --socket=cups
|
||||
- --persist=.zen
|
||||
- --filesystem=xdg-download:rw
|
||||
- --device=all
|
||||
- --talk-name=org.freedesktop.FileManager1
|
||||
- --own-name=org.mozilla.zen.*
|
||||
- --own-name=org.mpris.MediaPlayer2.firefox.*
|
||||
- --system-talk-name=org.freedesktop.NetworkManager
|
||||
- --talk-name=org.a11y.Bus
|
||||
modules:
|
||||
- name: zen_browser
|
||||
buildsystem: simple
|
||||
build-commands:
|
||||
- mv zen /app/
|
||||
|
||||
- install -Dm0755 metadata/launch-script.sh ${{FLATPAK_DEST}}/bin/launch-script.sh
|
||||
- install -Dm0644 metadata/policies.json ${{FLATPAK_DEST}}/bin/distribution/policies.json
|
||||
- install -Dm0644 metadata/icons/io.github.zen_browser.zen.png ${{FLATPAK_DEST}}/share/icons/hicolor/256x256/apps/${{FLATPAK_ID}}.png
|
||||
- install -Dm0644 metadata/io.github.zen_browser.zen.metainfo.xml ${{FLATPAK_DEST}}/share/metainfo/${{FLATPAK_ID}}.metainfo.xml
|
||||
- install -Dm0644 metadata/io.github.zen_browser.zen.desktop ${{FLATPAK_DEST}}/share/applications/${{FLATPAK_ID}}.desktop
|
||||
|
||||
sources:
|
||||
- type: archive
|
||||
url: https://github.com/zen-browser/desktop/releases/download/{version}/zen.linux-generic.tar.bz2
|
||||
sha256: {linux_sha256}
|
||||
strip-components: 0
|
||||
|
||||
- type: archive
|
||||
url: https://github.com/zen-browser/flatpak/releases/latest/download/archive.tar
|
||||
sha256: {flatpak_sha256}
|
||||
strip-components: 0
|
||||
dest: metadata
|
@@ -27,6 +27,6 @@
|
||||
},
|
||||
"homepage": "https://github.com/zen-browser/core#readme",
|
||||
"dependencies": {
|
||||
"@zen-browser/surfer": "^1.1.4"
|
||||
"@zen-browser/surfer": "^1.2.7"
|
||||
}
|
||||
}
|
||||
|
10
pnpm-lock.yaml
generated
@@ -9,8 +9,8 @@ importers:
|
||||
.:
|
||||
dependencies:
|
||||
'@zen-browser/surfer':
|
||||
specifier: ^1.1.4
|
||||
version: 1.1.4
|
||||
specifier: ^1.2.7
|
||||
version: 1.2.7
|
||||
|
||||
packages:
|
||||
|
||||
@@ -109,8 +109,8 @@ packages:
|
||||
'@types/node@17.0.45':
|
||||
resolution: {integrity: sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==}
|
||||
|
||||
'@zen-browser/surfer@1.1.4':
|
||||
resolution: {integrity: sha512-fNG/zZfqlEIUVyxLzC07mn+TBVhRwlZJTPMiyckJPo2jqrehGnaOimw23RA6ZgeXCEvu645u9XxWQ7dhkkwnIw==}
|
||||
'@zen-browser/surfer@1.2.7':
|
||||
resolution: {integrity: sha512-VbbbB7crGXrdfk1PPnlsWFWErwjtccXbRuw5mOQzY327d2t5VraxmkqTzcuGSTxpu3CR/KvzNu0gDg/6+7b4NQ==}
|
||||
hasBin: true
|
||||
|
||||
ansi-regex@5.0.1:
|
||||
@@ -786,7 +786,7 @@ snapshots:
|
||||
|
||||
'@types/node@17.0.45': {}
|
||||
|
||||
'@zen-browser/surfer@1.1.4':
|
||||
'@zen-browser/surfer@1.2.7':
|
||||
dependencies:
|
||||
'@resvg/resvg-js': 1.4.0
|
||||
async-icns: 1.0.2
|
||||
|
58
scripts/prepare-flatpak-release.py
Normal file
@@ -0,0 +1,58 @@
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
import hashlib
|
||||
import argparse
|
||||
|
||||
FLATID = "io.github.zen_browser.zen"
|
||||
|
||||
def get_sha256sum(filename):
|
||||
sha256 = hashlib.sha256()
|
||||
with open(filename, "rb") as f:
|
||||
for byte_block in iter(lambda: f.read(4096), b""):
|
||||
sha256.update(byte_block)
|
||||
return sha256.hexdigest()
|
||||
|
||||
def build_template(template, linux_sha256, flatpak_sha256, version):
|
||||
print(f"Building template with version {version}")
|
||||
print(f"\tLinux archive sha256: {linux_sha256}")
|
||||
print(f"\tFlatpak archive sha256: {flatpak_sha256}")
|
||||
return template.format(linux_sha256=linux_sha256,
|
||||
flatpak_sha256=flatpak_sha256,
|
||||
version=version)
|
||||
|
||||
def get_template(template_root):
|
||||
file = f"{template_root}/{FLATID}.yml.template"
|
||||
print(f"Reading template {file}")
|
||||
with open(file, "r") as f:
|
||||
return f.read()
|
||||
print(f"Template {template_root}/flatpak.yml not found")
|
||||
sys.exit(1)
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description='Prepare flatpak release')
|
||||
parser.add_argument('--version', help='Version of the release', required=True)
|
||||
parser.add_argument('--linux-archive', help='Linux archive', required=True)
|
||||
parser.add_argument('--flatpak-archive', help='Flatpak archive', required=True)
|
||||
parser.add_argument('--output', help='Output file', default=f"{FLATID}.yml")
|
||||
parser.add_argument('--template-root', help='Template root', default="flatpak")
|
||||
args = parser.parse_args()
|
||||
|
||||
version = args.version
|
||||
linux_archive = args.linux_archive
|
||||
flatpak_archive = args.flatpak_archive
|
||||
output = args.output
|
||||
template_root = args.template_root
|
||||
|
||||
linux_sha256 = get_sha256sum(linux_archive)
|
||||
flatpak_sha256 = get_sha256sum(flatpak_archive)
|
||||
|
||||
template = build_template(get_template(template_root), linux_sha256, flatpak_sha256, version)
|
||||
|
||||
print(f"Writing output to {output}")
|
||||
with open(output, "w") as f:
|
||||
f.write(template)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
@@ -1,29 +1,4 @@
|
||||
// Ignore license in this file
|
||||
//
|
||||
// The code in this file was created by @yokoffing and is licensed under the
|
||||
// MIT license:
|
||||
// MIT License
|
||||
//
|
||||
// Copyright (c) 2020 yokoffing
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
// in the Software without restriction, including without limitation the rights
|
||||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
// copies of the Software, and to permit persons to whom the Software is
|
||||
// furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included in all
|
||||
// copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
// SOFTWARE.
|
||||
|
||||
/* You may copy+paste this file and use it as it is.
|
||||
*
|
||||
* If you make changes to your about:config while the program is running, the
|
||||
@@ -35,253 +10,215 @@
|
||||
/****************************************************************************
|
||||
* Betterfox *
|
||||
* "Ad meliora" *
|
||||
* version: 121 *
|
||||
* version: 128 *
|
||||
* url: https://github.com/yokoffing/Betterfox *
|
||||
****************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: FASTFOX *
|
||||
****************************************************************************/
|
||||
****************************************************************************/
|
||||
/** GENERAL ***/
|
||||
pref('content.notify.interval', 100000);
|
||||
pref("content.notify.interval", 100000);
|
||||
|
||||
/** GFX ***/
|
||||
pref('gfx.canvas.accelerated.cache-items', 4096);
|
||||
pref('gfx.canvas.accelerated.cache-size', 512);
|
||||
pref('gfx.content.skia-font-cache-size', 20);
|
||||
pref("gfx.canvas.accelerated.cache-items", 4096);
|
||||
pref("gfx.canvas.accelerated.cache-size", 512);
|
||||
pref("gfx.content.skia-font-cache-size", 20);
|
||||
|
||||
/** DISK CACHE ***/
|
||||
pref('browser.cache.jsbc_compression_level', 3);
|
||||
pref("browser.cache.jsbc_compression_level", 3);
|
||||
|
||||
/** MEDIA CACHE ***/
|
||||
pref('media.memory_cache_max_size', 65536);
|
||||
pref('media.cache_readahead_limit', 7200);
|
||||
pref('media.cache_resume_threshold', 3600);
|
||||
pref("media.memory_cache_max_size", 65536);
|
||||
pref("media.cache_readahead_limit", 7200);
|
||||
pref("media.cache_resume_threshold", 3600);
|
||||
|
||||
/** IMAGE CACHE ***/
|
||||
pref('image.mem.decode_bytes_at_a_time', 32768);
|
||||
pref("image.mem.decode_bytes_at_a_time", 32768);
|
||||
|
||||
/** NETWORK ***/
|
||||
pref('network.buffer.cache.size', 262144);
|
||||
pref('network.buffer.cache.count', 128);
|
||||
pref('network.http.max-connections', 1800);
|
||||
pref('network.http.max-persistent-connections-per-server', 10);
|
||||
pref('network.http.max-urgent-start-excessive-connections-per-host', 5);
|
||||
pref('network.http.pacing.requests.enabled', false);
|
||||
pref('network.dnsCacheExpiration', 3600);
|
||||
pref('network.dns.max_high_priority_threads', 8);
|
||||
pref('network.ssl_tokens_cache_capacity', 10240);
|
||||
pref("network.http.max-connections", 1800);
|
||||
pref("network.http.max-persistent-connections-per-server", 10);
|
||||
pref("network.http.max-urgent-start-excessive-connections-per-host", 5);
|
||||
pref("network.http.pacing.requests.enabled", false);
|
||||
pref("network.dnsCacheExpiration", 3600);
|
||||
pref("network.ssl_tokens_cache_capacity", 10240);
|
||||
|
||||
/** SPECULATIVE LOADING ***/
|
||||
pref('network.dns.disablePrefetch', true);
|
||||
pref('network.prefetch-next', false);
|
||||
pref('network.predictor.enabled', false);
|
||||
pref("network.dns.disablePrefetch", true);
|
||||
pref("network.dns.disablePrefetchFromHTTPS", true);
|
||||
pref("network.prefetch-next", false);
|
||||
pref("network.predictor.enabled", false);
|
||||
pref("network.predictor.enable-prefetch", false);
|
||||
|
||||
/** EXPERIMENTAL ***/
|
||||
pref('layout.css.grid-template-masonry-value.enabled', true);
|
||||
pref('dom.enable_web_task_scheduling', true);
|
||||
pref('layout.css.has-selector.enabled', true);
|
||||
pref('dom.security.sanitizer.enabled', true);
|
||||
pref("layout.css.grid-template-masonry-value.enabled", true);
|
||||
pref("dom.enable_web_task_scheduling", true);
|
||||
pref("dom.security.sanitizer.enabled", true);
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: SECUREFOX *
|
||||
****************************************************************************/
|
||||
****************************************************************************/
|
||||
/** TRACKING PROTECTION ***/
|
||||
pref('browser.contentblocking.category', 'strict');
|
||||
pref(
|
||||
'urlclassifier.trackingSkipURLs',
|
||||
'*.reddit.com, *.twitter.com, *.twimg.com, *.tiktok.com'
|
||||
);
|
||||
pref(
|
||||
'urlclassifier.features.socialtracking.skipURLs',
|
||||
'*.instagram.com, *.twitter.com, *.twimg.com'
|
||||
);
|
||||
pref('network.cookie.sameSite.noneRequiresSecure', true);
|
||||
pref('browser.download.start_downloads_in_tmp_dir', true);
|
||||
pref('browser.helperApps.deleteTempFileOnExit', true);
|
||||
pref('browser.uitour.enabled', false);
|
||||
pref('privacy.globalprivacycontrol.enabled', true);
|
||||
pref("browser.contentblocking.category", "strict");
|
||||
pref("urlclassifier.trackingSkipURLs", "*.reddit.com, *.twitter.com, *.twimg.com, *.tiktok.com");
|
||||
pref("urlclassifier.features.socialtracking.skipURLs", "*.instagram.com, *.twitter.com, *.twimg.com");
|
||||
pref("network.cookie.sameSite.noneRequiresSecure", true);
|
||||
pref("browser.download.start_downloads_in_tmp_dir", true);
|
||||
pref("browser.helperApps.deleteTempFileOnExit", true);
|
||||
pref("browser.uitour.enabled", false);
|
||||
pref("privacy.globalprivacycontrol.enabled", true);
|
||||
|
||||
/** OCSP & CERTS / HPKP ***/
|
||||
pref('security.OCSP.enabled', 0);
|
||||
pref('security.remote_settings.crlite_filters.enabled', true);
|
||||
pref('security.pki.crlite_mode', 2);
|
||||
pref("security.OCSP.enabled", 0);
|
||||
pref("security.remote_settings.crlite_filters.enabled", true);
|
||||
pref("security.pki.crlite_mode", 2);
|
||||
|
||||
/** SSL / TLS ***/
|
||||
pref('security.ssl.treat_unsafe_negotiation_as_broken', true);
|
||||
pref('browser.xul.error_pages.expert_bad_cert', true);
|
||||
pref('security.tls.enable_0rtt_data', false);
|
||||
pref("security.ssl.treat_unsafe_negotiation_as_broken", true);
|
||||
pref("browser.xul.error_pages.expert_bad_cert", true);
|
||||
pref("security.tls.enable_0rtt_data", false);
|
||||
|
||||
/** DISK AVOIDANCE ***/
|
||||
pref('browser.privatebrowsing.forceMediaMemoryCache', true);
|
||||
pref('browser.sessionstore.interval', 60000);
|
||||
pref("browser.privatebrowsing.forceMediaMemoryCache", true);
|
||||
pref("browser.sessionstore.interval", 60000);
|
||||
|
||||
/** SHUTDOWN & SANITIZING ***/
|
||||
pref('privacy.history.custom', true);
|
||||
pref("privacy.history.custom", true);
|
||||
|
||||
/** SEARCH / URL BAR ***/
|
||||
pref('browser.search.separatePrivateDefault.ui.enabled', true);
|
||||
pref('browser.urlbar.update2.engineAliasRefresh', true);
|
||||
pref('browser.search.suggest.enabled', false);
|
||||
pref('browser.urlbar.suggest.quicksuggest.sponsored', false);
|
||||
pref('browser.urlbar.suggest.quicksuggest.nonsponsored', false);
|
||||
pref('browser.formfill.enable', false);
|
||||
pref('security.insecure_connection_text.enabled', true);
|
||||
pref('security.insecure_connection_text.pbmode.enabled', true);
|
||||
pref('network.IDN_show_punycode', true);
|
||||
|
||||
/** HTTPS-FIRST POLICY ***/
|
||||
pref('dom.security.https_first', true);
|
||||
pref('dom.security.https_first_schemeless', true);
|
||||
|
||||
/** PASSWORDS ***/
|
||||
pref('signon.rememberSignons', false);
|
||||
pref('signon.formlessCapture.enabled', false);
|
||||
pref('signon.privateBrowsingCapture.enabled', false);
|
||||
pref('network.auth.subresource-http-auth-allow', 1);
|
||||
pref('editor.truncate_user_pastes', false);
|
||||
|
||||
/** ADDRESS + CREDIT CARD MANAGER ***/
|
||||
pref('extensions.formautofill.addresses.enabled', false);
|
||||
pref('extensions.formautofill.creditCards.enabled', false);
|
||||
|
||||
/** MIXED CONTENT + CROSS-SITE ***/
|
||||
pref('security.mixed_content.block_display_content', true);
|
||||
pref('security.mixed_content.upgrade_display_content', true);
|
||||
pref('security.mixed_content.upgrade_display_content.image', true);
|
||||
pref('pdfjs.enableScripting', false);
|
||||
pref('extensions.postDownloadThirdPartyPrompt', false);
|
||||
|
||||
/** HEADERS / REFERERS ***/
|
||||
pref('network.http.referer.XOriginTrimmingPolicy', 2);
|
||||
pref("browser.urlbar.trimHttps", true);
|
||||
pref("browser.search.separatePrivateDefault.ui.enabled", true);
|
||||
pref("browser.urlbar.update2.engineAliasRefresh", true);
|
||||
pref("browser.search.suggest.enabled", false);
|
||||
pref("browser.urlbar.quicksuggest.enabled", false);
|
||||
pref("browser.urlbar.suggest.quicksuggest.sponsored", false);
|
||||
pref("browser.urlbar.suggest.quicksuggest.nonsponsored", false);
|
||||
pref("browser.urlbar.groupLabels.enabled", false);
|
||||
pref("browser.formfill.enable", false);
|
||||
pref("security.insecure_connection_text.enabled", true);
|
||||
pref("security.insecure_connection_text.pbmode.enabled", true);
|
||||
pref("network.IDN_show_punycode", true);
|
||||
|
||||
/** CONTAINERS ***/
|
||||
pref('privacy.userContext.ui.enabled', true);
|
||||
pref("privacy.userContext.ui.enabled", true);
|
||||
|
||||
/** WEBRTC ***/
|
||||
pref('media.peerconnection.ice.proxy_only_if_behind_proxy', true);
|
||||
pref('media.peerconnection.ice.default_address_only', true);
|
||||
pref("media.peerconnection.ice.proxy_only_if_behind_proxy", true);
|
||||
pref("media.peerconnection.ice.default_address_only", true);
|
||||
|
||||
/** SAFE BROWSING ***/
|
||||
pref('browser.safebrowsing.downloads.remote.enabled', false);
|
||||
pref("browser.safebrowsing.downloads.remote.enabled", false);
|
||||
|
||||
/** MOZILLA ***/
|
||||
pref('permissions.default.desktop-notification', 2);
|
||||
pref('permissions.default.geo', 2);
|
||||
pref(
|
||||
'geo.provider.network.url',
|
||||
'https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%'
|
||||
);
|
||||
pref('permissions.manager.defaultsUrl', '');
|
||||
pref('webchannel.allowObject.urlWhitelist', '');
|
||||
pref("permissions.default.desktop-notification", 2);
|
||||
pref("permissions.default.geo", 2);
|
||||
pref("permissions.manager.defaultsUrl", "");
|
||||
pref("webchannel.allowObject.urlWhitelist", "");
|
||||
|
||||
/** TELEMETRY ***/
|
||||
pref('datareporting.policy.dataSubmissionEnabled', false);
|
||||
pref('datareporting.healthreport.uploadEnabled', false);
|
||||
pref('toolkit.telemetry.unified', false);
|
||||
pref('toolkit.telemetry.enabled', false);
|
||||
pref('toolkit.telemetry.server', 'data:,');
|
||||
pref('toolkit.telemetry.archive.enabled', false);
|
||||
pref('toolkit.telemetry.newProfilePing.enabled', false);
|
||||
pref('toolkit.telemetry.shutdownPingSender.enabled', false);
|
||||
pref('toolkit.telemetry.updatePing.enabled', false);
|
||||
pref('toolkit.telemetry.bhrPing.enabled', false);
|
||||
pref('toolkit.telemetry.firstShutdownPing.enabled', false);
|
||||
pref('toolkit.telemetry.coverage.opt-out', true);
|
||||
pref('toolkit.coverage.opt-out', true);
|
||||
pref('toolkit.coverage.endpoint.base', '');
|
||||
pref('browser.ping-centre.telemetry', false);
|
||||
pref('browser.newtabpage.activity-stream.feeds.telemetry', false);
|
||||
pref('browser.newtabpage.activity-stream.telemetry', false);
|
||||
pref("datareporting.policy.dataSubmissionEnabled", false);
|
||||
pref("datareporting.healthreport.uploadEnabled", false);
|
||||
pref("toolkit.telemetry.unified", false);
|
||||
pref("toolkit.telemetry.enabled", false);
|
||||
pref("toolkit.telemetry.server", "data:,");
|
||||
pref("toolkit.telemetry.archive.enabled", false);
|
||||
pref("toolkit.telemetry.newProfilePing.enabled", false);
|
||||
pref("toolkit.telemetry.shutdownPingSender.enabled", false);
|
||||
pref("toolkit.telemetry.updatePing.enabled", false);
|
||||
pref("toolkit.telemetry.bhrPing.enabled", false);
|
||||
pref("toolkit.telemetry.firstShutdownPing.enabled", false);
|
||||
pref("toolkit.telemetry.coverage.opt-out", true);
|
||||
pref("toolkit.coverage.opt-out", true);
|
||||
pref("toolkit.coverage.endpoint.base", "");
|
||||
pref("browser.newtabpage.activity-stream.feeds.telemetry", false);
|
||||
pref("browser.newtabpage.activity-stream.telemetry", false);
|
||||
|
||||
/** EXPERIMENTS ***/
|
||||
pref('app.shield.optoutstudies.enabled', false);
|
||||
pref('app.normandy.enabled', false);
|
||||
pref('app.normandy.api_url', '');
|
||||
pref("app.shield.optoutstudies.enabled", false);
|
||||
pref("app.normandy.enabled", false);
|
||||
pref("app.normandy.api_url", "");
|
||||
|
||||
/** CRASH REPORTS ***/
|
||||
pref('breakpad.reportURL', '');
|
||||
pref('browser.tabs.crashReporting.sendReport', false);
|
||||
pref('browser.crashReports.unsubmittedCheck.autoSubmit2', false);
|
||||
pref("breakpad.reportURL", "");
|
||||
pref("browser.tabs.crashReporting.sendReport", false);
|
||||
pref("browser.crashReports.unsubmittedCheck.autoSubmit2", false);
|
||||
|
||||
/** DETECTION ***/
|
||||
pref('captivedetect.canonicalURL', '');
|
||||
pref('network.captive-portal-service.enabled', false);
|
||||
pref('network.connectivity-service.enabled', false);
|
||||
pref("captivedetect.canonicalURL", "");
|
||||
pref("network.captive-portal-service.enabled", false);
|
||||
pref("network.connectivity-service.enabled", false);
|
||||
pref("dom.private-attribution.submission.enabled", false);
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: PESKYFOX *
|
||||
****************************************************************************/
|
||||
****************************************************************************/
|
||||
/** MOZILLA UI ***/
|
||||
pref('browser.privatebrowsing.vpnpromourl', '');
|
||||
pref('extensions.getAddons.showPane', false);
|
||||
pref('extensions.htmlaboutaddons.recommendations.enabled', false);
|
||||
pref('browser.discovery.enabled', false);
|
||||
pref('browser.shell.checkDefaultBrowser', false);
|
||||
pref('browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons', false);
|
||||
pref(
|
||||
'browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features',
|
||||
false
|
||||
);
|
||||
pref('browser.preferences.moreFromMozilla', false);
|
||||
pref('browser.tabs.tabmanager.enabled', false);
|
||||
pref('browser.aboutConfig.showWarning', false);
|
||||
pref('browser.aboutwelcome.enabled', false);
|
||||
pref("browser.privatebrowsing.vpnpromourl", "");
|
||||
pref("extensions.getAddons.showPane", false);
|
||||
pref("extensions.htmlaboutaddons.recommendations.enabled", false);
|
||||
pref("browser.discovery.enabled", false);
|
||||
pref("browser.shell.checkDefaultBrowser", false);
|
||||
pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons", false);
|
||||
pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features", false);
|
||||
pref("browser.preferences.moreFromMozilla", false);
|
||||
pref("browser.tabs.tabmanager.enabled", false);
|
||||
pref("browser.aboutConfig.showWarning", false);
|
||||
pref("browser.aboutwelcome.enabled", false);
|
||||
|
||||
/** THEME ADJUSTMENTS ***/
|
||||
pref('toolkit.legacyUserProfileCustomizations.stylesheets', true);
|
||||
pref('browser.compactmode.show', true);
|
||||
pref('layout.css.prefers-color-scheme.content-override', 2);
|
||||
pref('browser.privateWindowSeparation.enabled', false); // WINDOWS
|
||||
|
||||
/** COOKIE BANNER HANDLING ***/
|
||||
pref('cookiebanners.service.mode', 1);
|
||||
pref('cookiebanners.service.mode.privateBrowsing', 1);
|
||||
pref("toolkit.legacyUserProfileCustomizations.stylesheets", true);
|
||||
pref("browser.compactmode.show", true);
|
||||
pref("browser.display.focus_ring_on_anything", true);
|
||||
pref("browser.display.focus_ring_style", 0);
|
||||
pref("browser.display.focus_ring_width", 0);
|
||||
pref("layout.css.prefers-color-scheme.content-override", 2);
|
||||
pref("browser.privateWindowSeparation.enabled", false); // WINDOWS
|
||||
|
||||
/** FULLSCREEN NOTICE ***/
|
||||
pref('full-screen-api.transition-duration.enter', '0 0');
|
||||
pref('full-screen-api.transition-duration.leave', '0 0');
|
||||
pref('full-screen-api.warning.delay', -1);
|
||||
pref('full-screen-api.warning.timeout', 0);
|
||||
pref("full-screen-api.transition-duration.enter", "0 0");
|
||||
pref("full-screen-api.transition-duration.leave", "0 0");
|
||||
pref("full-screen-api.warning.delay", -1);
|
||||
pref("full-screen-api.warning.timeout", 0);
|
||||
|
||||
/** URL BAR ***/
|
||||
pref('browser.urlbar.suggest.calculator', true);
|
||||
pref('browser.urlbar.unitConversion.enabled', true);
|
||||
pref('browser.urlbar.trending.featureGate', false);
|
||||
pref("browser.urlbar.suggest.calculator", true);
|
||||
pref("browser.urlbar.unitConversion.enabled", true);
|
||||
pref("browser.urlbar.trending.featureGate", false);
|
||||
|
||||
/** NEW TAB PAGE ***/
|
||||
pref('browser.newtabpage.activity-stream.feeds.topsites', false);
|
||||
pref('browser.newtabpage.activity-stream.feeds.section.topstories', false);
|
||||
pref("browser.newtabpage.activity-stream.feeds.topsites", false);
|
||||
pref("browser.newtabpage.activity-stream.feeds.section.topstories", false);
|
||||
|
||||
/*** POCKET ***/
|
||||
pref('extensions.pocket.enabled', false);
|
||||
/** POCKET ***/
|
||||
pref("extensions.pocket.enabled", false);
|
||||
|
||||
/** DOWNLOADS ***/
|
||||
pref('browser.download.always_ask_before_handling_new_types', true);
|
||||
pref('browser.download.manager.addToRecentDocs', false);
|
||||
pref("browser.download.always_ask_before_handling_new_types", true);
|
||||
pref("browser.download.manager.addToRecentDocs", false);
|
||||
|
||||
/** PDF ***/
|
||||
pref('browser.download.open_pdf_attachments_inline', true);
|
||||
pref("browser.download.open_pdf_attachments_inline", true);
|
||||
|
||||
/** TAB BEHAVIOR ***/
|
||||
pref('browser.bookmarks.openInTabClosesMenu', false);
|
||||
pref('browser.menu.showViewImageInfo', true);
|
||||
pref('findbar.highlightAll', true);
|
||||
pref('layout.word_select.eat_space_to_next_word', false);
|
||||
pref("browser.bookmarks.openInTabClosesMenu", false);
|
||||
pref("browser.menu.showViewImageInfo", true);
|
||||
pref("findbar.highlightAll", true);
|
||||
pref("layout.word_select.eat_space_to_next_word", false);
|
||||
|
||||
/****************************************************************************
|
||||
* START: MY OVERRIDES *
|
||||
****************************************************************************/
|
||||
****************************************************************************/
|
||||
// visit https://github.com/yokoffing/Betterfox/wiki/Common-Overrides
|
||||
// visit https://github.com/yokoffing/Betterfox/wiki/Optional-Hardening
|
||||
// Enter your personal overrides below this line:
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: SMOOTHFOX *
|
||||
****************************************************************************/
|
||||
****************************************************************************/
|
||||
// visit https://github.com/yokoffing/Betterfox/blob/main/Smoothfox.js
|
||||
// Enter your scrolling overrides below this line:
|
||||
|
||||
/****************************************************************************
|
||||
* END: BETTERFOX *
|
||||
****************************************************************************/
|
||||
****************************************************************************/
|
@@ -1,640 +0,0 @@
|
||||
|
||||
/****************************************************************************************
|
||||
* Fastfox *
|
||||
* "Non ducor duco" *
|
||||
* priority: speedy browsing *
|
||||
* version: 128 *
|
||||
* url: https://github.com/yokoffing/Betterfox *
|
||||
***************************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: GENERAL *
|
||||
****************************************************************************/
|
||||
|
||||
// PREF: initial paint delay
|
||||
// How long FF will wait before rendering the page (in ms)
|
||||
// [NOTE] You may prefer using 250.
|
||||
// [NOTE] Dark Reader users may want to use 1000 [3].
|
||||
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1283302
|
||||
// [2] https://docs.google.com/document/d/1BvCoZzk2_rNZx3u9ESPoFjSADRI0zIPeJRXFLwWXx_4/edit#heading=h.28ki6m8dg30z
|
||||
// [3] https://old.reddit.com/r/firefox/comments/o0xl1q/reducing_cpu_usage_of_dark_reader_extension/
|
||||
// [4] https://reddit.com/r/browsers/s/wvNB7UVCpx
|
||||
//pref("nglayout.initialpaint.delay", 5); // DEFAULT; formerly 250
|
||||
//pref("nglayout.initialpaint.delay_in_oopif", 5); // DEFAULT
|
||||
|
||||
// PREF: page reflow timer
|
||||
// Rather than wait until a page has completely downloaded to display it to the user,
|
||||
// web browsers will periodically render what has been received to that point.
|
||||
// Because reflowing the page every time additional data is received slows down
|
||||
// total page load time, a timer was added so that the page would not reflow too often.
|
||||
// This preference specfies whether that timer is active.
|
||||
// [1] https://kb.mozillazine.org/Content.notify.ontimer
|
||||
// true = do not reflow pages at an interval any higher than that specified by content.notify.interval (default)
|
||||
// false = reflow pages whenever new data is received
|
||||
//pref("content.notify.ontimer", true); // DEFAULT
|
||||
|
||||
// PREF: notification interval (in microseconds) to avoid layout thrashing
|
||||
// When Firefox is loading a page, it periodically reformats
|
||||
// or "reflows" the page as it loads. The page displays new elements
|
||||
// every 0.12 seconds by default. These redraws increase the total page load time.
|
||||
// The default value provides good incremental display of content
|
||||
// without causing an increase in page load time.
|
||||
// [NOTE] Lowering the interval will increase responsiveness
|
||||
// but also increase the total load time.
|
||||
// [WARNING] If this value is set below 1/10 of a second, it starts
|
||||
// to impact page load performance.
|
||||
// [EXAMPLE] 100000 = .10s = 100 reflows/second
|
||||
// [1] https://searchfox.org/mozilla-central/rev/c1180ea13e73eb985a49b15c0d90e977a1aa919c/modules/libpref/init/StaticPrefList.yaml#1824-1834
|
||||
// [2] https://dev.opera.com/articles/efficient-javascript/?page=3#reflow
|
||||
// [3] https://dev.opera.com/articles/efficient-javascript/?page=3#smoothspeed
|
||||
pref("content.notify.interval", 100000); // (.10s); default=120000 (.12s)
|
||||
|
||||
// PREF: new tab preload
|
||||
// [WARNING] Disabling this may cause a delay when opening a new tab in Firefox.
|
||||
// [1] https://wiki.mozilla.org/Tiles/Technical_Documentation#Ping
|
||||
// [2] https://github.com/arkenfox/user.js/issues/1556
|
||||
//pref("browser.newtab.preload", true); // DEFAULT
|
||||
|
||||
// PREF: disable EcoQoS [WINDOWS]
|
||||
// Background tab processes use efficiency mode on Windows 11 to limit resource use.
|
||||
// [WARNING] Leave this alone, unless you're on Desktop and you rely on
|
||||
// background tabs to have maximum performance.
|
||||
// [1] https://devblogs.microsoft.com/performance-diagnostics/introducing-ecoqos/
|
||||
// [2] https://bugzilla.mozilla.org/show_bug.cgi?id=1796525
|
||||
// [3] https://bugzilla.mozilla.org/show_bug.cgi?id=1800412
|
||||
// [4] https://reddit.com/r/firefox/comments/107fj69/how_can_i_disable_the_efficiency_mode_on_firefox/
|
||||
//pref("dom.ipc.processPriorityManager.backgroundUsesEcoQoS", false);
|
||||
|
||||
// PREF: control how tabs are loaded when a session is restored
|
||||
// true=Tabs are not loaded until they are selected (default)
|
||||
// false=Tabs begin to load immediately.
|
||||
//pref("browser.sessionstore.restore_on_demand", true); // DEFAULT
|
||||
//pref("browser.sessionstore.restore_pinned_tabs_on_demand", true);
|
||||
//pref("browser.sessionstore.restore_tabs_lazily", true); // DEFAULT
|
||||
|
||||
// PREF: disable preSkeletonUI on startup [WINDOWS]
|
||||
//pref("browser.startup.preXulSkeletonUI", false);
|
||||
|
||||
// PREF: lazy load iframes
|
||||
//pref("dom.iframe_lazy_loading.enabled", true); // DEFAULT [FF121+]
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: GFX RENDERING TWEAKS *
|
||||
****************************************************************************/
|
||||
|
||||
// PREF: Webrender tweaks
|
||||
// [1] https://searchfox.org/mozilla-central/rev/6e6332bbd3dd6926acce3ce6d32664eab4f837e5/modules/libpref/init/StaticPrefList.yaml#6202-6219
|
||||
// [2] https://hacks.mozilla.org/2017/10/the-whole-web-at-maximum-fps-how-webrender-gets-rid-of-jank/
|
||||
// [3] https://www.reddit.com/r/firefox/comments/tbphok/is_setting_gfxwebrenderprecacheshaders_to_true/i0bxs2r/
|
||||
// [4] https://www.reddit.com/r/firefox/comments/z5auzi/comment/ixw65gb?context=3
|
||||
// [5] https://gist.github.com/RubenKelevra/fd66c2f856d703260ecdf0379c4f59db?permalink_comment_id=4532937#gistcomment-4532937
|
||||
//pref("gfx.webrender.all", true); // enables WR + additional features
|
||||
//pref("gfx.webrender.precache-shaders", true); // longer initial startup time
|
||||
//pref("gfx.webrender.compositor", true); // DEFAULT WINDOWS macOS
|
||||
//pref("gfx.webrender.compositor.force-enabled", true); // enforce
|
||||
|
||||
// PREF: if your hardware doesn't support Webrender, you can fallback to Webrender's software renderer
|
||||
// [1] https://www.ghacks.net/2020/12/14/how-to-find-out-if-webrender-is-enabled-in-firefox-and-how-to-enable-it-if-it-is-not/
|
||||
//pref("gfx.webrender.software", true); // Software Webrender uses CPU instead of GPU
|
||||
//pref("gfx.webrender.software.opengl", true); // LINUX
|
||||
|
||||
// PREF: GPU-accelerated Canvas2D
|
||||
// Use gpu-canvas instead of to skia-canvas.
|
||||
// [WARNING] May cause issues on some Windows machines using integrated GPUs [2] [3]
|
||||
// Add to your overrides if you have a dedicated GPU.
|
||||
// [NOTE] Higher values will use more memory.
|
||||
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1741501
|
||||
// [2] https://github.com/yokoffing/Betterfox/issues/153
|
||||
// [3] https://github.com/yokoffing/Betterfox/issues/198
|
||||
//pref("gfx.canvas.accelerated", true); // DEFAULT macOS LINUX [FF110]; not compatible with WINDOWS integrated GPUs
|
||||
pref("gfx.canvas.accelerated.cache-items", 4096); // default=2048; alt=8192
|
||||
pref("gfx.canvas.accelerated.cache-size", 512); // default=256; alt=1024
|
||||
pref("gfx.content.skia-font-cache-size", 20); // default=5; Chrome=20
|
||||
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1239151#c2
|
||||
|
||||
// PREF: prefer GPU over CPU
|
||||
// At best, the prefs do nothing on Linux/macOS.
|
||||
// At worst, it'll result in crashes if the sandboxing is a WIP.
|
||||
// [1] https://firefox-source-docs.mozilla.org/dom/ipc/process_model.html#gpu-process
|
||||
//pref("layers.gpu-process.enabled", true); // DEFAULT WINDOWS
|
||||
//pref("layers.gpu-process.force-enabled", true); // enforce
|
||||
//pref("layers.mlgpu.enabled", true); // LINUX
|
||||
//pref("media.hardware-video-decoding.enabled", true); // DEFAULT WINDOWS macOS
|
||||
//pref("media.hardware-video-decoding.force-enabled", true); // enforce
|
||||
//pref("media.gpu-process-decoder", true); // DEFAULT WINDOWS
|
||||
//pref("media.ffmpeg.vaapi.enabled", true); // LINUX
|
||||
|
||||
// PREF: disable AV1 for hardware decodeable videos
|
||||
// Firefox sometimes uses AV1 video decoding even to GPUs which do not support it.
|
||||
// [1] https://www.reddit.com/r/AV1/comments/s5xyph/youtube_av1_codec_have_worse_quality_than_old_vp9
|
||||
//pref("media.av1.enabled", false);
|
||||
|
||||
// PREF: hardware and software decoded video overlay [FF116+]
|
||||
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1829063
|
||||
// [2] https://phabricator.services.mozilla.com/D175993
|
||||
//pref("gfx.webrender.dcomp-video-hw-overlay-win", true); // DEFAULT
|
||||
//pref("gfx.webrender.dcomp-video-hw-overlay-win-force-enabled", true); // enforce
|
||||
//pref("gfx.webrender.dcomp-video-sw-overlay-win", true); // DEFAULT
|
||||
//pref("gfx.webrender.dcomp-video-sw-overlay-win-force-enabled", true); // enforce
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: DISK CACHE *
|
||||
****************************************************************************/
|
||||
|
||||
// PREF: disk cache
|
||||
// [NOTE] If you think it helps performance, then feel free to override this.
|
||||
// [SETTINGS] See about:cache
|
||||
// More efficient to keep the browser cache instead of having to
|
||||
// re-download objects for the websites you visit frequently.
|
||||
// [1] https://www.janbambas.cz/new-firefox-http-cache-enabled/
|
||||
//pref("browser.cache.disk.enable", true); // DEFAULT
|
||||
|
||||
// PREF: disk cache size
|
||||
// [1] https://bugzilla.mozilla.org/buglist.cgi?bug_id=913808,968106,968101
|
||||
// [2] https://rockridge.hatenablog.com/entry/2014/09/15/165501
|
||||
// [3] https://www.reddit.com/r/firefox/comments/17oqhw3/firefox_and_ssd_disk_consumption/
|
||||
//pref("browser.cache.disk.smart_size.enabled", false); // force a fixed max cache size on disk
|
||||
//pref("browser.cache.disk.capacity", 512000); // default=256000; size of disk cache; 1024000=1GB, 2048000=2GB
|
||||
//pref("browser.cache.disk.max_entry_size", 51200); // DEFAULT (50 MB); maximum size of an object in disk cache
|
||||
|
||||
// PREF: Race Cache With Network (RCWN) [FF59+]
|
||||
// [ABOUT] about:networking#rcwn
|
||||
// Firefox concurrently sends requests for cached resources to both the
|
||||
// local disk cache and the network server. The browser uses whichever
|
||||
// result arrives first and cancels the other request. This approach sometimes
|
||||
// loads pages faster because the network can be quicker than accessing the cache
|
||||
// on a hard drive. When RCWN is enabled, the request might be served from
|
||||
// the server even if you have valid entry in the cache. Set to false if your
|
||||
// intention is to increase cache usage and reduce network usage.
|
||||
// [1] https://slides.com/valentingosu/race-cache-with-network-2017
|
||||
// [2] https://simonhearne.com/2020/network-faster-than-cache/
|
||||
// [3] https://support.mozilla.org/en-US/questions/1267945
|
||||
// [4] https://askubuntu.com/questions/1214862/36-syns-in-a-row-how-to-limit-firefox-connections-to-one-website
|
||||
// [5] https://bugzilla.mozilla.org/show_bug.cgi?id=1622859
|
||||
//pref("network.http.rcwn.enabled", true); // DEFAULT
|
||||
|
||||
// PREF: attempt to RCWN only if a resource is smaller than this size
|
||||
//pref("network.http.rcwn.small_resource_size_kb", 256); // DEFAULT
|
||||
|
||||
// PREF: cache memory pool
|
||||
// Cache v2 provides a memory pool that stores metadata (such as response headers)
|
||||
// for recently read cache entries [1]. It is managed by a cache thread, and caches with
|
||||
// metadata in the pool appear to be reused immediately.
|
||||
// [1] https://bugzilla.mozilla.org/buglist.cgi?bug_id=986179
|
||||
//pref("browser.cache.disk.metadata_memory_limit", 500); // default=250 (0.25 MB); limit of recent metadata we keep in memory for faster access
|
||||
|
||||
// PREF: number of chunks we preload ahead of read
|
||||
// Large content such as images will load faster.
|
||||
// [1] https://bugzilla.mozilla.org/buglist.cgi?bug_id=913819,988318
|
||||
// [2] http://www.janbambas.cz/new-firefox-http-cache-enabled/
|
||||
//pref("browser.cache.disk.preload_chunk_count", 4); // DEFAULT
|
||||
|
||||
// PREF: the time period used to re-compute the frecency value of cache entries
|
||||
// The frequency algorithm is used to select entries, and entries that are recently
|
||||
// saved or frequently reused are retained. The frecency value determines how
|
||||
// frequently a page has been accessed and is used by Firefox's cache algorithm.
|
||||
// The frequency algorithm is used to select entries, and entries that are recently
|
||||
// saved or frequently reused are retained. The frecency value determines how
|
||||
// often a page has been accessed and is used by Firefox's cache algorithm.
|
||||
// When the memory pool becomes full, the oldest data is purged. By default,
|
||||
// data older than 6 hours is treated as old.
|
||||
// [1] https://bugzilla.mozilla.org/buglist.cgi?bug_id=942835,1012327
|
||||
// [2] https://bugzilla.mozilla.org/buglist.cgi?bug_id=913808,968101
|
||||
//pref("browser.cache.frecency_half_life_hours", 6); // DEFAULT
|
||||
|
||||
// PREF: memory limit (in kB) for new cache data not yet written to disk
|
||||
// Writes to the cache are buffered and written to disk on background with low priority.
|
||||
// With a slow persistent storage, these buffers may grow when data is coming
|
||||
// fast from the network. When the amount of unwritten data is exceeded, new
|
||||
// writes will simply fail. We have two buckets, one for important data
|
||||
// (priority) like html, css, fonts and js, and one for other data like images, video, etc.
|
||||
//pref("browser.cache.disk.max_chunks_memory_usage", 40960); // DEFAULT (40 MB)
|
||||
//pref("browser.cache.disk.max_priority_chunks_memory_usage", 40960); // DEFAULT (40 MB)
|
||||
|
||||
// PREF: how often to validate document in cache
|
||||
// [1] https://searchfox.org/mozilla-release/source/modules/libpref/init/StaticPrefList.yaml#1092-1096
|
||||
// 0 = once-per-session
|
||||
// 3 = when-appropriate/automatically (default)
|
||||
//pref("browser.cache.check_doc_frequency", 3); // DEFAULT
|
||||
|
||||
// PREF: enforce free space checks
|
||||
// When smartsizing is disabled, we could potentially fill all disk space by
|
||||
// cache data when the disk capacity is not set correctly. To avoid that, we
|
||||
// check the free space every time we write some data to the cache. The free
|
||||
// space is checked against two limits. Once the soft limit is reached we start
|
||||
// evicting the least useful entries, when we reach the hard limit writing to
|
||||
// the entry fails.
|
||||
//pref("browser.cache.disk.free_space_soft_limit", 10240); // default=5120 (5 MB)
|
||||
//pref("browser.cache.disk.free_space_hard_limit", 2048); // default=1024 (1 MB)
|
||||
|
||||
// PREF: compression level for cached JavaScript bytecode [FF102+]
|
||||
// [1] https://github.com/yokoffing/Betterfox/issues/247
|
||||
// 0 = do not compress (default)
|
||||
// 1 = minimal compression
|
||||
// 9 = maximal compression
|
||||
pref("browser.cache.jsbc_compression_level", 3);
|
||||
|
||||
// PREF: strategy to use for when the bytecode should be encoded and saved [TESTING ONLY]
|
||||
// -1 makes page load times marginally longer when a page is being loaded for the first time.
|
||||
// Subsequent reload of websites will be much much faster.
|
||||
// [1] https://searchfox.org/mozilla-release/source/modules/libpref/init/StaticPrefList.yaml#3461-3488
|
||||
// [2] https://www.reddit.com/r/firefox/comments/12786yv/improving_performance_in_firefox_android_part_ii/
|
||||
// -1 = saved as soon as the script is seen for the first time, independently of the size or last access time
|
||||
// 0 = saved in order to minimize the page-load time (default)
|
||||
//pref("dom.script_loader.bytecode_cache.enabled", true); // DEFAULT
|
||||
//pref("dom.script_loader.bytecode_cache.strategy", 0); // DEFAULT
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: MEMORY CACHE *
|
||||
****************************************************************************/
|
||||
|
||||
// PREF: memory cache
|
||||
// The "automatic" size selection (default) is based on a decade-old table
|
||||
// that only contains settings for systems at or below 8GB of system memory [1].
|
||||
// Waterfox G6 allows it to go above 8GB machines [3].
|
||||
// Value can be up to the max size of an unsigned 64-bit integer.
|
||||
// -1=Automatically decide the maximum memory to use to cache decoded images,
|
||||
// messages, and chrome based on the total amount of RAM
|
||||
// [1] https://kb.mozillazine.org/Browser.cache.memory.capacity#-1
|
||||
// [2] https://searchfox.org/mozilla-central/source/netwerk/cache2/CacheObserver.cpp#94-125
|
||||
// [3] https://github.com/WaterfoxCo/Waterfox/commit/3fed16932c80a2f6b37d126fe10aed66c7f1c214
|
||||
//pref("browser.cache.memory.capacity", -1); // DEFAULT; 256000=256 MB; 512000=500 MB; 1048576=1GB, 2097152=2GB
|
||||
//pref("browser.cache.memory.max_entry_size", 10240); // (10 MB); default=5120 (5 MB)
|
||||
|
||||
// PREF: amount of Back/Forward cached pages stored in memory for each tab
|
||||
// Pages that were recently visited are stored in memory in such a way
|
||||
// that they don't have to be re-parsed. This improves performance
|
||||
// when pressing Back and Forward. This pref limits the maximum
|
||||
// number of pages stored in memory. If you are not using the Back
|
||||
// and Forward buttons that much, but rather using tabs, then there
|
||||
// is no reason for Firefox to keep memory for this.
|
||||
// -1=determine automatically (8 pages)
|
||||
// [1] https://kb.mozillazine.org/Browser.sessionhistory.max_total_viewers#Possible_values_and_their_effects
|
||||
//pref("browser.sessionhistory.max_total_viewers", 4);
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: MEDIA CACHE *
|
||||
****************************************************************************/
|
||||
|
||||
// PREF: media disk cache
|
||||
//pref("media.cache_size", 512000); // DEFAULT
|
||||
|
||||
// PREF: media memory cache
|
||||
// [1] https://hg.mozilla.org/mozilla-central/file/tip/modules/libpref/init/StaticPrefList.yaml#l9652
|
||||
// [2] https://github.com/arkenfox/user.js/pull/941
|
||||
pref("media.memory_cache_max_size", 65536); // default=8192; AF=65536; alt=131072
|
||||
//pref("media.memory_caches_combined_limit_kb", 524288); // DEFAULT; alt=1048576
|
||||
//pref("media.memory_caches_combined_limit_pc_sysmem", 5); // DEFAULT; alt=10; the percentage of system memory that Firefox can use for media caches
|
||||
|
||||
// PREF: Media Source Extensions (MSE) web standard
|
||||
// Disabling MSE allows videos to fully buffer, but you're limited to 720p.
|
||||
// [WARNING] Disabling MSE may break certain videos.
|
||||
// false=Firefox plays the old WebM format
|
||||
// true=Firefox plays the new WebM format (default)
|
||||
// [1] https://support.mozilla.org/en-US/questions/1008271
|
||||
//pref("media.mediasource.enabled", true); // DEFAULT
|
||||
|
||||
// PREF: adjust video buffering periods when not using MSE (in seconds)
|
||||
// [NOTE] Does not affect videos over 720p since they use DASH playback [1]
|
||||
// [1] https://lifehacker.com/preload-entire-youtube-videos-by-disabling-dash-playbac-1186454034
|
||||
pref("media.cache_readahead_limit", 7200); // 120 min; default=60; stop reading ahead when our buffered data is this many seconds ahead of the current playback
|
||||
pref("media.cache_resume_threshold", 3600); // 60 min; default=30; when a network connection is suspended, don't resume it until the amount of buffered data falls below this threshold
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: IMAGE CACHE *
|
||||
****************************************************************************/
|
||||
|
||||
// PREF: image cache
|
||||
//pref("image.cache.size", 5242880); // DEFAULT; in MiB; alt=10485760 (cache images up to 10MiB in size)
|
||||
pref("image.mem.decode_bytes_at_a_time", 32768); // default=16384; alt=65536; chunk size for calls to the image decoders
|
||||
|
||||
// PREF: set minimum timeout to unmap shared surfaces since they have been last used
|
||||
// This is only used on 32-bit builds of Firefox where there is meaningful
|
||||
// virtual address space pressure.
|
||||
// [1] https://phabricator.services.mozilla.com/D109440
|
||||
// [2] https://bugzilla.mozilla.org/show_bug.cgi?id=1699224
|
||||
//pref("image.mem.shared.unmap.min_expiration_ms", 120000); // default=60000; minimum timeout to unmap shared surfaces since they have been last used
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: NETWORK *
|
||||
****************************************************************************/
|
||||
|
||||
// PREF: use bigger packets
|
||||
// [WARNING] Cannot open HTML files bigger than 4MB if changed [2].
|
||||
// Reduce Firefox's CPU usage by requiring fewer application-to-driver data transfers.
|
||||
// However, it does not affect the actual packet sizes transmitted over the network.
|
||||
// [1] https://www.mail-archive.com/support-seamonkey@lists.mozilla.org/msg74561.html
|
||||
// [2] https://github.com/yokoffing/Betterfox/issues/279
|
||||
//pref("network.buffer.cache.size", 262144); // 256 kb; default=32768 (32 kb)
|
||||
//pref("network.buffer.cache.count", 128); // default=24
|
||||
|
||||
// PREF: increase the absolute number of HTTP connections
|
||||
// [1] https://kb.mozillazine.org/Network.http.max-connections
|
||||
// [2] https://kb.mozillazine.org/Network.http.max-persistent-connections-per-server
|
||||
// [3] https://www.reddit.com/r/firefox/comments/11m2yuh/how_do_i_make_firefox_use_more_of_my_900_megabit/jbfmru6/
|
||||
pref("network.http.max-connections", 1800); // default=900
|
||||
pref("network.http.max-persistent-connections-per-server", 10); // default=6; download connections; anything above 10 is excessive
|
||||
pref("network.http.max-urgent-start-excessive-connections-per-host", 5); // default=3
|
||||
//pref("network.http.max-persistent-connections-per-proxy", 48); // default=32
|
||||
//pref("network.websocket.max-connections", 200); // DEFAULT
|
||||
|
||||
// PREF: pacing requests [FF23+]
|
||||
// Controls how many HTTP requests are sent at a time.
|
||||
// Pacing HTTP requests can have some benefits, such as reducing network congestion,
|
||||
// improving web page loading speed, and avoiding server overload.
|
||||
// Pacing requests adds a slight delay between requests to throttle them.
|
||||
// If you have a fast machine and internet connection, disabling pacing
|
||||
// may provide a small speed boost when loading pages with lots of requests.
|
||||
// false=Firefox will send as many requests as possible without pacing
|
||||
// true=Firefox will pace requests (default)
|
||||
pref("network.http.pacing.requests.enabled", false);
|
||||
//pref("network.http.pacing.requests.min-parallelism", 10); // default=6
|
||||
//pref("network.http.pacing.requests.burst", 14); // default=10
|
||||
|
||||
// PREF: increase DNS cache
|
||||
// [1] https://developer.mozilla.org/en-US/docs/Web/Performance/Understanding_latency
|
||||
//pref("network.dnsCacheEntries", 1000); // default=400
|
||||
|
||||
// PREF: adjust DNS expiration time
|
||||
// [ABOUT] about:networking#dns
|
||||
// [NOTE] These prefs will be ignored by DNS resolver if using DoH/TRR.
|
||||
pref("network.dnsCacheExpiration", 3600); // keep entries for 1 hour
|
||||
//pref("network.dnsCacheExpirationGracePeriod", 240); // default=60; cache DNS entries for 4 minutes after they expire
|
||||
|
||||
// PREF: the number of threads for DNS
|
||||
//pref("network.dns.max_high_priority_threads", 40); // DEFAULT [FF 123?]
|
||||
//pref("network.dns.max_any_priority_threads", 24); // DEFAULT [FF 123?]
|
||||
|
||||
// PREF: increase TLS token caching
|
||||
pref("network.ssl_tokens_cache_capacity", 10240); // default=2048; more TLS token caching (fast reconnects)
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: SPECULATIVE LOADING *
|
||||
****************************************************************************/
|
||||
|
||||
// These are connections that are not explicitly asked for (e.g., clicked on).
|
||||
// [1] https://developer.mozilla.org/en-US/docs/Web/Performance/Speculative_loading
|
||||
|
||||
// [NOTE] FF85+ partitions (isolates) pooled connections, prefetch connections,
|
||||
// pre-connect connections, speculative connections, TLS session identifiers,
|
||||
// and other connections. We can take advantage of the speed of pre-connections
|
||||
// while preserving privacy. Users may relax hardening to maximize their preference.
|
||||
// For more information, see SecureFox: "PREF: State Paritioning" and "PREF: Network Partitioning".
|
||||
// [NOTE] To activate and increase network predictions, go to settings in uBlock Origin and uncheck:
|
||||
// - "Disable pre-fetching (to prevent any connection for blocked network requests)"
|
||||
// [NOTE] Add prefs to "MY OVERRIDES" section and uncomment to enable them in your user.js.
|
||||
|
||||
// PREF: link-mouseover opening connection to linked server
|
||||
// When accessing content online, devices use sockets as endpoints.
|
||||
// The global limit on half-open sockets controls how many speculative
|
||||
// connection attempts can occur at once when starting new connections [3].
|
||||
// If the user follows through, pages can load faster since some
|
||||
// work was done in advance. Firefox opens predictive connections
|
||||
// to sites when hovering over New Tab thumbnails or starting a
|
||||
// URL Bar search [1] and hyperlinks within a page [2].
|
||||
// [NOTE] DNS (if enabled), TCP, and SSL handshakes are set up in advance,
|
||||
// but page contents are not downloaded until a click on the link is registered.
|
||||
// [1] https://support.mozilla.org/en-US/kb/how-stop-firefox-making-automatic-connections?redirectslug=how-stop-firefox-automatically-making-connections&redirectlocale=en-US#:~:text=Speculative%20pre%2Dconnections
|
||||
// [2] https://news.slashdot.org/story/15/08/14/2321202/how-to-quash-firefoxs-silent-requests
|
||||
// [3] https://searchfox.org/mozilla-central/rev/028c68d5f32df54bca4cf96376f79e48dfafdf08/modules/libpref/init/all.js#1280-1282
|
||||
// [4] https://www.keycdn.com/blog/resource-hints#prefetch
|
||||
// [5] https://3perf.com/blog/link-rels/#prefetch
|
||||
//pref("network.http.speculative-parallel-limit", 20); // DEFAULT (FF127+?)
|
||||
|
||||
// PREF: DNS prefetching for HTMLLinkElement <link rel="dns-prefetch">
|
||||
// Used for cross-origin connections to provide small performance improvements.
|
||||
// You can enable rel=dns-prefetch for the HTTPS document without prefetching
|
||||
// DNS for anchors, whereas the latter makes more specualtive requests [5].
|
||||
// [1] https://bitsup.blogspot.com/2008/11/dns-prefetching-for-firefox.html
|
||||
// [2] https://css-tricks.com/prefetching-preloading-prebrowsing/#dns-prefetching
|
||||
// [3] https://www.keycdn.com/blog/resource-hints#2-dns-prefetching
|
||||
// [4] http://www.mecs-press.org/ijieeb/ijieeb-v7-n5/IJIEEB-V7-N5-2.pdf
|
||||
// [5] https://bugzilla.mozilla.org/show_bug.cgi?id=1596935#c28
|
||||
pref("network.dns.disablePrefetch", true);
|
||||
pref("network.dns.disablePrefetchFromHTTPS", true); // [FF127+ false]
|
||||
|
||||
// PREF: DNS prefetch for HTMLAnchorElement (speculative DNS)
|
||||
// Disable speculative DNS calls to prevent Firefox from resolving
|
||||
// hostnames for other domains linked on a page. This may eliminate
|
||||
// unnecessary DNS lookups, but can increase latency when following external links.
|
||||
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1596935#c28
|
||||
// [2] https://github.com/arkenfox/user.js/issues/1870#issuecomment-2220773972
|
||||
//pref("dom.prefetch_dns_for_anchor_http_document", false); // [FF128+]
|
||||
//pref("dom.prefetch_dns_for_anchor_https_document", false); // DEFAULT [FF128+]
|
||||
|
||||
// PREF: enable <link rel="preconnect"> tag and Link: rel=preconnect response header handling
|
||||
//pref("network.preconnect", true); // DEFAULT
|
||||
|
||||
// PREF: preconnect to the autocomplete URL in the address bar
|
||||
// Whether to warm up network connections for autofill or search results.
|
||||
// Firefox preloads URLs that autocomplete when a user types into the address bar.
|
||||
// Connects to destination server ahead of time, to avoid TCP handshake latency.
|
||||
// [NOTE] Firefox will perform DNS lookup (if enabled) and TCP and TLS handshake,
|
||||
// but will not start sending or receiving HTTP data.
|
||||
// [1] https://www.ghacks.net/2017/07/24/disable-preloading-firefox-autocomplete-urls/
|
||||
//pref("browser.urlbar.speculativeConnect.enabled", false);
|
||||
|
||||
// PREF: mousedown speculative connections on bookmarks and history [FF98+]
|
||||
// Whether to warm up network connections for places:menus and places:toolbar.
|
||||
//pref("browser.places.speculativeConnect.enabled", false);
|
||||
|
||||
// PREF: network module preload <link rel="modulepreload"> [FF115+]
|
||||
// High-priority loading of current page JavaScript modules.
|
||||
// Used to preload high-priority JavaScript modules for strategic performance improvements.
|
||||
// Module preloading allows developers to fetch JavaScript modules and dependencies
|
||||
// earlier to accelerate page loads. The browser downloads, parses, and compiles modules
|
||||
// referenced by links with this attribute in parallel with other resources, rather
|
||||
// than sequentially waiting to process each. Preloading reduces overall download times.
|
||||
// Browsers may also automatically preload dependencies without firing extra events.
|
||||
// Unlike other pre-connection tags (except rel=preload), this tag is mandatory for the browser.
|
||||
// [1] https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel/modulepreload
|
||||
//pref("network.modulepreload", true); // DEFAULT
|
||||
|
||||
// PREF: link prefetching <link rel="prefetch">
|
||||
// Pre-populates the HTTP cache by prefetching same-site future navigation
|
||||
// resources or subresources used on those pages.
|
||||
// Enabling link prefetching allows Firefox to preload pages tagged as important.
|
||||
// The browser prefetches links with the prefetch-link tag, fetching resources
|
||||
// likely needed for the next navigation at low priority. When clicking a link
|
||||
// or loading a new page, prefetching stops and discards hints. Prefetching
|
||||
// downloads resources without executing them.
|
||||
// [NOTE] Since link prefetch uses the HTTP cache, it has a number of issues
|
||||
// with document prefetches, such as being potentially blocked by Cache-Control headers
|
||||
// (e.g. cache partitioning).
|
||||
// [1] https://developer.mozilla.org/en-US/docs/Glossary/Prefetch
|
||||
// [2] http://www.mecs-press.org/ijieeb/ijieeb-v7-n5/IJIEEB-V7-N5-2.pdf
|
||||
// [3] https://timkadlec.com/remembers/2020-06-17-prefetching-at-this-age/
|
||||
// [4] https://3perf.com/blog/link-rels/#prefetch
|
||||
// [5] https://developer.mozilla.org/docs/Web/HTTP/Link_prefetching_FAQ
|
||||
pref("network.prefetch-next", false);
|
||||
|
||||
// PREF: Fetch Priority API [FF119+]
|
||||
// Indicates whether the `fetchpriority` attribute for elements which support it.
|
||||
// [1] https://web.dev/articles/fetch-priority
|
||||
// [2] https://nitropack.io/blog/post/priority-hints
|
||||
// [2] https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/fetchPriority
|
||||
// [3] https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/fetchPriority
|
||||
//pref("network.fetchpriority.enabled", true);
|
||||
|
||||
// PREF: early hints [FF120+]
|
||||
// [1] https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/103
|
||||
// [2] https://developer.chrome.com/blog/early-hints/
|
||||
// [3] https://blog.cloudflare.com/early-hints/
|
||||
// [4] https://blog.cloudflare.com/early-hints-performance/
|
||||
//pref("network.early-hints.enabled", true);
|
||||
|
||||
// PREF: `Link: rel=preconnect` in 103 Early Hint response [FF120+]
|
||||
// Used to warm most critical cross-origin connections to provide
|
||||
// performance improvements when connecting to them.
|
||||
// [NOTE] When 0, this is limited by "network.http.speculative-parallel-limit".
|
||||
//pref("network.early-hints.preconnect.enabled", true);
|
||||
//pref("network.early-hints.preconnect.max_connections", 10); // DEFAULT
|
||||
|
||||
// PREF: Network Predictor (NP)
|
||||
// When enabled, it trains and uses Firefox's algorithm to preload page resource
|
||||
// by tracking past page resources. It uses a local file (history) of needed images,
|
||||
// scripts, etc. to request them preemptively when navigating.
|
||||
// [NOTE] By default, it only preconnects, doing DNS, TCP, and SSL handshakes.
|
||||
// No data sends until clicking. With "network.predictor.enable-prefetch" enabled,
|
||||
// it also performs prefetches.
|
||||
// [1] https://wiki.mozilla.org/Privacy/Reviews/Necko
|
||||
// [2] https://www.ghacks.net/2014/05/11/seer-disable-firefox/
|
||||
// [3] https://github.com/dillbyrne/random-agent-spoofer/issues/238#issuecomment-110214518
|
||||
// [4] https://www.igvita.com/posa/high-performance-networking-in-google-chrome/#predictor
|
||||
pref("network.predictor.enabled", false);
|
||||
|
||||
// PREF: Network Predictor fetch for resources ahead of time
|
||||
// Prefetch page resources based on past user behavior.
|
||||
//pref("network.predictor.enable-prefetch", false); // DEFAULT
|
||||
|
||||
// PREF: make Network Predictor active when hovering over links
|
||||
// When hovering over links, Network Predictor uses past resource history to
|
||||
// preemptively request what will likely be needed instead of waiting for the document.
|
||||
// Predictive connections automatically open when hovering over links to speed up
|
||||
// loading, starting some work in advance.
|
||||
//pref("network.predictor.enable-hover-on-ssl", false); // DEFAULT
|
||||
|
||||
// PREF: assign Network Predictor confidence levels
|
||||
// [NOTE] Keep in mind that Network Predictor must LEARN your browsing habits.
|
||||
// Editing these lower will cause more speculative connections to occur,
|
||||
// which reduces accuracy over time and has privacy implications.
|
||||
//pref("network.predictor.preresolve-min-confidence", 60); // DEFAULT
|
||||
//pref("network.predictor.preconnect-min-confidence", 90); // DEFAULT
|
||||
//pref("network.predictor.prefetch-min-confidence", 100); // DEFAULT
|
||||
|
||||
// PREF: other Network Predictor values
|
||||
// [NOTE] Keep in mmind that Network Predictor must LEARN your browsing habits.
|
||||
//pref("network.predictor.prefetch-force-valid-for", 10); // DEFAULT; how long prefetched resources are considered valid and usable (in seconds) for the prediction modeling
|
||||
//pref("network.predictor.prefetch-rolling-load-count", 10); // DEFAULT; the maximum number of resources that Firefox will prefetch in memory at one time based on prediction modeling
|
||||
//pref("network.predictor.max-resources-per-entry", 250); // default=100
|
||||
//pref("network.predictor.max-uri-length", 1000); // default=500
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: EXPERIMENTAL *
|
||||
****************************************************************************/
|
||||
|
||||
// PREF: CSS Masonry Layout [NIGHTLY]
|
||||
// [1] https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout/Masonry_Layout
|
||||
pref("layout.css.grid-template-masonry-value.enabled", true);
|
||||
|
||||
// PREF: Prioritized Task Scheduling API [NIGHTLY]
|
||||
// [1] https://blog.mozilla.org/performance/2022/06/02/prioritized-task-scheduling-api-is-prototyped-in-nightly/
|
||||
// [2] https://medium.com/airbnb-engineering/building-a-faster-web-experience-with-the-posttask-scheduler-276b83454e91
|
||||
pref("dom.enable_web_task_scheduling", true);
|
||||
|
||||
// PREF: HTML Sanitizer API [NIGHTLY]
|
||||
// [1] https://developer.mozilla.org/en-US/docs/Web/API/Sanitizer
|
||||
// [2] https://caniuse.com/mdn-api_sanitizer
|
||||
pref("dom.security.sanitizer.enabled", true);
|
||||
|
||||
// PREF: WebGPU [HIGHLY EXPERIMENTAL!]
|
||||
// [WARNING] Do not enable unless you are a web developer!
|
||||
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1746245
|
||||
// [2] https://developer.chrome.com/docs/web-platform/webgpu/
|
||||
// [3] https://github.com/gpuweb/gpuweb/wiki/Implementation-Status
|
||||
// [4] https://hacks.mozilla.org/2020/04/experimental-webgpu-in-firefox/
|
||||
//pref("dom.webgpu.enabled", true);
|
||||
//pref("gfx.webgpu.force-enabled", true); // enforce
|
||||
// enable WebGPU indirect draws/dispatches:
|
||||
//pref("dom.webgpu.indirect-dispatch.enabled", true);
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: TAB UNLOAD *
|
||||
****************************************************************************/
|
||||
|
||||
// PREF: unload tabs on low memory
|
||||
// [ABOUT] about:unloads
|
||||
// Firefox will detect if your computer’s memory is running low (less than 200MB)
|
||||
// and suspend tabs that you have not used in awhile.
|
||||
// [1] https://support.mozilla.org/en-US/kb/unload-inactive-tabs-save-system-memory-firefox
|
||||
// [2] https://hacks.mozilla.org/2021/10/tab-unloading-in-firefox-93/
|
||||
//pref("browser.tabs.unloadOnLowMemory", true); // DEFAULT
|
||||
|
||||
// PREF: determine when tabs unload [WINDOWS] [LINUX]
|
||||
// Notify TabUnloader or send the memory pressure if the memory resource
|
||||
// notification is signaled AND the available commit space is lower than
|
||||
// this value.
|
||||
// Set this to some high value, e.g. 2/3 of total memory available in your system:
|
||||
// 4GB=2640, 8GB=5280, 16GB=10560, 32GB=21120, 64GB=42240
|
||||
// [1] https://dev.to/msugakov/taking-firefox-memory-usage-under-control-on-linux-4b02
|
||||
//pref("browser.low_commit_space_threshold_mb", 2640); // default=200; WINDOWS LINUX
|
||||
|
||||
// PREF: determine when tabs unload [LINUX]
|
||||
// On Linux, Firefox checks available memory in comparison to total memory,
|
||||
// and use this percent value (out of 100) to determine if Firefox is in a
|
||||
// low memory scenario.
|
||||
// [1] https://dev.to/msugakov/taking-firefox-memory-usage-under-control-on-linux-4b02
|
||||
//pref("browser.low_commit_space_threshold_percent", 33); // default=5; LINUX
|
||||
|
||||
// PREF: determine how long (in ms) tabs are inactive before they unload
|
||||
// 60000=1min; 300000=5min; 600000=10min (default)
|
||||
//pref("browser.tabs.min_inactive_duration_before_unload", 300000); // 5min; default=600000
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: PROCESS COUNT *
|
||||
****************************************************************************/
|
||||
|
||||
// PREF: process count
|
||||
// [ABOUT] View in about:processes.
|
||||
// With Firefox Quantum (2017), CPU cores = processCount. However, since the
|
||||
// introduction of Fission [2], the number of website processes is controlled
|
||||
// by processCount.webIsolated. Disabling fission.autostart or changing
|
||||
// fission.webContentIsolationStrategy reverts control back to processCount.
|
||||
// [1] https://www.reddit.com/r/firefox/comments/r69j52/firefox_content_process_limit_is_gone/
|
||||
// [2] https://firefox-source-docs.mozilla.org/dom/ipc/process_model.html#web-content-processes
|
||||
//pref("dom.ipc.processCount", 8); // DEFAULT; Shared Web Content
|
||||
//pref("dom.ipc.processCount.webIsolated", 1); // default=4; Isolated Web Content
|
||||
|
||||
// PREF: use one process for process preallocation cache
|
||||
//pref("dom.ipc.processPrelaunch.fission.number", 1); // default=3; Process Preallocation Cache
|
||||
|
||||
// PREF: configure process isolation
|
||||
// [1] https://hg.mozilla.org/mozilla-central/file/tip/dom/ipc/ProcessIsolation.cpp#l53
|
||||
// [2] https://www.reddit.com/r/firefox/comments/r69j52/firefox_content_process_limit_is_gone/
|
||||
|
||||
// OPTION 1: isolate all websites
|
||||
// Web content is always isolated into its own `webIsolated` content process
|
||||
// based on site-origin, and will only load in a shared `web` content process
|
||||
// if site-origin could not be determined.
|
||||
//pref("fission.webContentIsolationStrategy", 1); // DEFAULT
|
||||
//pref("browser.preferences.defaultPerformanceSettings.enabled", true); // DEFAULT
|
||||
//pref("dom.ipc.processCount.webIsolated", 1); // one process per site origin
|
||||
|
||||
// OPTION 2: isolate only "high value" websites
|
||||
// Only isolates web content loaded by sites which are considered "high
|
||||
// value". A site is considered high value if it has been granted a
|
||||
// `highValue*` permission by the permission manager, which is done in
|
||||
// response to certain actions.
|
||||
//pref("fission.webContentIsolationStrategy", 2);
|
||||
//pref("browser.preferences.defaultPerformanceSettings.enabled", false);
|
||||
//pref("dom.ipc.processCount.webIsolated", 1); // one process per site origin (high value)
|
||||
//pref("dom.ipc.processCount", 8); // determine by number of CPU cores/processors
|
||||
|
||||
// OPTION 3: do not isolate websites
|
||||
// All web content is loaded into a shared `web` content process. This is
|
||||
// similar to the non-Fission behavior; however, remote subframes may still
|
||||
// be used for sites with special isolation behavior, such as extension or
|
||||
// mozillaweb content processes.
|
||||
//pref("fission.webContentIsolationStrategy", 0);
|
||||
//pref("browser.preferences.defaultPerformanceSettings.enabled", false);
|
||||
//pref("dom.ipc.processCount", 8); // determine by number of CPU cores/processors
|
@@ -2,6 +2,12 @@
|
||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
#ifdef XP_UNIX
|
||||
#ifndef XP_MACOSX
|
||||
#define UNIX_BUT_NOT_MAC
|
||||
#endif
|
||||
#endif
|
||||
|
||||
pref("browser.tabs.cardPreview.enabled", true);
|
||||
pref("browser.tabs.hoverPreview.enabled", true);
|
||||
pref("browser.tabs.cardPreview.delayMs", 100);
|
||||
@@ -13,11 +19,9 @@ pref("devtools.debugger.prompt-connection", false);
|
||||
// Theme
|
||||
pref('toolkit.legacyUserProfileCustomizations.stylesheets', true);
|
||||
pref('browser.compactmode.show', true);
|
||||
pref('browser.display.focus_ring_on_anything', true);
|
||||
pref('browser.display.focus_ring_style', 0);
|
||||
pref('browser.display.focus_ring_width', 0);
|
||||
|
||||
pref('browser.newtabpage.activity-stream.newtabWallpapers.enabled', true);
|
||||
pref('browser.newtabpage.activity-stream.newtabWallpapers.v2.enabled', true);
|
||||
pref('browser.translations.newSettingsUI.enable', true);
|
||||
|
||||
pref("browser.urlbar.trimHttps", true);
|
||||
@@ -33,18 +37,13 @@ pref('browser.urlbar.clipboard.featureGate', true);
|
||||
// new tab page
|
||||
pref('browser.newtabpage.activity-stream.feeds.topsites', false);
|
||||
pref('browser.newtabpage.activity-stream.feeds.section.topstories', false);
|
||||
pref("browser.topsites.contile.enabled", false);
|
||||
pref("browser.topsites.contile.enabled", true);
|
||||
|
||||
// Pdf
|
||||
pref('browser.download.open_pdf_attachments_inline', true);
|
||||
pref('pdfjs.enableHighlightEditor', true);
|
||||
pref('pdfjs.enableHighlightFloatingButton', true);
|
||||
|
||||
// UA
|
||||
pref('general.useragent.compatMode.firefox', true);
|
||||
|
||||
pref('layout.css.backdrop-filter.enabled', true);
|
||||
|
||||
pref("alerts.showFavicons", true);
|
||||
pref('browser.toolbars.bookmarks.visibility', 'never');
|
||||
|
||||
@@ -65,9 +64,12 @@ pref('zen.tabs.vertical', true);
|
||||
pref('zen.theme.accent-color', "#aac7ff");
|
||||
pref('zen.theme.toolbar-themed', true);
|
||||
pref('zen.theme.pill-button', false);
|
||||
pref('zen.theme.floating-urlbar', false);
|
||||
pref('zen.view.compact', false);
|
||||
pref('zen.view.compact.hide-toolbar', false);
|
||||
pref('zen.view.sidebar-expanded', false);
|
||||
pref('zen.view.sidebar-expanded.show-button', true);
|
||||
pref('zen.view.sidebar-expanded.max-width', 400);
|
||||
|
||||
// Pref to enable the new profiles (TODO: Check this out!)
|
||||
//pref("browser.profiles.enabled", true);
|
||||
@@ -75,7 +77,7 @@ pref('zen.view.sidebar-expanded.show-button', true);
|
||||
// Zen Sidebar
|
||||
pref('zen.sidebar.data', "{\"data\":\n {\"p1\":{\n \"url\":\"https://www.wikipedia.org/\"\n },\n\"p2\":{\n \"url\":\"https://m.twitter.com/\",\n\"ua\": true\n },\n\"p3\": {\n \"url\": \"https://www.youtube.com/\",\n\"ua\": true\n},\n\"p4\": {\n \"url\": \"https://translate.google.com/\",\n\"ua\": true\n},\n\"p5\": {\n \"url\": \"https://todoist.com/\",\n\"ua\": true\n}},\n\"index\":[\"p1\",\"p2\",\"p3\",\"p4\",\"p5\"]}");
|
||||
pref('zen.sidebar.enabled', true);
|
||||
pref('zen.sidebar.floating', true);
|
||||
pref('zen.sidebar.close-on-blur', true);
|
||||
|
||||
// Zen Split View
|
||||
pref('zen.splitView.working', false);
|
||||
@@ -87,15 +89,27 @@ pref('zen.workspaces.enabled', true);
|
||||
pref('zen.watermark.enabled', true);
|
||||
|
||||
// Smooth scrolling
|
||||
user_pref('apz.overscroll.enabled', true); // not DEFAULT on Linux
|
||||
user_pref('general.smoothScroll', true); // DEFAULT
|
||||
pref('apz.overscroll.enabled', true); // not DEFAULT on Linux
|
||||
pref('general.smoothScroll', true); // DEFAULT
|
||||
|
||||
// Privacy
|
||||
pref('dom.private-attribution.submission.enabled', false);
|
||||
|
||||
// From Librewolf
|
||||
pref('media.eme.enabled', true);
|
||||
pref('webgl.disabled', false);
|
||||
|
||||
#include fast-fox.js
|
||||
pref("app.update.url.manual", "https://get-zen.vercel.app/download");
|
||||
pref("app.update.url.details", "hhttps://get-zen.vercel.app/download");
|
||||
pref("app.releaseNotesURL", "https://get-zen.vercel.app/release-notes");
|
||||
pref("app.releaseNotesURL.aboutDialog", "https://get-zen.vercel.app/release-notes");
|
||||
|
||||
// Enable importers for other browsers
|
||||
pref('browser.migrate.vivaldi.enabled', true);
|
||||
pref('browser.migrate.opera-gx.enabled', true);
|
||||
pref('browser.migrate.opera.enabled', true);
|
||||
|
||||
// DNS
|
||||
// pref('network.proxy.type', 0);
|
||||
// pref('network.trr.mode', 5);
|
||||
|
||||
#include better-fox.js
|
@@ -8,6 +8,7 @@ var gZenBrowserManagerSidebar = {
|
||||
_hasChangedConfig: true,
|
||||
_splitterElement: null,
|
||||
_hSplitterElement: null,
|
||||
_hasRegisteredPinnedClickOutside: false,
|
||||
_isDragging: false,
|
||||
contextTab: null,
|
||||
|
||||
@@ -30,10 +31,13 @@ var gZenBrowserManagerSidebar = {
|
||||
return JSON.parse(services);
|
||||
},
|
||||
|
||||
get shouldCloseOnBlur() {
|
||||
return Services.prefs.getBoolPref("zen.sidebar.close-on-blur");
|
||||
},
|
||||
|
||||
listenForPrefChanges() {
|
||||
Services.prefs.addObserver("zen.sidebar.data", this.handleEvent.bind(this));
|
||||
Services.prefs.addObserver("zen.sidebar.enabled", this.handleEvent.bind(this));
|
||||
Services.prefs.addObserver("zen.sidebar.floating", this.handleEvent.bind(this));
|
||||
|
||||
let sidebar = document.getElementById("zen-sidebar-web-panel");
|
||||
this.splitterElement.addEventListener("mousedown", (function(event) {
|
||||
@@ -101,11 +105,26 @@ var gZenBrowserManagerSidebar = {
|
||||
this.handleEvent();
|
||||
},
|
||||
|
||||
get isFloating() {
|
||||
return document.getElementById("zen-sidebar-web-panel").hasAttribute("pinned");
|
||||
},
|
||||
|
||||
handleEvent() {
|
||||
this._hasChangedConfig = true;
|
||||
this.update();
|
||||
this._hasChangedConfig = false;
|
||||
|
||||
// https://stackoverflow.com/questions/11565471/removing-event-listener-which-was-added-with-bind
|
||||
var clickOutsideHandler = this._handleClickOutside.bind(this);
|
||||
let isFloating = this.isFloating;
|
||||
if (isFloating && !this._hasRegisteredPinnedClickOutside) {
|
||||
document.addEventListener("mouseup", clickOutsideHandler);
|
||||
this._hasRegisteredPinnedClickOutside = true;
|
||||
} else if (!isFloating && this._hasRegisteredPinnedClickOutside) {
|
||||
document.removeEventListener("mouseup", clickOutsideHandler);
|
||||
this._hasRegisteredPinnedClickOutside = false;
|
||||
}
|
||||
|
||||
const button = document.getElementById("zen-sidepanel-button");
|
||||
if (Services.prefs.getBoolPref("zen.sidebar.enabled")) {
|
||||
button.removeAttribute("hidden");
|
||||
@@ -116,20 +135,42 @@ var gZenBrowserManagerSidebar = {
|
||||
}
|
||||
},
|
||||
|
||||
_handleClickOutside(event) {
|
||||
let sidebar = document.getElementById("zen-sidebar-web-panel");
|
||||
if (!sidebar.hasAttribute("pinned") || this._isDragging || !this.shouldCloseOnBlur) {
|
||||
return;
|
||||
}
|
||||
let target = event.target;
|
||||
const closestSelector = [
|
||||
"#zen-sidebar-web-panel",
|
||||
"#zen-sidebar-panels-wrapper",
|
||||
"#zenWebPanelContextMenu",
|
||||
"#zen-sidebar-web-panel-splitter",
|
||||
"#contentAreaContextMenu"
|
||||
].join(", ");
|
||||
if (target.closest(closestSelector)) {
|
||||
return;
|
||||
}
|
||||
this.close();
|
||||
},
|
||||
|
||||
toggle() {
|
||||
if (!this._currentPanel) {
|
||||
this._currentPanel = this._lastOpenedPanel;
|
||||
if (!this._currentPanel) {
|
||||
let data = this.sidebarData;
|
||||
this._currentPanel = data.index[0];
|
||||
}
|
||||
this.update();
|
||||
if (document.getElementById("zen-sidebar-web-panel").hasAttribute("hidden")) {
|
||||
this.open();
|
||||
return;
|
||||
}
|
||||
// already open?
|
||||
this.close();
|
||||
},
|
||||
|
||||
open() {
|
||||
let sidebar = document.getElementById("zen-sidebar-web-panel");
|
||||
sidebar.removeAttribute("hidden");
|
||||
this.update();
|
||||
},
|
||||
|
||||
update() {
|
||||
this._updateWebPanels();
|
||||
this._updateSidebarButton();
|
||||
@@ -139,7 +180,7 @@ var gZenBrowserManagerSidebar = {
|
||||
|
||||
_updateSidebarButton() {
|
||||
let button = document.getElementById("zen-sidepanel-button");
|
||||
if (this._currentPanel) {
|
||||
if (!document.getElementById("zen-sidebar-web-panel").hasAttribute("hidden")) {
|
||||
button.setAttribute("open", "true");
|
||||
} else {
|
||||
button.removeAttribute("open");
|
||||
@@ -206,15 +247,6 @@ var gZenBrowserManagerSidebar = {
|
||||
document.getElementById("zen-sidebar-web-panel-pinned").removeAttribute("pinned");
|
||||
},
|
||||
|
||||
_openAndGetWebPanelWrapper() {
|
||||
let sidebar = document.getElementById("zen-sidebar-web-panel");
|
||||
sidebar.removeAttribute("hidden");
|
||||
if (Services.prefs.getBoolPref("zen.sidebar.floating")) {
|
||||
this._setPinnedToElements();
|
||||
}
|
||||
return sidebar;
|
||||
},
|
||||
|
||||
_closeSidebarPanel() {
|
||||
let sidebar = document.getElementById("zen-sidebar-web-panel");
|
||||
sidebar.setAttribute("hidden", "true");
|
||||
@@ -242,7 +274,7 @@ var gZenBrowserManagerSidebar = {
|
||||
};
|
||||
Services.prefs.setStringPref("zen.sidebar.data", JSON.stringify(data));
|
||||
this._currentPanel = newName;
|
||||
this.update();
|
||||
this.open();
|
||||
},
|
||||
|
||||
_updateButtons() {
|
||||
@@ -256,21 +288,26 @@ var gZenBrowserManagerSidebar = {
|
||||
},
|
||||
|
||||
_hideAllWebPanels() {
|
||||
let sidebar = this._openAndGetWebPanelWrapper();
|
||||
let sidebar = document.getElementById("zen-sidebar-web-panel");
|
||||
for (let browser of sidebar.querySelectorAll("browser[zen-sidebar-id]")) {
|
||||
browser.setAttribute("hidden", "true");
|
||||
browser.docShellIsActive = false;
|
||||
}
|
||||
},
|
||||
|
||||
get introductionPanel() {
|
||||
return document.getElementById("zen-sidebar-introduction-panel");
|
||||
},
|
||||
|
||||
_updateWebPanel() {
|
||||
this._updateButtons();
|
||||
let sidebar = this._openAndGetWebPanelWrapper();
|
||||
let sidebar = document.getElementById("zen-sidebar-web-panel");
|
||||
this._hideAllWebPanels();
|
||||
if (!this._currentPanel) {
|
||||
sidebar.setAttribute("hidden", "true");
|
||||
this.introductionPanel.removeAttribute("hidden");
|
||||
return;
|
||||
}
|
||||
this.introductionPanel.setAttribute("hidden", "true");
|
||||
let existantWebview = this._getCurrentBrowser();
|
||||
if (existantWebview) {
|
||||
existantWebview.docShellIsActive = true;
|
||||
@@ -391,7 +428,6 @@ var gZenBrowserManagerSidebar = {
|
||||
} else {
|
||||
this._setPinnedToElements();
|
||||
}
|
||||
Services.prefs.setBoolPref("zen.sidebar.floating", sidebar.hasAttribute("pinned"));
|
||||
this.update();
|
||||
},
|
||||
|
||||
@@ -482,7 +518,9 @@ var gZenBrowserManagerSidebar = {
|
||||
if (browser) {
|
||||
browser.remove();
|
||||
}
|
||||
this._closeSidebarPanel();
|
||||
this._currentPanel = null;
|
||||
this._lastOpenedPanel = null;
|
||||
this.update();
|
||||
Services.prefs.setStringPref("zen.sidebar.data", JSON.stringify(data));
|
||||
},
|
||||
|
||||
@@ -490,6 +528,8 @@ var gZenBrowserManagerSidebar = {
|
||||
let browser = this._getBrowserById(this.contextTab);
|
||||
browser.remove();
|
||||
this._closeSidebarPanel();
|
||||
this.close();
|
||||
this._lastOpenedPanel = null;
|
||||
},
|
||||
|
||||
insertIntoContextMenu() {
|
||||
|
@@ -26,12 +26,26 @@ var gZenUIManager = {
|
||||
var gZenVerticalTabsManager = {
|
||||
init() {
|
||||
//Services.prefs.addObserver('zen.view.compact', this._updateEvent.bind(this));
|
||||
//Services.prefs.addObserver('zen.view.sidebar-expanded', this._updateEvent.bind(this));
|
||||
Services.prefs.addObserver('zen.view.sidebar-expanded', this._updateEvent.bind(this));
|
||||
Services.prefs.addObserver('zen.view.sidebar-expanded.max-width', this._updateEvent.bind(this));
|
||||
this._updateMaxWidth();
|
||||
},
|
||||
|
||||
//_updateEvent() {
|
||||
// this._updateExpandButton();
|
||||
//},
|
||||
_updateEvent() {
|
||||
this._updateMaxWidth();
|
||||
},
|
||||
|
||||
_updateMaxWidth() {
|
||||
let isCompactMode = Services.prefs.getBoolPref('zen.view.compact');
|
||||
let expanded = this.expanded;
|
||||
let maxWidth = Services.prefs.getIntPref('zen.view.sidebar-expanded.max-width');
|
||||
let toolbox = document.getElementById('navigator-toolbox');
|
||||
if (expanded && !isCompactMode) {
|
||||
toolbox.style.maxWidth = `${maxWidth}px`;
|
||||
} else {
|
||||
toolbox.style.removeProperty('maxWidth');
|
||||
}
|
||||
},
|
||||
|
||||
get expanded() {
|
||||
return Services.prefs.getBoolPref('zen.view.sidebar-expanded');
|
||||
@@ -59,9 +73,5 @@ var gZenVerticalTabsManager = {
|
||||
toggleExpand() {
|
||||
let expanded = !this.expanded;
|
||||
Services.prefs.setBoolPref('zen.view.sidebar-expanded', expanded);
|
||||
|
||||
let toolbox = document.getElementById('navigator-toolbox');
|
||||
toolbox.removeAttribute('width');
|
||||
toolbox.style.removeProperty('width');
|
||||
},
|
||||
};
|
||||
|
@@ -18,6 +18,7 @@ var gZenViewSplitter = {
|
||||
init() {
|
||||
Services.prefs.setBoolPref("zen.splitView.working", false);
|
||||
window.addEventListener("TabClose", this);
|
||||
this.insertIntoContextMenu();
|
||||
console.log("ZenViewSplitter initialized");
|
||||
},
|
||||
|
||||
@@ -28,6 +29,18 @@ var gZenViewSplitter = {
|
||||
}
|
||||
},
|
||||
|
||||
insertIntoContextMenu() {
|
||||
const sibling = document.getElementById("context-stripOnShareLink");
|
||||
const menuitem = document.createXULElement("menuitem");
|
||||
menuitem.setAttribute("id", "context-zenSplitLink");
|
||||
menuitem.setAttribute("hidden", "true");
|
||||
menuitem.setAttribute("oncommand", "gZenViewSplitter.contextSplitLink();");
|
||||
menuitem.setAttribute("data-l10n-id", "zen-split-link");
|
||||
const separator = document.createXULElement("menuseparator");
|
||||
sibling.insertAdjacentElement("afterend", menuitem);
|
||||
sibling.insertAdjacentElement("afterend", separator);
|
||||
},
|
||||
|
||||
get tabBrowserPanel() {
|
||||
if (!this._tabBrowserPanel) {
|
||||
this._tabBrowserPanel = document.getElementById("tabbrowser-tabpanels");
|
||||
@@ -75,6 +88,13 @@ var gZenViewSplitter = {
|
||||
this._showSplitView(lastTab);
|
||||
},
|
||||
|
||||
contextSplitLink() {
|
||||
const url = gContextMenu.linkURL || gContextMenu.target.ownerDocument.location.href;
|
||||
const tab = gBrowser.selectedTab;
|
||||
const newTab = gZenUIManager.openAndChangeToTab(url);
|
||||
this.splitTabs([tab, newTab]);
|
||||
},
|
||||
|
||||
onLocationChange(browser) {
|
||||
let tab = gBrowser.getTabForBrowser(browser);
|
||||
this.updateSplitViewButton(!(tab && tab._zenSplitted));
|
||||
@@ -89,6 +109,17 @@ var gZenViewSplitter = {
|
||||
if (tabs.length < 2) {
|
||||
return;
|
||||
}
|
||||
// Check if any tab is already split
|
||||
for (const tab of tabs) {
|
||||
if (tab._zenSplitted) {
|
||||
let index = this._data.findIndex((group) => group.tabs.includes(tab));
|
||||
if (index < 0) {
|
||||
return;
|
||||
}
|
||||
this._showSplitView(tab);
|
||||
return;
|
||||
}
|
||||
}
|
||||
this._data.push({
|
||||
tabs,
|
||||
gridType: "grid",
|
||||
@@ -134,6 +165,8 @@ var gZenViewSplitter = {
|
||||
this.tabBrowserPanel.style.gridTemplateAreas = "";
|
||||
Services.prefs.setBoolPref("zen.splitView.working", false);
|
||||
modifyDecks(this._data[this.currentView].tabs, false);
|
||||
// console.log("Setting the active tab to be active", gBrowser.selectedTab);
|
||||
gBrowser.selectedTab.linkedBrowser.docShellIsActive = true; // Make sure the active tab is active
|
||||
this.currentView = -1;
|
||||
if (!splitData) {
|
||||
return;
|
||||
|
@@ -5,12 +5,12 @@ var ZenWorkspaces = {
|
||||
if (docElement.getAttribute("chromehidden").includes("toolbar")
|
||||
|| docElement.getAttribute("chromehidden").includes("menubar")
|
||||
|| docElement.hasAttribute("privatebrowsingmode")) {
|
||||
console.log("!!! ZenWorkspaces is disabled in hidden windows !!!");
|
||||
console.warn("ZenWorkspaces: !!! ZenWorkspaces is disabled in hidden windows !!!");
|
||||
return; // We are in a hidden window, don't initialize ZenWorkspaces
|
||||
}
|
||||
console.log("Initializing ZenWorkspaces...");
|
||||
console.log("ZenWorkspaces: Initializing ZenWorkspaces...");
|
||||
await this.initializeWorkspaces();
|
||||
console.log("ZenWorkspaces initialized");
|
||||
console.log("ZenWorkspaces: ZenWorkspaces initialized");
|
||||
},
|
||||
|
||||
get workspaceEnabled() {
|
||||
@@ -57,7 +57,6 @@ var ZenWorkspaces = {
|
||||
}
|
||||
if (this.workspaceEnabled) {
|
||||
let workspaces = await this._workspaces();
|
||||
console.log("Workspaces loaded", workspaces);
|
||||
if (workspaces.workspaces.length === 0) {
|
||||
await this.createAndSaveWorkspace("Default Workspace", true);
|
||||
} else {
|
||||
@@ -101,13 +100,14 @@ var ZenWorkspaces = {
|
||||
json.workspaces = [];
|
||||
}
|
||||
json.workspaces.push(workspaceData);
|
||||
console.log("Saving workspace", workspaceData);
|
||||
console.log("ZenWorkspaces: Saving workspace", workspaceData);
|
||||
await IOUtils.writeJSON(this._storeFile, json);
|
||||
this._workspaceCache = null;
|
||||
},
|
||||
|
||||
async removeWorkspace(windowID) {
|
||||
let json = await this._workspaces();
|
||||
console.log("ZenWorkspaces: Removing workspace", windowID);
|
||||
await this.changeWorkspace(json.workspaces.find(workspace => workspace.uuid !== windowID));
|
||||
this._deleteAllTabsInWorkspace(windowID);
|
||||
json.workspaces = json.workspaces.filter(workspace => workspace.uuid !== windowID);
|
||||
@@ -137,8 +137,12 @@ var ZenWorkspaces = {
|
||||
parentPanel.goBack();
|
||||
},
|
||||
|
||||
workspaceHasIcon(workspace) {
|
||||
return typeof workspace.icon !== "undefined" && workspace.icon !== "";
|
||||
},
|
||||
|
||||
getWorkspaceIcon(workspace) {
|
||||
if (typeof workspace.icon !== "undefined") {
|
||||
if (this.workspaceHasIcon(workspace)) {
|
||||
return workspace.icon;
|
||||
}
|
||||
return workspace.name[0].toUpperCase();
|
||||
@@ -152,7 +156,7 @@ var ZenWorkspaces = {
|
||||
element.className = "subviewbutton";
|
||||
element.setAttribute("tooltiptext", workspace.name);
|
||||
element.setAttribute("zen-workspace-id", workspace.uuid);
|
||||
element.setAttribute("context", "zenWorkspaceActionsMenu");
|
||||
//element.setAttribute("context", "zenWorkspaceActionsMenu");
|
||||
let childs = window.MozXULElement.parseXULToFragment(`
|
||||
<div class="zen-workspace-icon">
|
||||
${this.getWorkspaceIcon(workspace)}
|
||||
@@ -164,13 +168,14 @@ var ZenWorkspaces = {
|
||||
<image class="toolbarbutton-icon" id="zen-workspace-actions-menu-icon"></image>
|
||||
</toolbarbutton>
|
||||
`);
|
||||
childs.querySelector(".zen-workspace-actions").addEventListener("command", (event) => {
|
||||
childs.querySelector(".zen-workspace-actions").addEventListener("command", ((event) => {
|
||||
let button = event.target;
|
||||
this._contextMenuId = button.closest("toolbarbutton[zen-workspace-id]").getAttribute("zen-workspace-id");
|
||||
const popup = button.ownerDocument.getElementById(
|
||||
"zenWorkspaceActionsMenu"
|
||||
);
|
||||
popup.openPopup(button, "after_end");
|
||||
});
|
||||
}).bind(this));
|
||||
element.appendChild(childs);
|
||||
element.onclick = (async () => {
|
||||
if (event.target.closest(".zen-workspace-actions")) {
|
||||
@@ -252,7 +257,7 @@ var ZenWorkspaces = {
|
||||
${activeWorkspace.name}
|
||||
</div>
|
||||
`;
|
||||
if (typeof activeWorkspace.icon === "undefined") {
|
||||
if (!this.workspaceHasIcon(activeWorkspace)) {
|
||||
button.querySelector(".zen-workspace-sidebar-icon").setAttribute("no-icon", "true");
|
||||
}
|
||||
}
|
||||
@@ -267,7 +272,11 @@ var ZenWorkspaces = {
|
||||
_deleteAllTabsInWorkspace(workspaceID) {
|
||||
for (let tab of gBrowser.tabs) {
|
||||
if (tab.getAttribute("zen-workspace-id") === workspaceID) {
|
||||
gBrowser.removeTab(tab);
|
||||
gBrowser.removeTab(tab, {
|
||||
animate: true,
|
||||
skipSessionStore: true,
|
||||
closeWindowWithLastTab: false,
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -323,22 +332,14 @@ var ZenWorkspaces = {
|
||||
return;
|
||||
}
|
||||
let firstTab = undefined;
|
||||
// Get the number of tabs that are hidden before we start hiding them
|
||||
let numShownTabs = gBrowser.tabs.reduce((acc, tab) => {
|
||||
return (tab.getAttribute("zen-workspace-id") === window.uuid) ? acc + 1 : acc;
|
||||
}, 0);
|
||||
let workspaces = await this._workspaces();
|
||||
for (let workspace of workspaces.workspaces) {
|
||||
workspace.used = workspace.uuid === window.uuid;
|
||||
}
|
||||
this.unsafeSaveWorkspaces(workspaces);
|
||||
if (numShownTabs === gBrowser.tabs.length-1) {
|
||||
// If all tabs are hidden, we need to create a new tab
|
||||
// to show the workspace
|
||||
this._createNewTabForWorkspace(window);
|
||||
}
|
||||
console.log("ZenWorkspaces: Changing workspace to", window.uuid);
|
||||
for (let tab of gBrowser.tabs) {
|
||||
if (tab.getAttribute("zen-workspace-id") === window.uuid) {
|
||||
if (tab.getAttribute("zen-workspace-id") === window.uuid && !tab.pinned) {
|
||||
if (!firstTab) {
|
||||
firstTab = tab;
|
||||
gBrowser.selectedTab = firstTab;
|
||||
@@ -346,6 +347,9 @@ var ZenWorkspaces = {
|
||||
gBrowser.showTab(tab);
|
||||
}
|
||||
}
|
||||
if (typeof firstTab === "undefined") {
|
||||
this._createNewTabForWorkspace(window);
|
||||
}
|
||||
for (let tab of gBrowser.tabs) {
|
||||
if (tab.getAttribute("zen-workspace-id") !== window.uuid) {
|
||||
gBrowser.hideTab(tab);
|
||||
@@ -394,17 +398,12 @@ var ZenWorkspaces = {
|
||||
// Context menu management
|
||||
|
||||
_contextMenuId: null,
|
||||
async updateContextMenu(event) {
|
||||
let target = event.target;
|
||||
let workspace = target.closest("[zen-workspace-id]");
|
||||
if (!workspace) {
|
||||
return;
|
||||
}
|
||||
_contextMenuId = workspace.getAttribute("zen-workspace-id");
|
||||
document.querySelector(`#PanelUI-zen-workspaces [zen-workspace-id="${_contextMenuId}"] .zen-workspace-actions`).setAttribute("active", "true");
|
||||
async updateContextMenu(_) {
|
||||
console.assert(this._contextMenuId, "No context menu ID set");
|
||||
document.querySelector(`#PanelUI-zen-workspaces [zen-workspace-id="${this._contextMenuId}"] .zen-workspace-actions`).setAttribute("active", "true");
|
||||
const workspaces = await this._workspaces();
|
||||
let deleteMenuItem = document.getElementById("context_zenDeleteWorkspace");
|
||||
if (workspaces.workspaces.length <= 1) {
|
||||
if (workspaces.workspaces.length <= 1 || workspaces.workspaces.find(workspace => workspace.uuid === this._contextMenuId).default) {
|
||||
deleteMenuItem.setAttribute("disabled", "true");
|
||||
} else {
|
||||
deleteMenuItem.removeAttribute("disabled");
|
||||
@@ -412,7 +411,7 @@ var ZenWorkspaces = {
|
||||
},
|
||||
|
||||
onContextMenuClose() {
|
||||
let target = document.querySelector(`#PanelUI-zen-workspaces [zen-workspace-id="${_contextMenuId}"] .zen-workspace-actions`);
|
||||
let target = document.querySelector(`#PanelUI-zen-workspaces [zen-workspace-id="${this._contextMenuId}"] .zen-workspace-actions`);
|
||||
if (target) {
|
||||
target.removeAttribute("active");
|
||||
}
|
||||
@@ -420,7 +419,7 @@ var ZenWorkspaces = {
|
||||
},
|
||||
|
||||
async contextDelete() {
|
||||
await this.removeWorkspace(_contextMenuId);
|
||||
await this.removeWorkspace(this._contextMenuId);
|
||||
}
|
||||
};
|
||||
|
||||
|
@@ -1,7 +1,16 @@
|
||||
diff --git a/browser/base/content/navigator-toolbox.inc.xhtml b/browser/base/content/navigator-toolbox.inc.xhtml
|
||||
index 390a1300a1213af2b411ba09c67e3c25750ee6c3..7c80c54dd43b5414bf5ea9101d53431c0b4a140b 100644
|
||||
index 390a1300a1213af2b411ba09c67e3c25750ee6c3..253d7abfcc1ade419c8f70289719cdc53898cab4 100644
|
||||
--- a/browser/base/content/navigator-toolbox.inc.xhtml
|
||||
+++ b/browser/base/content/navigator-toolbox.inc.xhtml
|
||||
@@ -2,7 +2,7 @@
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
-<toolbox id="navigator-toolbox">
|
||||
+<toolbox id="navigator-toolbox" persist="width style">
|
||||
|
||||
<vbox id="titlebar">
|
||||
<!-- Menu -->
|
||||
@@ -32,10 +32,11 @@
|
||||
|
||||
<hbox class="titlebar-spacer" type="pre-tabs"/>
|
||||
|
@@ -1,8 +1,8 @@
|
||||
diff --git a/browser/base/content/nsContextMenu.js b/browser/base/content/nsContextMenu.js
|
||||
index b5c8dd44daaab18397cf01d0ef9f5288f5113925..f59b494dc287edaa148f726902244224330d81c5 100644
|
||||
index b5c8dd44daaab18397cf01d0ef9f5288f5113925..8840b8171d5992da0a2f6216d8da9e1ec6dc1e93 100644
|
||||
--- a/browser/base/content/nsContextMenu.js
|
||||
+++ b/browser/base/content/nsContextMenu.js
|
||||
@@ -1047,6 +1047,11 @@ class nsContextMenu {
|
||||
@@ -1047,6 +1047,13 @@ class nsContextMenu {
|
||||
!this.isSecureAboutPage()
|
||||
);
|
||||
|
||||
@@ -10,6 +10,8 @@ index b5c8dd44daaab18397cf01d0ef9f5288f5113925..f59b494dc287edaa148f726902244224
|
||||
+ "context-zenAddToWebPanel",
|
||||
+ this.onLink && !this.onMailtoLink && !this.onTelLink
|
||||
+ );
|
||||
+
|
||||
+ this.showItem("context-zenSplitLink", this.onLink && !this.onMailtoLink && !this.onTelLink);
|
||||
+
|
||||
let copyLinkSeparator = document.getElementById("context-sep-copylink");
|
||||
// Show "Copy Link", "Copy" and "Copy Clean Link" with no divider, and "copy link" and "Send link to Device" with no divider between.
|
||||
|
@@ -1,2 +1,3 @@
|
||||
<link rel="localization" href="browser/zen-web-side-panels.ftl"/>
|
||||
<link rel="localization" href="browser/zen-workspaces.ftl"/>
|
||||
<link rel="localization" href="browser/zen-split-view.ftl"/>
|
||||
|
@@ -127,7 +127,7 @@
|
||||
</panel>
|
||||
|
||||
<menupopup id="zenWorkspaceActionsMenu"
|
||||
onpopupshowing="ZenWorkspaces.updateContextMenu(event);"
|
||||
onpopupshowing="ZenWorkspaces.updateContextMenu(this);"
|
||||
onpopuphidden="ZenWorkspaces.onContextMenuClose();">
|
||||
<menuitem id="context_zenDeleteWorkspace" oncommand="ZenWorkspaces.contextDelete();" data-l10n-id="zen-workspaces-panel-context-delete"/>
|
||||
</menupopup>
|
@@ -1,5 +1,5 @@
|
||||
<box id="zen-sidebar-web-panel-wrapper">
|
||||
<box id="zen-sidebar-web-panel" class="chromeclass-extrachrome" hidden="true">
|
||||
<box id="zen-sidebar-web-panel" class="chromeclass-extrachrome" hidden="true" persist="pinned style hidden">
|
||||
<toolbar mode="icons" flex="1" id="zen-sidebar-web-header">
|
||||
<hbox>
|
||||
<toolbarbutton id="zen-sidebar-web-panel-back" class="toolbarbutton-1 chromeclass-toolbar-additional" oncommand="gZenBrowserManagerSidebar.back();"/>
|
||||
@@ -15,6 +15,10 @@
|
||||
</hbox>
|
||||
</toolbar>
|
||||
<vbox id="zen-sidebar-web-panel-browser-containers">
|
||||
<vbox id="zen-sidebar-introduction-panel" hidden="true">
|
||||
<html:h1 data-l10n-id="zen-sidebar-introduction-title"/>
|
||||
<html:p data-l10n-id="zen-sidebar-introduction-description"/>
|
||||
</vbox>
|
||||
</vbox>
|
||||
<toolbar mode="icons" flex="1" id="zen-sidebar-panels-wrapper">
|
||||
<toolbar mode="icons" flex="1" id="zen-sidebar-panels-sites">
|
||||
|
@@ -106,8 +106,7 @@ var ZenThemeModifier = {
|
||||
console.log("ZenThemeModifier: init browser layout");
|
||||
const kNavbarItems = [
|
||||
"nav-bar",
|
||||
"PersonalToolbar",
|
||||
"tab-notification-deck-template"
|
||||
"PersonalToolbar"
|
||||
];
|
||||
const kSeparatorId = "zen-website-and-native-separator";
|
||||
const kNewContainerId = "zen-appcontent-navbar-container";
|
||||
@@ -123,10 +122,6 @@ var ZenThemeModifier = {
|
||||
separator.id = kSeparatorId;
|
||||
newContainer.appendChild(separator);
|
||||
|
||||
// move the security button to the right
|
||||
const securityButton = document.getElementById("tracking-protection-icon-container");
|
||||
document.getElementsByClassName("urlbar-input-container")[0].insertBefore(securityButton, document.getElementById("page-action-buttons"));
|
||||
|
||||
gZenVerticalTabsManager.init();
|
||||
|
||||
this._updateZenAvatar();
|
||||
|
@@ -1,5 +1,5 @@
|
||||
diff --git a/browser/components/customizableui/CustomizeMode.sys.mjs b/browser/components/customizableui/CustomizeMode.sys.mjs
|
||||
index 7b4ee373be2cb3e11b480b2c0ad59cae1c43fc07..0f89293bc568fa994fc6f251478ec3dfac5ead39 100644
|
||||
index 41f347130e754ad0ee3416c1a3881211c4d2f777..9f906fd5f11731025abdf55eb5e60a824f8dd81f 100644
|
||||
--- a/browser/components/customizableui/CustomizeMode.sys.mjs
|
||||
+++ b/browser/components/customizableui/CustomizeMode.sys.mjs
|
||||
@@ -354,7 +354,7 @@ CustomizeMode.prototype = {
|
||||
@@ -7,7 +7,7 @@ index 7b4ee373be2cb3e11b480b2c0ad59cae1c43fc07..0f89293bc568fa994fc6f251478ec3df
|
||||
|
||||
let customizer = document.getElementById("customization-container");
|
||||
- let browser = document.getElementById("browser");
|
||||
+ let browser = document.getElementById("tabbrowser-tabbox");
|
||||
+ let browser = document.getElementById("tabbrowser-tabbox"); // ZEN: This fixes customizing mode!!! Dont remove it
|
||||
browser.hidden = true;
|
||||
customizer.hidden = false;
|
||||
|
||||
@@ -16,7 +16,7 @@ index 7b4ee373be2cb3e11b480b2c0ad59cae1c43fc07..0f89293bc568fa994fc6f251478ec3df
|
||||
|
||||
let customizer = document.getElementById("customization-container");
|
||||
- let browser = document.getElementById("browser");
|
||||
+ let browser = document.getElementById("tabbrowser-tabbox");
|
||||
+ let browser = document.getElementById("tabbrowser-tabbox"); // ZEN: This fixes customizing mode!!! Dont remove it
|
||||
customizer.hidden = true;
|
||||
browser.hidden = false;
|
||||
|
||||
|
@@ -64,11 +64,21 @@ Preferences.addAll([
|
||||
type: "bool",
|
||||
default: true,
|
||||
},
|
||||
{
|
||||
id: "zen.sidebar.close-on-blur",
|
||||
type: "bool",
|
||||
default: true,
|
||||
},
|
||||
{
|
||||
id: "zen.view.compact",
|
||||
type: "bool",
|
||||
default: false,
|
||||
},
|
||||
{
|
||||
id: "zen.view.compact.hide-toolbar",
|
||||
type: "bool",
|
||||
default: false,
|
||||
},
|
||||
{
|
||||
id: "zen.workspaces.enabled",
|
||||
type: "bool",
|
||||
@@ -88,5 +98,10 @@ Preferences.addAll([
|
||||
id: "zen.theme.pill-button",
|
||||
type: "bool",
|
||||
default: true,
|
||||
},
|
||||
{
|
||||
id: "zen.theme.floating-urlbar",
|
||||
type: "bool",
|
||||
default: false,
|
||||
}
|
||||
]);
|
||||
|
@@ -21,16 +21,14 @@
|
||||
<label><html:h2 data-l10n-id="zen-look-and-feel-compact-view-header"/></label>
|
||||
<description class="description-deemphasized" data-l10n-id="zen-look-and-feel-compact-view-description" />
|
||||
|
||||
<checkbox id="zenLooksAndFeelUseThemedToolbar"
|
||||
<checkbox id="zenLooksAndFeelShowCompactView"
|
||||
data-l10n-id="zen-look-and-feel-compact-view-enabled"
|
||||
preference="zen.view.compact"/>
|
||||
|
||||
<label><html:h2 data-l10n-id="zen-look-and-feel-buttons-header"/></label>
|
||||
<description class="description-deemphasized" data-l10n-id="zen-look-and-feel-buttons-description" />
|
||||
|
||||
<checkbox id="zenLooksAndFeelPilledButtons"
|
||||
data-l10n-id="zen-look-and-feel-pilled-buttons"
|
||||
preference="zen.theme.pill-button"/>
|
||||
<vbox class="indent">
|
||||
<checkbox id="zenLooksAndFeelShowCompactViewToolbar"
|
||||
data-l10n-id="zen-look-and-feel-compact-view-top-toolbar"
|
||||
preference="zen.view.compact.hide-toolbar"/>
|
||||
</vbox>
|
||||
</groupbox>
|
||||
|
||||
<hbox id="zenSidePanelsCategory"
|
||||
@@ -47,6 +45,11 @@
|
||||
<checkbox id="zenLooksAndFeelUseThemedToolbar"
|
||||
data-l10n-id="zen-side-panels-enabled"
|
||||
preference="zen.sidebar.enabled"/>
|
||||
<hbox class="indent">
|
||||
<checkbox id="zenLooksAndFeelSidebarCloseOnBlur"
|
||||
data-l10n-id="zen-side-panels-close-on-blur"
|
||||
preference="zen.sidebar.close-on-blur"/>
|
||||
</hbox>
|
||||
</groupbox>
|
||||
|
||||
<hbox id="zenVerticalTabsCategory"
|
||||
@@ -68,4 +71,27 @@
|
||||
preference="zen.view.sidebar-expanded"/>
|
||||
</groupbox>
|
||||
|
||||
<hbox id="zenThemeCategory"
|
||||
class="subcategory"
|
||||
hidden="true"
|
||||
data-category="paneZenLooks">
|
||||
<html:h1 data-l10n-id="pane-zen-theme-title"/>
|
||||
</hbox>
|
||||
|
||||
<groupbox id="zenThemeGroup" data-category="paneZenLooks" hidden="true" class="highlighting-group">
|
||||
<label><html:h2 data-l10n-id="zen-look-and-feel-buttons-header"/></label>
|
||||
<description class="description-deemphasized" data-l10n-id="zen-look-and-feel-buttons-description" />
|
||||
|
||||
<checkbox id="zenLooksAndFeelPilledButtons"
|
||||
data-l10n-id="zen-look-and-feel-pilled-buttons"
|
||||
preference="zen.theme.pill-button"/>
|
||||
|
||||
<label><html:h2 data-l10n-id="zen-look-and-feel-urlbar-header"/></label>
|
||||
<description class="description-deemphasized" data-l10n-id="zen-look-and-feel-urlbar-description" />
|
||||
|
||||
<checkbox id="zenLooksAndFeelFloatingUrlbar"
|
||||
data-l10n-id="zen-look-and-feel-floating-urlbar"
|
||||
preference="zen.theme.floating-urlbar"/>
|
||||
</groupbox>
|
||||
|
||||
</html:template>
|
||||
|
@@ -1,5 +1,5 @@
|
||||
diff --git a/browser/components/tabbrowser/content/tabs.js b/browser/components/tabbrowser/content/tabs.js
|
||||
index 3b97732d8035f07a2308f76f235702c70a5fa388..bed86f3014a239b4e7d50504d4b0bf457da3500c 100644
|
||||
index 3b97732d8035f07a2308f76f235702c70a5fa388..edbc1ad66a84fd17b1674ff7852cdf01bef0c21b 100644
|
||||
--- a/browser/components/tabbrowser/content/tabs.js
|
||||
+++ b/browser/components/tabbrowser/content/tabs.js
|
||||
@@ -552,19 +552,36 @@
|
||||
@@ -130,7 +130,23 @@ index 3b97732d8035f07a2308f76f235702c70a5fa388..bed86f3014a239b4e7d50504d4b0bf45
|
||||
for (let tab of movingTabs) {
|
||||
tab.toggleAttribute("tabdrop-samewindow", true);
|
||||
tab.style.transform = "translateX(" + newTranslateX + "px)";
|
||||
@@ -1144,10 +1179,13 @@
|
||||
@@ -1081,6 +1116,15 @@
|
||||
return this._allTabs;
|
||||
}
|
||||
let children = Array.from(this.arrowScrollbox.children);
|
||||
+ // Zen: We also need to exclude subgroups
|
||||
+ // Zen: For example: tab-group(tab1, tab2), tab3, tab-group(tab4)
|
||||
+ // Zen: In this case, we need to get [tab1, tab2, tab3, tab4]
|
||||
+ // Zen: NOTE: There should be no tab-group inside of a tab-group
|
||||
+ for (let i = 0; i < children.length; i++) {
|
||||
+ if (children[i].classList.contains("zen-tab-group")) {
|
||||
+ children.splice(i, 1, ...children[i].children);
|
||||
+ }
|
||||
+ }
|
||||
children.pop();
|
||||
this._allTabs = children;
|
||||
return children;
|
||||
@@ -1144,10 +1188,13 @@
|
||||
}
|
||||
|
||||
_initializeArrowScrollbox() {
|
||||
@@ -144,7 +160,7 @@ index 3b97732d8035f07a2308f76f235702c70a5fa388..bed86f3014a239b4e7d50504d4b0bf45
|
||||
// Ignore underflow events:
|
||||
// - from nested scrollable elements
|
||||
// - for vertical orientation
|
||||
@@ -1471,11 +1509,11 @@
|
||||
@@ -1471,11 +1518,11 @@
|
||||
for (let i = numPinned - 1; i >= 0; i--) {
|
||||
let tab = tabs[i];
|
||||
width += layoutData.pinnedTabWidth;
|
||||
@@ -161,7 +177,7 @@ index 3b97732d8035f07a2308f76f235702c70a5fa388..bed86f3014a239b4e7d50504d4b0bf45
|
||||
tab._pinnedUnscrollable = true;
|
||||
}
|
||||
this.style.setProperty(
|
||||
@@ -1510,19 +1548,30 @@
|
||||
@@ -1510,19 +1557,30 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -201,7 +217,7 @@ index 3b97732d8035f07a2308f76f235702c70a5fa388..bed86f3014a239b4e7d50504d4b0bf45
|
||||
|
||||
let pinned = draggedTab.pinned;
|
||||
let numPinned = gBrowser._numPinnedTabs;
|
||||
@@ -1531,36 +1580,39 @@
|
||||
@@ -1531,36 +1589,39 @@
|
||||
pinned ? numPinned : undefined
|
||||
);
|
||||
|
||||
@@ -252,7 +268,7 @@ index 3b97732d8035f07a2308f76f235702c70a5fa388..bed86f3014a239b4e7d50504d4b0bf45
|
||||
}
|
||||
|
||||
draggedTab._dragData.translateX = translateX;
|
||||
@@ -1593,11 +1645,11 @@
|
||||
@@ -1593,11 +1654,11 @@
|
||||
if (tabs[mid] == draggedTab && ++mid > high) {
|
||||
break;
|
||||
}
|
||||
@@ -266,7 +282,7 @@ index 3b97732d8035f07a2308f76f235702c70a5fa388..bed86f3014a239b4e7d50504d4b0bf45
|
||||
tabCenter
|
||||
) {
|
||||
low = mid + 1;
|
||||
@@ -1620,16 +1672,16 @@
|
||||
@@ -1620,16 +1681,16 @@
|
||||
for (let tab of tabs) {
|
||||
if (tab != draggedTab) {
|
||||
let shift = getTabShift(tab, newIndex);
|
||||
@@ -286,7 +302,7 @@ index 3b97732d8035f07a2308f76f235702c70a5fa388..bed86f3014a239b4e7d50504d4b0bf45
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -1701,9 +1753,9 @@
|
||||
@@ -1701,9 +1762,9 @@
|
||||
|
||||
// Slide the relevant tabs to their new position.
|
||||
for (let t of this._getVisibleTabs()) {
|
||||
|
@@ -4,45 +4,121 @@ License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
:root {
|
||||
--noise: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEEAAABBCAMAAAC5KTl3AAAAgVBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABtFS1lAAAAK3RSTlMWi3QSa1uQOKBWCTwcb6V4gWInTWYOqQSGfa6XLyszmyABlFFJXySxQ0BGn2PQBgAAC4NJREFUWMMV1kWO5UAQRdFk5kwzs/33v8Cunr7ZUehKAdaRUAse99ozDjF5BqswrPKm7btzJ2tRziN3rMYXC236humIV5Our7nHWnVdFOBojW2XVnkeu1IZHNJH5OPHj9TjgVxBGBwAAmp60WoA1gBBvg3XMFhxUQ4KuLqx0CritYZPPXinsOqB7I76+OHaZlPzLEcftrqOlOwjeXvuEuH6t6emkaofgVUDIb4fEZB6CmRAeFCTq11lxbAgUyx4rXkqlH9I4bTUDRRVD1xjbqb9HyUBn7rhtr1x+x9Y0e3BdX31/loYvZaLxqnjbRuokz+pPG7WebnSNKE3yE6Tka4aDEDMVYr6Neq126c+ZR2nzzm3yyiC7PGWG/1uueqZudrVGYNdsgOMDvt1cI8CXu63QIcPvYNY8z870WwYazTS7DqpDEknZqS0AFXObWUxTaw0q5pnHlq4oQImakpLfJkmErdvAfhsc7lod0DVT4tuob25C0tQjzdiFObCz7U7eaKGP3s6yQVgQ/y+q+nY6K5dfV75iXzcNlGIP38aj22sVwtWWKMRb7B5HoHPaBvI1Ve5TSXATi66vV6utxsV+aZNFu+93VvlrG/oj8Wp67YT8l+Oq6PjwdGatFm7SEAP13kE0y9CEcf9qhtEWCMIq5AGq71moEAI9vrmFcmO8+7ZyDnmRN/VUaFkM2ce8KuBGFzDMmY6myLfQGra2ofgHhbJRXuRDZ4H+HmliWBHXQ0ysLGfv6FetbxtxzRgIZWjIsGVFl5imPXeyvVyayNek+dSWzjXd4t310YBdaF8sXeKs481PjsXbAtIru2+wHbv3GVh3sQY6Dnu6pF3pZ714VYdDi9A5GkXR/6xgaZN/tpQ8wVV3zeBuB+njoBNE4wjc+uA523ysXGd/P2sntmOb3OdHNWP5OVrxD3eJHdtH8QVkEIAqCor3hReR96yqt6PkTQfenllooQ447h6tOrnnuzwA8fMpq+jqg1oW8fTYYIncAYpVeTvkEFr/khQSbjoE8ykx9049OkE5MQEO9lC24tT7DwThQgf4Fhf8nGgAo3GYaON3crODpOr2pu5dBABz69t7F5yJBBo+r6QJdeLDWEoO7r1tceR3haA7gc7eZrCvpxSXXeKpo4P+hRixo9DeOFbqQVjKyWfBg9pnrEZKzK7R437YTTwhfoySG/YOCt3fs4aXlU3FjKortqQ6XyXaD0+Y/8VoqpyU9TRW45eN4oBxAH8Y/jLnNXfELJW+/p/MgO9Z+mBli2qqAP7dV/Arc2+YZRZwtBW8/p32y5ZsEuCS4O5AAgfR7Dde7zhiGfgvurQkfAXIrUG61rmxc2EZo18ph4vaWZI+QM0JdsbNlBJlPlwf9uguujQJy0j7TgTHdtRnjybTg55Hkk9S6l2rpYahumSewKHVosa1bh2Y6r9JGkdKvIDN/eeAwScrfjoLkCxWJuFZQ53FNP5w9XbQd1HhgHcVB/0fATG3sUUid1RTfc2+7pZVKldFSsaEK0v4k90tapQOk2HIbMhaJQtrUEL5+3sDanh8sOpbYRoQoqXWu6SQcUTQL9jzOrXNPWCJwXge4U7tlU1hkF012cAmvp8llQxf1IEMcw14pURxVOWATz4ITnYQjuF+vDXg5hgoiqXzO6mS91FQUBheURHIJxUeU1i3P0WOMpsm7vFYk0JJi/Ev+X3FwYD69cARPuP5GIc0PxoAFjcLRbNur0iMTrQmBBNYJ2ngU4x7SWfdTRl52Bqv7LmYW3C1CyTCPTHeWWIAM/Whm32COHsaj+2UQ739XB9t6NV0o9E9b7CW3XNiXzi9e0KiE+3rntukdIDBWrU2jsfQWuyFJRANxq8StHVv1JPy2C3Byco7qdNbASrnNXZ8G0L/Wp/pif4Ai9aEZ9Bb+TRx+REBdGlkF/s0dUdMSMr+6YCbuGxqPWdzcdqutvqkBzCksFcwAtjf55TeuH79M6AQa7r5PLeXxMFIlQKrXP9VJ275WGX+ptpf+tvTDBsecPnYQAlAWrVbRVJ7K2pRHwIjtSpbX96Y/lbKk6ZWXlBmh15r8yAWQsYxXgBOXYMAfHnUXF+rDqnB8bXDRtAn7bCziIqetSboK3NexMePvsCRLvmsoREA+kH8j4HWFpnNEaWgOmR7xyXHfTaz3slHc/YA6H6tl/L8d5tPcIwwD0tjvRaq3Y5BmYBSDClpv0VIX4s8D0XK3sPdpAb94HjPLkgboEz9EdZATW6ZdcmQvtKUwoWw+nAVKA7IcdY1UHnvNnIBplKci+knzewLz5/GGnzkGuuGky+0LTjtGBGR85EQICDqKChnm5pH3Z44nnWAk1YRdyu3g7QoFZ0h8jkr2ffjKmi+Qvsp+9GvNGZHmgW+YQAGUw7PPt8IPKbdy432vhKtRJjKWcSqq7helj81o3nfmaxVZ7Sqie8OOBk9WsyTD/ab7fQ5aWwQeJvnH6+ayo4IdIkOSBJjzXkgr+1TPhAx1AXDsxtCCj3TzQTLA1p782f7a8vdgPfwwrXmZxxbqo2h+6Zlo6mcMY4V7cFBOLm17VCvx9Qa2tAnkxEB+KYyQgbgAAnmNDOdOO6y2Cb+lke1MWQc9o+EMdQf7ubIG3Ek8GZ4k1PtGjbhwgOMPp5Em59JMVk/jU8/aF73Xcrd3UBNZyueQu0/xz2aGtZT8CRziOax2BWFXaeDzgZNV7oRtUzFoijoETf3xkAFFk3OMb7SgPh5wxU1+MygDIp9gZChH2qEcpgLh8pBIK90PXT1ZSU+ZExFK4Vm4GL/J7+K13lS5dQkW4HQwl6GX4yLqu8GhGWS2k75yel5IZIfFNdAL0NpKr2N5dQesBnxa42DLgJd6agS1jJsp1mO1dip7PU4P6diLLoTsZ4m3Q0QweiqeFfIGPLgF6v6mSVv6xe85VBD/1Mpe3AurRbcJ9SEo8NszNVy8rOCEexyIFcJRvYAlI/wk2I7r3p60FFLQXoH2q9xri/m41svRPbW0/EnPn2DWsmk0IiPpB60aa3+hiFfWuC8ZvWKEd9LxAk3HcOof6d77RewPaPsGw5lQAHcZN2vx1448u9pLfMLGQ3BSRRjBzRhKt7HcCw/7aqjtCDs5q76b4ZGphxN2th1WeXYlfnozX3ebKtX4Te11hf1tZP1diiGjIDAB1cR4Sb9rcFPC/nBARjlgDxd+tCBb1t91j71xJcgGjT3g/dUFnXXNiDrxkyoHANPk58ACPUa42hj8tgGrhiXOCmygxFZBiT2wyAJTDJ4wJEPmp6JIrDaSWYNqv4xH2wwdSTGYb3E0pXnS39nmLUsqoVZxzSoegqzd0o06wdbTXsaHGL+IF4JtIcXddTcD/dCd8hVf+fWPSV553kjMmMEULLS8HcgmptDO955dLGX78PjiDA6IsTHPm5IA6bc5ha0gaGkoEttXuxU11B2dOJ65/Q08tEF1+Y9cr2Nh/VECfQ33GyvR/gsdN1LuIeLpKMCAF2yRr769g9/4aJLZNRI71m2S91+Kp+Q0zubTcxoG2/6gm1Q79wkMj2XNO2ui7nWw8ULtu27CCvqTGX2PffD+xcwgh/TrOKvGZMM5jRFGDTn4NO/lwnDR/GY/waDZtkWDUPI0O8ztcFVqp6r2ZW+2bvkJ3raptYagFqu95VdIaml2CIp6CKets34x+fH2C+zH4cVFO7vj+6k2FU39PtRhWluYeZ3gDz1TLB9K2v7SD9gJU1qDxoRDrAWcrFGLyndhdtd0505+gEP79adK8fmFCWNYC+ahzVNcRH79E8dA1iqX/N0qq22xcOc20ALxLDspEj4QCFBQMgaIwoKbxr0Bd7Sbws6GiRK6tqoPfpiCle23axejRLyO1I+ahsEpWrzT5ZsCyS5RcY9jMfENFxSnhKsrfW8JHH6/rdQUMfmQPT3Uz9gY0C/pu1yuCnrPUvio0a1qMEosA/EwIzzid7cqsAAAAASUVORK5CYII=');
|
||||
}
|
||||
|
||||
html {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
|
||||
display: flex;
|
||||
position: relative;
|
||||
flex-flow: row nowrap;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
transition: .1s;
|
||||
transition: 2s;
|
||||
-moz-transform: scale(1.1); /* zoom */
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
body {
|
||||
--zen-gradient-color: var(--zen-colors-secondary);
|
||||
--zen-gradient-background: var(--zen-colors-tertiary);
|
||||
--zen-gradient-border: #fbffbe;
|
||||
|
||||
&::before, &::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0; left: 0;
|
||||
z-index: -1;
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
&::before {
|
||||
background: radial-gradient(circle at 50%, var(--zen-gradient-background) 20%, var(--zen-gradient-color) 60%);
|
||||
mask: var(--noise), radial-gradient(circle at 50%, transparent 20%, light-dark(#000, #fff) (60% + 10%));
|
||||
}
|
||||
|
||||
&::after {
|
||||
mask-image: var(--noise), linear-gradient(45deg, #000 0%, transparent 25%, transparent 75%, #000 100%);
|
||||
background: linear-gradient(45deg, #6d6dff 10%, var(--zen-gradient-background) 25%, var(--zen-gradient-background) 75%, var(--zen-gradient-border) 90%);
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
body {
|
||||
--zen-gradient-border: rgb(32, 32, 28);
|
||||
--zen-gradient-color: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
#first-view {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
|
||||
background: var(--zen-dialog-background);
|
||||
width: 55%;
|
||||
position: relative;
|
||||
padding: 5% 4%;
|
||||
overflow: hidden;
|
||||
border-right: 1px solid var(--zen-colors-border);
|
||||
}
|
||||
|
||||
#buttons-footer {
|
||||
margin-top: auto;
|
||||
padding: 10px;
|
||||
width: -moz-available;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
#second-view {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
button {
|
||||
padding: 10px 40px;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
#footer-buttons button {
|
||||
padding: 8px 0;
|
||||
}
|
||||
|
||||
.page {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
align-content: center;
|
||||
width: 100%;
|
||||
|
||||
justify-content: start;
|
||||
width: -moz-available;
|
||||
height: 100%;
|
||||
margin: 32px;
|
||||
}
|
||||
|
||||
.page-split:not([hidden="true"]) {
|
||||
flex-direction: row;
|
||||
margin: auto;
|
||||
justify-content: space-around;
|
||||
h2 {
|
||||
font-size: 17px;
|
||||
font-weight: 600;
|
||||
margin: 35px 0 20px 0;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
#enableFeatures .card {
|
||||
width: auto;
|
||||
.page-split:not([hidden="true"]) {
|
||||
flex-direction: column;
|
||||
margin: auto;
|
||||
justify-content: start;
|
||||
}
|
||||
|
||||
.page-split > div:first-child {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
:not(#theme) .card h3 {
|
||||
@@ -109,6 +185,7 @@ p {
|
||||
display: inline-block;
|
||||
height: 82px;
|
||||
width: 82px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.asset {
|
||||
@@ -181,59 +258,88 @@ input[type='checkbox'] {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
#dots {
|
||||
#circular-progress {
|
||||
--size: 220px;
|
||||
--half-size: calc(var(--size) / 2);
|
||||
--stroke-width: 20px;
|
||||
--radius: calc((var(--size) - var(--stroke-width)) / 2);
|
||||
--circumference: calc(var(--radius) * pi * 2);
|
||||
--dash: calc((var(--progress) * var(--circumference)) / 100);
|
||||
position: absolute;
|
||||
bottom: 100px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
top: 15px;
|
||||
right: 10px;
|
||||
width: 55px;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
.dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
transition: all .1s;
|
||||
background: light-dark(#000, #fff);
|
||||
cursor: pointer;
|
||||
#circular-progress circle {
|
||||
cx: var(--half-size);
|
||||
cy: var(--half-size);
|
||||
r: var(--radius);
|
||||
stroke-width: var(--stroke-width);
|
||||
fill: none;
|
||||
stroke-linecap: round;
|
||||
}
|
||||
|
||||
.dot.active {
|
||||
background: var(--zen-primary-color);
|
||||
#circular-progress circle.bg {
|
||||
stroke: light-dark(#3f3f3f, #4d4d4d);
|
||||
}
|
||||
|
||||
#colorList {
|
||||
width: 500px;
|
||||
border-radius: 99px;
|
||||
height: 20px;
|
||||
display: flex;
|
||||
border: 1px solid var(--zen-colors-primary) !important;
|
||||
}
|
||||
|
||||
#dragBall {
|
||||
width: 17px;
|
||||
height: 17px;
|
||||
border-radius: 50%;
|
||||
background: #fff;
|
||||
position: absolute;
|
||||
top: calc(5px / 2);
|
||||
#circular-progress circle.fg {
|
||||
transform: rotate(-90deg);
|
||||
transform-origin: var(--half-size) var(--half-size);
|
||||
stroke-dasharray: var(--dash) calc(var(--circumference) - var(--dash));
|
||||
transition: stroke-dasharray 0.3s linear 0s;
|
||||
stroke: var(--zen-primary-color);
|
||||
}
|
||||
|
||||
#colorListWrapper {
|
||||
position: relative;
|
||||
width: 500px;
|
||||
height: 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
#colorPreview {
|
||||
margin-left: 10px;
|
||||
border-radius: 5px;
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: -60px;
|
||||
transform: translateY(-50%);
|
||||
#colorListWrapper > div {
|
||||
border-radius: 999px;
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
border: 3px solid transparent;
|
||||
margin: 0 5px;
|
||||
}
|
||||
|
||||
#colorListWrapper > div.selected {
|
||||
border: 3px solid light-dark(#000, #fff);
|
||||
}
|
||||
|
||||
#welcome {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
#themeList {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
|
||||
#themeList > svg {
|
||||
border: 3px solid transparent;
|
||||
border-radius: 15px;
|
||||
height: -moz-available;
|
||||
}
|
||||
|
||||
#themeList > svg:nth-child(1) {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
#themeList > svg.selected {
|
||||
border: 3px solid var(--zen-colors-primary);
|
||||
}
|
||||
|
||||
#searchList.cardGroup {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
|
||||
#searchList .card {
|
||||
width: -moz-available !important;
|
||||
margin: 20px;
|
||||
padding: 20% 0 !important;
|
||||
}
|
||||
|
@@ -26,18 +26,14 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
<script src="chrome://browser/content/zenThemeModifier.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<body class="gradient-background">
|
||||
<div id="first-view">
|
||||
<div class="page" id="welcome">
|
||||
<img class="icon" src="chrome://branding/content/about-logo.png" />
|
||||
<h1 data-l10n-id="welcome-dialog-welcome"></h1>
|
||||
|
||||
<p data-l10n-id="welcome-dialog-welcome-subtext"></p>
|
||||
|
||||
<button
|
||||
id="welcomeNext"
|
||||
class="primary"
|
||||
data-l10n-id="welcome-dialog-get-started"
|
||||
></button>
|
||||
</div>
|
||||
|
||||
<div class="page page-split" id="import">
|
||||
@@ -52,11 +48,6 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
id="importBrowser"
|
||||
data-l10n-id="welcome-dialog-import-action"
|
||||
></button>
|
||||
<button
|
||||
class="text-link ghost-button"
|
||||
id="importNext"
|
||||
data-l10n-id="welcome-dialog-skip"
|
||||
></button>
|
||||
</hbox>
|
||||
</div>
|
||||
</div>
|
||||
@@ -67,19 +58,70 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
<p data-l10n-id="welcome-dialog-theme-subtext"></p>
|
||||
</div>
|
||||
<div>
|
||||
<h1 data-l10n-id="welcome-dialog-theme-header-1"></h1>
|
||||
<div id="themeList" class="cardGroup"></div>
|
||||
<h1 data-l10n-id="welcome-dialog-theme-header-2"></h1>
|
||||
<h2 data-l10n-id="welcome-dialog-theme-header-1"></h2>
|
||||
<div id="colorListWrapper">
|
||||
<canvas id="colorList" class="cardGroup"></canvas>
|
||||
<div id="dragBall"></div>
|
||||
<div id="colorPreview"></div>
|
||||
</div>
|
||||
<button
|
||||
id="themeNext"
|
||||
class="primary"
|
||||
data-l10n-id="welcome-dialog-theme-action"
|
||||
></button>
|
||||
<h2 data-l10n-id="welcome-dialog-theme-header-2"></h2>
|
||||
<div id="themeList" class="cardGroup">
|
||||
<svg width="700" height="700" viewBox="0 0 700 700" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_404_2706)">
|
||||
<rect width="700" height="700" fill="#F4F4F4"/>
|
||||
<g filter="url(#filter0_d_404_2706)">
|
||||
<path d="M107 130C107 103.49 128.49 82 155 82H700V738H107V130Z" fill="white"/>
|
||||
<path d="M155 82.5H699.5V737.5H107.5V130C107.5 103.766 128.766 82.5 155 82.5Z" stroke="black" stroke-opacity="0.2"/>
|
||||
</g>
|
||||
<mask id="path-3-inside-1_404_2706" fill="white">
|
||||
<path d="M257 83H700V701H257V83Z"/>
|
||||
</mask>
|
||||
<path d="M257 83H700V701H257V83Z" fill="#F1F1F1"/>
|
||||
<path d="M258 701V83H256V701H258Z" fill="black" fill-opacity="0.1" mask="url(#path-3-inside-1_404_2706)"/>
|
||||
</g>
|
||||
<defs>
|
||||
<filter id="filter0_d_404_2706" x="103" y="82" width="601" height="664" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
||||
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
||||
<feOffset dy="4"/>
|
||||
<feGaussianBlur stdDeviation="2"/>
|
||||
<feComposite in2="hardAlpha" operator="out"/>
|
||||
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
||||
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_404_2706"/>
|
||||
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_404_2706" result="shape"/>
|
||||
</filter>
|
||||
<clipPath id="clip0_404_2706">
|
||||
<rect width="700" height="700" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
||||
<svg width="700" height="700" viewBox="0 0 700 700" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_404_2709)">
|
||||
<rect width="700" height="700" fill="#515151"/>
|
||||
<g filter="url(#filter0_d_404_2709)">
|
||||
<path d="M107 130C107 103.49 128.49 82 155 82H700V727H107V130Z" fill="#717171"/>
|
||||
<path d="M155 82.5H699.5V726.5H107.5V130C107.5 103.766 128.766 82.5 155 82.5Z" stroke="white" stroke-opacity="0.57"/>
|
||||
</g>
|
||||
<mask id="path-3-inside-1_404_2709" fill="white">
|
||||
<path d="M257 83H700V701H257V83Z"/>
|
||||
</mask>
|
||||
<path d="M257 83H700V701H257V83Z" fill="#565656"/>
|
||||
<path d="M258 701V83H256V701H258Z" fill="black" fill-opacity="0.1" mask="url(#path-3-inside-1_404_2709)"/>
|
||||
</g>
|
||||
<defs>
|
||||
<filter id="filter0_d_404_2709" x="103" y="82" width="601" height="653" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
||||
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
||||
<feOffset dy="4"/>
|
||||
<feGaussianBlur stdDeviation="2"/>
|
||||
<feComposite in2="hardAlpha" operator="out"/>
|
||||
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
||||
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_404_2709"/>
|
||||
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_404_2709" result="shape"/>
|
||||
</filter>
|
||||
<clipPath id="clip0_404_2709">
|
||||
<rect width="700" height="700" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -90,25 +132,38 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
</div>
|
||||
<div>
|
||||
<div id="searchList" class="cardGroup"></div>
|
||||
<button
|
||||
id="searchNext"
|
||||
class="primary"
|
||||
data-l10n-id="welcome-dialog-search-action"
|
||||
></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="page" id="thanks">
|
||||
<h1 data-l10n-id="welcome-dialog-thanks"></h1>
|
||||
<p data-l10n-id="welcome-dialog-thanks-subtext"></p>
|
||||
</div>
|
||||
<div id="buttons-footer">
|
||||
<button
|
||||
id="thanksNext"
|
||||
id="back"
|
||||
data-l10n-id="welcome-dialog-back-action"
|
||||
disabled
|
||||
></button>
|
||||
<button
|
||||
id="next"
|
||||
class="primary"
|
||||
data-l10n-id="welcome-dialog-thanks-action"
|
||||
data-l10n-id="welcome-dialog-next-action"
|
||||
></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="dots"></div>
|
||||
<div id="second-view">
|
||||
|
||||
</div>
|
||||
|
||||
<svg
|
||||
width="250" height="250" viewBox="0 0 250 250"
|
||||
id="circular-progress" style="--progress: 50"
|
||||
>
|
||||
<circle class="bg"></circle>
|
||||
<circle class="fg"></circle>
|
||||
</svg>
|
||||
|
||||
<script src="./welcome.js"></script>
|
||||
<script src="chrome://browser/content/contentTheme.js"></script>
|
||||
|
@@ -90,11 +90,6 @@ class Page {
|
||||
*/
|
||||
constructor(id) {
|
||||
this.element = document.getElementById(id)
|
||||
this.nextEl = document.getElementById(`${id}Next`)
|
||||
|
||||
this.nextEl.addEventListener('click', () => {
|
||||
this.pages.next()
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -130,95 +125,43 @@ class Themes extends Page {
|
||||
)
|
||||
const themeList = document.getElementById('themeList');
|
||||
|
||||
const themeElements = []
|
||||
const themeElements = ["firefox-compact-light@mozilla.org", "firefox-compact-dark@mozilla.org"];
|
||||
|
||||
themes.forEach((theme) => {
|
||||
const container = document.createElement('div')
|
||||
container.classList.add('card');
|
||||
container.classList.add('card-no-hover');
|
||||
|
||||
//if (theme.id == "firefox-compact-dream@mozilla.org" || theme.id == "firefox-compact-galaxy@mozilla.org") {
|
||||
// container.setAttribute('disabled', 'true')
|
||||
//}
|
||||
|
||||
if (theme.isActive) {
|
||||
container.classList.add('selected')
|
||||
}
|
||||
|
||||
container.addEventListener('click', () => {
|
||||
themeElements.forEach((theme, i) => {
|
||||
let container = themeList.children[i];
|
||||
container.addEventListener('click', (() => {
|
||||
if (container.hasAttribute('disabled')) {
|
||||
return
|
||||
}
|
||||
document.body.classList.add('normal-background');
|
||||
themeElements.forEach((el) => el.classList.remove('selected'))
|
||||
for (const el of themeList.children) {
|
||||
el.classList.remove('selected')
|
||||
}
|
||||
container.classList.add('selected')
|
||||
theme.enable()
|
||||
})
|
||||
|
||||
const img = document.createElement('img')
|
||||
img.src = theme.icons['32']
|
||||
|
||||
const name = document.createElement('h3')
|
||||
name.textContent = theme.name
|
||||
|
||||
//container.appendChild(img)
|
||||
container.appendChild(name)
|
||||
|
||||
themeList.appendChild(container)
|
||||
themeElements.push(container)
|
||||
themes.find((t) => t.id === theme).enable()
|
||||
}).bind(this, i, container, theme));
|
||||
if (themes.find((t) => t.id === theme).isActive) {
|
||||
container.classList.add('selected')
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
setColorBar() {
|
||||
const colorList = document.getElementById('colorList');
|
||||
const ctx = colorList.getContext('2d');
|
||||
let gradient = ctx.createLinearGradient(0, 0, 500, 20);
|
||||
colorList.width = 500;
|
||||
colorList.height = 20;
|
||||
const colorList = document.getElementById('colorListWrapper');
|
||||
const colors = ['#aac7ff', '#74d7cb', '#a0d490', '#dec663', '#ffb787',
|
||||
'#ffb1c0', '#ddbfc3', '#f6b0ea', '#d4bbff']
|
||||
|
||||
gradient.addColorStop(0.1, '#aac7ff');
|
||||
gradient.addColorStop(0.2, '#74d7cb');
|
||||
gradient.addColorStop(0.3, '#a0d490');
|
||||
gradient.addColorStop(0.4, '#dec663');
|
||||
gradient.addColorStop(0.5, '#ffb787');
|
||||
gradient.addColorStop(0.6, '#ffb1c0');
|
||||
gradient.addColorStop(0.7, '#ddbfc3');
|
||||
gradient.addColorStop(0.8, '#f6b0ea');
|
||||
gradient.addColorStop(0.9, '#d4bbff');
|
||||
|
||||
ctx.fillStyle = gradient;
|
||||
ctx.fillRect(0, 0, 1000, 150);
|
||||
|
||||
const dragBall = document.getElementById('dragBall');
|
||||
dragBall.style.left = `17px`;
|
||||
dragBall.addEventListener('mousedown', (e) => {
|
||||
const rect = colorList.getBoundingClientRect();
|
||||
e.preventDefault();
|
||||
|
||||
const onMouseMove = (ev) => {
|
||||
var x = ev.clientX - rect.left;
|
||||
dragBall.style.left = `${x - 17/2}px`;
|
||||
if (x < 17) {
|
||||
dragBall.style.left = `${17/2}px`;
|
||||
x = 17;
|
||||
} else if (x > rect.width - 17) {
|
||||
dragBall.style.left = `${rect.width - 17 - (17/2)}px`;
|
||||
x = rect.width - 17 - (17/2);
|
||||
}
|
||||
const data = ctx.getImageData(x - 17, 1, 1, 1).data;
|
||||
let color = `#${data[0].toString(16)}${data[1].toString(16)}${data[2].toString(16)}`;
|
||||
document.getElementById("colorPreview").style.backgroundColor = color;
|
||||
colors.forEach((color) => {
|
||||
const container = document.createElement('div')
|
||||
container.classList.add('color')
|
||||
container.style.backgroundColor = color
|
||||
container.setAttribute('data-color', color)
|
||||
container.addEventListener('click', (() => {
|
||||
Services.prefs.setStringPref('zen.theme.accent-color', color);
|
||||
}
|
||||
colorList.querySelectorAll('.selected').forEach((el) => el.classList.remove('selected'))
|
||||
container.classList.add('selected')
|
||||
}).bind(this, color, container))
|
||||
|
||||
const onMouseUp = () => {
|
||||
document.removeEventListener('mousemove', onMouseMove);
|
||||
document.removeEventListener('mouseup', onMouseUp);
|
||||
document.getElementById("colorPreview").style.backgroundColor = '';
|
||||
}
|
||||
|
||||
document.addEventListener('mousemove', onMouseMove);
|
||||
document.addEventListener('mouseup', onMouseUp);
|
||||
colorList.appendChild(container)
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -297,7 +240,6 @@ class Import extends Page {
|
||||
MigrationUtils.showMigrationWizard(window, {
|
||||
zenBlocking: true,
|
||||
});
|
||||
this.nextEl.click()
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -316,19 +258,24 @@ class Pages {
|
||||
|
||||
this.pages.forEach((page) => page.setPages(this))
|
||||
|
||||
const dots = document.getElementById("dots");
|
||||
for (let i = 0; i < this.pages.length; i++) {
|
||||
let dot = document.createElement("span");
|
||||
dot.classList.add("dot");
|
||||
dot.setAttribute("data-index", i);
|
||||
dot.onclick = (e) => {
|
||||
this.currentPage = parseInt(e.target.getAttribute("data-index"));
|
||||
this._displayCurrentPage();
|
||||
}
|
||||
dots.appendChild(dot);
|
||||
}
|
||||
this._displayCurrentPage();
|
||||
console.log("Welcome pages initialized.")
|
||||
|
||||
this.nextEl = document.getElementById(`next`)
|
||||
this.prevEl = document.getElementById(`back`)
|
||||
|
||||
this.nextEl.addEventListener('click', () => {
|
||||
this.next()
|
||||
this.prevEl.removeAttribute('disabled')
|
||||
})
|
||||
|
||||
this.prevEl.addEventListener('click', () => {
|
||||
this.currentPage--
|
||||
this._displayCurrentPage()
|
||||
if (this.pages.currentPage === 1) {
|
||||
this.prevEl.setAttribute('disabled', 'true')
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
next() {
|
||||
@@ -349,20 +296,22 @@ class Pages {
|
||||
}
|
||||
|
||||
_openWelcomePage() {
|
||||
gZenUIManager.openAndChangeToTab(kWelcomeURL);
|
||||
gZenUIManager.openAndChangeToTab(kWelcomeURL, {
|
||||
inBackground: true,
|
||||
});
|
||||
}
|
||||
|
||||
_displayCurrentPage() {
|
||||
let dots = document.getElementsByClassName("dot");
|
||||
for (let i = 0; i < dots.length; i++) {
|
||||
dots[i].classList.remove("active");
|
||||
}
|
||||
dots[this.currentPage].classList.add("active");
|
||||
|
||||
let progress = document.getElementById('circular-progress');
|
||||
progress.style.setProperty('--progress', ((this.currentPage + 1) / this.pages.length) * 100);
|
||||
for (const page of this.pages) {
|
||||
page.hide()
|
||||
}
|
||||
|
||||
if (this.currentPage >= 1) {
|
||||
document.body.classList.remove('gradient-background')
|
||||
} else {
|
||||
document.body.classList.add('gradient-background')
|
||||
}
|
||||
this.pages[this.currentPage].show()
|
||||
}
|
||||
}
|
||||
|
@@ -1,13 +0,0 @@
|
||||
diff --git a/browser/locales/en-US/browser/browser.ftl b/browser/locales/en-US/browser/browser.ftl
|
||||
index 02ba7bb1faa074128a995107735c31dbbd280fd1..28439a06063ec626dcfb73f7dedc0a53fea22f59 100644
|
||||
--- a/browser/locales/en-US/browser/browser.ftl
|
||||
+++ b/browser/locales/en-US/browser/browser.ftl
|
||||
@@ -347,7 +347,7 @@ bookmark-panel-cancel =
|
||||
bookmark-panel-remove =
|
||||
.label =
|
||||
{ $count ->
|
||||
- [1] Remove bookmark
|
||||
+ [1] Remove
|
||||
*[other] Remove { $count } bookmarks
|
||||
}
|
||||
.accesskey = R
|
@@ -15,12 +15,17 @@ zen-side-panels-description = Increase productivity by having multiple views at
|
||||
zen-side-panels-enabled =
|
||||
.label = Enable Web Side Panels
|
||||
|
||||
zen-side-panels-close-on-blur =
|
||||
.label = Close the panel when it loses focus if it's not pinned
|
||||
|
||||
zen-look-and-feel-compact-view-header = Show in compact view
|
||||
zen-look-and-feel-compact-view-description = Only show the toolbars you use!
|
||||
zen-look-and-feel-compact-view-enabled =
|
||||
.label = Enable { -brand-short-name }'s compact mode
|
||||
|
||||
zen-look-and-feel-compact-view-top-toolbar =
|
||||
.label = Hide the top toolbar as well in compact mode
|
||||
|
||||
zen-look-and-feel-buttons-header = Button style
|
||||
zen-look-and-feel-buttons-description = Choose the style of buttons you want to see
|
||||
|
||||
@@ -38,6 +43,14 @@ zen-settings-workspaces-description = With workspaces, you can have multiple bro
|
||||
zen-settings-workspaces-enabled =
|
||||
.label = Enable Workspaces (Experimental)
|
||||
|
||||
pane-zen-theme-title = Theme Settings
|
||||
|
||||
zen-look-and-feel-urlbar-header = Awesome Bar Settings
|
||||
zen-look-and-feel-urlbar-description = Customize the look and feel of the Awesome Bar
|
||||
|
||||
zen-look-and-feel-floating-urlbar =
|
||||
.label = Floating URL Bar when focused
|
||||
|
||||
zen-vertical-tabs-title = Sidebar and tabs layout
|
||||
zen-vertical-tabs-header = Vertical Tabs
|
||||
zen-vertical-tabs-description = Manage your tabs in a vertical layout
|
||||
|
@@ -1,19 +0,0 @@
|
||||
diff --git a/browser/locales/en-US/browser/tabContextMenu.ftl b/browser/locales/en-US/browser/tabContextMenu.ftl
|
||||
index df58df794c5e7101aa1ea684edd009532d74240d..0b4237dfde4e8e30e279f0a7022c1a36e67a04e8 100644
|
||||
--- a/browser/locales/en-US/browser/tabContextMenu.ftl
|
||||
+++ b/browser/locales/en-US/browser/tabContextMenu.ftl
|
||||
@@ -101,6 +101,14 @@ tab-context-move-tabs =
|
||||
}
|
||||
.accesskey = v
|
||||
|
||||
+tab-zen-split-tabs =
|
||||
+ .label =
|
||||
+ { $tabCount ->
|
||||
+ [1] Split Tab (multiple selected tabs needed)
|
||||
+ *[other] Split { $tabCount } Tabs
|
||||
+ }
|
||||
+ .accesskey = S
|
||||
+
|
||||
tab-context-send-tabs-to-device =
|
||||
.label =
|
||||
{ $tabCount ->
|
12
src/browser/locales/en-US/browser/zen-split-view.ftl
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
tab-zen-split-tabs =
|
||||
.label =
|
||||
{ $tabCount ->
|
||||
[1] Split Tab (multiple selected tabs needed)
|
||||
*[other] Split { $tabCount } Tabs
|
||||
}
|
||||
.accesskey = S
|
||||
|
||||
zen-split-link =
|
||||
.label = Split link to new tab
|
||||
.accesskey = S
|
@@ -26,3 +26,6 @@ zen-web-side-panel-open-in-new-tab =
|
||||
zen-web-side-panel-context-add-to-panel =
|
||||
.label = Add to Web Panels
|
||||
.accesskey = A
|
||||
|
||||
zen-sidebar-introduction-title = Welcome to Zen Sidebar
|
||||
zen-sidebar-introduction-description = Zen Sidebar is a new way to browse the web. Click on any of the icons to open a web panel.
|
||||
|
@@ -6,29 +6,21 @@ welcome-dialog-welcome = 👋 Welcome to { -brand-short-name }
|
||||
welcome-dialog-welcome-subtext = Fast. Beautiful. Private.
|
||||
welcome-dialog-get-started = Get started
|
||||
|
||||
welcome-dialog-skip = Not now
|
||||
|
||||
welcome-dialog-import = 😍 Bring your favourites to { -brand-short-name }
|
||||
welcome-dialog-import-subtext = Pick up where you left off in your last browser
|
||||
welcome-dialog-import-action = Import
|
||||
welcome-dialog-import-action = Import your data
|
||||
|
||||
welcome-dialog-theme = 🎨 Choose a theme
|
||||
welcome-dialog-theme = Make yourself at home
|
||||
welcome-dialog-theme-subtext = Personalize your experience with your favorite look!
|
||||
welcome-dialog-theme-action = Continue
|
||||
|
||||
welcome-dialog-theme-header-1 = 1. Choose a theme
|
||||
welcome-dialog-theme-header-2 = 2. Find your perfect color
|
||||
welcome-dialog-theme-header-1 = Choose your perfect color
|
||||
welcome-dialog-theme-header-2 = Choose your theme
|
||||
|
||||
welcome-dialog-search = 🔍 Choose a search engine
|
||||
welcome-dialog-search-subtext = Select your preferred search engine to tailor your browsing experience!
|
||||
welcome-dialog-search-action = Next
|
||||
|
||||
welcome-dialog-thanks = Thanks You So Much! ❤️
|
||||
welcome-dialog-thanks = Thank You So Much! ❤️
|
||||
welcome-dialog-thanks-subtext = Your appreciation means the world to us!
|
||||
welcome-dialog-thanks-action = Start Browsing!
|
||||
|
||||
# About Welcome Page
|
||||
welcome-page-description = An experimental Firefox fork that enhances focus and increases work productivity due to its hyper minimalistic UI and built-in tools
|
||||
welcome-page-version = You are using { -brand-full-name }
|
||||
welcome-page-build-id = Build { -build-id }
|
||||
welcome-page-other-downloads = If this is not the release you want, feel free to checkout other downloads at https://pulsebrowser.app/download
|
||||
welcome-dialog-back-action = Back
|
||||
welcome-dialog-next-action = Next
|
||||
|
@@ -1,7 +1,16 @@
|
||||
diff --git a/browser/themes/shared/customizableui/panelUI-shared.css b/browser/themes/shared/customizableui/panelUI-shared.css
|
||||
index e4409ac75f6ee794d400559b0b01ae30904d01bc..44d4e648aa5aac17b82e0e1f80c7a953c2923ebc 100644
|
||||
index e4409ac75f6ee794d400559b0b01ae30904d01bc..4c10051d6bbc77440195b08397743c03a11d1fb0 100644
|
||||
--- a/browser/themes/shared/customizableui/panelUI-shared.css
|
||||
+++ b/browser/themes/shared/customizableui/panelUI-shared.css
|
||||
@@ -16,7 +16,7 @@
|
||||
--menu-panel-width-wide: 29em;
|
||||
|
||||
--arrowpanel-menuitem-margin-block: 0;
|
||||
- --arrowpanel-menuitem-margin-inline: 8px;
|
||||
+ --arrowpanel-menuitem-margin-inline: 4px;
|
||||
--arrowpanel-menuitem-margin: var(--arrowpanel-menuitem-margin-block) var(--arrowpanel-menuitem-margin-inline);
|
||||
--arrowpanel-menuitem-padding-block: 8px;
|
||||
--arrowpanel-menuitem-padding-inline: 8px;
|
||||
@@ -720,15 +720,15 @@ toolbarbutton[constrain-size="true"][cui-areatype="panel"] > .toolbarbutton-badg
|
||||
/* Firefox Account Toolbar Panel */
|
||||
|
||||
|
@@ -94,6 +94,11 @@
|
||||
--toolbarbutton-border-radius: 6px;
|
||||
}
|
||||
|
||||
/*#urlbar:not([breakout-extend="true"]) #urlbar-input {
|
||||
text-align: center;
|
||||
transition: .2s;
|
||||
}*/
|
||||
|
||||
#identity-icon-label {
|
||||
padding-inline-start: 8px !important;
|
||||
}
|
||||
@@ -175,6 +180,11 @@ toolbar .zen-sidebar-panel-button {
|
||||
margin-right: 0 !important;
|
||||
}
|
||||
|
||||
#tracking-protection-icon-container,
|
||||
#page-action-buttons {
|
||||
order: 2 !important;
|
||||
}
|
||||
|
||||
#notification-popup-box {
|
||||
border-radius: 999px;
|
||||
margin-right: 5px;
|
||||
@@ -214,6 +224,10 @@ button.popup-notification-dropmarker {
|
||||
max-width: 55px;
|
||||
}
|
||||
|
||||
#zen-tabbox-wrapper:has(#zen-sidebar-splitter:not([state="dragging"])) #navigator-toolbox {
|
||||
transition: .3s !important;
|
||||
}
|
||||
|
||||
#navigator-toolbox toolbar#TabsToolbar {
|
||||
margin: var(--zen-appcontent-separator-from-window);
|
||||
overflow: hidden;
|
||||
@@ -340,7 +354,7 @@ toolbarbutton#scrollbutton-up {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.tabbrowser-tab::after {
|
||||
.tabbrowser-tab::after {/* Containers */
|
||||
background: var(--identity-tab-color, transparent);
|
||||
border-radius: 2px;
|
||||
height: 80%;
|
||||
@@ -360,17 +374,18 @@ toolbarbutton#scrollbutton-up {
|
||||
|
||||
.tabbrowser-tab[pinned] {
|
||||
position: relative !important;
|
||||
display: flex !important;
|
||||
}
|
||||
|
||||
.tabbrowser-tab:nth-last-child(1 of [pinned]) {
|
||||
margin-bottom: 15px !important;
|
||||
#tabbrowser-tabs:has(.tabbrowser-tab[pinned]) .tabbrowser-tab:nth-child(1 of :not([pinned]):not([hidden])) {
|
||||
margin-top: 15px !important;
|
||||
position: relative;
|
||||
overflow: visible;
|
||||
|
||||
& .tab-stack::after {
|
||||
& .tab-stack::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: -11px;
|
||||
top: -11px;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 1.5px;
|
||||
@@ -386,8 +401,9 @@ toolbarbutton#scrollbutton-up {
|
||||
top: 50%;
|
||||
}
|
||||
|
||||
.tabbrowser-tab:hover .tab-close-button {
|
||||
display: none; /* TODO: fix this? or maybe not? */
|
||||
.tabbrowser-tab[open="true"]:hover .tab-close-button {
|
||||
/* TODO: fix this */
|
||||
/*display: block;*/
|
||||
}
|
||||
|
||||
.tab-content {
|
||||
@@ -399,6 +415,11 @@ toolbarbutton#scrollbutton-up {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#nav-bar > *:not(.titlebar-buttonbox-container) {
|
||||
padding-top: 5px;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
|
||||
#TabsToolbar-customization-target {
|
||||
height: 100%;
|
||||
}
|
||||
@@ -484,13 +505,13 @@ panelmultiview {
|
||||
|
||||
:root:not([inDOMFullscreen="true"]) #tabbrowser-tabpanels {
|
||||
background: transparent !important;
|
||||
margin-right: 10px;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
:root:not([inDOMFullscreen="true"]) #tabbrowser-tabbox #tabbrowser-tabpanels .browserSidebarContainer {
|
||||
border-radius: var(--zen-browser-border-radius);
|
||||
border: var(--zen-appcontent-border);
|
||||
width: 100%;
|
||||
width: -moz-available;
|
||||
margin: 0 10px 10px 0;
|
||||
}
|
||||
|
||||
@@ -503,11 +524,6 @@ panelmultiview {
|
||||
clip-path: inset(0px 0px 0px round var(--zen-browser-border-radius) 0) !important;
|
||||
}
|
||||
|
||||
#nav-bar {
|
||||
padding-top: 5px;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
|
||||
#urlbar[breakout]:not([breakout-extend="true"]) {
|
||||
top: unset;
|
||||
}
|
||||
@@ -517,60 +533,113 @@ panelmultiview {
|
||||
}
|
||||
|
||||
@media (-moz-bool-pref: "zen.view.compact") {
|
||||
#navigator-toolbox,
|
||||
#zen-appcontent-navbar-container #nav-bar {
|
||||
z-index: 1;
|
||||
opacity: 0;
|
||||
transition: .2s;
|
||||
}
|
||||
:root[sizemode="fullscreen"],
|
||||
#navigator-toolbox[inFullscreen]{ margin-top: 0 !important; }
|
||||
|
||||
#navigator-toolbox {
|
||||
max-width: 1px;
|
||||
min-width: 0;
|
||||
--zen-compact-toolbox-margin-single: 15px;
|
||||
--zen-compact-toolbox-margin: var(--zen-compact-toolbox-margin-single);
|
||||
position: absolute !important;
|
||||
display: block;
|
||||
transition: 50ms ease-in !important;
|
||||
transform: translateX(calc(-100% + var(--zen-compact-toolbox-margin-single) + 2px)) !important;
|
||||
opacity: 0;
|
||||
line-height: 0;
|
||||
z-index: 1;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: var(--zen-compact-toolbox-margin) !important;
|
||||
|
||||
& #titlebar {
|
||||
border: 1px solid var(--zen-colors-border);
|
||||
background: var(--zen-colors-tertiary) !important;
|
||||
padding: 0 5px;
|
||||
border-radius: 11px;
|
||||
}
|
||||
}
|
||||
|
||||
#zen-appcontent-navbar-container #nav-bar {
|
||||
min-height: 0;
|
||||
max-height: 1px;
|
||||
@media not (-moz-bool-pref: "zen.view.sidebar-expanded") {
|
||||
#navigator-toolbox {
|
||||
width: fit-content !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media not (-moz-bool-pref: "zen.view.compact.hide-toolbar") {
|
||||
#navigator-toolbox {
|
||||
/* Remove the top margin */
|
||||
--zen-compact-toolbox-margin: calc(var(--zen-compact-toolbox-margin-single) / 3) var(--zen-compact-toolbox-margin-single) var(--zen-compact-toolbox-margin-single) var(--zen-compact-toolbox-margin-single);
|
||||
}
|
||||
}
|
||||
|
||||
#navigator-toolbox:hover,
|
||||
#navigator-toolbox:focus-within,
|
||||
#mainPopupSet:has(> #appMenu-popup:hover) ~ toolbox,
|
||||
#navigator-toolbox:has(*[open="true"]:not(tab):not(#zen-sidepanel-button)) {
|
||||
transition-delay: 33ms !important;
|
||||
transform: none !important;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
#navigator-toolbox > *{ line-height: normal; pointer-events: auto }
|
||||
|
||||
#navigator-toolbox,
|
||||
#navigator-toolbox > *{
|
||||
-moz-appearance: none !important;
|
||||
}
|
||||
|
||||
#zen-sidebar-splitter {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Don't apply transform before window has been fully created */
|
||||
:root:not([sessionrestored]) #navigator-toolbox{ transform:none !important }
|
||||
|
||||
:root[customizing] #navigator-toolbox{
|
||||
position: relative !important;
|
||||
transform: none !important;
|
||||
opacity: 1 !important;
|
||||
}
|
||||
|
||||
#navigator-toolbox[inFullscreen] > #PersonalToolbar,
|
||||
#PersonalToolbar[collapsed="true"]{ display: none }
|
||||
|
||||
:root:not([inDOMFullscreen="true"]) #tabbrowser-tabbox #tabbrowser-tabpanels .browserSidebarContainer {
|
||||
margin-left: 10px !important;
|
||||
margin-right: 10px !important;
|
||||
}
|
||||
|
||||
@media (-moz-bool-pref: "zen.view.compact.hide-toolbar") {
|
||||
#zen-appcontent-navbar-container {
|
||||
--urlbar-height: unset;
|
||||
transition: .2s ease-in-out;
|
||||
transform: translateY(calc(-100% + 5px));
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
border-bottom-left-radius: 8px;
|
||||
border-bottom-right-radius: 8px;
|
||||
border-bottom: 1px solid var(--zen-colors-border);
|
||||
top: 0;
|
||||
background: var(--zen-colors-tertiary);
|
||||
z-index: 1;
|
||||
transition: .2s ease-in-out;
|
||||
}
|
||||
|
||||
#zen-appcontent-navbar-container:hover,
|
||||
#zen-appcontent-navbar-container:focus-within,
|
||||
#mainPopupSet:has(> #appMenu-popup:hover) ~ #zen-appcontent-navbar-container,
|
||||
#zen-appcontent-navbar-container:has(*[open="true"]) {
|
||||
transform: translateY(0);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
:root:not([inDOMFullscreen="true"]) #tabbrowser-tabbox #tabbrowser-tabpanels .browserSidebarContainer {
|
||||
margin: 10px !important;
|
||||
margin-right: 0 !important;
|
||||
margin-top: 0 !important;
|
||||
width: -moz-available;
|
||||
}
|
||||
|
||||
:root:has(
|
||||
:is(
|
||||
#navigator-toolbox:hover,
|
||||
#navigator-toolbox *[open="true"]:not(tab),
|
||||
#zen-appcontent-navbar-container:hover,
|
||||
#zen-appcontent-navbar-container *[open="true"]:not(tab)
|
||||
)
|
||||
) {
|
||||
& #zen-appcontent-navbar-container #nav-bar,
|
||||
& #navigator-toolbox {
|
||||
max-width: unset;
|
||||
max-height: unset;
|
||||
overflow: visible;
|
||||
opacity: 1;
|
||||
background: transparent !important;
|
||||
}
|
||||
|
||||
& #navigator-toolbox {
|
||||
border-right: var(--zen-appcontent-border) !important;
|
||||
width: fit-content !important;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
& #zen-appcontent-navbar-container #nav-bar {
|
||||
border-bottom: var(--zen-appcontent-border) !important;
|
||||
}
|
||||
|
||||
:root:not([inDOMFullscreen="true"]) & #tabbrowser-tabbox #tabbrowser-tabpanels .browserSidebarContainer {
|
||||
margin-top: 10px !important;
|
||||
}
|
||||
|
||||
#titlebar {
|
||||
padding-top: 5px !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -588,6 +657,10 @@ panelmultiview {
|
||||
margin: 0 !important;
|
||||
}
|
||||
}
|
||||
|
||||
& #zen-sidebar-splitter {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Screenshots */
|
||||
@@ -671,7 +744,7 @@ panelmultiview {
|
||||
border: none;
|
||||
}
|
||||
|
||||
#zen-sidebar-splitter {
|
||||
:root:not([inDOMFullscreen="true"]) #zen-sidebar-splitter {
|
||||
display: block;
|
||||
width: 1px;
|
||||
}
|
||||
@@ -714,6 +787,9 @@ panelmultiview {
|
||||
}
|
||||
|
||||
.tabbrowser-tab {
|
||||
max-width: unset !important;
|
||||
|
||||
&:not([pinned]) {
|
||||
width: 100%;
|
||||
|
||||
&:hover .tab-close-button {
|
||||
@@ -728,14 +804,10 @@ panelmultiview {
|
||||
& .tab-stack {
|
||||
justify-content: start;
|
||||
padding: 10px;
|
||||
}
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
#zen-workspaces-button {
|
||||
width: -moz-available !important;
|
||||
}
|
||||
|
||||
.tab-label-container {
|
||||
& .tab-label-container {
|
||||
|
||||
#tabbrowser-tabs:not([secondarytext-unsupported]) & {
|
||||
display: flex;
|
||||
@@ -743,11 +815,42 @@ panelmultiview {
|
||||
padding-left: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:active,
|
||||
.zen-sidebar-panel-button:active {
|
||||
transform: scale(0.96) !important;
|
||||
}
|
||||
|
||||
&[pinned] {
|
||||
margin: 0 !important;
|
||||
}
|
||||
}
|
||||
#tabbrowser-arrowscrollbox::part(scrollbox) {
|
||||
/* We have the pinned tabs on the top, next to each other,
|
||||
* and the rest of the tabs are below them. */
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(35px, 1fr));
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.tabbrowser-tab:not([pinned]) {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.tabbrowser-tab[pinned] {
|
||||
grid-column: span 1;
|
||||
}
|
||||
|
||||
#zen-workspaces-button {
|
||||
width: -moz-available !important;
|
||||
padding: 2px 10px;
|
||||
}
|
||||
|
||||
#zen-sidebar-icons-wrapper {
|
||||
width: 100%;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
|
||||
transition: .1s;
|
||||
}
|
||||
|
||||
@@ -755,3 +858,52 @@ panelmultiview {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/* Popup Search */
|
||||
|
||||
@media (-moz-bool-pref: "zen.theme.floating-urlbar") {
|
||||
#urlbar:is([breakout][breakout-extend], [breakout][usertyping][focused]) {
|
||||
#urlbar-input {
|
||||
font-size: 16px !important;
|
||||
}
|
||||
|
||||
z-index: 2;
|
||||
position: fixed !important;
|
||||
bottom: auto !important;
|
||||
top: 20vh !important;
|
||||
padding-left: 6px !important;
|
||||
padding-right: 8px !important;
|
||||
|
||||
left: 18vw !important;
|
||||
right: 18vw !important;
|
||||
width: 64vw !important;
|
||||
|
||||
&:after {
|
||||
content: "";
|
||||
position: fixed;
|
||||
pointer-events: none;
|
||||
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
|
||||
background-color: rgba(0, 0, 0, 0.3);
|
||||
backdrop-filter: blur(5px);
|
||||
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
#identity-box {
|
||||
margin: auto 0;
|
||||
height: 30px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.urlbar-go-button {
|
||||
margin: auto 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -40,6 +40,10 @@
|
||||
--menu-image: url("sidebars-right.svg") !important;
|
||||
}
|
||||
|
||||
#context-zenSplitLink {
|
||||
--menu-image: url("link.svg") !important;
|
||||
}
|
||||
|
||||
#sidebar-button:-moz-locale-dir(ltr):not([positionend]),
|
||||
#sidebar-button:-moz-locale-dir(rtl)[positionend],
|
||||
#zen-sidepanel-button {
|
||||
@@ -356,11 +360,14 @@
|
||||
}
|
||||
|
||||
#PlacesChevron,
|
||||
#urlbar-go-button,
|
||||
#zen-expand-sidebar-button {
|
||||
#urlbar-go-button {
|
||||
list-style-image: url("arrow-right.svg") !important;
|
||||
}
|
||||
|
||||
#zen-expand-sidebar-button {
|
||||
list-style-image: url("move-tab.svg") !important;
|
||||
}
|
||||
|
||||
.panel-header > .subviewbutton-back {
|
||||
list-style-image: url("arrow-left.svg") !important;
|
||||
}
|
||||
|
@@ -246,7 +246,6 @@
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
display: flex;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
#PanelUI-zen-workspaces {
|
||||
|
@@ -53,10 +53,13 @@
|
||||
margin-right: 0;
|
||||
display: flex;
|
||||
pointer-events: none;
|
||||
transition: width 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
#zen-sidebar-web-panel-wrapper:has(#zen-sidebar-web-panel[hidden="true"]) {
|
||||
display: none;
|
||||
max-width: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#zen-sidebar-web-panel-wrapper:has(#zen-sidebar-web-panel[pinned="true"]) {
|
||||
@@ -144,6 +147,12 @@
|
||||
animation: zen-sidebar-panel-animation-2 0.2s ease-in-out forwards;
|
||||
}
|
||||
|
||||
#zen-sidebar-web-panel[hidden="true"][pinned="true"] {
|
||||
display: flex;
|
||||
pointer-events: none;
|
||||
animation: zen-sidebar-panel-animation-reverse 0.2s ease-in-out forwards;
|
||||
}
|
||||
|
||||
@keyframes zen-sidebar-panel-animation {
|
||||
0% {
|
||||
opacity: 0;
|
||||
@@ -168,6 +177,22 @@
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes zen-sidebar-panel-animation-reverse {
|
||||
0% {
|
||||
opacity: 1;
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
99% {
|
||||
opacity: 0;
|
||||
transform: translateX(-50px);
|
||||
}
|
||||
|
||||
100% {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
#zen-sidebar-web-header,
|
||||
#zen-sidebar-panels-wrapper {
|
||||
width: 100%;
|
||||
@@ -202,6 +227,32 @@
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#zen-sidebar-introduction-panel {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin: 0 auto;
|
||||
width: 70%;
|
||||
}
|
||||
|
||||
#zen-sidebar-introduction-panel[hidden="true"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#zen-sidebar-introduction-panel h1 {
|
||||
font-size: 1.5em;
|
||||
font-weight: 600;
|
||||
margin: 0;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
#zen-sidebar-introduction-panel p {
|
||||
opacity: 0.7;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#zen-sidebar-web-panel browser[zen-sidebar-id] {
|
||||
height: 100%;
|
||||
}
|
||||
|
@@ -193,12 +193,6 @@
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media (-moz-bool-pref: "zen.view.sidebar-expanded") {
|
||||
#zen-expand-sidebar-button {
|
||||
display: block; /* TODO? */
|
||||
}
|
||||
}
|
||||
|
||||
@media not (-moz-bool-pref: "zen.view.sidebar-expanded") {
|
||||
#navigator-toolbox {
|
||||
width: 0 !important;
|
||||
|
@@ -1,11 +0,0 @@
|
||||
diff --git a/build/application.ini.in b/build/application.ini.in
|
||||
index 6df13230a45b2a86356f4e5a7b189c46f53e44cc..47fc729cba7d9cb612bfa0297a24644925ab53af 100644
|
||||
--- a/build/application.ini.in
|
||||
+++ b/build/application.ini.in
|
||||
@@ -52,5 +52,5 @@ ServerURL=@MOZ_CRASHREPORTER_URL@/submit?id=@MOZ_APP_ID@&version=@MOZ_APP_VERSIO
|
||||
|
||||
#if MOZ_UPDATER
|
||||
[AppUpdate]
|
||||
-URL=https://@MOZ_APPUPDATE_HOST@/update/6/%PRODUCT%/%VERSION%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%SYSTEM_CAPABILITIES%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/update.xml
|
||||
+URL=https://@MOZ_APPUPDATE_HOST@/updates/browser/%BUILD_TARGET%/%CHANNEL%/update.xml
|
||||
#endif
|
@@ -2,7 +2,7 @@
|
||||
@import url("zen-fullscreen-override.css");
|
||||
|
||||
:root {
|
||||
--zen-main-browser-background: transparent;
|
||||
--zen-main-browser-background: light-dark(white, #1b1b1b);
|
||||
--zen-appcontent-border: 1px solid var(--zen-colors-border);
|
||||
--zen-browser-border-radius: var(--zen-panel-radius);
|
||||
}
|
||||
|
@@ -0,0 +1,16 @@
|
||||
diff --git a/toolkit/mozapps/update/updater/updater-common.build b/toolkit/mozapps/update/updater/updater-common.build
|
||||
index 6c6d0adf6f56b66c06494b95982b4afae52de536..67e381659dba0c6938a12d16fe12bc2f3e2039ae 100644
|
||||
--- a/toolkit/mozapps/update/updater/updater-common.build
|
||||
+++ b/toolkit/mozapps/update/updater/updater-common.build
|
||||
@@ -78,6 +78,11 @@ if link_with_nss:
|
||||
"nss",
|
||||
"signmar",
|
||||
]
|
||||
+ if CONFIG["OS_ARCH"] == "Linux":
|
||||
+ # Zen: --enable-unverified-updates is enabled, the RPATH is not added
|
||||
+ OS_LIBS += [
|
||||
+ "-Wl,-rpath=\\$$ORIGIN",
|
||||
+ ]
|
||||
|
||||
if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
|
||||
have_progressui = 1
|
@@ -24,5 +24,5 @@ html|button:not(:is(
|
||||
)) {
|
||||
transition: .2s;
|
||||
border-radius: 6px !important;
|
||||
min-width: 100px !important;
|
||||
min-width: 80px !important;
|
||||
}
|
||||
|
@@ -78,7 +78,8 @@
|
||||
--zen-button-padding: .6rem 1.2rem;
|
||||
|
||||
/* Other colors */
|
||||
--urlbar-box-bgcolor: light-dark(white, rgb(66, 65, 77)) !important;
|
||||
--urlbar-box-bgcolor: var(--zen-urlbar-background) !important;
|
||||
--toolbar-field-focus-background-color: var(--urlbar-box-bgcolor) !important;
|
||||
--zen-input-border-color: light-dark(rgb(204, 204, 204), rgb(66, 65, 77)) !important;
|
||||
|
||||
--zen-browser-gradient-base: color-mix(in srgb, var(--zen-primary-color) 50%, white 50%);
|
||||
|
@@ -1,5 +1,5 @@
|
||||
diff --git a/toolkit/themes/shared/popup.css b/toolkit/themes/shared/popup.css
|
||||
index ed230860215c734e6fb903b3660d0c679043e3f3..a2808bec7fbfff58e3c56219cf2c7703eeb61ec1 100644
|
||||
index ed230860215c734e6fb903b3660d0c679043e3f3..348436a56cecdf101da66cdec9d64f1bb851ba4d 100644
|
||||
--- a/toolkit/themes/shared/popup.css
|
||||
+++ b/toolkit/themes/shared/popup.css
|
||||
@@ -2,6 +2,8 @@
|
||||
@@ -62,3 +62,11 @@ index ed230860215c734e6fb903b3660d0c679043e3f3..a2808bec7fbfff58e3c56219cf2c7703
|
||||
|
||||
&::part(content) {
|
||||
display: flex;
|
||||
@@ -193,6 +182,6 @@ panel[type="arrow"] {
|
||||
}
|
||||
|
||||
&[animating] {
|
||||
- pointer-events: none;
|
||||
+ /*pointer-events: none;*/
|
||||
}
|
||||
}
|
||||
|
@@ -380,6 +380,7 @@ hbox.editBMPanel_folderRow {
|
||||
menu, menuitem {
|
||||
&:where([_moz-menuactive]:not([disabled="true"])) {
|
||||
background-color: var(--button-hover-bgcolor);
|
||||
color: var(--button-hover-color);
|
||||
}
|
||||
}
|
||||
|
||||
|
15
surfer.json
@@ -5,7 +5,7 @@
|
||||
"binaryName": "zen",
|
||||
"version": {
|
||||
"product": "firefox",
|
||||
"version": "128.0.2"
|
||||
"version": "128.0.3"
|
||||
},
|
||||
"buildOptions": {
|
||||
"generateBranding": true
|
||||
@@ -27,14 +27,17 @@
|
||||
"brandShortName": "Zen Browser",
|
||||
"brandFullName": "Zen Browser",
|
||||
"release": {
|
||||
"displayVersion": "1.0.0-a.6",
|
||||
"displayVersion": "1.0.0-a.12",
|
||||
"github": {
|
||||
"repo": "zen-browser/desktop"
|
||||
},
|
||||
"x86": {
|
||||
"windowsMar": "windows.mar",
|
||||
"macosMar": "macos.mar",
|
||||
"linuxMar": "linux.mar"
|
||||
"archives": {
|
||||
"windows": "windows.mar",
|
||||
"macos-aarch64": "macos-aarch64.mar",
|
||||
"linux": "linux.mar",
|
||||
"macos-x64": "macos-x64.mar",
|
||||
"windows-compat": "windows-generic.mar",
|
||||
"linux-compat": "linux-generic.mar"
|
||||
}
|
||||
}
|
||||
}
|
||||
|