diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-01-23 13:00:03 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-01-23 13:00:03 (GMT) |
commit | d605889115f15c2c628a12bd185bf3fd92b156ee (patch) | |
tree | 09587ba7f01dd38c7806c9afdab115b4016a567e /abs/extra-testing/community/firefox/mozilla-firstrun.patch | |
parent | 4702175bc8bf5f1af5c16d6ddd02140d017b8e02 (diff) | |
download | linhes_pkgbuild-d605889115f15c2c628a12bd185bf3fd92b156ee.zip linhes_pkgbuild-d605889115f15c2c628a12bd185bf3fd92b156ee.tar.gz linhes_pkgbuild-d605889115f15c2c628a12bd185bf3fd92b156ee.tar.bz2 |
Initial community packages for various users.
Diffstat (limited to 'abs/extra-testing/community/firefox/mozilla-firstrun.patch')
-rw-r--r-- | abs/extra-testing/community/firefox/mozilla-firstrun.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/abs/extra-testing/community/firefox/mozilla-firstrun.patch b/abs/extra-testing/community/firefox/mozilla-firstrun.patch new file mode 100644 index 0000000..3a75328 --- /dev/null +++ b/abs/extra-testing/community/firefox/mozilla-firstrun.patch @@ -0,0 +1,49 @@ +diff -up mozilla/browser/base/jar.mn.firstrun mozilla/browser/base/jar.mn +--- mozilla/browser/base/jar.mn.firstrun 2008-06-15 12:39:28.000000000 -0700 ++++ mozilla/browser/base/jar.mn 2008-06-15 12:39:34.000000000 -0700 +@@ -21,9 +21,6 @@ browser.jar: + * content/browser/browser.js (content/browser.js) + * content/browser/browser.xul (content/browser.xul) + * content/browser/credits.xhtml (content/credits.xhtml) +-* content/browser/EULA.js (content/EULA.js) +-* content/browser/EULA.xhtml (content/EULA.xhtml) +-* content/browser/EULA.xul (content/EULA.xul) + * content/browser/metaData.js (content/metaData.js) + * content/browser/metaData.xul (content/metaData.xul) + * content/browser/pageinfo/pageInfo.xul (content/pageinfo/pageInfo.xul) +--- mozilla/browser/components/nsBrowserGlue.js 2008-09-16 19:07:25.000000000 +0000 ++++ mozilla/browser/components/nsBrowserGlue.js.new 2008-10-03 14:54:50.955760018 +0000 +@@ -175,33 +175,6 @@ + // profile startup handler (contains profile initialization routines) + _onProfileStartup: function() + { +- // Check to see if the EULA must be shown on startup +- +- var prefBranch = Cc["@mozilla.org/preferences-service;1"]. +- getService(Ci.nsIPrefBranch); +- var mustDisplayEULA = false; +- try { +- mustDisplayEULA = !prefBranch.getBoolPref("browser.EULA.override"); +- } catch (e) { +- // Pref might not exist +- } +- +- // Make sure it hasn't already been accepted +- if (mustDisplayEULA) { +- try { +- var EULAVersion = prefBranch.getIntPref("browser.EULA.version"); +- mustDisplayEULA = !prefBranch.getBoolPref("browser.EULA." + EULAVersion + ".accepted"); +- } catch(ex) { +- } +- } +- +- if (mustDisplayEULA) { +- var ww2 = Cc["@mozilla.org/embedcomp/window-watcher;1"]. +- getService(Ci.nsIWindowWatcher); +- ww2.openWindow(null, "chrome://browser/content/EULA.xul", +- "_blank", "chrome,centerscreen,modal,resizable=yes", null); +- } +- + this.Sanitizer.onStartup(); + // check if we're in safe mode + var app = Cc["@mozilla.org/xre/app-info;1"].getService(Ci.nsIXULAppInfo). |