Magellan Linux

Annotation of /trunk/mozilla-firefox/patches/mozilla-firefox-3.5-no-app-updates.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 867 - (hide annotations) (download)
Sat Jul 11 13:44:14 2009 UTC (14 years, 10 months ago) by niro
File size: 2463 byte(s)
-patches for mozilla-firefox-3.5

1 niro 867 ---
2     ---
3     browser/components/preferences/advanced.js | 8 +++-----
4     1 file changed, 3 insertions(+), 5 deletions(-)
5    
6     Index: mozilla/browser/components/preferences/advanced.js
7     ===================================================================
8     --- mozilla.orig/browser/components/preferences/advanced.js
9     +++ mozilla/browser/components/preferences/advanced.js
10     @@ -382,50 +382,48 @@
11     {
12     var aus =
13     Components.classes["@mozilla.org/updates/update-service;1"].
14     getService(Components.interfaces.nsIApplicationUpdateService);
15    
16     var enabledPref = document.getElementById("app.update.enabled");
17     var enableAppUpdate = document.getElementById("enableAppUpdate");
18    
19     - enableAppUpdate.disabled = !aus.canUpdate || enabledPref.locked;
20     + enableAppUpdate.disabled = true;
21     },
22    
23     /**
24     * Enables/disables UI for "when updates are found" based on the values,
25     * and "locked" states of associated preferences.
26     */
27     updateAutoItems: function ()
28     {
29     var enabledPref = document.getElementById("app.update.enabled");
30     var autoPref = document.getElementById("app.update.auto");
31    
32     var updateModeLabel = document.getElementById("updateModeLabel");
33     var updateMode = document.getElementById("updateMode");
34    
35     - var disable = enabledPref.locked || !enabledPref.value ||
36     - autoPref.locked;
37     + var disable = true;
38     updateModeLabel.disabled = updateMode.disabled = disable;
39     },
40    
41     /**
42     * Enables/disables the "warn if incompatible extensions/themes exist" UI
43     * based on the values and "locked" states of various preferences.
44     */
45     updateModeItems: function ()
46     {
47     var enabledPref = document.getElementById("app.update.enabled");
48     var autoPref = document.getElementById("app.update.auto");
49     var modePref = document.getElementById("app.update.mode");
50    
51     var warnIncompatible = document.getElementById("warnIncompatible");
52    
53     - var disable = enabledPref.locked || !enabledPref.value || autoPref.locked ||
54     - !autoPref.value || modePref.locked;
55     + var disable = true;
56     warnIncompatible.disabled = disable;
57     },
58    
59     /**
60     * Stores the value of the app.update.mode preference, which is a tristate
61     * integer preference. We store the value here so that we can properly
62     * restore the preference value if the UI reflecting the preference value
63     * is in a state which can represent either of two integer values (as