From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1464086-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 65F2A158021
	for <garchives@archives.gentoo.org>; Sun,  4 Dec 2022 23:40:25 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 6E729E07A9;
	Sun,  4 Dec 2022 23:40:24 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 553BBE07A9
	for <gentoo-commits@lists.gentoo.org>; Sun,  4 Dec 2022 23:40:24 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 4CBDE340E71
	for <gentoo-commits@lists.gentoo.org>; Sun,  4 Dec 2022 23:40:23 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 9684575
	for <gentoo-commits@lists.gentoo.org>; Sun,  4 Dec 2022 23:40:21 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org>
Message-ID: <1670197093.d7c445871003a62c278c8e1177df10621662513e.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/chromium/files/, www-client/chromium/
X-VCS-Repository: repo/gentoo
X-VCS-Files: www-client/chromium/chromium-108.0.5359.94.ebuild www-client/chromium/files/chromium-108-DocumentLoader-private.patch
X-VCS-Directories: www-client/chromium/files/ www-client/chromium/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: d7c445871003a62c278c8e1177df10621662513e
X-VCS-Branch: master
Date: Sun,  4 Dec 2022 23:40:21 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 31b50a6a-1d8f-463e-a971-c4411e0e4de9
X-Archives-Hash: 395bc77a93a304f0a3acb9bc1a57fc27

commit:     d7c445871003a62c278c8e1177df10621662513e
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Dec  4 23:38:13 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Dec  4 23:38:13 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7c44587

www-client/chromium: fix build with GCC

Closes: https://bugs.gentoo.org/884197
Thanks-to: Stephan Hartmann <sultan <AT> gentoo.org>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 www-client/chromium/chromium-108.0.5359.94.ebuild  |  1 +
 .../chromium-108-DocumentLoader-private.patch      | 36 ++++++++++++++++++++++
 2 files changed, 37 insertions(+)

diff --git a/www-client/chromium/chromium-108.0.5359.94.ebuild b/www-client/chromium/chromium-108.0.5359.94.ebuild
index 98e568b9d30a..99327ea17821 100644
--- a/www-client/chromium/chromium-108.0.5359.94.ebuild
+++ b/www-client/chromium/chromium-108.0.5359.94.ebuild
@@ -328,6 +328,7 @@ src_prepare() {
 		"${FILESDIR}/chromium-107-system-zlib.patch"
 		"${FILESDIR}/chromium-108-EnumTable-crash.patch"
 		"${FILESDIR}/chromium-108-revert-GlobalMediaControlsCastStartStop.patch"
+		"${FILESDIR}/chromium-108-DocumentLoader-private.patch"
 		"${FILESDIR}/chromium-use-oauth2-client-switches-as-default.patch"
 		"${FILESDIR}/chromium-shim_headers.patch"
 		"${FILESDIR}/chromium-cross-compile.patch"

diff --git a/www-client/chromium/files/chromium-108-DocumentLoader-private.patch b/www-client/chromium/files/chromium-108-DocumentLoader-private.patch
new file mode 100644
index 000000000000..1ea2116edc1c
--- /dev/null
+++ b/www-client/chromium/files/chromium-108-DocumentLoader-private.patch
@@ -0,0 +1,36 @@
+https://bugs.gentoo.org/884197
+--- a/third_party/blink/renderer/core/loader/document_loader.cc
++++ b/third_party/blink/renderer/core/loader/document_loader.cc
+@@ -155,6 +155,11 @@
+ #include "third_party/blink/renderer/platform/wtf/vector.h"
+ 
+ namespace blink {
++
++struct DecodedBodyDataWrap {
++  using DecodedBodyDataType = DocumentLoader::DecodedBodyData;
++};
++
+ namespace {
+ 
+ Vector<OriginTrialFeature> CopyInitiatorOriginTrials(
+@@ -261,7 +266,7 @@ struct SameSizeAsDocumentLoader
+   bool finish_loading_when_parser_resumed;
+   bool in_commit_data;
+   scoped_refptr<SharedBuffer> data_buffer;
+-  Vector<DocumentLoader::DecodedBodyData> decoded_data_buffer_;
++  Vector<blink::DecodedBodyDataWrap::DecodedBodyDataType> decoded_data_buffer_;
+   base::UnguessableToken devtools_navigation_token;
+   LoaderFreezeMode defers_loading;
+   bool last_navigation_had_transient_user_activation;
+--- a/third_party/blink/renderer/core/loader/document_loader.h
++++ b/third_party/blink/renderer/core/loader/document_loader.h
+@@ -467,7 +467,7 @@ class CORE_EXPORT DocumentLoader : public GarbageCollected<DocumentLoader>,
+   Member<MHTMLArchive> archive_;
+ 
+  private:
+-  friend struct SameSizeAsDocumentLoader;
++  friend struct DecodedBodyDataWrap;
+   class BodyData;
+   class EncodedBodyData;
+   class DecodedBodyData;
+