fix: re-enable WindowCaptureMacV2 #37014
Cancelled
This trop check was cancelled and can be ignored as this PR is no longer targeting this branch for a backport
Annotations
Check failure on line 96 in patches/chromium/desktop_media_list.patch
trop / Backportable? - 23-x-y
patches/chromium/desktop_media_list.patch#L88-L96
Patch Conflict
Raw output
++<<<<<<< HEAD
+@@ -141,7 +141,7 @@ BOOL CALLBACK AllHwndCollector(HWND hwnd, LPARAM param) {
+ #if BUILDFLAG(IS_MAC)
+ BASE_FEATURE(kWindowCaptureMacV2,
+ "WindowCaptureMacV2",
+- base::FEATURE_ENABLED_BY_DEFAULT);
++ base::FEATURE_DISABLED_BY_DEFAULT);
+ #endif
+
+ } // namespace
++=======
++>>>>>>> fix: re-enable WindowCaptureMacV2
Check failure on line 1248 in shell/browser/native_window_mac.mm
trop / Backportable? - 23-x-y
shell/browser/native_window_mac.mm#L1237-L1248
Patch Conflict
Raw output
++<<<<<<< HEAD
+ auto desktop_media_id = content::DesktopMediaID(
+ content::DesktopMediaID::TYPE_WINDOW, GetAcceleratedWidget());
+ // c.f.
+ // https://source.chromium.org/chromium/chromium/src/+/master:chrome/browser/media/webrtc/native_desktop_media_list.cc;l=372?q=kWindowCaptureMacV2&ss=chromium
+ // Refs https://github.com/electron/electron/pull/30507
+ // TODO(deepak1556): Match upstream for `kWindowCaptureMacV2`
+#if 0
+ if (remote_cocoa::ScopedCGWindowID::Get(desktop_media_id.id)) {
+ desktop_media_id.window_id = desktop_media_id.id;
+ }
+#endif
+ return desktop_media_id;
++=======
+ return content::DesktopMediaID(content::DesktopMediaID::TYPE_WINDOW,
+ GetAcceleratedWidget());
++>>>>>>> fix: re-enable WindowCaptureMacV2
Check failure on line 125 in spec/api-desktop-capturer-spec.ts
trop / Backportable? - 23-x-y
spec/api-desktop-capturer-spec.ts#L123-L125
Patch Conflict
Raw output
++<<<<<<< HEAD
+ const w = new BrowserWindow({ show: false, width: 100, height: 100, webPreferences: { contextIsolation: false } });
+ const wShown = emittedOnce(w, 'show');
+ const wFocused = emittedOnce(w, 'focus');
++=======
+ const w = new BrowserWindow({
+ show: false,
+ width: 100,
+ height: 100,
+ webPreferences: { contextIsolation: false }
+ });
+ const wShown = once(w, 'show');
+ const wFocused = once(w, 'focus');
++>>>>>>> fix: re-enable WindowCaptureMacV2
Check failure on line 97 in patches/chromium/desktop_media_list.patch
trop / Backportable? - 23-x-y
patches/chromium/desktop_media_list.patch#L88-L97
Patch Conflict
Raw output
++<<<<<<< HEAD
+@@ -141,7 +141,7 @@ BOOL CALLBACK AllHwndCollector(HWND hwnd, LPARAM param) {
+ #if BUILDFLAG(IS_MAC)
+ BASE_FEATURE(kWindowCaptureMacV2,
+ "WindowCaptureMacV2",
+- base::FEATURE_ENABLED_BY_DEFAULT);
++ base::FEATURE_DISABLED_BY_DEFAULT);
+ #endif
+
+ } // namespace
+@@ -451,6 +451,12 @@ void NativeDesktopMediaList::Worker::RefreshNextThumbnail() {
++=======
+ @@ -451,6 +451,9 @@ void NativeDesktopMediaList::Worker::RefreshNextThumbnail() {
++>>>>>>> fix: re-enable WindowCaptureMacV2
Check failure on line 1248 in shell/browser/native_window_mac.mm
trop / Backportable? - 23-x-y
shell/browser/native_window_mac.mm#L1237-L1248
Patch Conflict
Raw output
++<<<<<<< HEAD
+ auto desktop_media_id = content::DesktopMediaID(
+ content::DesktopMediaID::TYPE_WINDOW, GetAcceleratedWidget());
+ // c.f.
+ // https://source.chromium.org/chromium/chromium/src/+/master:chrome/browser/media/webrtc/native_desktop_media_list.cc;l=372?q=kWindowCaptureMacV2&ss=chromium
+ // Refs https://github.com/electron/electron/pull/30507
+ // TODO(deepak1556): Match upstream for `kWindowCaptureMacV2`
+#if 0
+ if (remote_cocoa::ScopedCGWindowID::Get(desktop_media_id.id)) {
+ desktop_media_id.window_id = desktop_media_id.id;
+ }
+#endif
+ return desktop_media_id;
++=======
+ return content::DesktopMediaID(content::DesktopMediaID::TYPE_WINDOW,
+ GetAcceleratedWidget());
++>>>>>>> fix: re-enable WindowCaptureMacV2
Check failure on line 125 in spec/api-desktop-capturer-spec.ts
trop / Backportable? - 23-x-y
spec/api-desktop-capturer-spec.ts#L123-L125
Patch Conflict
Raw output
++<<<<<<< HEAD
+ const w = new BrowserWindow({ show: false, width: 100, height: 100, webPreferences: { contextIsolation: false } });
+ const wShown = emittedOnce(w, 'show');
+ const wFocused = emittedOnce(w, 'focus');
++=======
+ const w = new BrowserWindow({
+ show: false,
+ width: 100,
+ height: 100,
+ webPreferences: { contextIsolation: false }
+ });
+ const wShown = once(w, 'show');
+ const wFocused = once(w, 'focus');
++>>>>>>> fix: re-enable WindowCaptureMacV2