tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 9fd2fc9ceb1a3da716540c05b063bff09e63796c
parent 52db7a59d68f8fb25d63941c7a5ad1d1ab28903b
Author: Emilio Cobos Álvarez <emilio@crisal.io>
Date:   Tue, 14 Oct 2025 20:53:39 +0000

Bug 1994247 - Bail out of PaintWindowInContentLayer for empty windows. r=mac-reviewers,mstange

Differential Revision: https://phabricator.services.mozilla.com/D268611

Diffstat:
Mwidget/cocoa/nsCocoaWindow.mm | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/widget/cocoa/nsCocoaWindow.mm b/widget/cocoa/nsCocoaWindow.mm @@ -832,6 +832,9 @@ void nsCocoaWindow::EnsureContentLayerForMainThreadPainting() { } void nsCocoaWindow::PaintWindowInContentLayer() { + if (GetClientBounds().IsEmpty()) { + return; + } EnsureContentLayerForMainThreadPainting(); mPoolHandle->OnBeginFrame(); RefPtr<DrawTarget> dt = mContentLayer->NextSurfaceAsDrawTarget(