зеркало из https://github.com/mozilla/pjs.git
fix #10895. Get printing to sort of work for mail/news. more bugs (and fixes) to come. this is far from complete.
This commit is contained in:
Родитель
1feb14b092
Коммит
40a867c7c5
|
@ -49,9 +49,20 @@ NS_IMETHODIMP nsObserverBase::NotifyWebShell(
|
|||
if(NS_FAILED(rv =docLoader->GetContentViewerContainer(aDocumentID, &cvc)))
|
||||
goto done;
|
||||
|
||||
/* sspitzer: this was necessary to get printing of mail to work (sort of)
|
||||
*/
|
||||
NS_ASSERTION(cvc,"GetContentViewerContainer didn't fail, but cvc is null");
|
||||
if (!cvc) {
|
||||
goto done;
|
||||
}
|
||||
|
||||
if(NS_FAILED( rv = cvc->QueryInterface(kIWebShellServicesIID, (void**)&wss)))
|
||||
goto done;
|
||||
|
||||
if (!wss) {
|
||||
goto done;
|
||||
}
|
||||
|
||||
#ifndef DONT_INFORM_WEBSHELL
|
||||
// ask the webshellservice to load the URL
|
||||
if(NS_FAILED( rv = wss->SetRendering(PR_FALSE) ))
|
||||
|
|
|
@ -49,7 +49,7 @@ Rights Reserved.
|
|||
<!ENTITY getSelectedCmd.label ".Get Selected Messages">
|
||||
<!ENTITY getFlaggedCmd.label ".Get Flagged Messages">
|
||||
<!ENTITY printPreviewCmd.label ".Print Preview">
|
||||
<!ENTITY printCmd.label ".Print">
|
||||
<!ENTITY printCmd.label "Print">
|
||||
<!ENTITY closeCmd.label "Close">
|
||||
|
||||
<!-- Edit Menu -->
|
||||
|
|
|
@ -49,7 +49,7 @@ Rights Reserved.
|
|||
<!ENTITY getSelectedCmd.label ".Get Selected Messages">
|
||||
<!ENTITY getFlaggedCmd.label ".Get Flagged Messages">
|
||||
<!ENTITY printPreviewCmd.label ".Print Preview">
|
||||
<!ENTITY printCmd.label ".Print">
|
||||
<!ENTITY printCmd.label "Print">
|
||||
<!ENTITY closeCmd.label "Close">
|
||||
|
||||
<!-- Edit Menu -->
|
||||
|
|
Загрузка…
Ссылка в новой задаче