tor-browser

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

commit 968112b95873cc58490a0622c38acbda6730ffe1
parent 17105328f64a822d875810087c3e6032274da773
Author: Nicolas Silva <nical@fastmail.com>
Date:   Wed, 15 Oct 2025 20:22:46 +0000

Bug 1994178 - Force invalidation of the frame when handling DebugCommand::GenerateFrame. r=gw

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

Diffstat:
Mgfx/wr/webrender/src/render_backend.rs | 11++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/gfx/wr/webrender/src/render_backend.rs b/gfx/wr/webrender/src/render_backend.rs @@ -1155,9 +1155,13 @@ impl RenderBackend { .cloned() .collect(); for document_id in documents { + let mut invalidation_config = false; if let Some(doc) = self.documents.get_mut(&document_id) { doc.frame_is_valid = false; + invalidation_config = doc.scene.config.force_invalidation; + doc.scene.config.force_invalidation = true; } + self.update_document( document_id, Vec::default(), @@ -1171,7 +1175,12 @@ impl RenderBackend { true, frame_counter, false, - None); + None, + ); + + if let Some(doc) = self.documents.get_mut(&document_id) { + doc.scene.config.force_invalidation = invalidation_config; + } } self.bookkeep_after_frames();