retitle 522331 refer to gnuzilla add-on repository?
tags 522331 patch
thanks

Hi,

I understand the ideal solution (infrastructure to handle add-ons via
apt) is far from trivial.  Since it could take a while untill someone
implements it, I propose using gnuzilla as external add-on repository
in the meantime.

The gnuzilla project already took the time to figure out which add-ons
are free and made an index of them.  I think this is a good opportunity
for collaboration between the two projects.

Attached is a patch that is basically extracted from gnuzilla and adapted
to the xulrunner package in Debian.  Please consider including it untill
a better solution is available.

Thanks

-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
diff -ur xulrunner-1.9.1.3.old/browser/app/profile/firefox.js xulrunner-1.9.1.3/browser/app/profile/firefox.js
--- xulrunner-1.9.1.3.old/browser/app/profile/firefox.js	2009-08-24 17:52:35.000000000 +0200
+++ xulrunner-1.9.1.3/browser/app/profile/firefox.js	2009-10-28 23:08:51.000000000 +0100
@@ -69,13 +69,14 @@
 pref("extensions.hideInstallButton", true);
 
 // Preferences for the Get Add-ons pane
-pref("extensions.getAddons.showPane", true);
-pref("extensions.getAddons.browseAddons", "https://%LOCALE%.add-ons.mozilla.com/%LOCALE%/%APP%";);
-pref("extensions.getAddons.maxResults", 5);
-pref("extensions.getAddons.recommended.browseURL", "https://%LOCALE%.add-ons.mozilla.com/%LOCALE%/%APP%/recommended";);
-pref("extensions.getAddons.recommended.url", "https://services.addons.mozilla.org/%LOCALE%/%APP%/api/%API_VERSION%/list/featured/all/10/%OS%/%VERSION%";);
-pref("extensions.getAddons.search.browseURL", "https://%LOCALE%.add-ons.mozilla.com/%LOCALE%/%APP%/search?q=%TERMS%";);
-pref("extensions.getAddons.search.url", "https://services.addons.mozilla.org/%LOCALE%/%APP%/api/%API_VERSION%/search/%TERMS%/all/10/%OS%/%VERSION%";);
+pref ("extensions.getAddons.showPane", false);
+pref ("extensions.getAddons.browseAddons", "http://www.gnu.org/software/gnuzilla/";);
+pref ("extensions.getAddons.maxResults", 5);
+pref ("extensions.getAddons.recommended.browseURL", "http://www.gnu.org/software/gnuzilla/addons.html";);
+pref ("extensions.getAddons.recommended.url", "http://www.gnu.org/software/gnuzilla/addons.html";);
+pref ("extensions.getAddons.search.browseURL", "http://www.gnu.org/software/gnuzilla/addons.html";);
+pref ("extensions.getAddons.search.url", "http://www.gnu.org/software/gnuzilla/addons.html";);
+
 
 // Blocklist preferences
 pref("extensions.blocklist.enabled", true);
@@ -87,7 +88,7 @@
 pref("extensions.blocklist.detailsURL", "https://www.mozilla.com/%LOCALE%/blocklist/";);
 
 // Dictionary download preference
-pref("browser.dictionaries.download.url", "https://%LOCALE%.add-ons.mozilla.com/%LOCALE%/firefox/%VERSION%/dictionaries/";);
+pref("browser.dictionaries.download.url", "http://gnuzilla.gnu.org";);
 
 // App-specific update preferences
 
@@ -161,9 +162,9 @@
 pref("extensions.update.interval", 86400);  // Check for updates to Extensions and 
                                             // Themes every day
 // Non-symmetric (not shared by extensions) extension-specific [update] preferences
-pref("extensions.getMoreExtensionsURL", "https://%LOCALE%.add-ons.mozilla.com/%LOCALE%/%APP%/%VERSION%/extensions/";);
-pref("extensions.getMoreThemesURL", "https://%LOCALE%.add-ons.mozilla.com/%LOCALE%/%APP%/%VERSION%/themes/";);
-pref("extensions.getMorePluginsURL", "https://%LOCALE%.add-ons.mozilla.com/%LOCALE%/%APP%/%VERSION%/plugins/";);
+pref("extensions.getMoreExtensionsURL", "http://www.gnu.org/software/gnuzilla/addons.html";);
+pref("extensions.getMoreThemesURL", "http://www.gnu.org/software/gnuzilla/addons.html";);
+pref("extensions.getMorePluginsURL", "http://www.gnu.org/software/gnuzilla/addons.html";);
 pref("extensions.dss.enabled", false);          // Dynamic Skin Switching                                               
 pref("extensions.dss.switchPending", false);    // Non-dynamic switch pending after next
                                                 // restart.
