Merge pull request #16249 from Snuffleupagus/Chrome-88

[api-minor] Update the minimum supported Google Chrome version
This commit is contained in:
Tim van der Meij 2023-04-10 15:41:42 +02:00 committed by GitHub
commit 8398cabd17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,7 +79,7 @@ const config = JSON.parse(fs.readFileSync(CONFIG_FILE).toString());
const ENV_TARGETS = [ const ENV_TARGETS = [
"last 2 versions", "last 2 versions",
"Chrome >= 87", "Chrome >= 88",
"Firefox ESR", "Firefox ESR",
"Safari >= 14.1", "Safari >= 14.1",
"Node >= 16", "Node >= 16",
@ -1312,6 +1312,9 @@ gulp.task(
...COMMON_WEB_FILES, ...COMMON_WEB_FILES,
"!web/images/toolbarButton-openFile.svg", "!web/images/toolbarButton-openFile.svg",
]; ];
const MOZCENTRAL_AUTOPREFIXER_CONFIG = {
overrideBrowserslist: ["last 1 firefox versions"],
};
// Clear out everything in the firefox extension build directory // Clear out everything in the firefox extension build directory
rimraf.sync(MOZCENTRAL_DIR); rimraf.sync(MOZCENTRAL_DIR);
@ -1353,23 +1356,11 @@ gulp.task(
), ),
preprocessCSS("web/viewer.css", defines) preprocessCSS("web/viewer.css", defines)
.pipe( .pipe(postcss([autoprefixer(MOZCENTRAL_AUTOPREFIXER_CONFIG)]))
postcss([
autoprefixer({
overrideBrowserslist: ["last 1 firefox versions"],
}),
])
)
.pipe(gulp.dest(MOZCENTRAL_CONTENT_DIR + "web")), .pipe(gulp.dest(MOZCENTRAL_CONTENT_DIR + "web")),
preprocessCSS("web/viewer-geckoview.css", defines) preprocessCSS("web/viewer-geckoview.css", defines)
.pipe( .pipe(postcss([autoprefixer(MOZCENTRAL_AUTOPREFIXER_CONFIG)]))
postcss([
autoprefixer({
overrideBrowserslist: ["last 1 firefox versions"],
}),
])
)
.pipe(gulp.dest(MOZCENTRAL_CONTENT_DIR + "web")), .pipe(gulp.dest(MOZCENTRAL_CONTENT_DIR + "web")),
gulp gulp
@ -1458,7 +1449,7 @@ gulp.task(
.pipe( .pipe(
postcss([ postcss([
postcssDirPseudoClass(), postcssDirPseudoClass(),
autoprefixer({ overrideBrowserslist: ["Chrome >= 87"] }), autoprefixer(AUTOPREFIXER_CONFIG),
]) ])
) )
.pipe(gulp.dest(CHROME_BUILD_CONTENT_DIR + "web")), .pipe(gulp.dest(CHROME_BUILD_CONTENT_DIR + "web")),