Bug 1974407 Comment 5 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

I think `txSyncCompileObserver::loadURI` has a similar issue. This seems to be called via `TX_CompileStylesheet` and ultimately `txMozillaXSLTProcessor::ImportStylesheet`. However it's no clear to me if `mProcessor->GetSourceContentModel()` can ever be null. And if we should really constructing that `referrerPrincipal` instead of using the document principal.
I think [`txSyncCompileObserver::loadURI`](https://searchfox.org/mozilla-central/rev/adc939fe81358079709e3cf985d928863a19e272/dom/xslt/xslt/txMozillaStylesheetCompiler.cpp#530) has a similar issue. This seems to be called via `TX_CompileStylesheet` and ultimately `txMozillaXSLTProcessor::ImportStylesheet`. However it's no clear to me if `mProcessor->GetSourceContentModel()` can ever be null. And if we should really constructing that `referrerPrincipal` instead of using the document principal.

Back to Bug 1974407 Comment 5