xul.dll Error in Windows 10 and 11: Firefox engine startup errors

Firefox closes on startup or Reliability Monitor identifies xul.dll while loading or rendering a page.
What this DLL does
xul.dll is a major engine library in compatible Firefox Windows builds, distributed with the application.
Start with this check
Record whether a specific page, approved extension or graphics setting triggers the issue. Use Mozilla’s Troubleshoot Mode when appropriate to isolate add-ons and acceleration.
Record the exact error, when it occurred, and the full module path if available. For a crash, open View reliability history from Start and look for the matching entry. The affected app, faulting module and exception code help distinguish an app problem from a system-wide one.
Choose the repair that fits
Apply the official Firefox update or reinstall if its installation is incomplete. If only one approved add-on triggers the failure, use that publisher’s supported update.
Start with Microsoft’s app repair options if only one supported application fails. If unrelated built-in Windows features also fail and you suspect system file corruption, use Microsoft’s DISM and System File Checker instructions. Use supported packages and avoid downloading individual DLL files.
Verify the repair
Launch Firefox normally and confirm the original test page works without a new matching crash.
For a related check, see chrome-elf.dll troubleshooting. Browse the DLL Errors & Fixes Library. Official reference: Mozilla’s Firefox troubleshooting guide.