diff -r 15d0aa5d4b63 -r 3fabd9f66322 firefox-kde.patch
--- a/firefox-kde.patch Fri Dec 23 18:44:50 2011 +0100
+++ b/firefox-kde.patch Sun Dec 25 10:36:35 2011 +0100
@@ -2,7 +2,7 @@
new file mode 100644
--- /dev/null
+++ b/browser/base/content/browser-kde.xul
-@@ -0,0 +1,1054 @@
+@@ -0,0 +1,1111 @@
+#filter substitution
+
+# -*- Mode: HTML -*-
@@ -477,6 +477,7 @@
+
+
+
++
++
++
+
+
+
+
+
++
++
+
+
+
++
++
++
++
++
++
++
++
+
+
-+
-+
-+
-+
-+
++
++
++
++#ifdef XP_MACOSX
++
++#endif
++
++
++
++
++
++
++#ifndef XP_MACOSX
++
++#endif
++
++
++
+
+
+
+
++
++
++
++
+
+#endif
+#ifdef XP_MACOSX
@@ -1015,6 +1068,10 @@
+
+
+
++
++
++
++
+
+
+
@@ -1142,7 +1199,7 @@
diff --git a/browser/components/preferences/advanced.js b/browser/components/preferences/advanced.js
--- a/browser/components/preferences/advanced.js
+++ b/browser/components/preferences/advanced.js
-@@ -683,24 +683,42 @@ var gAdvancedPane = {
+@@ -690,24 +690,42 @@ var gAdvancedPane = {
var brandBundle = document.getElementById("bundleBrand");
var shellBundle = document.getElementById("bundleShell");
var brandShortName = brandBundle.getString("brandShortName");
@@ -1271,33 +1328,33 @@
+NS_IMPL_ISUPPORTS1(nsKDEShellService, nsIShellService)
+
+NS_IMETHODIMP
-+nsKDEShellService::IsDefaultBrowser(PRBool aStartupCheck,
-+ PRBool* aIsDefaultBrowser)
++nsKDEShellService::IsDefaultBrowser(bool aStartupCheck,
++ bool* aIsDefaultBrowser)
+ {
+ *aIsDefaultBrowser = PR_FALSE;
+ if (aStartupCheck)
+ mCheckedThisSession = PR_TRUE;
-+ nsCStringArray command;
-+ command.AppendCString( NS_LITERAL_CSTRING( "ISDEFAULTBROWSER" ));
++ nsTArray command;
++ command.AppendElement( NS_LITERAL_CSTRING( "ISDEFAULTBROWSER" ));
+ if( nsKDEUtils::command( command ))
+ *aIsDefaultBrowser = PR_TRUE;
+ return NS_OK;
+ }
+
+NS_IMETHODIMP
-+nsKDEShellService::SetDefaultBrowser(PRBool aClaimAllTypes,
-+ PRBool aForAllUsers)
++nsKDEShellService::SetDefaultBrowser(bool aClaimAllTypes,
++ bool aForAllUsers)
+ {
-+ nsCStringArray command;
-+ command.AppendCString( NS_LITERAL_CSTRING( "SETDEFAULTBROWSER" ));
-+ command.AppendCString( aClaimAllTypes ? NS_LITERAL_CSTRING( "ALLTYPES" ) : NS_LITERAL_CSTRING( "NORMAL" ));
++ nsTArray command;
++ command.AppendElement( NS_LITERAL_CSTRING( "SETDEFAULTBROWSER" ));
++ command.AppendElement( aClaimAllTypes ? NS_LITERAL_CSTRING( "ALLTYPES" ) : NS_LITERAL_CSTRING( "NORMAL" ));
+ return nsKDEUtils::command( command ) ? NS_OK : NS_ERROR_FAILURE;
+ }
+
+NS_IMETHODIMP
-+nsKDEShellService::GetShouldCheckDefaultBrowser(PRBool* aResult)
++nsKDEShellService::GetShouldCheckDefaultBrowser(bool* aResult)
+{
-+ // If we've already checked, the browser has been started and this is a
++ // If we've already checked, the browser has been started and this is a
+ // new window open, and we don't want to check again.
+ if (mCheckedThisSession) {
+ *aResult = PR_FALSE;
@@ -1316,7 +1373,7 @@
+}
+
+NS_IMETHODIMP
-+nsKDEShellService::SetShouldCheckDefaultBrowser(PRBool aShouldCheck)
++nsKDEShellService::SetShouldCheckDefaultBrowser(bool aShouldCheck)
+{
+ nsCOMPtr prefs;
+ nsCOMPtr pserve(do_GetService(NS_PREFSERVICE_CONTRACTID));
@@ -1351,11 +1408,11 @@
+NS_IMETHODIMP
+nsKDEShellService::OpenApplication(PRInt32 aApplication)
+ {
-+ nsCStringArray command;
++ nsTArray command;
+ if( aApplication == APPLICATION_MAIL )
-+ command.AppendCString( NS_LITERAL_CSTRING( "OPENMAIL" ));
++ command.AppendElement( NS_LITERAL_CSTRING( "OPENMAIL" ));
+ else if( aApplication == APPLICATION_NEWS )
-+ command.AppendCString( NS_LITERAL_CSTRING( "OPENNEWS" ));
++ command.AppendElement( NS_LITERAL_CSTRING( "OPENNEWS" ));
+ else
+ return NS_ERROR_NOT_IMPLEMENTED;
+ return nsKDEUtils::command( command ) ? NS_OK : NS_ERROR_FAILURE;
@@ -1364,13 +1421,13 @@
+NS_IMETHODIMP
+nsKDEShellService::OpenApplicationWithURI(nsILocalFile* aApplication, const nsACString& aURI)
+ {
-+ nsCStringArray command;
-+ command.AppendCString( NS_LITERAL_CSTRING( "RUN" ));
++ nsTArray command;
++ command.AppendElement( NS_LITERAL_CSTRING( "RUN" ));
+ nsCString app;
+ nsresult rv = aApplication->GetNativePath( app );
+ NS_ENSURE_SUCCESS( rv, rv );
-+ command.AppendCString( app );
-+ command.AppendCString( aURI );
++ command.AppendElement( app );
++ command.AppendElement( aURI );
+ return nsKDEUtils::command( command ) ? NS_OK : NS_ERROR_FAILURE;
+ }
+
@@ -1379,14 +1436,14 @@
+ {
+ *_retval = nsnull;
+
-+ nsCStringArray command;
-+ command.AppendCString( NS_LITERAL_CSTRING( "GETDEFAULTFEEDREADER" ));
-+ nsCStringArray output;
-+ if( !nsKDEUtils::command( command, &output ) || output.Count() != 1 )
++ nsTArray command;
++ command.AppendElement( NS_LITERAL_CSTRING( "GETDEFAULTFEEDREADER" ));
++ nsTArray output;
++ if( !nsKDEUtils::command( command, &output ) || output.Length() != 1 )
+ return NS_ERROR_FAILURE;
+
+ nsCString path;
-+ path = *output[ 0 ];
++ path = output[ 0 ];
+ if (path.IsEmpty())
+ return NS_ERROR_FAILURE;
+
@@ -1398,7 +1455,7 @@
+ rv = defaultReader->InitWithNativePath(path);
+ NS_ENSURE_SUCCESS(rv, rv);
+
-+ PRBool exists;
++ bool exists;
+ rv = defaultReader->Exists(&exists);
+ NS_ENSURE_SUCCESS(rv, rv);
+ if (!exists)
@@ -1581,7 +1638,7 @@
diff --git a/browser/installer/package-manifest.in b/browser/installer/package-manifest.in
--- a/browser/installer/package-manifest.in
+++ b/browser/installer/package-manifest.in
-@@ -424,16 +424,17 @@
+@@ -426,16 +426,17 @@
#endif
#endif