зеркало из https://github.com/mozilla/pjs.git
b=86558 r=dcone sr=attinasi Set the title for the page to null so the last pages value wont be used for the string.
This commit is contained in:
Родитель
e516a43b16
Коммит
fbbdea35f3
|
@ -3414,6 +3414,11 @@ DocumentViewerImpl::DoPrint(PrintObject * aPO, PRBool aDoSyncPrinting, PRBool& a
|
|||
PRUnichar * docURLStr;
|
||||
GetWebShellTitleAndURL(webShell, &docTitleStr, &docURLStr);
|
||||
|
||||
if (!docTitleStr) {
|
||||
nsAutoString emptyTitle(NS_LITERAL_STRING(""));
|
||||
docTitleStr = emptyTitle.ToNewUnicode();
|
||||
}
|
||||
|
||||
if (docTitleStr) {
|
||||
printService->SetTitle(docTitleStr);
|
||||
nsMemory::Free(docTitleStr);
|
||||
|
|
|
@ -3414,6 +3414,11 @@ DocumentViewerImpl::DoPrint(PrintObject * aPO, PRBool aDoSyncPrinting, PRBool& a
|
|||
PRUnichar * docURLStr;
|
||||
GetWebShellTitleAndURL(webShell, &docTitleStr, &docURLStr);
|
||||
|
||||
if (!docTitleStr) {
|
||||
nsAutoString emptyTitle(NS_LITERAL_STRING(""));
|
||||
docTitleStr = emptyTitle.ToNewUnicode();
|
||||
}
|
||||
|
||||
if (docTitleStr) {
|
||||
printService->SetTitle(docTitleStr);
|
||||
nsMemory::Free(docTitleStr);
|
||||
|
|
Загрузка…
Ссылка в новой задаче