[Pkg-mozext-commits] [colorfultabs] 05/06: Don't visit a remote web page on every upgrade

Ximin Luo infinity0 at debian.org
Sun Jan 15 12:52:46 UTC 2017


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

infinity0 pushed a commit to branch master
in repository colorfultabs.

commit ce0e348ef1ce59840cf9c0f722a8e5065df118ae
Author: Ximin Luo <infinity0 at debian.org>
Date:   Sun Jan 15 13:50:19 2017 +0100

    Don't visit a remote web page on every upgrade
---
 debian/changelog                            |  3 +++
 debian/patches/disable-upgrade-notice.patch | 26 ++++++++++++++++++++++++++
 debian/patches/series                       |  1 +
 3 files changed, 30 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index a3a5310..8330cc4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,9 @@
 colorfultabs (31.1.0+dfsg-1) UNRELEASED; urgency=medium
 
   * New upstream release.
+  * Don't visit a remote web page on every upgrade. This is unsustainable and
+    unscalable if all packages did it, and it also reveals when we upgrade the
+    software to observers on the network.
 
  -- Ximin Luo <infinity0 at debian.org>  Sun, 15 Jan 2017 13:41:00 +0100
 
diff --git a/debian/patches/disable-upgrade-notice.patch b/debian/patches/disable-upgrade-notice.patch
new file mode 100644
index 0000000..53191f6
--- /dev/null
+++ b/debian/patches/disable-upgrade-notice.patch
@@ -0,0 +1,26 @@
+Description: Don't visit a remote web page on every upgrade
+ This is unsustainable and unscalable if all packages did it, and it also
+ reveals when we upgrade the software to observers on the network.
+Author: Ximin Luo <infinity0 at debian.org>
+Forwarded: not-needed
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/chrome/content/clrtabs.js
++++ b/chrome/content/clrtabs.js
+@@ -516,9 +516,6 @@
+ 	doFirstRun: function (cturl) {
+ 		try {
+ 			//alert(gBrowser.addTab(cturl));
+-			colorfulTabs.executeSoon(function () {
+-				gBrowser.selectedTab = gBrowser.addTab(cturl);
+-			});
+ 			Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch).setCharPref("extensions.clrtabs.firstrun", colorfulTabs.newVersion);
+ 		} catch (e) {
+ 			colorfulTabs.cl(e);
+@@ -2307,4 +2304,4 @@
+ 				break;
+ 		}
+ 	}
+-}
+\ No newline at end of file
++}
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..9f22eeb
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+disable-upgrade-notice.patch

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



More information about the Pkg-mozext-commits mailing list