mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1245246: Add null check for mDocViewerPrint in nsPrintEngine::FirePrintingErrorEvent. r=roc
This commit is contained in:
parent
6f377eae5e
commit
fdbee7016b
@ -1522,6 +1522,10 @@ void
|
||||
nsPrintEngine::FirePrintingErrorEvent(nsresult aPrintError)
|
||||
{
|
||||
nsCOMPtr<nsIContentViewer> cv = do_QueryInterface(mDocViewerPrint);
|
||||
if (NS_WARN_IF(!cv)) {
|
||||
return;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIDocument> doc = cv->GetDocument();
|
||||
RefPtr<CustomEvent> event =
|
||||
NS_NewDOMCustomEvent(doc, nullptr, nullptr);
|
||||
|
Loading…
Reference in New Issue
Block a user