Original check work with passing back NS_OK, it appears something in the front-end
may have changed. Passing back NS_ERROR_FAILURE now works. (maybe should have been that in the first place) Bug 136185 r=dcone sr=attinasi git-svn-id: svn://10.0.0.236/trunk@118980 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
657b01c9ea
commit
2cdba8dc7e
@ -5905,7 +5905,7 @@ DocumentViewerImpl::PrintPreview(nsIPrintSettings* aPrintSettings)
|
||||
nsCOMPtr<nsIXULDocument> xulDoc(do_QueryInterface(mDocument));
|
||||
if (xulDoc) {
|
||||
ShowPrintErrorDialog(NS_ERROR_GFX_PRINTER_NO_XUL, PR_FALSE);
|
||||
return NS_OK;
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
// Get the webshell for this documentviewer
|
||||
@ -6296,7 +6296,7 @@ DocumentViewerImpl::Print(nsIPrintSettings* aPrintSettings,
|
||||
nsCOMPtr<nsIXULDocument> xulDoc(do_QueryInterface(mDocument));
|
||||
if (xulDoc) {
|
||||
ShowPrintErrorDialog(NS_ERROR_GFX_PRINTER_NO_XUL);
|
||||
return NS_OK;
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
nsresult rv = NS_ERROR_FAILURE;
|
||||
|
||||
@ -5905,7 +5905,7 @@ DocumentViewerImpl::PrintPreview(nsIPrintSettings* aPrintSettings)
|
||||
nsCOMPtr<nsIXULDocument> xulDoc(do_QueryInterface(mDocument));
|
||||
if (xulDoc) {
|
||||
ShowPrintErrorDialog(NS_ERROR_GFX_PRINTER_NO_XUL, PR_FALSE);
|
||||
return NS_OK;
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
// Get the webshell for this documentviewer
|
||||
@ -6296,7 +6296,7 @@ DocumentViewerImpl::Print(nsIPrintSettings* aPrintSettings,
|
||||
nsCOMPtr<nsIXULDocument> xulDoc(do_QueryInterface(mDocument));
|
||||
if (xulDoc) {
|
||||
ShowPrintErrorDialog(NS_ERROR_GFX_PRINTER_NO_XUL);
|
||||
return NS_OK;
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
nsresult rv = NS_ERROR_FAILURE;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user