summaryrefslogtreecommitdiff
path: root/www-client/chromium/files/chromium-108-DocumentLoader-private.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-12-04 15:16:42 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-12-04 15:16:42 +0000
commit68dd662f1dbc715e101e3797a8b4d9b5a4d5634e (patch)
treebed3fe92a02fd59a34e15c32de3c60624f424e51 /www-client/chromium/files/chromium-108-DocumentLoader-private.patch
parent517fe007b03fbe3d17961cd8f10a6b0d807d2b7e (diff)
www-client/chromium : import from gentoo, attempt to fix https://bugs.gentoo.org/884197
Diffstat (limited to 'www-client/chromium/files/chromium-108-DocumentLoader-private.patch')
-rw-r--r--www-client/chromium/files/chromium-108-DocumentLoader-private.patch55
1 files changed, 55 insertions, 0 deletions
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 00000000..3e005e43
--- /dev/null
+++ b/www-client/chromium/files/chromium-108-DocumentLoader-private.patch
@@ -0,0 +1,55 @@
+From 4009fdb45cffeb6c824d6f7499114c1ac021ff2f Mon Sep 17 00:00:00 2001
+From: Stephan Hartmann <stha09@googlemail.com>
+Date: Wed, 12 Oct 2022 13:52:31 +0000
+Subject: [PATCH] GCC: fix access to private class in blink::DocumentLoader
+
+Friend does not work with anonymous namespaces. Therefore,
+DocumentLoader::DecodedBodyData is private for struct
+SameSizeAsDocumentLoader. Add a wrapper in blink namespace
+to make the class visible in anonymous namespace.
+---
+ third_party/blink/renderer/core/loader/document_loader.cc | 7 ++++++-
+ third_party/blink/renderer/core/loader/document_loader.h | 2 +-
+ 2 files changed, 7 insertions(+), 2 deletions(-)
+
+diff --git a/third_party/blink/renderer/core/loader/document_loader.cc b/third_party/blink/renderer/core/loader/document_loader.cc
+index 8774812..17c7c9a 100644
+--- a/third_party/blink/renderer/core/loader/document_loader.cc
++++ b/third_party/blink/renderer/core/loader/document_loader.cc
+@@ -150,6 +150,11 @@
+ #include "third_party/blink/renderer/platform/wtf/vector.h"
+
+ namespace blink {
++
++struct DecodedBodyDataVector {
++ Vector<DocumentLoader::DecodedBodyData> type;
++};
++
+ namespace {
+
+ Vector<OriginTrialFeature> CopyInitiatorOriginTrials(
+@@ -254,7 +259,7 @@ struct SameSizeAsDocumentLoader
+ bool finish_loading_when_parser_resumed;
+ bool in_commit_data;
+ scoped_refptr<SharedBuffer> data_buffer;
+- Vector<DocumentLoader::DecodedBodyData> decoded_data_buffer_;
++ DecodedBodyDataVector decoded_data_buffer_;
+ base::UnguessableToken devtools_navigation_token;
+ LoaderFreezeMode defers_loading;
+ bool last_navigation_had_transient_user_activation;
+diff --git a/third_party/blink/renderer/core/loader/document_loader.h b/third_party/blink/renderer/core/loader/document_loader.h
+index 7c6ba6b..c034ea9 100644
+--- a/third_party/blink/renderer/core/loader/document_loader.h
++++ b/third_party/blink/renderer/core/loader/document_loader.h
+@@ -442,7 +442,7 @@ class CORE_EXPORT DocumentLoader : public GarbageCollected<DocumentLoader>,
+ Member<MHTMLArchive> archive_;
+
+ private:
+- friend struct SameSizeAsDocumentLoader;
++ friend struct DecodedBodyDataVector;
+ class BodyData;
+ class EncodedBodyData;
+ class DecodedBodyData;
+--
+2.37.3
+