Hello community, here is the log from the commit of package MozillaFirefox checked in at Mon Apr 24 15:48:58 CEST 2006. -------- --- MozillaFirefox/MozillaFirefox.changes 2006-04-11 11:12:33.000000000 +0200 +++ STABLE/MozillaFirefox/MozillaFirefox.changes 2006-04-24 08:07:39.000000000 +0200 @@ -1,0 +2,11 @@ +Mon Apr 24 08:04:16 CEST 2006 - stark@suse.de + +- improved postscript output (bmo #334485) +- changed defaults for printer properties (#6534) +- overwrite gnome-vfs' file protocol by providing "desktop-launch" + (#131501) +- get available paper sizes from CUPS (#65482) +- replaced/removed complicated gconfd reload in %post (#167989) +- fixed memory leak in clipboard caching (bmo #289897) + +------------------------------------------------------------------- New: ---- backports-20060424.patch postscript.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ MozillaFirefox.spec ++++++ --- /var/tmp/diff_new_pack.UKB4Rf/_old 2006-04-24 15:46:49.000000000 +0200 +++ /var/tmp/diff_new_pack.UKB4Rf/_new 2006-04-24 15:46:49.000000000 +0200 @@ -21,7 +21,7 @@ Obsoletes: mozilla %endif Version: 1.5.0.1 -Release: 21 +Release: 25 Summary: Mozilla Firefox Web Browser URL: http://www.mozilla.org/ Group: Productivity/Networking/Web/Browsers @@ -79,8 +79,10 @@ Patch30: imgRequest.patch # bmo #331522 Patch31: keyword.patch +Patch32: postscript.patch # integration Patch34: skin-selection.patch +Patch35: backports-20060424.patch # Patch100: configure.patch Patch101: configure-nss.patch @@ -178,7 +180,7 @@ %patch21 -p1 %endif %patch22 -#%patch24 -p1 +%patch24 %patch25 %patch26 %patch27 @@ -189,7 +191,9 @@ %if %nld9 %patch16 %endif +%patch32 #%patch34 +%patch35 %patch100 %if %has_system_nss %patch101 @@ -385,16 +389,10 @@ if [ ! -f /.buildenv ]; then export GCONF_CONFIG_SOURCE=`/opt/gnome/bin/gconftool-2 --get-default-source` /opt/gnome/bin/gconftool-2 --makefile-install-rule /etc/opt/gnome/gconf/schemas/firefox.schemas > /dev/null 2>&1 +%if %suse_version <= 1000 # restart gconfd - _pids=`pidof gconfd-2` ; RET=$? || true - if [ "$RET" = "0" ]; then - for _pid in $_pids; do - _user=`ps ho user $_pid` - su $_user -c "/opt/gnome/bin/gconftool-2 --shutdown" 2>&1 /dev/null || break - su $_user -c "/opt/gnome/bin/gconftool-2 --spawn" - sleep 2 - done - fi + killall -HUP gconfd-2 +%endif fi %if %suse_version <= 1000 %{progdir}/add-plugins.sh > /dev/null 2>&1 @@ -482,6 +480,14 @@ %defattr(-,root,root) %changelog -n MozillaFirefox +* Mon Apr 24 2006 - stark@suse.de +- improved postscript output (bmo #334485) +- changed defaults for printer properties (#6534) +- overwrite gnome-vfs' file protocol by providing "desktop-launch" + (#131501) +- get available paper sizes from CUPS (#65482) +- replaced/removed complicated gconfd reload in %%post (#167989) +- fixed memory leak in clipboard caching (bmo #289897) * Tue Apr 11 2006 - stark@suse.de - added (optional) plastikfox theme (#151163) - get some more security related patches (#148876) ++++++ backports-20060424.patch ++++++ References: https://bugzilla.mozilla.org/show_bug.cgi?id=289897 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; } ++++++ cups-paper.patch ++++++ ++++ 1389 lines (skipped) ++++ between MozillaFirefox/cups-paper.patch ++++ and STABLE/MozillaFirefox/cups-paper.patch ++++++ firefox-suse-default-prefs.js ++++++ --- MozillaFirefox/firefox-suse-default-prefs.js 2006-04-11 11:12:40.000000000 +0200 +++ STABLE/MozillaFirefox/firefox-suse-default-prefs.js 2006-04-24 07:59:07.000000000 +0200 @@ -3,6 +3,7 @@ pref("general.useragent.vendor", "SUSE"); pref("general.useragent.vendorSub", "RPM_VERSION"); pref("network.protocol-handler.app.rtsp", "/usr/bin/realplay"); +pref("network.protocol-handler.app.file", "desktop-launch"); pref("browser.link.open_external", 2); pref("browser.startup.homepage_override.mstone", "ignore"); pref("font.default", "sans-serif"); @@ -10,5 +11,8 @@ pref("font.name.monospace.x-western", "monospace"); pref("font.name.monospace.x-unicode", "monospace"); pref("network.negotiate-auth.gsslib", "GSSAPI"); -//pref("network.proxy.type", 4); pref("network.proxy.type", 5); +pref("print.print_edge_top", 14); // 1/100 of an inch +pref("print.print_edge_left", 16); // 1/100 of an inch +pref("print.print_edge_right", 16); // 1/100 of an inch +pref("print.print_edge_bottom", 14); // 1/100 of an inch ++++++ postscript.patch ++++++ From: Wolfgang Rosenauer <stark@suse.de> Subject: make pagesize postscript DSC conform References: http://www.cups.org/str.php?L1542 https://bugzilla.mozilla.org/show_bug.cgi?id=334485 Index: gfx/src/ps/nsPostScriptObj.cpp =================================================================== RCS file: /cvsroot/mozilla/gfx/src/ps/nsPostScriptObj.cpp,v retrieving revision 1.124 diff -u -p -6 -r1.124 nsPostScriptObj.cpp --- gfx/src/ps/nsPostScriptObj.cpp 26 Jul 2005 15:54:18 -0000 1.124 +++ gfx/src/ps/nsPostScriptObj.cpp 19 Apr 2006 04:07:38 -0000 @@ -463,20 +463,23 @@ nsPostScriptObj::write_prolog(FILE *aHan // now begin prolog fprintf(f, "%%%%BeginProlog\n"); // Tell the printer what size paper it should use fprintf(f, + "%%%%BeginFeature: *PageSize %s\n" "/setpagedevice where\n" // Test for the feature "{ pop 2 dict\n" " dup /PageSize [ %s %s ] put\n" // Paper dimensions " dup /Policies 1 dict\n" " dup /PageSize 3 put\n" // Select the nearest page size to fit " put\n" " setpagedevice\n" // Install settings - "} if\n", + "} if\n" + "%%%%EndFeature: *PageSize\n", + mPrintSetup->paper_name, fpCString(NSTwipsToFloatPoints(paper_width)).get(), fpCString(NSTwipsToFloatPoints(paper_height)).get()); fprintf(f, "["); for (i = 0; i < 256; i++){ if (*isotab[i] == '\0'){ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun...