diff -r 3b986c9dbc5f -r 349bcaa18df4 mozilla-kde.patch --- a/mozilla-kde.patch Sat Aug 22 09:13:27 2015 +0200 +++ b/mozilla-kde.patch Sat Aug 22 09:17:03 2015 +0200 @@ -1,5 +1,5 @@ # HG changeset patch -# Parent 214f99f3ce4f1f8ae9b3d18da44e5d66b3105663 +# Parent 5f8cbb078ab0d5696255c2f514c6333666b47da9 Description: Add KDE integration to Firefox (toolkit parts) Author: Wolfgang Rosenauer Author: Lubos Lunak @@ -46,7 +46,7 @@ #include "prefread.h" #include "prefapi_private_data.h" -@@ -1165,16 +1166,34 @@ pref_LoadPrefsInDir(nsIFile* aDir, char +@@ -1154,16 +1155,34 @@ pref_LoadPrefsInDir(nsIFile* aDir, char static nsresult pref_LoadPrefsInDirList(const char *listId) { @@ -81,7 +81,7 @@ return NS_OK; bool hasMore; -@@ -1190,17 +1209,17 @@ static nsresult pref_LoadPrefsInDirList( +@@ -1179,17 +1198,17 @@ static nsresult pref_LoadPrefsInDirList( nsAutoCString leaf; path->GetNativeLeafName(leaf); @@ -100,7 +100,7 @@ { nsZipItemPtr manifest(jarReader, name, true); NS_ENSURE_TRUE(manifest.Buffer(), NS_ERROR_NOT_AVAILABLE); -@@ -1294,26 +1313,38 @@ static nsresult pref_InitInitialObjects( +@@ -1283,26 +1302,38 @@ 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) @@ -184,7 +184,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 -@@ -52,14 +52,15 @@ if not CONFIG['MOZ_SUITE']: +@@ -67,14 +67,15 @@ if not CONFIG['MOZ_SUITE']: ] FAIL_ON_WARNINGS = True @@ -225,7 +225,7 @@ #include "AndroidBridge.h" #endif -@@ -2716,16 +2720,25 @@ nsDownload::SetState(DownloadState aStat +@@ -2711,16 +2715,25 @@ nsDownload::SetState(DownloadState aStat nsCOMPtr pref(do_GetService(NS_PREFSERVICE_CONTRACTID)); // Master pref to control this function. @@ -251,7 +251,7 @@ int64_t goat = PR_Now() - mStartTime; showTaskbarAlert = goat > alertIntervalUSec; -@@ -2756,16 +2769,17 @@ nsDownload::SetState(DownloadState aStat +@@ -2751,16 +2764,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"), @@ -272,7 +272,7 @@ diff --git a/toolkit/content/jar.mn b/toolkit/content/jar.mn --- a/toolkit/content/jar.mn +++ b/toolkit/content/jar.mn -@@ -57,29 +57,33 @@ toolkit.jar: +@@ -60,29 +60,33 @@ toolkit.jar: content/global/viewZoomOverlay.js (viewZoomOverlay.js) *+ content/global/bindings/autocomplete.xml (widgets/autocomplete.xml) content/global/bindings/browser.xml (widgets/browser.xml) @@ -310,7 +310,7 @@ new file mode 100644 --- /dev/null +++ b/toolkit/content/widgets/dialog-kde.xml -@@ -0,0 +1,455 @@ +@@ -0,0 +1,460 @@ + + ++ false ++ + false -+ ++ + + @@ -2124,7 +2136,7 @@ diff --git a/toolkit/system/unixproxy/nsUnixSystemProxySettings.cpp b/toolkit/system/unixproxy/nsUnixSystemProxySettings.cpp --- a/toolkit/system/unixproxy/nsUnixSystemProxySettings.cpp +++ b/toolkit/system/unixproxy/nsUnixSystemProxySettings.cpp -@@ -14,16 +14,18 @@ +@@ -14,16 +14,17 @@ #include "prenv.h" #include "nsPrintfCString.h" #include "nsNetUtil.h" @@ -2133,7 +2145,6 @@ #include "nsInterfaceHashtable.h" #include "mozilla/Attributes.h" #include "nsIURI.h" -+#include "nsVoidArray.h" +#include "nsKDEUtils.h" class nsUnixSystemProxySettings final : public nsISystemProxySettings { @@ -2143,7 +2154,7 @@ nsUnixSystemProxySettings() : mSchemeProxySettings(4) -@@ -38,16 +40,17 @@ private: +@@ -38,16 +39,17 @@ private: nsCOMPtr mGSettings; nsCOMPtr mProxySettings; nsInterfaceHashtable mSchemeProxySettings; @@ -2161,7 +2172,7 @@ nsUnixSystemProxySettings::GetMainThreadOnly(bool *aMainThreadOnly) { // dbus prevents us from being threadsafe, but this routine should not block anyhow -@@ -504,16 +507,19 @@ nsUnixSystemProxySettings::GetProxyFromG +@@ -504,16 +506,19 @@ nsUnixSystemProxySettings::GetProxyFromG nsresult nsUnixSystemProxySettings::GetProxyForURI(const nsACString & aSpec, @@ -2181,7 +2192,7 @@ if (mGConf) return GetProxyFromGConf(aScheme, aHost, aPort, aResult); -@@ -539,8 +545,34 @@ static const mozilla::Module::ContractID +@@ -539,8 +544,34 @@ static const mozilla::Module::ContractID static const mozilla::Module kUnixProxyModule = { mozilla::Module::kVersion, @@ -2681,7 +2692,7 @@ new file mode 100644 --- /dev/null +++ b/uriloader/exthandler/unix/nsCommonRegistry.cpp -@@ -0,0 +1,54 @@ +@@ -0,0 +1,53 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this @@ -2692,7 +2703,6 @@ +#include "nsGNOMERegistry.h" +#include "nsKDERegistry.h" +#include "nsString.h" -+#include "nsVoidArray.h" +#include "nsKDEUtils.h" + +/* static */ bool @@ -3466,7 +3476,7 @@ diff --git a/xpcom/components/ManifestParser.cpp b/xpcom/components/ManifestParser.cpp --- a/xpcom/components/ManifestParser.cpp +++ b/xpcom/components/ManifestParser.cpp -@@ -34,16 +34,17 @@ +@@ -35,16 +35,17 @@ #include "nsIConsoleService.h" #include "nsIScriptError.h" @@ -3484,7 +3494,7 @@ #define XPTONLY_MANIFEST nullptr #define XPTONLY_XPT nullptr #endif -@@ -489,16 +490,17 @@ ParseManifest(NSLocationType aType, File +@@ -494,16 +495,17 @@ ParseManifest(NSLocationType aType, File NS_NAMED_LITERAL_STRING(kRemoteEnabled, "remoteenabled"); NS_NAMED_LITERAL_STRING(kRemoteRequired, "remoterequired"); NS_NAMED_LITERAL_STRING(kApplication, "application"); @@ -3502,7 +3512,7 @@ NS_NAMED_LITERAL_STRING(kMain, "main"); NS_NAMED_LITERAL_STRING(kContent, "content"); -@@ -549,44 +551,49 @@ ParseManifest(NSLocationType aType, File +@@ -554,44 +556,49 @@ ParseManifest(NSLocationType aType, File CopyUTF8toUTF16(s, abi); abi.Insert(char16_t('_'), 0); abi.Insert(osTarget, 0); @@ -3552,7 +3562,7 @@ process = kMain; } -@@ -681,25 +688,27 @@ ParseManifest(NSLocationType aType, File +@@ -694,25 +701,27 @@ ParseManifest(NSLocationType aType, File TriState stOsVersion = eUnspecified; TriState stOs = eUnspecified; TriState stABI = eUnspecified; @@ -3580,7 +3590,7 @@ } #if defined(MOZ_WIDGET_ANDROID) -@@ -749,16 +758,17 @@ ParseManifest(NSLocationType aType, File +@@ -762,16 +771,17 @@ ParseManifest(NSLocationType aType, File } if (!ok || @@ -3601,7 +3611,7 @@ diff --git a/xpcom/components/moz.build b/xpcom/components/moz.build --- a/xpcom/components/moz.build +++ b/xpcom/components/moz.build -@@ -48,12 +48,13 @@ FINAL_LIBRARY = 'xul' +@@ -46,12 +46,13 @@ FINAL_LIBRARY = 'xul' GENERATED_INCLUDES += ['..'] LOCAL_INCLUDES += [ '../base', @@ -3636,7 +3646,7 @@ #include "prmem.h" #include "plbase64.h" -@@ -1964,42 +1965,52 @@ nsLocalFile::SetPersistentDescriptor(con +@@ -1960,42 +1961,52 @@ nsLocalFile::SetPersistentDescriptor(con return InitWithNativePath(aPersistentDescriptor); #endif } @@ -3695,7 +3705,7 @@ return rv; } return NS_ERROR_FAILURE; -@@ -2007,16 +2018,22 @@ nsLocalFile::Reveal() +@@ -2003,16 +2014,22 @@ nsLocalFile::Reveal() return NS_ERROR_FAILURE; #endif }