diff -r 63a32fb3b602 -r 4b99400f6d17 mozilla-kde.patch --- a/mozilla-kde.patch Sun Oct 21 09:27:28 2018 +0200 +++ b/mozilla-kde.patch Mon Oct 22 11:26:41 2018 +0200 @@ -1,5 +1,5 @@ # HG changeset patch -# Parent 989a507ffc5faf9a3bd950c2391a24afa9f463c8 +# Parent 06a62125ffbb15e88dacb486169d8e6a9595bd78 Description: Add KDE integration to Firefox (toolkit parts) Author: Wolfgang Rosenauer Author: Lubos Lunak @@ -9,7 +9,7 @@ diff --git a/modules/libpref/Preferences.cpp b/modules/libpref/Preferences.cpp --- a/modules/libpref/Preferences.cpp +++ b/modules/libpref/Preferences.cpp -@@ -77,16 +77,17 @@ +@@ -80,16 +80,17 @@ #include "nsXPCOMCID.h" #include "nsXPCOM.h" #include "nsXULAppAPI.h" @@ -20,14 +20,14 @@ #include "prlink.h" +#include "nsKDEUtils.h" + #ifdef MOZ_MEMORY + #include "mozmemory.h" + #endif + #ifdef XP_WIN #include "windows.h" #endif - - using namespace mozilla; - - #ifdef DEBUG -@@ -4189,25 +4190,37 @@ Preferences::InitInitialObjects(bool aIs +@@ -4932,25 +4933,37 @@ Preferences::InitInitialObjects(bool aIs // application pref files for backwards compatibility. static const char* specialFiles[] = { #if defined(XP_MACOSX) @@ -65,7 +65,7 @@ // Load jar:$app/omni.jar!/defaults/preferences/*.js // or jar:$gre/omni.jar!/defaults/preferences/*.js. -@@ -4256,17 +4269,17 @@ Preferences::InitInitialObjects(bool aIs +@@ -4999,17 +5012,17 @@ Preferences::InitInitialObjects(bool aIs } nsCOMPtr path = do_QueryInterface(elem); @@ -87,13 +87,13 @@ diff --git a/modules/libpref/moz.build b/modules/libpref/moz.build --- a/modules/libpref/moz.build +++ b/modules/libpref/moz.build -@@ -29,16 +29,20 @@ EXPORTS.mozilla += [ - 'Preferences.h', +@@ -31,16 +31,20 @@ EXPORTS.mozilla += [ 'StaticPrefs.h', ] UNIFIED_SOURCES += [ 'Preferences.cpp', + 'SharedPrefMap.cpp', ] +LOCAL_INCLUDES += [ @@ -167,11 +167,11 @@ +] + with Files('**'): - BUG_COMPONENT = ('Toolkit', 'Download Manager') + BUG_COMPONENT = ('Toolkit', 'Downloads API') diff --git a/toolkit/content/jar.mn b/toolkit/content/jar.mn --- a/toolkit/content/jar.mn +++ b/toolkit/content/jar.mn -@@ -69,16 +69,18 @@ toolkit.jar: +@@ -70,16 +70,18 @@ toolkit.jar: content/global/bindings/checkbox.xml (widgets/checkbox.xml) content/global/bindings/colorpicker.xml (widgets/colorpicker.xml) content/global/bindings/datekeeper.js (widgets/datekeeper.js) @@ -182,19 +182,19 @@ * content/global/bindings/dialog.xml (widgets/dialog.xml) +* content/global/bindings/dialog-kde.xml (widgets/dialog-kde.xml) +% override chrome://global/content/bindings/dialog.xml chrome://global/content/bindings/dialog-kde.xml desktop=kde - content/global/bindings/editor.xml (widgets/editor.xml) * content/global/bindings/findbar.xml (widgets/findbar.xml) content/global/bindings/general.xml (widgets/general.xml) content/global/bindings/groupbox.xml (widgets/groupbox.xml) - content/global/bindings/listbox.xml (widgets/listbox.xml) content/global/bindings/menu.xml (widgets/menu.xml) content/global/bindings/menulist.xml (widgets/menulist.xml) content/global/bindings/notification.xml (widgets/notification.xml) + content/global/bindings/numberbox.xml (widgets/numberbox.xml) + content/global/bindings/popup.xml (widgets/popup.xml) diff --git a/toolkit/content/widgets/dialog-kde.xml b/toolkit/content/widgets/dialog-kde.xml new file mode 100644 --- /dev/null +++ b/toolkit/content/widgets/dialog-kde.xml -@@ -0,0 +1,478 @@ +@@ -0,0 +1,475 @@ + +