Merge pull request #5802 from speedplane/embedded-dont-set-title

Embedded Viewer Should Not Override Page Title
This commit is contained in:
Tim van der Meij 2015-03-06 21:52:03 +01:00
commit dc82ace0a3

View File

@ -434,6 +434,10 @@ var PDFViewerApplication = {
},
setTitle: function pdfViewSetTitle(title) {
if (this.isViewerEmbedded) {
// Embedded PDF viewers should not be changing their parent page's title.
return;
}
document.title = title;
//#if B2G
// document.getElementById('activityTitle').textContent = title;