tag 466339 patch thanks
If during startup the position of the vertical pane's divider is set too
much to the right, the widget that contains the html views gets a 0 size.
In this case, the mozilla widget's initialization is somehow delayed,
and the function call to gtk_moz_embed_get_nsIWebBrowser returns null,
in turn causing a fail when dereferenced later.
This bug was manifesting itself as Debian Bug#454184.
---
liferea/src/mozilla/mozsupport.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/liferea/src/mozilla/mozsupport.cpp
b/liferea/src/mozilla/mozsupport.cpp
index 4225d91..e82210e 100644
--- a/liferea/src/mozilla/mozsupport.cpp
+++ b/liferea/src/mozilla/mozsupport.cpp
@@ -117,7 +117,7 @@ mozsupport_set_zoom (GtkWidget *embed, gfloat aZoom) {
nsCOMPtr<nsIDOMWindow> mDOMWindow;
gtk_moz_embed_get_nsIWebBrowser(GTK_MOZ_EMBED(embed),
getter_AddRefs(mWebBrowser));
- mWebBrowser->GetContentDOMWindow(getter_AddRefs(mDOMWindow));
+ mWebBrowser != NULL &&
mWebBrowser->GetContentDOMWindow(getter_AddRefs(mDOMWindow));
if(NULL == mDOMWindow) {
g_warning("could not retrieve DOM window...");
return;
@@ -132,7 +132,7 @@ mozsupport_get_zoom (GtkWidget *embed) {
float zoom;
gtk_moz_embed_get_nsIWebBrowser(GTK_MOZ_EMBED(embed),
getter_AddRefs(mWebBrowser));
- mWebBrowser->GetContentDOMWindow(getter_AddRefs(mDOMWindow));
+ mWebBrowser != NULL &&
mWebBrowser->GetContentDOMWindow(getter_AddRefs(mDOMWindow));
if(NULL == mDOMWindow) {
g_warning("could not retrieve DOM window...");
return 1.0;
--
1.5.3.8
signature.asc
Description: Digital signature

