Merge pull request #13379 from Snuffleupagus/update-compat
[api-minor] Update minimum supported browser versions (PR 13361 follow-up)
This commit is contained in:
commit
438cf1e438
@ -79,10 +79,9 @@ const config = JSON.parse(fs.readFileSync(CONFIG_FILE).toString());
|
|||||||
const AUTOPREFIXER_CONFIG = {
|
const AUTOPREFIXER_CONFIG = {
|
||||||
overrideBrowserslist: [
|
overrideBrowserslist: [
|
||||||
"last 2 versions",
|
"last 2 versions",
|
||||||
"Chrome >= 49", // Last supported on Windows XP
|
"Chrome >= 68",
|
||||||
"Firefox >= 52", // Last supported on Windows XP
|
|
||||||
"Firefox ESR",
|
"Firefox ESR",
|
||||||
"Safari >= 10",
|
"Safari >= 11.1",
|
||||||
"> 0.5%",
|
"> 0.5%",
|
||||||
"not IE > 0",
|
"not IE > 0",
|
||||||
"not dead",
|
"not dead",
|
||||||
@ -1321,7 +1320,7 @@ gulp.task(
|
|||||||
),
|
),
|
||||||
preprocessCSS("web/viewer.css", "chrome", defines, true)
|
preprocessCSS("web/viewer.css", "chrome", defines, true)
|
||||||
.pipe(
|
.pipe(
|
||||||
postcss([autoprefixer({ overrideBrowserslist: ["chrome >= 49"] })])
|
postcss([autoprefixer({ overrideBrowserslist: ["chrome >= 68"] })])
|
||||||
)
|
)
|
||||||
.pipe(gulp.dest(CHROME_BUILD_CONTENT_DIR + "web")),
|
.pipe(gulp.dest(CHROME_BUILD_CONTENT_DIR + "web")),
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ if (
|
|||||||
})();
|
})();
|
||||||
|
|
||||||
// Provides support for Object.fromEntries in legacy browsers.
|
// Provides support for Object.fromEntries in legacy browsers.
|
||||||
// Support: Firefox<63, Chrome<73, Safari<12.1
|
// Support: Firefox<63, Chrome<73, Safari<12.1, Node.js<12.0.0
|
||||||
(function checkObjectFromEntries() {
|
(function checkObjectFromEntries() {
|
||||||
if (Object.fromEntries) {
|
if (Object.fromEntries) {
|
||||||
return;
|
return;
|
||||||
@ -61,7 +61,7 @@ if (
|
|||||||
|
|
||||||
// Provides support for *recent* additions to the Promise specification,
|
// Provides support for *recent* additions to the Promise specification,
|
||||||
// however basic Promise support is assumed to be available natively.
|
// however basic Promise support is assumed to be available natively.
|
||||||
// Support: Firefox<71, Chrome<76, Safari<13
|
// Support: Firefox<71, Chrome<76, Safari<13, Node.js<12.9.0
|
||||||
(function checkPromise() {
|
(function checkPromise() {
|
||||||
if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("IMAGE_DECODERS")) {
|
if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("IMAGE_DECODERS")) {
|
||||||
// The current image decoders are synchronous, hence `Promise` shouldn't
|
// The current image decoders are synchronous, hence `Promise` shouldn't
|
||||||
@ -74,7 +74,7 @@ if (
|
|||||||
globalThis.Promise = require("core-js/es/promise/index.js");
|
globalThis.Promise = require("core-js/es/promise/index.js");
|
||||||
})();
|
})();
|
||||||
|
|
||||||
// Support: Safari<10.1, Node.js
|
// Support: Node.js
|
||||||
(function checkReadableStream() {
|
(function checkReadableStream() {
|
||||||
if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("IMAGE_DECODERS")) {
|
if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("IMAGE_DECODERS")) {
|
||||||
// The current image decoders are synchronous, hence `ReadableStream`
|
// The current image decoders are synchronous, hence `ReadableStream`
|
||||||
@ -102,40 +102,4 @@ if (
|
|||||||
}
|
}
|
||||||
globalThis.ReadableStream = require("web-streams-polyfill/dist/ponyfill.js").ReadableStream;
|
globalThis.ReadableStream = require("web-streams-polyfill/dist/ponyfill.js").ReadableStream;
|
||||||
})();
|
})();
|
||||||
|
|
||||||
// Provides support for String.prototype.padStart in legacy browsers.
|
|
||||||
// Support: Chrome<57, Safari<10
|
|
||||||
(function checkStringPadStart() {
|
|
||||||
if (String.prototype.padStart) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
require("core-js/es/string/pad-start.js");
|
|
||||||
})();
|
|
||||||
|
|
||||||
// Provides support for String.prototype.padEnd in legacy browsers.
|
|
||||||
// Support: Chrome<57, Safari<10
|
|
||||||
(function checkStringPadEnd() {
|
|
||||||
if (String.prototype.padEnd) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
require("core-js/es/string/pad-end.js");
|
|
||||||
})();
|
|
||||||
|
|
||||||
// Provides support for Object.values in legacy browsers.
|
|
||||||
// Support: Chrome<54, Safari<10.1
|
|
||||||
(function checkObjectValues() {
|
|
||||||
if (Object.values) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Object.values = require("core-js/es/object/values.js");
|
|
||||||
})();
|
|
||||||
|
|
||||||
// Provides support for Object.entries in legacy browsers.
|
|
||||||
// Support: Chrome<54, Safari<10.1
|
|
||||||
(function checkObjectEntries() {
|
|
||||||
if (Object.entries) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Object.entries = require("core-js/es/object/entries.js");
|
|
||||||
})();
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user