~ubuntu-branches/ubuntu/precise/firefox/precise-security

« back to all changes in this revision

Viewing changes to debian/patches/add-syspref-dir.patch

  • Committer: Package Import Robot
  • Author(s): Chris Coulson, Chris Coulson, Ben Collins
  • Date: 2012-07-13 22:28:50 UTC
  • mfrom: (1.3.9)
  • Revision ID: package-import@ubuntu.com-20120713222850-rn76wll756c5hw8r
Tags: 14.0.1+build1-0ubuntu0.12.04.1
* New upstream stable release (FIREFOX_14_0_1_BUILD1)
  - see LP: #1024562 for USN information

[ Chris Coulson <chris.coulson@canonical.com> ]
* Update globalmenu-extension to 3.2.5
  - Fix LP: #1010580 - No choice of folder when adding a bookmark from
    the bookmark menu
  - Fix a crash in uGlobalMenu::RecycleList::~RecycleList()
* Refresh patches
  - update debian/patches/ubuntu-codes-google.patch
  - update debian/patches/allow-lockPref-everywhere.patch
  - update debian/patches/plugin-for-mimetype-pref.patch
  - update debian/patches/add-syspref-dir.patch
* Drop patches fixed upstream
  - remove debian/patches/revert-bmo621446-investigation.patch
* Add Keywords to the desktop file
  - update debian/firefox.desktop.in
* Update desktop file translations
  - update debian/firefox.sh.in
* Ensure that additional actions in the desktop file match the fd.o spec
  in precise and newer
  - update debian/firefox.desktop.in
  - update debian/rules
* Drop the application/vnd.mozilla.xul+xml mimetype from the desktop file.
  Firefox hasn't been able to view XUL files from non-chrome URI's since
  version 4.0
  - update debian/firefox.desktop.in
* Add application/x-xpinstall to the MimeType field of the desktop file
  - update debian/firefox.desktop.in
* Drop the ability to select between tree/system libraries using a single
  option in debian/rules. It adds additional complexity and was never used
  - update debian/config/mozconfig.in
  - update debian/control.in
  - update debian/firefox-dev.install.in
  - update debian/firefox-dev.links.in
  - update debian/pkgconfig/libxul.pc.in
  - update debian/rules
* Fix make-makefile test failure when the build directory contains
  perl regexp control characters
  - add debian/patches/make-makefile-test-fix.patch
  - update debian/patches/series
* Shuffle the order of google-breakpad/src/common/dwarf/Makefile.in to fix a
  variable substitution issue, which was causing some objects to be built with
  the wrong compiler flags, resulting in dump_syms crashing (LP: #1002590)
  - add debian/patches/fix-makefile-substitution-bug.patch
* Update StartupWMClass to the correct name
  - update debian/firefox.desktop.in
  - update debian/rules
* Add search plugin for DuckDuckGo
* Fix LP: #1000820 - firefox-dev conflicts with xulrunner-1.9-dev for
  people with the latter still installed
  - update debian/control{,.in}
* Add Fulah to locales.blacklist
* Fix LP: #1013186 - install our vendor preferences as application
  defaults rather than GRE defaults, so that they are loaded after
  the upstream defaults again. The upstream defaults were also moved
  as part of the webapp runtime work (which has it's own application
  defaults)
  - update debian/firefox.install.in
  - update debian/firefox.links.in
* Apport hook improvements:
  - Sort preferences alphabetically in the apport data
  - Treat preferences set in default addons as default prefs so that
    they don't show up in apport data, unless the preference files have
    been modified
  - Support random pref files dropped in to the Firefox install folder, and
    preferences from application bundles
  - Fix ordering issues when loading preferences
* Drop debian/patches/plugin-for-mimetype-pref.patch. The burden of
  carrying this is starting to outweigh the benefits of it

[ Ben Collins <ben.collins@ubuntu.com> ]
* Cherry pick patch from aurora to use YARR interpreter on ppc
  - update debian/patches/fix-build-failure-without-yarr-jit.patch
  - update debian/patches/series
* Fix ppc build due to new dtoa library
  - add debian/patches/fix-dtoa-build-on-ppc.patch
  - update debian/patches/series

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
Index: mozilla/toolkit/xre/nsXREDirProvider.cpp
6
6
===================================================================
7
 
--- mozilla.orig/toolkit/xre/nsXREDirProvider.cpp       2011-09-29 00:59:39.000000000 +0100
8
 
+++ mozilla/toolkit/xre/nsXREDirProvider.cpp    2011-09-29 10:22:10.700227676 +0100
9
 
@@ -591,6 +591,7 @@
 
7
--- mozilla.orig/toolkit/xre/nsXREDirProvider.cpp       2012-06-05 22:18:45.791660874 +0100
 
8
+++ mozilla/toolkit/xre/nsXREDirProvider.cpp    2012-06-05 22:18:49.999660728 +0100
 
9
@@ -606,6 +606,7 @@
10
10
 }
