Hello community,
here is the log from the commit of package seamonkey
checked in at Tue Apr 25 17:31:50 CEST 2006.
--------
--- seamonkey/seamonkey.changes 2006-03-17 13:21:16.000000000 +0100
+++ STABLE/seamonkey/seamonkey.changes 2006-04-25 11:38:31.000000000 +0200
@@ -1,0 +2,9 @@
+Tue Apr 25 11:38:01 CEST 2006 - stark@suse.de
+
+- added patch for iframe crash (#169039, bmo #334515)
+- improved postscript output (bmo #334485)
+- changed defaults for printer properties (#6534)
+- get available paper sizes from CUPS (#65482)
+- fixed memory leak in clipboard caching (bmo #289897)
+
+-------------------------------------------------------------------
New:
----
backports-20060425.patch
cups-paper.patch
postscript.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ seamonkey.spec ++++++
--- /var/tmp/diff_new_pack.0NN4aF/_old 2006-04-25 17:31:33.000000000 +0200
+++ /var/tmp/diff_new_pack.0NN4aF/_new 2006-04-25 17:31:33.000000000 +0200
@@ -14,7 +14,7 @@
License: MPL, GPL
Provides: web_browser
Version: 1.0
-Release: 17
+Release: 23
Summary: The successor of the Mozilla Application Suite
URL: http://www.mozilla.org/projects/seamonkey
Group: Productivity/Networking/Web/Browsers
@@ -62,6 +62,9 @@
Patch24: multi-replyto.patch
Patch25: xul-picker.patch
Patch26: localize.patch
+Patch27: postscript.patch
+Patch28: cups-paper.patch
+Patch29: backports-20060425.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: libstdc++ fileutils textutils /bin/sh
%define _unpackaged_files_terminate_build 0
@@ -248,6 +251,9 @@
%patch24
%patch25
%patch26
+%patch27
+%patch28
+%patch29
# additional CA certificates
cd $RPM_BUILD_DIR/mozilla/security/nss/lib/ckfw/builtins
cat %{SOURCE8} >> certdata.txt
@@ -748,6 +754,12 @@
%dir %{progdir}/components/myspell
%changelog -n seamonkey
+* Tue Apr 25 2006 - stark@suse.de
+- added patch for iframe crash (#169039, bmo #334515)
+- improved postscript output (bmo #334485)
+- changed defaults for printer properties (#6534)
+- get available paper sizes from CUPS (#65482)
+- fixed memory leak in clipboard caching (bmo #289897)
* Thu Mar 16 2006 - stark@suse.de
- added seamonkey icon to filelist and use it for mail and composer
component as well for now (#158556)
++++++ backports-20060425.patch ++++++
References:
https://bugzilla.mozilla.org/show_bug.cgi?id=289897
https://bugzilla.mozilla.org/show_bug.cgi?id=334515
Index: widget/src/xpwidgets/nsTransferable.cpp
===================================================================
RCS file: /cvsroot/mozilla/widget/src/xpwidgets/nsTransferable.cpp,v
retrieving revision 1.63
diff -u -p -6 -r1.63 nsTransferable.cpp
--- widget/src/xpwidgets/nsTransferable.cpp 1 Jul 2005 04:40:31 -0000 1.63
+++ widget/src/xpwidgets/nsTransferable.cpp 24 Apr 2006 05:24:39 -0000
@@ -63,12 +63,13 @@ Notes to self:
#include "nsDirectoryService.h"
#include "nsCRT.h"
#include "nsNetUtil.h"
#include "nsIOutputStream.h"
#include "nsIInputStream.h"
#include "nsIFile.h"
+#include "nsAutoPtr.h"
NS_IMPL_ISUPPORTS1(nsTransferable, nsITransferable)
//
// DataStruct
@@ -183,13 +184,13 @@ DataStruct::GetFileSpec(const char * aFi
// if the param aFileName contains a name we should use that
// because the file probably already exists
// otherwise create a unique name
if (!aFileName) {
cacheFile->AppendNative(NS_LITERAL_CSTRING("clipboardcache"));
- cacheFile->CreateUnique(nsIFile::NORMAL_FILE_TYPE, 0755);
+ cacheFile->CreateUnique(nsIFile::NORMAL_FILE_TYPE, 0600);
} else {
cacheFile->AppendNative(nsDependentCString(aFileName));
}
return cacheFile;
}
@@ -251,13 +252,13 @@ DataStruct::ReadCache(nsISupports** aDat
if (LL_CMP(fileSize, >, max32))
return NS_ERROR_OUT_OF_MEMORY;
PRUint32 size;
LL_L2UI(size, fileSize);
// create new memory for the large clipboard data
- char * data = (char *)nsMemory::Alloc(size);
+ nsAutoArrayPtr<char> data(new char[size]);
if ( !data )
return NS_ERROR_OUT_OF_MEMORY;
// now read it all in
nsCOMPtr<nsIInputStream> inStr;
NS_NewLocalFileInputStream( getter_AddRefs(inStr),
@@ -270,15 +271,13 @@ DataStruct::ReadCache(nsISupports** aDat
// make sure we got all the data ok
if (NS_SUCCEEDED(rv) && *aDataLen == size) {
nsPrimitiveHelpers::CreatePrimitiveForData ( mFlavor.get(), data, fileSize, aData );
return *aData ? NS_OK : NS_ERROR_FAILURE;
}
- // delete the buffer because we got an error
- // and zero the return params
- nsMemory::Free(data);
+ // zero the return params
*aData = nsnull;
*aDataLen = 0;
}
return NS_ERROR_FAILURE;
}
Index: embedding/components/commandhandler/src/nsBaseCommandController.h
===================================================================
RCS file: /cvsroot/mozilla/embedding/components/commandhandler/src/nsBaseCommandController.h,v
retrieving revision 1.3
diff -u -8 -p -r1.3 nsBaseCommandController.h
--- embedding/components/commandhandler/src/nsBaseCommandController.h 18 Apr 2004 22:00:43 -0000 1.3
+++ embedding/components/commandhandler/src/nsBaseCommandController.h 25 Apr 2006 00:17:44 -0000
@@ -44,16 +44,18 @@
#define NS_BASECOMMANDCONTROLLER_CONTRACTID \
"@mozilla.org/embedcomp/base-command-controller;1"
#include "nsIController.h"
#include "nsIControllerContext.h"
#include "nsIControllerCommandTable.h"
#include "nsIInterfaceRequestor.h"
+#include "nsIWeakReference.h"
+#include "nsIWeakReferenceUtils.h"
// The base editor controller is used for both text widgets,
// and all other text and html editing
class nsBaseCommandController : public nsIController,
public nsIControllerContext,
public nsIInterfaceRequestor,
public nsICommandController
{
@@ -74,16 +76,16 @@ public:
//nsIControllerContext
NS_DECL_NSICONTROLLERCONTEXT
// nsIInterfaceRequestor
NS_DECL_NSIINTERFACEREQUESTOR
private:
- nsISupports *mCommandContext;
+ nsWeakPtr mCommandContext;
// Our reference to the command manager
nsCOMPtr<nsIControllerCommandTable> mCommandTable;
};
#endif /* nsBaseCommandController_h_ */
Index: embedding/components/commandhandler/src/nsBaseCommandController.cpp
===================================================================
RCS file: /cvsroot/mozilla/embedding/components/commandhandler/src/nsBaseCommandController.cpp,v
retrieving revision 1.4
diff -u -p -6 -r1.4 nsBaseCommandController.cpp
--- embedding/components/commandhandler/src/nsBaseCommandController.cpp 18 Apr 2004 22:00:43 -0000 1.4
+++ embedding/components/commandhandler/src/nsBaseCommandController.cpp 25 Apr 2006 09:51:09 -0000
@@ -52,13 +52,12 @@ NS_INTERFACE_MAP_BEGIN(nsBaseCommandCont
NS_INTERFACE_MAP_ENTRY(nsIControllerContext)
NS_INTERFACE_MAP_ENTRY(nsIInterfaceRequestor)
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIControllerContext)
NS_INTERFACE_MAP_END
nsBaseCommandController::nsBaseCommandController()
-: mCommandContext(nsnull)
{
}
nsBaseCommandController::~nsBaseCommandController()
{
}
@@ -76,13 +75,13 @@ nsBaseCommandController::Init(nsIControl
return rv;
}
NS_IMETHODIMP
nsBaseCommandController::SetCommandContext(nsISupports *aCommandContext)
{
- mCommandContext = aCommandContext; // no addref
+ mCommandContext = do_GetWeakReference(aCommandContext);
return NS_OK;
}
NS_IMETHODIMP
nsBaseCommandController::GetInterface(const nsIID & aIID, void * *result)
{
@@ -110,44 +109,49 @@ nsBaseCommandController::GetInterface(co
NS_IMETHODIMP
nsBaseCommandController::IsCommandEnabled(const char *aCommand,
PRBool *aResult)
{
NS_ENSURE_ARG_POINTER(aCommand);
NS_ENSURE_ARG_POINTER(aResult);
- return mCommandTable->IsCommandEnabled(aCommand, mCommandContext, aResult);
+ nsCOMPtr<nsISupports> context = do_QueryReferent(mCommandContext);
+ return mCommandTable->IsCommandEnabled(aCommand, context, aResult);
}
NS_IMETHODIMP
nsBaseCommandController::SupportsCommand(const char *aCommand, PRBool *aResult)
{
NS_ENSURE_ARG_POINTER(aCommand);
NS_ENSURE_ARG_POINTER(aResult);
- return mCommandTable->SupportsCommand(aCommand, mCommandContext, aResult);
+ nsCOMPtr<nsISupports> context = do_QueryReferent(mCommandContext);
+ return mCommandTable->SupportsCommand(aCommand, context, aResult);
}
NS_IMETHODIMP
nsBaseCommandController::DoCommand(const char *aCommand)
{
NS_ENSURE_ARG_POINTER(aCommand);
- return mCommandTable->DoCommand(aCommand, mCommandContext);
+ nsCOMPtr<nsISupports> context = do_QueryReferent(mCommandContext);
+ return mCommandTable->DoCommand(aCommand, context);
}
NS_IMETHODIMP
nsBaseCommandController::DoCommandWithParams(const char *aCommand,
nsICommandParams *aParams)
{
NS_ENSURE_ARG_POINTER(aCommand);
- return mCommandTable->DoCommandParams(aCommand, aParams, mCommandContext);
+ nsCOMPtr<nsISupports> context = do_QueryReferent(mCommandContext);
+ return mCommandTable->DoCommandParams(aCommand, aParams, context);
}
NS_IMETHODIMP
nsBaseCommandController::GetCommandStateWithParams(const char *aCommand,
nsICommandParams *aParams)
{
NS_ENSURE_ARG_POINTER(aCommand);
- return mCommandTable->GetCommandState(aCommand, aParams, mCommandContext);
+ nsCOMPtr<nsISupports> context = do_QueryReferent(mCommandContext);
+ return mCommandTable->GetCommandState(aCommand, aParams, context);
}
NS_IMETHODIMP
nsBaseCommandController::OnEvent(const char * aEventName)
{
NS_ENSURE_ARG_POINTER(aEventName);
++++++ cups-paper.patch ++++++
++++ 991 lines (skipped)
++++++ postscript.patch ++++++
From: Wolfgang Rosenauer