summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorjk2021-03-31 20:02:31 -0500
committerjk2021-03-31 20:02:31 -0500
commite2ad32336c9c5ae3aa0328ea15beb52824181df5 (patch)
tree7dc4c008569f439623f94981c3433ad92010b791
parentf0bea21e1636f1d753adad01b238757a4b644e7c (diff)
downloadaur-e2ad32336c9c5ae3aa0328ea15beb52824181df5.tar.gz
upgpkg: ungoogled-chromium 89.0.4389.114-1
upstream release
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD15
-rw-r--r--chromium-fix-libva-redef.patch86
-rw-r--r--x11-ozone-fix-two-edge-cases.patch135
4 files changed, 103 insertions, 149 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 11b9d6b96d6e..3d58ad3fb3ac 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = ungoogled-chromium
pkgdesc = A lightweight approach to removing Google web service dependency
- pkgver = 89.0.4389.90
- pkgrel = 3
+ pkgver = 89.0.4389.114
+ pkgrel = 1
url = https://github.com/Eloston/ungoogled-chromium
arch = x86_64
license = BSD
@@ -52,24 +52,24 @@ pkgbase = ungoogled-chromium
optdepends = kwallet: for storing passwords in KWallet on KDE desktops
provides = chromium
conflicts = chromium
- source = https://commondatastorage.googleapis.com/chromium-browser-official/chromium-89.0.4389.90.tar.xz
- source = ungoogled-chromium-89.0.4389.90-1.tar.gz::https://github.com/Eloston/ungoogled-chromium/archive/89.0.4389.90-1.tar.gz
+ source = https://commondatastorage.googleapis.com/chromium-browser-official/chromium-89.0.4389.114.tar.xz
+ source = ungoogled-chromium-89.0.4389.114-1.tar.gz::https://github.com/Eloston/ungoogled-chromium/archive/89.0.4389.114-1.tar.gz
source = https://github.com/foutrelis/chromium-launcher/archive/v7/chromium-launcher-7.tar.gz
source = https://github.com/stha09/chromium-patches/releases/download/chromium-89-patchset-7/chromium-89-patchset-7.tar.xz
source = add-dependency-on-opus-in-webcodecs.patch
- source = x11-ozone-fix-two-edge-cases.patch
source = chromium-drirc-disable-10bpc-color-configs.conf
source = chromium-glibc-2.33.patch
+ source = chromium-fix-libva-redef.patch
source = wayland-egl.patch
source = use-oauth2-client-switches-as-default.patch
- sha256sums = 11c6089c5fdd921216aa4eb34b52818a9b091cad655a24aed0982d29e65b279a
- sha256sums = f18996580d89d48e9f140c072343df7259b3b5193eafc4b82877c7e8efb769da
+ sha256sums = f2f0abe9697a220a8545df74d832c6c8d85a4fb11845e7e398752d746e72ed00
+ sha256sums = 38bc4f73356caaa23d7f6b9d2961f9241f8e0fb212f3ab11bf88dca1db5ca3ee
sha256sums = 86859c11cfc8ba106a3826479c0bc759324a62150b271dd35d1a0f96e890f52f
sha256sums = f8b1558f6c87b33423da854d42f0f69d47885a96d6bf6ce7f26373e93d47442f
sha256sums = b86b11de8db438c47f0a84c7956740f648d21035f4ee46bfbd50c3348d369121
- sha256sums = 9e4743bdeaf5b668659ad53400e3977006916aac3a7ba045bbc750b7b4cbf274
sha256sums = babda4f5c1179825797496898d77334ac067149cac03d797ab27ac69671a7feb
sha256sums = 2fccecdcd4509d4c36af873988ca9dbcba7fdb95122894a9fdf502c33a1d7a4b
+ sha256sums = de9eb3612d44616a500c2eccdffac814eb90ad9a868cc1030d17fc6783d544e2
sha256sums = 34d08ea93cb4762cb33c7cffe931358008af32265fc720f2762f0179c3973574
sha256sums = e393174d7695d0bafed69e868c5fbfecf07aa6969f3b64596d0bae8b067e1711
diff --git a/PKGBUILD b/PKGBUILD
index 1c779517b31d..1e15d67d9765 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,8 +9,8 @@
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
pkgname=ungoogled-chromium
-pkgver=89.0.4389.90
-pkgrel=3
+pkgver=89.0.4389.114
+pkgrel=1
_launcher_ver=7
_gcc_patchset=7
_pkgname=$(echo $pkgname | cut -d\- -f1-2)
@@ -38,19 +38,19 @@ source=(https://commondatastorage.googleapis.com/chromium-browser-official/chrom
https://github.com/foutrelis/chromium-launcher/archive/v$_launcher_ver/chromium-launcher-$_launcher_ver.tar.gz
https://github.com/stha09/chromium-patches/releases/download/chromium-${pkgver%%.*}-patchset-$_gcc_patchset/chromium-${pkgver%%.*}-patchset-$_gcc_patchset.tar.xz
add-dependency-on-opus-in-webcodecs.patch
- x11-ozone-fix-two-edge-cases.patch
chromium-drirc-disable-10bpc-color-configs.conf
chromium-glibc-2.33.patch
+ chromium-fix-libva-redef.patch
wayland-egl.patch
use-oauth2-client-switches-as-default.patch)
-sha256sums=('11c6089c5fdd921216aa4eb34b52818a9b091cad655a24aed0982d29e65b279a'
- 'f18996580d89d48e9f140c072343df7259b3b5193eafc4b82877c7e8efb769da'
+sha256sums=('f2f0abe9697a220a8545df74d832c6c8d85a4fb11845e7e398752d746e72ed00'
+ '38bc4f73356caaa23d7f6b9d2961f9241f8e0fb212f3ab11bf88dca1db5ca3ee'
'86859c11cfc8ba106a3826479c0bc759324a62150b271dd35d1a0f96e890f52f'
'f8b1558f6c87b33423da854d42f0f69d47885a96d6bf6ce7f26373e93d47442f'
'b86b11de8db438c47f0a84c7956740f648d21035f4ee46bfbd50c3348d369121'
- '9e4743bdeaf5b668659ad53400e3977006916aac3a7ba045bbc750b7b4cbf274'
'babda4f5c1179825797496898d77334ac067149cac03d797ab27ac69671a7feb'
'2fccecdcd4509d4c36af873988ca9dbcba7fdb95122894a9fdf502c33a1d7a4b'
+ 'de9eb3612d44616a500c2eccdffac814eb90ad9a868cc1030d17fc6783d544e2'
'34d08ea93cb4762cb33c7cffe931358008af32265fc720f2762f0179c3973574'
'e393174d7695d0bafed69e868c5fbfecf07aa6969f3b64596d0bae8b067e1711')
@@ -101,6 +101,9 @@ prepare() {
# https://crbug.com/1164975
patch -Np1 -i ../chromium-glibc-2.33.patch
+ # https://github.com/kiss-community/repo-community/issues/246
+ patch -Np1 -i ../chromium-fix-libva-redef.patch
+
# Upstream fixes
patch -Np1 -i ../add-dependency-on-opus-in-webcodecs.patch
patch -Np1 -i ../x11-ozone-fix-two-edge-cases.patch
diff --git a/chromium-fix-libva-redef.patch b/chromium-fix-libva-redef.patch
new file mode 100644
index 000000000000..693b493bb6d8
--- /dev/null
+++ b/chromium-fix-libva-redef.patch
@@ -0,0 +1,86 @@
+--- a/third_party/libva_protected_content/va_protected_content.h
++++ b/third_party/libva_protected_content/va_protected_content.h
+@@ -132,19 +132,6 @@
+ #define VA_PC_SAMPLE_TYPE_FULLSAMPLE 0x00000001
+ #define VA_PC_SAMPLE_TYPE_SUBSAMPLE 0x00000002
+
+-/** \brief TeeExec Function Codes. */
+-typedef enum _VA_TEE_EXEC_FUNCTION_ID {
+- VA_TEE_EXEC_TEE_FUNCID_PASS_THROUGH_NONE = 0x0,
+-
+- // 0x40000000~0x400000FFF reserved for TEE Exec GPU function
+- VA_TEE_EXEC_GPU_FUNCID_ENCRYPTION_BLT = 0x40000000,
+- VA_TEE_EXEC_GPU_FUNCID_DECRYPTION_BLT = 0x40000001,
+-
+- // 0x40001000~0x400001FFF reserved for TEE Exec TEE function
+- VA_TEE_EXEC_TEE_FUNCID_PASS_THROUGH = 0x40001000,
+-
+-} VA_TEE_EXEC_FUNCTION_ID;
+-
+ /** \brief values for the encryption return status. */
+ typedef enum {
+ /** \brief Indicate encryption operation is successful.*/
+@@ -159,63 +146,6 @@
+ VA_ENCRYPTION_STATUS_UNSUPPORT
+ } VAEncryptionStatus;
+
+-/** \brief structure for encrypted segment info. */
+-typedef struct _VAEncryptionSegmentInfo {
+- /** \brief The offset relative to the start of the bitstream input in
+- * bytes of the start of the segment*/
+- uint32_t segment_start_offset;
+- /** \brief The length of the segments in bytes*/
+- uint32_t segment_length;
+- /** \brief The length in bytes of the remainder of an incomplete block
+- * from a previous segment*/
+- uint32_t partial_aes_block_size;
+- /** \brief The length in bytes of the initial clear data */
+- uint32_t init_byte_length;
+- /** \brief This will be AES 128 counter for secure decode and secure
+- * encode when numSegments equals 1 */
+- uint8_t aes_cbc_iv_or_ctr[16];
+- /** \brief Reserved bytes for future use, must be zero */
+- uint32_t va_reserved[VA_PADDING_MEDIUM];
+-} VAEncryptionSegmentInfo;
+-
+-/** \brief encryption parameters, corresponding to
+- * #VAEncryptionParameterBufferType*/
+-typedef struct _VAEncryptionParameters {
+- /** \brief Encryption type, attribute values. */
+- uint32_t encryption_type;
+- /** \brief The number of sengments */
+- uint32_t num_segments;
+- /** \brief Pointer of segments */
+- VAEncryptionSegmentInfo* segment_info;
+- /** \brief The status report index for CENC workload.
+- * The value is to indicate CENC workload and needs to be
+- * different for each CENC workload */
+- uint32_t status_report_index;
+- /** \brief CENC counter length */
+- uint32_t size_of_length;
+- /** \brief Wrapped decrypt blob (Snd)kb */
+- uint8_t wrapped_decrypt_blob[16];
+- /** \brief Wrapped Key blob info (Sne)kb */
+- uint8_t wrapped_encrypt_blob[16];
+- /** \brief Indicates the number of 16-byte BLOCKS that are encrypted in any
+- * given encrypted region of segments.
+- * If this value is zero:
+- * 1. All bytes in encrypted region of segments are encrypted, i.e. the
+- * CENC or CBC1 scheme is being used
+- * 2. blocks_stripe_clear must also be zero.
+- * If this value is non-zero, blocks_stripe_clear must also be non-zero. */
+- uint32_t blocks_stripe_encrypted;
+- /** \brief Indicates the number of 16-byte BLOCKS that are clear in any given
+- * encrypted region of segments, as defined by the CENS and CBCS schemes in
+- * the common encryption spec.
+- * If this value is zero, all bytes in encrypted region of segments are
+- * encrypted, i.e. the CENC or CBC1 scheme is being used.
+- */
+- uint32_t blocks_stripe_clear;
+- /** \brief Reserved bytes for future use, must be zero */
+- uint32_t va_reserved[VA_PADDING_MEDIUM];
+-} VAEncryptionParameters;
+-
+ /** \brief structure for VA_TEE_EXEC_GPU_FUNCID_ENCRYPTION_BLT */
+ typedef struct _VA_PROTECTED_BLT_PARAMS {
+ uint8_t* src_resource; // The source resource which contains the clear data.
diff --git a/x11-ozone-fix-two-edge-cases.patch b/x11-ozone-fix-two-edge-cases.patch
deleted file mode 100644
index 9c4c4755ae20..000000000000
--- a/x11-ozone-fix-two-edge-cases.patch
+++ /dev/null
@@ -1,135 +0,0 @@
-From 5e3a738b1204941aab9f15c0eb3d06e20fefd96e Mon Sep 17 00:00:00 2001
-From: Scott Violet <sky@chromium.org>
-Date: Mon, 8 Mar 2021 21:07:39 +0000
-Subject: [PATCH] x11/ozone: fix two edge cases
-
-WindowTreeHost::OnHostMovedInPixels() may trigger a nested message
-loop (tab dragging), which when the stack unravels means this may
-be deleted. This adds an early out if this happens.
-
-X11WholeScreenMoveLoop has a similar issue, in so far as notifying
-the delegate may delete this.
-
-BUG=1185482
-TEST=WindowTreeHostPlatform.DeleteHostFromOnHostMovedInPixels
-
-Change-Id: Ieca1c90b3e4358da50b332abe2941fdbb50c5c25
-Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2743555
-Reviewed-by: Thomas Anderson <thomasanderson@chromium.org>
-Commit-Queue: Scott Violet <sky@chromium.org>
-Cr-Commit-Position: refs/heads/master@{#860852}
----
- ui/aura/window_tree_host_platform.cc | 10 ++++-
- ui/aura/window_tree_host_platform_unittest.cc | 40 ++++++++++++++++++-
- ui/base/x/x11_whole_screen_move_loop.cc | 4 ++
- 3 files changed, 51 insertions(+), 3 deletions(-)
-
-diff --git a/ui/aura/window_tree_host_platform.cc b/ui/aura/window_tree_host_platform.cc
-index ce8395fe07..7589542026 100644
---- a/ui/aura/window_tree_host_platform.cc
-+++ b/ui/aura/window_tree_host_platform.cc
-@@ -214,13 +214,21 @@ void WindowTreeHostPlatform::OnBoundsChanged(const gfx::Rect& new_bounds) {
- float current_scale = compositor()->device_scale_factor();
- float new_scale = ui::GetScaleFactorForNativeView(window());
- gfx::Rect old_bounds = bounds_in_pixels_;
-+ auto weak_ref = GetWeakPtr();
- bounds_in_pixels_ = new_bounds;
-- if (bounds_in_pixels_.origin() != old_bounds.origin())
-+ if (bounds_in_pixels_.origin() != old_bounds.origin()) {
- OnHostMovedInPixels(bounds_in_pixels_.origin());
-+ // Changing the bounds may destroy this.
-+ if (!weak_ref)
-+ return;
-+ }
- if (bounds_in_pixels_.size() != old_bounds.size() ||
- current_scale != new_scale) {
- pending_size_ = gfx::Size();
- OnHostResizedInPixels(bounds_in_pixels_.size());
-+ // Changing the size may destroy this.
-+ if (!weak_ref)
-+ return;
- }
- DCHECK_GT(on_bounds_changed_recursion_depth_, 0);
- if (--on_bounds_changed_recursion_depth_ == 0) {
-diff --git a/ui/aura/window_tree_host_platform_unittest.cc b/ui/aura/window_tree_host_platform_unittest.cc
-index eda14e2f0c..4de039c88a 100644
---- a/ui/aura/window_tree_host_platform_unittest.cc
-+++ b/ui/aura/window_tree_host_platform_unittest.cc
-@@ -34,7 +34,7 @@ class TestWindowTreeHost : public WindowTreeHostPlatform {
- // OnHostWill/DidProcessBoundsChange. Additionally, this triggers a bounds
- // change from within OnHostResized(). Such a scenario happens in production
- // code.
--class TestWindowTreeHostObserver : public aura::WindowTreeHostObserver {
-+class TestWindowTreeHostObserver : public WindowTreeHostObserver {
- public:
- TestWindowTreeHostObserver(WindowTreeHostPlatform* host,
- ui::PlatformWindow* platform_window)
-@@ -51,7 +51,7 @@ class TestWindowTreeHostObserver : public aura::WindowTreeHostObserver {
- return on_host_will_process_bounds_change_count_;
- }
-
-- // aura::WindowTreeHostObserver:
-+ // WindowTreeHostObserver:
- void OnHostResized(WindowTreeHost* host) override {
- if (!should_change_bounds_in_on_resized_)
- return;
-@@ -92,5 +92,41 @@ TEST_F(WindowTreeHostPlatformTest, HostWillProcessBoundsChangeRecursion) {
- EXPECT_EQ(1, observer.on_host_will_process_bounds_change_count());
- }
-
-+// Deletes WindowTreeHostPlatform from OnHostMovedInPixels().
-+class DeleteHostWindowTreeHostObserver : public WindowTreeHostObserver {
-+ public:
-+ explicit DeleteHostWindowTreeHostObserver(
-+ std::unique_ptr<TestWindowTreeHost> host)
-+ : host_(std::move(host)) {
-+ host_->AddObserver(this);
-+ }
-+ ~DeleteHostWindowTreeHostObserver() override = default;
-+
-+ TestWindowTreeHost* host() { return host_.get(); }
-+
-+ // WindowTreeHostObserver:
-+ void OnHostMovedInPixels(WindowTreeHost* host,
-+ const gfx::Point& new_origin_in_pixels) override {
-+ host_->RemoveObserver(this);
-+ host_.reset();
-+ }
-+
-+ private:
-+ std::unique_ptr<TestWindowTreeHost> host_;
-+
-+ DISALLOW_COPY_AND_ASSIGN(DeleteHostWindowTreeHostObserver);
-+};
-+
-+// Verifies WindowTreeHostPlatform can be safely deleted when calling
-+// OnHostMovedInPixels().
-+// Regression test for https://crbug.com/1185482
-+TEST_F(WindowTreeHostPlatformTest, DeleteHostFromOnHostMovedInPixels) {
-+ std::unique_ptr<TestWindowTreeHost> host =
-+ std::make_unique<TestWindowTreeHost>();
-+ DeleteHostWindowTreeHostObserver observer(std::move(host));
-+ observer.host()->SetBoundsInPixels(gfx::Rect(1, 2, 3, 4));
-+ EXPECT_EQ(nullptr, observer.host());
-+}
-+
- } // namespace
- } // namespace aura
-diff --git a/ui/base/x/x11_whole_screen_move_loop.cc b/ui/base/x/x11_whole_screen_move_loop.cc
-index 5ed215db66..db678799db 100644
---- a/ui/base/x/x11_whole_screen_move_loop.cc
-+++ b/ui/base/x/x11_whole_screen_move_loop.cc
-@@ -78,9 +78,13 @@ X11WholeScreenMoveLoop::~X11WholeScreenMoveLoop() {
- void X11WholeScreenMoveLoop::DispatchMouseMovement() {
- if (!last_motion_in_screen_)
- return;
-+ auto weak_ref = weak_factory_.GetWeakPtr();
- delegate_->OnMouseMovement(last_motion_in_screen_->root_location(),
- last_motion_in_screen_->flags(),
- last_motion_in_screen_->time_stamp());
-+ // The delegate may delete this during dispatch.
-+ if (!weak_ref)
-+ return;
- last_motion_in_screen_.reset();
- }
-