txMozillaXSLTProcessor::ImportStylesheet gets called from JS API, right?, and in that case document() doesn't load anything. https://searchfox.org/mozilla-central/rev/53acdf9ea724c7fc85cfc259e0acf7663f4d34b8/dom/xslt/xslt/txMozillaStylesheetCompiler.cpp#534
Bug 1974407 Comment 6 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
txMozillaXSLTProcessor::ImportStylesheet gets called from JS API, right?, and in that case document() doesn't load anything. https://searchfox.org/mozilla-central/rev/53acdf9ea724c7fc85cfc259e0acf7663f4d34b8/dom/xslt/xslt/txMozillaStylesheetCompiler.cpp#534 But looking still the PI page load case...