Raise minimum versions of browsers

For the following reasons:

- Support for CSS `gap`, so as to remove the need to
  fall back onto classic popup panel, and thus making
  it possible to fully remove long-ago deprecated
  classic panel (announced in 1.27.0)[1]:
  https://developer.mozilla.org/en-US/docs/Web/CSS/gap

- Support for dynamic import:
  https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import

Firefox's minimum version is raised to 68 because it's
the oldest ESR version supporting the features above.
From now on, minimum version of Firefox will always be
an ESR one.

---

[1] https://github.com/gorhill/uBlock/releases/tag/1.27.0
This commit is contained in:
Raymond Hill 2022-01-28 12:02:56 -05:00
parent f98b70d1c0
commit b4911e2d7c
No known key found for this signature in database
GPG key ID: 25E1490B761470C2
4 changed files with 6 additions and 15 deletions

View file

@ -70,7 +70,7 @@
}, },
"incognito": "split", "incognito": "split",
"manifest_version": 2, "manifest_version": 2,
"minimum_chrome_version": "61.0", "minimum_chrome_version": "66.0",
"name": "uBlock Origin", "name": "uBlock Origin",
"options_ui": { "options_ui": {
"page": "dashboard.html", "page": "dashboard.html",

View file

@ -15,7 +15,7 @@
"browser_specific_settings": { "browser_specific_settings": {
"gecko": { "gecko": {
"id": "uBlock0@raymondhill.net", "id": "uBlock0@raymondhill.net",
"strict_min_version": "60.0" "strict_min_version": "68.0"
} }
}, },
"commands": { "commands": {

View file

@ -69,7 +69,7 @@
}, },
"incognito": "split", "incognito": "split",
"manifest_version": 2, "manifest_version": 2,
"minimum_opera_version": "48.0", "minimum_opera_version": "53.0",
"name": "uBlock Origin", "name": "uBlock Origin",
"options_page": "dashboard.html", "options_page": "dashboard.html",
"permissions": [ "permissions": [

View file

@ -487,19 +487,10 @@ contextMenu.update();
// default UI according to platform. // default UI according to platform.
if ( if (
browser.browserAction instanceof Object && browser.browserAction instanceof Object &&
browser.browserAction.setPopup instanceof Function browser.browserAction.setPopup instanceof Function &&
µb.hiddenSettings.uiFlavor === 'classic'
) { ) {
const env = vAPI.webextFlavor; browser.browserAction.setPopup({ popup: 'popup.html' });
if (
µb.hiddenSettings.uiFlavor === 'classic' || (
µb.hiddenSettings.uiFlavor === 'unset' && (
env.soup.has('chromium') && env.major < 66 ||
env.soup.has('firefox') && env.major < 68
)
)
) {
browser.browserAction.setPopup({ popup: 'popup.html' });
}
} }
// https://github.com/uBlockOrigin/uBlock-issues/issues/717 // https://github.com/uBlockOrigin/uBlock-issues/issues/717