tor-browser

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

commit 0f725335a006cb0399bfdcc50e269aedda31af3c
parent d539b6b594e02868a1b2f903d7d0195ad0dcbe4a
Author: owlishDeveloper <bugzeeeeee@gmail.com>
Date:   Tue,  7 Oct 2025 23:25:56 +0000

Bug 1992521 - Avoid bfcaching of blank document when loading with EXTERNAL flag r=smaug,farre

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

Diffstat:
Mdocshell/base/nsDocShell.cpp | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp @@ -9633,6 +9633,10 @@ nsresult nsDocShell::InternalLoad(nsDocShellLoadState* aLoadState, if (NS_FAILED(rv)) { return NS_ERROR_FAILURE; } + + if (Document* doc = GetDocument()) { + doc->DisallowBFCaching(); + } } mAllowKeywordFixup = aLoadState->HasInternalLoadFlags(