[Pkg-mozext-commits] [greasemonkey] 02/02: Don't fail in Firefox 3; Don't install in 4+.

David Prévot taffit at moszumanska.debian.org
Sun Feb 22 21:57:48 UTC 2015


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

taffit pushed a commit to tag 0.9.8.1
in repository greasemonkey.

commit 153a2d9556d341878e7dabb70e5343d2e37d544d
Author: Anthony Lieuallen <alieuall at google.com>
Date:   Wed Sep 7 14:40:19 2011 -0400

    Don't fail in Firefox 3; Don't install in 4+.
---
 content/config.js | 33 ---------------------------------
 install.rdf       |  2 +-
 2 files changed, 1 insertion(+), 34 deletions(-)

diff --git a/content/config.js b/content/config.js
index ae56ec4..df1fa23 100644
--- a/content/config.js
+++ b/content/config.js
@@ -415,40 +415,7 @@ Config.prototype.updateModifiedScripts = function(safeWin, chromeWin) {
  * any necessary upgrades.
  */
 Config.prototype._updateVersion = function() {
-  // this is the last version which has been run at least once
-  var initialized = GM_prefRoot.getValue("version", "0.0");
-
-  if ("0.0" == initialized) {
-    // this is the first launch.  show the welcome screen.
-
-    var chromeWin = GM_getBrowserWindow();
-    // if we found it, use it to open a welcome tab
-    if (chromeWin.gBrowser) {
-      Components.utils.import("resource://gre/modules/AddonManager.jsm");
-      AddonManager.getAddonByID(this.GM_GUID, function(addon) {
-        chromeWin.gBrowser.selectedTab = chromeWin.gBrowser.addTab(
-            'http://www.greasespot.net/p/welcome.html?' + addon.version);
-      });
-    }
-  }
 
-  if (GM_compareVersions(initialized, "0.8") == -1)
-    this._pointEightBackup();
-
-  // update the currently initialized version so we don't do this work again.
-  if ("@mozilla.org/extensions/manager;1" in Components.classes) {
-    // Firefox <= 3.6.*
-    var extMan = Components.classes["@mozilla.org/extensions/manager;1"]
-        .getService(Components.interfaces.nsIExtensionManager);
-    var item = extMan.getItemForID(this.GM_GUID);
-    GM_prefRoot.setValue("version", item.version);
-  } else {
-    // Firefox 3.7+
-    Components.utils.import("resource://gre/modules/AddonManager.jsm");
-    AddonManager.getAddonByID(this.GM_GUID, function(addon) {
-       GM_prefRoot.setValue("version", addon.version);
-    });
-  }
 };
 
 /**
diff --git a/install.rdf b/install.rdf
index 54f9c36..c51301c 100644
--- a/install.rdf
+++ b/install.rdf
@@ -43,7 +43,7 @@
       <Description>
         <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
         <em:minVersion>3.5</em:minVersion>
-        <em:maxVersion>7.*</em:maxVersion>
+        <em:maxVersion>3.5.*</em:maxVersion>
       </Description>
     </em:targetApplication>
 

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



More information about the Pkg-mozext-commits mailing list