[Pkg-mozext-commits] [personasplus] 04/42: Bug 848184: Remove firstrun/update notification from Personas Plus
David Prévot
taffit at moszumanska.debian.org
Wed Feb 3 16:15:38 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository personasplus.
commit 2d9d5e54e17f5a11107f105292a24745a3259337
Author: Kris Maglione <maglione.k at gmail.com>
Date: Tue Mar 5 17:53:48 2013 -0800
Bug 848184: Remove firstrun/update notification from Personas Plus
---
extension/content/personas.js | 44 +++++--------------------------------------
extension/install.rdf | 6 +++---
2 files changed, 8 insertions(+), 42 deletions(-)
diff --git a/extension/content/personas.js b/extension/content/personas.js
index 73c78fd..d43aec4 100644
--- a/extension/content/personas.js
+++ b/extension/content/personas.js
@@ -342,45 +342,11 @@ let PersonaController = {
document.addEventListener("RemoveFavoritePersona", this, false, true);
- // Check for a first-run or updated version and display some additional
- // information to users.
- let lastVersion = this._prefs.get("lastversion");
- let thisVersion = null;
- let t = this;
-
- let displayVersionInfo = function() {
- if (lastVersion == "firstrun") {
- // Show the first run page.
- let firstRunURL = t._siteURL + "firstrun?version=" + thisVersion;
- setTimeout(function() t.openURLInTab(firstRunURL), 500);
- t._prefs.set("lastversion", thisVersion);
- }
- else if (lastVersion != thisVersion) {
- let updatedURL = t._siteURL + "updated?version=" + thisVersion;
- setTimeout(function() t.openURLInTab(updatedURL), 500);
- t._prefs.set("lastversion", thisVersion);
- }
- };
-
- if ("@mozilla.org/extensions/manager;1" in Cc) { // removed in FF 4.*
- thisVersion = Cc["@mozilla.org/extensions/manager;1"].
- getService(Ci.nsIExtensionManager).
- getItemForID(PERSONAS_EXTENSION_ID).version
- displayVersionInfo();
- }
- else {
- try {
- Cu.import("resource://gre/modules/AddonManager.jsm", this);
- this.AddonManager.getAddonByID(PERSONAS_EXTENSION_ID,
- function(aAddon) {
- thisVersion = aAddon.version;
- displayVersionInfo();
- });
- }
- catch (e) {
- // AddonManager module not available.
- }
- }
+ Cu.import("resource://gre/modules/AddonManager.jsm", this);
+ this.AddonManager.getAddonByID(PERSONAS_EXTENSION_ID,
+ function(aAddon) {
+ this._prefs.set("lastversion", aAddon.version);
+ }.bind(this));
// Apply the current persona to the window if the LightweightThemeManager
// is not available.
diff --git a/extension/install.rdf b/extension/install.rdf
index 4b555c6..0e7cff7 100644
--- a/extension/install.rdf
+++ b/extension/install.rdf
@@ -58,7 +58,7 @@
<em:targetApplication> <!-- Firefox -->
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
- <em:minVersion>3.5</em:minVersion>
+ <em:minVersion>4.0</em:minVersion>
<em:maxVersion>20.0a1</em:maxVersion>
</Description>
</em:targetApplication>
@@ -66,8 +66,8 @@
<em:targetApplication> <!-- Thunderbird -->
<Description>
<em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id>
- <em:minVersion>3.1</em:minVersion>
- <em:maxVersion>17.*</em:maxVersion>
+ <em:minVersion>3.3</em:minVersion>
+ <em:maxVersion>19.*</em:maxVersion>
</Description>
</em:targetApplication>
</Description>
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/personasplus.git
More information about the Pkg-mozext-commits
mailing list