Hello community,
here is the log from the commit of package mozilla-xulrunner190
checked in at Wed Aug 6 01:52:37 CEST 2008.
--------
--- mozilla-xulrunner190/mozilla-xulrunner190.changes 2008-06-18 02:48:18.000000000 +0200
+++ /mounts/work_src_done/STABLE/mozilla-xulrunner190/mozilla-xulrunner190.changes 2008-07-30 19:51:46.940669000 +0200
@@ -1,0 +2,14 @@
+Tue Jul 29 20:27:24 CEST 2008 - mauro@suse.de
+
+- Merge changes from the Build Service (thanks, Wolfgang)
+- Update to stability/security release 1.9.0.1 (bnc#407573)
+ * added si and sl locales
+ * for security issues please refer to Firefox 3.0.1
+- Fixed a crash [@ cairo_draw_with_xlib] (bmo#435764)
+ + Added bmo435764.patch
+- Fixed vertical stripes in windowless plugins (bmo#430450)
+ + Added bmo430450.patch
+- Remove about:about (bnc#402699, bmo#349451)
+ + Added mozilla-aboutAbout.patch
+
+-------------------------------------------------------------------
Old:
----
l10n-1.9.0.tar.bz2
mozilla-network-status.patch
xulrunner-source-1.9.0.tar.bz2
New:
----
bmo430450.patch
bmo435764.patch
l10n-1.9.0.1.tar.bz2
mozilla-aboutAbout.patch
xulrunner-source-1.9.0.1.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ mozilla-xulrunner190.spec ++++++
--- /var/tmp/diff_new_pack.N23707/_old 2008-08-06 01:52:05.000000000 +0200
+++ /var/tmp/diff_new_pack.N23707/_new 2008-08-06 01:52:05.000000000 +0200
@@ -1,10 +1,17 @@
#
-# spec file for package mozilla-xulrunner190 (Version 1.9.0)
+# spec file for package mozilla-xulrunner190 (Version 1.9.0.1)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
#
+# All modifications and additions to the file contributed by third parties
+# remain the property of their copyright owners, unless otherwise agreed
+# upon. The license for this file, and modifications and additions to the
+# file, is the same license as for the pristine package itself (unless the
+# license for the pristine package is not an Open Source License, in which
+# case the license is the MIT License). An "Open Source License" is a
+# license that conforms to the Open Source Definition (Version 1.9)
+# published by the Open Source Initiative.
+
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
@@ -20,7 +27,7 @@
BuildRequires: hunspell-devel
%endif
License: GPL v2 or later; LGPL v2.1 or later; MOZILLA PUBLIC LICENSE (MPL/NPL)
-Version: 1.9.0
+Version: 1.9.0.1
Release: 1
Summary: Mozilla Runtime Environment 1.9
Url: http://www.mozilla.org
@@ -38,10 +45,13 @@
Patch5: mozilla-path_len.patch
Patch6: mozilla-sqlite-req.patch
Patch7: mozilla-nongnome-proxies.patch
-Patch8: mozilla-network-status.patch
+#Patch8: mozilla-network-status.patch
Patch9: mozilla-system-hunspell.patch
Patch10: mozilla-restart-cmd.patch
Patch11: mozilla-cairo-no-sse.patch
+Patch12: bmo435764.patch
+Patch13: bmo430450.patch
+Patch14: mozilla-aboutAbout.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: libstdc++ expat pango xorg-x11-libs fontconfig freetype2
PreReq: gtk2 atk glib2 update-alternatives coreutils
@@ -56,9 +66,9 @@
%define has_system_nss 1
%endif
%define releasedate 2008061600
-%define version_internal 1.9.0
-%define apiversion 1.9
-%define uaweight 190000
+%define version_internal 1.9.0.1
+%define apiversion %{version}
+%define uaweight 190100
### configuration end ###
%define _use_internal_dependency_generator 0
%define __find_requires sh %{SOURCE2}
@@ -108,7 +118,7 @@
Summary: Translations for XULRunner 1.9
Group: System/Localization
PreReq: %{name} = %{version}
-Provides: locale(%{name}:af;ar;be;ca;cs;da;de;el;en_GB;es_AR;es_ES;eu;fi;fr;fy_NL;ga_IE;gu_IN;he;hu;id;it;ja;ka;ko;ku;lt;mk;mn;nb_NO;nl;nn_NO;pa_IN;pl;pt_BR;pt_PT;ro;ru;sk;sq;sr;sv_SE;tr;uk;zh_CN;zh_TW)
+Provides: locale(%{name}:af;ar;be;ca;cs;da;de;el;en_GB;es_AR;es_ES;eu;fi;fr;fy_NL;ga_IE;gu_IN;he;hu;id;it;ja;ka;ko;ku;lt;mk;mn;nb_NO;nl;nn_NO;pa_IN;pl;pt_BR;pt_PT;ro;ru;si;sk;sl;sq;sr;sv_SE;tr;uk;zh_CN;zh_TW)
# Remove -lang, which had been shipped in the build service and 11.0 prereleases
Provides: %{name}-lang = %{version}
Obsoletes: %{name}-lang < %{version}
@@ -154,12 +164,15 @@
%patch5 -p1
%patch6
%patch7
-%patch8
+#%patch8
pushd extensions
%patch9
popd
%patch10
%patch11
+%patch12
+%patch13
+%patch14
%build
MOZ_APP_DIR=%{_libdir}/%{name}-%{version_internal}
@@ -411,6 +424,17 @@
%endif
%changelog
+* Tue Jul 29 2008 mauro@suse.de
+- Merge changes from the Build Service (thanks, Wolfgang)
+- Update to stability/security release 1.9.0.1 (bnc#407573)
+ * added si and sl locales
+ * for security issues please refer to Firefox 3.0.1
+- Fixed a crash [@ cairo_draw_with_xlib] (bmo#435764)
+ + Added bmo435764.patch
+- Fixed vertical stripes in windowless plugins (bmo#430450)
+ + Added bmo430450.patch
+- Remove about:about (bnc#402699, bmo#349451)
+ + Added mozilla-aboutAbout.patch
* Tue Jun 17 2008 maw@suse.de
- Merge changes from the Build Service (thanks, Wolfgang)
(bnc#400001 and SWAMP#18164).
++++++ bmo430450.patch ++++++
--- layout/base/nsPresContext.h 2008-05-12 06:07:14.000000000 -0600
+++ layout/base/nsPresContext.h 2008-07-08 15:30:30.000000000 -0600
@@ -62,8 +62,8 @@
#include "nsInterfaceHashtable.h"
#include "nsCycleCollectionParticipant.h"
#include "nsChangeHint.h"
-// XXX we need only gfxTypes.h, but we cannot include it directly.
-#include "gfxPoint.h"
+// This also pulls in gfxTypes.h, which we cannot include directly.
+#include "gfxRect.h"
class nsImageLoader;
#ifdef IBMBIDI
class nsBidiPresUtils;
@@ -520,6 +520,12 @@
gfxFloat AppUnitsToGfxUnits(nscoord aAppUnits) const
{ return mDeviceContext->AppUnitsToGfxUnits(aAppUnits); }
+ gfxRect AppUnitsToGfxUnits(const nsRect& aAppRect) const
+ { return gfxRect(AppUnitsToGfxUnits(aAppRect.x),
+ AppUnitsToGfxUnits(aAppRect.y),
+ AppUnitsToGfxUnits(aAppRect.width),
+ AppUnitsToGfxUnits(aAppRect.height)); }
+
nscoord TwipsToAppUnits(PRInt32 aTwips) const
{ return NSToCoordRound(NS_TWIPS_TO_INCHES(aTwips) *
mDeviceContext->AppUnitsPerInch()); }
--- layout/generic/nsObjectFrame.cpp 2008-05-12 06:07:19.000000000 -0600
+++ layout/generic/nsObjectFrame.cpp 2008-07-08 15:31:24.000000000 -0600
@@ -362,8 +362,9 @@
#elif defined(XP_MACOSX)
void Paint(const nsRect& aDirtyRect);
#elif defined(MOZ_X11)
- void Paint(nsIRenderingContext& aRenderingContext,
- const nsRect& aDirtyRect);
+ void Paint(gfxContext* aContext,
+ const gfxRect& aFrameRect,
+ const gfxRect& aDirtyRect);
#elif defined(XP_OS2)
void Paint(const nsRect& aDirtyRect, HPS aHPS);
#endif
@@ -480,8 +481,9 @@
class Renderer : public gfxXlibNativeRenderer {
public:
Renderer(nsPluginWindow* aWindow, nsIPluginInstance* aInstance,
- const nsIntRect& aDirtyRect)
- : mWindow(aWindow), mInstance(aInstance), mDirtyRect(aDirtyRect)
+ const nsIntSize& aPluginSize, const nsIntRect& aDirtyRect)
+ : mWindow(aWindow), mInstance(aInstance),
+ mPluginSize(aPluginSize), mDirtyRect(aDirtyRect)
{}
virtual nsresult NativeDraw(Display* dpy, Drawable drawable, Visual* visual,
short offsetX, short offsetY,
@@ -489,13 +491,14 @@
private:
nsPluginWindow* mWindow;
nsIPluginInstance* mInstance;
+ const nsIntSize& mPluginSize;
const nsIntRect& mDirtyRect;
};
#endif
};
-#if defined(XP_WIN) || (defined(DO_DIRTY_INTERSECT) && defined(XP_MACOSX)) || defined(MOZ_X11) || defined(XP_OS2)
+#if defined(XP_WIN) || (defined(DO_DIRTY_INTERSECT) && defined(XP_MACOSX)) || defined(XP_OS2)
static void ConvertAppUnitsToPixels(const nsPresContext& aPresContext, const nsRect& aTwipsRect, nsIntRect& aPixelRect);
#endif
@@ -1080,23 +1083,20 @@
return rv;
}
-static void PaintPrintPlugin(nsIFrame* aFrame, nsIRenderingContext* aCtx,
- const nsRect& aDirtyRect, nsPoint aPt)
+/* static */ void
+nsObjectFrame::PaintPrintPlugin(nsIFrame* aFrame, nsIRenderingContext* aCtx,
+ const nsRect& aDirtyRect, nsPoint aPt)
{
+ // FIXME - Bug 385435: Doesn't aDirtyRect need translating too?
nsIRenderingContext::AutoPushTranslation translate(aCtx, aPt.x, aPt.y);
static_cast(aFrame)->PrintPlugin(*aCtx, aDirtyRect);
}
-static void PaintPlugin(nsIFrame* aFrame, nsIRenderingContext* aCtx,
- const nsRect& aDirtyRect, nsPoint aPt)
+/*static */ void
+nsObjectFrame::PaintPlugin(nsIFrame* aFrame, nsIRenderingContext* aCtx,
+ const nsRect& aDirtyRect, nsPoint aPt)
{
- nsIRenderingContext::AutoPushTranslation translate(aCtx, aPt.x, aPt.y);
-#ifdef MOZ_X11 // FIXME - Bug 385435: Don't others want this too!
- nsRect relativeDirtyRect = aDirtyRect - aPt;
- static_cast(aFrame)->PaintPlugin(*aCtx, relativeDirtyRect);
-#else
- static_cast(aFrame)->PaintPlugin(*aCtx, aDirtyRect);
-#endif
+ static_cast(aFrame)->PaintPlugin(*aCtx, aDirtyRect, aPt);
}
NS_IMETHODIMP
@@ -1125,7 +1125,7 @@
nsDisplayGeneric(this, PaintPrintPlugin, "PrintPlugin"));
return aLists.Content()->AppendNewToTop(new (aBuilder)
- nsDisplayGeneric(this, ::PaintPlugin, "Plugin"));
+ nsDisplayGeneric(this, PaintPlugin, "Plugin"));
}
void
@@ -1341,12 +1341,16 @@
void
nsObjectFrame::PaintPlugin(nsIRenderingContext& aRenderingContext,
- const nsRect& aDirtyRect)
+ const nsRect& aDirtyRect, const nsPoint& aFramePt)
{
// Screen painting code
#if defined(XP_MACOSX)
// delegate all painting to the plugin instance.
if (mInstanceOwner) {
+ // FIXME - Bug 385435: Doesn't aDirtyRect need translating too?
+ nsIRenderingContext::AutoPushTranslation
+ translate(&aRenderingContext, aFramePt.x, aFramePt.y);
+
if (mInstanceOwner->GetDrawingModel() == NPDrawingModelCoreGraphics) {
PRInt32 p2a = PresContext()->AppUnitsPerDevPixel();
gfxRect nativeClipRect(aDirtyRect.x, aDirtyRect.y,
@@ -1396,8 +1400,15 @@
nsPluginWindow * window;
mInstanceOwner->GetWindow(window);
- if (window->type == nsPluginWindowType_Drawable)
- mInstanceOwner->Paint(aRenderingContext, aDirtyRect);
+ if (window->type == nsPluginWindowType_Drawable) {
+ gfxRect frameGfxRect =
+ PresContext()->AppUnitsToGfxUnits(nsRect(aFramePt, GetSize()));
+ gfxRect dirtyGfxRect =
+ PresContext()->AppUnitsToGfxUnits(aDirtyRect);
+ gfxContext* ctx = aRenderingContext.ThebesContext();
+
+ mInstanceOwner->Paint(ctx, frameGfxRect, dirtyGfxRect);
+ }
}
#elif defined (XP_WIN) || defined(XP_OS2)
nsCOMPtr<nsIPluginInstance> inst;
@@ -1408,6 +1419,10 @@
mInstanceOwner->GetWindow(window);
if (window->type == nsPluginWindowType_Drawable) {
+ // FIXME - Bug 385435: Doesn't aDirtyRect need translating too?
+ nsIRenderingContext::AutoPushTranslation
+ translate(&aRenderingContext, aFramePt.x, aFramePt.y);
+
// check if we need to call SetWindow with updated parameters
PRBool doupdatewindow = PR_FALSE;
// the offset of the DC
@@ -1748,6 +1763,7 @@
NS_IMPL_ISUPPORTS_INHERITED1(nsStopPluginRunnable, nsRunnable, nsITimerCallback)
+#ifdef XP_WIN
static const char*
GetMIMEType(nsIPluginInstance *aPluginInstance)
{
@@ -1760,6 +1776,7 @@
}
return "";
}
+#endif
static PRBool
MatchPluginName(nsPluginInstanceOwner *aInstanceOwner, const char *aPluginName)
@@ -4031,25 +4048,52 @@
#endif
#ifdef MOZ_X11
-void nsPluginInstanceOwner::Paint(nsIRenderingContext& aRenderingContext,
- const nsRect& aDirtyRect)
+void nsPluginInstanceOwner::Paint(gfxContext* aContext,
+ const gfxRect& aFrameRect,
+ const gfxRect& aDirtyRect)
{
if (!mInstance || !mOwner)
return;
-
- nsPluginWindow* window;
- GetWindow(window);
- nsIntRect dirtyRectInPixels;
- ConvertAppUnitsToPixels(*mOwner->PresContext(), aDirtyRect,
- dirtyRectInPixels);
- // Sanitize the dirty rect so we don't tell plugins that the area outside
- // the plugin rectangle needs updating.
- nsIntRect pluginDirtyRect;
- if (!pluginDirtyRect.IntersectRect(nsIntRect(0, 0, window->width, window->height), dirtyRectInPixels))
+ // Align to device pixels where sensible
+ // to provide crisper and faster drawing.
+ gfxRect pluginRect = aFrameRect;
+ if (aContext->UserToDevicePixelSnapped(pluginRect)) {
+ pluginRect = aContext->DeviceToUser(pluginRect);
+ }
+
+ // Round out the dirty rect to plugin pixels to ensure the plugin draws
+ // enough pixels for interpolation to device pixels.
+ gfxRect dirtyRect = aDirtyRect + -pluginRect.pos;
+ dirtyRect.RoundOut();
+
+ // Plugins can only draw an integer number of pixels.
+ //
+ // With translation-only transformation matrices, pluginRect is already
+ // pixel-aligned.
+ //
+ // With more complex transformations, modifying the scales in the
+ // transformation matrix could retain subpixel accuracy and let the plugin
+ // draw a suitable number of pixels for interpolation to device pixels in
+ // Renderer::Draw, but such cases are not common enough to warrant the
+ // effort now.
+ nsIntSize pluginSize(NS_lround(pluginRect.size.width),
+ NS_lround(pluginRect.size.height));
+
+ // Determine what the plugin needs to draw.
+ nsIntRect pluginDirtyRect(PRInt32(dirtyRect.pos.x),
+ PRInt32(dirtyRect.pos.y),
+ PRInt32(dirtyRect.size.width),
+ PRInt32(dirtyRect.size.height));
+ if (!pluginDirtyRect.
+ IntersectRect(nsIntRect(0, 0, pluginSize.width, pluginSize.height),
+ pluginDirtyRect))
return;
- Renderer renderer(window, mInstance, pluginDirtyRect);
+ nsPluginWindow* window;
+ GetWindow(window);
+
+ Renderer renderer(window, mInstance, pluginSize, pluginDirtyRect);
PRUint32 rendererFlags =
Renderer::DRAW_SUPPORTS_OFFSET |
Renderer::DRAW_SUPPORTS_CLIP_RECT |
@@ -4062,9 +4106,9 @@
if (!transparent)
rendererFlags |= Renderer::DRAW_IS_OPAQUE;
- gfxContext* ctx =
- static_cast
- (aRenderingContext.GetNativeGraphicData(nsIRenderingContext::NATIVE_THEBES_CONTEXT));
+ // Renderer::Draw() draws a rectangle with top-left at the aContext origin.
+ gfxContextAutoSaveRestore autoSR(aContext);
+ aContext->Translate(pluginRect.pos);
// The display used by gfxXlibNativeRenderer will be the one for the cairo
// surface (provided that it is an Xlib surface) but the display argument
@@ -4072,7 +4116,7 @@
// _create_temp_xlib_surface -> DefaultScreen(dpy).
NPSetWindowCallbackStruct* ws_info =
static_cast(window->ws_info);
- renderer.Draw(ws_info->display, ctx, window->width, window->height,
+ renderer.Draw(ws_info->display, aContext, pluginSize.width, pluginSize.height,
rendererFlags, nsnull);
}
@@ -4092,6 +4136,13 @@
doupdatewindow = PR_TRUE;
}
+ if (nsIntSize(mWindow->width, mWindow->height) != mPluginSize) {
+ mWindow->width = mPluginSize.width;
+ mWindow->height = mPluginSize.height;
+ doupdatewindow = PR_TRUE;
+ }
+
+ // The clip rect is relative to plugin top-left.
NS_ASSERTION(numClipRects <= 1, "We don't support multiple clip rectangles!");
nsPluginRect newClipRect;
if (numClipRects) {
@@ -4399,7 +4450,7 @@
mPluginHost = aHost;
}
-#if defined(XP_WIN) || (defined(DO_DIRTY_INTERSECT) && defined(XP_MACOSX)) || defined(MOZ_X11) || defined(XP_OS2)
+#if defined(XP_WIN) || (defined(DO_DIRTY_INTERSECT) && defined(XP_MACOSX)) || defined(XP_OS2)
// convert frame coordinates from twips to pixels
static void ConvertAppUnitsToPixels(const nsPresContext& aPresContext, const nsRect& aTwipsRect, nsIntRect& aPixelRect)
{
--- layout/generic/nsObjectFrame.h 2008-05-12 06:07:19.000000000 -0600
+++ layout/generic/nsObjectFrame.h 2008-07-08 15:30:45.000000000 -0600
@@ -81,11 +81,6 @@
const nsRect& aDirtyRect,
const nsDisplayListSet& aLists);
- void PrintPlugin(nsIRenderingContext& aRenderingContext,
- const nsRect& aDirtyRect);
- void PaintPlugin(nsIRenderingContext& aRenderingContext,
- const nsRect& aDirtyRect);
-
NS_IMETHOD HandleEvent(nsPresContext* aPresContext,
nsGUIEvent* aEvent,
nsEventStatus* aEventStatus);
@@ -182,6 +177,17 @@
nsPoint GetWindowOriginInPixels(PRBool aWindowless);
+ static void PaintPrintPlugin(nsIFrame* aFrame,
+ nsIRenderingContext* aRenderingContext,
+ const nsRect& aDirtyRect, nsPoint aPt);
+ static void PaintPlugin(nsIFrame* aFrame,
+ nsIRenderingContext* aRenderingContext,
+ const nsRect& aDirtyRect, nsPoint aPt);
+ void PrintPlugin(nsIRenderingContext& aRenderingContext,
+ const nsRect& aDirtyRect);
+ void PaintPlugin(nsIRenderingContext& aRenderingContext,
+ const nsRect& aDirtyRect, const nsPoint& aFramePt);
+
/**
* Makes sure that mInstanceOwner is valid and without a current plugin
* instance. Essentially, this prepares the frame to receive a new plugin.
++++++ bmo435764.patch ++++++
++++ 659 lines (skipped)
++++++ l10n-1.9.0.tar.bz2 -> l10n-1.9.0.1.tar.bz2 ++++++
mozilla-xulrunner190/l10n-1.9.0.tar.bz2 /mounts/work_src_done/STABLE/mozilla-xulrunner190/l10n-1.9.0.1.tar.bz2 differ: byte 11, line 1
++++++ mozilla-aboutAbout.patch ++++++
From: Mike Hommey
Subject: about:about throws 404
References:
https://bugzilla.mozilla.org/show_bug.cgi?id=349451
https://bugzilla.novell.com/show_bug.cgi?id=402699
--- docshell/base/nsAboutRedirector.cpp
+++ docshell/base/nsAboutRedirector.cpp
@@ -85,7 +85,9 @@ static RedirEntry kRedirMap[] = {
nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT },
{ "licence", "chrome://global/content/license.html",
nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT },
+#ifndef MOZ_XUL_APP
{ "about", "chrome://global/content/aboutAbout.html", 0 },
+#endif
{ "neterror", "chrome://global/content/netError.xhtml",
nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
nsIAboutModule::ALLOW_SCRIPT }
--- docshell/build/nsDocShellModule.cpp
+++ docshell/build/nsDocShellModule.cpp
@@ -205,11 +205,13 @@ static const nsModuleComponentInfo gDocShellModuleInfo[] = {
NS_ABOUT_MODULE_CONTRACTID_PREFIX "licence",
nsAboutRedirector::Create
},
+#ifndef MOZ_XUL_APP
{ "about:about",
NS_ABOUT_REDIRECTOR_MODULE_CID,
NS_ABOUT_MODULE_CONTRACTID_PREFIX "about",
nsAboutRedirector::Create
},
+#endif
{ "about:neterror",
NS_ABOUT_REDIRECTOR_MODULE_CID,
NS_ABOUT_MODULE_CONTRACTID_PREFIX "neterror",
++++++ mozilla-sqlite-req.patch ++++++
--- /var/tmp/diff_new_pack.N23707/_old 2008-08-06 01:52:05.000000000 +0200
+++ /var/tmp/diff_new_pack.N23707/_new 2008-08-06 01:52:05.000000000 +0200
@@ -9,7 +9,7 @@
STARTUP_NOTIFICATION_VERSION=0.8
DBUS_VERSION=0.60
LCMS_VERSION=1.17
--SQLITE_VERSION=3.5.4
+-SQLITE_VERSION=3.5.9
+SQLITE_VERSION=3.5
MSMANIFEST_TOOL=
++++++ xulrunner-source-1.9.0.tar.bz2 -> xulrunner-source-1.9.0.1.tar.bz2 ++++++
mozilla-xulrunner190/xulrunner-source-1.9.0.tar.bz2 /mounts/work_src_done/STABLE/mozilla-xulrunner190/xulrunner-source-1.9.0.1.tar.bz2 differ: byte 11, line 1
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org