summaryrefslogtreecommitdiffstats
path: root/firefox4-disable-checkupdates.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2010-11-06 13:01:57 +0100
committerRemi Collet <fedora@famillecollet.com>2010-11-06 13:01:57 +0100
commit1d81a7236ec40ce5367e824cd7c74a7e0f8d1fff (patch)
treeec2abc18f1b3d5422d26bba55a6d9558b157b159 /firefox4-disable-checkupdates.patch
parent1e280f45ccf3289598a4a288227eac1e555242b7 (diff)
firefox 4.0b7 build1
Diffstat (limited to 'firefox4-disable-checkupdates.patch')
-rw-r--r--firefox4-disable-checkupdates.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/firefox4-disable-checkupdates.patch b/firefox4-disable-checkupdates.patch
new file mode 100644
index 0000000..72b3200
--- /dev/null
+++ b/firefox4-disable-checkupdates.patch
@@ -0,0 +1,11 @@
+--- mozilla-central/browser/base/content/utilityOverlay.js.checkupdates 2010-11-04 21:05:17.000000000 +0100
++++ mozilla-central/browser/base/content/utilityOverlay.js 2010-11-06 10:49:40.172670752 +0100
+@@ -525,7 +525,7 @@
+
+ // Disable the UI if the update enabled pref has been locked by the
+ // administrator or if we cannot update for some other reason
+- var canCheckForUpdates = updates.canCheckForUpdates;
++ var canCheckForUpdates = updates.canCheckForUpdates && updates.canApplyUpdates;
+ checkForUpdates.setAttribute("disabled", !canCheckForUpdates);
+ if (!canCheckForUpdates)
+ return;