diff -ur xulrunner-1.9.1.3.old/browser/branding/unofficial/pref/firefox-branding.js xulrunner-1.9.1.3/browser/branding/unofficial/pref/firefox-branding.js
--- xulrunner-1.9.1.3.old/browser/branding/unofficial/pref/firefox-branding.js	2009-08-24 17:52:36.000000000 +0200
+++ xulrunner-1.9.1.3/browser/branding/unofficial/pref/firefox-branding.js	2009-10-28 23:08:51.000000000 +0100
@@ -1,19 +1,35 @@
-pref("startup.homepage_override_url","http://www.mozilla.org/projects/%APP%/%VERSION%/whatsnew/";);
-pref("startup.homepage_welcome_url","http://www.mozilla.org/projects/%APP%/%VERSION%/firstrun/";);
-// The time interval between checks for a new version (in seconds)
-// nightly=8 hours, official=24 hours
-pref("app.update.interval", 28800);
+pref ("startup.homepage_override_url","");
+pref ("startup.homepage_welcome_url","");
+pref ("app.support.baseURL", "http://gnuzilla.gnu.org/";);
+
 // URL user can browse to manually if for some reason all update installation
 // attempts fail.
-pref("app.update.url.manual", "http://www.mozilla.org/products/%APP%/";);
+pref ("app.update.url.manual", "http://gnuzilla.gnu.org/";);
 // A default value for the "More information about this update" link
 // supplied in the "An update is available" page of the update wizard. 
-pref("app.update.url.details", "http://www.mozilla.org/projects/%APP%/";);
+pref ("app.update.url.details", "http://gnuzilla.gnu.org/";);
 
 // Release notes URL
-pref("app.releaseNotesURL", "http://www.mozilla.org/projects/%APP%/%VERSION%/releasenotes/";);
+pref("app.releaseNotesURL", "http://gnuzilla.gnu.org/";);
 
 // Search codes belong only in builds with official branding
 pref("browser.search.param.yahoo-fr", "");
 pref("browser.search.param.yahoo-fr-cjkt", "");
 pref("browser.search.param.yahoo-f-CN", "");
+
+pref ("pfs.datasource.url", "http://gnuzilla.gnu.org/plugins/PluginFinderService.php?mimetype=%PLUGIN_MIMETYPE%&appID=%APP_ID%&appVersion=%APP_VERSION%&clientOS=%CLIENT_OS%&chromeLocale=%CHROME_LOCALE%";);
+
+
+// Release notes URL
+pref ("app.releaseNotesURL", "http://gnuzilla.gnu.org/";);
+pref ("browser.EULA.3.accepted", true);
+pref ("app.update.enabled", false);
+
+// Search codes belong only in builds with official branding
+pref ("browser.search.param.yahoo-fr", "");
+pref ("browser.search.param.yahoo-fr-cjkt", "");
+pref ("browser.search.param.yahoo-f-CN", "");
+
+
+// Misc
+pref ("network.http.pipelining", true);
diff -ur xulrunner-1.9.1.3.old/toolkit/mozapps/plugins/content/pluginInstallerWizard.xul xulrunner-1.9.1.3/toolkit/mozapps/plugins/content/pluginInstallerWizard.xul
--- xulrunner-1.9.1.3.old/toolkit/mozapps/plugins/content/pluginInstallerWizard.xul	2009-08-24 17:53:21.000000000 +0200
+++ xulrunner-1.9.1.3/toolkit/mozapps/plugins/content/pluginInstallerWizard.xul	2009-10-28 23:08:51.000000000 +0100
@@ -139,9 +139,6 @@
     <description id="pluginSummaryRestartNeeded" style="padding-top:10px;"
                  value="&pluginWizard.finalPage.restart.label;"/>
     <spacer flex="1" />
-    <description id="moreInfoLink"
-      style="color:rgb(0, 0, 255); cursor:pointer; text-decoration:underline;"
-      value="&pluginWizard.finalPage.moreInfo.label;"/>
   </wizardpage>
 
 </wizard>

Reply via email to