tor-browser

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

commit 32ca1b874763b5f32c975d2c91f23ade5a04d595
parent ba74a3b2c4b376b5852faf926b688de0a647ca23
Author: Henri Sivonen <hsivonen@hsivonen.fi>
Date:   Thu,  2 Oct 2025 09:44:46 +0000

Bug 1942907 - Avoid release assert when document.close is called during an op flush. r=smaug

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

Diffstat:
Mparser/html/nsHtml5Parser.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/parser/html/nsHtml5Parser.cpp b/parser/html/nsHtml5Parser.cpp @@ -207,7 +207,7 @@ nsresult nsHtml5Parser::Parse(const nsAString& aSourceBuffer, void* aKey, return NS_OK; } mDocumentClosed = true; - if (!mBlocked && !mInDocumentWrite) { + if (!mBlocked && !mInDocumentWrite && !executor->IsFlushing()) { return ParseUntilBlocked(); } return NS_OK;