ported from UXP: Issue #2858 - keep type in line with definition. (ffd00e40)

This commit is contained in:
2026-01-08 00:15:27 +08:00
parent 2373e190d3
commit fbba304a2d
+1 -1
View File
@@ -478,7 +478,7 @@ nsPrincipal::Write(nsIObjectOutputStream* aStream)
// TODO: figure out exactly why this happens and fix the root cause.
nsCSPContext* CSPContext = static_cast<nsCSPContext*>(mCSP.get());
if(CSPContext) {
int8_t CSPDepth = CSPContext->AddRef();
auto CSPDepth = CSPContext->AddRef();
CSPContext->Release();
if(CSPDepth > 10) return NS_OK;
}