|
@@ -35,10 +35,10 @@ system font by checking if it's kCTFontPriorityAttribute is set to
|
|
|
system priority.
|
|
|
|
|
|
diff --git a/base/BUILD.gn b/base/BUILD.gn
|
|
|
-index 854457658bbdc09f21f61eb76928dfd423e1eedd..e9443d83d35786b09bc1ff70a0360f6f7e66a42e 100644
|
|
|
+index 9f37a5f18f623c9502c2e2e254df905ba34c9d6c..121c577e0c0c518bd0ae1e5b5aa15cb1c6165315 100644
|
|
|
--- a/base/BUILD.gn
|
|
|
+++ b/base/BUILD.gn
|
|
|
-@@ -1028,6 +1028,7 @@ component("base") {
|
|
|
+@@ -1027,6 +1027,7 @@ component("base") {
|
|
|
"//build:ios_buildflags",
|
|
|
"//build/config/compiler:compiler_buildflags",
|
|
|
"//third_party/modp_b64",
|
|
@@ -269,7 +269,7 @@ index e9f4e5131238b9fb5f1b4b3e90a0cb84a7fc15b4..8b5f4cae3123ac5480ad73f0c873fca0
|
|
|
|
|
|
} // namespace
|
|
|
diff --git a/components/remote_cocoa/app_shim/browser_native_widget_window_mac.mm b/components/remote_cocoa/app_shim/browser_native_widget_window_mac.mm
|
|
|
-index 19fff43c3daaef5451b6b60b84a610a21311448e..240b954661d34fcc4329d39490be33c485fa8b6e 100644
|
|
|
+index 3a8b44a2a295119f37ca37d5866dfcfa21121db0..b408e9c73fe97dd8885b5479923481e20955cf8d 100644
|
|
|
--- a/components/remote_cocoa/app_shim/browser_native_widget_window_mac.mm
|
|
|
+++ b/components/remote_cocoa/app_shim/browser_native_widget_window_mac.mm
|
|
|
@@ -9,7 +9,9 @@
|
|
@@ -298,7 +298,7 @@ index 19fff43c3daaef5451b6b60b84a610a21311448e..240b954661d34fcc4329d39490be33c4
|
|
|
+ (Class)frameViewClassForStyleMask:(NSUInteger)windowStyle {
|
|
|
// - NSThemeFrame and its subclasses will be nil if it's missing at runtime.
|
|
|
if ([BrowserWindowFrame class])
|
|
|
-@@ -165,6 +170,8 @@ - (BOOL)_usesCustomDrawing {
|
|
|
+@@ -163,6 +168,8 @@ - (BOOL)_usesCustomDrawing {
|
|
|
return NO;
|
|
|
}
|
|
|
|
|
@@ -307,7 +307,7 @@ index 19fff43c3daaef5451b6b60b84a610a21311448e..240b954661d34fcc4329d39490be33c4
|
|
|
// Handle "Move focus to the window toolbar" configured in System Preferences ->
|
|
|
// Keyboard -> Shortcuts -> Keyboard. Usually Ctrl+F5. The argument (|unknown|)
|
|
|
// tends to just be nil.
|
|
|
-@@ -175,8 +182,8 @@ - (void)_handleFocusToolbarHotKey:(id)unknown {
|
|
|
+@@ -173,8 +180,8 @@ - (void)_handleFocusToolbarHotKey:(id)unknown {
|
|
|
}
|
|
|
|
|
|
- (void)setAlwaysShowTrafficLights:(BOOL)alwaysShow {
|
|
@@ -474,10 +474,10 @@ index 36c522793dc37f7c72f7cccde50895927b5560cb..689351b5a6e6e6013b808c1b4924b884
|
|
|
// Beware: This view was briefly removed (in favor of a bare CALayer) in
|
|
|
// https://crrev.com/c/1236675. The ordering of unassociated layers relative
|
|
|
diff --git a/components/viz/service/BUILD.gn b/components/viz/service/BUILD.gn
|
|
|
-index 3f1b98692d11116f965fe0eb7e4b6cae308a4f19..6ac941799bda10ce7f93612691a438018160a9dd 100644
|
|
|
+index 6e7ea90385f34b233a0c7beb6647f539ad976169..51fd7f87f0d8b07b1b7f531ff0033976d9327e53 100644
|
|
|
--- a/components/viz/service/BUILD.gn
|
|
|
+++ b/components/viz/service/BUILD.gn
|
|
|
-@@ -378,6 +378,7 @@ viz_component("service") {
|
|
|
+@@ -370,6 +370,7 @@ viz_component("service") {
|
|
|
"frame_sinks/external_begin_frame_source_mac.h",
|
|
|
]
|
|
|
}
|
|
@@ -485,7 +485,7 @@ index 3f1b98692d11116f965fe0eb7e4b6cae308a4f19..6ac941799bda10ce7f93612691a43801
|
|
|
}
|
|
|
|
|
|
if (is_android || use_ozone) {
|
|
|
-@@ -678,6 +679,7 @@ viz_source_set("unit_tests") {
|
|
|
+@@ -670,6 +671,7 @@ viz_source_set("unit_tests") {
|
|
|
"display_embedder/software_output_device_mac_unittest.mm",
|
|
|
]
|
|
|
frameworks = [ "IOSurface.framework" ]
|
|
@@ -545,7 +545,7 @@ index dbf334caa3a6d10017b69ad76802e389a011436b..da828823e8195cc9e497866363c9af93
|
|
|
|
|
|
void ForwardKeyboardEvent(const input::NativeWebKeyboardEvent& key_event,
|
|
|
diff --git a/content/app_shim_remote_cocoa/render_widget_host_view_cocoa.mm b/content/app_shim_remote_cocoa/render_widget_host_view_cocoa.mm
|
|
|
-index a76028eed0249244d0559de102a756e3b2771b63..cb65efb56849d57e2e656f90d5b1d737ba2d952d 100644
|
|
|
+index df6ef6912d0ffad09f0c52d68d7b2e4b46c42c2b..ec95982654b0604883ea88141367837a7b861425 100644
|
|
|
--- a/content/app_shim_remote_cocoa/render_widget_host_view_cocoa.mm
|
|
|
+++ b/content/app_shim_remote_cocoa/render_widget_host_view_cocoa.mm
|
|
|
@@ -35,6 +35,7 @@
|
|
@@ -579,10 +579,10 @@ index a76028eed0249244d0559de102a756e3b2771b63..cb65efb56849d57e2e656f90d5b1d737
|
|
|
return kAttributes;
|
|
|
}
|
|
|
diff --git a/content/browser/BUILD.gn b/content/browser/BUILD.gn
|
|
|
-index fec51f705d1a8424fdbff13d33aa6a2b16a650e5..42f5feab06cf2ebb20f851a78111aa952e8bff55 100644
|
|
|
+index 4504187d037a49ea3d3751dc57b997b06207b646..299e56b0f858d54565e1d1f0711002247ce5d790 100644
|
|
|
--- a/content/browser/BUILD.gn
|
|
|
+++ b/content/browser/BUILD.gn
|
|
|
-@@ -329,6 +329,7 @@ source_set("browser") {
|
|
|
+@@ -330,6 +330,7 @@ source_set("browser") {
|
|
|
"//ui/touch_selection",
|
|
|
"//ui/webui/resources",
|
|
|
"//v8:v8_version",
|
|
@@ -625,7 +625,7 @@ index bea4e26ef8577e8e8bc60287cf1b94c7dfcc9478..eed42b0cbc3422b7fd59ae1b2550c53d
|
|
|
// Used to force the NSApplication's focused accessibility element to be the
|
|
|
// content::BrowserAccessibilityCocoa accessibility tree when the NSView for
|
|
|
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm
|
|
|
-index 9185fd223c9611faee546570c0df36bc94cdb28c..86886e94e9e2c52e297a82175f6071852e792148 100644
|
|
|
+index 430426a0123508a45bf48dcbfb46d1c4dc9d9347..efa697b7c4d428200d14e436ab062c13273916f4 100644
|
|
|
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
|
|
|
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
|
|
|
@@ -48,6 +48,7 @@
|
|
@@ -647,7 +647,7 @@ index 9185fd223c9611faee546570c0df36bc94cdb28c..86886e94e9e2c52e297a82175f607185
|
|
|
|
|
|
// Reset `ns_view_` before resetting `remote_ns_view_` to avoid dangling
|
|
|
// pointers. `ns_view_` gets reinitialized later in this method.
|
|
|
-@@ -1616,8 +1619,10 @@ void CombineTextNodesAndMakeCallback(SpeechCallback callback,
|
|
|
+@@ -1622,8 +1625,10 @@ void CombineTextNodesAndMakeCallback(SpeechCallback callback,
|
|
|
|
|
|
gfx::NativeViewAccessible
|
|
|
RenderWidgetHostViewMac::AccessibilityGetNativeViewAccessibleForWindow() {
|
|
@@ -658,7 +658,7 @@ index 9185fd223c9611faee546570c0df36bc94cdb28c..86886e94e9e2c52e297a82175f607185
|
|
|
return [GetInProcessNSView() window];
|
|
|
}
|
|
|
|
|
|
-@@ -1666,9 +1671,11 @@ void CombineTextNodesAndMakeCallback(SpeechCallback callback,
|
|
|
+@@ -1672,9 +1677,11 @@ void CombineTextNodesAndMakeCallback(SpeechCallback callback,
|
|
|
}
|
|
|
|
|
|
void RenderWidgetHostViewMac::SetAccessibilityWindow(NSWindow* window) {
|
|
@@ -670,7 +670,7 @@ index 9185fd223c9611faee546570c0df36bc94cdb28c..86886e94e9e2c52e297a82175f607185
|
|
|
}
|
|
|
|
|
|
bool RenderWidgetHostViewMac::SyncIsWidgetForMainFrame(
|
|
|
-@@ -2195,20 +2202,26 @@ void CombineTextNodesAndMakeCallback(SpeechCallback callback,
|
|
|
+@@ -2201,20 +2208,26 @@ void CombineTextNodesAndMakeCallback(SpeechCallback callback,
|
|
|
void RenderWidgetHostViewMac::GetRenderWidgetAccessibilityToken(
|
|
|
GetRenderWidgetAccessibilityTokenCallback callback) {
|
|
|
base::ProcessId pid = getpid();
|
|
@@ -792,7 +792,7 @@ index a1068589ad844518038ee7bc15a3de9bc5cba525..1ff781c49f086ec8015c7d3c44567dbe
|
|
|
|
|
|
} // namespace content
|
|
|
diff --git a/content/test/BUILD.gn b/content/test/BUILD.gn
|
|
|
-index bb9096575a4e362f084d6d612319595f109f27a1..c0eaa67da879637e3adfd948d400ee6487512c00 100644
|
|
|
+index b703520ad916428f73272fba8e435d0e0107434a..7686163233e8c7956d37c08a98acd862577a4bf6 100644
|
|
|
--- a/content/test/BUILD.gn
|
|
|
+++ b/content/test/BUILD.gn
|
|
|
@@ -652,6 +652,7 @@ static_library("test_support") {
|
|
@@ -819,7 +819,7 @@ index bb9096575a4e362f084d6d612319595f109f27a1..c0eaa67da879637e3adfd948d400ee64
|
|
|
]
|
|
|
|
|
|
if (!(is_chromeos && target_cpu == "arm64" && current_cpu == "arm")) {
|
|
|
-@@ -3222,6 +3225,7 @@ test("content_unittests") {
|
|
|
+@@ -3227,6 +3230,7 @@ test("content_unittests") {
|
|
|
"//ui/latency:test_support",
|
|
|
"//ui/shell_dialogs:shell_dialogs",
|
|
|
"//ui/webui:test_support",
|
|
@@ -840,10 +840,10 @@ index 8779cf7cbbe2a583fda51867eaebc627f00bd4cd..98da1587fdc8cc8358a69db2b51d3982
|
|
|
|
|
|
# TODO(crbug.com/40139469): Blink test plugin must be migrated from PPAPI.
|
|
|
diff --git a/device/bluetooth/BUILD.gn b/device/bluetooth/BUILD.gn
|
|
|
-index af32815b302dff9750a1dcd83b6e03df7d5f2dc9..7f20a6affe68057eb51d3176d7a901c85cacf2e0 100644
|
|
|
+index d27d7140cc55a35e6ffb65028265bcb2ae5932d1..1ea92b29c730aba1c667de83bb98ca85f2046470 100644
|
|
|
--- a/device/bluetooth/BUILD.gn
|
|
|
+++ b/device/bluetooth/BUILD.gn
|
|
|
-@@ -258,6 +258,7 @@ component("bluetooth") {
|
|
|
+@@ -253,6 +253,7 @@ component("bluetooth") {
|
|
|
"IOKit.framework",
|
|
|
"Foundation.framework",
|
|
|
]
|
|
@@ -932,10 +932,10 @@ index 36322ddd3047f96569f35807541a37d3c6672b09..0121a780cf3b79fc1120c1b85cd5cd30
|
|
|
|
|
|
namespace ui {
|
|
|
diff --git a/media/audio/BUILD.gn b/media/audio/BUILD.gn
|
|
|
-index 977aa5b452c882ee69690ba034ec00c9e7ff7e24..3ae3e2ead48ea1af9307dcd12647ca2a24b3a6f4 100644
|
|
|
+index 87126a36725849cbaf478e2dc24dc3a628a30846..a3a88b07af91b86191d9e5727a1d021ebbbb22ce 100644
|
|
|
--- a/media/audio/BUILD.gn
|
|
|
+++ b/media/audio/BUILD.gn
|
|
|
-@@ -198,6 +198,7 @@ source_set("audio") {
|
|
|
+@@ -196,6 +196,7 @@ source_set("audio") {
|
|
|
"CoreMedia.framework",
|
|
|
]
|
|
|
weak_frameworks = [ "ScreenCaptureKit.framework" ] # macOS 13.0
|
|
@@ -1086,6 +1086,68 @@ index 095c639b9893e885d8937e29ed7d47a7c28bc6b6..7e0cf9b9f94b16741358bdb45122f8b2
|
|
|
}
|
|
|
|
|
|
// |error| is strerror(errno) when a P* logging function is called. Pass
|
|
|
+diff --git a/sandbox/mac/sandbox_serializer.cc b/sandbox/mac/sandbox_serializer.cc
|
|
|
+index 899f231e9bc8e1c76682972dd3f41d4cc38f4868..1da42104cc82cbabfd0c14fdd7025d6963aa50d6 100644
|
|
|
+--- a/sandbox/mac/sandbox_serializer.cc
|
|
|
++++ b/sandbox/mac/sandbox_serializer.cc
|
|
|
+@@ -7,6 +7,7 @@
|
|
|
+ #include <string>
|
|
|
+ #include <vector>
|
|
|
+
|
|
|
++#include "electron/mas.h"
|
|
|
+ #include "sandbox/mac/sandbox_logging.h"
|
|
|
+ #include "sandbox/mac/seatbelt.h"
|
|
|
+
|
|
|
+@@ -31,6 +32,7 @@ void EncodeVarInt(uint64_t from, std::string* into) {
|
|
|
+ } while (from);
|
|
|
+ }
|
|
|
+
|
|
|
++#if !IS_MAS_BUILD()
|
|
|
+ bool DecodeVarInt(std::string_view* from, uint64_t* into) {
|
|
|
+ std::string_view::const_iterator it = from->begin();
|
|
|
+ int shift = 0;
|
|
|
+@@ -49,12 +51,12 @@ bool DecodeVarInt(std::string_view* from, uint64_t* into) {
|
|
|
+ from->remove_prefix(it - from->begin());
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+-
|
|
|
++#endif
|
|
|
+ void EncodeString(const std::string& value, std::string* into) {
|
|
|
+ EncodeVarInt(value.length(), into);
|
|
|
+ into->append(value);
|
|
|
+ }
|
|
|
+-
|
|
|
++#if !IS_MAS_BUILD()
|
|
|
+ bool DecodeString(std::string_view* slice, std::string* value) {
|
|
|
+ uint64_t length;
|
|
|
+ if (!DecodeVarInt(slice, &length) || length < 0) {
|
|
|
+@@ -69,7 +71,7 @@ bool DecodeString(std::string_view* slice, std::string* value) {
|
|
|
+ slice->remove_prefix(size);
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+-
|
|
|
++#endif
|
|
|
+ } // namespace
|
|
|
+
|
|
|
+ SandboxSerializer::SandboxSerializer(Target mode) : mode_(mode) {
|
|
|
+@@ -140,6 +142,7 @@ bool SandboxSerializer::SerializePolicy(std::string& serialized_policy,
|
|
|
+ // static
|
|
|
+ bool SandboxSerializer::ApplySerializedPolicy(
|
|
|
+ const std::string& serialized_policy) {
|
|
|
++#if !IS_MAS_BUILD()
|
|
|
+ std::string_view policy = serialized_policy;
|
|
|
+ uint64_t mode;
|
|
|
+ if (!DecodeVarInt(&policy, &mode)) {
|
|
|
+@@ -201,6 +204,9 @@ bool SandboxSerializer::ApplySerializedPolicy(
|
|
|
+ }
|
|
|
+
|
|
|
+ return true;
|
|
|
++#else
|
|
|
++ return true;
|
|
|
++#endif
|
|
|
+ }
|
|
|
+
|
|
|
+ } // namespace sandbox
|
|
|
diff --git a/sandbox/mac/seatbelt.cc b/sandbox/mac/seatbelt.cc
|
|
|
index 1960e1c8771fad615a098af09ff1f9a191f67764..29b97b352d08cd1fe73b17fd80cb41cc7e58dcaa 100644
|
|
|
--- a/sandbox/mac/seatbelt.cc
|
|
@@ -1529,7 +1591,7 @@ index 2f7f2a8f81ec0e033cb83f82daac4835a2863cbc..21388d7de99fbb97c79eecbab658934d
|
|
|
|
|
|
if (is_ios) {
|
|
|
diff --git a/ui/accessibility/platform/browser_accessibility_manager_mac.mm b/ui/accessibility/platform/browser_accessibility_manager_mac.mm
|
|
|
-index 302e40d573b0a102019cb15c0c615f99c7765b1a..a671a0a3de1794ad9a81ddc0f01e615804a6b28b 100644
|
|
|
+index 444f315852deabbac971165a7de9751a1bb367e3..7aba9f251f869c64d7722558084f209bd5d27075 100644
|
|
|
--- a/ui/accessibility/platform/browser_accessibility_manager_mac.mm
|
|
|
+++ b/ui/accessibility/platform/browser_accessibility_manager_mac.mm
|
|
|
@@ -13,6 +13,7 @@
|
|
@@ -1611,7 +1673,7 @@ index c8171f0527fe5194f0ea73b57c4444d4c630fbc4..c2ac4da580e3e7f749a0a4de1e859af6
|
|
|
// Accessible object
|
|
|
if (AXElementWrapper::IsValidElement(value)) {
|
|
|
diff --git a/ui/base/BUILD.gn b/ui/base/BUILD.gn
|
|
|
-index 5ca4c8fc961d24985aa4e0459dc2c42003a5346f..2f5880d1d3fbc3aa1461bbe611c33f789a6f4dde 100644
|
|
|
+index 04702a2c6fec9f84a279e587a59c27c42ae20655..fdda175688baaeabf4991173b4a68ee8fce60d73 100644
|
|
|
--- a/ui/base/BUILD.gn
|
|
|
+++ b/ui/base/BUILD.gn
|
|
|
@@ -363,6 +363,13 @@ component("base") {
|
|
@@ -1836,7 +1898,7 @@ index fe3f85073e31de487a08e57d7f9b07aa4eccf8f3..cf5b07203c8bd559a404600cc98cc8ec
|
|
|
// enough.
|
|
|
return PlatformFontMac::SystemFontType::kGeneral;
|
|
|
diff --git a/ui/views/BUILD.gn b/ui/views/BUILD.gn
|
|
|
-index 94afec13361d4ee8d0441da3cbe37d62e287c94b..fd13add3291b113dc57c69700f35ac9943124786 100644
|
|
|
+index ee47ca61db4c321edce0d6ae49f9f6a21f01918a..c8fcad4a3af57cfb993018f0ad457c271bdefe0e 100644
|
|
|
--- a/ui/views/BUILD.gn
|
|
|
+++ b/ui/views/BUILD.gn
|
|
|
@@ -718,6 +718,8 @@ component("views") {
|
|
@@ -1848,7 +1910,7 @@ index 94afec13361d4ee8d0441da3cbe37d62e287c94b..fd13add3291b113dc57c69700f35ac99
|
|
|
}
|
|
|
|
|
|
if (is_win) {
|
|
|
-@@ -1135,6 +1137,8 @@ source_set("test_support") {
|
|
|
+@@ -1138,6 +1140,8 @@ source_set("test_support") {
|
|
|
"//ui/base/mojom:ui_base_types",
|
|
|
]
|
|
|
|