mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
Update Chromedriver to v114 (#19648)
This commit is contained in:
parent
329e4b75ed
commit
16dad66da9
@ -7,12 +7,12 @@ set -o pipefail
|
|||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
|
||||||
# To get the latest version, see <https://www.ubuntuupdates.org/ppa/google_chrome?dist=stable>
|
# To get the latest version, see <https://www.ubuntuupdates.org/ppa/google_chrome?dist=stable>
|
||||||
CHROME_VERSION='111.0.5563.64-1'
|
CHROME_VERSION='114.0.5735.133-1'
|
||||||
CHROME_BINARY="google-chrome-stable_${CHROME_VERSION}_amd64.deb"
|
CHROME_BINARY="google-chrome-stable_${CHROME_VERSION}_amd64.deb"
|
||||||
CHROME_BINARY_URL="https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/${CHROME_BINARY}"
|
CHROME_BINARY_URL="https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/${CHROME_BINARY}"
|
||||||
|
|
||||||
# To retrieve this checksum, run the `wget` and `shasum` commands below
|
# To retrieve this checksum, run the `wget` and `shasum` commands below
|
||||||
CHROME_BINARY_SHA512SUM='bbfd436c17d6f0554b91211ecf1324aeeac012f1d000d610f93956dbfb8387c0adb56f921c5b7bcc1833c49ab2abbd3bbc250001f650b3ca4f79cebe708c29ae'
|
CHROME_BINARY_SHA512SUM='0b1a18c44efb72ed3e69a5f78419ff5fa973df42b18a8becfcc3d4f6825957c637e9396d07756f910f2d9c7c85a3e2b64cc30cca18182ae8811feadd609f159d'
|
||||||
|
|
||||||
wget -O "${CHROME_BINARY}" -t 5 "${CHROME_BINARY_URL}"
|
wget -O "${CHROME_BINARY}" -t 5 "${CHROME_BINARY_URL}"
|
||||||
|
|
||||||
|
@ -81,6 +81,65 @@ async function defineAndRunBuildTasks() {
|
|||||||
// scuttle on production/tests environment only
|
// scuttle on production/tests environment only
|
||||||
const shouldScuttle = entryTask !== BUILD_TARGETS.DEV;
|
const shouldScuttle = entryTask !== BUILD_TARGETS.DEV;
|
||||||
|
|
||||||
|
let scuttleGlobalThisExceptions = [
|
||||||
|
// globals used by different mm deps outside of lm compartment
|
||||||
|
'toString',
|
||||||
|
'getComputedStyle',
|
||||||
|
'addEventListener',
|
||||||
|
'removeEventListener',
|
||||||
|
'ShadowRoot',
|
||||||
|
'HTMLElement',
|
||||||
|
'Element',
|
||||||
|
'pageXOffset',
|
||||||
|
'pageYOffset',
|
||||||
|
'visualViewport',
|
||||||
|
'Reflect',
|
||||||
|
'Set',
|
||||||
|
'Object',
|
||||||
|
'navigator',
|
||||||
|
'harden',
|
||||||
|
'console',
|
||||||
|
'Image', // Used by browser to generate notifications
|
||||||
|
// globals chromedriver needs to function
|
||||||
|
/cdc_[a-zA-Z0-9]+_[a-zA-Z]+/iu,
|
||||||
|
'performance',
|
||||||
|
'parseFloat',
|
||||||
|
'innerWidth',
|
||||||
|
'innerHeight',
|
||||||
|
'Symbol',
|
||||||
|
'Math',
|
||||||
|
'DOMRect',
|
||||||
|
'Number',
|
||||||
|
'Array',
|
||||||
|
'crypto',
|
||||||
|
'Function',
|
||||||
|
'Uint8Array',
|
||||||
|
'String',
|
||||||
|
'Promise',
|
||||||
|
'JSON',
|
||||||
|
'Date',
|
||||||
|
// globals sentry needs to function
|
||||||
|
'__SENTRY__',
|
||||||
|
'appState',
|
||||||
|
'extra',
|
||||||
|
'stateHooks',
|
||||||
|
'sentryHooks',
|
||||||
|
'sentry',
|
||||||
|
];
|
||||||
|
|
||||||
|
if (
|
||||||
|
entryTask === BUILD_TARGETS.TEST ||
|
||||||
|
entryTask === BUILD_TARGETS.TEST_DEV
|
||||||
|
) {
|
||||||
|
scuttleGlobalThisExceptions = [
|
||||||
|
...scuttleGlobalThisExceptions,
|
||||||
|
// more globals chromedriver needs to function
|
||||||
|
// in the future, more of the globals above can be put in this list
|
||||||
|
'Proxy',
|
||||||
|
'ret_nodes',
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
console.log(
|
console.log(
|
||||||
`Building lavamoat runtime file`,
|
`Building lavamoat runtime file`,
|
||||||
`(scuttling is ${shouldScuttle ? 'on' : 'off'})`,
|
`(scuttling is ${shouldScuttle ? 'on' : 'off'})`,
|
||||||
@ -89,52 +148,7 @@ async function defineAndRunBuildTasks() {
|
|||||||
// build lavamoat runtime file
|
// build lavamoat runtime file
|
||||||
await lavapack.buildRuntime({
|
await lavapack.buildRuntime({
|
||||||
scuttleGlobalThis: applyLavaMoat && shouldScuttle,
|
scuttleGlobalThis: applyLavaMoat && shouldScuttle,
|
||||||
scuttleGlobalThisExceptions: [
|
scuttleGlobalThisExceptions,
|
||||||
// globals used by different mm deps outside of lm compartment
|
|
||||||
'toString',
|
|
||||||
'getComputedStyle',
|
|
||||||
'addEventListener',
|
|
||||||
'removeEventListener',
|
|
||||||
'ShadowRoot',
|
|
||||||
'HTMLElement',
|
|
||||||
'Element',
|
|
||||||
'pageXOffset',
|
|
||||||
'pageYOffset',
|
|
||||||
'visualViewport',
|
|
||||||
'Reflect',
|
|
||||||
'Set',
|
|
||||||
'Object',
|
|
||||||
'navigator',
|
|
||||||
'harden',
|
|
||||||
'console',
|
|
||||||
'Image', // Used by browser to generate notifications
|
|
||||||
// globals chrome driver needs to function (test env)
|
|
||||||
/cdc_[a-zA-Z0-9]+_[a-zA-Z]+/iu,
|
|
||||||
'performance',
|
|
||||||
'parseFloat',
|
|
||||||
'innerWidth',
|
|
||||||
'innerHeight',
|
|
||||||
'Symbol',
|
|
||||||
'Math',
|
|
||||||
'DOMRect',
|
|
||||||
'Number',
|
|
||||||
'Array',
|
|
||||||
'crypto',
|
|
||||||
'Function',
|
|
||||||
'Uint8Array',
|
|
||||||
'String',
|
|
||||||
'Promise',
|
|
||||||
'JSON',
|
|
||||||
'Date',
|
|
||||||
'Proxy',
|
|
||||||
// globals sentry needs to function
|
|
||||||
'__SENTRY__',
|
|
||||||
'appState',
|
|
||||||
'extra',
|
|
||||||
'stateHooks',
|
|
||||||
'sentryHooks',
|
|
||||||
'sentry',
|
|
||||||
],
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -980,6 +980,7 @@
|
|||||||
"packages": {
|
"packages": {
|
||||||
"@lavamoat/allow-scripts>@npmcli/run-script>node-gyp>npmlog>are-we-there-yet": true,
|
"@lavamoat/allow-scripts>@npmcli/run-script>node-gyp>npmlog>are-we-there-yet": true,
|
||||||
"@lavamoat/allow-scripts>@npmcli/run-script>node-gyp>npmlog>gauge": true,
|
"@lavamoat/allow-scripts>@npmcli/run-script>node-gyp>npmlog>gauge": true,
|
||||||
|
"@storybook/addon-mdx-gfm>@storybook/node-logger>npmlog>console-control-strings": true,
|
||||||
"@storybook/react>@storybook/node-logger>npmlog>console-control-strings": true,
|
"@storybook/react>@storybook/node-logger>npmlog>console-control-strings": true,
|
||||||
"nyc>yargs>set-blocking": true
|
"nyc>yargs>set-blocking": true
|
||||||
}
|
}
|
||||||
@ -1008,6 +1009,9 @@
|
|||||||
"@lavamoat/allow-scripts>@npmcli/run-script>node-gyp>npmlog>gauge>aproba": true,
|
"@lavamoat/allow-scripts>@npmcli/run-script>node-gyp>npmlog>gauge>aproba": true,
|
||||||
"@lavamoat/allow-scripts>@npmcli/run-script>node-gyp>npmlog>gauge>string-width": true,
|
"@lavamoat/allow-scripts>@npmcli/run-script>node-gyp>npmlog>gauge>string-width": true,
|
||||||
"@lavamoat/allow-scripts>@npmcli/run-script>node-gyp>npmlog>gauge>strip-ansi": true,
|
"@lavamoat/allow-scripts>@npmcli/run-script>node-gyp>npmlog>gauge>strip-ansi": true,
|
||||||
|
"@storybook/addon-mdx-gfm>@storybook/node-logger>npmlog>console-control-strings": true,
|
||||||
|
"@storybook/addon-mdx-gfm>@storybook/node-logger>npmlog>gauge>has-unicode": true,
|
||||||
|
"@storybook/addon-mdx-gfm>@storybook/node-logger>npmlog>gauge>wide-align": true,
|
||||||
"@storybook/react>@storybook/node-logger>npmlog>console-control-strings": true,
|
"@storybook/react>@storybook/node-logger>npmlog>console-control-strings": true,
|
||||||
"@storybook/react>@storybook/node-logger>npmlog>gauge>has-unicode": true,
|
"@storybook/react>@storybook/node-logger>npmlog>gauge>has-unicode": true,
|
||||||
"@storybook/react>@storybook/node-logger>npmlog>gauge>wide-align": true,
|
"@storybook/react>@storybook/node-logger>npmlog>gauge>wide-align": true,
|
||||||
@ -1133,11 +1137,33 @@
|
|||||||
"@metamask/jazzicon>color>color-convert>color-name": true
|
"@metamask/jazzicon>color>color-convert>color-name": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"@sentry/cli>mkdirp": {
|
||||||
|
"builtin": {
|
||||||
|
"fs": true,
|
||||||
|
"path.dirname": true,
|
||||||
|
"path.resolve": true
|
||||||
|
}
|
||||||
|
},
|
||||||
"@storybook/addon-knobs>qs": {
|
"@storybook/addon-knobs>qs": {
|
||||||
"packages": {
|
"packages": {
|
||||||
"string.prototype.matchall>side-channel": true
|
"string.prototype.matchall>side-channel": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"@storybook/addon-mdx-gfm>@storybook/node-logger>npmlog>gauge>has-unicode": {
|
||||||
|
"builtin": {
|
||||||
|
"os.type": true
|
||||||
|
},
|
||||||
|
"globals": {
|
||||||
|
"process.env.LANG": true,
|
||||||
|
"process.env.LC_ALL": true,
|
||||||
|
"process.env.LC_CTYPE": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@storybook/addon-mdx-gfm>@storybook/node-logger>npmlog>gauge>wide-align": {
|
||||||
|
"packages": {
|
||||||
|
"yargs>string-width": true
|
||||||
|
}
|
||||||
|
},
|
||||||
"@storybook/core>@storybook/core-server>x-default-browser>default-browser-id>untildify>os-homedir": {
|
"@storybook/core>@storybook/core-server>x-default-browser>default-browser-id>untildify>os-homedir": {
|
||||||
"builtin": {
|
"builtin": {
|
||||||
"os.homedir": true
|
"os.homedir": true
|
||||||
@ -4869,9 +4895,20 @@
|
|||||||
},
|
},
|
||||||
"packages": {
|
"packages": {
|
||||||
"@storybook/core>@storybook/core-server>x-default-browser>default-browser-id>untildify>os-homedir": true,
|
"@storybook/core>@storybook/core-server>x-default-browser>default-browser-id>untildify>os-homedir": true,
|
||||||
|
"gulp-watch>chokidar>fsevents>node-pre-gyp>nopt>osenv>os-homedir": true,
|
||||||
"gulp-watch>chokidar>fsevents>node-pre-gyp>nopt>osenv>os-tmpdir": true
|
"gulp-watch>chokidar>fsevents>node-pre-gyp>nopt>osenv>os-tmpdir": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"gulp-watch>chokidar>fsevents>node-pre-gyp>nopt>osenv>os-homedir": {
|
||||||
|
"builtin": {
|
||||||
|
"os.homedir": true
|
||||||
|
},
|
||||||
|
"globals": {
|
||||||
|
"process.env": true,
|
||||||
|
"process.getuid": true,
|
||||||
|
"process.platform": true
|
||||||
|
}
|
||||||
|
},
|
||||||
"gulp-watch>chokidar>fsevents>node-pre-gyp>nopt>osenv>os-tmpdir": {
|
"gulp-watch>chokidar>fsevents>node-pre-gyp>nopt>osenv>os-tmpdir": {
|
||||||
"globals": {
|
"globals": {
|
||||||
"process.env.SystemRoot": true,
|
"process.env.SystemRoot": true,
|
||||||
@ -4893,9 +4930,34 @@
|
|||||||
"setTimeout": true
|
"setTimeout": true
|
||||||
},
|
},
|
||||||
"packages": {
|
"packages": {
|
||||||
|
"gulp-watch>chokidar>fsevents>node-pre-gyp>rimraf>glob": true,
|
||||||
"nyc>glob": true
|
"nyc>glob": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"gulp-watch>chokidar>fsevents>node-pre-gyp>rimraf>glob": {
|
||||||
|
"builtin": {
|
||||||
|
"assert": true,
|
||||||
|
"events.EventEmitter": true,
|
||||||
|
"fs": true,
|
||||||
|
"path.join": true,
|
||||||
|
"path.resolve": true,
|
||||||
|
"util": true
|
||||||
|
},
|
||||||
|
"globals": {
|
||||||
|
"console.error": true,
|
||||||
|
"process.cwd": true,
|
||||||
|
"process.nextTick": true,
|
||||||
|
"process.platform": true
|
||||||
|
},
|
||||||
|
"packages": {
|
||||||
|
"eslint>minimatch": true,
|
||||||
|
"gulp-watch>path-is-absolute": true,
|
||||||
|
"nyc>glob>fs.realpath": true,
|
||||||
|
"nyc>glob>inflight": true,
|
||||||
|
"pump>once": true,
|
||||||
|
"pumpify>inherits": true
|
||||||
|
}
|
||||||
|
},
|
||||||
"gulp-watch>chokidar>fsevents>node-pre-gyp>semver": {
|
"gulp-watch>chokidar>fsevents>node-pre-gyp>semver": {
|
||||||
"globals": {
|
"globals": {
|
||||||
"console": true,
|
"console": true,
|
||||||
@ -8184,14 +8246,7 @@
|
|||||||
"path.dirname": true
|
"path.dirname": true
|
||||||
},
|
},
|
||||||
"packages": {
|
"packages": {
|
||||||
"stylelint>file-entry-cache>flat-cache>write>mkdirp": true
|
"@sentry/cli>mkdirp": true
|
||||||
}
|
|
||||||
},
|
|
||||||
"stylelint>file-entry-cache>flat-cache>write>mkdirp": {
|
|
||||||
"builtin": {
|
|
||||||
"fs": true,
|
|
||||||
"path.dirname": true,
|
|
||||||
"path.resolve": true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"stylelint>global-modules": {
|
"stylelint>global-modules": {
|
||||||
|
@ -444,7 +444,7 @@
|
|||||||
"browserify": "^16.5.1",
|
"browserify": "^16.5.1",
|
||||||
"chalk": "^4.1.2",
|
"chalk": "^4.1.2",
|
||||||
"chokidar": "^3.5.3",
|
"chokidar": "^3.5.3",
|
||||||
"chromedriver": "^111.0.0",
|
"chromedriver": "^114.0.0",
|
||||||
"concurrently": "^7.6.0",
|
"concurrently": "^7.6.0",
|
||||||
"copy-webpack-plugin": "^6.0.3",
|
"copy-webpack-plugin": "^6.0.3",
|
||||||
"cross-spawn": "^7.0.3",
|
"cross-spawn": "^7.0.3",
|
||||||
|
18
yarn.lock
18
yarn.lock
@ -10180,7 +10180,7 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"axios@npm:^1.2.1":
|
"axios@npm:^1.4.0":
|
||||||
version: 1.4.0
|
version: 1.4.0
|
||||||
resolution: "axios@npm:1.4.0"
|
resolution: "axios@npm:1.4.0"
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -12006,20 +12006,20 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"chromedriver@npm:^111.0.0":
|
"chromedriver@npm:^114.0.0":
|
||||||
version: 111.0.0
|
version: 114.0.2
|
||||||
resolution: "chromedriver@npm:111.0.0"
|
resolution: "chromedriver@npm:114.0.2"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@testim/chrome-version": ^1.1.3
|
"@testim/chrome-version": ^1.1.3
|
||||||
axios: ^1.2.1
|
axios: ^1.4.0
|
||||||
compare-versions: ^5.0.1
|
compare-versions: ^5.0.3
|
||||||
extract-zip: ^2.0.1
|
extract-zip: ^2.0.1
|
||||||
https-proxy-agent: ^5.0.1
|
https-proxy-agent: ^5.0.1
|
||||||
proxy-from-env: ^1.1.0
|
proxy-from-env: ^1.1.0
|
||||||
tcp-port-used: ^1.0.1
|
tcp-port-used: ^1.0.1
|
||||||
bin:
|
bin:
|
||||||
chromedriver: bin/chromedriver
|
chromedriver: bin/chromedriver
|
||||||
checksum: 3331d0d2c84aa90c9cfb6945067b4634806e823452d345feedc20cd1c940a9179eb7f2b5067e1bdbceba47c9acc719fd876235ba972d3987f73d95550897fbed
|
checksum: fe8b9fa768e5689e8d2f2c76d31042cf7fe843a387c746e1fc68fce068817f26754c8dd4f825c0b416444ff94bdc6b522a5102d776737475622bf727b33ada38
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
@ -12580,7 +12580,7 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"compare-versions@npm:^5.0.1":
|
"compare-versions@npm:^5.0.3":
|
||||||
version: 5.0.3
|
version: 5.0.3
|
||||||
resolution: "compare-versions@npm:5.0.3"
|
resolution: "compare-versions@npm:5.0.3"
|
||||||
checksum: f66a4bb6ef8ff32031cc92c04dea4bbead039e72a7f6c7df7ef05f5a42ddca9202f8875b7449add54181e73b89f039662a8760c8db0ab036c4e8f653a7cd29c1
|
checksum: f66a4bb6ef8ff32031cc92c04dea4bbead039e72a7f6c7df7ef05f5a42ddca9202f8875b7449add54181e73b89f039662a8760c8db0ab036c4e8f653a7cd29c1
|
||||||
@ -24456,7 +24456,7 @@ __metadata:
|
|||||||
browserify: ^16.5.1
|
browserify: ^16.5.1
|
||||||
chalk: ^4.1.2
|
chalk: ^4.1.2
|
||||||
chokidar: ^3.5.3
|
chokidar: ^3.5.3
|
||||||
chromedriver: ^111.0.0
|
chromedriver: ^114.0.0
|
||||||
classnames: ^2.2.6
|
classnames: ^2.2.6
|
||||||
concurrently: ^7.6.0
|
concurrently: ^7.6.0
|
||||||
copy-to-clipboard: ^3.0.8
|
copy-to-clipboard: ^3.0.8
|
||||||
|
Loading…
Reference in New Issue
Block a user