We truncated the diff of some files because they were too big.
If you want to see the full diff for every file, click here.
Changes of Revision 19
chromium-ffmpeg-extra.changes
Changed
x
1
2
-------------------------------------------------------------------
3
+Sat Oct 9 05:32:48 UTC 2021 - Carsten Ziepke <kieltux@gmail.com>
4
+
5
+- Removed patches:
6
+ * chromium-94-ffmpeg-roll.patch
7
+
8
+-------------------------------------------------------------------
9
+Fri Oct 8 19:46:13 UTC 2021 - Carsten Ziepke <kieltux@gmail.com>
10
+
11
+- Chromium 94.0.4606.81 (boo#1191463):
12
+ * CVE-2021-37977: Use after free in Garbage Collection
13
+ * CVE-2021-37978: Heap buffer overflow in Blink
14
+ * CVE-2021-37979: Heap buffer overflow in WebRTC
15
+ * CVE-2021-37980: Inappropriate implementation in Sandbox
16
+- Re-add after accidental deletion:
17
+ * chromium-93-InkDropHost-crash.patch
18
+- Chromium 94.0.4606.54 (boo#1190765):
19
+ * CVE-2021-37956: Use after free in Offline use
20
+ * CVE-2021-37957: Use after free in WebGPU
21
+ * CVE-2021-37958: Inappropriate implementation in Navigation
22
+ * CVE-2021-37959: Use after free in Task Manager
23
+ * CVE-2021-37960: Inappropriate implementation in Blink graphics
24
+ * CVE-2021-37961: Use after free in Tab Strip
25
+ * CVE-2021-37962: Use after free in Performance Manager
26
+ * CVE-2021-37963: Side-channel information leakage in DevTools
27
+ * CVE-2021-37964: Inappropriate implementation in ChromeOS Networking
28
+ * CVE-2021-37965: Inappropriate implementation in Background Fetch API
29
+ * CVE-2021-37966: Inappropriate implementation in Compositing
30
+ * CVE-2021-37967: Inappropriate implementation in Background Fetch API
31
+ * CVE-2021-37968: Inappropriate implementation in Background Fetch API
32
+ * CVE-2021-37969: Inappropriate implementation in Google Updater
33
+ * CVE-2021-37970: Use after free in File System API
34
+ * CVE-2021-37971: Incorrect security UI in Web Browser UI
35
+ * CVE-2021-37972: Out of bounds read in libjpeg-turbo
36
+- Chromium 94.0.4606.61 (boo#1191166):
37
+ * CVE-2021-37973: Use after free in Portals
38
+- Chromium 94.0.4606.71 (boo#1191204):
39
+ * CVE-2021-37974 : Use after free in Safe Browsing
40
+ * CVE-2021-37975 : Use after free in V8
41
+ * CVE-2021-37976 : Information leak in core
42
+- Added patches:
43
+ * chromium-94-CustomSpaces-include.patch
44
+ * chromium-94-sql-no-assert.patch
45
+ * chromium-older-harfbuzz.patch
46
+ * chromium-94-ffmpeg-roll.patch
47
+ * chromium-94-compiler.patch
48
+- Removed patches:
49
+ * chromium-freetype-2.11.patch
50
+ * chromium-93-ContextSet-permissive.patch
51
+ * chromium-93-ClassProperty-include.patch
52
+ * chromium-93-BluetoothLowEnergyScanFilter-include.patch
53
+ * chromium-93-HashPasswordManager-include.patch
54
+ * chromium-93-pdfium-include.patch
55
+ * chromium-93-DevToolsEmbedderMessageDispatcher-include.patch
56
+ * chromium-93-FormForest-constexpr.patch
57
+ * chromium-93-ScopedTestDialogAutoConfirm-include.patch
58
+ * chromium-93-InkDropHost-crash.patch
59
+ * chromium-91-compiler.patch
60
+ * chromium-glibc-2.33.patch
61
+ * chromium-shim_headers.patch
62
+
63
+-------------------------------------------------------------------
64
Sun Sep 19 19:41:03 UTC 2021 - Carsten Ziepke <kieltux@gmail.com>
65
66
- Update to 93.0.4577.82
67
chromium-ffmpeg-extra.spec
Changed
77
1
2
%bcond_with lto
3
%bcond_without clang
4
Name: chromium-ffmpeg-extra
5
-Version: 93.0.4577.82
6
+Version: 94.0.4606.81
7
Release: 0
8
Summary: Extra ffmpeg codecs for browsers based on Chromium
9
License: BSD-3-Clause AND LGPL-2.1-or-later
10
11
# gentoo/fedora/arch patchset
12
Patch12: chromium-78-protobuf-RepeatedPtrField-export.patch
13
Patch13: chromium-80-QuicStreamSendBuffer-deleted-move-constructor.patch
14
-Patch15: chromium-91-compiler.patch
15
+Patch15: chromium-94-compiler.patch
16
Patch17: chromium-86-ImageMemoryBarrierData-init.patch
17
Patch18: chromium-86-nearby-explicit.patch
18
Patch19: chromium-86-nearby-include.patch
19
Patch20: chromium-86-f_seal.patch
20
Patch21: chromium-gcc11.patch
21
-Patch23: chromium-glibc-2.33.patch
22
Patch25: chromium-90-fseal.patch
23
Patch29: chromium-93-EnumTable-crash.patch
24
-Patch30: chromium-shim_headers.patch
25
Patch31: chromium-89-missing-cstring-header.patch
26
Patch36: chromium-90-ruy-include.patch
27
Patch40: chromium-91-java-only-allowed-in-android-builds.patch
28
Patch44: chromium-91-libyuv-aarch64.patch
29
Patch46: chromium-91-sql-standard-layout-type.patch
30
-Patch49: chromium-freetype-2.11.patch
31
Patch50: chromium-clang-nomerge.patch
32
Patch51: chromium-glibc-2.34.patch
33
-Patch53: chromium-93-ContextSet-permissive.patch
34
-Patch54: chromium-93-ClassProperty-include.patch
35
-Patch55: chromium-93-BluetoothLowEnergyScanFilter-include.patch
36
-Patch56: chromium-93-HashPasswordManager-include.patch
37
-Patch57: chromium-93-pdfium-include.patch
38
-Patch58: chromium-93-DevToolsEmbedderMessageDispatcher-include.patch
39
-Patch59: chromium-93-FormForest-constexpr.patch
40
-Patch60: chromium-93-ScopedTestDialogAutoConfirm-include.patch
41
-Patch61: chromium-93-InkDropHost-crash.patch
42
Patch62: chromium-93-ffmpeg-4.4.patch
43
+Patch63: chromium-ffmpeg-lp152.patch
44
+Patch64: chromium-94-CustomSpaces-include.patch
45
+Patch65: chromium-94-sql-no-assert.patch
46
+Patch67: chromium-older-harfbuzz.patch
47
+Patch69: chromium-93-InkDropHost-crash.patch
48
# Google seem not too keen on merging this but GPU accel is quite important
49
# https://chromium-review.googlesource.com/c/chromium/src/+/532294
50
# https://github.com/saiarcot895/chromium-ubuntu-build/tree/master/debian/patches
51
52
third_party/cros_system_api
53
third_party/dav1d
54
third_party/dawn
55
+ third_party/dawn/third_party
56
+ third_party/dawn/third_party/tint/src/ast
57
third_party/depot_tools
58
third_party/depot_tools/third_party/six
59
third_party/devscripts
60
61
third_party/devtools-frontend/src/front_end/third_party/puppeteer
62
third_party/devtools-frontend/src/front_end/third_party/wasmparser
63
third_party/devtools-frontend/src/third_party
64
+ third_party/devtools-frontend/src/test/unittests/front_end/third_party/i18n
65
third_party/dom_distiller_js
66
third_party/eigen3
67
third_party/emoji-segmenter
68
69
myconf_gn+=" use_allocator=\"partition\""
70
myconf_gn+=" use_allocator_shim=true"
71
myconf_gn+=" use_partition_alloc=true"
72
-myconf_gn+=" fieldtrial_testing_like_official_build=true"
73
+myconf_gn+=" disable_fieldtrial_testing_config=true"
74
myconf_gn+=" use_gnome_keyring=false"
75
myconf_gn+=" use_unofficial_version_number=false"
76
myconf_gn+=" use_vaapi=true"
77
chromium-91-compiler.patch
Deleted
167
1
2
-From f4d0b0eb899005b4b8b6388e1d8bb82cc0018fc8 Mon Sep 17 00:00:00 2001
3
-From: Mike Gilbert <floppym@gentoo.org>
4
-Date: Wed, 7 Apr 2021 08:50:04 +0000
5
-Subject: [PATCH] Disable various compiler configs
6
-
7
----
8
- build/config/compiler/BUILD.gn | 59 ++++++++++------------------------
9
- 1 file changed, 17 insertions(+), 42 deletions(-)
10
-
11
-diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
12
-index 72ea590..539672d 100644
13
---- a/build/config/compiler/BUILD.gn
14
-+++ b/build/config/compiler/BUILD.gn
15
-@@ -273,8 +273,6 @@ config("compiler") {
16
-
17
- configs += [
18
- # See the definitions below.
19
-- ":clang_revision",
20
-- ":compiler_cpu_abi",
21
- ":compiler_codegen",
22
- ":compiler_deterministic",
23
- ]
24
-@@ -518,24 +516,6 @@ config("compiler") {
25
- ldflags += [ "-Wl,-z,keep-text-section-prefix" ]
26
- }
27
-
28
-- if (is_clang && !is_nacl && !use_xcode_clang) {
29
-- cflags += [ "-fcrash-diagnostics-dir=" + clang_diagnostic_dir ]
30
--
31
-- # TODO(hans): Remove this once Clang generates better optimized debug info
32
-- # by default. https://crbug.com/765793
33
-- cflags += [
34
-- "-mllvm",
35
-- "-instcombine-lower-dbg-declare=0",
36
-- ]
37
-- if (!is_debug && use_thin_lto && is_a_target_toolchain) {
38
-- if (is_win) {
39
-- ldflags += [ "-mllvm:-instcombine-lower-dbg-declare=0" ]
40
-- } else {
41
-- ldflags += [ "-Wl,-mllvm,-instcombine-lower-dbg-declare=0" ]
42
-- }
43
-- }
44
-- }
45
--
46
- # C11/C++11 compiler flags setup.
47
- # ---------------------------
48
- if (is_linux || is_chromeos || is_android || (is_nacl && is_clang) ||
49
-@@ -1643,7 +1623,7 @@ config("chromium_code") {
50
- defines = [ "_HAS_NODISCARD" ]
51
- }
52
- } else {
53
-- cflags = [ "-Wall" ]
54
-+ cflags = []
55
- if (treat_warnings_as_errors) {
56
- cflags += [ "-Werror" ]
57
-
58
-@@ -1652,10 +1632,6 @@ config("chromium_code") {
59
- # well.
60
- ldflags = [ "-Werror" ]
61
- }
62
-- if (is_clang) {
63
-- # Enable extra warnings for chromium_code when we control the compiler.
64
-- cflags += [ "-Wextra" ]
65
-- }
66
-
67
- # In Chromium code, we define __STDC_foo_MACROS in order to get the
68
- # C99 macros on Mac and Linux.
69
-@@ -1664,15 +1640,6 @@ config("chromium_code") {
70
- "__STDC_FORMAT_MACROS",
71
- ]
72
-
73
-- if (!is_debug && !using_sanitizer && current_cpu != "s390x" &&
74
-- current_cpu != "s390" && current_cpu != "ppc64" &&
75
-- current_cpu != "mips" && current_cpu != "mips64") {
76
-- # Non-chromium code is not guaranteed to compile cleanly with
77
-- # _FORTIFY_SOURCE. Also, fortified build may fail when optimizations are
78
-- # disabled, so only do that for Release build.
79
-- defines += [ "_FORTIFY_SOURCE=2" ]
80
-- }
81
--
82
- if (is_mac) {
83
- cflags_objc = [ "-Wobjc-missing-property-synthesis" ]
84
- cflags_objcc = [ "-Wobjc-missing-property-synthesis" ]
85
-@@ -2068,7 +2035,8 @@ config("default_stack_frames") {
86
- }
87
-
88
- # Default "optimization on" config.
89
--config("optimize") {
90
-+config("optimize") { }
91
-+config("xoptimize") {
92
- if (is_win) {
93
- if (chrome_pgo_phase != 2) {
94
- # Favor size over speed, /O1 must be before the common flags.
95
-@@ -2103,7 +2071,8 @@ config("optimize") {
96
- }
97
-
98
- # Turn off optimizations.
99
--config("no_optimize") {
100
-+config("no_optimize") { }
101
-+config("xno_optimize") {
102
- if (is_win) {
103
- cflags = [
104
- "/Od", # Disable optimization.
105
-@@ -2143,7 +2112,8 @@ config("no_optimize") {
106
- # Turns up the optimization level. On Windows, this implies whole program
107
- # optimization and link-time code generation which is very expensive and should
108
- # be used sparingly.
109
--config("optimize_max") {
110
-+config("optimize_max") { }
111
-+config("xoptimize_max") {
112
- if (is_nacl && is_nacl_irt) {
113
- # The NaCl IRT is a special case and always wants its own config.
114
- # Various components do:
115
-@@ -2175,7 +2145,8 @@ config("optimize_max") {
116
- #
117
- # TODO(crbug.com/621335) - rework how all of these configs are related
118
- # so that we don't need this disclaimer.
119
--config("optimize_speed") {
120
-+config("optimize_speed") { }
121
-+config("xoptimize_speed") {
122
- if (is_nacl && is_nacl_irt) {
123
- # The NaCl IRT is a special case and always wants its own config.
124
- # Various components do:
125
-@@ -2200,7 +2171,8 @@ config("optimize_speed") {
126
- }
127
- }
128
-
129
--config("optimize_fuzzing") {
130
-+config("optimize_fuzzing") { }
131
-+config("xoptimize_fuzzing") {
132
- cflags = [ "-O1" ] + common_optimize_on_cflags
133
- ldflags = common_optimize_on_ldflags
134
- visibility = [ ":default_optimization" ]
135
-@@ -2319,7 +2291,8 @@ config("win_pdbaltpath") {
136
- }
137
-
138
- # Full symbols.
139
--config("symbols") {
140
-+config("symbols") { }
141
-+config("xsymbols") {
142
- if (is_win) {
143
- if (is_clang) {
144
- cflags = [ "/Z7" ] # Debug information in the .obj files.
145
-@@ -2422,7 +2395,8 @@ config("symbols") {
146
- # Minimal symbols.
147
- # This config guarantees to hold symbol for stack trace which are shown to user
148
- # when crash happens in unittests running on buildbot.
149
--config("minimal_symbols") {
150
-+config("minimal_symbols") { }
151
-+config("xminimal_symbols") {
152
- if (is_win) {
153
- # Functions, files, and line tables only.
154
- cflags = []
155
-@@ -2481,7 +2455,8 @@ config("minimal_symbols") {
156
- # This configuration contains function names only. That is, the compiler is
157
- # told to not generate debug information and the linker then just puts function
158
- # names in the final debug information.
159
--config("no_symbols") {
160
-+config("no_symbols") { }
161
-+config("xno_symbols") {
162
- if (is_win) {
163
- ldflags = [ "/DEBUG" ]
164
-
165
---
166
-2.26.3
167
chromium-91-sql-standard-layout-type.patch
Changed
10
1
2
+#include <array>
3
#include <cstdint>
4
#include <memory>
5
-
6
+ #include <ostream>
7
@@ -70,7 +71,7 @@ class DatabasePageReader {
8
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
9
DCHECK_NE(page_id_, kInvalidPageId)
10
chromium-93-BluetoothLowEnergyScanFilter-include.patch
Deleted
32
1
2
-From 2f5514051210388bfcff605570d33f08cfa7bcaa Mon Sep 17 00:00:00 2001
3
-From: Jose Dapena Paz <jdapena@igalia.com>
4
-Date: Wed, 21 Jul 2021 08:34:58 +0000
5
-Subject: [PATCH] IWYU: usage of unique_ptr requires including <memory> in bluetooth low energy scan filter.
6
-
7
-Fix build because of missing include:
8
-../../device/bluetooth/bluetooth_low_energy_scan_filter.h:57:15: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
9
- 57 | static std::unique_ptr<BluetoothLowEnergyScanFilter> Create(
10
- | ^~~~~~~~~~
11
-
12
-Bug: 819294
13
-Change-Id: I347953a083f1bcdf744fd86e1a73954c6f86b32e
14
-Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3041155
15
-Reviewed-by: Reilly Grant <reillyg@chromium.org>
16
-Commit-Queue: José Dapena Paz <jdapena@igalia.com>
17
-Cr-Commit-Position: refs/heads/master@{#903819}
18
----
19
-
20
-diff --git a/device/bluetooth/bluetooth_low_energy_scan_filter.h b/device/bluetooth/bluetooth_low_energy_scan_filter.h
21
-index a0436c1..7ae606c 100644
22
---- a/device/bluetooth/bluetooth_low_energy_scan_filter.h
23
-+++ b/device/bluetooth/bluetooth_low_energy_scan_filter.h
24
-@@ -7,6 +7,7 @@
25
-
26
- #include <stddef.h>
27
- #include <stdint.h>
28
-+#include <memory>
29
- #include <vector>
30
-
31
- #include "base/time/time.h"
32
chromium-93-ClassProperty-include.patch
Deleted
32
1
2
-From 8ae99ee447cf5f0160ea4ae978cdf37f5dcecd1e Mon Sep 17 00:00:00 2001
3
-From: Jose Dapena Paz <jdapena@igalia.com>
4
-Date: Wed, 21 Jul 2021 08:36:20 +0000
5
-Subject: [PATCH] IWYU: missing memory include for unique_ptr usage in class_property.h
6
-
7
-Fix GCC build breakage because of missing inclide:
8
-./../ui/base/class_property.h:120:58: error: ‘std::unique_ptr’ has not been declared
9
- 120 | T* SetProperty(const ClassProperty<T*>* property, std::unique_ptr<T> value);
10
- | ^~~~~~~~~~
11
-
12
-Bug: 819294
13
-Change-Id: I46b921876702b8d44674689bbb5acdc107db21e5
14
-Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3041030
15
-Reviewed-by: Peter Boström <pbos@chromium.org>
16
-Commit-Queue: José Dapena Paz <jdapena@igalia.com>
17
-Cr-Commit-Position: refs/heads/master@{#903820}
18
----
19
-
20
-diff --git a/ui/base/class_property.h b/ui/base/class_property.h
21
-index f7b2f55..88b4938 100644
22
---- a/ui/base/class_property.h
23
-+++ b/ui/base/class_property.h
24
-@@ -8,6 +8,7 @@
25
- #include <stdint.h>
26
-
27
- #include <map>
28
-+#include <memory>
29
- #include <set>
30
- #include <type_traits>
31
-
32
chromium-93-ContextSet-permissive.patch
Deleted
49
1
2
-From 7108f83c8ad1bad4072e4f32da3db6d59cf51400 Mon Sep 17 00:00:00 2001
3
-From: Ivan Murashov <ivan.murashov@lge.com>
4
-Date: Tue, 20 Jul 2021 13:16:44 +0300
5
-Subject: [PATCH] GCC: Remove double declaration of ContextSet
6
-
7
-After the CL
8
-https://chromium-review.googlesource.com/c/angle/angle/+/2965780
9
-the build with GCC failed with error:
10
-/third_party/angle/src/libANGLE/Display.h:325:37: error: declaration of
11
-'typedef class std::__1::set<gl::Context*> egl::Display::ContextSet'
12
-changes meaning of 'ContextSet' [-fpermissive]
13
-/third_party/angle/src/libANGLE/Display.h:75:7: note: 'ContextSet'
14
-declared here as 'using ContextSet = class std::__1::set<gl::Context*>'
15
-
16
-To fix the error the double declaration of ContextSet is removed.
17
-
18
-Bug: angleproject:5878, chromium:819294
19
-Change-Id: Id9e52061af53ea18dd5d13b960daaa67a14f61ca
20
-Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3038804
21
-Reviewed-by: Jamie Madill <jmadill@chromium.org>
22
-Commit-Queue: Jamie Madill <jmadill@chromium.org>
23
----
24
-
25
-diff --git a/third_party/angle/CONTRIBUTORS b/third_party/angle/CONTRIBUTORS
26
-index 887ddc2..94b1b4d 100644
27
---- a/third_party/angle/CONTRIBUTORS
28
-+++ b/third_party/angle/CONTRIBUTORS
29
-@@ -154,6 +154,7 @@
30
-
31
- LG Electronics, Inc.
32
- Jani Hautakangas
33
-+ Ivan Murashov
34
-
35
- IBM Inc.
36
- Junliang Yan
37
-diff --git a/third_party/angle/src/libANGLE/Display.h b/third_party/angle/src/libANGLE/Display.h
38
-index f33123b..f0c0910 100644
39
---- a/third_party/angle/src/libANGLE/Display.h
40
-+++ b/third_party/angle/src/libANGLE/Display.h
41
-@@ -322,7 +322,6 @@
42
-
43
- ConfigSet mConfigSet;
44
-
45
-- typedef std::set<gl::Context *> ContextSet;
46
- ContextSet mContextSet;
47
-
48
- typedef std::set<Image *> ImageSet;
49
chromium-93-DevToolsEmbedderMessageDispatcher-include.patch
Deleted
26
1
2
-From 409859ad9ba763a4267fb3457df7cd8eb0b7387b Mon Sep 17 00:00:00 2001
3
-From: Stephan Hartmann <stha09@googlemail.com>
4
-Date: Sun, 25 Jul 2021 19:43:45 +0000
5
-Subject: [PATCH] IWYU: add vector for std::vector
6
-
7
----
8
- chrome/browser/devtools/devtools_embedder_message_dispatcher.h | 1 +
9
- 1 file changed, 1 insertion(+)
10
-
11
-diff --git a/chrome/browser/devtools/devtools_embedder_message_dispatcher.h b/chrome/browser/devtools/devtools_embedder_message_dispatcher.h
12
-index 12f8500..4007112 100644
13
---- a/chrome/browser/devtools/devtools_embedder_message_dispatcher.h
14
-+++ b/chrome/browser/devtools/devtools_embedder_message_dispatcher.h
15
-@@ -8,6 +8,7 @@
16
- #include <map>
17
- #include <memory>
18
- #include <string>
19
-+#include <vector>
20
-
21
- #include "base/callback.h"
22
- #include "ui/gfx/geometry/insets.h"
23
---
24
-2.31.1
25
-
26
chromium-93-FormForest-constexpr.patch
Deleted
51
1
2
-From 802150d7be94e5317b257df545d55ce5b007ae65 Mon Sep 17 00:00:00 2001
3
-From: Jose Dapena Paz <jdapena@igalia.com>
4
-Date: Tue, 20 Jul 2021 18:50:11 +0000
5
-Subject: [PATCH] libstdc++: do not use unique_ptr bool() operator in a constexpr in form_forest.h
6
-
7
-Fix build breakage in GCC, because of calling non constexpr functions from a
8
-constexpr function. In this case, libstdc++ unique_ptr bool() operator is not
9
-constexpr, so it cannot be used inside CompareByFrameToken.
10
-
11
-An example of build breakage caused by this:
12
- ../../components/autofill/content/browser/form_forest.h:157:21: error: call to non-‘constexpr’ function ‘std::unique_ptr<_Tp, _Dp>::operator bool() const [with _Tp = autofill::internal::FormForest::FrameData; _Dp = std::default_delete<autofill::internal::FormForest::FrameData>]’
13
- 157 | return f && g ? f->frame_token < g->frame_token : f.get() < g.get();
14
- | ^
15
-
16
-Bug: 957519
17
-Change-Id: I3c49559084fe58886a03520729873b7c4ac89bbf
18
-Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3041050
19
-Commit-Queue: Dominic Battré <battre@chromium.org>
20
-Reviewed-by: Dominic Battré <battre@chromium.org>
21
-Cr-Commit-Position: refs/heads/master@{#903595}
22
----
23
-
24
-diff --git a/components/autofill/content/browser/form_forest.h b/components/autofill/content/browser/form_forest.h
25
-index c89a8eb..f414ab8 100644
26
---- a/components/autofill/content/browser/form_forest.h
27
-+++ b/components/autofill/content/browser/form_forest.h
28
-@@ -152,16 +152,16 @@
29
- // used by FrameData sets.
30
- struct CompareByFrameToken {
31
- using is_transparent = void;
32
-- constexpr bool operator()(const std::unique_ptr<FrameData>& f,
33
-- const std::unique_ptr<FrameData>& g) const {
34
-+ bool operator()(const std::unique_ptr<FrameData>& f,
35
-+ const std::unique_ptr<FrameData>& g) const {
36
- return f && g ? f->frame_token < g->frame_token : f.get() < g.get();
37
- }
38
-- constexpr bool operator()(const std::unique_ptr<FrameData>& f,
39
-- const LocalFrameToken& g) const {
40
-+ bool operator()(const std::unique_ptr<FrameData>& f,
41
-+ const LocalFrameToken& g) const {
42
- return f ? f->frame_token < g : true;
43
- }
44
-- constexpr bool operator()(const LocalFrameToken& f,
45
-- const std::unique_ptr<FrameData>& g) const {
46
-+ bool operator()(const LocalFrameToken& f,
47
-+ const std::unique_ptr<FrameData>& g) const {
48
- return g ? f < g->frame_token : false;
49
- }
50
- };
51
chromium-93-HashPasswordManager-include.patch
Deleted
32
1
2
-From 17d0e3dfcd0690df0e7b212fedcb95402f16935d Mon Sep 17 00:00:00 2001
3
-From: Jose Dapena Paz <jdapena@igalia.com>
4
-Date: Fri, 23 Jul 2021 10:17:49 +0000
5
-Subject: [PATCH] IWYU: missing include for using std::vector in hash password manager.
6
-
7
-Fix build breakage:
8
-../../components/password_manager/core/browser/hash_password_manager.h:44:8: error: ‘vector’ in namespace ‘std’ does not name a template type
9
- 44 | std::vector<PasswordHashData> RetrieveAllPasswordHashes();
10
- | ^~~~~~
11
-
12
-Bug: 819294
13
-Change-Id: I8c8a4ec3972eedb87a312c5ec56adf4a21b1b2a2
14
-Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3041046
15
-Commit-Queue: Vasilii Sukhanov <vasilii@chromium.org>
16
-Reviewed-by: Vasilii Sukhanov <vasilii@chromium.org>
17
-Cr-Commit-Position: refs/heads/master@{#904696}
18
----
19
-
20
-diff --git a/components/password_manager/core/browser/hash_password_manager.h b/components/password_manager/core/browser/hash_password_manager.h
21
-index c762c5a..85e656ed 100644
22
---- a/components/password_manager/core/browser/hash_password_manager.h
23
-+++ b/components/password_manager/core/browser/hash_password_manager.h
24
-@@ -6,6 +6,7 @@
25
- #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_HASH_PASSWORD_MANAGER_H_
26
-
27
- #include <string>
28
-+#include <vector>
29
-
30
- #include "base/callback.h"
31
- #include "base/callback_list.h"
32
chromium-93-InkDropHost-crash.patch
Changed
23
1
2
-diff --git a/ui/views/animation/ink_drop_host_view.h b/ui/views/animation/ink_drop_host_view.h
3
-index bd0975b..e5df288 100644
4
---- a/ui/views/animation/ink_drop_host_view.h
5
-+++ b/ui/views/animation/ink_drop_host_view.h
6
-@@ -238,6 +238,11 @@ class VIEWS_EXPORT InkDropHost {
7
+diff -up chromium-94.0.4606.71/ui/views/animation/ink_drop_host_view.h.InkDropHost-crash chromium-94.0.4606.71/ui/views/animation/ink_drop_host_view.h
8
+--- chromium-94.0.4606.71/ui/views/animation/ink_drop_host_view.h.InkDropHost-crash 2021-10-05 16:04:46.313586509 -0400
9
++++ chromium-94.0.4606.71/ui/views/animation/ink_drop_host_view.h 2021-10-05 16:05:12.213732558 -0400
10
+@@ -228,6 +228,11 @@ class VIEWS_EXPORT InkDropHost {
11
// Used to observe View and inform the InkDrop of host-transform changes.
12
ViewLayerTransformObserver host_view_transform_observer_;
13
14
15
// Should not be accessed directly. Use GetInkDrop() instead.
16
std::unique_ptr<InkDrop> ink_drop_;
17
18
-@@ -261,8 +266,6 @@ class VIEWS_EXPORT InkDropHost {
19
+@@ -249,8 +254,6 @@ class VIEWS_EXPORT InkDropHost {
20
int ink_drop_small_corner_radius_ = 2;
21
int ink_drop_large_corner_radius_ = 4;
22
23
chromium-93-ScopedTestDialogAutoConfirm-include.patch
Deleted
26
1
2
-From 92fc089d50fc81b9903cd0573c95749e41081474 Mon Sep 17 00:00:00 2001
3
-From: Stephan Hartmann <stha09@googlemail.com>
4
-Date: Sun, 25 Jul 2021 21:38:26 +0000
5
-Subject: [PATCH] IWYU: add cstring for std::strcpy
6
-
7
----
8
- extensions/browser/extension_dialog_auto_confirm.cc | 1 +
9
- 1 file changed, 1 insertion(+)
10
-
11
-diff --git a/extensions/browser/extension_dialog_auto_confirm.cc b/extensions/browser/extension_dialog_auto_confirm.cc
12
-index adb4ac3..be8b161 100644
13
---- a/extensions/browser/extension_dialog_auto_confirm.cc
14
-+++ b/extensions/browser/extension_dialog_auto_confirm.cc
15
-@@ -4,6 +4,7 @@
16
-
17
- #include "extensions/browser/extension_dialog_auto_confirm.h"
18
-
19
-+#include <cstring>
20
- #include <utility>
21
-
22
- #include "base/check.h"
23
---
24
-2.31.1
25
-
26
chromium-93-pdfium-include.patch
Deleted
119
1
2
-From 7a6289c5ace52cf88f0e19caa5f78b7c15d0e7a6 Mon Sep 17 00:00:00 2001
3
-From: Miklos Vajna <vmiklos@collabora.co.uk>
4
-Date: Wed, 21 Jul 2021 17:42:30 +0000
5
-Subject: [PATCH] fxcodec, fxge: fix missing includes with libstdc++
6
-
7
-These missing includes break the build with gcc/libstdc++, they were not
8
-a problem in practice with clang/libc++.
9
-
10
-Change-Id: I40013f97ba7ab06f32aa59f87b04aec06a19478c
11
-Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/83210
12
-Commit-Queue: Lei Zhang <thestig@chromium.org>
13
-Reviewed-by: Lei Zhang <thestig@chromium.org>
14
----
15
-
16
-diff --git a/third_party/pdfium/core/fxcodec/jpeg/jpegmodule.cpp b/third_party/pdfium/core/fxcodec/jpeg/jpegmodule.cpp
17
-index cea0679..036f250 100644
18
---- a/third_party/pdfium/core/fxcodec/jpeg/jpegmodule.cpp
19
-+++ b/third_party/pdfium/core/fxcodec/jpeg/jpegmodule.cpp
20
-@@ -7,6 +7,7 @@
21
- #include "core/fxcodec/jpeg/jpegmodule.h"
22
-
23
- #include <setjmp.h>
24
-+#include <string.h>
25
-
26
- #include <memory>
27
- #include <utility>
28
-diff --git a/third_party/pdfium/core/fxcodec/jpx/cjpx_decoder.cpp b/third_party/pdfium/core/fxcodec/jpx/cjpx_decoder.cpp
29
-index c66985a..9c1122b 100644
30
---- a/third_party/pdfium/core/fxcodec/jpx/cjpx_decoder.cpp
31
-+++ b/third_party/pdfium/core/fxcodec/jpx/cjpx_decoder.cpp
32
-@@ -6,6 +6,8 @@
33
-
34
- #include "core/fxcodec/jpx/cjpx_decoder.h"
35
-
36
-+#include <string.h>
37
-+
38
- #include <algorithm>
39
- #include <limits>
40
- #include <utility>
41
-diff --git a/third_party/pdfium/core/fxge/cfx_cliprgn.cpp b/third_party/pdfium/core/fxge/cfx_cliprgn.cpp
42
-index 5369d52..d198852 100644
43
---- a/third_party/pdfium/core/fxge/cfx_cliprgn.cpp
44
-+++ b/third_party/pdfium/core/fxge/cfx_cliprgn.cpp
45
-@@ -6,6 +6,8 @@
46
-
47
- #include "core/fxge/cfx_cliprgn.h"
48
-
49
-+#include <string.h>
50
-+
51
- #include <utility>
52
-
53
- #include "core/fxge/dib/cfx_dibitmap.h"
54
-diff --git a/third_party/pdfium/core/fxge/dib/cfx_bitmapcomposer.cpp b/third_party/pdfium/core/fxge/dib/cfx_bitmapcomposer.cpp
55
-index 6f9b420..0f1ffae 100644
56
---- a/third_party/pdfium/core/fxge/dib/cfx_bitmapcomposer.cpp
57
-+++ b/third_party/pdfium/core/fxge/dib/cfx_bitmapcomposer.cpp
58
-@@ -6,6 +6,8 @@
59
-
60
- #include "core/fxge/dib/cfx_bitmapcomposer.h"
61
-
62
-+#include <string.h>
63
-+
64
- #include "core/fxge/cfx_cliprgn.h"
65
- #include "core/fxge/dib/cfx_dibitmap.h"
66
-
67
-diff --git a/third_party/pdfium/core/fxge/dib/cfx_bitmapstorer.cpp b/third_party/pdfium/core/fxge/dib/cfx_bitmapstorer.cpp
68
-index f57c00e..45a0a18 100644
69
---- a/third_party/pdfium/core/fxge/dib/cfx_bitmapstorer.cpp
70
-+++ b/third_party/pdfium/core/fxge/dib/cfx_bitmapstorer.cpp
71
-@@ -6,6 +6,8 @@
72
-
73
- #include "core/fxge/dib/cfx_bitmapstorer.h"
74
-
75
-+#include <string.h>
76
-+
77
- #include <utility>
78
-
79
- #include "core/fxge/dib/cfx_dibitmap.h"
80
-diff --git a/third_party/pdfium/core/fxge/dib/cfx_dibbase.cpp b/third_party/pdfium/core/fxge/dib/cfx_dibbase.cpp
81
-index 4ec0ddb..a1de2fb 100644
82
---- a/third_party/pdfium/core/fxge/dib/cfx_dibbase.cpp
83
-+++ b/third_party/pdfium/core/fxge/dib/cfx_dibbase.cpp
84
-@@ -6,6 +6,8 @@
85
-
86
- #include "core/fxge/dib/cfx_dibbase.h"
87
-
88
-+#include <string.h>
89
-+
90
- #include <algorithm>
91
- #include <memory>
92
- #include <utility>
93
-diff --git a/third_party/pdfium/core/fxge/dib/cfx_dibitmap.cpp b/third_party/pdfium/core/fxge/dib/cfx_dibitmap.cpp
94
-index d7ccf6c..94e8acc 100644
95
---- a/third_party/pdfium/core/fxge/dib/cfx_dibitmap.cpp
96
-+++ b/third_party/pdfium/core/fxge/dib/cfx_dibitmap.cpp
97
-@@ -6,6 +6,8 @@
98
-
99
- #include "core/fxge/dib/cfx_dibitmap.h"
100
-
101
-+#include <string.h>
102
-+
103
- #include <limits>
104
- #include <memory>
105
- #include <utility>
106
-diff --git a/third_party/pdfium/core/fxge/dib/cfx_scanlinecompositor.cpp b/third_party/pdfium/core/fxge/dib/cfx_scanlinecompositor.cpp
107
-index e8362d7..c04c6dc 100644
108
---- a/third_party/pdfium/core/fxge/dib/cfx_scanlinecompositor.cpp
109
-+++ b/third_party/pdfium/core/fxge/dib/cfx_scanlinecompositor.cpp
110
-@@ -6,6 +6,8 @@
111
-
112
- #include "core/fxge/dib/cfx_scanlinecompositor.h"
113
-
114
-+#include <string.h>
115
-+
116
- #include <algorithm>
117
-
118
- #include "core/fxge/dib/fx_dib.h"
119
chromium-94-CustomSpaces-include.patch
Added
26
1
2
+From 4eeacdaa57b29a079fe09315eb22557c06aa522e Mon Sep 17 00:00:00 2001
3
+From: Stephan Hartmann <stha09@googlemail.com>
4
+Date: Fri, 13 Aug 2021 12:57:42 +0000
5
+Subject: [PATCH] IWYU: add memory for std::unique_ptr in blink::CustomSpaces
6
+
7
+---
8
+ .../blink/renderer/platform/heap/v8_wrapper/custom_spaces.h | 1 +
9
+ 1 file changed, 1 insertion(+)
10
+
11
+diff --git a/third_party/blink/renderer/platform/heap/v8_wrapper/custom_spaces.h b/third_party/blink/renderer/platform/heap/v8_wrapper/custom_spaces.h
12
+index df0465a..640cb33 100644
13
+--- a/third_party/blink/renderer/platform/heap/v8_wrapper/custom_spaces.h
14
++++ b/third_party/blink/renderer/platform/heap/v8_wrapper/custom_spaces.h
15
+@@ -5,6 +5,7 @@
16
+ #ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_HEAP_V8_WRAPPER_CUSTOM_SPACES_H_
17
+ #define THIRD_PARTY_BLINK_RENDERER_PLATFORM_HEAP_V8_WRAPPER_CUSTOM_SPACES_H_
18
+
19
++#include <memory>
20
+ #include <vector>
21
+
22
+ #include "third_party/blink/renderer/platform/platform_export.h"
23
+--
24
+2.31.1
25
+
26
chromium-94-compiler.patch
Added
201
1
2
+From f4d0b0eb899005b4b8b6388e1d8bb82cc0018fc8 Mon Sep 17 00:00:00 2001
3
+From: Mike Gilbert <floppym@gentoo.org>
4
+Date: Sun, 8 Aug 2021 08:50:00 +0000
5
+Subject: [PATCH] Disable various compiler configs
6
+
7
+---
8
+ build/config/compiler/BUILD.gn | 105 ++++++---------------------------
9
+ 1 file changed, 17 insertions(+), 88 deletions(-)
10
+
11
+diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
12
+index 0bb155a..e95c023 100644
13
+--- a/build/config/compiler/BUILD.gn
14
++++ b/build/config/compiler/BUILD.gn
15
+@@ -291,8 +291,6 @@ config("compiler") {
16
+
17
+ configs += [
18
+ # See the definitions below.
19
+- ":clang_revision",
20
+- ":compiler_cpu_abi",
21
+ ":compiler_codegen",
22
+ ":compiler_deterministic",
23
+ ]
24
+@@ -530,31 +528,6 @@ config("compiler") {
25
+ ldflags += [ "-Wl,-z,keep-text-section-prefix" ]
26
+ }
27
+
28
+- if (is_clang && !is_nacl && !use_xcode_clang) {
29
+- cflags += [ "-fcrash-diagnostics-dir=" + clang_diagnostic_dir ]
30
+-
31
+- # TODO(hans): Remove this once Clang generates better optimized debug info
32
+- # by default. https://crbug.com/765793
33
+- cflags += [
34
+- "-mllvm",
35
+- "-instcombine-lower-dbg-declare=0",
36
+- ]
37
+- if (!is_debug && use_thin_lto && is_a_target_toolchain) {
38
+- if (is_win) {
39
+- ldflags += [ "-mllvm:-instcombine-lower-dbg-declare=0" ]
40
+- } else {
41
+- ldflags += [ "-Wl,-mllvm,-instcombine-lower-dbg-declare=0" ]
42
+- }
43
+- }
44
+-
45
+- # TODO(crbug.com/1235145): Investigate why/if this should be needed.
46
+- if (is_win) {
47
+- cflags += [ "/clang:-ffp-contract=off" ]
48
+- } else {
49
+- cflags += [ "-ffp-contract=off" ]
50
+- }
51
+- }
52
+-
53
+ # C11/C++11 compiler flags setup.
54
+ # ---------------------------
55
+ if (is_linux || is_chromeos || is_android || (is_nacl && is_clang) ||
56
+@@ -1216,45 +1189,6 @@ config("compiler_deterministic") {
57
+ }
58
+ }
59
+
60
+- # Makes builds independent of absolute file path.
61
+- if (is_clang && strip_absolute_paths_from_debug_symbols) {
62
+- # If debug option is given, clang includes $cwd in debug info by default.
63
+- # For such build, this flag generates reproducible obj files even we use
64
+- # different build directory like "out/feature_a" and "out/feature_b" if
65
+- # we build same files with same compile flag.
66
+- # Other paths are already given in relative, no need to normalize them.
67
+- if (is_nacl) {
68
+- # TODO(https://crbug.com/1231236): Use -ffile-compilation-dir= here.
69
+- cflags += [
70
+- "-Xclang",
71
+- "-fdebug-compilation-dir",
72
+- "-Xclang",
73
+- ".",
74
+- ]
75
+- } else {
76
+- # -ffile-compilation-dir is an alias for both -fdebug-compilation-dir=
77
+- # and -fcoverage-compilation-dir=.
78
+- cflags += [ "-ffile-compilation-dir=." ]
79
+- }
80
+- if (!is_win) {
81
+- # We don't use clang -cc1as on Windows (yet? https://crbug.com/762167)
82
+- asmflags = [ "-Wa,-fdebug-compilation-dir,." ]
83
+- }
84
+-
85
+- if (is_win && use_lld) {
86
+- if (symbol_level == 2 || (is_clang && using_sanitizer)) {
87
+- # Absolutize source file paths for PDB. Pass the real build directory
88
+- # if the pdb contains source-level debug information and if linker
89
+- # reproducibility is not critical.
90
+- ldflags += [ "/PDBSourcePath:" + rebase_path(root_build_dir) ]
91
+- } else {
92
+- # Use a fake fixed base directory for paths in the pdb to make the pdb
93
+- # output fully deterministic and independent of the build directory.
94
+- ldflags += [ "/PDBSourcePath:o:\fake\prefix" ]
95
+- }
96
+- }
97
+- }
98
+-
99
+ # Tells the compiler not to use absolute paths when passing the default
100
+ # paths to the tools it invokes. We don't want this because we don't
101
+ # really need it and it can mess up the goma cache entries.
102
+@@ -1658,7 +1592,7 @@ config("chromium_code") {
103
+ defines = [ "_HAS_NODISCARD" ]
104
+ }
105
+ } else {
106
+- cflags = [ "-Wall" ]
107
++ cflags = []
108
+ if (treat_warnings_as_errors) {
109
+ cflags += [ "-Werror" ]
110
+
111
+@@ -1667,10 +1601,6 @@ config("chromium_code") {
112
+ # well.
113
+ ldflags = [ "-Werror" ]
114
+ }
115
+- if (is_clang) {
116
+- # Enable extra warnings for chromium_code when we control the compiler.
117
+- cflags += [ "-Wextra" ]
118
+- }
119
+
120
+ # In Chromium code, we define __STDC_foo_MACROS in order to get the
121
+ # C99 macros on Mac and Linux.
122
+@@ -1679,15 +1609,6 @@ config("chromium_code") {
123
+ "__STDC_FORMAT_MACROS",
124
+ ]
125
+
126
+- if (!is_debug && !using_sanitizer && current_cpu != "s390x" &&
127
+- current_cpu != "s390" && current_cpu != "ppc64" &&
128
+- current_cpu != "mips" && current_cpu != "mips64") {
129
+- # Non-chromium code is not guaranteed to compile cleanly with
130
+- # _FORTIFY_SOURCE. Also, fortified build may fail when optimizations are
131
+- # disabled, so only do that for Release build.
132
+- defines += [ "_FORTIFY_SOURCE=2" ]
133
+- }
134
+-
135
+ if (is_mac) {
136
+ cflags_objc = [ "-Wobjc-missing-property-synthesis" ]
137
+ cflags_objcc = [ "-Wobjc-missing-property-synthesis" ]
138
+@@ -2077,7 +1998,8 @@ config("default_stack_frames") {
139
+ }
140
+
141
+ # Default "optimization on" config.
142
+-config("optimize") {
143
++config("optimize") { }
144
++config("xoptimize") {
145
+ if (is_win) {
146
+ if (chrome_pgo_phase != 2) {
147
+ # Favor size over speed, /O1 must be before the common flags.
148
+@@ -2112,7 +2034,8 @@ config("optimize") {
149
+ }
150
+
151
+ # Turn off optimizations.
152
+-config("no_optimize") {
153
++config("no_optimize") { }
154
++config("xno_optimize") {
155
+ if (is_win) {
156
+ cflags = [
157
+ "/Od", # Disable optimization.
158
+@@ -2152,7 +2075,8 @@ config("no_optimize") {
159
+ # Turns up the optimization level. On Windows, this implies whole program
160
+ # optimization and link-time code generation which is very expensive and should
161
+ # be used sparingly.
162
+-config("optimize_max") {
163
++config("optimize_max") { }
164
++config("xoptimize_max") {
165
+ if (is_nacl && is_nacl_irt) {
166
+ # The NaCl IRT is a special case and always wants its own config.
167
+ # Various components do:
168
+@@ -2184,7 +2108,8 @@ config("optimize_max") {
169
+ #
170
+ # TODO(crbug.com/621335) - rework how all of these configs are related
171
+ # so that we don't need this disclaimer.
172
+-config("optimize_speed") {
173
++config("optimize_speed") { }
174
++config("xoptimize_speed") {
175
+ if (is_nacl && is_nacl_irt) {
176
+ # The NaCl IRT is a special case and always wants its own config.
177
+ # Various components do:
178
+@@ -2209,7 +2134,8 @@ config("optimize_speed") {
179
+ }
180
+ }
181
+
182
+-config("optimize_fuzzing") {
183
++config("optimize_fuzzing") { }
184
++config("xoptimize_fuzzing") {
185
+ cflags = [ "-O1" ] + common_optimize_on_cflags
186
+ ldflags = common_optimize_on_ldflags
187
+ visibility = [ ":default_optimization" ]
188
+@@ -2328,7 +2254,8 @@ config("win_pdbaltpath") {
189
+ }
190
+
191
+ # Full symbols.
192
+-config("symbols") {
193
++config("symbols") { }
194
++config("xsymbols") {
195
+ if (is_win) {
196
+ if (is_clang) {
197
+ cflags = [ "/Z7" ] # Debug information in the .obj files.
198
+@@ -2431,7 +2358,8 @@ config("symbols") {
199
+ # Minimal symbols.
200
+ # This config guarantees to hold symbol for stack trace which are shown to user
201
chromium-94-sql-no-assert.patch
Added
17
1
2
+--- a/sql/recover_module/cursor.h
3
++++ b/sql/recover_module/cursor.h
4
+@@ -62,10 +62,12 @@
5
+ // |sqlite_cursor| must have been returned by VirtualTable::SqliteCursor().
6
+ static inline VirtualCursor* FromSqliteCursor(
7
+ sqlite3_vtab_cursor* sqlite_cursor) {
8
++#ifndef NDEBUG
9
+ static_assert(std::is_standard_layout<VirtualCursor>::value,
10
+ "needed for the reinterpret_cast below");
11
+ static_assert(offsetof(VirtualCursor, sqlite_cursor_) == 0,
12
+ "sqlite_cursor_ must be the first member of the class");
13
++#endif
14
+ VirtualCursor* result = reinterpret_cast<VirtualCursor*>(sqlite_cursor);
15
+ DCHECK_EQ(sqlite_cursor, &result->sqlite_cursor_);
16
+ return result;
17
chromium-freetype-2.11.patch
Deleted
54
1
2
-diff -up chromium-93.0.4577.63/third_party/skia/src/ports/SkFontHost_FreeType_common.cpp.freetype-2.11 chromium-93.0.4577.63/third_party/skia/src/ports/SkFontHost_FreeType_common.cpp
3
---- chromium-93.0.4577.63/third_party/skia/src/ports/SkFontHost_FreeType_common.cpp.freetype-2.11 2021-09-02 08:49:18.996863417 -0400
4
-+++ chromium-93.0.4577.63/third_party/skia/src/ports/SkFontHost_FreeType_common.cpp 2021-09-02 08:56:07.716626801 -0400
5
-@@ -712,7 +712,11 @@ void colrv1_draw_paint(SkCanvas* canvas,
6
- canvas->drawPaint(colrPaint);
7
- break;
8
- }
9
-+#if FREETYPE_MAJOR == 2 && FREETYPE_MINOR >= 11
10
- case FT_COLR_PAINTFORMAT_TRANSFORM:
11
-+#else
12
-+ case FT_COLR_PAINTFORMAT_TRANSFORMED:
13
-+#endif
14
- case FT_COLR_PAINTFORMAT_TRANSLATE:
15
- case FT_COLR_PAINTFORMAT_SCALE:
16
- case FT_COLR_PAINTFORMAT_ROTATE:
17
-@@ -760,10 +764,17 @@ void colrv1_transform(SkCanvas* canvas,
18
- SkMatrix transform;
19
-
20
- switch (colrv1_paint.format) {
21
-+#if FREETYPE_MAJOR == 2 && FREETYPE_MINOR >= 11
22
- case FT_COLR_PAINTFORMAT_TRANSFORM: {
23
- transform = ToSkMatrix(colrv1_paint.u.transform.affine);
24
- break;
25
- }
26
-+#else
27
-+ case FT_COLR_PAINTFORMAT_TRANSFORMED: {
28
-+ transform = ToSkMatrix(colrv1_paint.u.transformed.affine);
29
-+ break;
30
-+ }
31
-+#endif
32
- case FT_COLR_PAINTFORMAT_TRANSLATE: {
33
- transform = SkMatrix::Translate(
34
- SkFixedToScalar(colrv1_paint.u.translate.dx),
35
-@@ -889,11 +900,18 @@ bool colrv1_traverse_paint(SkCanvas* can
36
- traverse_result = colrv1_start_glyph(canvas, palette, face, paint.u.colr_glyph.glyphID,
37
- FT_COLOR_NO_ROOT_TRANSFORM);
38
- break;
39
-+#if FREETYPE_MAJOR == 2 && FREETYPE_MINOR >= 11
40
- case FT_COLR_PAINTFORMAT_TRANSFORM:
41
- colrv1_transform(canvas, face, paint);
42
- traverse_result = colrv1_traverse_paint(canvas, palette, face,
43
- paint.u.transform.paint, visited_set);
44
- break;
45
-+#else
46
-+ case FT_COLR_PAINTFORMAT_TRANSFORMED:
47
-+ colrv1_transform(canvas, face, paint);
48
-+ traverse_result = colrv1_traverse_paint(canvas, palette, face,
49
-+ paint.u.transformed.paint, visited_set);
50
-+#endif
51
- case FT_COLR_PAINTFORMAT_TRANSLATE:
52
- colrv1_transform(canvas, face, paint);
53
- traverse_result = colrv1_traverse_paint(canvas, palette, face,
54
chromium-glibc-2.33.patch
Deleted
151
1
2
-# Patch made by Kevin Kofler <Kevin@tigcc.ticalc.org>
3
-# https://bugzilla.redhat.com/show_bug.cgi?id=1904652
4
-
5
-Index: chromium-90.0.4430.72/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
6
-===================================================================
7
---- chromium-90.0.4430.72.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
8
-+++ chromium-90.0.4430.72/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
9
-@@ -269,6 +269,18 @@ ResultExpr EvaluateSyscallImpl(int fs_de
10
- return Allow();
11
- }
12
-
13
-+#if defined(__NR_newfstatat)
14
-+ if (sysno == __NR_newfstatat) {
15
-+ return RewriteFstatatSIGSYS();
16
-+ }
17
-+#endif
18
-+
19
-+#if defined(__NR_fstatat64)
20
-+ if (sysno == __NR_fstatat64) {
21
-+ return RewriteFstatatSIGSYS();
22
-+ }
23
-+#endif
24
-+
25
- if (SyscallSets::IsFileSystem(sysno) ||
26
- SyscallSets::IsCurrentDirectory(sysno)) {
27
- return Error(fs_denied_errno);
28
-Index: chromium-90.0.4430.72/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc
29
-===================================================================
30
---- chromium-90.0.4430.72.orig/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc
31
-+++ chromium-90.0.4430.72/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc
32
-@@ -6,6 +6,8 @@
33
-
34
- #include "sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h"
35
-
36
-+#include <errno.h>
37
-+#include <fcntl.h>
38
- #include <stddef.h>
39
- #include <stdint.h>
40
- #include <string.h>
41
-@@ -355,6 +357,35 @@ intptr_t SIGSYSSchedHandler(const struct
42
- return -ENOSYS;
43
- }
44
-
45
-+intptr_t SIGSYSFstatatHandler(const struct arch_seccomp_data& args,
46
-+ void* aux) {
47
-+ switch (args.nr) {
48
-+#if defined(__NR_newfstatat)
49
-+ case __NR_newfstatat:
50
-+#endif
51
-+#if defined(__NR_fstatat64)
52
-+ case __NR_fstatat64:
53
-+#endif
54
-+#if defined(__NR_newfstatat) || defined(__NR_fstatat64)
55
-+ if (*reinterpret_cast<const char *>(args.args[1]) == '\0'
56
-+ && args.args[3] == static_cast<uint64_t>(AT_EMPTY_PATH)) {
57
-+ return sandbox::sys_fstat64(static_cast<int>(args.args[0]),
58
-+ reinterpret_cast<struct stat64 *>(args.args[2]));
59
-+ } else {
60
-+ errno = EACCES;
61
-+ return -1;
62
-+ }
63
-+ break;
64
-+#endif
65
-+ }
66
-+
67
-+ CrashSIGSYS_Handler(args, aux);
68
-+
69
-+ // Should never be reached.
70
-+ RAW_CHECK(false);
71
-+ return -ENOSYS;
72
-+}
73
-+
74
- bpf_dsl::ResultExpr CrashSIGSYS() {
75
- return bpf_dsl::Trap(CrashSIGSYS_Handler, NULL);
76
- }
77
-@@ -387,6 +418,10 @@ bpf_dsl::ResultExpr RewriteSchedSIGSYS()
78
- return bpf_dsl::Trap(SIGSYSSchedHandler, NULL);
79
- }
80
-
81
-+bpf_dsl::ResultExpr RewriteFstatatSIGSYS() {
82
-+ return bpf_dsl::Trap(SIGSYSFstatatHandler, NULL);
83
-+}
84
-+
85
- void AllocateCrashKeys() {
86
- #if !defined(OS_NACL_NONSFI)
87
- if (seccomp_crash_key)
88
-Index: chromium-90.0.4430.72/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h
89
-===================================================================
90
---- chromium-90.0.4430.72.orig/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h
91
-+++ chromium-90.0.4430.72/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h
92
-@@ -62,6 +62,10 @@ SANDBOX_EXPORT intptr_t SIGSYSPtraceFail
93
- // sched_setparam(), sched_setscheduler()
94
- SANDBOX_EXPORT intptr_t SIGSYSSchedHandler(const arch_seccomp_data& args,
95
- void* aux);
96
-+// If the fstatat syscall is actually a disguised fstat, calls the regular fstat
97
-+// syscall, otherwise, crashes in the same way as CrashSIGSYS_Handler.
98
-+SANDBOX_EXPORT intptr_t SIGSYSFstatatHandler(const struct arch_seccomp_data& args,
99
-+ void* aux);
100
-
101
- // Variants of the above functions for use with bpf_dsl.
102
- SANDBOX_EXPORT bpf_dsl::ResultExpr CrashSIGSYS();
103
-@@ -72,6 +76,7 @@ SANDBOX_EXPORT bpf_dsl::ResultExpr Crash
104
- SANDBOX_EXPORT bpf_dsl::ResultExpr CrashSIGSYSFutex();
105
- SANDBOX_EXPORT bpf_dsl::ResultExpr CrashSIGSYSPtrace();
106
- SANDBOX_EXPORT bpf_dsl::ResultExpr RewriteSchedSIGSYS();
107
-+SANDBOX_EXPORT bpf_dsl::ResultExpr RewriteFstatatSIGSYS();
108
-
109
- // Allocates a crash key so that Seccomp information can be recorded.
110
- void AllocateCrashKeys();
111
-Index: chromium-90.0.4430.72/sandbox/linux/services/syscall_wrappers.cc
112
-===================================================================
113
---- chromium-90.0.4430.72.orig/sandbox/linux/services/syscall_wrappers.cc
114
-+++ chromium-90.0.4430.72/sandbox/linux/services/syscall_wrappers.cc
115
-@@ -261,4 +261,13 @@ int sys_sigaction(int signum,
116
-
117
- #endif // defined(MEMORY_SANITIZER)
118
-
119
-+SANDBOX_EXPORT int sys_fstat64(int fd, struct stat64 *buf)
120
-+{
121
-+#if defined(__NR_fstat64)
122
-+ return syscall(__NR_fstat64, fd, buf);
123
-+#else
124
-+ return syscall(__NR_fstat, fd, buf);
125
-+#endif
126
-+}
127
-+
128
- } // namespace sandbox
129
-Index: chromium-90.0.4430.72/sandbox/linux/services/syscall_wrappers.h
130
-===================================================================
131
---- chromium-90.0.4430.72.orig/sandbox/linux/services/syscall_wrappers.h
132
-+++ chromium-90.0.4430.72/sandbox/linux/services/syscall_wrappers.h
133
-@@ -17,6 +17,7 @@ struct sock_fprog;
134
- struct rlimit64;
135
- struct cap_hdr;
136
- struct cap_data;
137
-+struct stat64;
138
-
139
- namespace sandbox {
140
-
141
-@@ -84,6 +85,9 @@ SANDBOX_EXPORT int sys_sigaction(int sig
142
- const struct sigaction* act,
143
- struct sigaction* oldact);
144
-
145
-+// Recent glibc rewrites fstat to fstatat.
146
-+SANDBOX_EXPORT int sys_fstat64(int fd, struct stat64 *buf);
147
-+
148
- } // namespace sandbox
149
-
150
- #endif // SANDBOX_LINUX_SERVICES_SYSCALL_WRAPPERS_H_
151
chromium-older-harfbuzz.patch
Added
28
1
2
+From: Fabian Vogt <fvogt@suse.com>
3
+Subject: Fix build with harfbuzz < 2.9.0
4
+
5
+Index: qtwebengine-everywhere-src-5.15.6/src/3rdparty/chromium/components/paint_preview/common/subset_font.cc
6
+===================================================================
7
+--- a/components/paint_preview/common/subset_font.cc
8
++++ b/components/paint_preview/common/subset_font.cc
9
+@@ -71,11 +71,18 @@ sk_sp<SkData> SubsetFont(SkTypeface* typ
10
+ hb_set_t* glyphs =
11
+ hb_subset_input_glyph_set(input.get()); // Owned by |input|.
12
+ usage.ForEach(base::BindRepeating(&AddGlyphs, base::Unretained(glyphs)));
13
++#if HB_VERSION_ATLEAST(2,9,0)
14
+ hb_subset_input_set_flags(input.get(), HB_SUBSET_FLAGS_RETAIN_GIDS);
15
+
16
+ HbScoped<hb_face_t> subset_face(hb_subset_or_fail(face.get(), input.get()));
17
+ if (!subset_face)
18
+ return nullptr;
19
++#else
20
++ hb_subset_input_set_retain_gids(input.get(), true);
21
++
22
++ HbScoped<hb_face_t> subset_face(hb_subset(face.get(), input.get()));
23
++#endif
24
++
25
+ HbScoped<hb_blob_t> subset_blob(hb_face_reference_blob(subset_face.get()));
26
+ if (!subset_blob)
27
+ return nullptr;
28
chromium-shim_headers.patch
Deleted
50
1
2
-From e273172bbafedca36984fc40f4aa6c44b79ac2ef Mon Sep 17 00:00:00 2001
3
-From: Stephan Hartmann <stha09@googlemail.com>
4
-Date: Fri, 25 Dec 2020 09:10:32 +0000
5
-Subject: [PATCH] shim_headers: fix outputs generation
6
-
7
----
8
- build/shim_headers.gni | 11 +++++++----
9
- 1 file changed, 7 insertions(+), 4 deletions(-)
10
-
11
-diff --git a/build/shim_headers.gni b/build/shim_headers.gni
12
-index 0900cba..5138647 100644
13
---- a/build/shim_headers.gni
14
-+++ b/build/shim_headers.gni
15
-@@ -6,6 +6,8 @@ template("shim_headers") {
16
- action_name = "gen_${target_name}"
17
- config_name = "${target_name}_config"
18
- shim_headers_path = "${root_gen_dir}/shim_headers/${target_name}"
19
-+ shim_root_path = rebase_path(invoker.root_path)
20
-+ shim_rel_path = rebase_path("${shim_root_path}", rebase_path("//"))
21
-
22
- config(config_name) {
23
- include_dirs = [ shim_headers_path ]
24
-@@ -16,7 +18,7 @@ template("shim_headers") {
25
- args = [
26
- "--generate",
27
- "--headers-root",
28
-- rebase_path(invoker.root_path),
29
-+ "${shim_root_path}",
30
- "--output-directory",
31
- rebase_path(shim_headers_path),
32
- ]
33
-@@ -27,9 +29,10 @@ template("shim_headers") {
34
- ]
35
- }
36
- args += invoker.headers
37
--
38
-- outputs = process_file_template(invoker.headers,
39
-- "${shim_headers_path}/{{source_file_part}}")
40
-+ outputs = []
41
-+ foreach(shim_header, invoker.headers) {
42
-+ outputs += [ "${shim_headers_path}/${shim_rel_path}/" + shim_header ]
43
-+ }
44
- }
45
-
46
- group(target_name) {
47
---
48
-2.26.2
49
-
50
chromium-93.0.4577.82.tar.xz -> chromium-94.0.4606.81.tar.xz
Changed