[Pkg-mozext-commits] [firegestures] 06/13: fix: 'Save Image' command regression

David Prévot taffit at moszumanska.debian.org
Tue May 17 15:31:02 UTC 2016


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

taffit pushed a commit to branch master
in repository firegestures.

commit 7a58fd986f18acb4c43a52c9de1be9f4fb77486a
Author: Gomita <gomita at xuldev.org>
Date:   Tue May 17 01:22:16 2016 +0900

    fix: 'Save Image' command regression
---
 chrome/content/firegestures/browser.js | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/chrome/content/firegestures/browser.js b/chrome/content/firegestures/browser.js
index 54cd8bf..c534989 100644
--- a/chrome/content/firegestures/browser.js
+++ b/chrome/content/firegestures/browser.js
@@ -472,14 +472,18 @@ var FireGestures = {
 				}
 				else if (this.sourceNode instanceof HTMLCanvasElement) {
 					// save canvas
+					this.isRemote ? 
 					saveImageURL(mediaURL, "canvas.png", "SaveImageTitle", false, skipPrompt, refURI, 
-					             null, null, null, isPrivate);
+					             null, null, null, isPrivate) : 
+					saveImageURL(mediaURL, "canvas.png", "SaveImageTitle", false, skipPrompt, refURI, doc);
 				}
 				else {
 					// save image
 					this.checkURL(mediaURL, doc);
+					this.isRemote ? 
 					saveImageURL(mediaURL, null, "SaveImageTitle", false, skipPrompt, refURI, 
-					             null, null, null, isPrivate);
+					             null, null, null, isPrivate) : 
+					saveImageURL(mediaURL, null, "SaveImageTitle", false, skipPrompt, refURI, doc);
 				}
 				break;
 			case "FireGestures:WebSearch": 

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