From b8046e7b9a768f70881063c7e8c8361412492b9b Mon Sep 17 00:00:00 2001 From: wt Date: Fri, 9 Oct 2026 17:58:27 +0700 Subject: [PATCH] fix warnings in firefox addons --- AGENT.md | 2 +- README.md | 4 ++-- manifest.json | 7 +++++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/AGENT.md b/AGENT.md index 3e4e901..c799e1a 100644 --- a/AGENT.md +++ b/AGENT.md @@ -22,7 +22,7 @@ This repository contains the Firefox WebExtension **Proxy Switcher Fork By WT**. - Keep all configuration local. Do not add telemetry, remote requests, analytics, or external script dependencies. - Preserve the `browser.*` WebExtension API style in shared UI code. Firefox uses Manifest V2 and `proxy.onRequest`; Chromium uses Manifest V3, `chrome.proxy.settings`, and a PAC script. -- Keep the Firefox Android minimum version at 113 or newer when using the `gecko_android` manifest key. +- Keep the Firefox minimum at 140 and Firefox Android minimum at 142 when using built-in `data_collection_permissions` consent. - Keep the Firefox and Chromium manifests as separate build targets. Do not replace the Firefox proxy listener with the Chrome PAC implementation. - Proxy settings are domain-specific. A missing domain entry means direct connection; an entry with `enabled: false` is configured but disabled. - Keep popup and options theme behavior consistent. Supported theme values are `system`, `light`, and `dark`. diff --git a/README.md b/README.md index d0a673a..8b8e89c 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ The manifest requests these permissions: - `webRequest` and `webRequestBlocking` — provide proxy authentication credentials. - `` — apply the domain routing policy to web requests. -These permissions are used for proxy management. The extension does not collect or transmit data. +These permissions are used for proxy management. The manifest declares `data_collection_permissions.required` as `none`; the extension does not collect or transmit data. ## Installation @@ -66,7 +66,7 @@ For a normal install, use an XPI signed by Mozilla/AMO. Firefox may reject an un Firefox Android requires a signed extension package. Submit the build through [addons.mozilla.org/developers](https://addons.mozilla.org/developers/) and download the signed XPI after review, or follow Mozilla's [self-distributed extension instructions](https://extensionworkshop.com/documentation/publish/install-self-distributed/). The manifest includes `browser_specific_settings.gecko_android` so AMO can mark the extension as Android-compatible. -The manifest targets Firefox Android 113 or newer. The `proxy.onRequest` API is supported there, but the extension still needs to be tested on the target Firefox version and device. +The manifest targets Firefox 140+ on desktop and Firefox Android 142+. The `proxy.onRequest` API is supported there, but the extension still needs to be tested on the target Firefox version and device. ### Chrome and Chromium desktop diff --git a/manifest.json b/manifest.json index 2095026..b7ed4ab 100644 --- a/manifest.json +++ b/manifest.json @@ -36,10 +36,13 @@ "browser_specific_settings": { "gecko": { "id": "proxy-switcher-fork-by-wt@9c0b2d3d", - "strict_min_version": "91.1.0" + "strict_min_version": "140.0", + "data_collection_permissions": { + "required": ["none"] + } }, "gecko_android": { - "strict_min_version": "113.0" + "strict_min_version": "142.0" } } }