[Pkg-javascript-commits] [pdf.js] 208/210: PdfRedirector checks if plugin is still in PlayPreview mode

David Prévot taffit at moszumanska.debian.org
Thu Jun 5 14:21:19 UTC 2014


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

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

commit 75d9ae9cd34c9e91b3d9510c296566f423aecb03
Author: Yury Delendik <ydelendik at mozilla.com>
Date:   Mon Jun 2 09:27:28 2014 -0500

    PdfRedirector checks if plugin is still in PlayPreview mode
---
 extensions/firefox/content/PdfRedirector.jsm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/extensions/firefox/content/PdfRedirector.jsm b/extensions/firefox/content/PdfRedirector.jsm
index 6cbeee8..b942d5f 100644
--- a/extensions/firefox/content/PdfRedirector.jsm
+++ b/extensions/firefox/content/PdfRedirector.jsm
@@ -60,6 +60,10 @@ function getObjectUrl(window) {
   }
 
   // Checking if overlay is a proper PlayPreview overlay.
+  if (element.displayedType !== element.TYPE_NULL ||
+      element.pluginFallbackType !== element.PLUGIN_PLAY_PREVIEW) {
+    return null; // invalid plugin element overlay state
+  }
   for (var i = 0; i < element.children.length; i++) {
     if (element.children[i] === containerElement) {
       return null; // invalid plugin element overlay

-- 
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