[Pkg-javascript-commits] [pdf.js] 35/72: Embedded PDF viewers should not be changing their parent page's title.

David Prévot taffit at moszumanska.debian.org
Wed Mar 18 20:15:57 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit 80d85b5fe789c34a2496406b6abcb2301e96561c
Author: speedplane <mes65 at cornell.edu>
Date:   Thu Mar 5 22:36:08 2015 -0500

    Embedded PDF viewers should not be changing their parent page's title.
---
 web/viewer.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/web/viewer.js b/web/viewer.js
index 0f0b0b4..7d74ed8 100644
--- a/web/viewer.js
+++ b/web/viewer.js
@@ -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;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list