[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
darin
darin at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 07:17:23 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit 523f0cbf1a0dff939ee723af42e6233c1cd0e33e
Author: darin <darin at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Tue Dec 24 22:51:42 2002 +0000
Reviewed by Don.
- fixed 3135010 -- nil-dereference in KHTMLPart::xmlDocImpl() at channels.netscape.com
* khtml/html/html_baseimpl.cpp: (HTMLFrameElementImpl::contentDocument):
Add missing nil check. Also added lots of FIXME comments about problems I observed here.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3185 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog-2003-10-25 b/WebCore/ChangeLog-2003-10-25
index c74740c..f125f9c 100644
--- a/WebCore/ChangeLog-2003-10-25
+++ b/WebCore/ChangeLog-2003-10-25
@@ -1,5 +1,14 @@
2002-12-24 Darin Adler <darin at apple.com>
+ Reviewed by Don.
+
+ - fixed 3135010 -- nil-dereference in KHTMLPart::xmlDocImpl() at channels.netscape.com
+
+ * khtml/html/html_baseimpl.cpp: (HTMLFrameElementImpl::contentDocument):
+ Add missing nil check. Also added lots of FIXME comments about problems I observed here.
+
+2002-12-24 Darin Adler <darin at apple.com>
+
Reviewed by Richard and Don.
- fixed 3133207 -- crash in HTMLFrameElementImpl updateForNewURL at home.real.com
diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23
index c74740c..f125f9c 100644
--- a/WebCore/ChangeLog-2005-08-23
+++ b/WebCore/ChangeLog-2005-08-23
@@ -1,5 +1,14 @@
2002-12-24 Darin Adler <darin at apple.com>
+ Reviewed by Don.
+
+ - fixed 3135010 -- nil-dereference in KHTMLPart::xmlDocImpl() at channels.netscape.com
+
+ * khtml/html/html_baseimpl.cpp: (HTMLFrameElementImpl::contentDocument):
+ Add missing nil check. Also added lots of FIXME comments about problems I observed here.
+
+2002-12-24 Darin Adler <darin at apple.com>
+
Reviewed by Richard and Don.
- fixed 3133207 -- crash in HTMLFrameElementImpl updateForNewURL at home.real.com
diff --git a/WebCore/khtml/html/html_baseimpl.cpp b/WebCore/khtml/html/html_baseimpl.cpp
index fef36fe..e91f0a7 100644
--- a/WebCore/khtml/html/html_baseimpl.cpp
+++ b/WebCore/khtml/html/html_baseimpl.cpp
@@ -226,6 +226,7 @@ NodeImpl::Id HTMLFrameElementImpl::id() const
return ID_FRAME;
}
+// FIXME: Why is this different from setLocation?
void HTMLFrameElementImpl::updateForNewURL()
{
if (attached()) {
@@ -277,21 +278,28 @@ void HTMLFrameElementImpl::parseAttribute(AttributeImpl *attr)
case ATTR_ID:
case ATTR_NAME:
name = attr->value();
+ // FIXME: If we are already attached, this doesn't actually change the frame's name.
+ // FIXME: If we are already attached, this doesn't check for frame name
+ // conflicts and generate a unique frame name.
break;
case ATTR_FRAMEBORDER:
{
frameBorder = attr->value().toInt();
frameBorderSet = ( attr->val() != 0 );
+ // FIXME: If we are already attached, this has no effect.
}
break;
case ATTR_MARGINWIDTH:
marginWidth = attr->val()->toInt();
+ // FIXME: If we are already attached, this has no effect.
break;
case ATTR_MARGINHEIGHT:
marginHeight = attr->val()->toInt();
+ // FIXME: If we are already attached, this has no effect.
break;
case ATTR_NORESIZE:
noresize = true;
+ // FIXME: If we are already attached, this has no effect.
break;
case ATTR_SCROLLING:
kdDebug( 6031 ) << "set scroll mode" << endl;
@@ -301,6 +309,8 @@ void HTMLFrameElementImpl::parseAttribute(AttributeImpl *attr)
scrolling = QScrollView::AlwaysOn;
else if( strcasecmp( attr->value(), "no" ) == 0 )
scrolling = QScrollView::AlwaysOff;
+ // FIXME: If we are already attached, this has no effect.
+ // FIXME: Is this falling through on purpose, or do we want a break here?
default:
HTMLElementImpl::parseAttribute(attr);
@@ -369,6 +379,7 @@ void HTMLFrameElementImpl::attach()
w->part()->requestFrame( static_cast<RenderFrame*>(m_render), url.string(), name.string() );
}
+// FIXME: Why is this different from updateForNewURL?
void HTMLFrameElementImpl::setLocation( const DOMString& str )
{
url = str;
@@ -400,8 +411,10 @@ DocumentImpl* HTMLFrameElementImpl::contentDocument() const
KHTMLView* w = getDocument()->view();
if (w) {
- KHTMLPart *part = w->part()->findFrame( name.string() );
- return part->xmlDocImpl();
+ KHTMLPart *part = w->part()->findFrame( name.string() );
+ if (part) {
+ return part->xmlDocImpl();
+ }
}
return 0;
@@ -642,6 +655,9 @@ void HTMLIFrameElementImpl::attach()
assert(!m_render);
assert(parentNode());
+ // FIXME: This self-reference check is the same as the code in the base class attach.
+ // We should refactor so we can share the code.
+
KHTMLView* w = getDocument()->view();
// avoid endless recursion
KURL u;
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list