11
11
 
12
12
 static const char *const kAppendPrefDir[] = { "defaults", "preferences", nsnull };
14
14
 
15
15
 #ifdef DEBUG_bsmedberg
16
16
 static void
17
 
@@ -632,6 +633,9 @@
18
 
     LoadAppDirIntoArray(mXULAppDir, kAppendPrefDir, directories);
 
17
@@ -647,6 +648,9 @@
 
18
     LoadDirIntoArray(mXULAppDir, kAppendPrefDir, directories);
19
19
     LoadDirsIntoArray(mAppBundleDirectories,
20
20
                       kAppendPrefDir, directories);
21
 
+    LoadAppDirIntoArray(mXULAppDir, kAppendSysPrefDir, directories);
 
21
+    LoadDirIntoArray(mXULAppDir, kAppendSysPrefDir, directories);
22
22
+    LoadDirsIntoArray(mAppBundleDirectories,
23
23
+                      kAppendSysPrefDir, directories);
24
24
 
26
26
   }
27
27
Index: mozilla/xpcom/io/nsAppDirectoryServiceDefs.h
28
28
===================================================================
29
 
--- mozilla.orig/xpcom/io/nsAppDirectoryServiceDefs.h   2011-09-29 00:59:46.000000000 +0100
30
 
+++ mozilla/xpcom/io/nsAppDirectoryServiceDefs.h        2011-09-29 10:22:10.700227676 +0100
 
29
--- mozilla.orig/xpcom/io/nsAppDirectoryServiceDefs.h   2012-06-05 22:18:45.791660874 +0100
 
30
+++ mozilla/xpcom/io/nsAppDirectoryServiceDefs.h        2012-06-05 22:18:49.999660728 +0100
31
31
@@ -63,6 +63,7 @@
32
32
 
33
33
 #define NS_APP_DEFAULTS_50_DIR                  "DefRt"         // The root dir of all defaults dirs
38
38
 #define NS_APP_PROFILE_DEFAULTS_NLOC_50_DIR     "ProfDefNoLoc"  // The profile defaults of the "default"
39
39
Index: mozilla/xpcom/io/nsAppFileLocationProvider.cpp
40
40
===================================================================
41
 
--- mozilla.orig/xpcom/io/nsAppFileLocationProvider.cpp 2011-09-29 00:59:46.000000000 +0100
42
 
+++ mozilla/xpcom/io/nsAppFileLocationProvider.cpp      2011-09-29 10:22:10.700227676 +0100
 
41
--- mozilla.orig/xpcom/io/nsAppFileLocationProvider.cpp 2012-06-05 22:18:45.791660874 +0100
 
42
+++ mozilla/xpcom/io/nsAppFileLocationProvider.cpp      2012-06-05 22:18:49.999660728 +0100
43
43
@@ -94,6 +94,7 @@
44
44
 
45
45
 #define DEFAULTS_DIR_NAME           NS_LITERAL_CSTRING("defaults")
66
66
     {
67
67
Index: mozilla/modules/libpref/src/Preferences.cpp
68
68
===================================================================
69
 
--- mozilla.orig/modules/libpref/src/Preferences.cpp    2011-09-29 10:22:28.616227359 +0100
70
 
+++ mozilla/modules/libpref/src/Preferences.cpp 2011-09-29 10:26:43.716222825 +0100
71
 
@@ -1093,6 +1093,15 @@
 
69
--- mozilla.orig/modules/libpref/src/Preferences.cpp    2012-06-05 22:18:45.791660874 +0100
 
70
+++ mozilla/modules/libpref/src/Preferences.cpp 2012-06-05 22:26:56.871643731 +0100
 
71
@@ -1091,6 +1091,14 @@
72
72
   if (NS_FAILED(rv))
73
73
     NS_WARNING("Error parsing application default preferences.");
74
74
 
75
 
+
76
75
+  /* Load $gre/defaults/syspref/*.js */
77
76
+  rv = NS_GetSpecialDirectory(NS_APP_SYSPREF_DEFAULTS_50_DIR, getter_AddRefs(defaultPrefDir));
78
77
+  NS_ENSURE_SUCCESS(rv, rv);
82
81
+    NS_WARNING("Error parsing application system preferences.");
83
82
+
84
83
   // Load jar:$app/omni.jar!/defaults/preferences/*.js
85
 
   nsZipArchive *appJarReader = mozilla::Omnijar::GetReader(mozilla::Omnijar::APP);
86
 
   if (appJarReader) {
 
84
   // or jar:$gre/omni.jar!/defaults/preferences/*.js.
 
85
   nsRefPtr<nsZipArchive> appJarReader = mozilla::Omnijar::GetReader(mozilla::Omnijar::APP);