diff -r b61e849fe451 -r 9ae2b79d3bb1 mozilla-kde.patch --- a/mozilla-kde.patch Wed Jan 18 22:06:23 2017 +0100 +++ b/mozilla-kde.patch Fri Jan 20 23:56:59 2017 +0100 @@ -1,5 +1,5 @@ # HG changeset patch -# Parent 6ff55468281e12a84adefb46b17acb60d9cea608 +# Parent f3e80d26a430dfa1c58421fb66144a3c23ffc166 Description: Add KDE integration to Firefox (toolkit parts) Author: Wolfgang Rosenauer Author: Lubos Lunak @@ -27,7 +27,7 @@ #include "prefread.h" #include "prefapi_private_data.h" -@@ -1180,16 +1181,34 @@ pref_LoadPrefsInDir(nsIFile* aDir, char +@@ -1174,16 +1175,34 @@ pref_LoadPrefsInDir(nsIFile* aDir, char static nsresult pref_LoadPrefsInDirList(const char *listId) { @@ -62,7 +62,7 @@ return NS_OK; bool hasMore; -@@ -1205,17 +1224,17 @@ static nsresult pref_LoadPrefsInDirList( +@@ -1199,17 +1218,17 @@ static nsresult pref_LoadPrefsInDirList( nsAutoCString leaf; path->GetNativeLeafName(leaf); @@ -81,7 +81,7 @@ { nsZipItemPtr manifest(jarReader, name, true); NS_ENSURE_TRUE(manifest.Buffer(), NS_ERROR_NOT_AVAILABLE); -@@ -1309,24 +1328,36 @@ static nsresult pref_InitInitialObjects( +@@ -1303,24 +1322,36 @@ static nsresult pref_InitInitialObjects( /* these pref file names should not be used: we process them after all other application pref files for backwards compatibility */ static const char* specialFiles[] = { #if defined(XP_MACOSX) @@ -187,8 +187,7 @@ diff --git a/toolkit/components/downloads/moz.build b/toolkit/components/downloads/moz.build --- a/toolkit/components/downloads/moz.build +++ b/toolkit/components/downloads/moz.build -@@ -60,17 +60,18 @@ if not CONFIG['MOZ_SUITE']: - 'nsDownloadManagerUI.js', +@@ -57,16 +57,17 @@ if not CONFIG['MOZ_SUITE']: 'nsDownloadManagerUI.manifest', ] @@ -196,9 +195,9 @@ LOCAL_INCLUDES += [ '../protobuf', -- '/ipc/chromium/src' -+ '/ipc/chromium/src', -+ '/toolkit/xre' + '/ipc/chromium/src', ++ '/toolkit/xre', + 'chromium' ] DEFINES['GOOGLE_PROTOBUF_NO_RTTI'] = True @@ -206,11 +205,10 @@ CXXFLAGS += CONFIG['TK_CFLAGS'] - if CONFIG['GNU_CXX']: diff --git a/toolkit/components/downloads/nsDownloadManager.cpp b/toolkit/components/downloads/nsDownloadManager.cpp --- a/toolkit/components/downloads/nsDownloadManager.cpp +++ b/toolkit/components/downloads/nsDownloadManager.cpp -@@ -51,16 +51,20 @@ +@@ -52,16 +52,20 @@ #ifdef XP_WIN #include #include "nsWindowsHelpers.h" @@ -228,10 +226,10 @@ #endif #ifdef MOZ_WIDGET_ANDROID - #include "GeneratedJNIWrappers.h" + #include "FennecJNIWrappers.h" #endif -@@ -2719,16 +2723,25 @@ nsDownload::SetState(DownloadState aStat +@@ -2723,16 +2727,25 @@ nsDownload::SetState(DownloadState aStat nsCOMPtr pref(do_GetService(NS_PREFSERVICE_CONTRACTID)); // Master pref to control this function. @@ -257,7 +255,7 @@ int64_t goat = PR_Now() - mStartTime; showTaskbarAlert = goat > alertIntervalUSec; -@@ -2759,16 +2772,17 @@ nsDownload::SetState(DownloadState aStat +@@ -2763,16 +2776,17 @@ nsDownload::SetState(DownloadState aStat NS_LITERAL_STRING(DOWNLOAD_MANAGER_ALERT_ICON), title, message, !removeWhenDone, mPrivate ? NS_LITERAL_STRING("private") : NS_LITERAL_STRING("non-private"), @@ -316,7 +314,7 @@ new file mode 100644 --- /dev/null +++ b/toolkit/content/widgets/dialog-kde.xml -@@ -0,0 +1,463 @@ +@@ -0,0 +1,457 @@ + +