gtkhtml r8881 - trunk/gtkhtml
- From: msuman svn gnome org
- To: svn-commits-list gnome org
- Subject: gtkhtml r8881 - trunk/gtkhtml
- Date: Mon, 30 Jun 2008 03:32:26 +0000 (UTC)
Author: msuman
Date: Mon Jun 30 03:32:26 2008
New Revision: 8881
URL: http://svn.gnome.org/viewvc/gtkhtml?rev=8881&view=rev
Log:
Patch from Milan Crha <mcrha redhat com> ** Fix for bug #540342 (Fix for a vulnerability issue).
Modified:
trunk/gtkhtml/ChangeLog
trunk/gtkhtml/gtkhtml.c
trunk/gtkhtml/htmlframeset.h
Modified: trunk/gtkhtml/gtkhtml.c
==============================================================================
--- trunk/gtkhtml/gtkhtml.c (original)
+++ trunk/gtkhtml/gtkhtml.c Mon Jun 30 03:32:26 2008
@@ -47,6 +47,7 @@
#include "htmlengine-save.h"
#include "htmlform.h"
#include "htmlframe.h"
+#include "htmlframeset.h"
#include "htmliframe.h"
#include "htmlimage.h"
#include "htmlinterval.h"
@@ -5829,6 +5830,10 @@
GTK_HTML (GTK_HTML (HTML_FRAME (o)->html)->iframe_parent)->iframe_parent == NULL)
gtk_html_set_iframe_parent (GTK_HTML (HTML_FRAME (o)->html), data, o);
+ if (HTML_IS_FRAMESET (o) && HTML_FRAMESET (o)->parent &&
+ HTML_FRAMESET (o)->parent->iframe_parent == NULL) {
+ HTML_FRAMESET (o)->parent = data;
+ }
}
static void
Modified: trunk/gtkhtml/htmlframeset.h
==============================================================================
--- trunk/gtkhtml/htmlframeset.h (original)
+++ trunk/gtkhtml/htmlframeset.h Mon Jun 30 03:32:26 2008
@@ -25,6 +25,7 @@
#include "htmlobject.h"
#define HTML_FRAMESET(x) ((HTMLFrameset *)(x))
#define HTML_FRAMESET_CLASS(x) ((HTMLFramesetClass *)(x))
+#define HTML_IS_FRAMESET(x) (HTML_CHECK_TYPE ((x), HTML_TYPE_FRAMESET))
struct _HTMLFrameset {
HTMLObject object;
@@ -48,9 +49,3 @@
gboolean html_frameset_append (HTMLFrameset *set, HTMLObject *o);
void html_frameset_type_init (void);
#endif /* _HTMLTABLE_H_ */
-
-
-
-
-
-
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]