[Pkg-mozext-commits] [firegestures] 01/08: support downloading PDF

David Prévot taffit at moszumanska.debian.org
Tue Jul 1 18:12:50 UTC 2014


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

taffit pushed a commit to branch master
in repository firegestures.

commit 06413e7c6fe9950eb96db00a77cf640aa1cd313f
Author: Gomita <gomita at xuldev.org>
Date:   Sat Jun 21 15:32:51 2014 +0900

    support downloading PDF
---
 chrome/content/firegestures/browser.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/chrome/content/firegestures/browser.js b/chrome/content/firegestures/browser.js
index 82a50e7..1ada106 100644
--- a/chrome/content/firegestures/browser.js
+++ b/chrome/content/firegestures/browser.js
@@ -579,6 +579,8 @@ var FireGestures = {
 	getImageURL: function(aNode) {
 		if (!aNode)
 			aNode = this.sourceNode;
+		if (aNode.ownerDocument.contentType == "application/pdf")
+			return null;
 		if (aNode instanceof Ci.nsIImageLoadingContent && aNode.src)
 			return aNode.src;
 		else if (aNode instanceof HTMLCanvasElement)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firegestures.git



More information about the Pkg-mozext-commits mailing list