Merge pull request #131461 from primeos/chromium-backport
[21.05] chromium: 91.0.4472.164 -> 92.0.4515.107
This commit is contained in:
@@ -80,12 +80,8 @@ mapAttrs (channel: chromiumPkg: makeTest rec {
|
|||||||
binary = pname
|
binary = pname
|
||||||
# Add optional CLI options:
|
# Add optional CLI options:
|
||||||
options = []
|
options = []
|
||||||
major_version = "${versions.major (getVersion chromiumPkg.name)}"
|
|
||||||
if major_version > "91":
|
|
||||||
# To avoid a GPU crash:
|
|
||||||
options += ["--use-gl=angle", "--use-angle=swiftshader"]
|
|
||||||
options.append("file://${startupHTML}")
|
|
||||||
# Launch the process:
|
# Launch the process:
|
||||||
|
options.append("file://${startupHTML}")
|
||||||
machine.succeed(ru(f'ulimit -c unlimited; {binary} {shlex.join(options)} & disown'))
|
machine.succeed(ru(f'ulimit -c unlimited; {binary} {shlex.join(options)} & disown'))
|
||||||
if binary.startswith("google-chrome"):
|
if binary.startswith("google-chrome"):
|
||||||
# Need to click away the first window:
|
# Need to click away the first window:
|
||||||
@@ -243,6 +239,16 @@ mapAttrs (channel: chromiumPkg: makeTest rec {
|
|||||||
machine.wait_for_text("Graphics Feature Status")
|
machine.wait_for_text("Graphics Feature Status")
|
||||||
|
|
||||||
|
|
||||||
|
with test_new_win("version_info", "chrome://version", "About Version") as clipboard:
|
||||||
|
filters = [
|
||||||
|
r"${chromiumPkg.version} \(Official Build",
|
||||||
|
]
|
||||||
|
if not all(
|
||||||
|
re.search(filter, clipboard) for filter in filters
|
||||||
|
):
|
||||||
|
assert False, "Version info not correct."
|
||||||
|
|
||||||
|
|
||||||
machine.shutdown()
|
machine.shutdown()
|
||||||
'';
|
'';
|
||||||
}) channelMap
|
}) channelMap
|
||||||
|
|||||||
@@ -62,9 +62,9 @@ mkChromiumDerivation (base: rec {
|
|||||||
-e '/\[Desktop Entry\]/a\' \
|
-e '/\[Desktop Entry\]/a\' \
|
||||||
-e 'StartupWMClass=chromium-browser' \
|
-e 'StartupWMClass=chromium-browser' \
|
||||||
$out/share/applications/chromium-browser.desktop
|
$out/share/applications/chromium-browser.desktop
|
||||||
'' + lib.optionalString (channel != "stable") ''
|
'' + ''
|
||||||
cp -v "$buildPath/crashpad_handler" "$libExecPath/"
|
cp -v "$buildPath/crashpad_handler" "$libExecPath/"
|
||||||
'';
|
''; # TODO: Merge
|
||||||
|
|
||||||
passthru = { inherit sandboxExecutableName; };
|
passthru = { inherit sandboxExecutableName; };
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
{ newScope, config, stdenv, fetchurl, makeWrapper
|
{ newScope, config, stdenv, fetchurl, makeWrapper
|
||||||
, llvmPackages_11, llvmPackages_12, ed, gnugrep, coreutils, xdg-utils
|
, llvmPackages_11, llvmPackages_12, ed, gnugrep, coreutils, xdg-utils
|
||||||
, glib, gtk3, gnome, gsettings-desktop-schemas, gn, fetchgit
|
, glib, gtk3, gnome, gsettings-desktop-schemas, gn, fetchgit
|
||||||
, libva ? null
|
, libva, pipewire, wayland
|
||||||
, pipewire
|
|
||||||
, gcc, nspr, nss, runCommand
|
, gcc, nspr, nss, runCommand
|
||||||
, lib
|
, lib
|
||||||
|
|
||||||
@@ -165,7 +164,7 @@ in stdenv.mkDerivation {
|
|||||||
|
|
||||||
buildCommand = let
|
buildCommand = let
|
||||||
browserBinary = "${chromiumWV}/libexec/chromium/chromium";
|
browserBinary = "${chromiumWV}/libexec/chromium/chromium";
|
||||||
libPath = lib.makeLibraryPath [ libva pipewire ];
|
libPath = lib.makeLibraryPath [ libva pipewire wayland gtk3 ];
|
||||||
|
|
||||||
in with lib; ''
|
in with lib; ''
|
||||||
mkdir -p "$out/bin"
|
mkdir -p "$out/bin"
|
||||||
|
|||||||
@@ -1,20 +1,20 @@
|
|||||||
{
|
{
|
||||||
"stable": {
|
"stable": {
|
||||||
"version": "91.0.4472.164",
|
"version": "92.0.4515.107",
|
||||||
"sha256": "1g96hk72ds2b0aymgw7yjr0akgx7mkp17i99nk511ncnmni6zrc4",
|
"sha256": "04khamgxwzgbm2rn7is53j5g55vm5qfyz7zwxqc51sd429jsqlbf",
|
||||||
"sha256bin64": "1j6p2gqlikaibcwa40k46dsm9jlrpbj21lv1snnjw8apjnjfd2wr",
|
"sha256bin64": "0vfg8wjf9i1yz8nlxsij8fmqq7qr4nsccaihppqm3axpk91mmdsj",
|
||||||
"deps": {
|
"deps": {
|
||||||
"gn": {
|
"gn": {
|
||||||
"version": "2021-04-06",
|
"version": "2021-05-07",
|
||||||
"url": "https://gn.googlesource.com/gn",
|
"url": "https://gn.googlesource.com/gn",
|
||||||
"rev": "dba01723a441c358d843a575cb7720d54ddcdf92",
|
"rev": "39a87c0b36310bdf06b692c098f199a0d97fc810",
|
||||||
"sha256": "199xkks67qrn0xa5fhp24waq2vk8qb78a96cb3kdd8v1hgacgb8x"
|
"sha256": "0x63jr5hssm9dl6la4q5ahy669k4gxvbapqxi5w32vv107jrj8v4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"chromedriver": {
|
"chromedriver": {
|
||||||
"version": "91.0.4472.101",
|
"version": "92.0.4515.43",
|
||||||
"sha256_linux": "0dzx565z2rd0y4i57rv5kd7dsm69sffza96y3c773hqaghm4y1ng",
|
"sha256_linux": "1s22y892py99kzcb2j3gafmbz9jrr2lfhhh8hp3ggn2i37yxs8bw",
|
||||||
"sha256_darwin": "0nff1jmmrn6a4clfvhyzrhfp8hx85z72563jwk28apflqmnm0k68"
|
"sha256_darwin": "1cjg4r4z5m74c2si4m25rj3z44n0iimhqzb1l3l3y0a3q024bi8f"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"beta": {
|
"beta": {
|
||||||
|
|||||||
Reference in New Issue
Block a user