File: 0094.patch

package info (click to toggle)
thunderbird 1%3A143.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 4,703,968 kB
  • sloc: cpp: 7,770,492; javascript: 5,943,842; ansic: 3,918,754; python: 1,418,263; xml: 653,354; asm: 474,045; java: 183,079; sh: 111,238; makefile: 20,410; perl: 14,359; objc: 13,059; yacc: 4,583; pascal: 3,405; lex: 1,720; ruby: 999; exp: 762; sql: 715; awk: 580; php: 436; lisp: 430; sed: 69; csh: 10
file content (36 lines) | stat: -rw-r--r-- 1,636 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From: Michael Froman <mfroman@mozilla.com>
Date: Mon, 4 Dec 2023 12:57:00 -0600
Subject: Bug 1867099 - (fix-66b7275561) disable wgc capture yellow-line
 removal. r?ng!

This code won't build until we support building with
Win 10 SDK v10.0.20348.0 or newer.
Mercurial Revision: https://hg.mozilla.org/mozilla-central/rev/0aac94794aad2ddb637f5076bc08706a11866737
---
 modules/desktop_capture/win/wgc_capture_session.cc | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/desktop_capture/win/wgc_capture_session.cc b/modules/desktop_capture/win/wgc_capture_session.cc
index b4f9425699..b4a8cbbc29 100644
--- a/modules/desktop_capture/win/wgc_capture_session.cc
+++ b/modules/desktop_capture/win/wgc_capture_session.cc
@@ -193,6 +193,11 @@ HRESULT WgcCaptureSession::StartCapture(const DesktopCaptureOptions& options) {
     }
   }
 
+// Until Mozilla builds with Win 10 SDK v10.0.20348.0 or newer, this
+// code will not build.  Once we support the newer SDK, Bug 1868198
+// exists to decide if we ever want to use this code since it is
+// removing an indicator that capture is happening.
+#if !defined(WEBRTC_MOZILLA_BUILD)
   // By default, the WGC capture API adds a yellow border around the captured
   // window or display to indicate that a capture is in progress. The section
   // below is an attempt to remove this yellow border to make the capture
@@ -204,6 +209,7 @@ HRESULT WgcCaptureSession::StartCapture(const DesktopCaptureOptions& options) {
           &session3))) {
     session3->put_IsBorderRequired(options.wgc_require_border());
   }
+#endif
 
   allow_zero_hertz_ = options.allow_wgc_zero_hertz();