1 # HG changeset patch |
1 # HG changeset patch |
2 # User msirringhaus@suse.de |
2 # User msirringhaus@suse.de |
3 # Date 1559294891 -7200 |
3 # Date 1559294891 -7200 |
4 # Fri May 31 11:28:11 2019 +0200 |
4 # Fri May 31 11:28:11 2019 +0200 |
5 # Node ID c2aa7198fb925e7fde96abf65b6f68b9b755f112 |
5 # Node ID c2aa7198fb925e7fde96abf65b6f68b9b755f112 |
6 # Parent e89d21ead66fbb34b6349edda42748a3ad9e6136 |
6 # Parent 4b9aa59b15c3247d263cc32804786b3a6bff7912 |
7 Description: Add KDE integration to Firefox (toolkit parts) |
7 Description: Add KDE integration to Firefox (toolkit parts) |
8 Author: Wolfgang Rosenauer <wolfgang@rosenauer.org> |
8 Author: Wolfgang Rosenauer <wolfgang@rosenauer.org> |
9 Author: Lubos Lunak <lunak@suse.com> |
9 Author: Lubos Lunak <lunak@suse.com> |
10 Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=140751 |
10 Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=140751 |
11 https://bugzilla.novell.com/show_bug.cgi?id=170055 |
11 https://bugzilla.novell.com/show_bug.cgi?id=170055 |
12 |
12 |
13 diff --git a/modules/libpref/Preferences.cpp b/modules/libpref/Preferences.cpp |
13 diff --git a/modules/libpref/Preferences.cpp b/modules/libpref/Preferences.cpp |
14 --- a/modules/libpref/Preferences.cpp |
14 --- a/modules/libpref/Preferences.cpp |
15 +++ b/modules/libpref/Preferences.cpp |
15 +++ b/modules/libpref/Preferences.cpp |
16 @@ -83,16 +83,17 @@ |
16 @@ -82,16 +82,17 @@ |
17 #include "nsXPCOM.h" |
17 #include "nsXPCOM.h" |
18 #include "nsXULAppAPI.h" |
18 #include "nsXULAppAPI.h" |
19 #include "nsZipArchive.h" |
19 #include "nsZipArchive.h" |
20 #include "plbase64.h" |
20 #include "plbase64.h" |
21 #include "PLDHashTable.h" |
21 #include "PLDHashTable.h" |
89 |
89 |
90 if (aIsStartup) { |
90 if (aIsStartup) { |
91 diff --git a/modules/libpref/moz.build b/modules/libpref/moz.build |
91 diff --git a/modules/libpref/moz.build b/modules/libpref/moz.build |
92 --- a/modules/libpref/moz.build |
92 --- a/modules/libpref/moz.build |
93 +++ b/modules/libpref/moz.build |
93 +++ b/modules/libpref/moz.build |
94 @@ -118,16 +118,20 @@ EXPORTS.mozilla += [ |
94 @@ -116,16 +116,20 @@ EXPORTS.mozilla += [ |
95 ] |
95 ] |
96 EXPORTS.mozilla += sorted(['!' + g for g in gen_h]) |
96 EXPORTS.mozilla += sorted(["!" + g for g in gen_h]) |
97 |
97 |
98 UNIFIED_SOURCES += [ |
98 UNIFIED_SOURCES += [ |
99 'Preferences.cpp', |
99 "Preferences.cpp", |
100 'SharedPrefMap.cpp', |
100 "SharedPrefMap.cpp", |
101 ] |
101 ] |
102 |
102 |
103 +LOCAL_INCLUDES += [ |
103 +LOCAL_INCLUDES += [ |
104 + '/toolkit/xre' |
104 + '/toolkit/xre' |
105 +] |
105 +] |
106 + |
106 + |
107 gen_all_tuple = tuple(gen_h + gen_cpp + gen_rs) |
107 gen_all_tuple = tuple(gen_h + gen_cpp + gen_rs) |
108 |
108 |
109 GeneratedFile(*gen_all_tuple, script='init/generate_static_pref_list.py', |
109 GeneratedFile( |
110 entry_point='emit_code', inputs=['init/StaticPrefList.yaml']) |
110 *gen_all_tuple, |
111 |
111 script="init/generate_static_pref_list.py", |
112 PYTHON_UNITTEST_MANIFESTS += [ |
112 entry_point="emit_code", |
113 'test/python.ini', |
113 inputs=["init/StaticPrefList.yaml"] |
114 ] |
114 ) |
115 diff --git a/python/mozbuild/mozpack/chrome/flags.py b/python/mozbuild/mozpack/chrome/flags.py |
115 diff --git a/python/mozbuild/mozpack/chrome/flags.py b/python/mozbuild/mozpack/chrome/flags.py |
116 --- a/python/mozbuild/mozpack/chrome/flags.py |
116 --- a/python/mozbuild/mozpack/chrome/flags.py |
117 +++ b/python/mozbuild/mozpack/chrome/flags.py |
117 +++ b/python/mozbuild/mozpack/chrome/flags.py |
118 @@ -227,16 +227,17 @@ class Flags(OrderedDict): |
118 @@ -228,16 +228,17 @@ class Flags(OrderedDict): |
119 'contentaccessible': Flag, |
119 "contentaccessible": Flag, |
120 'os': StringFlag, |
120 "os": StringFlag, |
121 'osversion': VersionFlag, |
121 "osversion": VersionFlag, |
122 'abi': StringFlag, |
122 "abi": StringFlag, |
123 'platform': Flag, |
123 "platform": Flag, |
124 'xpcnativewrappers': Flag, |
124 "xpcnativewrappers": Flag, |
125 'tablet': Flag, |
125 "tablet": Flag, |
126 'process': StringFlag, |
126 "process": StringFlag, |
127 + 'desktop': StringFlag, |
127 + "desktop": StringFlag, |
128 } |
128 } |
129 RE = re.compile(r'([!<>=]+)') |
129 RE = re.compile(r"([!<>=]+)") |
130 |
130 |
131 def __init__(self, *flags): |
131 def __init__(self, *flags): |
132 ''' |
132 """ |
133 Initialize a set of flags given in string form. |
133 Initialize a set of flags given in string form. |
134 flags = Flags('contentaccessible=yes', 'appversion>=3.5') |
134 flags = Flags('contentaccessible=yes', 'appversion>=3.5') |
135 ''' |
135 """ |
136 diff --git a/python/mozbuild/mozpack/chrome/manifest.py b/python/mozbuild/mozpack/chrome/manifest.py |
136 diff --git a/python/mozbuild/mozpack/chrome/manifest.py b/python/mozbuild/mozpack/chrome/manifest.py |
137 --- a/python/mozbuild/mozpack/chrome/manifest.py |
137 --- a/python/mozbuild/mozpack/chrome/manifest.py |
138 +++ b/python/mozbuild/mozpack/chrome/manifest.py |
138 +++ b/python/mozbuild/mozpack/chrome/manifest.py |
139 @@ -37,16 +37,17 @@ class ManifestEntry(object): |
139 @@ -38,16 +38,17 @@ class ManifestEntry(object): |
140 'platformversion', |
140 "platformversion", |
141 'os', |
141 "os", |
142 'osversion', |
142 "osversion", |
143 'abi', |
143 "abi", |
144 'xpcnativewrappers', |
144 "xpcnativewrappers", |
145 'tablet', |
145 "tablet", |
146 'process', |
146 "process", |
147 'contentaccessible', |
147 "contentaccessible", |
148 + 'desktop', |
148 + "desktop", |
149 ] |
149 ] |
150 |
150 |
151 def __init__(self, base, *flags): |
151 def __init__(self, base, *flags): |
152 ''' |
152 """ |
153 Initialize a manifest entry with the given base path and flags. |
153 Initialize a manifest entry with the given base path and flags. |
154 ''' |
154 """ |
155 self.base = base |
155 self.base = base |
156 self.flags = Flags(*flags) |
156 self.flags = Flags(*flags) |
157 diff --git a/toolkit/components/downloads/moz.build b/toolkit/components/downloads/moz.build |
157 diff --git a/toolkit/components/downloads/moz.build b/toolkit/components/downloads/moz.build |
158 --- a/toolkit/components/downloads/moz.build |
158 --- a/toolkit/components/downloads/moz.build |
159 +++ b/toolkit/components/downloads/moz.build |
159 +++ b/toolkit/components/downloads/moz.build |
160 @@ -45,10 +45,14 @@ XPCOM_MANIFESTS += [ |
160 @@ -45,10 +45,14 @@ XPCOM_MANIFESTS += [ |
161 |
161 |
162 if CONFIG['MOZ_PLACES']: |
162 if CONFIG["MOZ_PLACES"]: |
163 EXTRA_JS_MODULES += [ |
163 EXTRA_JS_MODULES += [ |
164 'DownloadHistory.jsm', |
164 "DownloadHistory.jsm", |
165 ] |
165 ] |
166 |
166 |
167 FINAL_LIBRARY = 'xul' |
167 FINAL_LIBRARY = "xul" |
168 |
168 |
169 +LOCAL_INCLUDES += [ |
169 +LOCAL_INCLUDES += [ |
170 + '/toolkit/xre' |
170 + '/toolkit/xre' |
171 +] |
171 +] |
172 + |
172 + |
173 with Files('**'): |
173 with Files("**"): |
174 BUG_COMPONENT = ('Toolkit', 'Downloads API') |
174 BUG_COMPONENT = ("Toolkit", "Downloads API") |
175 diff --git a/toolkit/mozapps/downloads/HelperAppDlg.jsm b/toolkit/mozapps/downloads/HelperAppDlg.jsm |
175 diff --git a/toolkit/mozapps/downloads/HelperAppDlg.jsm b/toolkit/mozapps/downloads/HelperAppDlg.jsm |
176 --- a/toolkit/mozapps/downloads/HelperAppDlg.jsm |
176 --- a/toolkit/mozapps/downloads/HelperAppDlg.jsm |
177 +++ b/toolkit/mozapps/downloads/HelperAppDlg.jsm |
177 +++ b/toolkit/mozapps/downloads/HelperAppDlg.jsm |
178 @@ -1239,36 +1239,66 @@ nsUnknownContentTypeDialog.prototype = { |
178 @@ -1243,36 +1243,66 @@ nsUnknownContentTypeDialog.prototype = { |
179 params.handlerApp && |
179 params.handlerApp && |
180 params.handlerApp.executable && |
180 params.handlerApp.executable && |
181 params.handlerApp.executable.isFile() |
181 params.handlerApp.executable.isFile() |
182 ) { |
182 ) { |
183 // Remember the file they chose to run. |
183 // Remember the file they chose to run. |
354 return result.forget().downcast<nsISupports>(); |
354 return result.forget().downcast<nsISupports>(); |
355 } |
355 } |
356 diff --git a/toolkit/xre/moz.build b/toolkit/xre/moz.build |
356 diff --git a/toolkit/xre/moz.build b/toolkit/xre/moz.build |
357 --- a/toolkit/xre/moz.build |
357 --- a/toolkit/xre/moz.build |
358 +++ b/toolkit/xre/moz.build |
358 +++ b/toolkit/xre/moz.build |
359 @@ -90,17 +90,19 @@ elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'co |
359 @@ -91,17 +91,19 @@ elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "co |
360 '../components/printingui', |
360 "../components/printingui", |
361 ] |
361 ] |
362 elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'uikit': |
362 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "uikit": |
363 UNIFIED_SOURCES += [ |
363 UNIFIED_SOURCES += [ |
364 'nsNativeAppSupportDefault.cpp', |
364 "nsNativeAppSupportDefault.cpp", |
365 'UIKitDirProvider.mm', |
365 "UIKitDirProvider.mm", |
366 ] |
366 ] |
367 elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk': |
367 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk": |
368 + EXPORTS += ['nsKDEUtils.h'] |
368 + EXPORTS += ['nsKDEUtils.h'] |
369 UNIFIED_SOURCES += [ |
369 UNIFIED_SOURCES += [ |
370 + 'nsKDEUtils.cpp', |
370 + "nsKDEUtils.cpp", |
371 'nsNativeAppSupportUnix.cpp', |
371 "nsNativeAppSupportUnix.cpp", |
372 ] |
372 ] |
373 else: |
373 else: |
374 UNIFIED_SOURCES += [ |
374 UNIFIED_SOURCES += [ |
375 'nsNativeAppSupportDefault.cpp', |
375 "nsNativeAppSupportDefault.cpp", |
376 ] |
376 ] |
377 |
377 |
378 if CONFIG['MOZ_HAS_REMOTE']: |
378 if CONFIG["MOZ_HAS_REMOTE"]: |
379 diff --git a/toolkit/xre/nsKDEUtils.cpp b/toolkit/xre/nsKDEUtils.cpp |
379 diff --git a/toolkit/xre/nsKDEUtils.cpp b/toolkit/xre/nsKDEUtils.cpp |
380 new file mode 100644 |
380 new file mode 100644 |
381 --- /dev/null |
381 --- /dev/null |
382 +++ b/toolkit/xre/nsKDEUtils.cpp |
382 +++ b/toolkit/xre/nsKDEUtils.cpp |
383 @@ -0,0 +1,344 @@ |
383 @@ -0,0 +1,344 @@ |
839 #endif |
839 #endif |
840 return IPC_OK(); |
840 return IPC_OK(); |
841 diff --git a/uriloader/exthandler/moz.build b/uriloader/exthandler/moz.build |
841 diff --git a/uriloader/exthandler/moz.build b/uriloader/exthandler/moz.build |
842 --- a/uriloader/exthandler/moz.build |
842 --- a/uriloader/exthandler/moz.build |
843 +++ b/uriloader/exthandler/moz.build |
843 +++ b/uriloader/exthandler/moz.build |
844 @@ -85,17 +85,19 @@ else: |
844 @@ -86,17 +86,19 @@ else: |
845 SOURCES += [ |
845 SOURCES += [ |
846 osdir + '/nsOSHelperAppService.cpp', |
846 osdir + "/nsOSHelperAppService.cpp", |
847 ] |
847 ] |
848 if CONFIG['CC_TYPE'] in ('clang', 'gcc'): |
848 if CONFIG["CC_TYPE"] in ("clang", "gcc"): |
849 CXXFLAGS += ['-Wno-error=shadow'] |
849 CXXFLAGS += ["-Wno-error=shadow"] |
850 |
850 |
851 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk': |
851 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk": |
852 UNIFIED_SOURCES += [ |
852 UNIFIED_SOURCES += [ |
853 + 'unix/nsCommonRegistry.cpp', |
853 + "unix/nsCommonRegistry.cpp", |
854 'unix/nsGNOMERegistry.cpp', |
854 "unix/nsGNOMERegistry.cpp", |
855 + 'unix/nsKDERegistry.cpp', |
855 + "unix/nsKDERegistry.cpp", |
856 'unix/nsMIMEInfoUnix.cpp', |
856 "unix/nsMIMEInfoUnix.cpp", |
857 ] |
857 ] |
858 elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android': |
858 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "android": |
859 UNIFIED_SOURCES += [ |
859 UNIFIED_SOURCES += [ |
860 'android/nsAndroidHandlerApp.cpp', |
860 "android/nsAndroidHandlerApp.cpp", |
861 'android/nsExternalURLHandlerService.cpp', |
861 "android/nsExternalURLHandlerService.cpp", |
862 'android/nsMIMEInfoAndroid.cpp', |
862 "android/nsMIMEInfoAndroid.cpp", |
863 ] |
863 ] |
864 @@ -135,16 +137,17 @@ include('/ipc/chromium/chromium-config.m |
864 @@ -136,16 +138,17 @@ include("/ipc/chromium/chromium-config.m |
865 FINAL_LIBRARY = 'xul' |
865 FINAL_LIBRARY = "xul" |
866 |
866 |
867 LOCAL_INCLUDES += [ |
867 LOCAL_INCLUDES += [ |
868 '/docshell/base', |
868 "/docshell/base", |
869 '/dom/base', |
869 "/dom/base", |
870 '/dom/ipc', |
870 "/dom/ipc", |
871 '/netwerk/base', |
871 "/netwerk/base", |
872 '/netwerk/protocol/http', |
872 "/netwerk/protocol/http", |
873 + '/toolkit/xre', |
873 + "/toolkit/xre", |
874 ] |
874 ] |
875 |
875 |
876 if CONFIG['MOZ_ENABLE_DBUS']: |
876 if CONFIG["MOZ_ENABLE_DBUS"]: |
877 CXXFLAGS += CONFIG['TK_CFLAGS'] |
877 CXXFLAGS += CONFIG["TK_CFLAGS"] |
878 CXXFLAGS += CONFIG['MOZ_DBUS_CFLAGS'] |
878 CXXFLAGS += CONFIG["MOZ_DBUS_CFLAGS"] |
879 |
879 |
880 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk': |
880 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk": |
881 CXXFLAGS += CONFIG['TK_CFLAGS'] |
881 CXXFLAGS += CONFIG["TK_CFLAGS"] |
882 diff --git a/uriloader/exthandler/unix/nsCommonRegistry.cpp b/uriloader/exthandler/unix/nsCommonRegistry.cpp |
882 diff --git a/uriloader/exthandler/unix/nsCommonRegistry.cpp b/uriloader/exthandler/unix/nsCommonRegistry.cpp |
883 new file mode 100644 |
883 new file mode 100644 |
884 --- /dev/null |
884 --- /dev/null |
885 +++ b/uriloader/exthandler/unix/nsCommonRegistry.cpp |
885 +++ b/uriloader/exthandler/unix/nsCommonRegistry.cpp |
886 @@ -0,0 +1,53 @@ |
886 @@ -0,0 +1,53 @@ |
1291 NS_ASSERTION(!gnomeInfo->HasExtensions(), "How'd that happen?"); |
1291 NS_ASSERTION(!gnomeInfo->HasExtensions(), "How'd that happen?"); |
1292 gnomeInfo->SetFileExtensions(NS_ConvertUTF16toUTF8(extensions)); |
1292 gnomeInfo->SetFileExtensions(NS_ConvertUTF16toUTF8(extensions)); |
1293 diff --git a/widget/gtk/moz.build b/widget/gtk/moz.build |
1293 diff --git a/widget/gtk/moz.build b/widget/gtk/moz.build |
1294 --- a/widget/gtk/moz.build |
1294 --- a/widget/gtk/moz.build |
1295 +++ b/widget/gtk/moz.build |
1295 +++ b/widget/gtk/moz.build |
1296 @@ -134,16 +134,17 @@ FINAL_LIBRARY = 'xul' |
1296 @@ -138,16 +138,17 @@ FINAL_LIBRARY = "xul" |
1297 |
1297 |
1298 LOCAL_INCLUDES += [ |
1298 LOCAL_INCLUDES += [ |
1299 '/layout/base', |
1299 "/layout/base", |
1300 '/layout/forms', |
1300 "/layout/forms", |
1301 '/layout/generic', |
1301 "/layout/generic", |
1302 '/layout/xul', |
1302 "/layout/xul", |
1303 '/other-licenses/atk-1.0', |
1303 "/other-licenses/atk-1.0", |
1304 '/third_party/cups/include', |
1304 "/third_party/cups/include", |
1305 + '/toolkit/xre', |
1305 + "/toolkit/xre", |
1306 '/widget', |
1306 "/widget", |
1307 '/widget/headless', |
1307 "/widget/headless", |
1308 ] |
1308 ] |
1309 |
1309 |
1310 if CONFIG['MOZ_X11']: |
1310 if CONFIG["MOZ_X11"]: |
1311 LOCAL_INCLUDES += [ |
1311 LOCAL_INCLUDES += [ |
1312 '/widget/x11', |
1312 "/widget/x11", |
1313 ] |
1313 ] |
1314 diff --git a/widget/gtk/nsFilePicker.cpp b/widget/gtk/nsFilePicker.cpp |
1314 diff --git a/widget/gtk/nsFilePicker.cpp b/widget/gtk/nsFilePicker.cpp |
1315 --- a/widget/gtk/nsFilePicker.cpp |
1315 --- a/widget/gtk/nsFilePicker.cpp |
1316 +++ b/widget/gtk/nsFilePicker.cpp |
1316 +++ b/widget/gtk/nsFilePicker.cpp |
1317 @@ -1,15 +1,16 @@ |
1317 @@ -1,15 +1,16 @@ |
1814 |
1814 |
1815 if (directive->regfunc) { |
1815 if (directive->regfunc) { |
1816 diff --git a/xpcom/components/moz.build b/xpcom/components/moz.build |
1816 diff --git a/xpcom/components/moz.build b/xpcom/components/moz.build |
1817 --- a/xpcom/components/moz.build |
1817 --- a/xpcom/components/moz.build |
1818 +++ b/xpcom/components/moz.build |
1818 +++ b/xpcom/components/moz.build |
1819 @@ -62,16 +62,17 @@ LOCAL_INCLUDES += [ |
1819 @@ -66,16 +66,17 @@ LOCAL_INCLUDES += [ |
1820 '!..', |
1820 "!..", |
1821 '../base', |
1821 "../base", |
1822 '../build', |
1822 "../build", |
1823 '../ds', |
1823 "../ds", |
1824 '/chrome', |
1824 "/chrome", |
1825 '/js/xpconnect/loader', |
1825 "/js/xpconnect/loader", |
1826 '/layout/build', |
1826 "/layout/build", |
1827 '/modules/libjar', |
1827 "/modules/libjar", |
1828 + '/toolkit/xre', |
1828 + "/toolkit/xre", |
1829 ] |
1829 ] |
1830 |
1830 |
1831 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk': |
1831 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk": |
1832 CXXFLAGS += CONFIG['TK_CFLAGS'] |
1832 CXXFLAGS += CONFIG["TK_CFLAGS"] |
1833 if CONFIG['MOZ_ENABLE_DBUS']: |
1833 if CONFIG["MOZ_ENABLE_DBUS"]: |
1834 CXXFLAGS += CONFIG['MOZ_DBUS_GLIB_CFLAGS'] |
1834 CXXFLAGS += CONFIG["MOZ_DBUS_GLIB_CFLAGS"] |
1835 |
1835 |
1836 include('/ipc/chromium/chromium-config.mozbuild') |
1836 include("/ipc/chromium/chromium-config.mozbuild") |
1837 diff --git a/xpcom/io/nsLocalFileUnix.cpp b/xpcom/io/nsLocalFileUnix.cpp |
1837 diff --git a/xpcom/io/nsLocalFileUnix.cpp b/xpcom/io/nsLocalFileUnix.cpp |
1838 --- a/xpcom/io/nsLocalFileUnix.cpp |
1838 --- a/xpcom/io/nsLocalFileUnix.cpp |
1839 +++ b/xpcom/io/nsLocalFileUnix.cpp |
1839 +++ b/xpcom/io/nsLocalFileUnix.cpp |
1840 @@ -46,16 +46,17 @@ |
1840 @@ -49,16 +49,17 @@ |
1841 #include "prproces.h" |
1841 #include "prproces.h" |
1842 #include "nsIDirectoryEnumerator.h" |
1842 #include "nsIDirectoryEnumerator.h" |
1843 #include "nsSimpleEnumerator.h" |
1843 #include "nsSimpleEnumerator.h" |
1844 #include "private/pprio.h" |
1844 #include "private/pprio.h" |
1845 #include "prlink.h" |
1845 #include "prlink.h" |