chore: bump chromium to 134.0.6998.10 (main) (#45564)
* chore: bump chromium to 134.0.6992.0 * chore: add BrowserProcessImpl::CreateGlobalFeaturesForTesting() stub Xref:6216193
Remove GlobalFeatures from TestingBrowserProcess::Init * chore: bump chromium to 134.0.6994.0 * 6208630: Mac sandbox: don't use protobuf for policy serialization |6208630
* [PDF] Remove HasUnsupportedFeature Mojo interface Xref:6220800
* 6217444: Remove scoped_gdi_object.h type aliases. |6217444
* chore: bump chromium to 134.0.6998.10 * 6221378: Revert [OBC] Exclude Aliasing Cookies in FilterCookiesWithOptions() |6221378
* Update ExtensionPrefs::GetDisableReasons to return DisableReasonSet Xref:6218840
change copied from 6218840 extensions/shell/browser/shell_extension_loader.cc * 6218402: Typemap ui.gfx.DXGIHandle <=> gfx::DXGIHandle |6218402
* chore: disable flaky contentTracing test not new to this roll; it is happening in main as well * fixup! chore: disable flaky contentTracing test --------- Co-authored-by: alice <alice@makenotion.com>
This commit is contained in:
parent
9f47c9a051
commit
aa06b065c0
17 changed files with 69 additions and 94 deletions
2
DEPS
2
DEPS
|
@ -2,7 +2,7 @@ gclient_gn_args_from = 'src'
|
||||||
|
|
||||||
vars = {
|
vars = {
|
||||||
'chromium_version':
|
'chromium_version':
|
||||||
'134.0.6990.0',
|
'134.0.6998.10',
|
||||||
'node_version':
|
'node_version':
|
||||||
'v22.13.1',
|
'v22.13.1',
|
||||||
'nan_version':
|
'nan_version':
|
||||||
|
|
|
@ -35,10 +35,10 @@ system font by checking if it's kCTFontPriorityAttribute is set to
|
||||||
system priority.
|
system priority.
|
||||||
|
|
||||||
diff --git a/base/BUILD.gn b/base/BUILD.gn
|
diff --git a/base/BUILD.gn b/base/BUILD.gn
|
||||||
index a4ae9c4c242551f6850cdcbb42551b676db76c95..22281156bcfdd6999d15d511c508415f8f3f9ac7 100644
|
index 05ba2110698b69af677ad1fe898ae6e5953c7af4..7bcbb8f647faea889e295d8919f67745a7f72136 100644
|
||||||
--- a/base/BUILD.gn
|
--- a/base/BUILD.gn
|
||||||
+++ b/base/BUILD.gn
|
+++ b/base/BUILD.gn
|
||||||
@@ -1028,6 +1028,7 @@ component("base") {
|
@@ -1027,6 +1027,7 @@ component("base") {
|
||||||
"//build:ios_buildflags",
|
"//build:ios_buildflags",
|
||||||
"//build/config/compiler:compiler_buildflags",
|
"//build/config/compiler:compiler_buildflags",
|
||||||
"//third_party/modp_b64",
|
"//third_party/modp_b64",
|
||||||
|
@ -192,10 +192,10 @@ index e12c1d078147d956a1d9b1bc498c1b1d6fe7b974..233362259dc4e728ed37435e65041764
|
||||||
|
|
||||||
} // namespace base
|
} // namespace base
|
||||||
diff --git a/components/os_crypt/sync/BUILD.gn b/components/os_crypt/sync/BUILD.gn
|
diff --git a/components/os_crypt/sync/BUILD.gn b/components/os_crypt/sync/BUILD.gn
|
||||||
index bfb0d2f208170f77df96fb9f14c8525e9dec6e11..e234d95a862198148bae97b4b276d93922f3ca92 100644
|
index ff1e356ff696d3830d02644969c36a71fdf32ff6..b39c716c52524b95f2d3417a98e60c0c41147c93 100644
|
||||||
--- a/components/os_crypt/sync/BUILD.gn
|
--- a/components/os_crypt/sync/BUILD.gn
|
||||||
+++ b/components/os_crypt/sync/BUILD.gn
|
+++ b/components/os_crypt/sync/BUILD.gn
|
||||||
@@ -43,6 +43,8 @@ component("os_crypt") {
|
@@ -38,6 +38,8 @@ component("sync") {
|
||||||
"os_crypt_mac.mm",
|
"os_crypt_mac.mm",
|
||||||
]
|
]
|
||||||
deps += [ "//crypto:mock_apple_keychain" ]
|
deps += [ "//crypto:mock_apple_keychain" ]
|
||||||
|
@ -269,7 +269,7 @@ index e9f4e5131238b9fb5f1b4b3e90a0cb84a7fc15b4..8b5f4cae3123ac5480ad73f0c873fca0
|
||||||
|
|
||||||
} // namespace
|
} // 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
|
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
|
--- a/components/remote_cocoa/app_shim/browser_native_widget_window_mac.mm
|
||||||
+++ b/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 @@
|
@@ -9,7 +9,9 @@
|
||||||
|
@ -298,7 +298,7 @@ index 19fff43c3daaef5451b6b60b84a610a21311448e..240b954661d34fcc4329d39490be33c4
|
||||||
+ (Class)frameViewClassForStyleMask:(NSUInteger)windowStyle {
|
+ (Class)frameViewClassForStyleMask:(NSUInteger)windowStyle {
|
||||||
// - NSThemeFrame and its subclasses will be nil if it's missing at runtime.
|
// - NSThemeFrame and its subclasses will be nil if it's missing at runtime.
|
||||||
if ([BrowserWindowFrame class])
|
if ([BrowserWindowFrame class])
|
||||||
@@ -165,6 +170,8 @@ - (BOOL)_usesCustomDrawing {
|
@@ -163,6 +168,8 @@ - (BOOL)_usesCustomDrawing {
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -307,7 +307,7 @@ index 19fff43c3daaef5451b6b60b84a610a21311448e..240b954661d34fcc4329d39490be33c4
|
||||||
// Handle "Move focus to the window toolbar" configured in System Preferences ->
|
// Handle "Move focus to the window toolbar" configured in System Preferences ->
|
||||||
// Keyboard -> Shortcuts -> Keyboard. Usually Ctrl+F5. The argument (|unknown|)
|
// Keyboard -> Shortcuts -> Keyboard. Usually Ctrl+F5. The argument (|unknown|)
|
||||||
// tends to just be nil.
|
// 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 {
|
- (void)setAlwaysShowTrafficLights:(BOOL)alwaysShow {
|
||||||
|
@ -354,7 +354,7 @@ index 3a815ebf505bd95fa7f6b61ba433d98fbfe20225..149de0175c2ec0e41e3ba40caad7019c
|
||||||
+
|
+
|
||||||
@end
|
@end
|
||||||
diff --git a/components/remote_cocoa/app_shim/native_widget_mac_nswindow.h b/components/remote_cocoa/app_shim/native_widget_mac_nswindow.h
|
diff --git a/components/remote_cocoa/app_shim/native_widget_mac_nswindow.h b/components/remote_cocoa/app_shim/native_widget_mac_nswindow.h
|
||||||
index d55914779bc097cab8afb144f2c47c001bfa7350..e55db3f550b4c082aa087fbcab6760da237f8471 100644
|
index 127a2829fafa04bfbab0b883304dfb815d7e1c22..61d7946e52862f3586b1e098d7d44a125656de81 100644
|
||||||
--- a/components/remote_cocoa/app_shim/native_widget_mac_nswindow.h
|
--- a/components/remote_cocoa/app_shim/native_widget_mac_nswindow.h
|
||||||
+++ b/components/remote_cocoa/app_shim/native_widget_mac_nswindow.h
|
+++ b/components/remote_cocoa/app_shim/native_widget_mac_nswindow.h
|
||||||
@@ -9,6 +9,7 @@
|
@@ -9,6 +9,7 @@
|
||||||
|
@ -382,7 +382,7 @@ index d55914779bc097cab8afb144f2c47c001bfa7350..e55db3f550b4c082aa087fbcab6760da
|
||||||
// The NSWindow used by BridgedNativeWidget. Provides hooks into AppKit that
|
// The NSWindow used by BridgedNativeWidget. Provides hooks into AppKit that
|
||||||
// can only be accomplished by overriding methods.
|
// can only be accomplished by overriding methods.
|
||||||
diff --git a/components/remote_cocoa/app_shim/native_widget_mac_nswindow.mm b/components/remote_cocoa/app_shim/native_widget_mac_nswindow.mm
|
diff --git a/components/remote_cocoa/app_shim/native_widget_mac_nswindow.mm b/components/remote_cocoa/app_shim/native_widget_mac_nswindow.mm
|
||||||
index 03ff0478f16f237e6b8082508d5399195bfdca44..9b74f6ca6de6ec057073e175170014b5512040b4 100644
|
index 2b50e3c3750c9ac6dd84a514663062a5d754b43e..49ced9aa87d3bcb00cd3d76ac32d4eec89873549 100644
|
||||||
--- a/components/remote_cocoa/app_shim/native_widget_mac_nswindow.mm
|
--- a/components/remote_cocoa/app_shim/native_widget_mac_nswindow.mm
|
||||||
+++ b/components/remote_cocoa/app_shim/native_widget_mac_nswindow.mm
|
+++ b/components/remote_cocoa/app_shim/native_widget_mac_nswindow.mm
|
||||||
@@ -26,6 +26,7 @@
|
@@ -26,6 +26,7 @@
|
||||||
|
@ -449,7 +449,7 @@ index 03ff0478f16f237e6b8082508d5399195bfdca44..9b74f6ca6de6ec057073e175170014b5
|
||||||
bool shouldShowWindowTitle = YES;
|
bool shouldShowWindowTitle = YES;
|
||||||
if (_bridge)
|
if (_bridge)
|
||||||
diff --git a/components/remote_cocoa/app_shim/native_widget_ns_window_bridge.mm b/components/remote_cocoa/app_shim/native_widget_ns_window_bridge.mm
|
diff --git a/components/remote_cocoa/app_shim/native_widget_ns_window_bridge.mm b/components/remote_cocoa/app_shim/native_widget_ns_window_bridge.mm
|
||||||
index 89aca4b47c202f137a5ffe8390986ef6dd62942a..59276806afa7659573eb276149ff8ed47ca72c1f 100644
|
index 36c522793dc37f7c72f7cccde50895927b5560cb..689351b5a6e6e6013b808c1b4924b8848dcc0fa2 100644
|
||||||
--- a/components/remote_cocoa/app_shim/native_widget_ns_window_bridge.mm
|
--- a/components/remote_cocoa/app_shim/native_widget_ns_window_bridge.mm
|
||||||
+++ b/components/remote_cocoa/app_shim/native_widget_ns_window_bridge.mm
|
+++ b/components/remote_cocoa/app_shim/native_widget_ns_window_bridge.mm
|
||||||
@@ -41,6 +41,7 @@
|
@@ -41,6 +41,7 @@
|
||||||
|
@ -579,10 +579,10 @@ index a76028eed0249244d0559de102a756e3b2771b63..cb65efb56849d57e2e656f90d5b1d737
|
||||||
return kAttributes;
|
return kAttributes;
|
||||||
}
|
}
|
||||||
diff --git a/content/browser/BUILD.gn b/content/browser/BUILD.gn
|
diff --git a/content/browser/BUILD.gn b/content/browser/BUILD.gn
|
||||||
index 74ca66c0f38b4fc4448d50a9f3674cda6a078f0e..5c49a11dfbe1275f0f8cd21bf970d3b6b98cb71e 100644
|
index e5ca8881f7e05fc3c600cf6f785a2070efff2e5d..ce57b1e635f26ef248fbf8285cf69fe3c6c41105 100644
|
||||||
--- a/content/browser/BUILD.gn
|
--- a/content/browser/BUILD.gn
|
||||||
+++ b/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/touch_selection",
|
||||||
"//ui/webui/resources",
|
"//ui/webui/resources",
|
||||||
"//v8:v8_version",
|
"//v8:v8_version",
|
||||||
|
@ -625,7 +625,7 @@ index bea4e26ef8577e8e8bc60287cf1b94c7dfcc9478..eed42b0cbc3422b7fd59ae1b2550c53d
|
||||||
// Used to force the NSApplication's focused accessibility element to be the
|
// Used to force the NSApplication's focused accessibility element to be the
|
||||||
// content::BrowserAccessibilityCocoa accessibility tree when the NSView for
|
// 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
|
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
|
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
|
||||||
+++ b/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 @@
|
@@ -48,6 +48,7 @@
|
||||||
|
@ -647,7 +647,7 @@ index 9185fd223c9611faee546570c0df36bc94cdb28c..86886e94e9e2c52e297a82175f607185
|
||||||
|
|
||||||
// Reset `ns_view_` before resetting `remote_ns_view_` to avoid dangling
|
// Reset `ns_view_` before resetting `remote_ns_view_` to avoid dangling
|
||||||
// pointers. `ns_view_` gets reinitialized later in this method.
|
// 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
|
gfx::NativeViewAccessible
|
||||||
RenderWidgetHostViewMac::AccessibilityGetNativeViewAccessibleForWindow() {
|
RenderWidgetHostViewMac::AccessibilityGetNativeViewAccessibleForWindow() {
|
||||||
|
@ -658,7 +658,7 @@ index 9185fd223c9611faee546570c0df36bc94cdb28c..86886e94e9e2c52e297a82175f607185
|
||||||
return [GetInProcessNSView() window];
|
return [GetInProcessNSView() window];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1666,9 +1671,11 @@ void CombineTextNodesAndMakeCallback(SpeechCallback callback,
|
@@ -1672,9 +1677,11 @@ void CombineTextNodesAndMakeCallback(SpeechCallback callback,
|
||||||
}
|
}
|
||||||
|
|
||||||
void RenderWidgetHostViewMac::SetAccessibilityWindow(NSWindow* window) {
|
void RenderWidgetHostViewMac::SetAccessibilityWindow(NSWindow* window) {
|
||||||
|
@ -670,7 +670,7 @@ index 9185fd223c9611faee546570c0df36bc94cdb28c..86886e94e9e2c52e297a82175f607185
|
||||||
}
|
}
|
||||||
|
|
||||||
bool RenderWidgetHostViewMac::SyncIsWidgetForMainFrame(
|
bool RenderWidgetHostViewMac::SyncIsWidgetForMainFrame(
|
||||||
@@ -2195,20 +2202,26 @@ void CombineTextNodesAndMakeCallback(SpeechCallback callback,
|
@@ -2201,20 +2208,26 @@ void CombineTextNodesAndMakeCallback(SpeechCallback callback,
|
||||||
void RenderWidgetHostViewMac::GetRenderWidgetAccessibilityToken(
|
void RenderWidgetHostViewMac::GetRenderWidgetAccessibilityToken(
|
||||||
GetRenderWidgetAccessibilityTokenCallback callback) {
|
GetRenderWidgetAccessibilityTokenCallback callback) {
|
||||||
base::ProcessId pid = getpid();
|
base::ProcessId pid = getpid();
|
||||||
|
@ -792,7 +792,7 @@ index a1068589ad844518038ee7bc15a3de9bc5cba525..1ff781c49f086ec8015c7d3c44567dbe
|
||||||
|
|
||||||
} // namespace content
|
} // namespace content
|
||||||
diff --git a/content/test/BUILD.gn b/content/test/BUILD.gn
|
diff --git a/content/test/BUILD.gn b/content/test/BUILD.gn
|
||||||
index 27adf4138c7ea1cb90460bdd21586163f7614a48..6b422c331bb14489b36a762ad2ced88544d21b60 100644
|
index 190b593519ab8ccfc6309b40947c6e42ff8c6131..ec3dd70e677d7215df1c2cb504faa62ac1e6dff4 100644
|
||||||
--- a/content/test/BUILD.gn
|
--- a/content/test/BUILD.gn
|
||||||
+++ b/content/test/BUILD.gn
|
+++ b/content/test/BUILD.gn
|
||||||
@@ -652,6 +652,7 @@ static_library("test_support") {
|
@@ -652,6 +652,7 @@ static_library("test_support") {
|
||||||
|
@ -811,7 +811,7 @@ index 27adf4138c7ea1cb90460bdd21586163f7614a48..6b422c331bb14489b36a762ad2ced885
|
||||||
}
|
}
|
||||||
|
|
||||||
mojom("content_test_mojo_bindings") {
|
mojom("content_test_mojo_bindings") {
|
||||||
@@ -1924,6 +1926,7 @@ test("content_browsertests") {
|
@@ -1935,6 +1937,7 @@ test("content_browsertests") {
|
||||||
"//ui/shell_dialogs",
|
"//ui/shell_dialogs",
|
||||||
"//ui/snapshot",
|
"//ui/snapshot",
|
||||||
"//ui/webui:test_support",
|
"//ui/webui:test_support",
|
||||||
|
@ -819,7 +819,7 @@ index 27adf4138c7ea1cb90460bdd21586163f7614a48..6b422c331bb14489b36a762ad2ced885
|
||||||
]
|
]
|
||||||
|
|
||||||
if (!(is_chromeos && target_cpu == "arm64" && current_cpu == "arm")) {
|
if (!(is_chromeos && target_cpu == "arm64" && current_cpu == "arm")) {
|
||||||
@@ -3210,6 +3213,7 @@ test("content_unittests") {
|
@@ -3228,6 +3231,7 @@ test("content_unittests") {
|
||||||
"//ui/latency:test_support",
|
"//ui/latency:test_support",
|
||||||
"//ui/shell_dialogs:shell_dialogs",
|
"//ui/shell_dialogs:shell_dialogs",
|
||||||
"//ui/webui:test_support",
|
"//ui/webui:test_support",
|
||||||
|
@ -932,10 +932,10 @@ index 36322ddd3047f96569f35807541a37d3c6672b09..0121a780cf3b79fc1120c1b85cd5cd30
|
||||||
|
|
||||||
namespace ui {
|
namespace ui {
|
||||||
diff --git a/media/audio/BUILD.gn b/media/audio/BUILD.gn
|
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
|
--- a/media/audio/BUILD.gn
|
||||||
+++ b/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",
|
"CoreMedia.framework",
|
||||||
]
|
]
|
||||||
weak_frameworks = [ "ScreenCaptureKit.framework" ] # macOS 13.0
|
weak_frameworks = [ "ScreenCaptureKit.framework" ] # macOS 13.0
|
||||||
|
@ -1023,18 +1023,18 @@ index 70d5665ad7b9ef62370497636af919ede2508ad4..f4dc3e2b8053cdb3e8c439ab1a1d6369
|
||||||
}
|
}
|
||||||
|
|
||||||
diff --git a/sandbox/mac/BUILD.gn b/sandbox/mac/BUILD.gn
|
diff --git a/sandbox/mac/BUILD.gn b/sandbox/mac/BUILD.gn
|
||||||
index 4e53d573ff67615bc7dcee7db6f855c67094f414..8b061d66b1a854b51a5a38b6a71eadab6a7dbbec 100644
|
index 453e2185fc85fcb29fa7af3f94cce5bda8118b0c..1c383675bb9113b5b1df9280b8ee994123794dfc 100644
|
||||||
--- a/sandbox/mac/BUILD.gn
|
--- a/sandbox/mac/BUILD.gn
|
||||||
+++ b/sandbox/mac/BUILD.gn
|
+++ b/sandbox/mac/BUILD.gn
|
||||||
@@ -39,6 +39,7 @@ component("seatbelt") {
|
@@ -25,6 +25,7 @@ component("seatbelt") {
|
||||||
]
|
libs = [ "sandbox" ]
|
||||||
public_deps = [ "//third_party/protobuf:protobuf_lite" ]
|
deps = [ ":seatbelt_export" ]
|
||||||
defines = [ "SEATBELT_IMPLEMENTATION" ]
|
defines = [ "SEATBELT_IMPLEMENTATION" ]
|
||||||
+ deps += ["//electron/build/config:generate_mas_config"]
|
+ deps += ["//electron/build/config:generate_mas_config"]
|
||||||
}
|
}
|
||||||
|
|
||||||
component("seatbelt_extension") {
|
component("seatbelt_extension") {
|
||||||
@@ -52,6 +53,7 @@ component("seatbelt_extension") {
|
@@ -38,6 +39,7 @@ component("seatbelt_extension") {
|
||||||
libs = [ "sandbox" ]
|
libs = [ "sandbox" ]
|
||||||
public_deps = [ "//base" ]
|
public_deps = [ "//base" ]
|
||||||
defines = [ "SEATBELT_IMPLEMENTATION" ]
|
defines = [ "SEATBELT_IMPLEMENTATION" ]
|
||||||
|
@ -1042,7 +1042,7 @@ index 4e53d573ff67615bc7dcee7db6f855c67094f414..8b061d66b1a854b51a5a38b6a71eadab
|
||||||
}
|
}
|
||||||
|
|
||||||
component("system_services") {
|
component("system_services") {
|
||||||
@@ -66,6 +68,7 @@ component("system_services") {
|
@@ -52,6 +54,7 @@ component("system_services") {
|
||||||
deps = [ ":seatbelt_export" ]
|
deps = [ ":seatbelt_export" ]
|
||||||
public_deps = [ "//base" ]
|
public_deps = [ "//base" ]
|
||||||
defines = [ "SEATBELT_IMPLEMENTATION" ]
|
defines = [ "SEATBELT_IMPLEMENTATION" ]
|
||||||
|
@ -1050,36 +1050,6 @@ index 4e53d573ff67615bc7dcee7db6f855c67094f414..8b061d66b1a854b51a5a38b6a71eadab
|
||||||
}
|
}
|
||||||
|
|
||||||
source_set("sandbox_unittests") {
|
source_set("sandbox_unittests") {
|
||||||
diff --git a/sandbox/mac/sandbox_compiler.cc b/sandbox/mac/sandbox_compiler.cc
|
|
||||||
index f35d9ef2a2df3db8ecbf1d7b909c7b1cf33f3cd9..5d52330d1bd70cd7b97ee3360721f10c8447c717 100644
|
|
||||||
--- a/sandbox/mac/sandbox_compiler.cc
|
|
||||||
+++ b/sandbox/mac/sandbox_compiler.cc
|
|
||||||
@@ -7,6 +7,7 @@
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
+#include "electron/mas.h"
|
|
||||||
#include "sandbox/mac/seatbelt.h"
|
|
||||||
|
|
||||||
namespace sandbox {
|
|
||||||
@@ -47,6 +48,7 @@ bool SandboxCompiler::SetParameter(const std::string& key,
|
|
||||||
}
|
|
||||||
|
|
||||||
bool SandboxCompiler::CompileAndApplyProfile(std::string& error) {
|
|
||||||
+#if !IS_MAS_BUILD()
|
|
||||||
if (mode_ == Target::kSource) {
|
|
||||||
std::vector<const char*> params;
|
|
||||||
|
|
||||||
@@ -67,6 +69,9 @@ bool SandboxCompiler::CompileAndApplyProfile(std::string& error) {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
+#else
|
|
||||||
+ return true;
|
|
||||||
+#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
bool SandboxCompiler::CompilePolicyToProto(mac::SandboxPolicy& policy,
|
|
||||||
diff --git a/sandbox/mac/sandbox_logging.cc b/sandbox/mac/sandbox_logging.cc
|
diff --git a/sandbox/mac/sandbox_logging.cc b/sandbox/mac/sandbox_logging.cc
|
||||||
index 095c639b9893e885d8937e29ed7d47a7c28bc6b6..7e0cf9b9f94b16741358bdb45122f8b2bd68c0f9 100644
|
index 095c639b9893e885d8937e29ed7d47a7c28bc6b6..7e0cf9b9f94b16741358bdb45122f8b2bd68c0f9 100644
|
||||||
--- a/sandbox/mac/sandbox_logging.cc
|
--- a/sandbox/mac/sandbox_logging.cc
|
||||||
|
@ -1117,7 +1087,7 @@ index 095c639b9893e885d8937e29ed7d47a7c28bc6b6..7e0cf9b9f94b16741358bdb45122f8b2
|
||||||
|
|
||||||
// |error| is strerror(errno) when a P* logging function is called. Pass
|
// |error| is strerror(errno) when a P* logging function is called. Pass
|
||||||
diff --git a/sandbox/mac/seatbelt.cc b/sandbox/mac/seatbelt.cc
|
diff --git a/sandbox/mac/seatbelt.cc b/sandbox/mac/seatbelt.cc
|
||||||
index 15c835e118456394c0a00ac98c11241c14ca75bd..a16faabe2bd63a5e0fbe9082a3b4b7c8aa0ea064 100644
|
index 1960e1c8771fad615a098af09ff1f9a191f67764..29b97b352d08cd1fe73b17fd80cb41cc7e58dcaa 100644
|
||||||
--- a/sandbox/mac/seatbelt.cc
|
--- a/sandbox/mac/seatbelt.cc
|
||||||
+++ b/sandbox/mac/seatbelt.cc
|
+++ b/sandbox/mac/seatbelt.cc
|
||||||
@@ -4,12 +4,14 @@
|
@@ -4,12 +4,14 @@
|
||||||
|
@ -1220,14 +1190,21 @@ index 15c835e118456394c0a00ac98c11241c14ca75bd..a16faabe2bd63a5e0fbe9082a3b4b7c8
|
||||||
}
|
}
|
||||||
|
|
||||||
// static
|
// static
|
||||||
@@ -129,10 +147,14 @@ bool Seatbelt::InitWithParams(const char* profile,
|
@@ -129,16 +147,21 @@ bool Seatbelt::InitWithParams(const std::string& profile,
|
||||||
uint64_t flags,
|
uint64_t flags,
|
||||||
const char* const parameters[],
|
const std::vector<std::string>& parameters,
|
||||||
std::string* error) {
|
std::string* error) {
|
||||||
+#if !IS_MAS_BUILD()
|
+#if !IS_MAS_BUILD()
|
||||||
|
std::vector<const char*> weak_params;
|
||||||
|
for (const std::string& param : parameters) {
|
||||||
|
weak_params.push_back(param.c_str());
|
||||||
|
}
|
||||||
|
// The parameters array must be null terminated.
|
||||||
|
weak_params.push_back(nullptr);
|
||||||
|
+
|
||||||
char* errorbuf = nullptr;
|
char* errorbuf = nullptr;
|
||||||
int rv =
|
int rv = ::sandbox_init_with_parameters(profile.c_str(), flags,
|
||||||
::sandbox_init_with_parameters(profile, flags, parameters, &errorbuf);
|
weak_params.data(), &errorbuf);
|
||||||
return HandleSandboxResult(rv, errorbuf, error);
|
return HandleSandboxResult(rv, errorbuf, error);
|
||||||
+#else
|
+#else
|
||||||
+ return true;
|
+ return true;
|
||||||
|
@ -1235,7 +1212,7 @@ index 15c835e118456394c0a00ac98c11241c14ca75bd..a16faabe2bd63a5e0fbe9082a3b4b7c8
|
||||||
}
|
}
|
||||||
|
|
||||||
// static
|
// static
|
||||||
@@ -140,6 +162,7 @@ bool Seatbelt::Compile(const char* profile,
|
@@ -146,6 +169,7 @@ bool Seatbelt::Compile(const char* profile,
|
||||||
const Seatbelt::Parameters& params,
|
const Seatbelt::Parameters& params,
|
||||||
std::string& compiled_profile,
|
std::string& compiled_profile,
|
||||||
std::string* error) {
|
std::string* error) {
|
||||||
|
@ -1243,7 +1220,7 @@ index 15c835e118456394c0a00ac98c11241c14ca75bd..a16faabe2bd63a5e0fbe9082a3b4b7c8
|
||||||
char* errorbuf = nullptr;
|
char* errorbuf = nullptr;
|
||||||
sandbox_profile_t* sandbox_profile =
|
sandbox_profile_t* sandbox_profile =
|
||||||
::sandbox_compile_string(profile, params.params(), &errorbuf);
|
::sandbox_compile_string(profile, params.params(), &errorbuf);
|
||||||
@@ -149,33 +172,44 @@ bool Seatbelt::Compile(const char* profile,
|
@@ -155,33 +179,44 @@ bool Seatbelt::Compile(const char* profile,
|
||||||
compiled_profile.assign(reinterpret_cast<const char*>(sandbox_profile->data),
|
compiled_profile.assign(reinterpret_cast<const char*>(sandbox_profile->data),
|
||||||
sandbox_profile->size);
|
sandbox_profile->size);
|
||||||
::sandbox_free_profile(sandbox_profile);
|
::sandbox_free_profile(sandbox_profile);
|
||||||
|
@ -1392,7 +1369,7 @@ index eb81a70e4d5d5cd3e6ae9b45f8cd1c795ea76c51..9921ccb10d3455600eddd85f77f10228
|
||||||
|
|
||||||
} // namespace sandbox
|
} // namespace sandbox
|
||||||
diff --git a/third_party/blink/renderer/core/BUILD.gn b/third_party/blink/renderer/core/BUILD.gn
|
diff --git a/third_party/blink/renderer/core/BUILD.gn b/third_party/blink/renderer/core/BUILD.gn
|
||||||
index 076ae475b3c4f0d2568e5efc9fedf2de7ccc82ad..b961c9c000bbb82c5f6ae63466c6d5d679d92de6 100644
|
index 17b3ddd66513a01a631d77535cfeb1ae94881e0e..bde6c61489fe4f88abba79fd2fb809c292a3f99a 100644
|
||||||
--- a/third_party/blink/renderer/core/BUILD.gn
|
--- a/third_party/blink/renderer/core/BUILD.gn
|
||||||
+++ b/third_party/blink/renderer/core/BUILD.gn
|
+++ b/third_party/blink/renderer/core/BUILD.gn
|
||||||
@@ -409,6 +409,7 @@ component("core") {
|
@@ -409,6 +409,7 @@ component("core") {
|
||||||
|
@ -1634,7 +1611,7 @@ index c8171f0527fe5194f0ea73b57c4444d4c630fbc4..c2ac4da580e3e7f749a0a4de1e859af6
|
||||||
// Accessible object
|
// Accessible object
|
||||||
if (AXElementWrapper::IsValidElement(value)) {
|
if (AXElementWrapper::IsValidElement(value)) {
|
||||||
diff --git a/ui/base/BUILD.gn b/ui/base/BUILD.gn
|
diff --git a/ui/base/BUILD.gn b/ui/base/BUILD.gn
|
||||||
index 5ca4c8fc961d24985aa4e0459dc2c42003a5346f..2f5880d1d3fbc3aa1461bbe611c33f789a6f4dde 100644
|
index f211074c41fd50597db8b72510149d27ffc8d90a..885511f666318ce1218a09c3ebf5ec1aa00e9ecf 100644
|
||||||
--- a/ui/base/BUILD.gn
|
--- a/ui/base/BUILD.gn
|
||||||
+++ b/ui/base/BUILD.gn
|
+++ b/ui/base/BUILD.gn
|
||||||
@@ -363,6 +363,13 @@ component("base") {
|
@@ -363,6 +363,13 @@ component("base") {
|
||||||
|
@ -1804,10 +1781,10 @@ index 29ae2da6a8a2c2a612dfb92f7f9c03ca5fa306b1..440c139a32a0c205e77b657d4aab6468
|
||||||
// Query the display's refresh rate.
|
// Query the display's refresh rate.
|
||||||
if (@available(macos 12.0, *)) {
|
if (@available(macos 12.0, *)) {
|
||||||
diff --git a/ui/gfx/BUILD.gn b/ui/gfx/BUILD.gn
|
diff --git a/ui/gfx/BUILD.gn b/ui/gfx/BUILD.gn
|
||||||
index 6cf9f1a38ed76edc8f64500476b4b3014dc7677f..54dcf71bd0bf5a1455b31f3d042305f0fc3e345b 100644
|
index 230a9e8266fa494f870ed7fc7dc444d1db5bbb48..99facff7a8e98cbc175354ae4e1d1f592197320a 100644
|
||||||
--- a/ui/gfx/BUILD.gn
|
--- a/ui/gfx/BUILD.gn
|
||||||
+++ b/ui/gfx/BUILD.gn
|
+++ b/ui/gfx/BUILD.gn
|
||||||
@@ -331,6 +331,12 @@ component("gfx") {
|
@@ -332,6 +332,12 @@ component("gfx") {
|
||||||
"//ui/base:ui_data_pack",
|
"//ui/base:ui_data_pack",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -1859,7 +1836,7 @@ index fe3f85073e31de487a08e57d7f9b07aa4eccf8f3..cf5b07203c8bd559a404600cc98cc8ec
|
||||||
// enough.
|
// enough.
|
||||||
return PlatformFontMac::SystemFontType::kGeneral;
|
return PlatformFontMac::SystemFontType::kGeneral;
|
||||||
diff --git a/ui/views/BUILD.gn b/ui/views/BUILD.gn
|
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
|
--- a/ui/views/BUILD.gn
|
||||||
+++ b/ui/views/BUILD.gn
|
+++ b/ui/views/BUILD.gn
|
||||||
@@ -718,6 +718,8 @@ component("views") {
|
@@ -718,6 +718,8 @@ component("views") {
|
||||||
|
@ -1871,7 +1848,7 @@ index 94afec13361d4ee8d0441da3cbe37d62e287c94b..fd13add3291b113dc57c69700f35ac99
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_win) {
|
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",
|
"//ui/base/mojom:ui_base_types",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -250,11 +250,7 @@ const std::string InclusionStatusToString(net::CookieInclusionStatus status) {
|
||||||
{Reason::EXCLUDE_THIRD_PARTY_PHASEOUT,
|
{Reason::EXCLUDE_THIRD_PARTY_PHASEOUT,
|
||||||
"The cookie is blocked for third-party cookie phaseout."},
|
"The cookie is blocked for third-party cookie phaseout."},
|
||||||
{Reason::EXCLUDE_NO_COOKIE_CONTENT,
|
{Reason::EXCLUDE_NO_COOKIE_CONTENT,
|
||||||
"The cookie contains no content or only whitespace."},
|
"The cookie contains no content or only whitespace."}});
|
||||||
{Reason::EXCLUDE_ALIASING,
|
|
||||||
"Cookie aliases that of another with a different source_port or "
|
|
||||||
"source scheme. I.e.: Two or more cookies share the same name "
|
|
||||||
"but have different ports/schemes."}});
|
|
||||||
static_assert(
|
static_assert(
|
||||||
Reasons.size() ==
|
Reasons.size() ==
|
||||||
net::CookieInclusionStatus::ExclusionReasonBitset::kValueCount,
|
net::CookieInclusionStatus::ExclusionReasonBitset::kValueCount,
|
||||||
|
|
|
@ -70,6 +70,7 @@ class BrowserProcessImpl : public BrowserProcess {
|
||||||
// BrowserProcess
|
// BrowserProcess
|
||||||
BuildState* GetBuildState() override;
|
BuildState* GetBuildState() override;
|
||||||
GlobalFeatures* GetFeatures() override;
|
GlobalFeatures* GetFeatures() override;
|
||||||
|
void CreateGlobalFeaturesForTesting() override {}
|
||||||
void EndSession() override {}
|
void EndSession() override {}
|
||||||
void FlushLocalStateAndReply(base::OnceClosure reply) override {}
|
void FlushLocalStateAndReply(base::OnceClosure reply) override {}
|
||||||
bool IsShuttingDown() override;
|
bool IsShuttingDown() override;
|
||||||
|
|
|
@ -20,7 +20,6 @@ class ElectronPDFDocumentHelperClient : public pdf::PDFDocumentHelperClient {
|
||||||
// pdf::PDFDocumentHelperClient
|
// pdf::PDFDocumentHelperClient
|
||||||
void UpdateContentRestrictions(content::RenderFrameHost* render_frame_host,
|
void UpdateContentRestrictions(content::RenderFrameHost* render_frame_host,
|
||||||
int content_restrictions) override;
|
int content_restrictions) override;
|
||||||
void OnPDFHasUnsupportedFeature(content::WebContents* contents) override {}
|
|
||||||
void OnSaveURL(content::WebContents* contents) override {}
|
void OnSaveURL(content::WebContents* contents) override {}
|
||||||
void SetPluginCanSave(content::RenderFrameHost* render_frame_host,
|
void SetPluginCanSave(content::RenderFrameHost* render_frame_host,
|
||||||
bool can_save) override;
|
bool can_save) override;
|
||||||
|
|
|
@ -181,8 +181,7 @@ void ElectronExtensionLoader::PreAddExtension(const Extension* extension,
|
||||||
extension_prefs->RemoveDisableReason(extension->id(),
|
extension_prefs->RemoveDisableReason(extension->id(),
|
||||||
disable_reason::DISABLE_RELOAD);
|
disable_reason::DISABLE_RELOAD);
|
||||||
// Only re-enable the extension if there are no other disable reasons.
|
// Only re-enable the extension if there are no other disable reasons.
|
||||||
if (extension_prefs->GetDisableReasons(extension->id()) ==
|
if (extension_prefs->GetDisableReasons(extension->id()).empty()) {
|
||||||
disable_reason::DISABLE_NONE) {
|
|
||||||
extension_prefs->SetExtensionEnabled(extension->id());
|
extension_prefs->SetExtensionEnabled(extension->id());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1636,8 +1636,8 @@ gfx::Rect NativeWindowViews::WindowBoundsToContentBounds(
|
||||||
#if BUILDFLAG(IS_WIN)
|
#if BUILDFLAG(IS_WIN)
|
||||||
void NativeWindowViews::SetIcon(HICON window_icon, HICON app_icon) {
|
void NativeWindowViews::SetIcon(HICON window_icon, HICON app_icon) {
|
||||||
// We are responsible for storing the images.
|
// We are responsible for storing the images.
|
||||||
window_icon_ = base::win::ScopedHICON(CopyIcon(window_icon));
|
window_icon_ = base::win::ScopedGDIObject<HICON>(CopyIcon(window_icon));
|
||||||
app_icon_ = base::win::ScopedHICON(CopyIcon(app_icon));
|
app_icon_ = base::win::ScopedGDIObject<HICON>(CopyIcon(app_icon));
|
||||||
|
|
||||||
HWND hwnd = GetAcceleratedWidget();
|
HWND hwnd = GetAcceleratedWidget();
|
||||||
SendMessage(hwnd, WM_SETICON, ICON_SMALL,
|
SendMessage(hwnd, WM_SETICON, ICON_SMALL,
|
||||||
|
|
|
@ -277,8 +277,8 @@ class NativeWindowViews : public NativeWindow,
|
||||||
gfx::Rect restore_bounds_;
|
gfx::Rect restore_bounds_;
|
||||||
|
|
||||||
// The icons of window and taskbar.
|
// The icons of window and taskbar.
|
||||||
base::win::ScopedHICON window_icon_;
|
base::win::ScopedGDIObject<HICON> window_icon_;
|
||||||
base::win::ScopedHICON app_icon_;
|
base::win::ScopedGDIObject<HICON> app_icon_;
|
||||||
|
|
||||||
// The set of windows currently forwarding mouse messages.
|
// The set of windows currently forwarding mouse messages.
|
||||||
static std::set<NativeWindowViews*> forwarding_windows_;
|
static std::set<NativeWindowViews*> forwarding_windows_;
|
||||||
|
|
|
@ -99,7 +99,7 @@ void OffScreenVideoConsumer::OnFrameCaptured(
|
||||||
|
|
||||||
#if BUILDFLAG(IS_WIN)
|
#if BUILDFLAG(IS_WIN)
|
||||||
texture.shared_texture_handle =
|
texture.shared_texture_handle =
|
||||||
reinterpret_cast<uintptr_t>(gmb_handle.dxgi_handle.Get());
|
reinterpret_cast<uintptr_t>(gmb_handle.dxgi_handle().buffer_handle());
|
||||||
#elif BUILDFLAG(IS_APPLE)
|
#elif BUILDFLAG(IS_APPLE)
|
||||||
texture.shared_texture_handle =
|
texture.shared_texture_handle =
|
||||||
reinterpret_cast<uintptr_t>(gmb_handle.io_surface.get());
|
reinterpret_cast<uintptr_t>(gmb_handle.io_surface.get());
|
||||||
|
|
|
@ -176,7 +176,7 @@ DialogResult ShowTaskDialogWstr(gfx::AcceleratedWidget parent,
|
||||||
config.pszWindowTitle = base::as_wcstr(title);
|
config.pszWindowTitle = base::as_wcstr(title);
|
||||||
}
|
}
|
||||||
|
|
||||||
base::win::ScopedHICON hicon;
|
base::win::ScopedGDIObject<HICON> hicon;
|
||||||
if (!icon.isNull()) {
|
if (!icon.isNull()) {
|
||||||
hicon = IconUtil::CreateHICONFromSkBitmap(*icon.bitmap());
|
hicon = IconUtil::CreateHICONFromSkBitmap(*icon.bitmap());
|
||||||
config.dwFlags |= TDF_USE_HICON_MAIN;
|
config.dwFlags |= TDF_USE_HICON_MAIN;
|
||||||
|
|
|
@ -129,7 +129,7 @@ void NotifyIcon::ResetIcon() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void NotifyIcon::SetImage(HICON image) {
|
void NotifyIcon::SetImage(HICON image) {
|
||||||
icon_ = base::win::ScopedHICON(CopyIcon(image));
|
icon_ = base::win::ScopedGDIObject<HICON>(CopyIcon(image));
|
||||||
|
|
||||||
// Create the icon.
|
// Create the icon.
|
||||||
NOTIFYICONDATA icon_data;
|
NOTIFYICONDATA icon_data;
|
||||||
|
|
|
@ -91,7 +91,7 @@ class NotifyIcon : public TrayIcon {
|
||||||
UINT message_id_;
|
UINT message_id_;
|
||||||
|
|
||||||
// The currently-displayed icon for the window.
|
// The currently-displayed icon for the window.
|
||||||
base::win::ScopedHICON icon_;
|
base::win::ScopedGDIObject<HICON> icon_;
|
||||||
|
|
||||||
// The context menu.
|
// The context menu.
|
||||||
raw_ptr<ElectronMenuModel> menu_model_ = nullptr;
|
raw_ptr<ElectronMenuModel> menu_model_ = nullptr;
|
||||||
|
|
|
@ -73,7 +73,8 @@ bool TaskbarHost::SetThumbarButtons(HWND window,
|
||||||
// The number of buttons in thumbar can not be changed once it is created,
|
// The number of buttons in thumbar can not be changed once it is created,
|
||||||
// so we have to claim kMaxButtonsCount buttons initially in case users add
|
// so we have to claim kMaxButtonsCount buttons initially in case users add
|
||||||
// more buttons later.
|
// more buttons later.
|
||||||
auto icons = std::array<base::win::ScopedHICON, kMaxButtonsCount>{};
|
auto icons =
|
||||||
|
std::array<base::win::ScopedGDIObject<HICON>, kMaxButtonsCount>{};
|
||||||
auto thumb_buttons = std::array<THUMBBUTTON, kMaxButtonsCount>{};
|
auto thumb_buttons = std::array<THUMBBUTTON, kMaxButtonsCount>{};
|
||||||
|
|
||||||
for (size_t i = 0U; i < kMaxButtonsCount; ++i) {
|
for (size_t i = 0U; i < kMaxButtonsCount; ++i) {
|
||||||
|
|
|
@ -102,7 +102,8 @@ bool IsTemplateFilename(const base::FilePath& path) {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if BUILDFLAG(IS_WIN)
|
#if BUILDFLAG(IS_WIN)
|
||||||
base::win::ScopedHICON ReadICOFromPath(int size, const base::FilePath& path) {
|
base::win::ScopedGDIObject<HICON> ReadICOFromPath(int size,
|
||||||
|
const base::FilePath& path) {
|
||||||
// If file is in asar archive, we extract it to a temp file so LoadImage can
|
// If file is in asar archive, we extract it to a temp file so LoadImage can
|
||||||
// load it.
|
// load it.
|
||||||
base::FilePath asar_path, relative_path;
|
base::FilePath asar_path, relative_path;
|
||||||
|
@ -115,7 +116,7 @@ base::win::ScopedHICON ReadICOFromPath(int size, const base::FilePath& path) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load the icon from file.
|
// Load the icon from file.
|
||||||
return base::win::ScopedHICON(
|
return base::win::ScopedGDIObject<HICON>(
|
||||||
static_cast<HICON>(LoadImage(nullptr, image_path.value().c_str(),
|
static_cast<HICON>(LoadImage(nullptr, image_path.value().c_str(),
|
||||||
IMAGE_ICON, size, size, LR_LOADFROMFILE)));
|
IMAGE_ICON, size, size, LR_LOADFROMFILE)));
|
||||||
}
|
}
|
||||||
|
|
|
@ -134,7 +134,7 @@ class NativeImage final : public gin::Wrappable<NativeImage> {
|
||||||
base::FilePath hicon_path_;
|
base::FilePath hicon_path_;
|
||||||
|
|
||||||
// size -> hicon
|
// size -> hicon
|
||||||
base::flat_map<int, base::win::ScopedHICON> hicons_;
|
base::flat_map<int, base::win::ScopedGDIObject<HICON>> hicons_;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
gfx::Image image_;
|
gfx::Image image_;
|
||||||
|
|
|
@ -90,7 +90,7 @@ v8::Local<v8::Promise> NativeImage::CreateThumbnailFromPath(
|
||||||
icon_info.hbmMask = hBitmap;
|
icon_info.hbmMask = hBitmap;
|
||||||
icon_info.hbmColor = hBitmap;
|
icon_info.hbmColor = hBitmap;
|
||||||
|
|
||||||
base::win::ScopedHICON icon(CreateIconIndirect(&icon_info));
|
base::win::ScopedGDIObject<HICON> icon(CreateIconIndirect(&icon_info));
|
||||||
SkBitmap skbitmap = IconUtil::CreateSkBitmapFromHICON(icon.get());
|
SkBitmap skbitmap = IconUtil::CreateSkBitmapFromHICON(icon.get());
|
||||||
gfx::ImageSkia image_skia =
|
gfx::ImageSkia image_skia =
|
||||||
gfx::ImageSkia::CreateFromBitmap(skbitmap, 1.0 /*scale factor*/);
|
gfx::ImageSkia::CreateFromBitmap(skbitmap, 1.0 /*scale factor*/);
|
||||||
|
|
|
@ -6,7 +6,7 @@ import * as fs from 'node:fs';
|
||||||
import * as path from 'node:path';
|
import * as path from 'node:path';
|
||||||
import { setTimeout } from 'node:timers/promises';
|
import { setTimeout } from 'node:timers/promises';
|
||||||
|
|
||||||
import { ifdescribe } from './lib/spec-helpers';
|
import { ifdescribe, ifit } from './lib/spec-helpers';
|
||||||
|
|
||||||
// FIXME: The tests are skipped on linux arm/arm64
|
// FIXME: The tests are skipped on linux arm/arm64
|
||||||
ifdescribe(!(['arm', 'arm64'].includes(process.arch)) || (process.platform !== 'linux'))('contentTracing', () => {
|
ifdescribe(!(['arm', 'arm64'].includes(process.arch)) || (process.platform !== 'linux'))('contentTracing', () => {
|
||||||
|
@ -112,7 +112,8 @@ ifdescribe(!(['arm', 'arm64'].includes(process.arch)) || (process.platform !== '
|
||||||
expect(fs.statSync(path).isFile()).to.be.true('output exists');
|
expect(fs.statSync(path).isFile()).to.be.true('output exists');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('calls its callback with a result file path', async () => {
|
// FIXME(ckerr): this test regularly flakes
|
||||||
|
ifit(process.platform !== 'linux')('calls its callback with a result file path', async () => {
|
||||||
const resultFilePath = await record(/* options */ {}, outputFilePath);
|
const resultFilePath = await record(/* options */ {}, outputFilePath);
|
||||||
expect(resultFilePath).to.be.a('string').and.be.equal(outputFilePath);
|
expect(resultFilePath).to.be.a('string').and.be.equal(outputFilePath);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue