[Pkg-mozext-commits] [firegestures] 04/13: [Nightly48.0a1] fix 'Save Image' command

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 a235e9d66928c04d0fcdda4fe74e17c7cad9f3ee
Author: Gomita <gomita at xuldev.org>
Date:   Sun May 15 02:32:10 2016 +0900

    [Nightly48.0a1] fix 'Save Image' command
---
 chrome/content/firegestures/browser.js | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/chrome/content/firegestures/browser.js b/chrome/content/firegestures/browser.js
index 34ebfec..54cd8bf 100644
--- a/chrome/content/firegestures/browser.js
+++ b/chrome/content/firegestures/browser.js
@@ -460,6 +460,7 @@ var FireGestures = {
 				var doc = this.sourceNode.ownerDocument;
 				var skipPrompt = aCommand == "FireGestures:SaveImageNow";
 				var refURI = makeURI(doc.location.href);
+				var isPrivate = PrivateBrowsingUtils.isBrowserPrivate(gBrowser);
 				if (this.sourceNode instanceof HTMLVideoElement || 
 				    this.sourceNode instanceof HTMLAudioElement) {
 					// save video and audio
@@ -471,12 +472,14 @@ var FireGestures = {
 				}
 				else if (this.sourceNode instanceof HTMLCanvasElement) {
 					// save canvas
-					saveImageURL(mediaURL, "canvas.png", "SaveImageTitle", false, skipPrompt, refURI, doc);
+					saveImageURL(mediaURL, "canvas.png", "SaveImageTitle", false, skipPrompt, refURI, 
+					             null, null, null, isPrivate);
 				}
 				else {
 					// save image
 					this.checkURL(mediaURL, doc);
-					saveImageURL(mediaURL, null, "SaveImageTitle", false, skipPrompt, refURI, doc);
+					saveImageURL(mediaURL, null, "SaveImageTitle", false, skipPrompt, refURI, 
+					             null, null, null, isPrivate);
 				}
 				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