[Pkg-mozext-commits] [automatic-save-folder] 95/133: Fix: - Allow path change when a download open a new empty about:blank tab (For Firefox 7.0.1+ new saving method)

David Prévot taffit at moszumanska.debian.org
Mon Apr 27 20:33:56 UTC 2015


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

taffit pushed a commit to branch wip
in repository automatic-save-folder.

commit bd34dbc7e6527c477f9f4867fdad22e65f5aa80a
Author: Cyan <Cyan at d0063192-6b2e-11de-89a9-0b20f3e2dceb>
Date:   Thu Oct 20 13:27:27 2011 +0000

    Fix:
    - Allow path change when a download open a new empty about:blank tab (For Firefox 7.0.1+ new saving method)
    
    git-svn-id: http://automatic-save-folder.googlecode.com/svn/trunk@102 d0063192-6b2e-11de-89a9-0b20f3e2dceb
---
 content/asf_download.js | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/content/asf_download.js b/content/asf_download.js
index 095efdb..4f70350 100644
--- a/content/asf_download.js
+++ b/content/asf_download.js
@@ -87,8 +87,11 @@ Copyright (C) 2007-2011 Éric Cassar (Cyan).
 			currentDomain = domain;
 			currentURL = fileURL;
 		}
-		
-		if (this.firefoxversion >= 7.01) this.current_uri = currentDomain.replace(/^.*:\/\//g,'');
+		if (this.firefoxversion >= 7.01) 
+		{
+			this.current_uri = currentDomain.replace(/^.*:\/\//g,'');
+			if (this.current_uri == "") this.current_uri = tabLocation.href; // fix website opening a new about:blank page when clicking on a download link, and that tab is not auto-closing.
+		}
 		
 		var domain_testOrder = prefManager.getCharPref("extensions.asf.domainTestOrder");
 		if (this.trim(domain_testOrder) == "") domain_testOrder = "1,5";

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



More information about the Pkg-mozext-commits mailing list