tor-browser

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

commit 0a67d33accc7dfd61fcc76390e321ae3554beb07
parent af6e1653aa888edf291e78148f9085a81ff86307
Author: Emilio Cobos Álvarez <emilio@crisal.io>
Date:   Sat,  6 Dec 2025 20:51:42 +0000

Bug 1999051 - Remove noisy warning. r=TYLin

Adding a stylesheet in a data document (either programmatically or via
something like a UA widget like comment 3) seems perfectly expected.

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

Diffstat:
Mlayout/style/Loader.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/layout/style/Loader.cpp b/layout/style/Loader.cpp @@ -1945,7 +1945,7 @@ Result<Loader::LoadSheetResult, nsresult> Loader::LoadStyleLink( nsresult rv = CheckContentPolicy( loadingPrincipal, principal, aInfo.mURI, requestingNode, aInfo.mNonce, StylePreloadKind::None, aInfo.mCORSMode, aInfo.mIntegrity); - if (NS_WARN_IF(NS_FAILED(rv))) { + if (NS_FAILED(rv)) { // Don't fire the error event if our document is loaded as data. We're // supposed to not even try to do loads in that case... Unfortunately, we // implement that via nsDataDocumentContentPolicy, which doesn't have a good