[Pkg-mozext-commits] [greasemonkey] 01/02: patch content/config.js to stop calling home on first run

Damyan Ivanov dmn at moszumanska.debian.org
Thu Nov 27 22:08:15 UTC 2014


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

dmn pushed a commit to branch jessie
in repository greasemonkey.

commit a5f89e6386978cc9a688aa24a2bcc4d30818fa6a
Author: Damyan Ivanov <dmn at debian.org>
Date:   Thu Nov 27 22:02:26 2014 +0000

    patch content/config.js to stop calling home on first run
    
    Closes: #771110
---
 debian/patches/series                  |  1 +
 debian/patches/stop-calling-home.patch | 31 +++++++++++++++++++++++++++++++
 2 files changed, 32 insertions(+)

diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..d0db82d
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+stop-calling-home.patch
diff --git a/debian/patches/stop-calling-home.patch b/debian/patches/stop-calling-home.patch
new file mode 100644
index 0000000..c575481
--- /dev/null
+++ b/debian/patches/stop-calling-home.patch
@@ -0,0 +1,31 @@
+Description: stop calling greasespot.net on first run after installation
+ "Calling home" is a privacy breach, despite being annoying
+ The information on the welcome page is already available in the menu
+ provided by the toolbar button (automaticly installed)
+Author: Damyan Ivanov <dmn at debian.org>
+Forwarded: not-needed
+Bug-Debian: https://bugs.debian.org/771110
+
+--- a/content/config.js
++++ b/content/config.js
+@@ -276,20 +276,6 @@ Config.prototype._updateVersion = functi
+ 
+     // Update the stored current version so we don't do this work again.
+     GM_prefRoot.setValue("version", newVersion);
+-
+-    if ("0.0" == oldVersion) {
+-      // This is the first launch.  Show the welcome screen.
+-      var chromeWin = GM_util.getBrowserWindow();
+-      // If we found it, use it to open a welcome tab.
+-      if (chromeWin && chromeWin.gBrowser) {
+-        var url = 'http://www.greasespot.net/p/welcome.html'
+-            + '?utm_source=xpi&utm_medium=xpi&utm_campaign=welcome'
+-            + '&utm_content=' + newVersion;
+-        // the setTimeout makes sure we do not execute too early -- sometimes
+-        // the window isn't quite ready to add a tab yet
+-        chromeWin.setTimeout(chromeWin.GM_BrowserUI.openTab, 100, url);
+-      }
+-    }
+   }));
+ };
+ 

-- 
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